/* ============================================================
   Да Окна — Design System CSS
   template-okna / daokna.ru
   Mobile-first, no frameworks, clean & modern
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
    --primary:       #1e3a5f;
    --primary-dark:  #152d4a;
    --primary-light: #e8f0fe;
    --accent:        #e8a426;
    --accent-hover:  #d4941f;
    --text:          #1f2937;
    --text-light:    #6b7280;
    --bg:            #ffffff;
    --bg-alt:        #f8fafc;
    --border:        #e5e7eb;
    --success:       #059669;
    --danger:        #dc2626;
    --radius:        8px;
    --radius-lg:     16px;
    --shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-lg:     0 10px 25px rgba(0,0,0,.08);
    --font-heading:  'Montserrat', system-ui, -apple-system, sans-serif;
    --font-body:     'Inter', system-ui, -apple-system, sans-serif;
    --container:     1180px;
    --header-h:      70px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-primary { background: var(--primary); color: #fff; }
.section-primary h2, .section-primary h3 { color: #fff; }
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
    text-align: center;
    line-height: 1.3;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-outline-primary { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 40px; font-size: 17px; }

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    gap: 24px;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}
.logo img { height: 22px; width: 22px; margin-right: 8px; flex-shrink: 0; }
.logo .logo-accent { color: var(--accent); }

/* Nav */
.main-nav { display: flex; gap: 4px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
    display: block;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius);
    transition: background .15s, color .15s;
}
.main-nav > li > a:hover,
.main-nav > li > a.active { background: var(--primary-light); color: var(--primary); }

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
    z-index: 110;
}
.main-nav > li:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text);
    transition: background .15s;
}
.nav-dropdown a:hover { background: var(--primary-light); color: var(--primary); }

