/* ===== Pathio Landing — Wayfarer. Токены в pathio-tokens.css ===== */
:root {
    --transition: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ----- Прогресс прокрутки ----- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--pathio-accent), var(--pathio-accent-hover));
    z-index: 9999;
    transition: width 0.08s ease-out;
}

html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--pathio-text);
    background: var(--pathio-bg);
    overflow-x: hidden;
}
/* Обычная прокрутка страницы без snap по секциям */

/* ----- Navigation ----- */
.navbar {
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--pathio-shadow);
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    height: 44px;
    width: auto;
    transition: transform var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.04);
}

.nav-link {
    font-weight: 500;
    color: var(--pathio-text) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--pathio-radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--pathio-accent) !important;
    background: var(--pathio-accent-soft);
}

/* Кнопка CTA (Регистрация и т.д.) — Wayfarer accent */
.btn-cta-primary {
    background: var(--pathio-accent);
    border: none;
    color: #fff !important;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: var(--pathio-radius);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--pathio-shadow);
}

.btn-cta-primary:hover {
    color: #fff !important;
    background: var(--pathio-accent-hover);
    box-shadow: var(--pathio-shadow-hover);
}

.navbar .btn-cta-primary {
    margin-left: 0.25rem;
}

/* ----- Hero ----- */
.hero-section {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: clamp(4.8rem, 8vh, 6.25rem);
    padding-bottom: clamp(1.25rem, 4vh, 2.25rem);
    display: flex; align-items: center; position: relative;
    background: linear-gradient(165deg, #1a1816 0%, #2d2522 40%, #252019 100%);
    color: #fff; overflow: hidden;
}

/* Параллакс-слой с фото (двигается в JS) */
.hero-parallax-bg {
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg-url, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transition: transform 0.1s linear;
    z-index: 0;
    opacity: 0.7;
}

.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(26,26,26,0.6) 60%, rgba(26,26,26,0.85) 100%);
    pointer-events: none; z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.75rem;
    display: block;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-section .lead {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 400;
    opacity: 0.92;
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.hero-hint {
    opacity: 0.8;
    font-size: 0.9375rem;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 60rem;
    margin: 0 auto;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    line-height: 1.35;
}

.hero-social-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex: 0 0 auto;
}

.hero-social-logos img {
    height: 72px;
    width: auto;
    flex-shrink: 0;
}

.hero-social-proof-text {
    margin: 0;
    min-width: 0;
    text-align: left;
}

.hero-cta-main .btn {
    min-width: 240px;
}

/* Кнопки скачивания в hero и в блоке download — светлые на тёмном фоне */
.hero-cta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.btn-badge {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 0;
    border-radius: 12px;
    transition: transform var(--transition), filter var(--transition);
}

.btn-badge:hover {
    transform: translateY(-4px);
    filter: brightness(1.1);
}

.btn-badge img {
    display: block;
    height: 52px;
    width: auto;
}

@media (min-width: 576px) {
    .btn-badge img {
        height: 58px;
    }
}

/* Кнопки — только картинка, без белого фона (SVG имеет белый — убираем через mix-blend-mode), размер больше */
.btn-badge-on-dark,
button.btn-badge-on-dark {
    background: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    transition: transform var(--transition), opacity var(--transition);
}
.btn-badge-on-dark:hover,
button.btn-badge-on-dark:hover {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    opacity: 0.92;
}
/* Бейджи: ~2x размер, подстраиваются под экран */
.hero-section .btn-badge-on-dark img,
.download-section .btn-badge-on-dark img {
    display: block;
    height: clamp(100px, 22vw, 140px) !important;
    width: auto;
    vertical-align: top;
    filter: invert(1);
}
@media (min-width: 576px) {
    .hero-section .btn-badge-on-dark img,
    .download-section .btn-badge-on-dark img {
        height: clamp(140px, 18vw, 180px) !important;
    }
}
@media (min-width: 768px) {
    .hero-section .btn-badge-on-dark img,
    .download-section .btn-badge-on-dark img {
        height: clamp(160px, 14vw, 200px) !important;
    }
}
@media (min-width: 992px) {
    .hero-section .btn-badge-on-dark img,
    .download-section .btn-badge-on-dark img {
        height: clamp(170px, 12vw, 220px) !important;
    }
}

