/* ===== DESIGN SYSTEM ===== */
:root {
    --color-primary: #1a3a52;
    --color-primary-light: #2a5a7a;
    --color-primary-dark: #0f2435;
    --color-accent: #c9a55c;
    --color-accent-light: #e8d4a8;
    --color-warm: #f8f5f0;
    --color-text: #2c3e50;
    --color-text-light: #6b7c8a;
    --color-white: #ffffff;
    --color-border: #e8e8e8;

    --font-display: 'Montserrat', -apple-system, sans-serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;

    --shadow-soft: 0 4px 20px rgba(26, 58, 82, 0.08);
    --shadow-medium: 0 8px 40px rgba(26, 58, 82, 0.12);
    --shadow-strong: 0 16px 60px rgba(26, 58, 82, 0.16);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 4K screens - limit max width */
@media (min-width: 2000px) {
    .container {
        max-width: 1600px;
    }

    .hero-inner {
        max-width: 1600px;
    }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-soft);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--color-primary);
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--color-text-light);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
    background: var(--color-warm);
}

.nav-link.dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link.dropdown::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: var(--transition);
}

/* Dropdown menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-medium);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 8px 0;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text);
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-dropdown .dropdown-menu a:hover {
    background: var(--color-warm);
    color: var(--color-primary);
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-medium);
    padding: 16px 24px;
}

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

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: var(--color-text);
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

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

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

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

.btn-accent {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

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

/* ===== HERO ===== */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--color-warm) 0%, var(--color-white) 50%, #f0f4f8 100%);
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(26, 58, 82, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(201, 165, 92, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 165, 92, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-primary-dark);
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--color-accent);
    position: relative;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 8px;
}

.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.hero-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-image-placeholder {
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
    text-align: center;
    padding: 40px;
    font-family: var(--font-display);
}

.hero-card {
    position: absolute;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-medium);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-card-1 {
    bottom: -30px;
    left: -40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-card-icon {
    width: 48px;
    height: 48px;
    background: var(--color-warm);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hero-card-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.hero-card-text span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.hero-card-2 {
    bottom: 80px;
    right: -30px;
    text-align: center;
    animation-delay: -3s;
}

.hero-card-2 .rating {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 4px;
    color: var(--color-accent);
}

.hero-card-2 span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ===== SERVICES ===== */
.services {
    padding: 80px 24px;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--color-warm);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.75rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    transform: scale(1.05);
}

.service-card:hover .service-icon svg {
    stroke: var(--color-white);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

.service-card:hover .service-link {
    gap: 12px;
    color: var(--color-accent);
}

/* ===== ADVANTAGES ===== */
.advantages {
    padding: 80px 24px;
    background: var(--color-primary-dark);
    position: relative;
    overflow: hidden;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(201, 165, 92, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 165, 92, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.advantages .section-header {
    position: relative;
    z-index: 1;
}

.advantages .section-title {
    color: var(--color-white);
}

.advantages .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.advantage-item {
    text-align: center;
    padding: 32px 24px;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(201, 165, 92, 0.15);
    border: 1px solid rgba(201, 165, 92, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.advantage-item:hover .advantage-icon {
    background: var(--color-accent);
    transform: scale(1.1);
}

.advantage-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
}

.advantage-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ===== TEAM ===== */
.team {
    padding: 80px 24px;
    background: var(--color-warm);
}

.team-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.team-info .section-label,
.team-info .section-title {
    text-align: left;
}

.team-text {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 32px;
}

.team-list {
    list-style: none;
    margin-bottom: 40px;
}

.team-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
    color: var(--color-text);
}

.team-list li::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.team-card {
    display: block;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-decoration: none;
}

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

.team-card-avatar {
    width: 100%;
    height: 240px;
    background: #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-text-light);
    overflow: hidden;
}

.team-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.team-card-info {
    padding: 20px;
}

.team-card-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}

.team-card-role {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.team-card-bio {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 80px 24px;
    background: var(--color-white);
}

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

.testimonial-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-medium);
    border-color: transparent;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 16px;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-primary);
}

.testimonial-name {
    font-weight: 600;
    color: var(--color-primary-dark);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ===== CTA ===== */
.cta {
    padding: 80px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-accent {
    font-size: 1.05rem;
    padding: 16px 32px;
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    padding: 16px 24px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.cta-phone:hover {
    border-color: var(--color-white);
    background: rgba(255,255,255,0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 80px 24px 40px;
}

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

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(201, 165, 92, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.footer-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 24px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--color-white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
}

.footer-contact-item svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

.footer-contact-item a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.5;
}

.footer-bottom-links a {
    white-space: nowrap;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

/* ===== CONTENT PAGES ===== */
.wrapper {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: calc(100vh - 400px);
}

.wrapper h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 24px;
}

.wrapper h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    margin-top: 40px;
    margin-bottom: 16px;
}

.wrapper h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-primary-dark);
    margin-top: 32px;
    margin-bottom: 12px;
}

.wrapper p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.wrapper ul, .wrapper ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.wrapper li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 32px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.wrapper table thead {
    background: var(--color-primary);
    color: var(--color-white);
}

.wrapper table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.wrapper table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
    line-height: 1.6;
    vertical-align: top;
}

.wrapper table tbody tr:last-child td {
    border-bottom: none;
}

.wrapper table tbody tr:hover {
    background: var(--color-warm);
}

