:root {
    --bg: #f7f1e8;
    --surface: #fffdf8;
    --surface-strong: #ffffff;
    --surface-soft: #efe5d8;
    --text: #1d2f3f;
    --muted: #5d6a75;
    --line: #d8cbb8;
    --accent: #203f5a;
    --accent-strong: #162f46;
    --highlight: #be8a43;
    --highlight-soft: rgba(190, 138, 67, 0.14);
    --shadow: 0 18px 40px rgba(24, 45, 65, 0.08);
    --radius: 24px;
    --radius-small: 14px;
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(190, 138, 67, 0.12), transparent 28%),
        linear-gradient(180deg, #fbf7f0 0%, var(--bg) 100%);
    font: 16px/1.65 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

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

p,
ul {
    margin: 0;
}

ul {
    padding-left: 1.2rem;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--accent-strong);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 4.9rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.3rem;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 10px 14px;
    z-index: 20;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 15;
    backdrop-filter: blur(18px);
    background: rgba(251, 247, 240, 0.88);
    border-bottom: 1px solid rgba(216, 203, 184, 0.7);
}

.header-shell {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) auto auto;
    gap: 24px;
    align-items: center;
    padding: 18px 0;
}

.brand-mark {
    display: inline-block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--accent-strong);
}

.brand-copy {
    margin-top: 4px;
    max-width: 30rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: center;
}

.nav-link,
.nav-dropdown summary {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.nav-link:hover,
.nav-dropdown summary:hover,
.nav-link.is-active {
    color: var(--accent);
}

.nav-dropdown.is-active summary {
    color: var(--accent);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary::after {
    content: "▾";
    margin-left: 7px;
    font-size: 0.9em;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    display: none;
    min-width: 280px;
    padding: 12px;
    border: 1px solid rgba(216, 203, 184, 0.8);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: var(--shadow);
}

.nav-dropdown[open] .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
    display: grid;
    gap: 8px;
}

.nav-dropdown-menu a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
}

.nav-dropdown-menu a:hover {
    background: var(--highlight-soft);
    color: var(--accent);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-phone {
    font-weight: 700;
    color: var(--accent-strong);
    white-space: nowrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-small {
    min-height: 44px;
    padding: 0 18px;
}

.button-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 16px 28px rgba(32, 63, 90, 0.22);
}

.button-primary:hover {
    background: var(--accent-strong);
}

.button-secondary {
    border-color: rgba(32, 63, 90, 0.15);
    background: rgba(255, 255, 255, 0.8);
    color: var(--accent);
}

.button-secondary:hover {
    background: #fff;
}

.button-light {
    background: #fff;
    color: var(--accent);
}

.button-ghost {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.hero,
.page-intro,
.section {
    padding: 84px 0;
}

.hero-home {
    padding-top: 96px;
}

.hero-layout,
.split-layout,
.contact-grid {
    display: grid;
    gap: 28px;
}

.hero-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    align-items: center;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--highlight-soft);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.eyebrow-light {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
}

.lead {
    margin-top: 24px;
    max-width: 44rem;
    color: var(--muted);
    font-size: 1.12rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-panel,
.card,
.info-box {
    border: 1px solid rgba(216, 203, 184, 0.7);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.92);
    box-shadow: var(--shadow);
}

.hero-panel,
.info-box {
    padding: 28px;
}

.panel-title,
.info-box-title,
.footer-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.hero-panel-note {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(216, 203, 184, 0.8);
}

.hero-panel-note span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-panel-note strong {
    display: block;
    margin-top: 6px;
    font-size: 1.1rem;
    color: var(--accent);
}

.section-soft {
    background: linear-gradient(180deg, rgba(239, 229, 216, 0.72) 0%, rgba(239, 229, 216, 0.34) 100%);
}

.section-accent {
    color: #fff;
    background: linear-gradient(135deg, #17324a 0%, #244766 60%, #315679 100%);
}

.section-head {
    max-width: 48rem;
    margin-bottom: 34px;
}

.section-head-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head p,
.split-layout p,
.card p,
.timeline-item p,
.footer-text,
.contact-card span,
.contact-panel p,
.messenger-card span {
    color: var(--muted);
}

.card-grid {
    display: grid;
    gap: 22px;
}

.card-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid-3,
.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    padding: 28px;
}

.card h3 {
    margin-bottom: 12px;
}

.card-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--highlight-soft);
    color: var(--highlight);
    font-weight: 800;
}

