:root {
    --bg: #f3efe8;
    --surface: #fffdf8;
    --surface-strong: #f7f0e4;
    --text: #1c1917;
    --muted: #57534e;
    --line: rgba(28, 25, 23, 0.12);
    --accent: #b45309;
    --accent-dark: #7c2d12;
    --accent-soft: #f59e0b;
    --ink-soft: #6b5b4d;
    --shadow: 0 18px 50px rgba(28, 25, 23, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --page-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 24rem),
        linear-gradient(180deg, #f7f2e9 0%, var(--bg) 42%, #efe8dc 100%);
}

a {
    color: inherit;
}

.site-shell {
    min-height: 100vh;
}

.shell-main {
    width: min(calc(100% - 32px), var(--page-width));
    margin: 0 auto;
    padding: 24px 0 64px;
}

.contacts-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 24px;
    align-items: start;
}

.contacts-panel,
.contacts-form-card {
    background: rgba(255, 253, 248, 0.78);
    border: 1px solid rgba(28, 25, 23, 0.08);
    box-shadow: var(--shadow);
    border-radius: 28px;
    padding: 30px;
}

.contacts-panel h1 {
    margin: 16px 0 12px;
    font-family: "Montserrat", "Arial Black", sans-serif;
    font-size: clamp(1.55rem, 3.2vw, 2.35rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
}

.contacts-lead {
    margin-bottom: 22px;
    color: var(--muted);
}

.contact-info-list {
    display: grid;
    gap: 14px;
}

.contact-info-card {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.contact-info-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-info-value {
    display: inline-block;
    margin-bottom: 8px;
    font-family: "Montserrat", "Arial Black", sans-serif;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
}

.contacts-form-card h2 {
    margin: 16px 0 10px;
    font-family: "Montserrat", "Arial Black", sans-serif;
    font-size: 2rem;
}

.contacts-form-title {
    margin-top: 0;
    font-size: clamp(2rem, 4.3vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.contacts-form-card > p {
    margin-bottom: 20px;
    color: var(--muted);
}

.contacts-form {
    display: grid;
    gap: 16px;
}

.contacts-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contacts-field {
    display: grid;
    gap: 8px;
}

.contacts-field span {
    font-size: 0.88rem;
    font-weight: 600;
}

.contacts-field input,
.contacts-field textarea {
    width: 100%;
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    padding: 14px 16px;
    font: inherit;
    color: var(--text);
    resize: vertical;
}

.contacts-submit {
    min-height: 52px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.24);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 18px 16px 0;
}

.top-bar {
    width: min(calc(100% - 32px), var(--page-width));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 14px 20px;
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    background: rgba(255, 253, 248, 0.9);
    box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
    flex-wrap: wrap;
}

.logo-area,
.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.logo {
    text-decoration: none;
}

.logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-soft));
    color: #fff;
    font-family: "Montserrat", "Arial Black", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    overflow: hidden;
    flex-shrink: 0;
}

.brand__logo-img {
    width: 100%;
    height: 100%;
    display: block;
}

.logo-text {
    display: grid;
    gap: 2px;
}

.logo-text strong,
.logo-text h1 {
    font-size: 0.98rem;
    line-height: 1.1;
    margin: 0;
}

.logo-text span {
    color: var(--muted);
    font-size: 0.78rem;
}

.license-mini {
    display: grid;
    gap: 2px;
    padding-left: 16px;
    border-left: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--muted);
}

.license-mini strong {
    color: var(--text);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-weight: 700;
    font-size: 0.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-left: auto;
}

.nav-links a,
.site-header__phone,
.link-list a,
.chip-list a,
.doc-list a,
.site-footer a {
    text-decoration: none;
}

.nav-item {
    position: relative;
}

.nav-links a {
    font-weight: 600;
    color: var(--ink-soft);
}

.nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
}

.nav-item > a[href="#"]::after {
    content: "\25BE";
    font-size: 0.58rem;
    opacity: 0.7;
}

.simple-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    padding: 8px 0;
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid rgba(28, 25, 23, 0.08);
    box-shadow: 0 16px 36px rgba(28, 25, 23, 0.12);
    display: none;
}

.simple-dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 0.86rem;
}

.nav-item:hover .simple-dropdown,
.nav-item.is-open .simple-dropdown {
    display: block;
}

.nav-links a:hover,
.site-header__phone:hover,
.link-list a:hover,
.chip-list a:hover,
.doc-list a:hover,
.site-footer a:hover {
    color: var(--accent-dark);
}

.phone-menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.phone-item,
.site-header__phone {
    font-size: 0.92rem;
    font-weight: 700;
}

