/* Шрифт Inter подключается в <head> каждой страницы через preconnect+link
   (render-blocking @import убран ради скорости и Core Web Vitals). */

:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --text: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 50px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

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

/* ========== TOP BAR ========== */
.topbar {
    background: #111827;
    color: #e5e7eb;
    padding: 10px 0;
    font-size: 0.85rem;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.topbar a { color: #93c5fd; }
.topbar a:hover { color: #fff; }
.topbar-phone { font-weight: 600; letter-spacing: 0.02em; }

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17,24,39,0.65) 0%, rgba(17,24,39,0.40) 50%, rgba(17,24,39,0.20) 100%);
    z-index: 1;
}
.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 100px 0 80px;
}
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-content {
    flex: 1 1 500px;
}
.hero-widget {
    flex: 0 0 450px;
    width: 100%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeInUp 0.6s ease-out;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}
.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.9;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}
.hero-price-block {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 16px 28px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}
.hero-price-label { font-size: 1rem; font-weight: 400; opacity: 0.8; }
.hero-price-value { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-price-currency { font-size: 1.2rem; font-weight: 500; opacity: 0.8; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
}
.btn-buy {
    background: var(--accent);
    color: #111827;
    box-shadow: 0 4px 14px rgba(245,158,11,0.4);
}
.btn-buy:hover {
    background: var(--accent-dark);
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245,158,11,0.5);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
.btn-primary-solid {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(26,86,219,0.3);
}
.btn-primary-solid:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26,86,219,0.4);
    color: #fff;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* ========== SECTIONS ========== */