/* Scroll indicator (optional) */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fade-bounce 2s ease-in-out infinite;
}

.hero-scroll-hint i {
    font-size: 1.25rem;
}

@keyframes fade-bounce {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* Лёгкое «дыхание» кнопки CTA в hero */
@keyframes cta-soft-pulse {
    0%, 100% { box-shadow: var(--pathio-shadow); }
    50% { box-shadow: 0 4px 20px rgba(184, 84, 58, 0.25); }
}
.download-section .btn-cta-primary {
    animation: cta-soft-pulse 3s ease-in-out infinite;
}

/* ----- Секции и блоки ----- */
.section-block {
    padding: 4rem 0;
    scroll-margin-top: 5rem;
}

.section-heading {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700; color: var(--pathio-text);
    margin-bottom: 0.5rem; text-align: center;
    letter-spacing: -0.02em;
}

.section-sub {
    font-size: 1.0625rem;
    color: var(--pathio-text-secondary);
    text-align: center;
    margin-bottom: 0;
    max-width: 28em;
    margin-left: auto;
    margin-right: auto;
}

.container-narrow {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading-premium {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--pathio-text);
}

/* ----- Возможности приложения: блоки на высоту экрана, фото + текст, snap при свайпе ----- */
.app-snap-section {
    padding: 0;
    background: #faf9f7;
}

.app-snap-header {
    scroll-margin-top: 4rem;
    padding: 1.25rem 1rem 0.75rem;
    text-align: center;
}

.app-snap-header .section-heading {
    margin-bottom: 0;
}

.app-snap-block {
    scroll-margin-top: 4rem;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 0.75rem;
    padding: 0.75rem 1rem 1.25rem;
    align-items: center;
    justify-items: center;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .app-snap-block {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        gap: 1.5rem;
        padding: 1rem 2rem 1.5rem;
        min-height: 95vh;
        min-height: 95dvh;
    }
}

.app-snap-img {
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    max-height: 88dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.app-snap-img img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
}

.app-snap-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0;
    text-align: left;
    max-width: 28em;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .app-snap-text {
        margin: 0;
        padding: 1rem 1.5rem;
        text-align: left;
    }
}

.app-snap-block {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--transition-slow), transform 0.6s var(--transition-slow);
}

.app-snap-block.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.app-screen-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--pathio-accent);
    margin-bottom: 0.5rem;
}

.app-screen-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--pathio-text);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.app-screen-desc {
    font-size: 1rem;
    color: var(--pathio-text-secondary);
    line-height: 1.6;
    margin: 0 0 0.75rem;
}
.app-screen-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9375rem;
    color: var(--pathio-text-secondary);
    line-height: 1.5;
}
.app-screen-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
}
.app-screen-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--pathio-accent);
    font-weight: 600;
}

.features-section {
    padding: 0;
}

/* ----- Секция «Вдохновение» (премиальный баннер + карточки) ----- */
.places-section {
    padding: 0 0 5rem;
    background: #f5f2ee;
}

.places-hero {
    position: relative;
    height: min(420px, 70vw);
    min-height: 280px;
    overflow: hidden;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--transition-slow), transform 0.8s var(--transition-slow);
}

.places-hero.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.places-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--transition-slow);
}

.places-hero:hover img {
    transform: scale(1.03);
}

.places-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #fff;
}

.places-hero-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.places-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.places-hero-desc {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 24em;
}

.places-hero-credit {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    z-index: 2;
    font-size: 0.6875rem;
    opacity: 0.85;
}

.places-hero-credit a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.places-hero-credit a:hover {
    color: #fff;
    text-decoration: underline;
}

.places-cards-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.places-cards {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    gap: 1.5rem;
}

