/* ============================================================
   EuroNet.Security — сторінки розділу «Безпека» (плагін eurosecurity).
   Підключається лише на /security…, /secure-business.html і
   /secure-warranty.html (manifest.json → assets.paths).

   Кольори, шрифти й радіуси — змінні теми euronet. Картки, кроки,
   переваги й перелік міст — готові блоки теми (.vs-*, .security-card,
   .card, .section-head); тут лише те, чого в темі не було: темна шапка,
   меню розділу, вступ із карткою контактів, таблиця порівняння,
   запитання-відповіді, блок заявки.
   ============================================================ */

.sec-page { overflow-x: clip; }
.sec-page h1, .sec-page h2, .sec-page h3 { text-wrap: balance; }

/* ---------- Темна шапка ---------- */
.sec-hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 150px 0 64px;
    color: #fff;
    background:
        radial-gradient(820px 460px at 86% 46%, rgba(0, 191, 166, .24), transparent 64%),
        linear-gradient(135deg, #0b1220 0%, #0f1e2d 52%, #0c2a2f 100%);
}
/* Ледь помітна сітка — натяк на схему мережі; до лівого краю згасає, щоб не заважати тексту. */
.sec-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 60%);
            mask-image: linear-gradient(90deg, transparent 8%, #000 60%);
}
.sec-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: center; }
.sec-hero__crumbs { margin-bottom: 18px; color: rgba(255, 255, 255, .55); }
.sec-hero__crumbs a { color: rgba(255, 255, 255, .82); }
.sec-hero__crumbs a:hover { color: #fff; }
.sec-hero .sec-hero__label { color: #58e2cf; margin-bottom: 14px; }
.sec-hero__title { font-size: clamp(1.75rem, 3.3vw, 2.7rem); letter-spacing: -.02em; max-width: 21ch; }
.sec-hero__lead { max-width: 60ch; font-size: 1.08rem; margin-bottom: 22px; }
.sec-hero__badges { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 0 0 28px; padding: 0; }
.sec-hero__badges li {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
    border-radius: 100px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    font-size: .88rem; color: rgba(255, 255, 255, .92);
}
.sec-hero__badges i { color: #58e2cf; font-size: .72rem; }

.sec-hero__art { position: relative; width: 320px; height: 320px; margin-left: auto; display: grid; place-items: center; }
.sec-hero__art > i { position: relative; font-size: 92px; color: #fff; filter: drop-shadow(0 12px 32px rgba(0, 191, 166, .55)); }
.sec-hero__ring { position: absolute; border-radius: 50%; inset: 0; margin: auto; }
.sec-hero__ring--1 { width: 184px; height: 184px; background: radial-gradient(circle, rgba(0, 191, 166, .34), rgba(0, 191, 166, .08) 70%); border: 1px solid rgba(88, 226, 207, .55); }
.sec-hero__ring--2 { width: 252px; height: 252px; border: 1px solid rgba(255, 255, 255, .16); }
.sec-hero__ring--3 { width: 320px; height: 320px; border: 1px dashed rgba(255, 255, 255, .12); }

/* ---------- Меню розділу ---------- */
.sec-nav { background: var(--bg-card); border-bottom: 1px solid var(--bdc); }
.sec-nav__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 12px 0; }
.sec-nav__link {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
    border-radius: 100px; white-space: nowrap;
    font-size: .88rem; font-weight: 600; color: var(--tt-secondary);
    transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.sec-nav__link i { font-size: .78rem; color: var(--tt-fade); transition: color var(--speed) var(--ease); }
a.sec-nav__link:hover { background: var(--accent-soft); color: var(--accent); }
a.sec-nav__link:hover i { color: var(--accent); }
.sec-nav__link.is-current { background: var(--accent); color: #fff; }
.sec-nav__link.is-current i { color: rgba(255, 255, 255, .85); }

/* ---------- Картки на білому тлі ----------
   Блоки чергуються: сіре тло сторінки / біле. Картки теми білі, тож на
   білому блоці вони зливалися б із тлом — там даємо їм сірий фон. */
.sec-page .section--alt .vs-feature,
.sec-page .section--alt .vs-step,
.sec-page .section--alt .vs-camera,
.sec-page .section--alt .security-card,
.sec-page .section--alt .card,
.sec-page .section--alt .sec-faq__item,
.sec-page .section--alt .sec-shop__card,
.sec-page .section--alt .sec-info__card,
.sec-page .section--alt .sec-duo__card,
.sec-page .section--alt .sec-aside,
.sec-page .section--alt .sec-compare,
.sec-page .section--alt .vs-coverage__city:not(.vs-coverage__city--main) { background: var(--bg); }
.sec-page .section:not(.section--alt) .vs-advantage { background: var(--bg-card); }
.sec-page .security-card:hover, .sec-page .vs-camera:hover { box-shadow: 0 10px 30px rgba(26, 35, 50, .10); }
.sec-page .security-card__title a { color: inherit; }
.sec-page .security-card__title a:hover { color: var(--accent); }
.sec-page .section-head__subtitle { max-width: 640px; }
.sec-page .vs-step__title { font-size: 1rem; }
.sec-page .vs-step__text, .sec-page .vs-advantage__text { font-size: .9rem; line-height: 1.6; }

/* ---------- Вступ і картка контактів ---------- */
.sec-intro { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.sec-intro__title {
    margin: 0 0 18px; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
    line-height: 1.2; letter-spacing: -.015em; color: var(--tt);
}
.sec-prose p { margin: 0 0 14px; max-width: 72ch; font-size: 1rem; line-height: 1.75; color: var(--tt-secondary); }
.sec-prose p:last-child { margin-bottom: 0; }
.sec-prose a, .sec-note a, .sec-more a, .sec-check a, .sec-page .vs-feature__text a, .sec-page .vs-camera__text a {
    color: var(--accent); font-weight: 600;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
}
.sec-prose a:hover, .sec-note a:hover, .sec-more a:hover, .sec-check a:hover,
.sec-page .vs-feature__text a:hover, .sec-page .vs-camera__text a:hover { color: var(--accent-hover); }

.sec-aside {
    position: sticky; top: 96px; padding: 26px;
    background: var(--bg-card); border: 1px solid var(--bdc); border-radius: var(--radius-lg);
}
.sec-aside__title { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--tt); }
.sec-aside__text { margin: 0 0 16px; font-size: .92rem; line-height: 1.55; color: var(--tt-secondary); }
.sec-aside__phones { display: grid; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.sec-aside__phones a {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 1.2rem; font-weight: 700; color: var(--tt); font-variant-numeric: tabular-nums;
}
.sec-aside__phones a:hover { color: var(--accent); }
.sec-aside__phones i { font-size: .85rem; color: var(--accent); }
.sec-aside__hours { display: flex; gap: 9px; margin: 0 0 18px; font-size: .85rem; line-height: 1.5; color: var(--tt-secondary); }
.sec-aside__hours i { margin-top: 3px; color: var(--tt-fade); }

/* ---------- Сітки карток ---------- */
.sec-steps, .sec-cities { list-style: none; margin: 0; padding: 0; }
@media (min-width: 1100px) {
    .sec-grid--4 { grid-template-columns: repeat(4, 1fr); }
    .sec-services { grid-template-columns: repeat(4, 1fr); }
    .sec-services .security-card { padding: 28px 26px; }
}
.sec-services__ask { border-style: dashed; background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--bg-card); }

/* Типи камер: фото товару цілком на білому, без обрізання. */
.sec-camera__img { padding-top: 62%; background: #fff; border-bottom: 1px solid var(--bdc); }
.sec-camera__img img { object-fit: contain; padding: 18px; }
.sec-camera__img > i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: var(--tt-fade); }
.sec-page .vs-camera__title { font-size: 1.05rem; }

/* ---------- Текстові блоки ---------- */
.sec-narrow { max-width: 820px; margin: 0 auto; }
.sec-check { display: grid; gap: 10px; list-style: none; margin: 16px 0 0; padding: 0; }
.sec-check li { position: relative; padding-left: 36px; line-height: 1.6; color: var(--tt-secondary); }
.sec-check li::before {
    content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2300897B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3L12.5 5'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}
.sec-note {
    max-width: 820px; margin: 28px auto 0; padding: 16px 20px;
    background: var(--accent-soft); border: 1px solid rgba(0, 137, 123, .18); border-radius: var(--radius);
    font-size: .95rem; line-height: 1.65; color: var(--tt-secondary);
}
.sec-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.sec-more { margin: 28px 0 0; text-align: center; font-size: .95rem; line-height: 1.6; color: var(--tt-secondary); }

/* ---------- Таблиця порівняння ---------- */
.sec-compare { max-width: 980px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--bdc); border-radius: var(--radius-lg); overflow: hidden; }
.sec-compare__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sec-compare__table th, .sec-compare__table td { padding: 16px 20px; text-align: left; vertical-align: top; line-height: 1.5; border-bottom: 1px solid var(--bdc); }
.sec-compare__table thead th { font-family: var(--font-display); font-weight: 700; color: var(--tt); background: var(--bg-elevated); }
.sec-compare__table tbody th { width: 22%; font-weight: 600; color: var(--tt); }
.sec-compare__table td { color: var(--tt-secondary); }
.sec-compare__table tbody tr:last-child th, .sec-compare__table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Дві великі картки (гарантія) ---------- */
.sec-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sec-duo__card { padding: 32px; background: var(--bg-card); border: 1px solid var(--bdc); border-radius: var(--radius-lg); }
.sec-duo__head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.sec-duo__head .vs-feature__icon { flex: none; width: 60px; height: 60px; margin: 0; font-size: 1.4rem; }
.sec-duo__value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--accent); }
.sec-duo__title { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--tt); }

/* ---------- Запитання й відповіді ----------
   Колонками, а не сіткою: картки різної висоти стають щільно, без дірок. */
.sec-faq { columns: 2; column-gap: 24px; max-width: 1080px; margin: 0 auto; }
.sec-faq__item { break-inside: avoid; margin: 0 0 16px; padding: 22px 24px; background: var(--bg-card); border: 1px solid var(--bdc); border-radius: var(--radius-lg); }
.sec-faq__q { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; line-height: 1.35; color: var(--tt); }
.sec-faq__a { margin: 0; font-size: .93rem; line-height: 1.65; color: var(--tt-secondary); }

/* ---------- Магазин і «Умови» ---------- */
.sec-wide-subtitle { max-width: 760px !important; }
.sec-shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sec-shop__card, .sec-info__card {
    background: var(--bg-card); border: 1px solid var(--bdc); border-radius: var(--radius-lg); color: inherit;
    transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.sec-shop__card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.sec-shop__card:hover, .sec-info__card:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.sec-shop__card .vs-feature__icon, .sec-info__card .vs-feature__icon { flex: none; margin: 0; }
.sec-shop__body { display: grid; gap: 3px; flex: 1; min-width: 0; }
.sec-shop__title { font-family: var(--font-display); font-weight: 600; color: var(--tt); }
.sec-shop__text { font-size: .86rem; line-height: 1.45; color: var(--tt-secondary); }
.sec-shop__arrow { color: var(--tt-fade); transition: color var(--speed) var(--ease), transform var(--speed) var(--ease); }
.sec-shop__card:hover .sec-shop__arrow { color: var(--accent); transform: translateX(3px); }
.sec-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
.sec-info__card { display: grid; gap: 10px; align-content: start; padding: 28px; }
.sec-info__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--tt); }
.sec-info__text { font-size: .92rem; line-height: 1.6; color: var(--tt-secondary); }

/* ---------- Заявка ----------
   Окрема смуга з легким відтінком фірмового кольору: форма — біла картка
   з сірими полями, тому їй потрібне тло, відмінне і від білого, і від сірого. */
.sec-order-band { background: linear-gradient(180deg, rgba(0, 137, 123, .07), rgba(0, 137, 123, .025)); border-block: 1px solid rgba(0, 137, 123, .12); }
.sec-order { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.sec-order__title { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; color: var(--tt); }
.sec-order__text { margin: 0 0 22px; line-height: 1.65; color: var(--tt-secondary); }
.sec-order__contacts { display: grid; gap: 12px; list-style: none; margin: 0 0 18px; padding: 0; }
.sec-order__contacts li { display: flex; align-items: baseline; gap: 12px; font-size: .92rem; line-height: 1.5; color: var(--tt-secondary); }
.sec-order__contacts i { flex: none; width: 16px; text-align: center; color: var(--accent); }
.sec-order__contacts a { font-size: 1.08rem; font-weight: 700; color: var(--tt); font-variant-numeric: tabular-nums; }
.sec-order__contacts a:hover { color: var(--accent); }
.sec-order__more { margin: 0; }
.sec-order__more a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.sec-order__form .en-form { max-width: none; margin: 0; box-shadow: 0 12px 40px rgba(26, 35, 50, .08); }

/* ---------- Планшет ---------- */
@media (max-width: 992px) {
    .sec-hero { padding: 130px 0 52px; }
    .sec-hero__in { grid-template-columns: 1fr; }
    .sec-hero__art { display: none; }
    .sec-intro { grid-template-columns: 1fr; gap: 32px; }
    .sec-aside { position: static; }
    .sec-order { grid-template-columns: 1fr; gap: 32px; }
    .sec-shop { grid-template-columns: 1fr; }
}

/* ---------- Телефон ---------- */
@media (max-width: 768px) {
    .sec-hero { padding: 112px 0 40px; }
    .sec-hero__lead { font-size: 1rem; }
    .sec-hero__badges li { font-size: .82rem; padding: 6px 12px; }
    /* Меню — одним рядком із прокруткою пальцем, щоб не займати пів екрана. */
    .sec-nav__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 10px 16px; }
    .sec-nav__list::-webkit-scrollbar { display: none; }
    .sec-intro__title, .sec-order__title { font-size: 1.4rem; }
    .sec-duo, .sec-info { grid-template-columns: 1fr; }
    .sec-duo__card { padding: 22px; }
    .sec-faq { columns: 1; }
    .sec-faq__item { padding: 18px 18px; }
    .sec-actions .btn { width: 100%; justify-content: center; }

    /* Таблиця порівняння — картками: назва рядка, під нею обидва варіанти з підписами. */
    .sec-compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .sec-compare__table, .sec-compare__table tbody, .sec-compare__table tr, .sec-compare__table th, .sec-compare__table td { display: block; width: auto; }
    .sec-compare__table tbody tr { padding: 16px 18px; border-bottom: 1px solid var(--bdc); }
    .sec-compare__table tbody tr:last-child { border-bottom: 0; }
    .sec-compare__table tbody th, .sec-compare__table td { padding: 0; border: 0; }
    .sec-compare__table tbody th { width: auto; margin-bottom: 10px; font-family: var(--font-display); }
    .sec-compare__table td + td { margin-top: 10px; }
    .sec-compare__table td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
    .sec-shop__card, .sec-info__card, .sec-shop__arrow, .sec-nav__link { transition: none; }
}


/* ---------- Після перегляду на екранах ---------- */

/* Картки послуг: «Дізнатися більше» — на одній лінії внизу, хоч би скільки тексту було над ним.
   Лише від планшета: на телефоні картка теми вже інша (значок ліворуч, текст праворуч). */
@media (min-width: 601px) {
    .sec-page .security-card { display: flex; flex-direction: column; }
    .sec-page .security-card__text { flex: 1 1 auto; }
}

/* Телефон: картки можливостей і переваг — рядком (значок ліворуч, текст праворуч).
   Великими картками з відступами сторінка відеоспостереження виходила на 21 екран. */
@media (max-width: 600px) {
    .sec-page .vs-features, .sec-page .vs-advantages, .sec-page .vs-steps, .sec-page .vs-cameras { gap: 10px; }
    .sec-page .vs-feature, .sec-page .vs-advantage {
        display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px;
        padding: 16px; text-align: left;
    }
    .sec-page .vs-feature__icon, .sec-page .vs-advantage__icon {
        grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; font-size: 1.05rem; border-radius: var(--radius);
    }
    .sec-page .vs-feature__title, .sec-page .vs-advantage__title { margin: 2px 0 0; font-size: 1rem; }
    .sec-page .vs-feature__text, .sec-page .vs-advantage__text { grid-column: 2; margin: 0; font-size: .88rem; line-height: 1.55; }
    .sec-page .vs-step { gap: 12px; padding: 16px; }
    .sec-page .vs-step__num { font-size: 1.5rem; }
    .sec-camera__img { padding-top: 46%; }
    .sec-camera__img img { padding: 12px; }
    .sec-page .vs-camera__body { padding: 16px; }
    .sec-page .section-head { margin-bottom: 28px; }
    .sec-aside { padding: 20px; }
    .sec-note { margin-top: 20px; padding: 14px 16px; font-size: .9rem; }
}