.section {
    padding: 80px 0;
    position: relative;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Section backgrounds with subtle gradients */
.section-alt {
    background: linear-gradient(180deg, #eef2ff 0%, #f0f4ff 50%, #e8ecf8 100%);
    position: relative;
}
.section-alt::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #eef2ff);
    pointer-events: none;
}

/* Features section (first after hero) */
.section-features {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 30%, #f0f9ff 60%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
}
.section-features::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.section-features::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Schedule section */
.section-schedule {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 40%, #e0e7ff 100%);
}

/* Stops section */
.section-stops {
    background: linear-gradient(135deg, #fef9f0 0%, #fdf6ec 30%, #fefce8 60%, #fef3c7 100%);
    position: relative;
    overflow: hidden;
}
.section-stops::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,158,11,0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* Map section */
.section-map {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
}

/* Info section */
.section-info {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 30%, #f3f0ff 60%, #e8e4f8 100%);
    position: relative;
    overflow: hidden;
}
.section-info::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ========== FEATURES GRID ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.feature-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.95);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}
.feature-icon.blue { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); }
.feature-icon.green { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); }
.feature-icon.amber { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.feature-icon.purple { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); }
.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========== SCHEDULE TABLE ========== */
.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}
.schedule-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.schedule-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 20px 28px;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.schedule-table {
    width: 100%;
    border-collapse: collapse;
}
.schedule-table th,
.schedule-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.schedule-table th:last-child,
.schedule-table td:last-child {
    text-align: right;
    width: 1%;
    white-space: nowrap;
}
.schedule-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: rgba(59,130,246,0.04); }
.time-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========== ROUTE STOPS (TIMELINE) ========== */
.stops-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.stops-column {}
.stops-column-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.stop-list {
    position: relative;
    padding-left: 28px;
}
.stop-list::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    border-radius: 2px;
}
.stop-item {
    position: relative;
    padding: 10px 0;
}
.stop-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 17px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
}
.stop-item:first-child::before,
.stop-item:last-child::before {
    width: 14px;
    height: 14px;
    left: -27px;
    top: 15px;
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}
.stop-name {
    font-weight: 600;
    font-size: 0.95rem;
}
.stop-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========== BUY TICKET FORM ========== */
.buy-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #111827 100%);
    padding: 80px 0;
    color: #fff;
}
.buy-section .section-header h2 { color: #fff; }
.buy-section .section-header p { color: #94a3b8; }

.buy-form-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 36px;
    max-width: 800px;
    margin: 0 auto;
}
.buy-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #94a3b8;
}
.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.form-group select { cursor: pointer; }
.form-group select option { background: #1e293b; color: #fff; }
.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.form-group input::placeholder { color: #64748b; }
.buy-form-submit {
    text-align: center;
    margin-top: 8px;
}
.buy-form-submit .btn {
    padding: 16px 48px;
    font-size: 1.1rem;
}

/* ========== MAP ========== */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    height: 400px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== INFO CARDS ========== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.info-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-card ul {
    list-style: none;
}
.info-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.info-card li:last-child { border-bottom: none; }

/* ========== FOOTER ========== */
.footer {
    background: #111827;
    color: #9ca3af;
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer li { padding: 5px 0; }
.footer a { color: #9ca3af; font-size: 0.9rem; }
.footer a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}
.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}
.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1f2937;
    color: #9ca3af;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s;
}
.footer-socials a:hover { background: var(--primary); color: #fff; }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero { min-height: 60vh; }
    .hero h1 { font-size: 2rem; }
    .hero-price-value { font-size: 2rem; }
    .section { padding: 50px 0; }
    .stops-timeline { grid-template-columns: 1fr; gap: 30px; }
    .buy-form-row { grid-template-columns: 1fr; }
    .buy-form-card { padding: 24px; }
    .schedule-grid { grid-template-columns: 1fr; gap: 20px; }
    .schedule-header { padding: 14px 20px; font-size: 1.05rem; }
    .schedule-table th, .schedule-table td { padding: 10px 12px; font-size: 0.8rem; }
    .time-badge { padding: 3px 8px; font-size: 0.8rem; }
    .topbar .container { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
    .hero-container { flex-direction: column; gap: 20px; }
    .hero-widget { flex: 1 1 100%; max-width: 100%; }
    .hero-content { flex: 1 1 100%; }
    .hero-prices-list { min-width: 100%; width: 100%; box-sizing: border-box; }
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ========== PRICES LIST ========== */
.hero-prices-list {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    display: inline-block;
    min-width: 300px;
}
.hero-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1rem;
    color: #fff;
}
.hero-price-row:last-child {
    border-bottom: none;
}
.hero-price-row strong {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-left: 20px;
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #fff;
    width: 95%;
    max-width: 1000px;
    height: 85vh;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: all 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 10;
    color: #333;
    line-height: 1;
}
.modal-close:hover {
    background: #f1f5f9;
}
.modal-body {
    width: 100%;
    height: 100%;
}
.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Clickable table rows */
.clickable-row {
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    position: relative;
}
.clickable-row:hover {
    background: rgba(59,130,246,0.08) !important;
}
.clickable-row::after {
    content: '🗺 Маршрут';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--primary-light);
}
.clickable-row:hover::after {
    opacity: 1;
}

/* ============================================================
   v5 — премиальные доработки, SEO-блоки, мобильная адаптация
   ============================================================ */

/* ---------- Фоны hero по маршрутам (mobile-first, webp+jpg) ---------- */
.hero { background-color: #1f2937; } /* плейсхолдер пока грузится фото */

/* по умолчанию (мобильные) — лёгкое фото 1080px */
.lp-cherepovets  .hero { background-image: url('../images/hero_cherepovets_m.jpg'); }
.lp-cherepovets  .hero { background-image: -webkit-image-set(url('../images/hero_cherepovets_m.webp') type('image/webp'), url('../images/hero_cherepovets_m.jpg') type('image/jpeg')); }
.lp-cherepovets  .hero { background-image: image-set(url('../images/hero_cherepovets_m.webp') type('image/webp'), url('../images/hero_cherepovets_m.jpg') type('image/jpeg')); }
.lp-parfino      .hero { background-image: url('../images/hero_parfino_m.jpg'); }
.lp-parfino      .hero { background-image: -webkit-image-set(url('../images/hero_parfino_m.webp') type('image/webp'), url('../images/hero_parfino_m.jpg') type('image/jpeg')); }
.lp-parfino      .hero { background-image: image-set(url('../images/hero_parfino_m.webp') type('image/webp'), url('../images/hero_parfino_m.jpg') type('image/jpeg')); }
.lp-petrozavodsk .hero { background-image: url('../images/hero_petrozavodsk_m.jpg'); }
.lp-petrozavodsk .hero { background-image: -webkit-image-set(url('../images/hero_petrozavodsk_m.webp') type('image/webp'), url('../images/hero_petrozavodsk_m.jpg') type('image/jpeg')); }
.lp-petrozavodsk .hero { background-image: image-set(url('../images/hero_petrozavodsk_m.webp') type('image/webp'), url('../images/hero_petrozavodsk_m.jpg') type('image/jpeg')); }

/* десктоп/планшет — полноразмерное фото 1920px */
@media (min-width: 769px) {
    .lp-cherepovets  .hero { background-image: url('../images/hero_cherepovets.jpg'); }
    .lp-cherepovets  .hero { background-image: -webkit-image-set(url('../images/hero_cherepovets.webp') type('image/webp'), url('../images/hero_cherepovets.jpg') type('image/jpeg')); }
    .lp-cherepovets  .hero { background-image: image-set(url('../images/hero_cherepovets.webp') type('image/webp'), url('../images/hero_cherepovets.jpg') type('image/jpeg')); }
    .lp-parfino      .hero { background-image: url('../images/hero_parfino.jpg'); }
    .lp-parfino      .hero { background-image: -webkit-image-set(url('../images/hero_parfino.webp') type('image/webp'), url('../images/hero_parfino.jpg') type('image/jpeg')); }
    .lp-parfino      .hero { background-image: image-set(url('../images/hero_parfino.webp') type('image/webp'), url('../images/hero_parfino.jpg') type('image/jpeg')); }
    .lp-petrozavodsk .hero { background-image: url('../images/hero_petrozavodsk.jpg'); }
    .lp-petrozavodsk .hero { background-image: -webkit-image-set(url('../images/hero_petrozavodsk.webp') type('image/webp'), url('../images/hero_petrozavodsk.jpg') type('image/jpeg')); }
    .lp-petrozavodsk .hero { background-image: image-set(url('../images/hero_petrozavodsk.webp') type('image/webp'), url('../images/hero_petrozavodsk.jpg') type('image/jpeg')); }
}

/* чуть более глубокий, «премиальный» оверлей и виньетка */
.hero::before {
    background: linear-gradient(115deg, rgba(15,23,42,0.82) 0%, rgba(15,23,42,0.55) 45%, rgba(15,23,42,0.28) 100%);
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(120% 120% at 100% 0%, transparent 55%, rgba(15,23,42,0.45) 100%);
    pointer-events: none;
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.breadcrumbs .container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span[aria-current] { color: var(--text); font-weight: 600; }
.breadcrumbs .sep { color: var(--text-muted); }

/* ---------- Бейджи доверия (под формой/в hero) ---------- */
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 22px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e5e7eb;
}
.trust-item svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent); }

