/* === CSS Variables === */
:root {
    --primary: #1a5276;
    --primary-dark: #0e3a54;
    --primary-light: #2980b9;
    --accent: #c8a45e;
    --accent-dark: #b08d45;
    --accent-light: #e0c482;
    --text: #1a1a2e;
    --text-light: #4a4a5a;
    --text-muted: #6b7280;
    --text-white: #ffffff;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-warm: #fdfbf7;
    --bg-dark: #0f1923;
    --border: #e5e7eb;
    --border-light: #f0f1f3;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --max-width-sm: 800px;
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-heading: "Georgia", "Times New Roman", serif;
    /* WCAG AA compliant colors */
    --success: #1a7a3a;
    --danger: #c0392b;
    --focus-ring: rgba(26, 82, 118, 0.25);
}

/* === Focus Styles for Accessibility === */
*:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--focus-ring);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 120px;
    padding-bottom: 0;
}

/* === Decorative Scales of Justice SVG === */
.scales-decor {
    position: absolute;
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
}

.scales-decor--left {
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    animation: scalesSway 6s ease-in-out infinite;
}

.scales-decor--right {
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    animation: scalesSway 6s ease-in-out infinite reverse;
}

@keyframes scalesSway {
    0%, 100% { transform: translateY(-50%) rotate(-3deg); }
    50% { transform: translateY(-50%) rotate(3deg); }
}

/* === Animated Scales of Justice (Hero) === */
.hero-scales {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    opacity: 0.07;
    pointer-events: none;
    z-index: 1;
}

.hero-scales .beam {
    transform-origin: center;
    animation: beamSway 4s ease-in-out infinite;
}

.hero-scales .pan {
    transform-origin: top center;
    animation: panSway 4s ease-in-out infinite;
}

.hero-scales .pan:nth-child(2) {
    animation-delay: -2s;
}

@keyframes beamSway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

@keyframes panSway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* === Themis (Lady Justice) decorative SVG === */
.themis-decor {
    position: absolute;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.themis-decor--cta {
    right: -60px;
    bottom: -60px;
    width: 300px;
    height: 300px;
}

/* === Decorative Column SVG === */
.decor-column {
    position: absolute;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.decor-column--left {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 360px;
}

.decor-column--right {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 360px;
}

/* === Decorative Hexagon Pattern SVG === */
.decor-hex-pattern {
    position: absolute;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.decor-hex-pattern--top-right {
    right: -30px;
    top: -30px;
    width: 300px;
    height: 300px;
}

.decor-hex-pattern--bottom-left {
    left: -30px;
    bottom: -30px;
    width: 300px;
    height: 300px;
}

/* === Decorative Wave SVG === */
.decor-wave {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    opacity: 0.6;
}

/* === Decorative Laurel Wreath SVG === */
.decor-laurel {
    position: absolute;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.decor-laurel--top-center {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 144px;
}

.decor-laurel--bottom-center {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    width: 240px;
    height: 144px;
}

/* === Decorative Document SVG === */
.decor-document {
    position: absolute;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.decor-document--left {
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 144px;
    height: 192px;
}

.decor-document--right {
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 144px;
    height: 192px;
}

/* === Decorative Chevron SVG === */
.decor-chevron {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    opacity: 0.5;
}

/* === Decorative Border Frame SVG === */
.decor-border {
    position: absolute;
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
}

.decor-border--top {
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
}

.decor-border--bottom {
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    transform: rotate(180deg);
}

/* === Gold shimmer line animation === */
@keyframes goldShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.header-gold-line {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent) 20%,
        var(--accent-light) 50%,
        var(--accent) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: goldShimmer 4s linear infinite;
    opacity: 0.5;
}

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-weight: 600;
    transition: var(--transition-fast);
}

.skip-link:focus {
    top: 10px;
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Content link underlines for better discoverability */
.page-content a,
.qa-single-text a,
.article-content a {
    text-decoration: underline;
    text-decoration-color: var(--primary-light);
    text-underline-offset: 3px;
}

.page-content a:hover,
.qa-single-text a:hover,
.article-content a:hover {
    text-decoration-color: var(--primary);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.header {
    background: var(--bg);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

/* Gold shimmer line under header */
.header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent) 20%,
        var(--accent-light) 50%,
        var(--accent) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: goldShimmer 4s linear infinite;
    opacity: 0.5;
}

/* === Breadcrumbs — всегда над header, всегда видимы === */
.breadcrumbs {
    position: relative;
    z-index: 1001;
    margin-top: 40px;
    margin-left: 40px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 600;
}

.breadcrumbs > span {
    color: var(--text-muted);
    margin: 0 6px;
    user-select: none;
}

/* === Page sections — корректный отступ от fixed header === */
/* padding-top body = 120px, поэтому margin-top = 0 для корректного позиционирования */
.page-section,
.services-section,
.about-section,
.expertise-section,
.testimonials-section,
.map-contacts-section,
.cta-section,
.program-section,
.contacts-section,
.map-section,
.contacts-info-section {
    margin-top: 0;
}

/* Hero — свой отступ, т.к. имеет min-height: 70vh */
.hero {
    margin-top: 0;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: auto;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a3a4a 40%, var(--primary) 100%);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-img {
    height: auto;
    width: auto;
    display: block;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-phone {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}

.header-social {
    display: flex;
    gap: 10px;
}

.social-link {
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--primary);
}

.cta-button {
    background: var(--accent);
    color: var(--text-white);
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 14px;
}

.cta-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* === Desktop Navigation (below logo) === */
.header-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.header-nav.collapsed {
    max-height: 0 !important;
    padding: 0 !important;
    border-top: none !important;
    pointer-events: none;
}

.header-nav.expanded {
    max-height: 500px !important;
    padding: 10px 20px !important;
    border-top: 1px solid var(--border) !important;
    pointer-events: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    overflow-x: auto;
    flex-direction: row;
}

@media (min-width: 769px) {
    .nav-list {
        overflow-x: visible;
    }
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Desktop dropdown menus */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    min-width: 240px;
    z-index: 5004;
    list-style: none;
    margin: 0;
    pointer-events: auto;
    /* Extend hover zone above menu to bridge gap */
    margin-top: -1px;
}

/* Show dropdown on hover */
.has-dropdown:hover > .dropdown-menu,
.dropdown-menu:hover {
    display: block !important;
}

/* Ensure parent link is not clickable when dropdown is open */
.has-dropdown > .dropdown-toggle {
    cursor: pointer;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 24px;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: auto;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a3a4a 40%, var(--primary) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 500px at 30% 40%, rgba(200, 164, 94, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 400px 300px at 80% 70%, rgba(41, 128, 185, 0.1) 0%, transparent 60%);
    z-index: 1;
}

/* Animated decorative element */
.hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 164, 94, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    z-index: 1;
    animation: heroFloat 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-30px, 20px) scale(1.05);
    }

    66% {
        transform: translate(20px, -15px) scale(0.95);
    }
}

.hero-decor-1 {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 164, 94, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    z-index: 1;
    animation: heroFloat2 12s ease-in-out infinite;
    pointer-events: none;
}

.hero-decor-2 {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(200, 164, 94, 0.12);
    top: 20%;
    right: 15%;
    z-index: 1;
    animation: heroFloat3 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroFloat2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(25px, -20px);
    }
}

