/* taksi-anapa-gelendzhik.ru — modern standalone styles */

:root {
    --color-accent: #ffc500;
    --color-accent-dark: #e6b000;
    --color-bg: #f8f9fb;
    --color-surface: #ffffff;
    --color-text: #1a1d23;
    --color-muted: #5c6370;
    --color-border: #e8ecf1;
    --shadow-sm: 0 2px 8px rgba(26, 29, 35, 0.06);
    --shadow-md: 0 8px 24px rgba(26, 29, 35, 0.1);
    --shadow-lg: 0 16px 48px rgba(26, 29, 35, 0.12);
    --radius: 14px;
    --radius-lg: 20px;
    --header-h: 72px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --transition: 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1140px, 100% - 2rem);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: var(--color-accent);
    color: var(--color-text);
    font-weight: 600;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    min-width: 0;
    font-weight: 700;
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    line-height: 1.2;
    white-space: nowrap;
    transition: opacity var(--transition);
}

.logo:hover,
.logo:focus-visible {
    opacity: 0.88;
}

.logo-mark {
    flex-shrink: 0;
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 197, 0, 0.35), var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.logo-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.logo:hover .logo-mark,
.logo:focus-visible .logo-mark {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 197, 0, 0.45), var(--shadow-sm);
}

.logo-text {
    display: none;
    letter-spacing: -0.01em;
}

@media (min-width: 480px) {
    .logo-text {
        display: inline;
    }
}

@media (min-width: 900px) {
    .logo-mark {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }
}

.nav {
    display: none;
    align-items: center;
    gap: 1.25rem;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-muted);
    transition: color var(--transition);
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--color-text);
}

.nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 1rem 1.5rem 1.25rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

@media (min-width: 900px) {
    .nav {
        display: flex;
    }

    .nav.is-open {
        position: static;
        flex-direction: row;
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }
}

.header-phone {
    font-weight: 700;
    font-size: clamp(0.85rem, 2.5vw, 1.05rem);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-text);
    transition: transform var(--transition), background var(--transition);
    white-space: nowrap;
}

.header-phone:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin-inline: auto;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
    .menu-toggle {
        display: none;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: clamp(420px, 70vh, 560px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(26, 29, 35, 0.75) 0%, rgba(26, 29, 35, 0.45) 50%, rgba(26, 29, 35, 0.6) 100%),
        url('/images/fon.png') center / cover no-repeat,
        linear-gradient(160deg, #2a2f38 0%, #1a1d23 40%, #3d3520 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0 4rem;
    color: #fff;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 197, 0, 0.2);
    border: 1px solid rgba(255, 197, 0, 0.45);
    border-radius: 999px;
    color: var(--color-accent);
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero-lead {
    margin: 0 auto 2rem;
    max-width: 36rem;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-text);
    box-shadow: 0 4px 16px rgba(255, 197, 0, 0.4);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-card {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    background: var(--color-text);
    color: #fff;
}

.btn-card:hover {
    background: #2d323c;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    text-align: center;
}

.section-sub {
    margin: 0 auto 2.5rem;
    max-width: 32rem;
    text-align: center;
    color: var(--color-muted);
    font-size: 1.05rem;
}

/* Features */
.features {
    background: var(--color-surface);
}

.features-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    padding: 1.5rem;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: var(--color-accent);
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: 14px;
    background: var(--color-text);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.feature-icon--clock::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm.5-13H11v6l5.2 3.15.8-1.23-4.5-2.67z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm.5-13H11v6l5.2 3.15.8-1.23-4.5-2.67z'/%3E%3C/svg%3E");
}

.feature-icon--shield::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 2.18l7 3.12v5.7c0 4.54-3.07 8.83-7 9.93-3.93-1.1-7-5.39-7-9.93V6.3l7-3.12z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 2.18l7 3.12v5.7c0 4.54-3.07 8.83-7 9.93-3.93-1.1-7-5.39-7-9.93V6.3l7-3.12z'/%3E%3C/svg%3E");
}

.feature-icon--wallet::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M21 7H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zm0 12H5V9h16v10zm-14-5h10v2H7v-2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M21 7H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zm0 12H5V9h16v10zm-14-5h10v2H7v-2z'/%3E%3C/svg%3E");
}

.feature-icon--car::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z'/%3E%3C/svg%3E");
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    filter: saturate(1.2);
    color: #b8860b;
}

.feature-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--color-muted);
    line-height: 1.5;
}

/* Tariffs */
.tariffs-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.tariff-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.tariff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 197, 0, 0.5);
}

.tariff-card--wide {
    grid-column: 1 / -1;
    max-width: 360px;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .tariff-card--wide {
        grid-column: span 2;
        max-width: none;
        margin-inline: 0;
    }

    .tariffs-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .tariff-card--wide {
        grid-column: 2 / 4;
        justify-self: center;
        width: 100%;
        max-width: 320px;
    }
}

.tariff-price {
    margin: 0 0 0.85rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text);
}

.tariff-name {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
}

.tariff-image-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    background: var(--color-bg);
    overflow: hidden;
}

.tariff-image-wrap img {
    width: 90%;
    object-fit: contain;
}

/* Order widget */
.order {
    background: var(--color-surface);
    border-block: 1px solid var(--color-border);
}

