/* ============================================================
   DOLPHIN ENGLISH — LANDING (www.dolphinenglish.ru)
   Отдельный CSS. Не связан с academy/style.css.
   ============================================================ */

/* ------------------------------------------------------------
   1. ПЕРЕМЕННЫЕ
   ------------------------------------------------------------ */
:root {
    --dolphin-deep:  #0a3d62;
    --dolphin-blue:  #1e6fa8;
    --dolphin-sky:   #4aa8d8;
    --dolphin-aqua:  #7fd4e8;
    --dolphin-light: #e8f6fb;
    --dolphin-foam:  #f0fafd;
    --dolphin-text:  #1a2a3a;
    --dolphin-muted: #5a7a8a;

    --black:  #0b2545;
    --cream:  #f0f9ff;
    --white:  #ffffff;
    --red:    #0891b2;

    --radius:      20px;
    --radius-sm:   14px;
    --radius-pill: 999px;

    --shadow:       6px 6px 0 var(--black);
    --shadow-hover: 9px 9px 0 var(--black);
    --dolphin-shadow:       0 8px 32px rgba(10, 61, 98, 0.12);
    --dolphin-shadow-hover: 0 16px 48px rgba(10, 61, 98, 0.20);

    --bg-image:   url('../backg.jpeg');
    --bg-overlay: rgba(255, 255, 255, 0.88);
}

/* ------------------------------------------------------------
   2. СБРОС / БАЗА
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background: var(--cream);
    overflow-x: hidden;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--dolphin-text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    animation: fadeIn 0.35s ease both;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
}

/* фоновая картинка */
body.has-bg { position: relative; }

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
}
.bg-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ------------------------------------------------------------
   3. ТИПОГРАФИКА
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5 {
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--black);
    margin: 0 0 12px;
}
h1 { font-size: clamp(32px, 8vw, 64px); }
h2 { font-size: clamp(26px, 5vw, 52px); }
h3 { font-size: clamp(18px, 3vw, 24px); }
h4 { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }

p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ------------------------------------------------------------
   4. КНОПКИ
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--black);
    color: var(--cream);
    border: 3px solid var(--black);
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.2s ease, color 0.2s ease,
        border-color 0.2s ease, letter-spacing 0.2s ease,
        transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(10, 61, 98, 0.15);
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); letter-spacing: 0.2em; }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--dolphin-blue), var(--dolphin-sky));
    border-color: var(--dolphin-deep);
    color: #fff;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--dolphin-deep), var(--dolphin-blue));
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--dolphin-sky), var(--dolphin-aqua));
    border-color: var(--dolphin-blue);
    color: #fff;
}
.btn-secondary:hover {
    background: linear-gradient(135deg, var(--dolphin-blue), var(--dolphin-sky));
    color: #fff;
}

.btn-lg { padding: 20px 34px; font-size: 13px; }