/* Header right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.header-phone {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}
.header-phone a { color: var(--primary); }
.header-phone a:hover { color: var(--accent); }

/* Burger (mobile) */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}
.burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s;
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 200;
    overflow-y: auto;
    padding: 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.mobile-nav-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text);
}
.mobile-nav ul { margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--border); }
.mobile-nav > ul > li > a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
}
.mobile-nav .mobile-sub { padding-left: 16px; display: none; }
.mobile-nav .mobile-sub.open { display: block; }
.mobile-nav .mobile-sub a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-light);
}
.mobile-nav-phone {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.mobile-nav-phone a {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}
.mobile-nav-cta {
    display: block;
    width: 100%;
    margin-top: 16px;
}

/* --- Hero --- */
.hero {
    background: var(--primary);
    color: #fff;
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero--bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero--bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26,42,68,.88) 0%, rgba(26,42,68,.72) 40%, rgba(26,42,68,.45) 70%, rgba(26,42,68,.25) 100%);
    z-index: 1;
}
.hero--bg .container { position: relative; z-index: 2; }
.hero::after {
    content: '';
    position: absolute;
    right: -5%;
    top: -20%;
    width: 50%;
    height: 140%;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
    pointer-events: none;
}
.hero--bg::after { display: none; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: .9;
    margin-bottom: 32px;
    max-width: 600px;
    line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-phone {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.hero-phone a { color: #fff; }
.hero-badges {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    opacity: .95;
}
.hero-badge svg { width: 28px; height: 28px; flex-shrink: 0; }

/* --- Advantages --- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.advantage-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border);
    transition: box-shadow .2s;
}
.advantage-card:hover { box-shadow: var(--shadow-lg); }
.advantage-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    color: var(--primary);
}
.advantage-icon svg { width: 28px; height: 28px; }
.advantage-card h3 { font-size: 1rem; margin-bottom: 6px; }
.advantage-card p { font-size: 14px; color: var(--text-light); }

/* --- Cards grid (categories, services) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-img {
    width: 100%;
    height: 200px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img svg { width: 48px; height: 48px; opacity: .5; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { font-size: 14px; color: var(--text-light); }
.card-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 8px;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}
.card-link:hover { color: var(--accent); }
.card-link svg { width: 16px; height: 16px; }

/* --- Price table (service pages) --- */
.price-table {
    margin: 24px 0 32px;
}
.price-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.price-table th,
.price-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.price-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.price-table th:first-child { border-radius: var(--radius) 0 0 0; }
.price-table th:last-child { border-radius: 0 var(--radius) 0 0; }
.price-table tr:hover td { background: var(--primary-light); }
.price-table .price-value {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}
.price-note {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
}

/* --- Service page intro (short) --- */
.service-intro {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 780px;
    line-height: 1.7;
}

/* --- CTA Strip --- */
.cta-strip {
    background: var(--primary);
    color: #fff;
    padding: 48px 0;
    text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 12px; }
.cta-strip p { opacity: .85; margin-bottom: 24px; font-size: 1.05rem; }

/* --- Service page content --- */
.page-content { padding: 48px 0; }
.page-content h2 { margin-top: 32px; margin-bottom: 12px; }
.page-content h3 { margin-top: 24px; margin-bottom: 8px; }
.page-content p { margin-bottom: 16px; line-height: 1.7; }
.page-content ul, .page-content ol { margin-bottom: 16px; padding-left: 24px; }
.page-content ul li { position: relative; padding-left: 8px; margin-bottom: 6px; line-height: 1.6; }
.page-content ul li::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}
.page-content ol { list-style: decimal; }
.page-content ol li { margin-bottom: 6px; line-height: 1.6; }
.page-content a { color: var(--primary); font-weight: 500; }
.page-content a:hover { text-decoration: underline; }
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}
.page-content table th,
.page-content table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.page-content table th {
    background: var(--bg-alt);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .02em;
}
.page-content table tr:hover td { background: var(--primary-light); }

/* Feature list (checkmark) */
.features-list { padding-left: 0 !important; list-style: none; }
.features-list li {
    position: relative;
    padding-left: 28px !important;
    margin-bottom: 10px;
}
.features-list li::before {
    content: '' !important;
    position: absolute;
    left: 0 !important;
    top: 6px;
    width: 18px;
    height: 18px;
    background: var(--success);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

/* --- Specs table (product) --- */
.specs-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 24px 0;
}
.specs-row {
    display: contents;
}
.specs-row:nth-child(odd) .specs-label,
.specs-row:nth-child(odd) .specs-value { background: var(--bg-alt); }
.specs-label {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}
.specs-value {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-light);
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; opacity: .5; }

/* --- Lead Form --- */
.lead-form-section { padding: 60px 0; }
.lead-form-wrap {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}
.lead-form-wrap h2 { text-align: center; margin-bottom: 8px; }
.lead-form-wrap .form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: var(--font-body);
    transition: border-color .2s;
    background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,58,95,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-submit { width: 100%; margin-top: 8px; }
.form-note {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-top: 12px;
}
.form-note a { color: var(--primary); text-decoration: underline; }
.form-success {
    display: none;
    text-align: center;
    padding: 32px;
}
.form-success h3 { color: var(--success); margin-bottom: 8px; }

/* --- Reviews --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.review-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.review-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { color: var(--text-light); font-style: italic; margin-bottom: 12px; line-height: 1.6; }
.review-author { font-weight: 600; font-size: 15px; }
.review-date { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow .2s;
}
.gallery-item:hover { box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; }
.gallery-item .gallery-placeholder {
    width: 100%;
    height: 220px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 13px;
    text-align: center;
    padding: 20px;
}
.gallery-caption {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-light);
}

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-q {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
    color: var(--text);
    transition: background .15s;
}
.faq-q:hover { background: var(--bg-alt); }
.faq-q::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform .2s;
}
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a {
    padding: 0 20px 16px;
    color: var(--text-light);
    line-height: 1.65;
    display: none;
}
.faq-item.open .faq-a { display: block; }

/* --- Contacts page --- */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.contact-info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.contact-info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-text h4 { font-size: 14px; color: var(--text-light); font-weight: 600; margin-bottom: 2px; }
.contact-info-text p { font-size: 16px; margin-bottom: 0; }
.contact-info-text a { color: var(--primary); font-weight: 600; }
.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    height: 350px;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* --- Calculator --- */
.calc-wrap {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.calc-row { margin-bottom: 20px; }
.calc-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}
.calc-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.calc-option {
    flex: 1;
    min-width: 120px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #fff;
    font-family: var(--font-body);
    font-size: 14px;
}
.calc-option:hover { border-color: var(--primary); }
.calc-option.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }
.calc-option svg { display: block; margin: 0 auto 8px; width: 48px; height: 48px; }
.calc-result {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-top: 24px;
}
.calc-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.calc-note { font-size: 13px; color: var(--text-light); margin-top: 8px; }