.place-card {
    position: relative;
    display: block;
    border-radius: var(--pathio-radius-lg);
    overflow: hidden;
    min-height: 280px;
    aspect-ratio: 4/3;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--transition-slow), transform 0.6s var(--transition-slow), box-shadow var(--transition), border-color var(--transition);
}

.place-card.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.place-card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
    border-color: var(--pathio-accent);
}

.place-card-bg {
    position: absolute;
    inset: 0;
    background: #e8e6e3;
}

.place-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.7s var(--transition-slow);
}

.place-card:hover .place-card-bg img {
    transform: scale(1.06);
}

.place-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, transparent 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
}

.place-card-credit {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1;
    font-size: 0.625rem;
}

.place-card-credit a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    background: rgba(0,0,0,0.4);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.place-card-credit a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Нижний блок «Вдохновение» — полноширинный редакционный баннер */
.place-featured {
    position: relative;
    display: block;
    border-radius: var(--pathio-radius-lg);
    overflow: hidden;
    min-height: 320px;
    aspect-ratio: 21/9;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.06);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--transition-slow), transform 0.7s var(--transition-slow), box-shadow var(--transition);
}

.place-featured.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.place-featured:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.14);
}

.place-featured-bg {
    position: absolute;
    inset: 0;
    background: #1a1a1a;
}

.place-featured-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transition: transform 1s var(--transition-slow);
}

.place-featured:hover .place-featured-bg img {
    transform: scale(1.05);
}

.place-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 45%, transparent 70%);
    pointer-events: none;
}

.place-featured-label {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 12rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.place-featured-desc {
    position: absolute;
    bottom: 0.75rem;
    left: 2rem;
    font-size: 0.9375rem;
    opacity: 0.92;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.place-featured-credit {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    font-size: 0.6875rem;
}

.place-featured-credit a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    background: rgba(0,0,0,0.35);
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
}

.place-featured-credit a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .place-featured {
        min-height: 260px;
        aspect-ratio: 4/3;
    }
    .place-featured-overlay {
        background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 50%);
    }
    .place-featured-label {
        bottom: 1.25rem;
        left: 1.25rem;
        right: 1.25rem;
        font-size: 1.35rem;
    }
    .place-featured-desc {
        bottom: 0.5rem;
        left: 1.25rem;
        font-size: 0.875rem;
    }
    .place-featured-credit {
        top: 0.5rem;
        right: 0.5rem;
    }
    .places-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .place-card {
        aspect-ratio: 16/10;
    }
}

/* ----- Как проходит планирование (новый блок) ----- */
.about-section {
    background: linear-gradient(180deg, #f8f6f1 0%, #f3f1ec 100%);
    padding: 3rem 0 3.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.about-head {
    text-align: center;
    max-width: 840px;
    margin: 0 auto;
}

.about-title {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--pathio-text);
    margin-bottom: 0.6rem;
}

.about-lead {
    margin: 0;
    font-size: 1.06rem;
    color: var(--pathio-text-secondary);
    line-height: 1.55;
}

.about-flow {
    margin: 1.35rem auto 0;
    max-width: 1040px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0.45rem;
    align-items: center;
}

.about-flow-item {
    background: #fff;
    border: 1px solid rgba(184, 84, 58, 0.16);
    border-radius: 14px;
    padding: 0.75rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.about-flow-num {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #9f452f;
    background: rgba(184, 84, 58, 0.14);
}

.about-flow-item p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--pathio-text);
}

.about-flow-arrow {
    color: #b7735f;
    text-align: center;
    font-size: 0.92rem;
}

.about-modes {
    margin-top: 1.15rem;
}

.about-mode-card {
    height: 100%;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(184, 84, 58, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 1rem 1rem 0.95rem;
    display: flex;
    flex-direction: column;
}

.about-mode-card.featured {
    border-color: rgba(184, 84, 58, 0.38);
    box-shadow: 0 16px 36px rgba(184, 84, 58, 0.16);
    transform: translateY(-2px);
}

.about-mode-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.62rem;
    background: rgba(184, 84, 58, 0.13);
    color: #9f452f;
}

