@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/playfair-display-cyrillic-400-700-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/playfair-display-latin-400-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/playfair-display-cyrillic-400-italic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/playfair-display-latin-400-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Georgia, 'PT Serif', 'Times New Roman', serif;
}

h1, h2, h3, h4, h5, h6,
.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}

:root {
    --color-primary: #1d5c4d;
    --color-primary-light: #4da184;
}

html, body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

header {
    background: var(--color-primary);
}

.header-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    gap: 15px;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: auto;
    display: block;
}

.logo-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-eyebrow {
    font-family: Georgia, 'PT Serif', 'Times New Roman', serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.logo-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

@media (max-width: 480px) {
    .logo-eyebrow {
        font-size: 0.68rem;
    }

    .logo-name {
        font-size: 1.15rem;
    }
}

.user-actions {
    display: flex;
    flex: 1;
    padding-left: 30px;
    padding-right: 30px;
    align-items: center;
    gap: 20px;
}

.user-action {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.user-action:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--color-primary);
}

.user-action:active {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: #fff;
}

.user-action--right {
    margin-left: auto;
}

.user-action--external {
    border-color: transparent;
    color: rgba(255, 255, 255, 0.75);
}

.user-action--external::after {
    content: "\2197";
    margin-left: 6px;
}

.user-action--external:hover {
    background-color: transparent;
    border-color: transparent;
    color: #fff;
}

.user-action--external:active {
    background-color: transparent;
    border-color: transparent;
    color: var(--color-primary-light);
}

.max-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #471AFF, #9500FF);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(71, 26, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.max-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(71, 26, 255, 0.45);
}

.max-button-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.user-action--phone::before {
    content: "\260E";
    margin-right: 6px;
}