.wrapper table td:last-child {
    font-weight: 600;
    color: var(--color-primary-dark);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .wrapper table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wrapper table th,
    .wrapper table td {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image {
        height: 400px;
    }

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

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

    .team-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

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

@media (max-width: 768px) {
    .header-inner {
        height: 70px;
    }

    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 32px;
    }

    .hero-card-1 {
        left: 10px;
        bottom: -20px;
    }

    .hero-card-2 {
        right: 10px;
        bottom: 60px;
    }

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

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

    .team-cards {
        grid-template-columns: 1fr;
    }

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

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

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

    .wrapper {
        padding-top: 100px;
    }
}

/* ===== OLD STYLES RESET ===== */
.home-cards,
.cards-grid,
.home-card {
    display: none !important;
}

.site-header,
.navbar {
    display: none !important;
}

/* Override old container */
body > .container {
    max-width: 100%;
    padding: 0;
}

body > .container > .wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}


/* Форма заявки: ловушка для ботов, капча, сообщение об отправке */
.form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-captcha {
    min-height: 102px;
    margin-bottom: 16px;
}

.form-status {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.4;
}

.form-status:empty {
    display: none;
}

.form-status--ok {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.form-status--error {
    color: #b3261e;
}

/* Согласие на обработку персональных данных в форме */
.form-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 4px 0 16px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.form-consent input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary);
}

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

/* Незаполненные реквизиты оператора — видны до запуска */
mark.todo {
    background: #fff3b0;
    color: #6b4e00;
    padding: 0 4px;
    border-radius: 3px;
}

/* Блок «Стоимость и срок» на страницах услуг (шорткод price) */
.price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    margin: 20px 0 28px;
    padding: 18px 22px;
    background: var(--color-warm);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-sm);
}

.price-block-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-block-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-light);
}

.price-block-item strong {
    font-size: 18px;
    color: var(--color-primary-dark);
}

.price-block-note {
    font-size: 13px;
    color: var(--color-text-light);
}

.price-block-cta {
    margin-left: auto;
}

@media (max-width: 600px) {
    .price-block-cta {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* Как найти вход — под заголовком карты на странице контактов */
.contact-directions {
    max-width: 820px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.contact-directions p {
    margin-bottom: 10px;
}

/* Кнопка в блоке цены стоит внутри текста статьи: правило .page-body a
   перекрашивало её текст в цвет фона кнопки */
.page-body a.price-block-cta,
.page-body a.price-block-cta:hover {
    color: var(--color-white);
}

/* Переход по якорю (витрина → раздел): заголовок не прячется под фиксированной шапкой */
.page-body h2[id],
.page-body h3[id] {
    scroll-margin-top: 110px;
}

/* Форма «Перезвоните мне» (partial callback-form.html) */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.callback-form {
    max-width: 520px;
    margin: 24px auto 0;
    text-align: left;
}

.callback-row {
    display: flex;
    gap: 10px;
}

.callback-row input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-white);
}

.callback-row input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.15);
}

.callback-row .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.callback-form .form-consent {
    margin: 12px 0 0;
    font-size: 13px;
}

.callback-form--dark .form-consent,
.callback-form--dark .form-consent a,
.callback-form--dark .form-status,
.callback-form--dark .form-status--ok {
    color: rgba(255, 255, 255, 0.9);
}

.callback-form--dark .form-status--error {
    color: #ffd6d2;
}

.cta-or {
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    position: relative;
}

.cta .callback-form {
    position: relative;
}

.service-cta .callback-form {
    margin-bottom: 20px;
}

.page-callback {
    max-width: 900px;
    margin: 48px 0 40px;
    padding: 36px 40px;
    background: var(--color-warm);
    border-radius: var(--radius-lg);
}

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

.page-callback p {
    margin: 0;
    line-height: 1.7;
}

.page-callback .callback-form {
    margin: 20px 0 0;
}

@media (max-width: 560px) {
    .callback-row {
        flex-direction: column;
    }
    .page-callback {
        padding: 28px 20px;
    }
}

/* Главная: блок «Не согласны с заключением эксперта?» */
.review-band {
    padding: 64px 24px;
    background: var(--color-warm);
}

.review-band-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px 56px;
    align-items: center;
    border-left: 4px solid var(--color-accent);
    padding-left: 32px;
}

.review-band-text .section-title {
    margin-bottom: 12px;
}

.review-band-text p {
    margin: 0;
    max-width: 640px;
    color: var(--color-text-light);
    line-height: 1.7;
}

.review-band-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.review-band-price {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.review-band-term {
    color: var(--color-text-light);
    margin-bottom: 12px;
}

/* Преподавание и выступления (data/events.yaml) */
.teaching {
    padding: 80px 24px;
}

.events-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-body ul.events-list li {
    padding-left: 0;
}

.page-body ul.events-list li::before {
    content: none;
}

.events-item {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 8px 24px;
    padding: 20px 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.events-date {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent);
    padding-top: 3px;
}

.events-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.events-title {
    color: var(--color-primary-dark);
    line-height: 1.4;
}

.events-text {
    color: var(--color-text-light);
    line-height: 1.6;
}

.events-expert {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: underline;
}

.events-photo {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.teaching-more {
    text-align: center;
    margin: 28px 0 0;
}

.teaching-more a {
    color: var(--color-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .review-band-inner {
        grid-template-columns: 1fr;
        padding-left: 20px;
    }
    .events-item {
        grid-template-columns: 1fr;
    }
    .events-photo {
        width: 100%;
        height: auto;
    }
}