@keyframes heroFloat3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-15px, 15px) rotate(180deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px 50px;
    color: var(--text-white);
    width: 100%;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
    max-width: 800px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 32px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    gap: 8px;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-white);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
}

.btn-accent {
    background: var(--accent);
    color: var(--text-white);
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--text-white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Button loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: buttonSpinner 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes buttonSpinner {
    to { transform: rotate(360deg); }
}

/* === Hero Features === */
.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-white);
}

.feature p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* === Section Common === */
.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
    line-height: 1.3;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

/* Section spacing utility */
.section-spacing {
    padding: 80px 0;
}

/* === Services Grid === */
.services-section {
    padding: 80px 0;
    margin-top: 90px;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.service-card {
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg);
    color: var(--text);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-white);
}

.service-card h3 {
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.service-arrow {
    display: none;
}

/* ===== Services list page (cards with images) ===== */
.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 40px;
    margin-bottom: 20px;
    gap: 20px;
}

.services-list .service-card {
    background: var(--bg);
    color: var(--text);
    text-align: left;
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.services-list .service-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.services-list .service-card-image {
    display: block;
    aspect-ratio: 8 / 5;
    overflow: hidden;
    background: var(--bg-light);
}

.services-list .service-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.services-list .service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.services-list .service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.services-list .service-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    flex: 1;
}

.services-list .service-card-text {
    min-width: 0;
}

.services-list .service-card-text h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
}

.services-list .service-card-text h2 a {
    color: var(--primary);
}

.services-list .service-card-text h2 a:hover {
    color: var(--primary-dark);
}

.services-list .service-card-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.services-list .service-card-link {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(26, 82, 118, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: var(--transition);
}

.services-list .service-card-link:hover {
    background: var(--primary);
    color: var(--text-white);
}

/* ===== Related services (single page) ===== */
.related-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0 28px;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 8 / 5;
    background: var(--bg-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-card-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 14px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    background: linear-gradient(180deg, transparent 0%, rgba(14, 58, 84, 0.75) 100%);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.related-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .services-list {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

.price-block {
    text-align: center;
    padding: 36px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.price-block h3 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.price-block p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* === Program Section === */
.program-section {
    padding: 60px 0;
    margin-top: 90px;
    background: var(--bg-light);
}

.program-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-content {
    padding: 40px;
}

.program-content h2 {
    color: var(--primary-dark);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.program-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 20px;
}

.program-collapsed {
    display: none;
}

.program-collapsed.visible {
    display: block;
}

.program-steps {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.step {
    padding: 14px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.step strong {
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
}

.btn-read-more {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.btn-read-more:hover {
    color: var(--primary-dark);
}

.btn-read-more::after {
    content: none;
}

.btn-read-more.active::after {
    transform: rotate(90deg);
}

/* === About Section === */
.about-section {
    margin-top: 90px;
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1.2fr 1fr;
        gap: 30px;
    }
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-image-right {
    display: none;
}

@media (min-width: 1024px) {
    .about-image-right {
        display: block;
    }
}

.about-image-right img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 14px;
}

.specialists-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.specialists-list li {
    margin-bottom: 4px;
}

/* === Expertise Section (replaces doctors) === */
.expertise-section {
    margin-top: 90px;
    padding: 80px 0;
    background: var(--bg-light);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.expertise-card {
    display: block;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    color: inherit;
    text-decoration: none;
    padding: 32px 24px;
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.expertise-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    color: var(--text-white);
    font-size: 1.75rem;
}

.expertise-card h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.expertise-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.expertise-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
}

/* === Testimonials Section === */
.testimonials-section {
    padding: 80px 0;
    margin-top: 90px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.testimonial-stars {
    color: #f59e0b;
}

/* === Map + Contacts Section === */
.map-contacts-section {
    padding: 80px 0;
    margin-top: 90px;
    background: var(--bg-light);
}

.map-contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.map-block {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.map-wrapper {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 0;
}

.contacts-block {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.contacts-block-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.contacts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contacts-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    line-height: 1.6;
}

.contacts-list li:last-child {
    border-bottom: none;
}

.contacts-list a {
    color: var(--primary);
    font-weight: 500;
}

/* === CTA Section === */
.cta-section {
    padding: 80px 0;
    margin-top: 90px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 164, 94, 0.1) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    z-index: 1;
    animation: ctaFloat 15s ease-in-out infinite;
    pointer-events: none;
}

.cta-section::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    z-index: 1;
    animation: ctaFloat2 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 20px) scale(1.05);
    }
}

@keyframes ctaFloat2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, -15px) rotate(180deg);
    }
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 16px;
    color: var(--text-white);
    position: relative;
    z-index: 2;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-contacts {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-contacts a {
    color: var(--text-white);
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 6000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text);
}

.modal-content h2 {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L0 3h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-consent {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.form-consent label {
    font-size: 0.875rem;
    color: var(--text-light);
    display: block;
    text-align: left;
    cursor: pointer;
    margin: 0;
    line-height: 1.5;
}

.form-consent a {
    color: var(--primary);
    text-decoration: underline;
}

.form-success {
    text-align: center;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

.form-success p {
    margin-bottom: 8px;
    color: var(--text);
}

/* === Page Sections === */
.page-section {
    overflow: hidden;
    padding: 80px 0;
    margin-top: 90px;
}

.page-content {
    line-height: 1.8;
    color: var(--text);
}

.page-content h2 {
    color: var(--primary-dark);
    font-size: 1.75rem;
    margin: 32px 0 16px;
    font-weight: 700;
}

.page-content h3 {
    color: var(--text);
    font-size: 1.35rem;
    margin: 24px 0 12px;
    font-weight: 600;
}

.page-content p {
    margin-bottom: 16px;
    color: var(--text);
}

.page-content ul,
.page-content ol {
    padding-left: 24px;
    margin: 16px 0;
}

.page-content li {
    margin-bottom: 8px;
}

/* === About Page Content Wrapper === */
.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (min-width: 1024px) {
    .about-content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        align-items: start;
    }
}

.about-text-content {
    color: var(--text-light);
}

.about-text-content p {
    margin-bottom: 14px;
}

/* === About Page Intro === */
.about-intro {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 30px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(26, 82, 118, 0.06), rgba(41, 128, 185, 0.03));
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    line-height: 1.7;
}

/* === About Highlights Cards === */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 50px 0;
}

@media (max-width: 900px) {
    .about-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .about-highlights {
        grid-template-columns: 1fr;
    }
}

.highlight-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.highlight-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.highlight-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* === About Page Section Titles === */
.about-text-content h2 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.about-text-content h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
}

@media (min-width: 1024px) {
    .about-text-content h2::after {
        left: auto;
        right: 0;
    }
}

.about-text-content h3 {
    color: var(--text);
    font-size: 1.25rem;
    margin: 24px 0 12px;
    font-weight: 600;
}

.about-text-content ul {
    list-style: none;
    padding-left: 0;
    margin: 16px 0;
}

.about-text-content ul li {
    position: relative;
    padding-left: 28px;
    padding-right: 20px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.about-text-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* === About Page Content Wrapper === */

.about-image-right {
    display: none;
}

@media (min-width: 1024px) {
    .about-image-right {
        display: block;
        position: sticky;
        top: 140px;
    }
}

.about-image-right img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.single-page {
    max-width: 800px;
    margin: 0 auto;
}

.single-page h1 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.single-page h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 24px 0 12px;
}

.single-page h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin: 20px 0 10px;
}