/* --- Footer --- */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.7);
    padding: 48px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-brand .logo { font-size: 1.3rem; margin-bottom: 12px; color: #fff; }
.footer-brand .logo .logo-accent { color: var(--accent); }
.footer-brand p { font-size: 14px; line-height: 1.6; }
.footer-col h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    transition: color .15s;
}
.footer-col ul a:hover { color: #fff; }
.footer-contacts p {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-contacts a { color: var(--accent); }
.footer-contacts a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* --- Sticky mobile CTA --- */
.sticky-cta { display: none; }

/* --- Scroll to top --- */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 150;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s, visibility .25s, transform .25s, background .2s;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover { background: var(--accent); }

/* --- About section (homepage) --- */
.about-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-text h2 { margin-bottom: 16px; }
.about-text p { color: var(--text-light); }
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}
.stat-item { text-align: center; }
.stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-label { font-size: 13px; color: var(--text-light); }

/* --- Blog / Article --- */
.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-light);
}
.article-body { max-width: 780px; }
.article-body h2 { margin-top: 40px; margin-bottom: 16px; }
.article-body h3 { margin-top: 28px; margin-bottom: 12px; }
.article-body p { line-height: 1.75; }
.article-body img {
    border-radius: var(--radius);
    margin: 24px 0;
}
.related-articles {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.related-articles h3 { margin-bottom: 20px; }

/* --- Promo cards (shares) --- */
.promo-card {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
}
.promo-card::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
}
.promo-card h3 { color: #fff; margin-bottom: 8px; font-size: 1.2rem; }
.promo-card p { opacity: .9; font-size: 15px; }

/* --- Photo placeholder (SVG fallback) --- */
.photo-placeholder {
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    text-align: center;
    padding: 24px;
    min-height: 200px;
}
.photo-placeholder svg { width: 48px; height: 48px; opacity: .4; }

/* --- Related services (internal linking) --- */
.related-services {
    padding: 48px 0;
    background: var(--bg-alt);
}
.related-services h2 { margin-bottom: 24px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.related-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: box-shadow .2s, transform .2s;
    display: block;
}
.related-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.related-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--primary);
}
.related-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}
.related-card .related-price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

/* --- 404 page --- */
.page-404 {
    text-align: center;
    padding: 100px 0 80px;
}
.page-404 .error-code {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 16px;
}
.page-404 h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
}
.page-404 p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.page-404 .btn { margin: 0 8px; }

/* --- Process Steps --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}
.process-step {
    position: relative;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: box-shadow .2s;
}
.process-step:hover { box-shadow: var(--shadow-lg); }
.process-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 8px;
    line-height: 1;
}
.process-step h3 { font-size: 1rem; margin-bottom: 6px; }
.process-step p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* --- Guarantees --- */
.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}
.guarantee-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.guarantee-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.1;
}
.guarantee-card h3 { font-size: 1rem; margin-bottom: 6px; }
.guarantee-card p { font-size: 14px; color: var(--text-light); }

/* --- Geography / Coverage --- */
.geo-districts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}
.geo-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text);
}
.geo-cta {
    text-align: center;
    margin-top: 20px;
}
.geo-cta p { color: var(--text-light); margin-bottom: 12px; }
.geo-cta .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}
.geo-cta .btn-outline:hover { background: var(--primary); color: #fff; }

/* --- Payment methods --- */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}
.payment-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.payment-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--primary); }
.payment-card p { font-size: 14px; color: var(--text-light); }

