/* ==========================================================
   Kickz4u — прощальный лендинг
   Тёмная тема, шрифт FM Bolyar Sans Pro 400
   ========================================================== */

:root {
    --bg: #000000;
    --fg: #ffffff;
    --muted: #b8b8b8;
    --accent: #ffffff;
    --tg: #229ED9;
    --yt: #FF0033;
    --max-width: 1100px;
    --gap: clamp(1rem, 2vw, 2rem);
    --radius: 14px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-color: #2a2a2a #0a0a0a;
    scrollbar-width: thin;
}

/* Тёмный кастомный скроллбар (WebKit) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2a2a2a 0%, #161616 100%);
    border-radius: 999px;
    border: 2px solid #0a0a0a;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3a3a3a 0%, #1f1f1f 100%);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 100%);
}

::-webkit-scrollbar-corner {
    background: #0a0a0a;
}

/* Тёмное выделение текста */
::selection {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
}

body {
    font-family: 'FM Bolyar Sans Pro', 'Helvetica Neue', Helvetica, Arial,
        'Segoe UI', system-ui, sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Общие секции */
section {
    padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 48px);
}

.section__title {
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.02em;
}

.section__title::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fff 50%, transparent);
    margin: 0.6em auto 0;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.section__title.is-visible::after {
    width: 80px;
}

/* ==========================================================
   SCROLL REVEAL — анимации появления
   ========================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

[data-reveal="fade"] {
    transform: none;
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

[data-reveal="zoom"] {
    transform: scale(0.92);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }
[data-reveal-delay="6"] { transition-delay: 0.48s; }
[data-reveal-delay="7"] { transition-delay: 0.56s; }
[data-reveal-delay="8"] { transition-delay: 0.64s; }
[data-reveal-delay="9"] { transition-delay: 0.72s; }

/* ==========================================================
   БЛОК 1: HERO
   ========================================================== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-block: clamp(80px, 12vw, 140px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    isolation: isolate;
}

/* Мягкое свечение в центре hero (двигается за курсором) */
.hero {
    --mx: 0px;
    --my: 0px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 90vw;
    height: 90vw;
    max-width: 900px;
    max-height: 900px;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + var(--mx)), calc(-50% + var(--my)));
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 30%,
        transparent 65%
    );
    pointer-events: none;
    z-index: -1;
    animation: glowPulse 7s ease-in-out infinite;
    transition: transform 0.4s ease-out;
}

/* Декоративные звёздочки-точки на фоне hero */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18) 1px, transparent 2px),
        radial-gradient(circle at 80% 35%, rgba(255, 255, 255, 0.12) 1px, transparent 2px),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.15) 1px, transparent 2px),
        radial-gradient(circle at 25% 70%, rgba(255, 255, 255, 0.1) 1px, transparent 2px),
        radial-gradient(circle at 90% 75%, rgba(255, 255, 255, 0.13) 1px, transparent 2px),
        radial-gradient(circle at 5% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 2px);
    pointer-events: none;
    z-index: -1;
    animation: twinkle 5s ease-in-out infinite alternate;
}

.hero__title {
    font-weight: 400;
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    line-height: 1.25;
    letter-spacing: 0.03em;
    max-width: 18ch;
    margin: 0 auto;
    animation: heroIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.12);
}

.hero__title .line {
    display: block;
    overflow: hidden;
}

.hero__title .line span {
    display: inline-block;
    animation: lineRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__title .line:nth-child(1) span { animation-delay: 0.1s; }
.hero__title .line:nth-child(2) span { animation-delay: 0.45s; }

/* Стрелочка-индикатор скролла */
.hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 44px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    pointer-events: none;
    animation: fadeInDown 1.5s ease 1.4s both;
}

.hero__scroll::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.55;
        filter: blur(0px);
    }
    50% {
        opacity: 1;
        filter: blur(8px);
    }
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes heroIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes lineRise {
    from {
        opacity: 0;
        transform: translateY(110%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -16px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes scrollDot {
    0%, 100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, 16px);
        opacity: 0.2;
    }
}

/* ==========================================================
   БЛОК 2: ПИСЬМО ДИРЕКТОРА
   ========================================================== */
.letter {
    max-width: var(--max-width);
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Текст письма — красивая типографика */
.letter__text {
    max-width: 680px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: #e8e8e8;
    text-align: left;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.025) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    position: relative;
}

.letter__text::before {
    content: '“';
    position: absolute;
    top: -0.1em;
    left: 0.15em;
    font-size: clamp(5rem, 10vw, 8rem);
    line-height: 1;
    color: rgba(255, 255, 255, 0.07);
    pointer-events: none;
    font-family: Georgia, 'Times New Roman', serif;
}

.letter__text > p + p {
    margin-top: 1.1em;
}

.letter__greeting {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    color: #fff;
    margin-bottom: 1.4em !important;
    letter-spacing: 0.02em;
}

.letter__lead {
    color: #fff;
    font-weight: 400;
}

.letter__text strong {
    color: #fff;
    font-weight: 400;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
    padding-bottom: 1px;
}

/* Список достижений */
.letter__highlights {
    display: grid;
    gap: 1rem;
    margin: 1.75em 0;
    padding: 1.25rem 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.02);
}