.single-page p {
    margin-bottom: 12px;
    color: var(--text-light);
}

.single-page ul,
.single-page ol {
    padding-left: 20px;
    margin: 14px 0;
}

.single-page li {
    margin-bottom: 6px;
    color: var(--text-light);
}

.single-header-image {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 8 / 5;
    margin: 0 auto 28px;
    overflow: hidden;
    border-radius: var(--radius);
}

.single-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 18px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.content-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.content-card-image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.content-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.content-card:hover .content-card-image img {
    transform: scale(1.05);
}

.content-card-body {
    padding: 20px;
}

.content-card-body h2 {
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.content-card-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.read-more:hover {
    gap: 8px;
    color: var(--primary-dark);
}


/* === Contacts Section === */
.contacts-section {
    padding: 0;
    margin: 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.contact-details h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-details p {
    color: var(--text-light);
    margin-bottom: 4px;
    line-height: 1.6;
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.contacts-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.contacts-map a.dg-widget-link {
    display: block;
    padding: 12px 16px;
    background: var(--bg-light);
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}

.contacts-map a.dg-widget-link:hover {
    background: var(--bg);
}

.contacts-map #map-widget {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .contacts-map #map-widget {
        height: 350px;
    }
}

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 20px;
    z-index: 7000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.cookie-banner.show {
    display: block;
}

.cookie-banner.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner p {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.9;
}

.cookie-banner a {
    color: var(--accent-light);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-buttons .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    padding: 10px 24px;
    font-size: 0.875rem;
}

.cookie-buttons .btn-outline {
    border-color: var(--text-white);
    color: var(--text-white);
    padding: 10px 24px;
    font-size: 0.875rem;
}

/* === Tech Notice === */
.tech-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: var(--text);
    padding: 10px 20px;
    z-index: 4000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tech-notice.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.tech-notice-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    font-size: 0.9rem;
}

.tech-notice-close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-light);
}

/* === Mobile Bottom Navigation (SM Clinic style) === */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 5002;
    padding: 6px 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--border);
}

.mobile-nav.visible {
    transform: translateY(0);
}

.mobile-nav-list {
    display: flex;
    justify-content: space-around;
    list-style: none;
    align-items: center;
}

.mobile-nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 500;
    padding: 6px 10px;
    transition: var(--transition);
}

.mobile-nav-item a.active,
.mobile-nav-item a:hover {
    color: var(--primary);
}

.mobile-nav-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* === Footer === */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 50px 0 20px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 14px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-light);
}

.footer-contacts h4,
.footer-links h4,
.footer-legal h4 {
    color: var(--primary-light);
    margin-bottom: 18px;
    font-size: 1rem;
}

