/* ===== ОБЩИЕ СТИЛИ ДЛЯ СТРАНИЦ ГОРОДОВ ===== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f8fb;
    color: #1e2a3a;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    padding: 30px 30px 10px;
    overflow: hidden;
}

/* ===== H1 с гербом ===== */
.h1-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.h1-wrapper img {
    height: 5.2rem;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0b1a2f;
    margin: 0;
    line-height: 1.3;
}

.lead {
    font-size: 1.1rem;
    color: #2c3e50;
    background: #f0f5fe;
    padding: 18px 24px;
    border-radius: 18px;
    margin: 10px 0 30px 0;
    border: 1px solid #e1ecf7;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px 0 30px;
}

.card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.4s ease;
    border: 1px solid #eef3f8;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.card a {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #d9e2ec;
    transition: opacity 0.3s ease;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0b1a2f;
    padding: 16px 20px 4px;
    margin: 0;
    line-height: 1.4;
}

.card-wrapper {
    position: relative;
}

.card-badge-top {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 16px 6px 12px;
    border-radius: 40px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 2;
}

.blinking-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #3bff6b;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(59, 255, 107, 0.5);
    animation: pulse-dot 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(59, 255, 107, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(59, 255, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 255, 107, 0); }
}

/* ===== БЛОК 4: АВТОВОКЗАЛ ===== */
.station-block {
    margin: 40px 0 30px;
    background: #f9fcff;
    border-radius: 24px;
    padding: 20px 0 10px;
    border: 1px solid #e3edf6;
    transition: all 0.3s ease;
}

.station-block h2 {
    font-size: 18px;
    font-weight: 600;
    padding: 0 24px 10px;
    color: #0b1a2f;
    margin: 0;
}

.iframe-wrapper {
    display: flex;
    justify-content: center;
    padding: 6px 10px 20px;
}

.iframe-wrapper iframe {
    width: 100%;
    max-width: 820px;
    height: 642px;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: all 0.3s ease;
}

/* ===== НИЖНИЙ ТЕКСТ ===== */
.bottom-text {
    margin: 30px 0 20px;
    background: #f9fcff;
    padding: 28px 30px;
    border-radius: 24px;
    border: 1px solid #e3edf6;
    font-size: 1rem;
    color: #1e2a3a;
    transition: all 0.3s ease;
}

.bottom-text h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0b1a2f;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.bottom-text p {
    margin-bottom: 18px;
}

.bottom-text p:last-child {
    margin-bottom: 0;
}

/* ===== FOOTER ===== */
.footer {
    margin: 40px 0 10px;
    padding: 18px 20px 12px;
    border-top: 1px solid #e0eaf3;
    font-size: 0.9rem;
    color: #3b4d5e;
    text-align: center;
    transition: all 0.3s ease;
}

.footer a {
    color: #0057b3;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== ADAPTIVE ===== */
@media (max-width: 900px) {
    .container {
        padding: 20px 16px 10px;
    }
    .h1-wrapper img {
        height: 4.2rem;
    }
    h1 {
        font-size: 1.8rem;
    }
    .lead {
        font-size: 1rem;
        padding: 14px 18px;
    }
    .cards-grid {
        gap: 16px;
        margin: 20px 0;
    }
    .card-badge-top {
        font-size: 0.85rem;
        padding: 5px 14px 5px 10px;
        top: 12px;
        left: 12px;
        gap: 8px;
    }
    .blinking-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 12px;
    }
    .container {
        padding: 16px 12px 8px;
        border-radius: 20px;
    }
    .h1-wrapper {
        gap: 12px;
    }
    .h1-wrapper img {
        height: 3.6rem;
    }
    h1 {
        font-size: 1.6rem;
    }
    .lead {
        font-size: 0.95rem;
        padding: 14px 16px;
        margin-bottom: 20px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 16px 0 20px;
    }
    .card-img {
        aspect-ratio: 3 / 4;
    }
    .card-title {
        font-size: 16px;
        padding: 14px 16px 2px;
    }
    .card-badge-top {
        font-size: 0.8rem;
        padding: 4px 12px 4px 10px;
        top: 10px;
        left: 10px;
        gap: 6px;
    }
    .blinking-dot {
        width: 9px;
        height: 9px;
    }
    .station-block h2 {
        font-size: 16px;
        padding: 0 16px 6px;
    }
    .iframe-wrapper {
        padding: 0 4px 12px;
    }
    .iframe-wrapper iframe {
        height: 440px;
        border-radius: 16px;
    }
    .bottom-text {
        padding: 18px 16px;
        font-size: 0.95rem;
        margin: 20px 0 10px;
    }
    .bottom-text h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    .footer {
        font-size: 0.8rem;
        padding: 14px 8px 8px;
        margin-top: 28px;
    }
}

@media (max-width: 420px) {
    .iframe-wrapper iframe {
        height: 380px;
    }
    .card-badge-top {
        font-size: 0.7rem;
        padding: 3px 10px 3px 8px;
        top: 8px;
        left: 8px;
        gap: 5px;
    }
    .blinking-dot {
        width: 7px;
        height: 7px;
    }
    .h1-wrapper img {
        height: 2.8rem;
    }
    h1 {
        font-size: 1.3rem;
    }
    .card-title {
        font-size: 15px;
        padding: 12px 14px 2px;
    }
    .station-block h2 {
        font-size: 15px;
    }
    .bottom-text h3 {
        font-size: 14px;
    }
}

/* ===== АНИМАЦИЯ ===== */
.container > * {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lead,
.cards-grid,
.station-block,
.bottom-text,
.footer {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease forwards;
}

.lead { animation-delay: 0.05s; }
.cards-grid { animation-delay: 0.15s; }
.station-block { animation-delay: 0.25s; }
.bottom-text { animation-delay: 0.35s; }
.footer { animation-delay: 0.45s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.card-img,
.card-badge-top,
.iframe-wrapper iframe {
    transition: all 0.3s ease;
}