/* --- Comparison table --- */
.comparison-table-wrap { overflow-x: auto; }
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.comparison-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.comparison-table th:first-child { border-radius: var(--radius) 0 0 0; }
.comparison-table th:last-child { border-radius: 0 var(--radius) 0 0; }
.comparison-table tr:nth-child(even) td { background: var(--bg-alt); }
.comparison-table tr:hover td { background: var(--primary-light); }

/* --- Article updated badge --- */
.article-updated {
    color: var(--success);
    font-weight: 500;
}

/* --- Service Layout (sidebar) --- */
.service-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
.service-main { min-width: 0; }
.service-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-form {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.sidebar-form h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--primary);
}
.sidebar-form > p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}
.sidebar-form .form-group { margin-bottom: 12px; }
.sidebar-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}
.sidebar-form input:focus { border-color: var(--accent); outline: none; }
.sidebar-form .form-note { font-size: 11px; margin-top: 10px; }
.sidebar-phone {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.sidebar-phone a {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}
.sidebar-phone span {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* --- Promo / Shares --- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.promo-card {
    display: block;
    padding: 28px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a4a7a 100%);
    color: #fff;
    border-radius: var(--radius);
    transition: transform .2s, box-shadow .2s;
}
.promo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.15); color: #fff; }
.promo-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: #fff; }
.promo-card p { font-size: 14px; line-height: 1.5; opacity: .9; margin-bottom: 12px; }
.promo-link { font-size: 14px; font-weight: 600; opacity: .85; }
.promo-card:hover .promo-link { opacity: 1; }

/* --- Partners --- */
.partners-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.partner-item {
    padding: 12px 28px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    letter-spacing: .5px;
}

/* ========================
   RESPONSIVE
   ======================== */

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .contacts-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .payment-grid { grid-template-columns: repeat(2, 1fr); }
    .service-layout { grid-template-columns: 1fr 280px; gap: 24px; }
}

@media (max-width: 768px) {
    :root { --header-h: 60px; }

    .main-nav { display: none; }
    .header-phone { display: none; }
    .header-cta-desktop { display: none; }
    .burger { display: flex; }

    .promo-grid { grid-template-columns: 1fr; }
    .service-layout { grid-template-columns: 1fr; }
    .service-sidebar { position: static; }

    .hero { padding: 50px 0 40px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-phone { text-align: center; }
    .hero-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; justify-items: start; max-width: 360px; margin: 40px auto 0; }

    .advantages-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .advantage-card { padding: 20px 16px; }

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

    .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .footer-brand { text-align: center; }
    .footer-brand .logo { justify-content: center; }
    .footer-contacts p { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .section { padding: 40px 0; }
    .cta-strip { padding: 32px 0; }

    /* Sticky CTA */
    .sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--primary);
        z-index: 200;
    }
    .sticky-cta a {
        flex: 1;
        padding: 14px;
        color: #fff;
        font-weight: 700;
        text-align: center;
        font-size: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    .sticky-cta a:first-child { border-right: 1px solid rgba(255,255,255,.2); }
    body { padding-bottom: 52px; }

    .specs-table { grid-template-columns: 1fr; }
    .specs-label { font-weight: 600; padding-bottom: 4px; border-bottom: none; }
    .specs-value { padding-top: 0; }

    .calc-options { flex-direction: column; }
    .lead-form-wrap { padding: 24px; }

    /* Price table responsive */
    .price-table { overflow-x: auto; }
    .price-table table { min-width: 480px; }

    /* Scroll-top above sticky CTA */
    .scroll-top { bottom: 68px; right: 16px; }

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

    /* Process, guarantees, payment */
    .process-steps { grid-template-columns: 1fr; }
    .guarantees-grid { grid-template-columns: 1fr; }
    .payment-grid { grid-template-columns: 1fr 1fr; }

    /* Comparison table */
    .comparison-table-wrap { margin: 0 -20px; padding: 0 20px; }
    .comparison-table { min-width: 500px; }
}

@media (max-width: 480px) {
    .advantages-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    .payment-grid { grid-template-columns: 1fr; }
}