.footer-address {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.footer-phone {
    color: var(--text-white);
    display: block;
    margin-bottom: 4px;
}

.footer-phone:hover {
    color: var(--primary-light);
}

.footer-email {
    color: var(--primary-light);
    display: block;
    margin-bottom: 12px;
}

.footer-hours {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.footer-tech-notice {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 6px;
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    max-width: 450px;
    text-align: right;
}

@media (max-width: 768px) {
    .footer-disclaimer {
        text-align: center;
        max-width: 100%;
        margin-top: 8px;
    }
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* === Utility === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === Terms Page === */
.terms-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.terms-content th,
.terms-content td {
    padding: 10px;
    border: 1px solid var(--border);
    text-align: left;
}

.terms-content th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary);
}

/* === Map Section === */
.map-section {
    margin-top: 90px;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
    position: relative;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (min-width: 992px) and (max-width: 1200px) {
        .services-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .expertise-grid,
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .program-card {
        grid-template-columns: 1fr;
    }

    .map-contacts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: nowrap;
    }

    /* Top menu as slide-down panel (toggled by .mobile-open class) */
    .header-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        transform: translateY(-110%);
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
        z-index: 1002;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        border-top: 1px solid var(--border);
        padding: 10px 0 16px;
        visibility: hidden;
        pointer-events: none;
    }

    .header-nav.mobile-open {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.3s ease, visibility 0s;
    }

    .header-nav.mobile-open .nav-list {
        flex-direction: column;
        gap: 0;
        overflow-x: visible;
        max-width: 100%;
    }

    .header-nav.mobile-open .nav-link {
        padding: 10px 20px;
        font-size: 16px;
        border-bottom: 1px solid var(--border);
    }

    .header-nav.mobile-open .nav-link:hover,
    .header-nav.mobile-open .nav-link.active {
        border-bottom-color: var(--border);
    }

    .header-right .header-phone,
    .header-right .header-social,
    .header-right .cta-button {
        display: none !important;
    }

    .mobile-toggle {
        display: flex !important;
        margin-left: auto;
    }

    /* Mobile breadcrumbs */
    .breadcrumbs {
        font-size: 14px;
        margin-bottom: 20px;
        padding: 0 8px;
    }

    .breadcrumbs a {
        color: var(--primary);
        font-weight: 500;
    }

    .breadcrumb-current {
        color: var(--text);
        font-weight: 500;
    }

    .breadcrumbs > span {
        color: var(--text-muted);
        user-select: none;
        padding: 0 2px;
    }

    .hero {
        margin-top: 0;
        min-height: auto;
    }

    /* Header slide-up animation on mobile */
    .header.header-hidden {
        transform: translateY(-100%) !important;
        transition: transform 0.3s ease;
    }

    /* Hide decorative elements on mobile */
    .hero::after,
    .hero-decor-1,
    .hero-decor-2,
    .hero-cross,
    .cta-decor-cross {
        display: none !important;
    }

    .cta-section::before,
    .cta-section::after {
        display: none !important;
    }

    .hero-content {
        padding-bottom: 40px;
        padding: 40px 16px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 100px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    @media (min-width: 768px) {
        .services-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .service-card {
        padding: 20px 14px;
    }

    .service-card h3 {
        font-size: 0.9rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .reviews-carousel {
        grid-template-columns: 1fr;
    }

    .stih-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stih-col {
        padding: 20px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-disclaimer {
        text-align: center;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .program-content {
        padding: 20px;
    }

    .modal-content {
        padding: 24px;
        margin: 10px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-contacts {
        flex-direction: column;
        gap: 8px;
    }

    /* Mobile nav - JS controls visibility via .visible class */
    .mobile-nav {
        display: block !important;
    }

    /* Add padding for mobile nav */
    body {
        padding-bottom: 70px;
    }

    /* Hero features need more space */
    .hero-features {
        margin-bottom: 100px;
    }

    /* Ensure program section has enough bottom space */
    .program-section {
        padding-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .feature {
        padding: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* === Extra Small Devices (320px-375px) === */
@media (max-width: 375px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    .hero-content {
        padding: 30px 12px;
    }

    .hero-content h1 {
        font-size: 1.35rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .qa-card {
        padding: 16px;
    }

    .qa-card-question {
        font-size: 1rem;
    }

    .modal-content {
        padding: 16px;
        margin: 8px;
    }

    .footer-grid {
        gap: 24px;
    }

    .about-highlights {
        gap: 16px;
    }

    .highlight-card {
        padding: 20px 16px;
    }
}

@media (max-width: 320px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 1.25rem;
    }

    .hero-buttons {
        gap: 8px;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-disclaimer {
        text-align: center;
    }
}

/* === Patient checkups === */
.checkup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.checkup-card {
    display: block;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: inherit;
    text-decoration: none;
}

.checkup-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.checkup-image {
    display: block;
    height: 300px;
    overflow: hidden;
}

.checkup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.checkup-card:hover .checkup-image img {
    transform: scale(1.05);
}

.checkup-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.checkup-body h2 {
    color: var(--primary-dark);
    font-size: 1.15rem;
    margin: 0;
}

.checkup-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
}

.checkup-btn {
    align-self: flex-start;
    padding: 10px 24px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .checkup-grid {
        grid-template-columns: 1fr;
    }

    .checkup-image {
        height: 220px;
    }
}

/* === Doctor Single Page === */
.doctor-single {
    padding: 60px 0 80px;
    margin-top: 90px;
}

.doctor-single__inner {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
}

/* Photo column */
.doctor-single__photo {
    flex: 0 0 452px;
    width: 452px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-light);
}

.doctor-single__img {
    width: 100%;
    display: block;
}

/* Content column */
.doctor-single__content {
    flex: 1 1 0;
    min-width: 0;
    padding-top: 10px;
}

.doctor-single__name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.doctor-single__specialty {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 24px;
}

.doctor-single__body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
}

.doctor-single__body p {
    margin-bottom: 12px;
}

.doctor-single__body strong {
    color: var(--primary-dark);
}

/* Tablet */
@media (max-width: 1024px) {
    .doctor-single__inner {
        gap: 40px;
    }

    .doctor-single__photo {
        flex: 0 0 380px;
        min-height: 540px;
    }
}

/* Mobile: photo on top, content below */
@media (max-width: 768px) {
    .doctor-single {
        padding: 40px 0 60px;
    }

    .doctor-single__inner {
        flex-direction: column;
        gap: 24px;
    }

    .doctor-single__photo {
        flex: none;
        width: 100%;
        min-height: auto;
        max-height: 500px;
        border-radius: var(--radius);
        overflow: hidden;
    }

    .doctor-single__img {
        height: auto;
        max-height: 500px;
        object-fit: cover;
    }

    .doctor-single__content {
        padding-top: 80px;
    }

    .doctor-single__name {
        font-size: 1.6rem;
    }

    .doctor-single__specialty {
        font-size: 1rem;
    }
}

/* === Contacts Info Section === */
.contacts-info-section {
    padding: 60px 0;
    background: var(--bg-light);
    margin-top: 90px;
}

.contacts-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.contacts-info-block {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.contacts-info-block h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.contacts-info-list {
    list-style: none;
}

.contacts-info-list li {
    padding: 8px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.contacts-info-list li span {
    font-weight: 600;
    min-width: 60px;
    color: var(--text);
}

.contacts-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacts-links li a {
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.contacts-links li a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 768px) {
    .contacts-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contacts-info-block {
        padding: 20px;
    }
}

/* === Gallery Lightbox === */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

.gallery-lightbox .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: opacity 0.3s;
}

.gallery-lightbox .close-btn:hover {
    opacity: 0.7;
}

.gallery-lightbox .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: darkgray;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 8px;
    transition: background 0.3s;
    z-index: 10001;
    line-height: 1;
}

.gallery-lightbox .nav-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.gallery-lightbox .prev-btn {
    left: 20px;
}

.gallery-lightbox .next-btn {
    right: 20px;
}

@media (max-width: 768px) {
    .gallery-lightbox .nav-btn {
        font-size: 32px;
        padding: 14px 10px;
    }

    .gallery-lightbox .prev-btn {
        left: 8px;
    }

    .gallery-lightbox .next-btn {
        right: 8px;
    }

    .gallery-lightbox .close-btn {
        font-size: 36px;
        top: 12px;
        right: 16px;
    }
}

/* Кнопка zoom в лайтбоксе */
.gallery-lightbox .zoom-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.3s;
}

.gallery-lightbox .zoom-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox .zoom-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery-lightbox .zoom-btn .icon-zoom-out {
    display: none;
}

.gallery-lightbox.zoomed .zoom-btn .icon-zoom-in {
    display: none;
}

.gallery-lightbox.zoomed .zoom-btn .icon-zoom-out {
    display: block;
}

/* Состояние zoom: изображение можно перетаскивать */
.gallery-lightbox img {
    transition: transform 0.25s ease-out;
    will-change: transform;
    touch-action: none;
}

.gallery-lightbox.zoomed {
    cursor: grab;
}

.gallery-lightbox.zoomed:active {
    cursor: grabbing;
}

.gallery-lightbox.zoomed img {
    max-width: none;
    max-height: none;
    transition: none;
    cursor: inherit;
}

@media (max-width: 768px) {
    .gallery-lightbox .zoom-btn {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
    }

    .gallery-lightbox .zoom-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* === Gallery Section (T156 Bento Grid) === */
.clinic-gallery-section {
    margin: 0;
    padding: 40px 0;
    width: 100%;
    background: transparent;
}

.clinic-gallery-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--text);
}

.t156__container {
    --t156-indent-10-half: 5px;
    --t156-indent-20-half: 10px;
    --t156-indent-40-half: 20px;
    --t156-base-padding: 20px;
    --t156-base-padding-sm: 10px;
    --t156-padding-none: 0;
    --t156-padding-15: 15px;
    --t156-padding-35: 35px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    grid-auto-flow: row;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: var(--t156-base-padding);
    padding-right: var(--t156-base-padding);
}

.t156__container .t156__item {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
}

.t156__container .t156__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

/* === GL16N Grid Pattern (cycle of 10) === */

/* Large items - LEFT (cols 1-2, spans 2 rows) */
.t156__container .t156__item:nth-child(10n+1) {
    grid-column: 1 / span 2;
    grid-row: span 2;
}

/* Small items - RIGHT side (cols 3-4) */
.t156__container .t156__item:nth-child(10n+2) {
    grid-column: 3;
}

.t156__container .t156__item:nth-child(10n+3) {
    grid-column: 4;
}

.t156__container .t156__item:nth-child(10n+4) {
    grid-column: 3;
}

.t156__container .t156__item:nth-child(10n+5) {
    grid-column: 4;
}

/* Small items - LEFT side (cols 1-2) — rows 3-4, side by side with large-right */
.t156__container .t156__item:nth-child(10n+6) {
    grid-column: 1;
    grid-row: 3;
}

.t156__container .t156__item:nth-child(10n+7) {
    grid-column: 2;
    grid-row: 3;
}

.t156__container .t156__item:nth-child(10n+8) {
    grid-column: 1;
    grid-row: 4;
}

.t156__container .t156__item:nth-child(10n+9) {
    grid-column: 2;
    grid-row: 4;
}

/* Large items - RIGHT (cols 3-4, spans 2 rows) — rows 3-4, side by side with small-left */
.t156__container .t156__item:nth-child(10n) {
    grid-column: 3 / span 2;
    grid-row: 3 / span 2;
}

/* === Tail handling (incomplete last block) === */
.t156__container .t156__item:nth-last-child(1):nth-child(10n+2) {
    grid-column: 3 / span 2;
    grid-row: span 2;
}

.t156__container .t156__item:nth-last-child(2):nth-child(10n+2) {
    grid-column: 3 / span 2;
    grid-row: span 1;
}

.t156__container .t156__item:nth-last-child(1):nth-child(10n+3) {
    grid-column: 3 / span 2;
    grid-row: span 1;
}

.t156__container .t156__item:nth-last-child(1):nth-child(10n+4) {
    grid-column: 3 / span 2;
    grid-row: span 1;
}

/* === Mobile / tablet gallery: 2 columns === */
@media (max-width: 992px) {
    .t156__container {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 160px !important;
        grid-auto-flow: row dense !important;
    }

    .t156__container .t156__item:nth-child(n) {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .t156__container .t156__item:nth-child(10n+1),
    .t156__container .t156__item:nth-child(10n) {
        grid-column: 1 / -1 !important;
        grid-row: span 2 !important;
    }
}

@media (max-width: 480px) {
    .t156__container {
        grid-auto-rows: 130px !important;
    }
}

/* === Price page table styles === */
.page-content table {
    display: block;
    width: auto;
    min-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 16px;
}

.page-content table thead tr {
    background-color: #bceecd;
    color: var(--primary-dark);
    font-weight: 600;
    text-align: left;
}

.page-content table th,
.page-content table td {
    border: 1px solid #dddddd;
    padding: 12px 15px;
}

.page-content table tbody tr:nth-child(even) {
    background-color: #f9fffb;
}

.page-content table tr th:last-child {
    text-align: right;
}

.page-content table tr td:last-child {
    text-align: right;
    font-weight: 600;
}


/* === QA (Questions & Answers) Section === */

.qa-list-section {
    padding: 60px 0;
}

.qa-list-section h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.qa-list-section .section-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Filters */
.qa-filters {
    margin-bottom: 20px;
}

.qa-filter-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.qa-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qa-filter-tag {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    color: var(--text);
}

.qa-filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.qa-filter-tag.active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* Search */
.qa-search {
    margin-bottom: 30px;
}

.qa-search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: var(--transition);
}

.qa-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

/* QA Cards */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qa-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.qa-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.qa-card[data-hidden="true"] {
    display: none;
}

.qa-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.qa-card-category {
    background: var(--bg-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.qa-card-date {
    color: var(--text-light);
    font-size: 13px;
}

.qa-card-question {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.qa-card-question a {
    color: var(--text);
    text-decoration: none;
}

.qa-card-question a:hover {
    color: var(--primary);
}

.qa-card-excerpt {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.qa-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qa-card-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.qa-card-link:hover {
    text-decoration: underline;
}

.qa-card-votes {
    font-size: 13px;
    color: var(--text-light);
}

.qa-votes-positive {
    color: var(--success);
}

.qa-votes-negative {
    color: var(--danger);
}

.qa-empty {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 16px;
}

.pagination a {
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* CTA */
.qa-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.qa-cta p {
    margin-bottom: 16px;
    color: var(--text-light);
}

/* QA Single */
.qa-single-section {
    padding: 60px 0;
}

.breadcrumbs {
    margin-bottom: 24px;
    font-size: 15px;
    color: var(--text);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.breadcrumbs .breadcrumb-current {
    color: var(--text);
    font-weight: 500;
    opacity: 0.7;
}

.breadcrumbs > span {
    color: var(--text-muted);
    user-select: none;
    padding: 0 2px;
}

.qa-single-question {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
}

.qa-single-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-light);
}

.qa-single-date {
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 12px;
}

.qa-single-category {
    background: var(--primary);
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 12px;
}

.qa-single-question h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.qa-single-label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qa-single-text {
    line-height: 1.8;
    color: var(--text);
}

.qa-single-text p {
    margin-bottom: 12px;
}

.qa-single-answer {
    background: var(--bg);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
}

.qa-single-answer .qa-single-label {
    color: var(--primary);
}

.qa-single-votes {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.qa-chosen {
    color: var(--success);
    font-weight: 600;
}

/* Similar questions */
.qa-related {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.qa-related h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text);
    font-weight: 700;
}

.qa-related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.qa-related-card {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.qa-related-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.qa-related-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    background: var(--bg-light);
}

.qa-related-card:hover::before {
    transform: scaleY(1);
}

.qa-related-card-cat {
    display: inline-block;
    background: rgba(26, 82, 118, 0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.qa-related-card-title {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.qa-related-card:hover .qa-related-card-title {
    color: var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text);
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: 24px;
}

.ask-question-form .form-group {
    margin-bottom: 16px;
}

.ask-question-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
}

.ask-question-form select,
.ask-question-form input,
.ask-question-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.ask-question-form select:focus,
.ask-question-form input:focus,
.ask-question-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.ask-question-form textarea {
    resize: vertical;
}

.form-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.form-consent a {
    color: var(--primary);
}

.btn-full {
    width: 100%;
}

.form-success {
    text-align: center;
    padding: 20px;
    background: #e8f5e9;
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

.form-success p {
    margin: 4px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .qa-single-question {
        padding: 20px;
    }
    
    .qa-single-answer {
        padding: 20px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 10px;
    }
}


/* === Announcement Bar REMOVED - conflicts with design system === */
/* Header returns to default top: 0 */

/* === Hero Section (duplicate removed - consolidated above) === */

.hero-content {
    max-width: 800px;
    color: var(--text-white);
}

.hero-content h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-features {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-features .feature {
    text-align: center;
}

.hero-features .feature-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.hero-features h3 {
    font-size: 24px;
    color: var(--primary-light);
    margin-bottom: 5px;
}

.hero-features p {
    font-size: 14px;
    opacity: 0.85;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white) !important;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--text-white) !important;
    border-color: var(--text-white);
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--text) !important;
}

.btn-outline-light {
    background: transparent;
    color: var(--text-white) !important;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white) !important;
}

.btn-accent {
    background: var(--accent);
    color: var(--text-white) !important;
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

/* === Section Styles === */
.page-section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* === Services Grid === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 35px 25px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text);
}

.service-card p {
    font-size: 15px;
    color: var(--text-light);
}

/* === About Section === */
.about-section {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    gap: 40px;
}

.about-image img,
.about-image-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.about-content p {
    font-size: 17px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-content ul {
    margin: 15px 0 25px 20px;
}

/* === About Cards Layout === */
.about-cards {
    display: grid;
    gap: 32px;
}

.about-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.about-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-light) 100%);
    border-bottom: 1px solid var(--border);
}

.about-card-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.about-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
}

.about-card-body {
    padding: 24px 28px;
}

.about-card-body p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 14px;
}

.about-card-body p:last-child {
    margin-bottom: 0;
}

.about-card-body a {
    color: var(--primary-light);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 2px;
    transition: var(--transition-fast);
}

.about-card-body a:hover {
    color: var(--accent-dark);
    text-decoration-color: var(--primary-light);
}

/* Details inside cards */
.about-card-details {
    margin: 20px 0 0 0;
    border-top: 1px dashed var(--border);
    padding-top: 16px;
}

.about-card-summary {
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    font-size: 15px;
}

.about-card-summary:hover {
    color: var(--accent-dark);
}

.about-card-summary::before {
    content: "▶";
    font-size: 12px;
    transition: transform 0.2s ease;
    display: inline-block;
}

details[open].about-card-details .about-card-summary::before {
    content: "▼";
    transform: rotate(0deg);
}

.about-card-content {
    padding: 16px 0 8px 28px;
}

.about-card-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Profile card variant */
.about-card--profile {
    border: 2px solid var(--accent-light);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(200, 164, 94, 0.1);
}

.about-card--profile .about-card-header {
    background: linear-gradient(135deg, var(--bg-warm) 0%, rgba(200, 164, 94, 0.08) 100%);
}

.about-card-body--profile {
    padding: 0;
}

.about-profile {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
}

.about-profile-image {
    position: relative;
    overflow: hidden;
}

.about-profile-image img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.about-profile-info {
    padding: 28px;
}

.about-profile-info p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
}

.about-profile-info strong {
    color: var(--primary);
    font-size: 17px;
}

/* === Responsive === */
@media (max-width: 992px) {
    .about-cards {
        gap: 24px;
    }
    
    .about-profile {
        grid-template-columns: 1fr;
    }
    
    .about-profile-image img {
        min-height: 300px;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .about-card-header {
        padding: 16px 20px;
    }
    
    .about-card-icon {
        font-size: 26px;
    }
    
    .about-card-header h3 {
        font-size: 1.1rem;
    }
    
    .about-card-body,
    .about-profile-info {
        padding: 20px;
    }
    
    .about-card-body p,
    .about-profile-info p {
        font-size: 15px;
    }
}

.about-content li {
    margin-bottom: 10px;
    font-size: 17px;
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, var(--bg-dark), #1a3a5c);
    padding: 80px 0;
    text-align: center;
    color: var(--text-white);
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-white);
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Footer === */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(1.2) contrast(1.1);
}

.footer-brand .footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-white);
}