/* ------------------------------------------------------------
   5. HEADER
   ------------------------------------------------------------ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(10, 61, 98, 0.06);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    height: 80px;
}

/* ЛЕВО — соцсети */
.header-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.social-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.social-btn--vk { background: #0077FF; }
.social-btn--tg { background: #29A9EB; }

.logo--center {
    justify-self: center;
}
.logo-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 3px solid var(--black);
    border-radius: var(--radius);
    background: var(--cream);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo--center:hover .logo-img { transform: rotate(-6deg) scale(1.06); }

.logo-name { display: flex; flex-direction: column; line-height: 1; }
.logo-name__main {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--dolphin-deep);
}
.logo-name__sub {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.28em;
    color: var(--dolphin-sky);
    margin-top: 3px;
    text-transform: uppercase;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

/* ------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------ */
.hero {
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--dolphin-light);
    border: 1px solid rgba(74, 168, 216, 0.25);
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 22px;
    color: var(--dolphin-blue);
    box-shadow: 0 4px 12px rgba(74, 168, 216, 0.15);
}
.hero-badge .ico-star { color: var(--dolphin-sky); }

.hero h1 {
    font-size: clamp(32px, 6vw, 62px);
    line-height: 1.05;
    margin-bottom: 20px;
}
.hero h1 .highlight        { color: var(--dolphin-blue); }
.hero h1 .highlight-purple { color: var(--dolphin-sky); }

.hero-content p {
    font-size: 17px;
    color: var(--dolphin-muted);
    max-width: 520px;
    margin-bottom: 28px;
    font-weight: 600;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Правый блок */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    animation: floatDolphin 5s ease-in-out infinite;
}
@keyframes floatDolphin {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.hero-main-card {
    width: 72%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--dolphin-aqua), var(--dolphin-blue));
    border-radius: 50%;
    border: 4px solid var(--dolphin-deep);
    display: grid;
    place-items: center;
    padding: 20px;
    overflow: hidden;
    box-shadow: var(--dolphin-shadow-hover);
}
.hero-dolphin {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    padding: 8px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-main-card:hover .hero-dolphin {
    transform: scale(1.06) rotate(-3deg);
}

.hero-mini {
    position: absolute;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-weight: 900;
    box-shadow: var(--dolphin-shadow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--dolphin-blue);
    border: 1px solid rgba(74, 168, 216, 0.2);
}
.hero-mini .ico { color: var(--dolphin-sky); }
.hero-mini.m1 { top: 8%;  right: 0; }
.hero-mini.m2 { bottom: 10%; left: 0; }
.hero-mini.m3 { top: 44%; left: -5%; background: var(--dolphin-sky); color: #fff; }
.hero-mini.m3 .ico { color: #fff; }

/* ------------------------------------------------------------
   7. MARQUEE
   ------------------------------------------------------------ */
.marquee {
    background: var(--dolphin-light);
    padding: 16px 0;
    overflow: hidden;
    border-top: 1px solid rgba(74, 168, 216, 0.15);
    border-bottom: 1px solid rgba(74, 168, 216, 0.15);
}
.marquee-track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    font-size: 20px;
    font-weight: 900;
    will-change: transform;
}
.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    color: var(--dolphin-blue);
    font-weight: 700;
}
.marquee-track span::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--dolphin-aqua);
    border: 2px solid var(--dolphin-blue);
    transform: rotate(45deg);
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ------------------------------------------------------------
   8. ПОЧЕМУ МЫ
   ------------------------------------------------------------ */
.why {
    padding: 90px 0;
    background: var(--dolphin-light);
    position: relative;
    overflow: hidden;
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}
.section-head .label {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--dolphin-blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 14px;
    border: 1px solid rgba(74, 168, 216, 0.25);
}
.section-head h2 {
    font-size: clamp(26px, 4.5vw, 48px);
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--dolphin-deep);
}
.section-head h2 .highlight { color: var(--dolphin-blue); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.why-card {
    background: rgba(255, 255, 255, 0.96);
    padding: 28px 22px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(74, 168, 216, 0.15);
    box-shadow: var(--dolphin-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dolphin-shadow-hover);
    border-color: var(--dolphin-aqua);
}
.why-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    background: var(--dolphin-light);
    border: 2px solid var(--dolphin-aqua);
}
.why-icon--yellow { background: var(--dolphin-aqua); }
.why-icon--blue   { background: var(--dolphin-sky); }
.why-icon--pink   { background: var(--dolphin-light); }
.why-icon--green  { background: #ccfbf1; }
.why-icon svg { stroke: var(--dolphin-blue); }

.why-card h3 {
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--dolphin-deep);
}
.why-card p {
    font-size: 14px;
    color: var(--dolphin-muted);
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

/* ------------------------------------------------------------
   9. ПЛАТФОРМА / ИГРА
   ------------------------------------------------------------ */
.preview {
    padding: 90px 0;
    background: var(--dolphin-light);
    position: relative;
    overflow: hidden;
}
.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.preview-content .label {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--dolphin-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.preview-content h2 {
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--dolphin-deep);
}
.preview-content p {
    font-size: 16px;
    color: var(--dolphin-muted);
    line-height: 1.65;
    margin-bottom: 24px;
    font-weight: 600;
}

.preview-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}
.preview-list li {
    padding: 8px 0 8px 28px;
    font-weight: 800;
    font-size: 15px;
    color: var(--dolphin-text);
    position: relative;
}
.preview-list li::before {
    content: '🐬';
    position: absolute;
    left: 0;
    font-size: 1rem;
}

.preview-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

