/* ============================================================
   Fish Audio — лендинг (index.php)
   «Lagoon Studio»: светлые секции, тёмная hero-полоса,
   волноформ-мотивы, бирюзовый градиент.
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.ld-hero {
    position: relative;
    margin-top: -1.4rem;
    border-radius: 0 0 30px 30px;
    background: var(--grad-deep);
    overflow: hidden;
    color: #eafaf8;
    padding: 4.2rem 1.25rem 3.6rem;
}
.ld-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(700px 320px at 82% -10%, rgba(6, 182, 212, 0.38), transparent 65%),
        radial-gradient(520px 280px at 4% 115%, rgba(13, 148, 136, 0.35), transparent 60%);
    pointer-events: none;
}
/* волноформ-полоса по низу hero */
.ld-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='34' viewBox='0 0 1200 34' preserveAspectRatio='none'%3E%3Cpath d='M0 17 Q 30 2 60 17 T 120 17 T 180 17 T 240 17 T 300 17 T 360 17 T 420 17 T 480 17 T 540 17 T 600 17 T 660 17 T 720 17 T 780 17 T 840 17 T 900 17 T 960 17 T 1020 17 T 1080 17 T 1140 17 T 1200 17' fill='none' stroke='rgba(125,232,224,0.35)' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    opacity: 0.8;
    pointer-events: none;
}
.ld-hero-inner { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.ld-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(125, 232, 224, 0.12);
    border: 1px solid rgba(125, 232, 224, 0.3);
    color: #7de8e0;
    font-size: 0.76rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    margin-bottom: 18px;
}
.ld-hero-eyebrow .icon-svg { width: 13px; height: 13px; }
.ld-hero h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.18;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}
.ld-hero h1 .ld-grad {
    background: linear-gradient(100deg, #5eead4, #22d3ee 60%, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ld-hero-sub { color: rgba(230, 250, 248, 0.75); font-size: 1.05rem; line-height: 1.6; max-width: 480px; margin-bottom: 24px; }
.ld-hero-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.ld-hero-stat b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #fff; }
.ld-hero-stat span { font-size: 0.78rem; color: rgba(230, 250, 248, 0.55); }

/* Демо-виджет в hero */
.ld-demo {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 22px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.30);
}
.ld-demo-title { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 0.98rem; margin-bottom: 12px; }
.ld-demo-title .icon-svg { width: 17px; height: 17px; color: #5eead4; }
.ld-demo textarea {
    width: 100%;
    min-height: 84px;
    resize: none;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(7, 24, 32, 0.45);
    color: #eafaf8;
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.5;
    padding: 12px 14px;
    transition: border-color 0.2s;
}
.ld-demo textarea:focus { outline: none; border-color: rgba(94, 234, 212, 0.6); }
.ld-demo textarea::placeholder { color: rgba(230, 250, 248, 0.4); }
.ld-demo-voices { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0 14px; }
.ld-demo-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(230, 250, 248, 0.8);
    font-size: 0.8rem; font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.ld-demo-chip .icon-svg { width: 12px; height: 12px; }
.ld-demo-chip:hover { border-color: rgba(94, 234, 212, 0.7); color: #fff; }
.ld-demo-chip.active { background: rgba(94, 234, 212, 0.16); border-color: #5eead4; color: #a7f3ea; }
.ld-demo-chip.playing { background: rgba(255, 107, 87, 0.18); border-color: var(--coral); color: #ffc9bd; }
.ld-demo-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ld-demo-play {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 0.9rem; font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.18s;
}
.ld-demo-play:hover { background: rgba(255, 255, 255, 0.2); }
.ld-demo-play .icon-svg { width: 15px; height: 15px; }
.ld-demo-go {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(120deg, #14b8a6, #22d3ee);
    color: #062a2b;
    font-size: 0.92rem; font-weight: 800;
    font-family: var(--font-body);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(34, 211, 238, 0.30);
    transition: transform 0.16s, box-shadow 0.2s;
}
.ld-demo-go:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(34, 211, 238, 0.42); color: #062a2b; }
.ld-demo-go .icon-svg { width: 15px; height: 15px; }
.ld-demo-note { margin-top: 10px; font-size: 0.72rem; color: rgba(230, 250, 248, 0.45); }

/* Пробная гостевая озвучка: результат + модалка регистрации */
.ld-trial-result {
    display: flex; align-items: center; gap: 12px;
    margin-top: 12px; padding: 12px 14px;
    background: rgba(94, 234, 212, 0.08);
    border: 1px solid rgba(94, 234, 212, 0.35);
    border-radius: 14px;
}
.ld-trial-result[hidden] { display: none; }
.ld-trial-playbtn { flex-shrink: 0; }
.ld-trial-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ld-trial-meta b { color: #fff; font-size: 0.86rem; }
.ld-trial-meta span { color: rgba(230, 250, 248, 0.55); font-size: 0.72rem; line-height: 1.4; }
.ld-trial-dl {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px; border: none; cursor: pointer;
    background: linear-gradient(135deg, #5eead4, #22d3ee);
    color: #062a2b; font-weight: 800; font-size: 0.8rem;
    flex-shrink: 0;
}
.ld-trial-dl .icon-svg { width: 14px; height: 14px; }

.ld-trial-modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(6, 32, 34, 0.72); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.ld-trial-modal.open { display: flex; }
.ld-trial-modal-card {
    position: relative; max-width: 420px; width: 100%;
    background: #fff; border-radius: var(--radius-l, 18px);
    padding: 32px 28px 26px; text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    animation: ldTrialPop 0.22s ease-out;
}
@keyframes ldTrialPop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ld-trial-modal-close {
    position: absolute; top: 10px; right: 12px;
    background: none; border: none; font-size: 1.5rem; line-height: 1;
    color: var(--muted, #64748b); cursor: pointer; padding: 4px 8px;
}
.ld-trial-modal-icon {
    width: 52px; height: 52px; margin: 0 auto 14px;
    border-radius: 16px; background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.25); color: var(--teal);
    display: flex; align-items: center; justify-content: center;
}
.ld-trial-modal-icon .icon-svg { width: 24px; height: 24px; }
.ld-trial-modal-card h3 { color: var(--ink, #0f292b); font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.ld-trial-modal-card p { color: var(--muted, #64748b); font-size: 0.88rem; line-height: 1.55; margin-bottom: 18px; }
.ld-trial-modal-actions { display: flex; flex-direction: column; gap: 8px; }
.ld-trial-modal-actions .btn { width: 100%; justify-content: center; }

/* ── Общие секции ─────────────────────────────────────────── */
.ld-section { padding: 3.6rem 0 0; }
.ld-section-head { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.ld-kicker {
    display: inline-block;
    font-size: 0.74rem; font-weight: 800;
    letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 10px;
}
.ld-h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.ld-section-head p { color: var(--muted); margin-top: 10px; font-size: 0.98rem; }

/* Как это работает */
.ld-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ld-step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    padding: 24px;
    box-shadow: var(--shadow-s);
}
.ld-step-num {
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 12px;
}
.ld-step h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 6px; }
.ld-step p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

/* Витрина голосов */
.ld-voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1080px; margin: 0 auto; }
.ld-voice-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    padding: 18px;
    box-shadow: var(--shadow-s);
    transition: transform 0.18s, box-shadow 0.2s, border-color 0.18s;
    min-width: 0; /* иначе длинный контент растягивает колонку грида вправо */
}
.ld-voice-name, .ld-voice-desc { overflow-wrap: anywhere; }
.ld-voice-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(6, 182, 212, 0.5); }
.ld-voice-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ld-voice-avatar {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: var(--grad);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem;
    flex-shrink: 0;
}
.ld-voice-name { font-weight: 800; font-size: 0.96rem; }
.ld-voice-desc { color: var(--muted); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-voice-tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 10px 0 12px; }
.ld-voice-tag { font-size: 0.68rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #e9f3f4; color: var(--ink-soft); }
.ld-voice-player { display: flex; align-items: center; gap: 10px; }
.ld-voice-play {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--grad);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.35);
    transition: transform 0.15s;
    padding: 0;
}
.ld-voice-play:hover { transform: scale(1.08); }
.ld-voice-play .icon-svg { width: 15px; height: 15px; }
.ld-voice-link { margin-left: auto; color: var(--teal); font-size: 0.8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ld-voice-link:hover { text-decoration: underline; }
.ld-center { text-align: center; margin-top: 1.8rem; }

/* Блок клонирования */
.ld-clone {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--grad-deep);
    border-radius: 28px;
    padding: 44px;
    color: #eafaf8;
    position: relative;
    overflow: hidden;
}
.ld-clone::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(480px 240px at 90% 0%, rgba(6, 182, 212, 0.3), transparent 65%);
    pointer-events: none;
}
.ld-clone h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 12px; position: relative; }
.ld-clone p { color: rgba(230, 250, 248, 0.72); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; position: relative; }
.ld-clone-feats { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; position: relative; }
.ld-clone-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: rgba(230, 250, 248, 0.85); }
.ld-clone-feats .icon-svg { width: 17px; height: 17px; color: #5eead4; flex-shrink: 0; margin-top: 2px; }
.ld-clone-visual {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 26px;
    text-align: center;
}
.ld-clone-mic {
    width: 74px; height: 74px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(120deg, #14b8a6, #22d3ee);
    color: #062a2b;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 34px rgba(34, 211, 238, 0.35);
}
.ld-clone-mic .icon-svg { width: 32px; height: 32px; }
.ld-clone-visual b { display: block; color: #fff; font-size: 1rem; margin-bottom: 6px; }
.ld-clone-visual span { color: rgba(230, 250, 248, 0.6); font-size: 0.84rem; }

/* Тарифы */
.ld-tariffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ld-tariff {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    padding: 22px 20px;
    box-shadow: var(--shadow-s);
    display: flex; flex-direction: column;
    transition: transform 0.18s, box-shadow 0.2s, border-color 0.18s;
}
.ld-tariff:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(13, 148, 136, 0.35); }
.ld-tariff.featured {
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.22), var(--shadow);
    background: linear-gradient(180deg, rgba(13, 148, 136, 0.06), rgba(13, 148, 136, 0) 45%), var(--surface);
}
.ld-tariff-flag {
    position: absolute; top: -11px; left: 50%;
    transform: translateX(-50%);
    background: var(--grad);
    color: #fff;
    font-size: 0.68rem; font-weight: 800;
    padding: 4px 14px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}
.ld-tariff-name { font-weight: 800; font-size: 1rem; }
.ld-tariff-target { color: var(--faint); font-size: 0.76rem; margin-bottom: 14px; }
.ld-tariff-price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1; }
.ld-tariff-price small { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.ld-tariff-coins { color: var(--teal); font-size: 0.84rem; font-weight: 700; margin: 8px 0 4px; display: flex; align-items: center; gap: 6px; }
.ld-tariff-coins .coin-icon { width: 16px; height: 16px; }
.ld-tariff-ic {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--grad-soft);
    border: 1px solid rgba(13, 148, 136, 0.25);
    color: var(--teal);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
/* svg без класса тоже ограничиваем — страховка от «огромной иконки» при старом кеше CSS */
.ld-tariff-ic svg, .ld-tariff-ic .icon-svg { width: 18px; height: 18px; flex: none; }
.ld-tariff-bonus { min-height: 1.7em; margin: 2px 0 14px; display: flex; align-items: flex-start; }
.ld-tariff-bonus-pill {
    display: inline-flex; align-items: center;
    background: rgba(240, 100, 70, 0.12);
    background: color-mix(in srgb, var(--coral) 12%, transparent);
    color: var(--coral);
    font-size: 0.72rem; font-weight: 800;
    padding: 3px 10px; border-radius: 999px;
}
.ld-tariff .btn { margin-top: auto; width: 100%; }

/* FAQ */
.ld-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.ld-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}
.ld-faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700; font-size: 0.95rem;
    position: relative;
    padding-right: 28px;
}
.ld-faq-item summary::-webkit-details-marker { display: none; }
.ld-faq-item summary::after {
    content: '';
    position: absolute;
    right: 6px; top: 6px;
    width: 8px; height: 8px;
    border-right: 2px solid var(--faint);
    border-bottom: 2px solid var(--faint);
    transform: rotate(45deg);
    transition: transform 0.2s;
}
.ld-faq-item[open] summary::after { transform: rotate(225deg); }
.ld-faq-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; margin-top: 12px; }