.footer-desc {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    color: var(--text-white);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-contacts h4,
.footer-links h4,
.footer-legal h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-address {
    font-size: 15px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-phone {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-light) !important;
    margin-bottom: 10px;
}

.footer-email {
    display: block;
    font-size: 15px;
    color: var(--primary-light) !important;
    margin-bottom: 15px;
}

.footer-hours {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.8;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-legal li {
    margin-bottom: 10px;
}

.footer-legal a {
    color: var(--text-white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
}

.footer-disclaimer {
    font-size: 13px;
    opacity: 0.5;
    max-width: 600px;
    text-align: right;
}

/* === QA Cards === */
.qa-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.qa-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.qa-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.qa-card-category {
    background: var(--bg-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.qa-card-date {
    color: var(--text-light);
    font-size: 13px;
}

.qa-card-question {
    font-size: 18px;
    margin-bottom: 10px;
}

.qa-card-question a {
    color: var(--text);
}

.qa-card-question a:hover {
    color: var(--primary);
}

.qa-card-excerpt {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.qa-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.qa-card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.qa-card-link:hover {
    color: var(--primary-dark);
}

.qa-card-votes {
    font-size: 13px;
    margin-left: 15px;
}

.qa-votes-positive {
    color: var(--success);
}

.qa-votes-negative {
    color: var(--danger);
}

.qa-chosen {
    color: var(--success);
    font-weight: 600;
}

/* === QA Single Page === */
.qa-single-section {
    padding: 100px 0 60px;
}

.breadcrumbs {
    margin-bottom: 24px;
    font-size: 15px;
    color: var(--text);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 500;
    opacity: 0.7;
}

.breadcrumbs > span {
    color: var(--text-muted);
    user-select: none;
    padding: 0 2px;
}

.qa-single-question {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
}

.qa-single-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.qa-single-date {
    color: var(--text-light);
    font-size: 14px;
}

.qa-single-category {
    background: var(--bg);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.qa-single-question h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text);
}

.qa-single-label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    font-size: 16px;
}

.qa-single-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}

.qa-single-answer {
    background: var(--bg);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
}

.qa-single-votes {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* === Similar Questions === */
.qa-related {
    margin-top: 40px;
}

.qa-related h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text);
    font-weight: 700;
}

.qa-related-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.qa-related-card {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.qa-related-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.qa-related-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    background: var(--bg-light);
}

.qa-related-card:hover::before {
    transform: scaleY(1);
}

.qa-related-card-cat {
    display: inline-block;
    background: rgba(26, 82, 118, 0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.qa-related-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    transition: color 0.2s ease;
}

.qa-related-card:hover .qa-related-card-title {
    color: var(--primary);
}

/* === CTA Box === */
.qa-cta {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-top: 40px;
}

.qa-cta p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text);
}

/* === Category Filter === */
.qa-filters {
    margin-bottom: 25px;
}

.qa-filter-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.qa-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qa-filter-tag {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.qa-filter-tag:hover,
.qa-filter-tag.active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* === Search === */
.qa-search {
    margin-bottom: 30px;
}

.qa-search-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

.qa-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(57, 192, 250, 0.15);
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 6000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text);
}