.game-card {
    background: rgba(255, 255, 255, 0.97);
    border: 4px solid var(--dolphin-blue);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--dolphin-shadow-hover);
    width: 82%;
    text-align: center;
}
.game-card .word {
    font-size: 38px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 12px;
    color: var(--dolphin-blue);
    letter-spacing: 0.05em;
}
.game-card .hint {
    font-size: 13.5px;
    text-align: center;
    color: var(--dolphin-muted);
    font-weight: 700;
    margin-bottom: 20px;
}
.game-card .options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.game-option {
    padding: 12px 10px;
    border-radius: var(--radius-sm);
    background: var(--dolphin-light);
    border: 2px solid transparent;
    text-align: center;
    font-family: inherit;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    color: var(--dolphin-blue);
    transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.game-option:hover:not(:disabled) {
    background: var(--dolphin-aqua);
    color: #fff;
    border-color: var(--dolphin-sky);
    transform: scale(1.03);
}
.game-option:disabled { cursor: default; }
.game-option.is-correct {
    background: #22c55e;
    color: #fff;
    border-color: #15803d;
    animation: gamePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.game-option.is-wrong {
    background: #ef4444;
    color: #fff;
    border-color: #991b1b;
    animation: gameShake 0.4s ease;
}
@keyframes gamePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
@keyframes gameShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.game-result {
    margin-top: 14px;
    min-height: 22px;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
}
.game-result.is-ok  { color: #16a34a; }
.game-result.is-err { color: #dc2626; }

.game-retry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--dolphin-sky), var(--dolphin-blue));
    color: #fff;
    border: 2px solid var(--dolphin-deep);
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--dolphin-deep);
    transition: transform 0.15s, box-shadow 0.15s;
}
.game-retry:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--dolphin-deep); }
.game-retry:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--dolphin-deep); }

.preview-deco { position: absolute; pointer-events: none; }
.preview-deco--target { top: 5%; right: 5%; }
.preview-deco--star   { bottom: 8%; left: 0; }

/* ------------------------------------------------------------
   10. CTA
   ------------------------------------------------------------ */
.cta {
    padding: 70px 20px;
    text-align: center;
    position: relative;
}
.cta-inner {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--dolphin-deep), var(--dolphin-blue));
    padding: 70px 32px;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(10, 61, 98, 0.25);
    position: relative;
    overflow: hidden;
    color: #fff;
}
.cta h2 {
    font-size: clamp(26px, 5vw, 48px);
    line-height: 1.1;
    margin-bottom: 14px;
    color: #fff;
    position: relative;
    z-index: 1;
}
.cta p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}
.cta .btn {
    background: #fff;
    color: var(--dolphin-blue);
    border-color: #fff;
    font-size: 15px;
    padding: 18px 34px;
    position: relative;
    z-index: 1;
}
.cta .btn:hover {
    background: var(--dolphin-light);
    color: var(--dolphin-deep);
    transform: translateY(-3px);
}
.cta-deco { position: absolute; pointer-events: none; }
.cta-deco--balloon { top: 20px; left: 20px; }
.cta-deco--star    { bottom: 20px; right: 20px; }

/* ------------------------------------------------------------
   11. FOOTER
   ------------------------------------------------------------ */
.footer {
    background: var(--dolphin-light);
    color: var(--dolphin-text);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(74, 168, 216, 0.15);
}
.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(74, 168, 216, 0.15);
}
.footer__col h4 {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--dolphin-deep);
    margin-bottom: 18px;
}
.footer__col a {
    display: block;
    color: var(--dolphin-muted);
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.2s ease, padding-left 0.25s ease;
}
.footer__col a:hover {
    color: var(--dolphin-blue);
    padding-left: 6px;
}
.footer__brand-text {
    color: var(--dolphin-muted);
    font-size: 14px;
    max-width: 320px;
    line-height: 1.6;
}
.footer__bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    color: var(--dolphin-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    flex-wrap: wrap;
    gap: 12px;
}

/* ------------------------------------------------------------
   12. POWERED BY POWERTEAM
   ------------------------------------------------------------ */
.powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 40px;
    background: transparent;
    position: relative;
}
.powered-by::before {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 36px;
    background: radial-gradient(ellipse at center,
        rgba(74, 168, 216, 0.35) 0%,
        rgba(74, 168, 216, 0.12) 40%,
        transparent 70%);
    filter: blur(14px);
    pointer-events: none;
    z-index: 0;
}
.powered-by__btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 26px 14px 22px;
    background: linear-gradient(135deg, #0a3d62, #1e6fa8 55%, #4aa8d8 100%);
    color: #fff;
    border: 2px solid rgba(127, 212, 232, 0.5);
    border-radius: 999px;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 10px 30px rgba(10, 61, 98, 0.35),
        0 0 40px rgba(74, 168, 216, 0.25);
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
                box-shadow 0.35s ease, letter-spacing 0.35s ease;
}
.powered-by__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}
.powered-by__btn:hover::before { transform: translateX(120%); }
.powered-by__btn:hover {
    transform: translateY(-3px) scale(1.03);
    letter-spacing: 0.24em;
    box-shadow:
        0 16px 40px rgba(10, 61, 98, 0.45),
        0 0 60px rgba(74, 168, 216, 0.5);
}
.powered-by__btn span,
.powered-by__btn svg { position: relative; z-index: 1; }
.powered-by__btn span { white-space: nowrap; }
.powered-by__btn svg { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.powered-by__btn:hover svg { transform: translateX(6px); }
.powered-by__btn span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 9px;
    margin-bottom: 1px;
    border-radius: 50%;
    background: var(--dolphin-aqua);
    box-shadow:
        0 0 0 0 rgba(127, 212, 232, 0.7),
        0 0 10px rgba(127, 212, 232, 0.9);
    animation: poweredPulse 2.4s ease-in-out infinite;
    vertical-align: middle;
}
@keyframes poweredPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(127, 212, 232, 0.7), 0 0 10px rgba(127, 212, 232, 0.9); }
    50%      { box-shadow: 0 0 0 8px rgba(127, 212, 232, 0), 0 0 14px rgba(127, 212, 232, 1); }
}
.powered-by.on-dark .powered-by__btn { color: #fff; }

/* ------------------------------------------------------------
   13. АНИМАЦИИ ПОЯВЛЕНИЯ
   ------------------------------------------------------------ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

.anim-up    { animation: fadeInUp    0.55s cubic-bezier(0.4, 0, 0.2, 1) both; }
.anim-left  { animation: fadeInLeft  0.55s cubic-bezier(0.4, 0, 0.2, 1) both; }
.anim-right { animation: fadeInRight 0.55s cubic-bezier(0.4, 0, 0.2, 1) both; }

.d-1 { animation-delay: 0.05s; }
.d-2 { animation-delay: 0.10s; }
.d-3 { animation-delay: 0.15s; }
.d-4 { animation-delay: 0.20s; }
.d-5 { animation-delay: 0.25s; }

/* ============================================================
   14. АДАПТИВ — ПЛАНШЕТ (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .hero-grid      { gap: 40px; }
    .why-grid       { grid-template-columns: repeat(2, 1fr); }
    .preview-grid   { grid-template-columns: 1fr; gap: 40px; }
    .footer__top    { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ============================================================
   15. АДАПТИВ — МОБИЛКА (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
    .container { padding: 0 16px; }

    /* HEADER */
    .header-inner {
        grid-template-columns: auto 1fr auto;
        height: 68px;
        gap: 10px;
    }
    .header-socials { gap: 6px; }
    .social-btn {
        width: 34px;
        height: 34px;
    }
    .social-btn svg { width: 16px; height: 16px; }

    .logo-img { width: 38px; height: 38px; }
    .logo-name__main { font-size: 14px; }
    .logo-name__sub  { font-size: 7px; letter-spacing: 0.22em; }

    .header-actions--desktop { display: none; }
    .burger { display: flex; }

    /* HERO */
    .hero { padding: 34px 0 50px; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .hero-badge {
        font-size: 12.5px;
        padding: 8px 14px;
        margin-bottom: 18px;
    }
    .hero h1 {
        font-size: clamp(28px, 9vw, 42px);
        line-height: 1.05;
        margin-bottom: 16px;
    }
    .hero-content p {
        font-size: 15px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 22px;
    }
    .hero-actions {
        justify-content: center;
        gap: 10px;
    }
    .hero-actions .btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 11.5px;
        white-space: normal;
        line-height: 1.35;
        letter-spacing: 0.12em;
    }

    /* Визуал */
    .hero-visual {
        max-width: 320px;
        margin: 6px auto 0;
        aspect-ratio: 1 / 1;
    }
    .hero-main-card { width: 76%; padding: 14px; }
    .hero-mini {
        font-size: 12px;
        padding: 8px 12px;
        gap: 6px;
    }
    .hero-mini .ico { width: 16px; height: 16px; }
    .hero-mini.m1 { top: 4%;  right: -4px; }
    .hero-mini.m2 { bottom: 4%; left: -4px; }
    .hero-mini.m3 { top: 42%; left: -10px; }

    /* MARQUEE */
    .marquee { padding: 12px 0; }
    .marquee-track { font-size: 14px; gap: 28px; }
    .marquee-track span { gap: 28px; }
    .marquee-track span::after { width: 8px; height: 8px; }

    /* WHY */
    .why { padding: 60px 0; }
    .section-head { margin-bottom: 34px; }
    .section-head .label { font-size: 11px; padding: 6px 14px; }
    .section-head h2 { font-size: clamp(24px, 7vw, 34px); margin-bottom: 10px; }
    .why-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .why-card {
        padding: 22px 18px;
        text-align: left;
        display: grid;
        grid-template-columns: 60px 1fr;
        column-gap: 16px;
        align-items: center;
    }
    .why-card .why-icon {
        margin: 0;
        width: 60px;
        height: 60px;
        grid-row: 1 / span 2;
    }
    .why-card .why-icon svg { width: 32px; height: 32px; }
    .why-card h3 { margin-bottom: 4px; font-size: 16px; }
    .why-card p  { font-size: 13.5px; margin: 0; }

    /* PREVIEW + GAME */
    .preview { padding: 60px 0; }
    .preview-content h2 { font-size: clamp(24px, 7vw, 34px); }
    .preview-content p  { font-size: 15px; }
    .preview-list li    { font-size: 14px; padding-left: 24px; }

    .preview-visual {
        max-width: 100%;
        margin: 0 auto;
        aspect-ratio: auto;
        padding: 20px 0;
    }
    .preview-deco { display: none; }

    .game-card {
        width: 100%;
        max-width: 360px;
        padding: 22px 18px;
        border-width: 3px;
    }
    .game-card .word { font-size: 30px; }
    .game-card .hint { font-size: 12.5px; margin-bottom: 16px; }
    .game-option     { padding: 12px 8px; font-size: 13.5px; }

    /* CTA */
    .cta { padding: 40px 16px; }
    .cta-inner {
        padding: 46px 20px;
        border-radius: 22px;
    }
    .cta h2 { font-size: clamp(22px, 7vw, 32px); }
    .cta p  { font-size: 15px; margin-bottom: 22px; }
    .cta .btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 12.5px;
        white-space: normal;
        line-height: 1.35;
    }
    .cta-deco--balloon svg,
    .cta-deco--star svg { width: 50px; height: 50px; }
    .cta-deco--balloon { top: 12px; left: 10px; }
    .cta-deco--star    { bottom: 12px; right: 10px; }

    /* FOOTER */
    .footer { padding: 40px 0 24px; }
    .footer__top {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 28px;
    }
    .footer__col h4 { margin-bottom: 12px; }
    .footer__col a  { font-size: 13.5px; margin-bottom: 6px; }
    .footer__brand-text { font-size: 13.5px; max-width: 100%; }
    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 11px;
        letter-spacing: 0.12em;
    }

    /* POWERED BY */
    .powered-by { padding: 24px 14px 30px; }
    .powered-by__btn {
        padding: 12px 20px 12px 18px;
        font-size: 10.5px;
        letter-spacing: 0.16em;
        gap: 8px;
    }
    .powered-by__btn svg { width: 13px; height: 13px; }
    .powered-by::before { width: 200px; height: 30px; filter: blur(12px); }
}