.service-card a h3,
.service-card h3 a {
    color: var(--accent-strong);
}

.service-card:hover,
.feature-card:hover,
.price-card:hover,
.contact-card:hover {
    transform: translateY(-3px);
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--accent);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.stat-card {
    padding: 26px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(216, 203, 184, 0.7);
    text-align: center;
}

.stat-card strong {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    line-height: 1;
}

.stat-card h3 {
    margin-bottom: 10px;
}

.cta-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta-block p,
.section-accent h2 {
    color: #fff;
}

.page-intro {
    padding-bottom: 46px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.95rem;
}

.breadcrumbs a {
    color: var(--accent);
}

.breadcrumbs span::before {
    content: "•";
    margin-right: 10px;
    color: rgba(93, 106, 117, 0.55);
}

.split-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    align-items: start;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(216, 203, 184, 0.7);
    border-radius: var(--radius-small);
    background: rgba(255, 253, 248, 0.86);
}

.timeline-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}

.check-list {
    display: grid;
    gap: 12px;
    padding-left: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--highlight);
    font-weight: 800;
}

.pricing-grid {
    display: grid;
    gap: 22px;
}

.price-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.price-card .button {
    width: 100%;
    margin-top: auto;
}

.price-card-featured {
    border-color: rgba(32, 63, 90, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 241, 229, 0.98) 100%);
}

.price-badge {
    display: inline-flex;
    align-self: start;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    align-items: center;
}

.price-value {
    color: var(--accent);
    font-size: 2rem;
    font-weight: 800;
}

.price-value span {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

.contact-grid {
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.3fr);
    align-items: start;
}

.contact-stack {
    display: grid;
    gap: 18px;
}

.contact-card p {
    margin: 10px 0 8px;
    color: var(--accent);
    font-size: 1.15rem;
    font-weight: 700;
}

.contact-panel {
    padding: 32px;
}

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

.messenger-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.messenger-card {
    padding: 24px;
    border: 1px solid rgba(216, 203, 184, 0.85);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
}

.messenger-card h3 {
    margin-bottom: 10px;
}

.messenger-card p {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
}

.messenger-card a:hover {
    color: var(--accent-strong);
}

.site-footer {
    padding: 34px 0 18px;
    border-top: 1px solid rgba(216, 203, 184, 0.78);
    background: rgba(255, 253, 248, 0.9);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 26px;
}

.footer-list {
    display: grid;
    gap: 10px;
    padding-left: 0;
    list-style: none;
    color: var(--muted);
}

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

.footer-bottom {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(216, 203, 184, 0.6);
    color: var(--muted);
    font-size: 0.95rem;
}

@media (max-width: 1100px) {
    .header-shell,
    .hero-layout,
    .split-layout,
    .contact-grid,
    .footer-grid,
    .card-grid-4,
    .card-grid-3,
    .pricing-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-shell {
        grid-template-columns: 1fr;
    }

    .site-nav,
    .header-contacts {
        justify-content: flex-start;
    }

    .hero-panel {
        max-width: 34rem;
    }

    .cta-block {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .hero,
    .page-intro,
    .section {
        padding: 64px 0;
    }

    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .site-nav {
        gap: 12px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown summary {
        display: inline-flex;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        margin-top: 10px;
    }

    .hero-layout,
    .split-layout,
    .contact-grid,
    .footer-grid,
    .card-grid-4,
    .card-grid-3,
    .pricing-grid,
    .stats-grid,
    .messenger-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .header-contacts {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-actions .button {
        width: 100%;
    }
}
