/* =====================================================================
   Главная: «Не клюйте на ссылку».
   Фишинг - это рыбалка. Наверху, над водой, - сообщение со ссылкой-
   приманкой, на неё уже закинут крючок. Ниже страница уходит под воду
   и с каждым разделом темнеет: разбор ссылки по шагам, крючки с
   подделками, мысли перед кликом, дно с тарифами.
   Главный элемент - образец разбора: строки появляются по очереди,
   как в работающем скрипте (js/home.js).
   ===================================================================== */

.home em { font-style: normal; }
.home h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; }

/* --- Над водой -------------------------------------------------------- */
.surface {
    /* первый экран ровно в высоту окна: снизу сразу видна волна */
    min-height: calc(100vh - 74px);
    min-height: calc(100svh - 74px);
    display: flex;
    align-items: center;
    padding: 40px 0 96px;
    background:
        radial-gradient(900px 420px at 85% 0%, rgba(255, 255, 255, 0.75), transparent 70%),
        linear-gradient(180deg, var(--paper) 0%, #d9ebe8 100%);
}
.surface-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px 72px;
    align-items: center;
}
.surface-grid { width: 100%; }
.surface-title {
    font-size: clamp(2.1rem, 4.6vw, 4.6rem);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 800;
}
.surface-title span { display: block; white-space: nowrap; }   /* ровно две строки */
.surface-lead { margin-top: 26px; max-width: 46ch; font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); }

.check { margin-top: 30px; max-width: 560px; }
.check-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 1rem; color: var(--ink); }
/* Поле с чёткой рамкой: сразу видно, куда вставлять ссылку */
.check-row {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 14px;
    box-shadow: 0 10px 24px -16px rgba(14, 34, 48, 0.45);
    transition: box-shadow 0.2s ease;
}
.check-row:focus-within { box-shadow: 0 0 0 4px rgba(43, 95, 134, 0.25), 0 10px 24px -16px rgba(14, 34, 48, 0.45); }
.check-input {
    flex: 1;
    min-width: 0;
    height: 54px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.02rem;
    color: var(--ink);
}
.check-input::placeholder { color: var(--ink-3); }
.check-input:focus { outline: none; }
.check-row .btn { height: 54px; padding-inline: 28px; border-radius: 10px; }
.check-note { margin-top: 12px; font-size: 0.92rem; color: var(--ink-3); }
.check .form-status { margin-top: 14px; }

/* Подсказка для тех, кто не знает, как скопировать ссылку */
.howto { margin-top: 14px; max-width: 520px; }
.howto summary {
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    color: var(--steel);
    border-bottom: 1px dashed currentColor;
    list-style: none;
}
.howto summary::-webkit-details-marker { display: none; }
.howto[open] summary { margin-bottom: 10px; }
.howto ol { padding-left: 22px; list-style: decimal; display: grid; gap: 6px; color: var(--ink-2); }
.howto p { margin-top: 10px; color: var(--ink-2); }
.check .form-status:empty { display: none; }

/* Сообщение с крючком */
.sms {
    position: relative;
    margin: 0;
    padding-top: 24px;
    max-width: 380px;
    justify-self: center;
    align-self: start;
    width: 100%;
    /* сообщение вместе с крючком опускается к волне, пока страницу листают (js/home.js) */
    transform: translateY(var(--sms-y, 0px));
    will-change: transform;
}
.sms-line {
    position: absolute;
    top: -980px;              /* леска длинная и всегда приходит из-под шапки */
    left: 50%;
    width: 60px;
    height: 1026px;
    margin-left: 72px;
    color: var(--ink);
    z-index: 2;
    pointer-events: none;
}
.sms-phone {
    position: relative;
    background: #fff;
    border-radius: 26px;
    padding: 22px 20px 26px;
    box-shadow: 0 30px 60px -30px rgba(14, 34, 48, 0.45), 0 0 0 1px rgba(14, 34, 48, 0.06);
    transform: rotate(-2.5deg);
}
.sms-sender { font-weight: 700; font-size: 0.95rem; text-align: center; }
.sms-time { font-size: 0.8rem; color: var(--ink-3); text-align: center; margin-top: 2px; }
.sms-bubble {
    margin-top: 16px;
    padding: 14px 16px;
    background: #e9eef0;
    border-radius: 18px 18px 18px 6px;
    font-size: 0.98rem;
    line-height: 1.5;
}
.sms-link {
    display: inline;
    color: #1f5fbf;
    text-decoration: underline wavy var(--verm);
    text-underline-offset: 4px;
    font-size: 0.92em;
    overflow-wrap: anywhere;
}
.sms-caption { margin-top: 26px; font-size: 0.92rem; color: var(--ink-3); text-align: center; }