@media (max-width: 640px) {
    .header-top {
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .user-actions {
        flex-wrap: wrap;
        flex-basis: 100%;
        padding-left: 0;
        padding-right: 0;
        gap: 10px;
    }

    .user-action--right {
        margin-left: 0;
    }
}

.hero {
    display: flex;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

.hero-photo {
    flex-shrink: 0;
}

.hero-photo img {
    width: 280px;
    height: 340px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(29, 92, 77, 0.18);
}

.hero-info h1 {
    font-size: 2.6rem;
    color: #1c1c1c;
    margin-bottom: 8px;
}

.hero-role {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.hero-text {
    color: #4a4a4a;
    line-height: 1.7;
    font-size: 1rem;
    max-width: 520px;
}

@media (max-width: 640px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: none;
    }
}

.credentials {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.credentials h2 {
    font-size: 2rem;
    color: #1c1c1c;
    margin-bottom: 28px;
}

.credentials-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.credentials-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(29, 92, 77, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.credentials-photo:hover {
    transform: translateY(-4px);
}

.credentials-downloads {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.credentials-download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.credentials-download:hover {
    border-color: var(--color-primary);
    background-color: rgba(29, 92, 77, 0.04);
}

.credentials-download-title {
    color: #1c1c1c;
    font-weight: 600;
}

.credentials-download-meta {
    color: var(--color-primary);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.profile-nav-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.profile-tab {
    border: 1px solid #d7ddd9;
    background: #f7faf8;
    color: #23463d;
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.profile-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.profile-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(29, 92, 77, 0.16);
}

.hero-cta {
    display: inline-block;
    padding: 18px 36px;
    margin-top: 16px;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(29, 92, 77, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-cta:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(29, 92, 77, 0.34);
}

.profile-panel {
    display: none;
}

.profile-panel.active {
    display: block;
    animation: fadeIn 0.2s ease;
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-card {
    background: #fff;
    border: 1px solid #e3e9e6;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(29, 92, 77, 0.08);
}

.info-card h3 {
    font-size: 1.5rem;
    color: #1c1c1c;
    margin-bottom: 16px;
}

.case-group-title {
    font-size: 1.05rem;
    color: #1c1c1c;
    margin: 20px 0 8px;
}

.case-group-title:first-of-type {
    margin-top: 4px;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #4a4a4a;
    line-height: 1.7;
}

.info-list li {
    position: relative;
    padding-left: 16px;
}

.info-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.case-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid #d7ddd9;
    background: #f7faf8;
    color: #23463d;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.case-badge:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 92, 77, 0.2);
}

a.case-badge:active {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(0);
    box-shadow: none;
}

.case-badge--plain {
    background: #f0f0f0;
    border-color: #e2e2e2;
    color: #8a8a8a;
    cursor: default;
}

.donut-section {
    margin-top: 16px;
}

.donut-wrap {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.donut-chart {
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}

.donut-chart circle {
    transition: stroke-width 0.2s ease, opacity 0.2s ease;
}

.donut-total-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 7px;
    fill: #1c1c1c;
}

.donut-total-label {
    font-size: 2.6px;
    fill: #4a4a4a;
}

.donut-legend {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 260px;
    color: #4a4a4a;
}

.donut-legend li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9rem;
}

.donut-legend-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.donut-legend-value {
    font-weight: 700;
    color: #1c1c1c;
}

@media (max-width: 640px) {
    .donut-wrap {
        flex-direction: column;
        align-items: center;
    }

    .donut-legend {
        min-width: 0;
        width: 100%;
    }
}

.reviews-summary {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e3e9e6;
}

.reviews-score {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1c1c1c;
}

.reviews-stars {
    color: #f0ad4e;
    font-size: 1.15rem;
    letter-spacing: 3px;
}

.reviews-count {
    color: #4a4a4a;
    font-size: 0.95rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    border: 1px solid #e3e9e6;
    border-radius: 10px;
    padding: 20px 24px;
    background: #fafcfb;
}

.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.review-author {
    font-weight: 700;
    color: #1c1c1c;
    font-size: 1.05rem;
}

.review-card .review-stars {
    color: #f0ad4e;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.review-date {
    display: block;
    color: #8a8a8a;
    font-size: 0.8rem;
    margin: 4px 0 12px;
}

.review-text {
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 14px;
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.review-tag {
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #cfe3da;
    color: var(--color-primary);
    background: #eef6f2;
}

.review-tag--minus {
    border-color: #e2e2e2;
    color: #8a8a8a;
    background: #f5f5f5;
}

.review-source {
    font-size: 0.78rem;
    color: #8a8a8a;
}

.review-source a {
    color: var(--color-primary);
    text-decoration: none;
}

.review-source a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .review-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.analytics-item {
    background: #f5faf7;
    border: 1px solid #dfeae5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.analytics-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: 'Playfair Display', Georgia, serif;
}

.analytics-label {
    color: #4a4a4a;
    font-size: 0.95rem;
}

.question-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
}

.question-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: #4a4a4a;
}

.question-form input,
.question-form textarea {
    padding: 12px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.question-form input:focus,
.question-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.question-success {
    margin-top: 16px;
    color: var(--color-primary);
    font-weight: 600;
}

.question-error {
    margin-top: 16px;
    color: #b3261e;
    font-weight: 600;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 27, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 100;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-box {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    animation: fadeIn 0.2s ease;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: #6b6b6b;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-box h3 {
    margin-bottom: 8px;
    padding-right: 24px;
}

.modal-subtitle {
    color: #4a4a4a;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.modal-consent {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px !important;
    font-size: 0.85rem;
    color: #4a4a4a;
}

.modal-consent input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
}

.map-card {
    margin-top: 24px;
}

.map-container {
    width: 100%;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
}

.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.85);
    margin-top: 60px;
    padding: 48px 24px 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
}

.footer-brand .logo-text {
    color: #fff;
    font-size: 1.3rem;
    display: block;
}

.footer-role {
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-copy {
    max-width: 1100px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .credentials-gallery {
        grid-template-columns: 1fr;
    }

    .credentials-download {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .profile-tabs {
        flex-direction: column;
    }

    .profile-tab {
        width: 100%;
        text-align: center;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }
}