.hero,
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 38px;
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: 36px;
    box-shadow: var(--shadow);
}

.hero {
    background:
        linear-gradient(135deg, rgba(124, 45, 18, 0.95), rgba(180, 83, 9, 0.82)),
        linear-gradient(180deg, #2f241e 0%, #6b3f1e 100%);
    color: #fffaf2;
}

.page-hero {
    background: linear-gradient(135deg, rgba(247, 240, 228, 0.95), rgba(255, 253, 248, 0.95));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.12);
    border: 1px solid rgba(255, 250, 242, 0.18);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero .eyebrow {
    background: var(--surface-strong);
    border-color: rgba(28, 25, 23, 0.08);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: end;
    margin-top: 26px;
}

.hero h1,
.page-hero h1,
.page-card h2,
.doc-card h2,
.section-head h2,
.site-footer h2 {
    margin: 0;
    font-family: "Montserrat", "Arial Black", sans-serif;
}

.hero h1,
.page-hero h1 {
    max-width: 14ch;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.page-card p,
.doc-card p,
.stat-card p,
.direction-card p,
.popular-card p {
    line-height: 1.6;
}

.hero__actions,
.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.button {
    background: #fffaf2;
    color: var(--accent-dark);
}

.button-secondary {
    background: transparent;
    color: inherit;
    border: 1px solid rgba(28, 25, 23, 0.12);
}

.hero .button-secondary {
    border-color: rgba(255, 250, 242, 0.32);
    color: #fffaf2;
}

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

.hero__aside,
.stat-card,
.direction-card,
.popular-card,
.page-card,
.doc-card,
.site-footer {
    background: rgba(255, 253, 248, 0.78);
    border: 1px solid rgba(28, 25, 23, 0.08);
    box-shadow: var(--shadow);
}

.hero__aside {
    padding: 22px;
    border-radius: 28px;
    color: var(--text);
}

.hero__facts,
.stat-grid,
.direction-grid,
.popular-grid,
.page-grid,
.doc-grid {
    display: grid;
    gap: 16px;
}

.hero__facts {
    margin-top: 16px;
}

.hero__fact {
    padding-top: 14px;
    border-top: 1px solid rgba(28, 25, 23, 0.12);
}

.stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 22px;
}

.stat-card,
.direction-card,
.popular-card,
.page-card,
.doc-card {
    padding: 24px;
    border-radius: var(--radius-lg);
}

.stat-card strong {
    display: block;
    font-family: "Montserrat", "Arial Black", sans-serif;
    font-size: 2rem;
}

.section {
    margin-top: 26px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.section-head p,
.hero__fact span,
.site-footer__eyebrow,
.site-footer__bottom,
.stat-card p,
.direction-card p,
.popular-card p,
.page-card p,
.doc-card p {
    color: var(--muted);
}

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

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

.page-grid,
.doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
}

.page-card-wide {
    grid-column: 1 / -1;
}

.page-card-map {
    padding: 18px;
}

.page-card-map-full {
    margin-top: 24px;
}

.contact-map-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.contact-map-image-large {
    max-height: 640px;
}

.contact-map-embed {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: #fff;
}

.contact-map-embed iframe {
    display: block;
    width: 100%;
    height: 520px;
    border: 0;
}

.chip-list,
.link-list,
.doc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.chip-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.popular-card__meta,
.doc-card__label {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.site-footer {
    width: min(calc(100% - 32px), var(--page-width));
    margin: 36px auto 0;
    padding: 28px;
    border-radius: 34px 34px 0 0;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.site-footer__eyebrow {
    margin: 0 0 10px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer__bottom {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
}

@media (max-width: 1080px) {
    .hero__grid,
    .contacts-layout,
    .direction-grid,
    .popular-grid,
    .page-grid,
    .doc-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .top-bar {
        border-radius: 28px;
        justify-content: flex-start;
    }

    .nav-links,
    .phone-menu {
        justify-content: start;
        margin-left: 0;
    }

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

    .page-card-wide {
        grid-column: auto;
    }

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

@media (max-width: 720px) {
    .shell-main {
        width: min(calc(100% - 24px), var(--page-width));
        padding-bottom: 48px;
    }

    .hero,
    .page-hero,
    .site-footer,
    .stat-card,
    .direction-card,
    .popular-card,
    .page-card,
    .doc-card {
        padding: 22px;
    }

    .site-header {
        padding: 12px 12px 0;
    }

    .top-bar,
    .site-footer {
        width: min(calc(100% - 24px), var(--page-width));
    }

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

    .logo-area {
        flex-wrap: wrap;
    }

    .license-mini {
        padding-left: 0;
        border-left: 0;
    }
}