.letter__highlights li {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    line-height: 1.45;
}

.letter__highlight-num {
    flex-shrink: 0;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: #fff;
    min-width: 4ch;
    letter-spacing: 0.02em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.18);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                text-shadow 0.35s ease;
    display: inline-block;
}

.letter__highlights li:hover .letter__highlight-num {
    transform: scale(1.1);
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.4);
}

.letter__highlights {
    transition: border-color 0.4s ease, background 0.4s ease;
}

.letter__highlights:hover {
    border-left-color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.letter__highlight-text {
    color: #d8d8d8;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

/* Финальная фраза */
.letter__legendary {
    text-align: center;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #fff;
    letter-spacing: 0.06em;
    margin: 1.5em 0 !important;
    text-transform: uppercase;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.5) 0%,
        #fff 50%,
        rgba(255, 255, 255, 0.5) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3.5s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Подпись */
.letter__signature {
    margin-top: 2.25em;
    padding-top: 1.5em;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: right;
}

.letter__sign-line {
    color: #c0c0c0;
    margin-bottom: 0.6em !important;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

.letter__sign-name {
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    letter-spacing: 0.03em;
    margin-bottom: 0.2em !important;
}

.letter__sign-role {
    color: #9a9a9a;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    letter-spacing: 0.02em;
}

/* Возврат / гарантия */
.returns {
    text-align: center;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.returns__title {
    font-weight: 400;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.returns__phone {
    display: inline-block;
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 8px 4px;
    position: relative;
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.returns__phone::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.4s ease, left 0.4s ease;
}

.returns__phone:hover,
.returns__phone:focus-visible {
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    outline: none;
}

.returns__phone:hover::after,
.returns__phone:focus-visible::after {
    width: 100%;
    left: 0;
}

/* ==========================================================
   БЛОК 3: SOLEFINDER (Telegram + YouTube)
   ========================================================== */
.solefinder {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.solefinder__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease,
                background 0.3s ease;
    color: #fff;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Световой блик, проезжающий по кнопке при ховере */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transition: left 0.7s ease;
    pointer-events: none;
}

.btn:hover::before,
.btn:focus-visible::before {
    left: 100%;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-3px) scale(1.03);
    outline: none;
}

.btn__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn:hover .btn__icon {
    transform: scale(1.15) rotate(-5deg);
}

.btn--site {
    background: #FFD400;
    padding: 10px 24px;
    box-shadow: 0 8px 20px rgba(255, 212, 0, 0.18);
}

.btn--site:hover,
.btn--site:focus-visible {
    background: #ffdf33;
    box-shadow: 0 14px 32px rgba(255, 212, 0, 0.4);
}

.btn__logo {
    height: 32px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.btn--site:hover .btn__logo {
    transform: scale(1.06);
}

.btn--youtube {
    background: var(--yt);
    box-shadow: 0 8px 20px rgba(255, 0, 51, 0.18);
}

.btn--youtube:hover,
.btn--youtube:focus-visible {
    background: #e3002d;
    box-shadow: 0 14px 32px rgba(255, 0, 51, 0.4);
}

/* ==========================================================
   БЛОК 4: МАГАЗИНЫ (с фоном Kobe)
   ========================================================== */
.shops {
    position: relative;
    padding: 0;
    isolation: isolate;
}

.shops__bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/kobe-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.45;
    transform: scale(1.05);
    transition: transform 0.6s ease, opacity 0.6s ease;
    will-change: transform;
}

.shops:hover .shops__bg {
    transform: scale(1.08);
    opacity: 0.55;
}

.shops__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.65) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.shops__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 48px);
    text-align: center;
}

.shops__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--muted);
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: 0.02em;
}

.shops__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(0.75rem, 2vw, 1.25rem);
    max-width: 800px;
    margin: 0 auto;
}

.shops__list a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    letter-spacing: 0.03em;
    transition: background 0.35s ease, border-color 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.35s ease,
        box-shadow 0.35s ease;
    backdrop-filter: blur(6px);
    overflow: hidden;
}

.shops__list a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.shops__list a::after {
    content: '→';
    display: inline-block;
    margin-left: 4px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.shops__list a:hover,
.shops__list a:focus-visible {
    color: #000;
    border-color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.4);
    outline: none;
}

.shops__list a:hover::before,
.shops__list a:focus-visible::before {
    opacity: 1;
}

.shops__list a:hover::after,
.shops__list a:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
    padding: 32px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================
   АДАПТИВ
   ========================================================== */
@media (max-width: 600px) {
    .hero {
        min-height: 50vh;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }

    .shops__list {
        grid-template-columns: 1fr;
    }

    .letter__highlights li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .letter__signature {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