/* Финальный CTA */
.ld-final {
    margin-top: 3.6rem;
    background: var(--grad-deep);
    border-radius: 28px;
    padding: 52px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ld-final::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(520px 240px at 50% -20%, rgba(34, 211, 238, 0.35), transparent 65%);
    pointer-events: none;
}
.ld-final h2 { position: relative; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.ld-final p { position: relative; color: rgba(230, 250, 248, 0.7); margin-bottom: 24px; }
.ld-final .hero-actions { position: relative; }

/* ── Адаптив ──────────────────────────────────────────────── */
@media (max-width: 980px) {
    .ld-hero-inner { grid-template-columns: 1fr; gap: 30px; }
    .ld-hero h1 { font-size: 2rem; }
    .ld-steps { grid-template-columns: 1fr; }
    .ld-voices { grid-template-columns: repeat(2, 1fr); }
    .ld-tariffs { grid-template-columns: repeat(2, 1fr); }
    .ld-clone { grid-template-columns: 1fr; padding: 30px 24px; gap: 26px; }
}
@media (max-width: 600px) {
    .ld-hero { padding: 3rem 1rem 2.6rem; margin-left: -1.25rem; margin-right: -1.25rem; border-radius: 0 0 24px 24px; }
    .ld-hero h1 { font-size: 1.55rem; }
    .ld-hero-stats { gap: 18px; }
    .ld-voices, .ld-tariffs { grid-template-columns: 1fr; }
    .ld-h2 { font-size: 1.35rem; }
    .ld-final { padding: 40px 20px; margin-left: -0.25rem; margin-right: -0.25rem; }
    .ld-final h2 { font-size: 1.4rem; }
}