.modal-content h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text);
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.form-consent input {
    width: auto;
}

.form-consent label {
    font-size: 13px;
    color: var(--text-light);
}

.form-consent a {
    color: var(--primary);
}

.form-success {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.form-success p {
    margin-bottom: 8px;
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a {
    padding: 10px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* === Empty State === */
.qa-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 18px;
}

/* === Single Page Content === */
.single-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

.single-page h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--text);
}

.page-content {
    font-size: 17px;
    line-height: 1.8;
}

.page-content h2 {
    font-size: 28px;
    margin: 30px 0 15px;
    color: var(--text);
}

.page-content h3 {
    font-size: 22px;
    margin: 25px 0 12px;
    color: var(--text);
}

.page-content ul,
.page-content ol {
    margin: 15px 0 20px 20px;
}

.page-content li {
    margin-bottom: 8px;
}

/* === Content Grid (for list pages) === */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.content-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
}

.content-card-body {
    padding: 25px;
}

.content-card-body h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.content-card-body h2 a {
    color: var(--text);
}

.content-card-body h2 a:hover {
    color: var(--primary);
}

.content-card-body p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    /* Announcement bar removed - no need to style */
    
    body {
        padding-top: 60px;
    }
    
    .header {
        top: 0;
    }
    
    .header-inner {
        padding: 10px 15px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .header-phone {
        display: none;
    }
    
    .header-social {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .header-nav {
        display: none;
    }
    
    .header-nav.mobile-open {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .nav-item {
        margin: 5px 0;
    }
    
    .hero {
        min-height: 500px;
        padding: 100px 15px 60px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        gap: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    @media (min-width: 576px) {
        .services-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 992px) {
        .services-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-disclaimer {
        text-align: center;
    }
    
    .modal-content {
        padding: 25px;
    }
    
    .single-page h1 {
        font-size: 28px;
    }
    
    .qa-single-question h1 {
        font-size: 22px;
    }
    
    .qa-card {
        padding: 20px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* === Mobile Bottom Navigation === */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 5002;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-nav.visible {
    display: block;
}

.mobile-nav-list {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    flex: 1;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 5px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 11px;
    transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
}

.mobile-nav-icon {
    font-size: 22px;
    margin-bottom: 3px;
}

/* === Header hidden state === */
.header-hidden {
    transform: translateY(-100%);
}

/* === Fade-in Animation === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 20px;
    z-index: 7000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner p {
    font-size: 14px;
    opacity: 0.9;
}

.cookie-banner button {
    padding: 10px 24px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

.cookie-banner.hidden {
    display: none !important;
}

/* === prefers-reduced-motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero::after,
    .hero-decor-1,
    .hero-decor-2,
    .cta-section::before,
    .cta-section::after {
        display: none !important;
    }
}

/* === Tech Notice === */
.tech-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    z-index: 8000;
    max-width: 400px;
    text-align: center;
    display: none;
}

.tech-notice.show {
    display: block;
}

.tech-notice h3 {
    margin-bottom: 15px;
    color: var(--text);
}

.tech-notice p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.tech-notice.hidden {
    display: none !important;
}

/* === Ask Question Button (fixed) === */
.ask-question-btn {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: 50px;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 4500;
    transition: var(--transition);
}

/* === Header Specialization Tags === */
.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

/* === Article Cards === */
.service-card-image {
    transition: var(--transition);
}

.service-card:hover .service-card-image {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.service-card-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.service-card:hover .service-card-link {
    color: var(--primary-dark);
}

/* === Article Single Page === */
.article-single {
    background: var(--bg);
    padding: 40px 48px;
    border-radius: var(--radius);
}

.article-content {
    line-height: 1.9;
    font-size: 17px;
    color: var(--text);
}

.article-content h1,
.article-content h2 {
    color: var(--text);
    margin: 40px 0 20px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.article-content h3 {
    color: var(--text);
    margin: 32px 0 16px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text);
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 12px;
    padding-left: 4px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 24px 0;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: var(--primary-dark);
}

/* === Pagefind Search Styles === */
.pagefind-ui__result {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    transition: var(--transition);
    cursor: pointer;
}

.pagefind-ui__result:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.pagefind-ui__result__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.pagefind-ui__result__excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.pagefind-ui__result__tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 5px;
}

.pagefind-ui__form {
    width: 100%;
}

.pagefind-ui__search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: var(--transition);
}

.pagefind-ui__search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.pagefind-ui__clear {
    color: var(--primary) !important;
}

.pagefind-ui__filter {
    display: none;
}

/* === QA Section Improvements === */
.qa-card-excerpt {
    max-height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qa-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.qa-pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.qa-pagination-btn:hover, .qa-pagination-btn.active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

.ask-question-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--focus-ring);
}

@media (max-width: 768px) {
    .ask-question-btn {
        bottom: 70px;
        right: 20px;
        padding: 12px 22px;
        font-size: 14px;
    }
}

/* === Accessibility: Reduced opacity for decorative elements === */
.hero-decor-1,
.hero-decor-2 {
    opacity: 0.6;
}

/* === Article Card === */
.article-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.article-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-light);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-body {
    padding: 20px;
}

.article-card-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    line-height: 1.4;
}

.article-card-title a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.article-card-title a:hover {
    color: var(--accent);
}

.article-card-description {
    margin: 0 0 16px 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.article-card-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.article-card-link:hover {
    color: var(--accent);
}

/* === Article Grid === */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .article-card-image {
        height: 150px;
    }
}

/* === Contact Method Selector (radio buttons) === */
.contact-method-selector {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.contact-method-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 16px;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    transition: var(--transition, all 0.3s ease);
    background: var(--bg-secondary, #fff);
}

.contact-method-option:hover {
    border-color: var(--primary, #1a5276);
    background: var(--bg-tertiary, #f8f9fa);
}

.contact-method-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary, #1a5276);
}

.contact-method-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary, #333);
    user-select: none;
}

.contact-method-option:has(input:checked) {
    border-color: var(--primary, #1a5276);
    background: var(--primary-light, rgba(26, 82, 118, 0.08));
    box-shadow: 0 0 0 1px var(--primary, #1a5276);
}

.contact-method-option:has(input:checked) .contact-method-label {
    color: var(--primary, #1a5276);
    font-weight: 600;
}

@media (max-width: 768px) {
    .contact-method-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-method-option {
        padding: 12px 14px;
    }
}

/* === Advocate Profile Section === */
.advocate-profile {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin: 20px 0 30px 0;
    padding: 20px;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: var(--radius-md, 8px);
}

.advocate-photo {
    width: 200px;
    height: 260px;
    object-fit: cover;
    border-radius: var(--radius-md, 8px);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.advocate-profile p {
    margin: 0;
    line-height: 1.8;
    color: var(--text-primary, #333);
    font-size: 16px;
}

@media (max-width: 768px) {
    .advocate-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }
    
    .advocate-photo {
        width: 160px;
        height: 210px;
    }
}

/* === Read More Toggle === */
.read-more-content {
    display: none;
    padding: 16px;
    line-height: 1.7;
    color: var(--text);
}

.read-more-content.show {
    display: block;
}

.read-more-content p {
    margin-bottom: 12px;
}

.read-more-content p:last-child {
    margin-bottom: 0;
}

.read-more-content a {
    color: var(--primary-light);
    text-decoration: underline;
}

.read-more-content a:hover {
    color: var(--primary);
}

.read-more-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.read-more-content li {
    margin-bottom: 8px;
}

.read-more-link {
    margin-top: 12px;
    margin-bottom: 0;
}

.read-more-link a {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.read-more-link a:hover {
    color: var(--accent-dark);
}

/* === About Article === */
.about-article {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.about-article h2 {
    color: var(--primary);
    margin-bottom: 16px;
}

.about-article p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.about-image {
    margin: 16px 0;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* === Shortcode: Details === */
.shortcode-details {
    margin: 20px 0;
    padding: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.details-summary {
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    list-style: none;
    font-size: 1.1rem;
}

.details-summary::-webkit-details-marker {
    display: none;
}

.details-summary::before {
    content: "▶ ";
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 0.8rem;
}

details[open] .details-summary::before {
    content: "▼ ";
}

.details-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.details-content p {
    margin-bottom: 12px;
}

.details-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.details-content li {
    margin-bottom: 8px;
}

/* ===================================================================
   SVG Decorative Elements — scales & Themis
   =================================================================== */

/* --- Hero SVG decorations --- */
.hero-decor {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.18;
}

.hero-decor-scales {
    top: 8%;
    left: 3%;
    width: 160px;
    height: 190px;
}

.hero-decor-themis {
    bottom: 0;
    right: 4%;
    width: 120px;
    height: 220px;
    opacity: 0.12;
}

.hero-svg {
    width: 100%;
    height: 100%;
}

.hero-svg.scales-svg {
    animation: scaleSway 8s ease-in-out infinite;
    transform-origin: 60px 28px;
}

.hero-svg.themis-svg {
    animation: themisFloat 10s ease-in-out infinite;
}

@keyframes scaleSway {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

@keyframes themisFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.02);
    }
}

/* --- CTA SVG decorations --- */
.cta-decor {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.1;
}

.cta-decor-scales {
    top: -20px;
    left: 5%;
    width: 100px;
    height: 120px;
    animation: ctaScaleSway 9s ease-in-out infinite;
}

.cta-decor-themis {
    bottom: -30px;
    right: 6%;
    width: 90px;
    height: 160px;
    animation: ctaThemisFloat 11s ease-in-out infinite;
}

.cta-decor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes ctaScaleSway {
    0%, 100% {
        transform: rotate(-4deg) translateX(0);
    }
    50% {
        transform: rotate(4deg) translateX(8px);
    }
}

@keyframes ctaThemisFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ===================================================================
   Shimmer effects — gold shimmer sweep on interactive elements
   =================================================================== */

/* Shimmer on primary / accent buttons */
.shimmer-btn,
.shimmer-btn-outline {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::before,
.shimmer-btn-outline::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(200, 164, 94, 0.15) 40%,
        rgba(224, 198, 122, 0.35) 50%,
        rgba(200, 164, 94, 0.15) 60%,
        transparent 100%
    );
    animation: shimmerSweep 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.shimmer-btn::before {
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(200, 164, 94, 0.2) 40%,
        rgba(224, 198, 122, 0.4) 50%,
        rgba(200, 164, 94, 0.2) 60%,
        transparent 100%
    );
}

/* Shimmer on feature icons */
.shimmer-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shimmer-icon::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(200, 164, 94, 0.25) 25%,
        transparent 50%
    );
    animation: shimmerSpin 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.shimmer-icon:hover::before {
    opacity: 1;
}

@keyframes shimmerSweep {
    0% {
        left: -75%;
    }
    40%, 100% {
        left: 125%;
    }
}

@keyframes shimmerSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Shimmer on gold decorative SVGs */
.hero-svg.scales-svg,
.cta-decor-scales img {
    filter: drop-shadow(0 0 8px rgba(200, 164, 94, 0.25));
    transition: filter 0.4s ease;
}

.hero-svg.scales-svg:hover,
.cta-decor-scales img:hover {
    filter: drop-shadow(0 0 16px rgba(200, 164, 94, 0.5));
}

/* Gold shimmer pulse on Themis SVG */
.hero-svg.themis-svg,
.cta-decor-themis img {
    animation: themisFloat 10s ease-in-out infinite, themisGoldPulse 5s ease-in-out infinite alternate;
}

@keyframes themisGoldPulse {
    0% {
        filter: drop-shadow(0 0 4px rgba(200, 164, 94, 0.15));
    }
    100% {
        filter: drop-shadow(0 0 14px rgba(200, 164, 94, 0.4));
    }
}