.about-mode-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.about-mode-card p {
    margin: 0;
    color: var(--pathio-text-secondary);
    font-size: 0.93rem;
    line-height: 1.45;
}

.about-mode-card ul {
    margin: 0.7rem 0 0;
    padding-left: 1.05rem;
    color: var(--pathio-text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
}

.about-mode-card li + li {
    margin-top: 0.2rem;
}

.about-cta-wrap {
    margin-top: 1rem;
}

.route-demo {
    background: #fff;
    padding-top: 2rem;
    padding-bottom: 2.6rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.route-demo-head {
    max-width: 760px;
    margin: 0 auto 1.2rem;
}

.route-demo-head h2 {
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    margin: 0.25rem 0 0.45rem;
}

.route-demo-head p {
    margin: 0;
    color: var(--pathio-text-secondary);
}

.route-demo-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
}

.route-demo-panel {
    background: #f8f7f4;
    border: 1px solid rgba(184, 84, 58, 0.15);
    border-radius: 16px;
    padding: 1rem;
}

.route-demo-panel h3 {
    font-size: 1rem;
    margin: 0 0 0.45rem;
}

.route-demo-input,
.route-demo-result {
    margin: 0;
    color: var(--pathio-text);
    line-height: 1.45;
}

.route-demo-meta {
    margin-top: 0.65rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.route-demo-meta span {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.83rem;
    background: rgba(184, 84, 58, 0.12);
    color: #9f452f;
    border: 1px solid rgba(184, 84, 58, 0.2);
}

.route-demo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.route-demo-chip {
    display: inline-block;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.route-demo-source {
    font-size: 0.86rem;
    color: var(--pathio-text-secondary);
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    padding-top: 0.55rem;
}

.route-demo-stops {
    margin-top: 0.7rem;
    display: grid;
    gap: 0.42rem;
    max-height: 540px;
    overflow: auto;
    padding-right: 0.2rem;
}

.route-demo-stop {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

.route-demo-stop-summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.7rem;
    cursor: pointer;
}

.route-demo-stop summary::-webkit-details-marker {
    display: none;
}

.route-demo-stop strong {
    font-size: 0.92rem;
    display: block;
}

.route-demo-stop-time {
    font-size: 0.8rem;
    color: var(--pathio-text-secondary);
    white-space: nowrap;
}

.route-demo-stop-body {
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    padding: 0.55rem 0.7rem 0.7rem;
}

.route-demo-stop p {
    margin: 0;
    color: var(--pathio-text-secondary);
    font-size: 0.82rem;
    line-height: 1.35;
}

.route-demo-stop-map-btn {
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 107, 53, 0.32);
    background: rgba(255, 107, 53, 0.08);
    color: #bf4d1f;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.28rem 0.62rem;
}

.route-demo-map {
    width: 100%;
    min-height: 420px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.route-demo-map-note {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--pathio-text-secondary);
}

.pathio-map-marker-wrap {
    background: transparent;
    border: none;
}

.pathio-map-marker {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    background: #FF6B35;
}

.pathio-map-marker.is-attraction {
    background: #FF6B35;
}

.pathio-map-marker.is-coffee {
    background: #7c4dff;
}

.pathio-map-marker.is-finish {
    background: #111827;
}

.route-demo-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.8rem;
    font-size: 0.9rem;
    margin-top: 0.6rem;
}

.route-demo-summary-grid.simple div {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.route-demo-summary-grid.simple span {
    color: var(--pathio-text);
    font-weight: 700;
}

.route-demo-extra {
    font-size: 0.88rem;
}

.route-demo-categories {
    margin: 0 0 0.4rem;
    padding-left: 1.1rem;
    font-size: 0.8rem;
    color: var(--pathio-text-secondary);
    max-height: 120px;
    overflow: auto;
}


.conversion-strip {
    background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
    margin-top: -1px;
    padding: 2rem 0 2.8rem;
    border-top: 1px solid rgba(184, 84, 58, 0.12);
    border-bottom: 1px solid rgba(184, 84, 58, 0.08);
}

.conversion-strip-head {
    max-width: 760px;
    margin: 0 auto 1.15rem;
}

.conversion-kicker {
    display: inline-block;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: #9f452f;
    background: rgba(184, 84, 58, 0.12);
    border: 1px solid rgba(184, 84, 58, 0.26);
    border-radius: 999px;
    padding: 0.32rem 0.72rem;
    margin-bottom: 0.7rem;
}

.conversion-strip-head h2 {
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    line-height: 1.2;
    margin: 0 0 0.45rem;
    color: #1f1a17;
}

.conversion-strip-head p {
    margin: 0 auto;
    color: var(--pathio-text-secondary);
    max-width: 40rem;
}

.conv-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(184, 84, 58, 0.16);
    border-radius: 18px;
    padding: 1.05rem 1rem 0.95rem;
    box-shadow: 0 6px 20px rgba(33, 26, 23, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.conv-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(33, 26, 23, 0.08);
    border-color: rgba(184, 84, 58, 0.3);
}

.conv-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(184, 84, 58, 0.12);
    color: #a84a31;
    margin-bottom: 0.5rem;
}

.conv-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
    color: var(--pathio-text);
}