.widget-wrap {
    padding: 1.5rem;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

/* Виджет stttaxi вставляет только iframe (widget_webalan*); разметка внутри — другой origin. */
.widget-wrap iframe[id^="widget_webalan"] {
    display: block;
    width: 100%;
    /* Визуально скрыть нижнюю полосу брендинга внутри iframe, без overflow/margin, ломающих высоту */
    clip-path: inset(0 0 50px 0);
}

/* На случай, если скрипт добавит футер/ссылку рядом с iframe (не внутри iframe) */
.widget-wrap .stttaxi-footer,
.widget-wrap .widget-footer,
.widget-wrap .powered-by,
.widget-wrap a[href*="tratatur.ru"]:not([href*="widget.js"]) {
    display: none !important;
}

/* Article */
.article {
    background: var(--color-surface);
}

.article-inner {
    max-width: 48rem;
}

.article h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 800;
    text-align: center;
}

.article p + h2 {
    margin-top: 2.5rem;
}

.article p {
    margin: 0 0 1.25rem;
    text-align: justify;
    text-indent: 1cm;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text);
}

.article p:last-child {
    margin-bottom: 0;
}

.table-responsive {
    margin: 1.75rem 0 0;
    overflow-x: auto;
}

.directions-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.directions-table th,
.directions-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    font-size: 1rem;
}

.directions-table thead th {
    background: #fff6cc;
    font-weight: 700;
}

.directions-table tbody tr:nth-child(even) {
    background: var(--color-bg);
}

.directions-table .text-center {
    text-align: center;
}

.directions-table a {
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid rgba(255, 197, 0, 0.55);
}

.directions-table a:hover,
.directions-table a:focus-visible {
    color: #b8860b;
    border-bottom-color: var(--color-accent);
}

.article-nav {
    margin: 0 0 2rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.article-nav-label {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
}

.article-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.article-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid rgba(255, 197, 0, 0.5);
    transition: color var(--transition), border-color var(--transition);
}

.article-nav a:hover,
.article-nav a:focus-visible {
    color: #b8860b;
    border-bottom-color: var(--color-accent);
}

.article section {
    margin-bottom: 2rem;
}

.article section:last-child {
    margin-bottom: 0;
}

.article h3 {
    margin: 0 0 1rem;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: var(--color-text);
}

.article a {
    color: #b8860b;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 197, 0, 0.45);
    transition: color var(--transition), border-color var(--transition);
}

.article a:hover,
.article a:focus-visible {
    color: var(--color-text);
    border-bottom-color: var(--color-accent);
}

/* FAQ */
.faq {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.faq-list {
    max-width: 42rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item[open] {
    border-color: rgba(255, 197, 0, 0.55);
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    padding-right: 2.75rem;
    position: relative;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
    background: var(--color-accent);
    border-radius: 8px;
    transition: transform var(--transition), background var(--transition);
}

.faq-item[open] summary::after {
    content: '−';
    background: var(--color-text);
    color: var(--color-accent);
}

.faq-question {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-text);
}

.faq-answer {
    padding: 0 1.25rem 1.15rem;
}

.faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-muted);
}

/* CTA bar */
.cta-bar {
    padding: 2.5rem 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, #fff 100%);
    text-align: center;
}

.cta-text {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.cta-sub {
    margin: 0.25rem 0 0.75rem;
    color: var(--color-muted);
}

.cta-phone {
    display: inline-block;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: color var(--transition);
}

.cta-phone:hover {
    color: #b8860b;
}

/* Footer */
.site-footer {
    padding: 1.5rem 0;
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-address {
        text-align: right;
    }
}

.footer-copy,
.footer-address {
    margin: 0;
}

/* Routes listing & cards */
.hero--compact {
    min-height: clamp(320px, 50vh, 440px);
}

.routes-list {
    background: var(--color-surface);
}

.routes-region-title {
    margin: 2.5rem 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-muted);
    text-align: left;
}

.routes-region-title:first-of-type {
    margin-top: 0;
}

.routes-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 540px) {
    .routes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .routes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.route-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.15rem 1.25rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.route-card:hover,
.route-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 197, 0, 0.55);
}

.route-card-city {
    font-weight: 700;
    font-size: 1.02rem;
}

.route-card-meta {
    font-size: 0.88rem;
    color: var(--color-muted);
}

.route-card-cta {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b8860b;
}

.routes-home-link {
    text-align: center;
    margin: 0;
}

/* Footer popular routes */
.footer-inner {
    align-items: flex-start;
}

.footer-main {
    flex: 1;
}

.footer-routes {
    margin-top: 1rem;
    text-align: left;
}

.footer-routes-title {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.65);
}

.footer-routes ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
}

.footer-routes a {
    font-size: 0.85rem;
    color: var(--color-accent);
    transition: opacity var(--transition);
}

.footer-routes a:hover {
    opacity: 0.85;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
    }

    .footer-routes {
        margin-top: 0;
        text-align: right;
        max-width: 50%;
    }

    .footer-address {
        text-align: left;
    }
}

/* Breadcrumb on route pages */
.page-breadcrumb {
    padding: 0.75rem 0 0;
    font-size: 0.88rem;
    color: var(--color-muted);
}

.page-breadcrumb a {
    color: var(--color-muted);
    border-bottom: 1px solid transparent;
}

.page-breadcrumb a:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-accent);
}

.page-breadcrumb span {
    margin: 0 0.35rem;
}

/* 404 */
.error-page {
    padding: 4rem 0 2.5rem;
    text-align: center;
    background: var(--color-bg);
}

.error-page-inner {
    max-width: 40rem;
}

.error-code {
    margin: 0;
    font-size: clamp(4.5rem, 16vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--color-accent);
    text-shadow: 3px 3px 0 #111;
}

.error-page h1 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(1.6rem, 4vw, 2.15rem);
    font-weight: 800;
}

.error-lead {
    margin: 0 0 1.75rem;
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