/* Разбор по шагам */
.underwater .dive { padding-top: 96px; }
.dive-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 48px 64px;
    align-items: start;
}
.dive-text { position: sticky; top: 104px; }
.layers { margin-top: 36px; display: grid; gap: 4px; counter-reset: layer; }
.layer {
    position: relative;
    padding: 16px 18px 18px 58px;
    border-radius: 14px;
    counter-increment: layer;
    transition: background 0.4s ease, opacity 0.4s ease;
}
.js .layer { opacity: 0.55; }
.layer::before {
    content: counter(layer);
    position: absolute;
    left: 16px;
    top: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 700;
}
.layer h3 { font-size: 1.12rem; color: #fff; letter-spacing: -0.01em; }
.layer p { margin-top: 6px; font-size: 0.95rem; color: #a9c7cc; }
.layer b { color: #fff; font-variant-numeric: tabular-nums; }
.js .layer.is-active { opacity: 1; background: rgba(255, 255, 255, 0.07); }
.js .layer.is-done { opacity: 1; }
.layer.is-done::before { content: ""; background: var(--sage); border-color: var(--sage); }
.layer.is-done::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 24px;
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}
.js .layer--model.is-active { background: rgba(242, 193, 78, 0.12); }
.layer--model.is-active::before { color: var(--lamp); }

/* «Скрипт» */
.term {
    background: rgba(4, 16, 26, 0.72);
    border: 1px solid rgba(169, 199, 204, 0.18);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.term-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(169, 199, 204, 0.14);
}
.term-title { font-size: 0.92rem; font-weight: 600; color: #cfe3e5; }
.term-replay {
    border: 1px solid rgba(169, 199, 204, 0.35);
    background: transparent;
    color: #cfe3e5;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    cursor: pointer;
}
.term-replay:hover { border-color: #fff; color: #fff; }
.term-body {
    padding: 22px 22px 26px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cfe3e5;
    min-height: 520px;
}
.term-body p { margin: 0; }
.term-body .url { font-weight: 700; }
.t-cmd { color: #fff; padding-bottom: 6px; }
.t-cmd::before { content: "› "; color: var(--lamp); }
.term-body .t-stage {
    margin-top: 18px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}
.term-body .t-stage--model { color: var(--lamp); }
.t-num {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 0.78rem;
    vertical-align: 1px;
}
.term-body .t-note { padding-left: 22px; margin-top: 4px; color: #a9c7cc; }
.term-body .t-note::before { content: none; }
.term-body .t-time { margin-top: 12px; color: #7fd3a7; }
.term-body .t-time::before { content: "✓"; color: #7fd3a7; left: 5px; }
.t-line { padding-left: 22px; position: relative; }
.t-line::before { content: "·"; position: absolute; left: 8px; color: #6f9298; }
.t-warn { color: #f0d79a; }
.t-warn::before { content: "?"; color: var(--lamp); left: 6px; }
.t-bad { color: #ffb4a6; }
.t-bad::before { content: "!"; color: #ff7a63; font-weight: 700; left: 7px; }

.t-meter {
    position: relative;
    margin: 10px 0 0 22px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.t-meter-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 97%;
    background: linear-gradient(90deg, rgba(242, 193, 78, 0.45), var(--lamp));
    box-shadow: 0 0 24px rgba(242, 193, 78, 0.55);
}
.js .t-meter-fill { width: 0; }
.t-meter-val {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.t-verdict {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(210, 58, 38, 0.16);
    border: 1px solid rgba(255, 122, 99, 0.45);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: #ffe2dc;
}
.t-verdict .stamp { color: #ff8a73; flex: none; margin-top: 1px; }
.t-verdict b { color: #fff; }

/* Пока скрипт не дошёл до строки - её не видно. Без JS видно всё */
.js .term-body [data-l] { opacity: 0; transform: translateY(4px); transition: opacity 0.35s ease, transform 0.35s ease; }
.js .term-body [data-l].is-shown { opacity: 1; transform: none; }

/* Крючки */
.hooks {
    position: relative;
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}
.hooks::before {               /* перекладина, с которой свисают лески */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: rgba(169, 199, 204, 0.35);
}
.hook { position: relative; display: flex; flex-direction: column; align-items: center; }
.hook-line {
    position: relative;
    width: 1.5px;
    height: var(--len);
    background: rgba(207, 227, 229, 0.6);
}
.hook-line::after {            /* сам крючок */
    content: "";
    position: absolute;
    left: -9px;
    bottom: -13px;
    width: 10px;
    height: 13px;
    border: 2.5px solid #cfe3e5;
    border-top: 0;
    border-left-color: transparent;
    border-radius: 0 0 10px 10px;
}
.hook-bait {
    margin-top: 22px;
    width: 100%;
    padding: 16px 16px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(169, 199, 204, 0.2);
    border-radius: 14px;
    transform-origin: 50% -36px;
    transition: transform 0.6s cubic-bezier(.3, 1.6, .5, 1);
}
.hook:hover .hook-bait { transform: rotate(-3deg); }
.hook-bait > .url { display: block; font-size: 0.92rem; color: #fff; word-break: break-all; }
.hook-bait mark { background: rgba(210, 58, 38, 0.3); color: #ff9a85; font-weight: 700; border-radius: 3px; padding: 0 1px; }
.hook-bait p { margin-top: 8px; font-size: 0.9rem; color: #a9c7cc; }
.hook-bait .hook-real { font-size: 0.86rem; }
.hook-real .url { color: #7fd3a7; }

/* Мысли перед кликом */
.thoughts-list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;              /* все четыре карточки одной высоты */
    gap: 18px;
}
.thought {
    padding: 26px 28px 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(169, 199, 204, 0.18);
}
/* Иконки оживают, когда карточка
   появляется на экране (.is-seen из js/home.js), при наведении - снова */
.thought { position: relative; transition: border-color 0.4s ease, background 0.4s ease; }
.thought.is-seen { border-color: rgba(255, 122, 99, 0.35); }
.thought-icon { width: 48px; height: 48px; color: #cfe3e5; margin-bottom: 14px; overflow: visible; }
.ti-check { stroke-dasharray: 16; stroke-dashoffset: 16; }
.ti-badge { transform-origin: 35px 35px; transform: scale(0); }
.is-seen .ti-badge { animation: tiPop 0.45s cubic-bezier(.3, 1.6, .5, 1) 0.6s forwards; }
.is-seen .ti-check { animation: tiDraw 0.4s ease 0.9s forwards; }

.ti-shackle { transform-origin: 32px 22px; }
.ti-body { transition: fill 0.4s ease 0.75s; }
.is-seen .ti-shackle { animation: tiUnlock 0.6s cubic-bezier(.3, 1.4, .5, 1) 0.6s forwards; }
.is-seen .ti-body { fill: #ff7a63; }

.ti-p1, .ti-p3 { opacity: 0; }
.is-seen .ti-p1 { animation: tiSpreadL 0.6s cubic-bezier(.3, 1.4, .5, 1) 0.6s forwards; }
.is-seen .ti-p3 { animation: tiSpreadR 0.6s cubic-bezier(.3, 1.4, .5, 1) 0.75s forwards; }
.thought--crowd .thought-icon { color: #cfe3e5; }

.ti-bar { stroke-dasharray: 12; stroke-dashoffset: 12; }
.ti-arrow { opacity: 0; }
.is-seen .ti-arrow { animation: tiDrop 0.9s ease-in 0.6s 2 forwards; }
.is-seen .ti-bar { animation: tiDraw 1.2s ease 0.9s forwards; }

.thought:hover .ti-shackle { animation: tiUnlock 0.6s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.thought:hover .ti-arrow { animation: tiDrop 0.9s ease-in forwards; }
.thought:hover .ti-badge { animation: tiPop 0.45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.thought:hover .ti-p1 { animation: tiSpreadL 0.6s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.thought:hover .ti-p3 { animation: tiSpreadR 0.6s cubic-bezier(.3, 1.4, .5, 1) 0.1s forwards; }

@keyframes tiDraw { to { stroke-dashoffset: 0; } }
@keyframes tiPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes tiUnlock { 0% { transform: none; } 100% { transform: translateY(-5px) rotate(28deg); } }
@keyframes tiSpreadL { from { opacity: 0; transform: translateX(12px); } to { opacity: 0.75; transform: none; } }
@keyframes tiSpreadR { from { opacity: 0; transform: translateX(-12px); } to { opacity: 0.75; transform: none; } }
@keyframes tiDrop { 0% { opacity: 0; transform: translateY(-8px); } 30% { opacity: 1; } 100% { opacity: 1; transform: translateY(3px); } }

.thought .thought-say { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; font-weight: 600; color: #fff; letter-spacing: -0.015em; }
.thought p + p { margin-top: 10px; color: #a9c7cc; }

/* Отзывы (разметку и листалку ведёт js/reviews.js; стили заметок - в editorial.css) */
.reviews-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.home .note { border-left-color: var(--lamp); }
.home .note-meta { color: #a9c7cc; }
.home .review-open { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.home .review-open:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
/* Отзывы и стрелка справа от них */
.notes-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.home .notes-pager { padding: 0; border: 0; display: block; }
.home .notes-pager[hidden] { display: none; }
.notes-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.notes-arrow svg { width: 24px; height: 24px; }
.notes-arrow:hover { background: #fff; color: var(--ink); border-color: #fff; }
.notes-arrow:active { transform: translateX(3px); }

/* Последний призыв вместе с ценой */
.underwater .last-call { padding: 120px 0 128px; text-align: center; border-top: 1px solid rgba(169, 199, 204, 0.16); }
.last-call-inner { display: flex; flex-direction: column; align-items: center; }
.last-call h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 18ch; line-height: 1.02; letter-spacing: -0.04em; }
.last-call .dive-lead { margin-top: 18px; }
.last-call-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.last-call-actions .btn { height: 58px; padding-inline: 30px; border-radius: 12px; font-size: 1.05rem; }
.btn.last-call-btn { background: var(--lamp); color: var(--ink); border-color: var(--lamp); }
.btn.last-call-btn:hover { background: #f6d27a; border-color: #f6d27a; }
.btn.btn-quiet { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn.btn-quiet:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.last-call-price { margin-top: 18px; font-size: 0.95rem; color: #a9c7cc; }

.home .footer { padding-top: 40px; }

/* --- Глубиномер ------------------------------------------------------- */
.depth {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 0 1px rgba(14, 34, 48, 0.08);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.depth-scale {
    position: relative;
    width: 2px;
    height: 120px;
    background: repeating-linear-gradient(180deg, rgba(14, 34, 48, 0.35) 0 1px, transparent 1px 12px);
}
.depth-mark {
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--verm);
}
.depth-value { min-width: 4.2em; text-align: center; }

/* --- Адаптив ---------------------------------------------------------- */
@media (max-width: 1080px) {
    .depth { display: none; }
}
/* невысокие экраны: ужимаем первый экран, чтобы волна осталась видна */
@media (min-width: 981px) and (max-height: 860px) {
    .surface { padding: 24px 0 88px; }
    .surface-title { font-size: clamp(2.1rem, 4vw, 3.8rem); }
    .surface-lead { margin-top: 18px; font-size: 1.02rem; }
    .check { margin-top: 22px; }
    .sms-caption { display: none; }
}
@media (max-width: 980px) {
    .surface-grid, .dive-grid, .reviews-grid { grid-template-columns: 1fr; }
    .dive-text { position: static; }
    .surface { min-height: 0; }
    .sms { padding-top: 40px; transform: none; }
    .sms-line { display: none; }
    .hooks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hooks::before, .hook-line { display: none; }
    .hook-bait { margin-top: 0; }
}
@media (max-width: 640px) {
    .surface { padding: 36px 0 90px; }
    .underwater section { padding: 72px 0; }
    .check-row { flex-direction: column; }
    .check-input { flex: none; }
    .check-row .btn { width: 100%; }
    .term-body { padding: 18px 16px 22px; font-size: 0.82rem; min-height: 0; }
    .hooks { grid-template-columns: 1fr; }
    .thoughts-list { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .ti-check, .ti-bar { stroke-dashoffset: 0; animation: none !important; }
    .ti-badge { transform: none; animation: none !important; }
    .ti-p1, .ti-p3, .ti-arrow { opacity: 0.75; animation: none !important; }
    .ti-shackle { animation: none !important; }
    .js .term-body [data-l] { opacity: 1; transform: none; transition: none; }
    .js .t-meter-fill { width: 97%; }
    .hook-bait, .layer { transition: none; }
}