/* ============================================================
   16. АДАПТИВ — УЗКИЕ ЭКРАНЫ (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero h1 { font-size: 30px; }
    .hero-main-card { width: 82%; }
    .hero-mini { font-size: 11px; padding: 6px 10px; }
    .hero-mini .ico { width: 14px; height: 14px; }

    .section-head h2 { font-size: 24px; }
    .why-card { padding: 18px 14px; }
    .why-card .why-icon { width: 52px; height: 52px; }
    .why-card .why-icon svg { width: 26px; height: 26px; }

    .game-card { padding: 18px 14px; }
    .game-card .word { font-size: 26px; }
    .game-card .options { grid-template-columns: 1fr; }

    .cta h2 { font-size: 22px; }
    .cta-inner { padding: 36px 16px; }

    .footer__bottom { font-size: 10px; }
}

/* ============================================================
   17. HOVER — только для десктопа
   ============================================================ */
@media (hover: none) {
    .btn:hover,
    .social-btn:hover,
    .why-card:hover,
    .game-option:hover:not(:disabled),
    .game-retry:hover,
    .powered-by__btn:hover {
        transform: none !important;
    }
    .game-option:hover:not(:disabled) {
        background: var(--dolphin-light) !important;
        color: var(--dolphin-blue) !important;
        border-color: transparent !important;
    }
}