.conv-card p {
    margin: 0;
    color: var(--pathio-text-secondary);
    line-height: 1.45;
    font-size: 0.95rem;
}

.conversion-strip-cta {
    margin-top: 1.25rem;
}

.conversion-strip-cta .btn {
    min-width: 280px;
}

/* ----- Download section: фото как сверху + тёмный оверлей ----- */
.download-section {
    position: relative;
    padding: 5rem 0;
    color: #fff;
    text-align: center;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.download-section-bg {
    position: absolute;
    inset: 0;
    background-image: var(--download-bg-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.download-section-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.75) 100%);
}
.download-section-content {
    position: relative;
    z-index: 1;
}
.download-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.download-section .lead {
    font-size: 1.0625rem;
    opacity: 0.88;
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.download-section .hero-cta-badges {
    margin-top: 0.5rem;
}

/* ----- Footer (премиальный) ----- */
.footer {
    background: linear-gradient(180deg, #1f1d1b 0%, #1a1816 100%);
    color: rgba(255,255,255,0.88);
    padding: 0;
    font-size: 0.9375rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 1.2fr 1.5fr 1fr;
        gap: 3rem;
        align-items: start;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    display: block;
    height: 36px;
    width: auto;
    opacity: 0.95;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
    max-width: 16em;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--pathio-accent);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: rgba(255,255,255,0.85);
}

.footer-bottom {
    padding: 1.5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-copy {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.footer a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color var(--transition);
}

.footer a:hover {
    color: var(--pathio-accent);
}

/* ----- Buttons (app store) global ----- */
.btn-app-store,
.btn-google-play {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
}

.btn-app-store img,
.btn-google-play img {
    display: block;
    height: 56px;
    width: auto;
}

@media (max-width: 576px) {
    .btn-app-store img,
    .btn-google-play img {
        height: 44px !important;
    }
}

/* ----- Modal ----- */
.modal-content {
    border-radius: var(--pathio-radius);
    border: none;
    box-shadow: var(--pathio-shadow-hover);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem 1.5rem 2rem;
}

.form-control {
    border-radius: var(--pathio-radius-sm);
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    border-color: var(--pathio-accent);
    box-shadow: 0 0 0 3px var(--pathio-accent-soft);
    outline: none;
}

/* ----- Scroll to top ----- */
.scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pathio-accent);
    color: #fff;
    border: none;
    box-shadow: var(--pathio-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--pathio-accent-hover);
    color: #fff;
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
    .navbar-nav,
    .navbar .btn-primary {
        display: none !important;
    }
    .mobile-burger {
        display: block !important;
    }
    .feature-block {
        margin-bottom: 3.5rem;
    }
    .feature-image img {
        max-width: 100%;
    }
}

