/* =====================================================================
   Общие блоки новой вёрстки: вводный текст под заголовком, адреса ссылок,
   тарифы. Подключается на главной и на странице тарифов.
   ===================================================================== */

.site-section { padding: 72px 0 96px; }
.site-section h2:not([class]) { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; }
.lead-text { margin-top: 14px; max-width: 60ch; color: var(--ink-2); }

/* адрес ссылки - всегда моноширинным: так видно подменённые символы */
.url { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }

/* --- Под водой -------------------------------------------------------- */
.underwater {
    position: relative;
    color: var(--foam);
    background:
        radial-gradient(1100px 500px at 50% 0%, rgba(120, 200, 205, 0.28), transparent 70%),
        linear-gradient(180deg, #1d5a6e 0%, var(--deep) 16%, #0c283a 55%, var(--abyss) 100%);
}
/* Поверхность воды: два слоя волн медленно плывут навстречу друг другу.
   Каждая волна нарисована дважды подряд, поэтому сдвиг на половину ширины
   выглядит бесконечным */
.waterline {
    position: absolute;
    top: -69px;
    left: 0;
    width: 100%;
    height: 70px;
    overflow: hidden;
    pointer-events: none;
}
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    max-width: none;          /* общий сброс ограничивает svg шириной блока */
    height: 100%;
    display: block;
}
.wave--back { color: #2f7488; opacity: 0.55; animation: waveDrift 19s linear infinite reverse; }
.wave--front { color: #1d5a6e; animation: waveDrift 13s linear infinite; }
@keyframes waveDrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .wave { animation: none; }
}
.underwater section { padding: 104px 0; }
.underwater h2 { color: #fff; }
.dive-lead { margin-top: 14px; max-width: 56ch; color: #a9c7cc; font-size: 1.05rem; }
.underwater .url { color: #fff; }

/* --- Тарифы: карточки под водой ---------------------------------------- */
.tariffs {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.tariff {
    position: relative;
    padding: 30px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(169, 199, 204, 0.22);
    border-radius: 20px;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    scroll-margin-top: 110px;
}
.tariff--main { background: rgba(242, 193, 78, 0.07); border-color: rgba(242, 193, 78, 0.55); }
.tariff.is-pick, .tariff.is-lit { border-color: var(--lamp); background: rgba(242, 193, 78, 0.12); transform: translateY(-4px); }
.tariff .tariff-name { font-size: 1.3rem; color: #fff; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; letter-spacing: -0.015em; }
.tariff-name small { font-size: 0.85rem; font-weight: 600; color: var(--lamp); letter-spacing: 0; }
.tariff-price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.tariff-price span { font-size: 0.95rem; font-weight: 500; color: #a9c7cc; letter-spacing: 0; }
.tariff-desc { color: #a9c7cc; }
.tariff ul { display: grid; gap: 9px; font-size: 0.95rem; color: #d3e5e7; }
.tariff li { padding-left: 22px; position: relative; }
.tariff li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 10px; height: 6px; border-left: 2px solid #7fd3a7; border-bottom: 2px solid #7fd3a7; transform: rotate(-45deg); }
.tariff .btn { margin-top: auto; width: 100%; background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.tariff .btn:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.tariff--main .btn { background: var(--lamp); color: var(--ink); border-color: var(--lamp); }
.tariff--main .btn:hover { background: #f6d27a; border-color: #f6d27a; }
.tariffs-foot { margin-top: 20px; color: #a9c7cc; font-size: 0.95rem; }
.tariffs-foot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
    .tariffs { grid-template-columns: 1fr; }
    .tariff + .tariff { border-left: 0; border-top: 1px solid var(--rule); }
}