/* ============================================================
   18. ФИНАЛЬНЫЕ ФИКСЫ
   ============================================================ */
body { min-height: 100vh; }
img { user-select: none; }
button { font-family: inherit; }
a { -webkit-tap-highlight-color: transparent; }

/* Ландшафт-мобилка: делаем hero в 2 колонки снова */
@media (max-width: 900px) and (orientation: landscape) {
    .hero-grid {
        grid-template-columns: 1.3fr 1fr;
        text-align: left;
    }
    .hero-visual { max-width: 260px; margin: 0; }
    .hero-actions { justify-content: flex-start; }
    .hero-actions .btn { width: auto; }
}

/* ============================================================
   КНОПКА «ВОЙТИ» — новая (стеклянная с блеском)
   ============================================================ */

.btn-login {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px 11px 18px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(232, 246, 251, 0.9) 100%);
    color: var(--dolphin-deep);
    border: 2px solid var(--dolphin-deep);
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 4px 0 var(--dolphin-deep),
        0 6px 18px rgba(10, 61, 98, 0.15);
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        letter-spacing 0.25s ease;
}

/* Светящийся блик при наведении */
.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        transparent 25%,
        rgba(127, 212, 232, 0.55) 50%,
        transparent 75%);
    transform: translateX(-120%);
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

/* Заливка снизу при hover */
.btn-login::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        var(--dolphin-blue) 0%,
        var(--dolphin-deep) 100%);
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
    z-index: -1;
}

.btn-login:hover::before { transform: translateX(120%); }
.btn-login:hover::after  { transform: scaleY(1); }

.btn-login:hover {
    color: #fff;
    border-color: var(--dolphin-deep);
    transform: translateY(-3px);
    letter-spacing: 0.18em;
    box-shadow:
        0 7px 0 var(--dolphin-deep),
        0 12px 28px rgba(30, 111, 168, 0.4),
        0 0 0 4px rgba(127, 212, 232, 0.2);
}

.btn-login:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 var(--dolphin-deep),
        0 4px 12px rgba(10, 61, 98, 0.25);
}

/* Иконка */
.btn-login__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        var(--dolphin-sky) 0%,
        var(--dolphin-blue) 100%);
    color: #fff;
    flex-shrink: 0;
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.25s ease;
    box-shadow: 0 2px 6px rgba(10, 61, 98, 0.25);
}

.btn-login__icon svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-login:hover .btn-login__icon {
    transform: rotate(-8deg) scale(1.1);
    background: linear-gradient(135deg, #fff 0%, var(--dolphin-aqua) 100%);
    color: var(--dolphin-deep);
}

.btn-login:hover .btn-login__icon svg {
    transform: translateX(2px);
}

/* Текст */
.btn-login__text {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

/* Пульс-точка (намёк «есть аккаунт») */
.btn-login__text::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 8px;
    margin-bottom: 1px;
    border-radius: 50%;
    background: var(--dolphin-sky);
    box-shadow:
        0 0 0 0 rgba(74, 168, 216, 0.7),
        0 0 8px rgba(74, 168, 216, 0.9);
    vertical-align: middle;
    animation: btnLoginPulse 2.2s ease-in-out infinite;
    transition: background 0.25s ease;
}

.btn-login:hover .btn-login__text::after {
    background: #67e8f9;
    box-shadow:
        0 0 0 0 rgba(255, 255, 255, 0.7),
        0 0 10px rgba(255, 255, 255, 0.9);
}

@keyframes btnLoginPulse {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(74, 168, 216, 0.7),
            0 0 8px rgba(74, 168, 216, 0.9);
    }
    50% {
        box-shadow:
            0 0 0 8px rgba(74, 168, 216, 0),
            0 0 12px rgba(74, 168, 216, 1);
    }
}