/* ---------- SEO-блок «о маршруте» ---------- */
.section-about { background: #ffffff; }
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}
.about-text > * + * { margin-top: 16px; }
.about-text p { color: var(--text-secondary); font-size: 1.02rem; }
.about-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 4px;
}
.about-text strong { color: var(--text); }
.about-aside {
    background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 24px;
}
.about-aside h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.fact-list { list-style: none; }
.fact-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.fact-list li:last-child { border-bottom: none; }
.fact-list li strong { color: var(--text); text-align: right; }

/* ---------- FAQ (аккордеон на <details>) ---------- */
.section-faq { background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 56px 20px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.25s ease;
    line-height: 1;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--primary); }
.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.98rem;
}
.faq-answer a { font-weight: 600; }

/* ---------- Липкая мобильная CTA-кнопка ---------- */
.mobile-cta {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
    gap: 12px;
    align-items: center;
}
.mobile-cta .mc-price { display: flex; flex-direction: column; line-height: 1.2; }
.mobile-cta .mc-price small { font-size: 0.7rem; color: var(--text-muted); }
.mobile-cta .mc-price b { font-size: 1.15rem; color: var(--text); }
.mobile-cta .btn { flex: 1; justify-content: center; padding: 14px 20px; }

/* ---------- Доступность ---------- */
:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
    border-radius: 4px;
}
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* стрелка у нативных select на тёмном фоне формы */
.form-group { position: relative; }
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* ---------- Адаптив: планшет ---------- */
@media (max-width: 980px) {
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .about-aside { position: static; }
}

/* ---------- Адаптив: мобильные ---------- */
@media (max-width: 768px) {
    .hero-inner { padding: 70px 0 56px; }
    .hero-subtitle { font-size: 1.02rem; }
    .hero-actions { margin-bottom: 4px; }
    .section-header { margin-bottom: 34px; }
    .section-header h2 { font-size: 1.6rem; }
    .section-header p { font-size: 1rem; }
    .feature-card { padding: 24px 20px; }
    .info-grid { grid-template-columns: 1fr; }
    .mobile-cta { display: flex; }
    body.has-mobile-cta { padding-bottom: 78px; }
    .trust-row { gap: 8px 14px; }
    .trust-item { font-size: 0.82rem; }
    .faq-item summary { font-size: 0.98rem; padding: 16px 50px 16px 18px; }
    .about-text p { font-size: 0.98rem; }
}

/* ---------- Снижение анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .animate-on-scroll { opacity: 1; transform: none; }
}