.mobile-burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--pathio-accent);
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100svh;
        padding-top: 5.4rem;
        padding-bottom: 1rem;
    }
    .hero-section h1 {
        font-size: clamp(1.9rem, 8vw, 2.4rem);
        margin-bottom: 0.8rem;
    }
    .hero-section .lead {
        font-size: 0.99rem;
        margin-bottom: 0.8rem;
    }
    .hero-social-proof {
        border-radius: 14px;
        padding: 0.45rem 0.65rem;
        font-size: 0.82rem;
        flex-direction: column;
        gap: 0.65rem;
    }
    .hero-social-proof-text {
        text-align: center;
    }
    .hero-hint {
        margin-top: 0.65rem !important;
        font-size: 0.84rem;
    }
    .hero-scroll-hint {
        display: none;
    }
    .conversion-strip {
        padding: 1.45rem 0 2rem;
    }
    .conversion-strip-head {
        margin-bottom: 0.9rem;
    }
    .conversion-strip-head p {
        font-size: 0.94rem;
    }
    .conversion-strip-cta .btn {
        width: 100%;
        min-width: 0;
    }
    .about-section {
        padding: 2.2rem 0 2.6rem;
    }
    .about-flow {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }
    .about-flow-arrow {
        display: none;
    }
    .about-mode-card.featured {
        transform: none;
    }
    .route-demo {
        padding-top: 1.6rem;
        padding-bottom: 2rem;
    }
    .route-demo-layout {
        grid-template-columns: 1fr;
    }
    .route-demo-summary-grid {
        grid-template-columns: 1fr;
    }
    .route-demo-map {
        min-height: 300px;
    }
}

/* Offcanvas */
.offcanvas-header {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 1rem 1.25rem;
}

.offcanvas-body .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: var(--pathio-radius-sm);
}

.offcanvas-body .btn-primary {
    margin-top: 0.5rem;
}

/* ===== Перекрытие всех стилей для кнопок бейджей App Store / Google Play (a и button) ===== */
body .hero-section .hero-cta-badges .btn-badge.btn-badge-on-dark,
body .download-section .hero-cta-badges .btn-badge.btn-badge-on-dark {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    text-decoration: none !important;
    color: inherit !important;
}
body .hero-section .hero-cta-badges .btn-badge-on-dark img,
body .download-section .hero-cta-badges .btn-badge-on-dark img {
    display: block !important;
    height: clamp(100px, 22vw, 140px) !important;
    width: auto !important;
    max-width: none !important;
    filter: invert(1) !important;
    background: transparent !important;
    border: none !important;
}
@media (min-width: 576px) {
    body .hero-section .hero-cta-badges .btn-badge-on-dark img,
    body .download-section .hero-cta-badges .btn-badge-on-dark img {
        height: clamp(140px, 18vw, 180px) !important;
    }
}
@media (min-width: 768px) {
    body .hero-section .hero-cta-badges .btn-badge-on-dark img,
    body .download-section .hero-cta-badges .btn-badge-on-dark img {
        height: clamp(160px, 14vw, 200px) !important;
    }
}
@media (min-width: 992px) {
    body .hero-section .hero-cta-badges .btn-badge-on-dark img,
    body .download-section .hero-cta-badges .btn-badge-on-dark img {
        height: clamp(170px, 12vw, 220px) !important;
    }
}

/* ========== Только размер бейджей загрузки (отдельные классы, ничего не перекрывает) ========== */
img.pathio-store-badge-img {
    height: 140px !important;
    min-height: 140px !important;
    width: auto !important;
    max-height: none !important;
}
@media (min-width: 576px) {
    img.pathio-store-badge-img {
        height: 180px !important;
        min-height: 180px !important;
    }
}
@media (min-width: 768px) {
    img.pathio-store-badge-img {
        height: 220px !important;
        min-height: 220px !important;
    }
}
@media (min-width: 992px) {
    img.pathio-store-badge-img {
        height: 260px !important;
        min-height: 260px !important;
    }
}
