/* ===== Спот — лендинг (по мотивам Targo hero+about), тема "умная реклама" ===== */
/* Шрифт Quantico не поддерживает кириллицу — заменён на Play (Google Fonts), тот же
   угловатый "стенсильный" характер и полная поддержка кириллицы, вес 400/700. */

* { box-sizing: border-box; }

body.landing {
    margin: 0;
    background: #F2F1F0;
    font-family: 'Play', 'Arial Narrow', sans-serif;
    color: #6b6f72;
    overflow-x: hidden;
}
body.landing a { color: #3a3a3a; text-decoration: none; }
body.landing a:hover { color: #000; }

.ld-heading, .ld-headline, .ld-nav a, .ld-btn {
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 0.98;
}

/* ---------------- HERO ---------------- */
.ld-hero {
    position: relative;
    min-height: 100svh;
    background: #F2F1F0;
    overflow: hidden;
}

.ld-hero-video {
    position: absolute;
    pointer-events: none;
    top: 0;
    right: -20%;
    width: 99%;
    height: auto;
    object-fit: contain;
    z-index: 0;
    background: transparent;
}
/* На мобильном видео как фон под шапкой не работает надёжно — гадать высоту заранее нельзя,
   выходит то дыра, то видео налезает на меню. Вместо этого на узких экранах видео — обычный
   блок в потоке документа: сразу ПОД шапкой, фиксированной высоты, с обрезкой (cover). */
@media (max-width: 700px) {
    .ld-hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .ld-hero-video {
        position: relative;
        order: 2;
        top: auto; left: auto; right: auto;
        width: 100%;
        height: clamp(220px, 52vw, 340px);
        object-fit: cover;
        z-index: auto;
    }
}

.ld-scrim {
    position: absolute;
    inset: 0;
    width: 70%;
    background: linear-gradient(90deg, #F2F1F0 0%, #F2F1F0 55%, rgba(242,241,240,0.85) 78%, rgba(242,241,240,0) 100%);
    z-index: 1;
    pointer-events: none;
}
@media (max-width: 700px) { .ld-scrim { display: none; } }

.ld-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(20px, 5vw, 56px);
    padding: clamp(20px, 3vw, 38px) clamp(20px, 4vw, 48px) 0;
}
@media (max-width: 700px) {
    .ld-nav { order: 1; padding-bottom: 14px; }
    .ld-mobile-menu { order: 1; }
}
.ld-logo { display: flex; align-items: center; gap: 10px; }
.ld-logo .mark {
    width: 38px; height: 38px; border-radius: 50%;
    background: #111;
    display: flex; align-items: center; justify-content: center;
    flex: none;
}
.ld-logo .mark span {
    width: 20px; height: 8px; border-radius: 50%;
    background: #fff;
    transform: rotate(-25deg);
}
.ld-logo .word {
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 400;
    color: #111;
    letter-spacing: -0.5px;
    text-transform: lowercase;
}
.ld-nav-links {
    display: flex;
    gap: 34px;
    margin-left: 8px;
}
.ld-nav-links a {
    position: relative;
    font-weight: 700;
    font-size: clamp(12px, 2.4vw, 15px);
    letter-spacing: 0.06em;
    color: #3a3a3a;
    white-space: nowrap;
    padding-bottom: 4px;
}
.ld-nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: #15BCDF;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}
.ld-nav-links a:hover { color: #000; }
.ld-nav-links a:hover::after { transform: scaleX(1); }
.ld-nav-links a.active { color: #000; }
.ld-nav-links a.active::after { transform: scaleX(1); }
.ld-mobile-menu a.active { color: #15BCDF; }
@media (max-width: 700px) { .ld-nav-links, .ld-contact-btn { display: none; } }

/* Специфичность важна: "body.landing a" (2 тега + класс) иначе перебивает color здесь
   (1 класс) и текст остаётся тёмным на тёмной плашке — сливается. .ld-nav поднимает вес. */
/* Кнопка "Открыть в ВК" — единственное, через что сайт реально ведёт в сам сервис (сканировать
   QR, публиковать историю, вести заведение можно только внутри ВК, не здесь) — поэтому видна
   всегда, в том числе на мобильном, в отличие от остальной навигации. */
.ld-nav .ld-vk-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #15BCDF;
    border: 1px solid #0fa3c2;
    color: #1a1c1e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: inherit;
    font-weight: 700;
    font-size: 12.5px;
    padding: 12px 20px;
    cursor: pointer;
    white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: background 0.2s ease, transform 0.2s ease;
}
.ld-nav .ld-vk-btn:hover { background: #3fd0ef; transform: translateY(-1px); color: #1a1c1e; }
.ld-vk-btn svg { flex: none; }

.ld-nav .ld-contact-btn {
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    padding: 14px 26px;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    background-color: #2b3033;
    transition: background 0.2s ease;
}
.ld-nav .ld-contact-btn:hover { background-color: rgba(43,48,51,0.85); transform: translateY(-1px); color: #fff; }
.ld-contact-btn { transition: background 0.2s ease, transform 0.2s ease; }
.ld-contact-btn svg { flex: none; }

.ld-burger {
    display: none;
    margin-left: auto;
    background: #2b3033;
    border: none;
    width: 44px; height: 44px;
    border-radius: 4px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    position: relative;
    z-index: 4;
}
.ld-burger span {
    width: 20px; height: 2px; background: #fff; display: block;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.ld-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ld-burger.open span:nth-child(2) { opacity: 0; }
.ld-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 700px) { .ld-burger { display: flex; } }

.ld-mobile-menu {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    padding: 0 clamp(20px, 4vw, 48px);
    transition: max-height 0.35s cubic-bezier(.4,0,.2,1), padding 0.35s ease;
}
.ld-mobile-menu.open { max-height: 260px; padding: 18px clamp(20px, 4vw, 48px) 22px; }
.ld-mobile-menu a {
    color: #1a1c1e;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(43,48,51,0.1);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.ld-mobile-menu.open a {
    opacity: 1;
    transform: translateY(0);
}
.ld-mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
.ld-mobile-menu.open a:nth-child(2) { transition-delay: 0.1s; }
.ld-mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
.ld-mobile-menu.open a:nth-child(4) { transition-delay: 0.2s; }

.ld-headline {
    position: relative;
    z-index: 2;
    margin: 0;
    font-weight: 700;
    color: #2b3033;
    padding: min(clamp(40px, 9vw, 120px), 9vh) 20px min(clamp(24px, 4vw, 44px), 5vh) clamp(20px, 9vw, 118px);
    font-size: min(clamp(34px, 7.6vw, 80px), 9.2vh);
}
@media (max-width: 700px) {
    .ld-headline { order: 3; margin-top: 0; padding: 28px 20px 22px 20px; font-size: clamp(30px, 9.5vw, 48px); }
}
.ld-headline .indent { display: block; margin-left: min(238px, 28vw); }
.ld-headline .accent { color: #15BCDF; }

.ld-headline, .ld-cta-wrap, .ld-nav {
    animation: ld-rise 0.8s cubic-bezier(.2,.7,.2,1) both;
}
.ld-cta-wrap { animation-delay: 0.15s; }
.ld-nav { animation-delay: 0s; animation-duration: 0.5s; }
@keyframes ld-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .ld-headline, .ld-cta-wrap, .ld-nav { animation: none; }
}

.ld-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #15BCDF;
    border: 1px solid #0fa3c2;
    color: #1a1c1e;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 18px 34px;
    font-size: clamp(13px, 2.2vw, 16px);
    font-family: inherit;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    box-shadow: 0 0 0 1px rgba(21,188,223,0.35), 0 10px 30px -12px rgba(15,163,194,0.6);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ld-btn::after { content: ''; width: 22px; height: 1px; background: #1a1c1e; transition: width 0.25s ease; }
.ld-btn:hover {
    background: #3fd0ef;
    box-shadow: 0 0 0 1px rgba(21,188,223,0.5), 0 16px 40px -10px rgba(15,163,194,0.8);
    transform: translateY(-2px);
}
.ld-btn:hover::after { width: 32px; }
.ld-btn:active { transform: translateY(0); }

.ld-cta-wrap {
    position: relative;
    z-index: 2;
    padding-left: calc(clamp(20px, 9vw, 118px) + min(238px, 28vw));
    padding-bottom: min(clamp(36px, 6vw, 80px), 7vh);
}
@media (max-width: 700px) { .ld-cta-wrap { order: 4; padding-left: 20px; padding-bottom: 40px; } }

/* ---------------- ABOUT ---------------- */
.ld-about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    background: linear-gradient(180deg, #F2F1F0 0%, #F7F6F8 18%, #F7F6F8 100%);
    padding: clamp(60px, 10vw, 140px) 0 clamp(30px, 5vw, 70px) clamp(20px, 9vw, 118px);
}
.ld-about-left { flex: 1 1 420px; min-width: 300px; }
/* Без видео справа блок about превращается в цитату на всю ширину — ограничиваем, чтобы
   заголовок и текст не растягивались на весь экран на широких мониторах. */
.ld-about--solo { padding-right: clamp(20px, 9vw, 118px); }
.ld-about--solo .ld-about-left { flex: 0 1 auto; max-width: 760px; }
.ld-about-left h2 {
    margin: 0;
    font-weight: 700;
    color: #2b3033;
    font-size: clamp(34px, 6.5vw, 72px);
}
.ld-about-left h2 .indent { display: block; margin-left: min(160px, 18vw); color: #15BCDF; }
.ld-about-left p {
    max-width: 520px;
    margin: 32px 0 0 min(160px, 18vw);
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.7;
    color: #6b6f72;
    text-transform: none;
    letter-spacing: normal;
}
@media (max-width: 700px) {
    .ld-about-left h2 .indent { margin-left: 0; }
    .ld-about-left p { margin-left: 0; }
    .ld-about { padding-left: 20px; }
}
.ld-about-btn { margin: 36px 0 0 min(160px, 18vw); }
@media (max-width: 700px) { .ld-about-btn { margin-left: 0; } }

.ld-about-right {
    flex: 1 1 360px;
    min-width: 280px;
    display: flex;
    justify-content: flex-end;
    position: relative;
}
.ld-about-media {
    position: relative;
    width: 100%;
    max-width: 644px;
    perspective: 1200px;
}
.ld-about-video {
    display: block;
    width: 100%;
    max-width: 644px;
    height: auto;
    transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
    transform-style: preserve-3d;
}
.ld-about-media:hover .ld-about-video { transform: rotateY(-3deg) rotateX(1.5deg) scale(1.015); }
.ld-about-tint {
    position: absolute;
    top: 0; right: 0;
    width: 100%;
    max-width: 644px;
    height: 100%;
    background: #15BCDF;
    mix-blend-mode: hue;
    pointer-events: none;
    z-index: 1;
}
@media (prefers-reduced-motion: reduce) { .ld-about-media:hover .ld-about-video { transform: none; } }

/* ---------------- FOOTER (общий на всех страницах, вне <main> — не трогается мягкой
   навигацией в nav.js, так что не перерисовывается при переходах между документами) --- */
.site-footer {
    background: #1c1e22;
    color: rgba(255,255,255,0.6);
    padding: clamp(40px, 6vw, 64px) clamp(20px, 6vw, 48px) 28px;
}
.site-footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-footer-brand .mark { width: 30px; height: 30px; }
.site-footer-brand .mark span { width: 16px; height: 6.4px; }
.site-footer-brand .word { font-size: 20px; color: #fff; }
.site-footer-top p {
    margin: 0;
    font-size: 13.5px;
    color: rgba(255,255,255,0.45);
    text-transform: none;
    letter-spacing: normal;
}
.site-footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 28px;
    margin-bottom: 36px;
}
@media (max-width: 640px) { .site-footer-cols { grid-template-columns: 1fr 1fr; } }
.site-footer-cols h4 {
    margin: 0 0 14px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}
.site-footer-cols > div { display: flex; flex-direction: column; gap: 9px; }
/* "body.landing" в селекторе обязателен: иначе "body.landing a" (выше) перебивает цвет, и ссылки
   «Оферта», «Персональные данные», почта в подвале становятся тёмно-серыми на тёмном — не видны. */
body.landing .site-footer-cols a, .site-footer-cols span {
    font-size: 14px;
    color: rgba(255,255,255,0.78);
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4;
}
body.landing .site-footer-cols a:hover { color: #15BCDF; }
.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.35);
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
body.landing .site-footer-bottom a { color: rgba(255,255,255,0.45); }
body.landing .site-footer-bottom a:hover { color: #15BCDF; }

.ld-note {
    font-family: 'Play', 'Arial Narrow', sans-serif;
    font-size: 12.5px;
    text-transform: none;
    letter-spacing: normal;
    color: #6b6f72;
    max-width: 420px;
    line-height: 1.5;
    margin-top: 10px;
}
.ld-note strong { color: #2b3033; }
.ld-note.on-dark { color: rgba(255,255,255,0.75); }
.ld-note.on-dark strong { color: #fff; }
