/*
Theme Name: TopOnMap
Theme URI:
Description: TopOnMap — Google Maps & Local SEO
Author: Developer
Author URI:
Template: astra
Version: 1.0.0
Text Domain: toponmap
*/

/* =========================================================================
   1. FONTS — Wix Madefor (self-hosted)
   --------------------------------------------------------------------------
   • Text (variable 400–800) — тело + вся весовая иерархия (500/600/700)
   • Display (800)           — только крупные hero-заголовки (.h-display)
   • Fallback с size-adjust  — убирает сдвиг верстки в момент подмены (CLS→0)
   • unicode-range           — грузится только нужный язык (ru/ua/pl)
   ========================================================================= */

/* ---- Wix Madefor Text (variable 400–800) — основной шрифт ---- */
@font-face {
    font-family: 'Wix Madefor Text';
    src: url('./fonts/wix-madefor-text_5.2.7_latin-wght-normal.woff2') format('woff2-variations');
    font-weight: 400 800; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Wix Madefor Text';
    src: url('./fonts/wix-madefor-text_5.2.8_latin-ext-wght-normal.woff2') format('woff2-variations');
    font-weight: 400 800; font-style: normal; font-display: swap;
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Wix Madefor Text';
    src: url('./fonts/wix-madefor-text_5.2.8_cyrillic-wght-normal.woff2') format('woff2-variations');
    font-weight: 400 800; font-style: normal; font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Wix Madefor Text';
    src: url('./fonts/wix-madefor-text_5.2.8_cyrillic-ext-wght-normal.woff2') format('woff2-variations');
    font-weight: 400 800; font-style: normal; font-display: swap;
    unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* ---- Wix Madefor Display (800) — крупные hero-заголовки ---- */
@font-face {
    font-family: 'Wix Madefor Display';
    src: url('./fonts/wix-madefor-display_5.2.8_latin-800-normal.woff2') format('woff2');
    font-weight: 800; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Wix Madefor Display';
    src: url('./fonts/wix-madefor-display_5.2.8_latin-ext-800-normal.woff2') format('woff2');
    font-weight: 800; font-style: normal; font-display: swap;
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Wix Madefor Display';
    src: url('./fonts/wix-madefor-display_5.2.8_cyrillic-800-normal.woff2') format('woff2');
    font-weight: 800; font-style: normal; font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Wix Madefor Display';
    src: url('./fonts/wix-madefor-display_5.2.8_cyrillic-ext-800-normal.woff2') format('woff2');
    font-weight: 800; font-style: normal; font-display: swap;
    unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* ---- Метрические фолбэки: пока грузится woff2, показывается Arial с
        подогнанными метриками, чтобы текст не «прыгал» при подмене ---- */
@font-face {
    font-family: 'Madefor Text Fallback';
    src: local('Arial');
    ascent-override: 96%; descent-override: 24%; line-gap-override: 0%;
    size-adjust: 100%;
}
@font-face {
    font-family: 'Madefor Display Fallback';
    src: local('Arial Bold'), local('Arial');
    ascent-override: 96%; descent-override: 24%; line-gap-override: 0%;
    size-adjust: 104%;
}

/* =========================================================================
   2. ROOT TOKENS
   ========================================================================= */
:root {
    --color-body: #1e1e1e;
    --color-bg: #0d0d0d;
    --color-white: #ffffff;
    --color-red: #e63329;
    --color-red-hover: #ff3d33;
    --color-red-dark: #c4271e;
    --color-gray-100: #f5f5f5;
    --color-gray-300: #b3b3b3;
    --color-gray-500: #737373;
    --color-gray-700: #404040;
    --color-gray-900: #1a1a1a;

    /* Шрифты. Text — база; Display — только для .h-display */
    --font-primary: 'Wix Madefor Text', 'Madefor Text Fallback', system-ui, Arial, sans-serif;
    --font-heading: 'Wix Madefor Text', 'Madefor Text Fallback', system-ui, Arial, sans-serif;
    --font-display: 'Wix Madefor Display', 'Madefor Display Fallback', 'Arial Black', Arial, sans-serif;

    /* Весовая шкала (одна точка правды) */
    --fw-regular: 400;
    --fw-medium: 500;   /* описания */
    --fw-semibold: 600; /* подзаголовки */
    --fw-bold: 700;     /* основные заголовки */
    --fw-black: 800;    /* hero / Display */

    --container-max: 1360px;
    --container-padding: 40px;
    --header-max: 1000px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --z-header: 100;
    --z-popup: 200;
    --z-float: 50;
    --header-height: 80px;
    --header-height-mobile: 64px;
}

html, body {
    overflow-x: hidden;
}

/* =========================================================================
   3. RESET
   ========================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-comment-list li.depth-1,
.ast-separate-container .comment-respond,
.ast-page-builder-template .entry-header,
.ast-no-sidebar.ast-separate-container .entry-content .alignfull {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.ast-separate-container .ast-article-single:not(.ast-related-post),
.ast-separate-container .ast-article-post {
    padding: 0;
}

.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.woocommerce),
.entry-content {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.site-content .ast-container {
    max-width: 100%;
    padding: 0;
}

#primary {
    padding: 0;
    margin: 0;
}

.ast-plain-container.ast-no-sidebar #primary {
    max-width: 100%;
}

/* =========================================================================
   4. TYPOGRAPHY — единая иерархия по весам
   --------------------------------------------------------------------------
   Основные заголовки h1/h2 → 700
   Подзаголовки h3–h6       → 600
   Текст/описания p, li…    → 500
   Крупный hero-заголовок   → .h-display (Wix Madefor Display 800)
   ========================================================================= */
body {
    font-family: var(--font-primary);
    font-weight: var(--fw-medium);
    color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

h1, h2 { font-weight: var(--fw-bold); }        /* 700 — основные заголовки */
h3, h4, h5, h6 { font-weight: var(--fw-semibold); } /* 600 — подзаголовки */

p, li, figcaption, blockquote {
    font-family: var(--font-primary);
    font-weight: var(--fw-medium);             /* 500 — описания */
    line-height: 1.6;
}

a, span, input, textarea, button, select, label {
    font-family: var(--font-primary);
}

/* Крупный hero-заголовок на Display 800.
   Навесь класс .h-display на нужный h1 (напр. hero «Наши услуги»). */
.h-display {
    font-family: var(--font-display);
    font-weight: var(--fw-black);
    letter-spacing: -0.02em;
    line-height: 1.02;
}

/* Утилиты весов — если где-то надо задать точечно, без правки разметки */
.fw-500 { font-weight: var(--fw-medium) !important; }
.fw-600 { font-weight: var(--fw-semibold) !important; }
.fw-700 { font-weight: var(--fw-bold) !important; }
.fw-800 { font-weight: var(--fw-black) !important; }

/* =========================================================================
   5. BASE ELEMENTS
   ========================================================================= */
a {
    text-decoration: none;
    color: inherit;
}

button:focus,
button:hover,
button:active,
a:focus,
a:hover,
a:active {
    outline: none;
    box-shadow: none;
    background-color: transparent;
    color: inherit;
    text-decoration: none;
}

.hero__float:focus,
.hero__float:hover,
.hero__float:active {
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

.header__menu a:focus,
.header__menu a:active {
    outline: none;
    box-shadow: none;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    list-style: none;
    padding: 0;
    margin: 0;
}

li::before,
li::after {
    display: none;
    content: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* =========================================================================
   6. ASTRA OVERRIDES
   ========================================================================= */
.ast-single-post .entry-content ul li::before,
.ast-single-post .entry-content ol li::before,
.entry-content ul li::before,
.entry-content ol li::before,
ul li::before,
ol li::before {
    display: none;
    content: none;
}

.ast-header-break-point .main-header-bar {
    display: none;
}

.main-header-bar {
    display: none;
}

.ast-single-post .entry-content ul li,
.ast-single-post .entry-content ol li,
.entry-content ul li,
.entry-content ol li,
body ul li,
body ol li {
    list-style: none;
    padding: 0;
    margin: 0;
}

body ul li::before,
body ol li::before,
body ul li::after,
body ol li::after,
.ast-single-post .entry-content ul li::before,
.entry-content ul li::before {
    display: none !important;
    content: none !important;
}

.ast-container,
.site-content .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

#primary,
.ast-separate-container #primary {
    padding: 0 !important;
    margin: 0 !important;
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-plain-container .site-content .ast-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* =========================================================================
   7. RESPONSIVE
   ========================================================================= */
@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
    }
}




/* =========================================================
   COOKIEYES — под стиль сайта (тёмный + красный акцент)
========================================================= */

/* контейнер баннера */
.cky-consent-container .cky-consent-bar {
    background: #101012 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
    font-family: var(--font-primary, 'Wix Madefor Text', Arial, sans-serif) !important;
}

/* заголовок */
.cky-title {
    color: #fff !important;
    font-family: var(--font-display, 'Wix Madefor Display', Arial, sans-serif) !important;
    font-weight: 800 !important;
}

/* текст */
.cky-notice-des,
.cky-notice-des * {
    color: rgba(255, 255, 255, 0.66) !important;
    font-family: var(--font-primary, 'Wix Madefor Text', Arial, sans-serif) !important;
}

/* ссылки внутри текста (напр. "Политика cookie") */
.cky-notice-des a {
    color: #ff3b30 !important;
    text-decoration: none !important;
}
.cky-notice-des a:hover {
    text-decoration: underline !important;
}

/* --- КНОПКИ --- */
.cky-btn {
    border-radius: 999px !important;
    font-family: var(--font-primary, 'Wix Madefor Text', Arial, sans-serif) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 11px 22px !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease !important;
}

/* "Принять все" — главная красная */
.cky-btn-accept {
    background: var(--color-red, #e63329) !important;
    border: 1px solid var(--color-red, #e63329) !important;
    color: #fff !important;
}
.cky-btn-accept:hover {
    background: var(--color-red-hover, #ff3d33) !important;
    border-color: var(--color-red-hover, #ff3d33) !important;
    transform: translateY(-1px) !important;
}

/* "Отклонить" — контурная */
.cky-btn-reject {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}
.cky-btn-reject:hover {
    border-color: var(--color-red, #e63329) !important;
    color: #fff !important;
}

/* "Настроить" — тихая текстовая/контурная */
.cky-btn-customize {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}
.cky-btn-customize:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

/* модалка настроек (если открывают "Настроить") */
.cky-modal {
    background: #101012 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    font-family: var(--font-primary, 'Wix Madefor Text', Arial, sans-serif) !important;
}
.cky-preference-title,
.cky-accordion-header-des,
.cky-preference-header .cky-preference-title {
    color: #fff !important;
    font-family: var(--font-display, 'Wix Madefor Display', Arial, sans-serif) !important;
}
.cky-preference-body-wrapper,
.cky-preference-content-wrapper,
.cky-accordion-header-des {
    color: rgba(255, 255, 255, 0.62) !important;
}

/* переключатели-тумблеры в цвет акцента */
.cky-switch input:checked + label,
.cky-switch input:checked + .cky-switch-slider {
    background: var(--color-red, #e63329) !important;
}


/* =========================================================
   COOKIEYES — Preference Center (модалка "Настроить")
========================================================= */

/* затемнение позади модалки */
.cky-overlay,
.cky-modal-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
}
input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="date"],
select,
textarea {
    border-radius: 10px !important;
}
/* сама модалка */
.cky-preference-center {
    background: #101012 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    color: #fff !important;
    font-family: var(--font-primary, 'Wix Madefor Text', Arial, sans-serif) !important;
    overflow: hidden !important;
}

/* шапка модалки */
.cky-preference-header {
    background: #101012 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.cky-preference-title {
    color: #fff !important;
    font-family: var(--font-display, 'Wix Madefor Display', Arial, sans-serif) !important;
    font-weight: 800 !important;
}

/* крестик закрытия */
.cky-btn-close img,
.cky-btn-close {
    filter: invert(1) brightness(1.5) !important;
    opacity: 0.7 !important;
}
.cky-btn-close:hover {
    opacity: 1 !important;
}

/* тело / описание */
.cky-preference-body-wrapper,
.cky-preference-content-wrapper,
.cky-notice-des,
.cky-preference-description {
    color: rgba(255, 255, 255, 0.66) !important;
}

/* ссылка "Показать больше" и прочие */
.cky-show-desc-btn,
.cky-preference-content-wrapper a,
.cky-notice-des a {
    color: #ff3b30 !important;
    text-decoration: none !important;
}
.cky-show-desc-btn:hover {
    text-decoration: underline !important;
}

/* названия категорий (необходимо / функциональная / аналитика) */
.cky-accordion-item .cky-accordion-btn,
.cky-accordion-header .cky-accordion-btn,
.cky-accordion-chevron ~ .cky-accordion-btn {
    color: #fff !important;
    font-family: var(--font-primary, 'Wix Madefor Text', Arial, sans-serif) !important;
    font-weight: 600 !important;
}

/* разделители между категориями */
.cky-accordion,
.cky-accordion-item {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* "Всегда активные" — приглушим зелёный под акцент/нейтраль */
.cky-always-active {
    color: #4ade80 !important;  /* оставить зелёным, но можно #ff3b30 под сайт */
    font-weight: 600 !important;
}

/* описание внутри аккордеона */
.cky-accordion-header-des,
.cky-accordion-body-des {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* стрелка-шеврон аккордеона */
.cky-accordion-chevron i::before {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* футер модалки с кнопками */
.cky-footer-wrapper,
.cky-prefrence-btn-wrapper,
.cky-preference-footer {
    background: #101012 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* тумблеры категорий в цвет акцента */
.cky-switch input:checked + label,
.cky-switch input:checked + .cky-switch-slider,
input.cky-switch-input:checked + label {
    background: var(--color-red, #e63329) !important;
    border-color: var(--color-red, #e63329) !important;
}

/* скроллбар модалки */
.cky-preference-body-wrapper::-webkit-scrollbar {
    width: 8px;
}
.cky-preference-body-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18) !important;
    border-radius: 999px;
}

/* кнопки в модалке — те же классы, но продублируем на всякий */
.cky-preference-center .cky-btn-accept {
    background: var(--color-red, #e63329) !important;
    border: 1px solid var(--color-red, #e63329) !important;
    color: #fff !important;
    border-radius: 999px !important;
}
.cky-preference-center .cky-btn-preferences,
.cky-btn-preferences {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 999px !important;
}
.cky-btn-preferences:hover {
    border-color: var(--color-red, #e63329) !important;
    color: #fff !important;
}


.cky-footer-shadow {
    background: linear-gradient(180deg, rgba(16, 16, 18, 0) 0%, #101012 100%) !important;
}

/* скрыть значок reCAPTCHA v3 */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* иконка повторного вызова Cookie Yes — в красный */
.cky-btn-revisit-wrapper,
.cky-revisit-bottom-left,
.cky-btn-revisit {
    background: var(--color-red, #e63329) !important;
    border-color: var(--color-red, #e63329) !important;
}

.cky-btn-revisit:hover {
    background: var(--color-red-hover, #ff3d33) !important;
}

/* иконка внутри (если это картинка/SVG) — сделать белой */
.cky-btn-revisit img,
.cky-btn-revisit svg,
.cky-btn-revisit svg path {
    fill: #fff !important;
    filter: brightness(0) invert(1) !important;
}




/* 404 page */
.error404-page {
    background: #090909;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 100px;
    text-align: center;
}

.error404-page__container {
    max-width: 560px;
}

.error404-page__code {
    font-family: var(--font-display, sans-serif);
    font-size: clamp(90px, 16vw, 160px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #e52e2e;
    margin-bottom: 12px;
}

.error404-page__title {
    margin: 0 0 14px;
    color: #fff;
    font-family: var(--font-display, sans-serif);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.error404-page__text {
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-primary, sans-serif);
    font-size: 16px;
    line-height: 1.6;
}

.error404-page__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 15px 34px;
    border-radius: 999px;
    background: #f03a2f;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-primary, sans-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    transition: background-color .2s ease, transform .2s ease;
}

@media (hover: hover) {
    .error404-page__btn:hover {
        background: #ff463b;
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .error404-page {
        padding: 100px 18px 64px;
        min-height: 60vh;
    }
    .error404-page__text {
        font-size: 15px;
    }
}







/* =========================================================
   SEO TEXT BLOCK (низ главной)
========================================================= */
.seo-block {
    background: #090909;
    padding: 72px 0 96px;
}

.seo-block__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* типографика контента */
.seo-block__content {
    color: rgba(255, 255, 255, 0.66);
    font-family: var(--font-primary, sans-serif);
    font-size: 16px;
    line-height: 1.8;
    max-width: 920px;
}

.seo-block__content > *:first-child {
    margin-top: 0;
}

.seo-block__content h2 {
    margin: 40px 0 16px;
    color: #fff;
    font-family: var(--font-display, sans-serif);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.seo-block__content h3 {
    margin: 32px 0 14px;
    color: #fff;
    font-family: var(--font-primary, sans-serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.seo-block__content h4 {
    margin: 26px 0 12px;
    color: #fff;
    font-family: var(--font-primary, sans-serif);
    font-size: 17px;
    font-weight: 600;
}

.seo-block__content p {
    margin: 0 0 18px;
}

.seo-block__content a {
    color: #ff3b30;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 59, 48, 0.35);
    transition: border-color .2s ease;
}
.seo-block__content a:hover {
    border-color: #ff3b30;
}

.seo-block__content ul,
.seo-block__content ol {
    margin: 0 0 20px;
    padding-left: 0;
    list-style: none;
}

.seo-block__content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}
.seo-block__content ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.12);
}

.seo-block__content ol {
    counter-reset: seo-counter;
}
.seo-block__content ol li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 12px;
    counter-increment: seo-counter;
}
.seo-block__content ol li::before {
    content: counter(seo-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 59, 48, 0.12);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-block__content strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.seo-block__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
    border-radius: 12px;
    overflow: hidden;
}
.seo-block__content th {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.seo-block__content td {
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.seo-block__content tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.015);
}

.seo-block__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

/* спойлер (только для длинного текста) */
.seo-block__content--collapsible {
    position: relative;
    max-height: 340px;
    overflow: hidden;
}
.seo-block__content--collapsible::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    background: linear-gradient(180deg, rgba(9, 9, 9, 0), #090909 78%);
    pointer-events: none;
}
.seo-block__toggle:checked ~ .seo-block__content--collapsible {
    max-height: none;
}
.seo-block__toggle:checked ~ .seo-block__content--collapsible::after {
    display: none;
}

/* кнопка "Читать далее" */
.seo-block__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 59, 48, 0.3);
    background: rgba(255, 59, 48, 0.08);
    color: #ff3b30;
    font-family: var(--font-primary, sans-serif);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background-color .2s ease, border-color .2s ease;
}
.seo-block__more:hover {
    background: rgba(255, 59, 48, 0.14);
    border-color: rgba(255, 59, 48, 0.5);
}
.seo-block__more::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .2s ease;
}
.seo-block__toggle:checked ~ .seo-block__more::after {
    transform: rotate(-135deg) translateY(-1px);
}
.seo-block__more-close { display: none; }
.seo-block__toggle:checked ~ .seo-block__more .seo-block__more-open { display: none; }
.seo-block__toggle:checked ~ .seo-block__more .seo-block__more-close { display: inline; }

@media (max-width: 768px) {
    .seo-block {
        padding: 48px 0 64px;
    }
    .seo-block__container {
        padding: 0 18px;
    }
    .seo-block__content {
        font-size: 15px;
        line-height: 1.7;
    }
    .seo-block__content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}













/* =========================================================
   PACKAGES — тарифы (premium UI)
========================================================= */
.packages {
    position: relative;
    background: #090909;
    padding: 100px 0 112px;
    overflow: hidden;
    isolation: isolate;
}

.packages::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 20px;
    width: 1000px;
    height: 560px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(229,46,46,0.20) 0%, rgba(229,46,46,0.07) 40%, rgba(229,46,46,0) 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.packages__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Заголовок секции ---------- */
.packages__head {
    max-width: 700px;
    margin: 0 auto 64px;
    text-align: center;
}

.packages__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 8px 18px 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(229,46,46,0.35);
    background: rgba(229,46,46,0.08);
    color: #ff6b60;
    font-family: var(--font-primary, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.packages__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff463b;
    box-shadow: 0 0 0 4px rgba(240,58,47,0.18);
    animation: pkgPulse 2s ease-in-out infinite;
}

@keyframes pkgPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(240,58,47,0.18); }
    50% { box-shadow: 0 0 0 6px rgba(240,58,47,0.05); }
}

.packages__title {
    margin: 0 0 18px;
    color: #fff;
    font-family: var(--font-display, sans-serif);
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.packages__text {
    margin: 0;
    color: rgba(255,255,255,0.56);
    font-family: var(--font-primary, sans-serif);
    font-size: 16px;
    line-height: 1.65;
}

/* ---------- Сетка ---------- */
.packages__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* ---------- Карточка ---------- */
.pkg {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 36px 30px 34px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.09);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.006) 60%),
        #0d0d0f;
    transition: transform .4s cubic-bezier(0.34,1.2,0.64,1), border-color .4s ease, box-shadow .4s ease;
    overflow: hidden;
}

/* верхняя красная кромка-акцент */
.pkg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, rgba(229,46,46,0) 0%, rgba(229,46,46,0.5) 50%, rgba(229,46,46,0) 100%);
    opacity: 0.5;
    transition: opacity .4s ease;
}

/* мягкое свечение сверху при hover */
.pkg::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 130% 55% at 50% 0%, rgba(229,46,46,0.12) 0%, rgba(229,46,46,0) 58%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .pkg:hover {
        transform: translateY(-6px);
        border-color: rgba(229,46,46,0.32);
        box-shadow: 0 34px 70px -34px rgba(229,46,46,0.45);
    }
    .pkg:hover::before { opacity: 1; }
    .pkg:hover::after { opacity: 1; }
}

/* ---------- Featured ---------- */
.pkg--featured {
    border-color: rgba(229,46,46,0.5);
    background:
        radial-gradient(ellipse 110% 50% at 50% 0%, rgba(229,46,46,0.28) 0%, rgba(229,46,46,0) 58%),
        linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.008) 60%),
        #100d0e;
    box-shadow:
        0 0 0 1px rgba(229,46,46,0.3),
        0 40px 90px -40px rgba(229,46,46,0.8);
    transform: translateY(-10px) scale(1.015);
    z-index: 3;
}

.pkg--featured::before {
    opacity: 1;
    background: linear-gradient(90deg, rgba(229,46,46,0) 0%, #ff463b 50%, rgba(229,46,46,0) 100%);
    height: 3px;
}

@media (hover: hover) {
    .pkg--featured:hover {
        transform: translateY(-16px) scale(1.015);
        box-shadow:
            0 0 0 1px rgba(229,46,46,0.4),
            0 46px 100px -40px rgba(229,46,46,0.9);
    }
}

/* лента "Популярный выбор" */
.pkg__ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(180deg, #ff463b 0%, #e12f24 100%);
    color: #fff;
    font-family: var(--font-primary, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px -8px rgba(240,58,47,0.75);
    white-space: nowrap;
    z-index: 4;
}

.pkg__ribbon-star {
    width: 13px;
    height: 13px;
}

/* смещаем контент вниз у featured, чтобы лента не наезжала */
.pkg--featured .pkg__header {
    margin-top: 22px;
}

/* ---------- Шапка карточки ---------- */
.pkg__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
    position: relative;
    z-index: 2;
}

/* крупный номерной бейдж */
.pkg__badge-num {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
}

.pkg__badge-num span {
    font-family: var(--font-display, sans-serif);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: rgba(255,255,255,0.55);
    letter-spacing: -0.02em;
}

.pkg--featured .pkg__badge-num {
    background: linear-gradient(160deg, #ff463b 0%, #d8291f 100%);
    border-color: transparent;
    box-shadow: 0 12px 28px -10px rgba(240,58,47,0.8);
}

.pkg--featured .pkg__badge-num span {
    color: #fff;
}

.pkg__titles {
    min-width: 0;
    padding-top: 3px;
}

.pkg__name {
    margin: 0 0 8px;
    color: #fff;
    font-family: var(--font-display, sans-serif);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.pkg__desc {
    margin: 0;
    color: rgba(255,255,255,0.52);
    font-family: var(--font-primary, sans-serif);
    font-size: 13px;
    line-height: 1.5;
}

/* ---------- Цена ---------- */
.pkg__price-box {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.pkg__price {
    color: #fff;
    font-family: var(--font-display, sans-serif);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pkg--featured .pkg__price-box {
    background: rgba(229,46,46,0.1);
    border-color: rgba(229,46,46,0.28);
}

.pkg--featured .pkg__price {
    color: #ff6b60;
}

/* ---------- Кнопка ---------- */
.pkg__btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 54px;
    padding: 15px 24px;
    margin-bottom: 32px;
    border: 1.5px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-family: var(--font-primary, sans-serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color .28s ease, color .28s ease, border-color .28s ease, transform .22s ease, box-shadow .28s ease;
}

.pkg__btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform .28s ease;
}

@media (hover: hover) {
    .pkg__btn:hover {
        background: var(--color-red, #e63329);
        border-color: var(--color-red, #e63329);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 14px 30px -10px rgba(229,46,46,0.6);
    }
    .pkg__btn:hover .pkg__btn-arrow {
        transform: translateX(4px);
    }
}

.pkg--featured .pkg__btn {
    background: linear-gradient(180deg, #ff463b 0%, #e12f24 100%);
    border-color: transparent;
    box-shadow: 0 14px 32px -12px rgba(240,58,47,0.7);
}

@media (hover: hover) {
    .pkg--featured .pkg__btn:hover {
        background: linear-gradient(180deg, #ff5a50 0%, #e73a2f 100%);
        transform: translateY(-3px);
        box-shadow: 0 18px 38px -12px rgba(240,58,47,0.85);
    }
}

/* ---------- Выгоды ---------- */
.pkg__benefits {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.pkg__benefits-label {
    display: block;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.45);
    font-family: var(--font-primary, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pkg__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pkg__item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.pkg__item-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229,46,46,0.12);
    border: 1px solid rgba(229,46,46,0.28);
    color: #ff5a4f;
    transition: background-color .25s ease, transform .25s ease;
}

.pkg__item-icon svg {
    width: 16px;
    height: 16px;
}

.pkg--featured .pkg__item-icon {
    background: rgba(229,46,46,0.18);
    border-color: rgba(229,46,46,0.45);
    color: #ff6b60;
}

.pkg__item-text {
    padding-top: 5px;
    color: rgba(255,255,255,0.78);
    font-family: var(--font-primary, sans-serif);
    font-size: 14px;
    line-height: 1.45;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .packages__grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin: 0 auto;
        gap: 28px;
    }
    .pkg,
    .pkg--featured {
        transform: none;
    }
    .pkg--featured {
        order: -1;
        transform: none;
    }
    @media (hover: hover) {
        .pkg--featured:hover {
            transform: translateY(-6px);
        }
    }
}

@media (max-width: 768px) {
    .packages {
        padding: 68px 0 78px;
    }
    .packages__container {
        padding: 0 18px;
    }
    .packages__head {
        margin-bottom: 44px;
    }
    .pkg {
        padding: 32px 24px 30px;
    }
    .pkg__badge-num {
        width: 50px;
        height: 50px;
    }
    .pkg__badge-num span {
        font-size: 23px;
    }
}









/* =========================================================
   THANK YOU PAGE
========================================================= */
.thankyou-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72vh;
    padding: 180px 24px 136px;
    background: #090909;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.thankyou-page::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8%;
    width: 700px;
    height: 400px;
    max-width: 92%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(31,184,111,0.13) 0%, rgba(31,184,111,0) 68%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.thankyou-page__inner {
    width: 100%;
    max-width: 560px;
}

/* бейдж с галочкой внутри */
.thankyou-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 26px;
    padding: 9px 18px 9px 9px;
    border-radius: 999px;
    border: 1px solid rgba(31,184,111,0.32);
    background: rgba(31,184,111,0.09);
    color: #2ec77f;
    font-family: var(--font-primary, sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
}

.thankyou-page__eyebrow-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(180deg, #24c07e 0%, #1a9e64 100%);
    color: #fff;
    box-shadow: 0 4px 12px -4px rgba(31,184,111,0.8);
    flex-shrink: 0;
}

.thankyou-page__eyebrow-check svg {
    width: 14px;
    height: 14px;
}

.thankyou-page__title {
    margin: 0 0 16px;
    color: #fff;
    font-family: var(--font-display, sans-serif);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.thankyou-page__text {
    margin: 0 auto 34px;
    max-width: 460px;
    color: rgba(255,255,255,0.58);
    font-family: var(--font-primary, sans-serif);
    font-size: 16px;
    line-height: 1.6;
}

.thankyou-page__btn,
.thankyou-page__btn:link,
.thankyou-page__btn:visited,
.thankyou-page__btn:hover,
.thankyou-page__btn:focus,
.thankyou-page__btn:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 14px 30px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff463b 0%, #e12f24 100%);
    color: #fff;
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none;
    font-family: var(--font-primary, sans-serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 12px 28px -12px rgba(240,58,47,0.55);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.thankyou-page__btn span {
    text-decoration: none !important;
    border-bottom: 0 !important;
}

@media (hover: hover) {
    .thankyou-page__btn:hover {
        background: linear-gradient(180deg, #ff5a50 0%, #e73a2f 100%);
        transform: translateY(-2px);
        box-shadow: 0 16px 34px -12px rgba(240,58,47,0.7);
    }
}

/* планшет */
@media (max-width: 768px) {
    .thankyou-page {
        min-height: auto;
        align-items: flex-start;
        padding: 60px 20px 72px;
    }
    .thankyou-page__text {
        font-size: 15px;
    }
}

/* телефон */
@media (max-width: 480px) {
    .thankyou-page {
        min-height: auto;
        align-items: flex-start;
        padding: 260px 20px 204px;
    }
    .thankyou-page__eyebrow {
        margin-bottom: 22px;
        font-size: 11px;
        letter-spacing: 0.1em;
    }
    .thankyou-page__eyebrow-check {
        width: 24px;
        height: 24px;
    }
    .thankyou-page__title {
        font-size: clamp(26px, 8vw, 34px);
        margin-bottom: 14px;
    }
    .thankyou-page__text {
        font-size: 14.5px;
        line-height: 1.55;
        margin-bottom: 28px;
    }
    .thankyou-page__btn {
        display: flex;
        width: 100%;
        min-height: 52px;
    }
}




/* =========================================================
   QUICK CONTACTS (Telegram + WhatsApp)
========================================================= */
.quick-contacts {
    position: fixed;
    right: 34px;
    bottom: 135px;
    z-index: 999999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition:
        opacity 0.5s ease,
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        visibility 0.5s;
    pointer-events: none;
}

.quick-contacts.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.quick-contacts__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    -webkit-tap-highlight-color: transparent;
}

.quick-contacts__btn img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
}

@keyframes quickSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (hover: hover) {
    .quick-contacts__btn:hover {
        transform: translateY(-3px) scale(1.06);
        box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6);
    }
    .quick-contacts__btn:hover img {
        animation: quickSpin .6s ease-in-out;
    }
}

.quick-contacts__btn:active {
    transform: scale(0.94);
}

@media (max-width: 768px) {
    .quick-contacts {
        right: 24px;
        bottom: 120px;
        gap: 12px;
    }
    .quick-contacts__btn {
        width: 52px;
        height: 52px;
    }
}