/* ============================================================
   АДАПТИВ — на телефоне кнопка остаётся, но компактнее
   ============================================================ */

@media (max-width: 900px) {
    .btn-login {
        padding: 8px 16px 8px 12px;
        font-size: 11px;
        letter-spacing: 0.1em;
        gap: 8px;
    }

    .btn-login__icon {
        width: 22px;
        height: 22px;
    }

    .btn-login__icon svg {
        width: 12px;
        height: 12px;
    }

    /* Точку на мобилке убираем — экономим место */
    .btn-login__text::after {
        display: none;
    }

    .btn-login:hover {
        transform: none;
        box-shadow:
            0 4px 0 var(--dolphin-deep),
            0 6px 18px rgba(10, 61, 98, 0.15);
    }

    .btn-login:hover::after {
        transform: scaleY(0);
    }
}

@media (max-width: 480px) {
    .btn-login {
        padding: 7px 14px 7px 10px;
        font-size: 10px;
        gap: 6px;
    }

    .btn-login__icon {
        width: 20px;
        height: 20px;
    }

    .btn-login__icon svg {
        width: 11px;
        height: 11px;
    }
}

/* ============================================================
   ЛОГО В ШАПКЕ — картинка слева, текст справа, всё по центру
   ============================================================ */

.logo--center {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo--center .logo-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--black);
    border-radius: var(--radius);
    background: var(--cream);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo--center:hover .logo-img {
    transform: rotate(-6deg) scale(1.06);
}

.logo--center .logo-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    text-align: left;
    min-width: 0;
}

.logo--center .logo-name__main {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--dolphin-deep);
    white-space: nowrap;
}

.logo--center .logo-name__sub {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.28em;
    color: var(--dolphin-sky);
    margin-top: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ------------------------------------------------------------
   Адаптив — на телефоне лого компактнее
   ------------------------------------------------------------ */
@media (max-width: 900px) {
    .logo--center {
        gap: 8px;
    }

    .logo--center .logo-img {
        width: 38px;
        height: 38px;
        border-width: 2px;
        border-radius: 12px;
    }

    .logo--center .logo-name__main {
        font-size: 13px;
        letter-spacing: -0.01em;
    }

    .logo--center .logo-name__sub {
        font-size: 7px;
        letter-spacing: 0.22em;
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    .logo--center {
        gap: 6px;
    }

    .logo--center .logo-img {
        width: 34px;
        height: 34px;
    }

    .logo--center .logo-name__main {
        font-size: 12px;
    }

    .logo--center .logo-name__sub {
        font-size: 6.5px;
        letter-spacing: 0.18em;
    }
}

/* Очень узкие экраны — можно спрятать подпись «For Children» */
@media (max-width: 380px) {
    .logo--center .logo-name__sub {
        display: none;
    }
}

.splash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;               /* на мобиле — реальная высота окна */
    z-index: 2147483647;          /* максимальный z-index */

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    /* никаких transform/filter/will-change — иначе ломается fixed */
    transform: none;
    filter: none;
    will-change: auto;

    opacity: 1;
    animation: none;
    transition: opacity 0.65s ease;

    /* фиксируем внутри окна */
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.splash.is-hiding {
    opacity: 0;
    pointer-events: none;
}

.splash::after {
    content: '';
    width: 22px;
    height: 22px;
    border: 2px solid #94a3b8;      /* серый потемнее */
    border-top-color: #000000;
    border-radius: 50%;
    animation: splashSpin 0.8s linear infinite;
}

@keyframes splashSpin {
    to { transform: rotate(360deg); }
}