@import url('https://fonts.googleapis.com/css2?family=Inter:opsz@14..32&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

:root {
    --primary: #0b2b40;
    --primary-light: #1a4b63;
    --accent: #2a7faa;
    --accent-dark: #1e5f80;
    --text: #1e2e3a;
    --text-light: #4a5f6e;
    --bg: #ffffff;
    --bg-light: #f4f7fb;
    --gray-light: #e2e8f0;
    --shadow: 0 15px 30px -10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    background-image: radial-gradient(circle at 30% 40%, rgba(42,127,170,0.03) 0%, transparent 30%),
                      radial-gradient(circle at 70% 80%, rgba(11,43,64,0.03) 0%, transparent 40%);
    background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; min-width: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 22px;
    border: 0;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 14px 30px -16px rgba(42, 127, 170, 0.9);
    text-align: center;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-secondary {
    background: #eef7fc;
    color: #155b8f;
    box-shadow: none;
}
.btn-secondary:hover { background: #dceff9; color: var(--primary); }
.btn-whatsapp { background: #1f9b54; box-shadow: 0 14px 30px -16px rgba(31, 155, 84, 0.9); }
.btn-whatsapp:hover { background: #178447; }

.header { position: sticky; top: 0; z-index: 1001; background: var(--primary); color: white; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.header .container { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; }
.logo { display: flex; align-items: center; }
.logo img { height: 80px; width: auto; transition: var(--transition); }
.logo img:hover { opacity: 0.9; }
.nav { display: flex; gap: 32px; }
.nav a { color: white; font-weight: 500; position: relative; }
.nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--accent); transition: var(--transition); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.header-contacts { display: flex; align-items: center; gap: 16px; }
.header-contacts a { display: flex; align-items: center; gap: 8px; color: white; font-weight: 500; }
.social-icons { display: flex; gap: 8px; }
.social-icons a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: white; transition: var(--transition); }
.social-icons a:hover { background: var(--accent); }
.burger { display: none; flex-direction: column; cursor: pointer; z-index: 1001; }
.burger span { width: 25px; height: 3px; background: white; margin: 3px 0; transition: var(--transition); border-radius: 3px; }
.mobile-menu { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: white; padding: 80px 20px 30px; z-index: 999; flex-direction: column; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; }
.mobile-menu.active { transform: translateX(0); display: flex; }
.mobile-menu a { padding: 15px 0; border-bottom: 1px solid var(--gray-light); font-size: 1.2rem; font-weight: 500; color: var(--text); }

.breadcrumbs { padding: 20px 0; background: var(--bg-light); color: var(--text-light); }
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { text-decoration: underline; }

.city-page { padding: 36px 0 80px; background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%); }
.city-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
    padding: 32px;
    min-width: 0;
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px -38px rgba(11, 43, 64, 0.48);
}
.city-hero h1 {
    margin: 0 0 14px;
    color: var(--primary);
    font-size: clamp(2rem, 3.4vw, 3.05rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.city-hero__lead {
    margin: 0 0 18px;
    color: #536779;
    font-size: 1.06rem;
    line-height: 1.58;
    font-weight: 500;
}
.city-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.city-hero__media { overflow: hidden; border-radius: 20px; background: #f2f6fa; }
.city-hero__media img { display: block; width: 100%; height: 260px; object-fit: cover; }

.city-facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}
.city-fact {
    min-height: 118px;
    padding: 16px 16px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(203, 213, 225, 0.78);
    box-shadow: 0 18px 42px -34px rgba(11, 43, 64, 0.42);
}
.city-fact span {
    display: block;
    color: #6b7c8d;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.city-fact strong {
    display: block;
    color: var(--primary);
    font-size: 1.02rem;
    line-height: 1.35;
}
.city-fact a { color: var(--accent); }

.city-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 24px;
    align-items: start;
    min-width: 0;
}
.city-copy,
.city-form-card,
.city-related,
.city-village {
    min-width: 0;
    max-width: 100%;
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(203, 213, 225, 0.78);
    box-shadow: 0 18px 42px -36px rgba(11, 43, 64, 0.42);
}
.city-copy h2,
.city-form-card h2,
.city-related h2,
.city-village h2 {
    margin: 0 0 14px;
    color: var(--primary);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    letter-spacing: -0.02em;
}
.city-copy h3 {
    margin: 22px 0 10px;
    color: var(--primary);
    font-size: 1.18rem;
}
.city-copy p,
.city-village p { margin: 0 0 12px; color: #536779; line-height: 1.65; }
.city-copy ul { margin: 0 0 14px 18px; color: #536779; }
.city-copy li { margin: 0 0 8px; }
.city-copy a { color: var(--accent); font-weight: 700; }
.city-copy a:hover { text-decoration: underline; }

.price-table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    margin: 16px 0 8px;
    border-radius: 16px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    -webkit-overflow-scrolling: touch;
}
.price-table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
}
.price-table th {
    padding: 14px 16px;
    background: #0b2b40;
    color: #fff;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 900;
}
.price-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5edf5;
    color: var(--text);
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td:nth-child(2),
.price-table td:nth-child(3) { font-weight: 800; white-space: nowrap; }
.price-table tbody tr.is-hit { background: #eef7fc; }

.city-form-card { position: sticky; top: 118px; }
.city-form-card p { margin: 0 0 16px; color: #536779; }
.city-form { display: grid; gap: 12px; position: relative; min-width: 0; }
.city-form > * { min-width: 0; }
.city-form label { color: var(--primary); font-size: 0.88rem; font-weight: 800; }
.city-form input,
.city-form select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d5dee8;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
}
.city-form input:focus,
.city-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(42, 127, 170, 0.12);
}
.city-form .field { display: grid; gap: 6px; }
.city-form .btn { width: 100%; margin-top: 4px; }
.city-form__phones {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}
.city-form__phones a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 12px;
    font-weight: 800;
}
.captcha-row { display: flex; gap: 8px; align-items: center; width: 100%; }
.captcha-row input { flex: 1; min-width: 0; height: 48px; }
.captcha-refresh {
    width: 48px;
    min-width: 48px;
    height: 48px;
    border: 1px solid #d5dee8;
    border-radius: 12px;
    background: #f5f8fb;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.form-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.form-status {
    display: none;
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.4;
}
.form-status:not([hidden]) { display: block; }
.form-status.is-success { background: #e8f7ee; color: #166534; border: 1px solid #b7e4c7; }
.form-status.is-error { background: #fdecea; color: #9b1c1c; border: 1px solid #f5c2c0; }
.city-privacy { margin: 8px 0 0; color: #6b7c8d; font-size: 0.84rem; text-align: center; }

.city-faq { margin-top: 22px; }
.faq-item { border-bottom: 1px solid #e5edf5; }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 0;
    border: 0;
    background: none;
    color: var(--primary);
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}
.faq-answer { display: none; padding: 0 0 14px; color: #536779; line-height: 1.6; }
.faq-answer.show { display: block; }

.city-village { margin-top: 22px; background: #f4fbf7; border-color: rgba(31, 155, 84, 0.22); }
.city-related { margin-top: 22px; }
.city-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.city-related a {
    display: block;
    padding: 16px;
    border-radius: 16px;
    background: #eaf3fb;
    color: #155b8f;
    font-weight: 800;
}
.city-related a:hover { background: #dceff9; }

.footer { background: var(--primary); color: white; padding: 80px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 50px; margin-bottom: 50px; }
.footer-logo { display: inline-block; margin-bottom: 15px; }
.footer-logo img { height: 70px; width: auto; }
.footer a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer a:hover { color: white; }
.footer h3 { margin-bottom: 1rem; color: white; }
.footer p { color: rgba(255,255,255,0.7); }
.footer .city-links { display: grid; gap: 8px; }
.copyright { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.copyright a { color: rgba(255,255,255,0.7); }

@media (max-width: 1100px) {
    .city-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
    .nav { display: none; }
    .header-contacts { display: none; }
    .burger { display: flex; }
    .city-hero,
    .city-layout { grid-template-columns: 1fr; }
    .city-form-card { position: static; order: -1; }
    .city-hero__media img { height: 220px; }
}
@media (max-width: 768px) {
    .logo img { height: 60px; }
    .city-page { padding: 24px 0 58px; }
    .city-hero,
    .city-copy,
    .city-form-card,
    .city-related,
    .city-village { padding: 22px; }
    .city-facts { grid-template-columns: 1fr 1fr; }
    .city-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .container { padding: 0 15px; }
    .city-facts { grid-template-columns: 1fr; }
    .city-hero__actions { flex-direction: column; }
    .city-hero__actions .btn { width: 100%; }
    .price-table { min-width: 0; }
    .price-table th,
    .price-table td { padding: 12px 10px; }
}

/* Всеволожск: другая композиция, не копия Мурино */
.city-page--vse {
    padding: 0 0 80px;
    background: #f3f0ea;
}
body:has(.city-page--vse) { background: #f3f0ea; }
body:has(.city-page--vse) .breadcrumbs { background: #f3f0ea; }
.city-page--vse .container { max-width: 1180px; }
.vse-hero {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    margin: 0 0 28px;
    padding: 48px 44px 40px;
    border-radius: 0 0 32px 32px;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(11, 43, 64, 0.94) 0%, rgba(11, 43, 64, 0.62) 52%, rgba(11, 43, 64, 0.28) 100%),
        url('/images/zavod-xl.jpg') center / cover no-repeat;
}
.vse-hero h1 {
    max-width: 720px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2.15rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.vse-hero__lead {
    max-width: 640px;
    margin: 0 0 22px;
    color: rgba(255,255,255,0.86);
    font-size: 1.08rem;
    line-height: 1.55;
}
.vse-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.vse-hero .btn-secondary { background: rgba(255,255,255,0.14); color: #fff; }
.vse-hero .btn-secondary:hover { background: #fff; color: var(--primary); }
.vse-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    max-width: 920px;
    border-top: 1px solid rgba(255,255,255,0.18);
}
.vse-metrics div {
    padding: 18px 18px 4px 0;
    border-right: 1px solid rgba(255,255,255,0.14);
}
.vse-metrics div:last-child { border-right: 0; padding-right: 0; }
.vse-metrics span {
    display: block;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.62);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.vse-metrics strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.35;
}
.vse-metrics a { color: #9ad4f2; }

.vse-apply,
.city-form-card,
#order-form {
    scroll-margin-top: 108px;
}
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(180, 160, 130, 0.28);
    box-shadow: 0 18px 40px -32px rgba(80, 50, 20, 0.35);
}
.vse-apply h2 { margin: 0 0 6px; color: var(--primary); font-size: clamp(1.4rem, 2vw, 1.9rem); }
.vse-apply > p { margin: 0 0 18px; color: #6a5e50; }
.vse-apply .city-form {
    gap: 14px 16px;
    align-items: stretch;
}
.vse-apply .field-wide,
.vse-apply .city-form .field[data-captcha],
.vse-apply .city-form .field:has(> .btn),
.vse-apply .city-privacy,
.vse-apply .form-status {
    grid-column: 1 / -1;
}
.vse-apply .city-form .btn { width: 100%; min-width: 0; margin-top: 2px; }
.vse-apply .city-privacy { text-align: left; max-width: none; }
.vse-apply .city-form__phones { gap: 10px; }
@media (min-width: 993px) {
    .vse-apply .city-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
    }
    .vse-apply .city-form__phones {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.vse-route {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.vse-route article {
    padding: 22px 22px 20px;
    border-radius: 22px;
    background: #1a3344;
    color: #fff;
}
.vse-route b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #c9a46a;
    color: #1a3344;
    font-size: 0.9rem;
}
.vse-route h3 { margin: 0 0 8px; color: #fff; font-size: 1.12rem; }
.vse-route p { margin: 0; color: rgba(255,255,255,0.78); line-height: 1.5; }

.vse-article {
    max-width: 760px;
    margin: 0 0 32px;
    padding: 8px 4px;
}
.vse-article h2 { margin: 0 0 14px; color: var(--primary); font-size: clamp(1.5rem, 2.2vw, 2rem); }
.vse-article h3 { margin: 22px 0 10px; color: var(--primary); font-size: 1.2rem; }
.vse-article p { margin: 0 0 12px; color: #5c5348; line-height: 1.7; }
.vse-article a { color: #8a6230; font-weight: 800; }
.vse-article a:hover { text-decoration: underline; }

.vse-prices { margin-bottom: 28px; }
.vse-prices h2 { margin: 0 0 16px; color: var(--primary); }
.vse-price-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.vse-price-grid article {
    padding: 18px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(180, 160, 130, 0.28);
}
.vse-price-grid article.is-hit {
    background: #1a3344;
    border-color: #1a3344;
    color: #fff;
}
.vse-price-grid h3 { margin: 0 0 8px; font-size: 1.05rem; }
.vse-price-grid .sum { display: block; font-size: 1.15rem; font-weight: 900; }
.vse-price-grid span { display: block; margin-top: 6px; font-size: 0.82rem; opacity: 0.72; }

.vse-split {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 18px;
    margin-bottom: 28px;
}
.vse-split > div {
    padding: 26px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(180, 160, 130, 0.28);
}
.vse-split h2 { margin: 0 0 14px; color: var(--primary); font-size: 1.35rem; }
.vse-split ul { margin: 0; padding: 0; list-style: none; }
.vse-split li {
    position: relative;
    padding: 10px 0 10px 22px;
    color: #5c5348;
    border-bottom: 1px solid #efe8dc;
}
.vse-split li:last-child { border-bottom: 0; }
.vse-split li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c9a46a;
}
.vse-split .city-faq { margin-top: 0; }
.vse-next {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    padding: 8px 4px 0;
    color: #6a5e50;
}
.vse-next a { color: #8a6230; font-weight: 800; border-bottom: 1px solid rgba(138, 98, 48, 0.35); }

@media (max-width: 1100px) {
    .vse-price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vse-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vse-metrics div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
}
@media (max-width: 992px) {
    .vse-hero { padding: 32px 20px 28px; border-radius: 0 0 24px 24px; }
    .vse-route,
    .vse-split { grid-template-columns: 1fr; }
    .vse-form-card { position: static; }
}
@media (max-width: 768px) {
    .vse-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vse-apply { padding: 22px; }
}
@media (max-width: 576px) {
    .vse-price-grid,
    .vse-metrics { grid-template-columns: 1fr; }
    .vse-hero__actions .btn { width: 100%; }
    .vse-apply { padding: 18px 16px 20px; }
    .vse-apply .city-form { gap: 12px; }
    .captcha-row { width: 100%; }
    .city-privacy { text-align: left; }
}
