@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

/* =========================================================
   СБРОС И БАЗОВЫЕ СТИЛИ
   ========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Manrope", system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    color: #222;
    background: #fff;
}

/* =========================================================
   LAYOUT / CONTAINER
   ========================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }
}

/* =========================================================
   HEADER + NAV
   ========================================================= */
.site-header {
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 0;
    background: #fff;
}

.site-title a.logo {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    color: #111;
}

.subtitle {
    margin: 3px 0 0;
    font-size: 13px;
    color: #555;
}

.site-nav {
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 8px 0;
}

.nav-link {
    padding: 8px 10px;
    border-radius: 8px;
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.nav-link:hover {
    background: #eee;
}

.nav-link.is-active {
    background: #FFC400;
    color: #111;
}

@media (max-width: 900px) {
    .logo { font-size: 20px; }
    .subtitle { font-size: 12px; }
    .nav-link { padding: 7px 8px; font-size: 14px; }
}

/* =========================================================
   TYPOGRAPHY + MAIN
   ========================================================= */
main {
    padding: 24px 0;
}

h1 { font-size: 2.4rem; margin-bottom: 0.6em; }
h2 { font-size: 2rem; margin: 1.8em 0 0.8em; }
h3 { font-size: 1.5rem; margin: 1.4em 0 0.6em; }
h4 { font-size: 1.2rem; margin: 1.1em 0 0.5em; }

p, .lead {
    margin-bottom: 1em;
}

.lead {
    font-size: 1.18rem;
    margin: 0.8em 0 1.4em;
}

.lead.lead-secondary {
    font-size: 1.15rem;
    margin-bottom: 1.6em;
    color: #333;
}

@media (max-width: 768px) {
    main { padding-top: 12px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
}

/* =========================================================
   ПРЕИМУЩЕСТВА (жёлтые звёздочки без точек)
   ========================================================= */
.advantage-list {
    list-style: none;
    padding-left: 0;
}

.advantage-list li::before {
    content: "★ ";
    color: #FFC400;
    margin-right: 10px;
}

.dot-list {
    list-style: none;
    padding-left: 0;
}

.dot-list li {
    margin-bottom: 0.6em;
    position: relative;
    padding-left: 1.4em;
}

.dot-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #FFC400;
    font-size: 1.2em;
    line-height: 1;
}

/* =========================================================
   БАЗОВЫЕ КОМПОНЕНТЫ / СЕТКИ / КАРТОЧКИ
   ========================================================= */
.section-subtitle {
    margin: 2em 0 0.8em;
    color: #222;
    font-size: 1.4rem;
}

.section-step {
    margin: 1.2em 0 0.6em;
    font-size: 1.25rem;
    color: #222;
    position: relative;
}

.section-intro {
    margin-bottom: 1.8em;
}

.note-italic {
    margin-top: 1.8em;
    font-style: italic;
    color: #555;
}

.note-accent {
    position: relative;
    padding-left: 0.9em;
}

.note-accent::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 4px;
    height: calc(100% - 0.2em);
    border-radius: 2px;
    background: #FFE08A;
}

.warning-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFF3C4;
    color: #8A6D00;
    font-weight: 700;
    font-size: 0.95em;
    margin-right: 8px;
    vertical-align: middle;
}

.section-spaced {
    margin-bottom: 2em;
}

.section-compact {
    margin-top: 1.2em;
}

.section-compact h2 {
    margin-top: 1.2em;
}

.quick-facts {
    margin: 1.2em 0;
}

/* Компактные страницы (дисклеймер и т.п.) */
.page-compact h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5em;
}

.page-compact h2 {
    font-size: 1.3rem;
    margin: 1.2em 0 0.6em;
    padding-left: 1.2em;
    position: relative;
    color: #222;
}

.page-compact h2::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #FFC400;
    font-size: 1.2em;
    line-height: 1;
}

.page-compact .lead {
    margin: 0.6em 0 1.1em;
    font-size: 1.05rem;
}

/* Галерея изображений */
.image-gallery {
    display: flex;
    gap: 24px;
    margin: 32px 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
}

.image-gallery.image-gallery--row {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
}

.image-gallery.image-gallery--row .image-gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.image-gallery.image-gallery--row .image-gallery-img {
    flex: 0 0 calc(33.333% - 16px);
}

.image-gallery.image-gallery--row.image-gallery--tight-3 {
    gap: 8px;
}

.image-gallery.image-gallery--row.image-gallery--tight-3 .image-gallery-img {
    flex-basis: calc(33.333% - 6px);
    height: 340px;
}

.image-gallery.image-gallery--row.image-gallery--tight-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-width: 980px;
    margin: 24px auto;
}

.image-gallery.image-gallery--row.image-gallery--tight-2 .image-gallery-img {
    width: 100%;
    height: 460px;
}

.image-gallery.image-gallery--row.image-gallery--tight-1 {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.image-gallery.image-gallery--row.image-gallery--tight-1 .image-gallery-img {
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.install-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 20px;
    align-items: center;
}

.install-figure {
    margin: 0;
    align-self: center;
}

.install-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .image-gallery.image-gallery--row .image-gallery-img {
        flex-basis: calc(50% - 12px);
        height: 240px;
    }

    .image-gallery.image-gallery--row.image-gallery--tight-3 .image-gallery-img {
        flex-basis: calc(50% - 6px);
        height: 280px;
    }

    .image-gallery.image-gallery--row.image-gallery--tight-2 .image-gallery-img {
        height: 340px;
    }

    .install-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .image-gallery.image-gallery--row.image-gallery--tight-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 620px) {
    .image-gallery.image-gallery--row .image-gallery-img {
        flex-basis: 100%;
        height: 220px;
    }

    .image-gallery.image-gallery--row.image-gallery--tight-3 .image-gallery-img {
        height: 240px;
    }
}

.image-gallery figure {
    flex: 1 1 300px;
    max-width: 48%;
    margin: 0;
}

.image-gallery.image-gallery--compact .image-gallery-img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.image-gallery.image-gallery--compact figure {
    flex: 0 0 500px;
    max-width: 500px;
}

.image-gallery-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: none;
    display: block;
    transition: transform 0.2s ease;
    will-change: transform;
}

.image-gallery figcaption {
    margin-top: 0.8em;
    font-size: 0.95em;
    color: #555;
    font-style: italic;
}

.image-gallery.image-gallery--schemes .image-gallery-img {
    height: 220px;
    object-fit: cover;
}

.image-gallery.image-gallery--equal .image-gallery-img {
    height: 320px;
    object-fit: cover;
}

.image-gallery.image-gallery--uniform .image-gallery-img {
    height: auto;
    object-fit: contain;
    max-height: 300px;
}

.image-gallery.image-gallery--uniform .image-gallery-img:hover {
    transform: scale(1.08);
}

/* Lightbox (CSS-only) */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 999;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    border: none;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.lightbox img {
    max-width: 95vw;
    max-height: 80vh;
    height: auto;
    width: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    background: #fff;
}

.lightbox-caption {
    color: #f3f4f6;
    font-size: 0.95em;
    text-align: center;
    margin: 0;
    max-width: 80ch;
}

.lightbox-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.65);
}

.lightbox-trigger {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .image-gallery figure {
        max-width: 100%;
    }
}

/* Компоновка: 1 вертикальное + 2 горизонтальных */
.image-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin: 32px 0;
    align-items: start;
}

.image-layout figure {
    margin: 0;
}

.image-layout-stack {
    display: grid;
    gap: 24px;
}

@media (max-width: 900px) {
    .image-layout {
        grid-template-columns: 1fr;
    }
}

/* Универсальные figure */
.figure-center {
    margin: 2em 0;
    text-align: center;
}

.figure-compact {
    margin: 1.2em 0 0.4em;
    text-align: center;
}

.figure-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

.figure-img-compact {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    display: block;
}

.figure-caption {
    margin-top: 0.8em;
    font-size: 0.95em;
    color: #555;
    font-style: italic;
}

.figure-caption-compact {
    margin-top: 0.7em;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* Карточки преимуществ */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
    margin: 2em 0;
}

.benefit-card {
    padding: 1.2em;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* Информационный блок */
.info-panel {
    background: #f9f9f9;
    padding: 1.6em;
    border-radius: 12px;
    margin: 1.8em 0;
}

.info-panel-title {
    margin: 0 0 1em;
    font-weight: 600;
    color: #222;
}

.info-panel-list {
    margin: 0;
    padding-left: 1.8em;
    list-style: none;
    color: #444;
    line-height: 1.7;
}

.info-panel-item {
    margin-bottom: 0.8em;
    position: relative;
    padding-left: 1.8em;
}

.info-panel-item:last-child {
    margin-bottom: 0;
}

.info-panel-bullet {
    position: absolute;
    left: 0;
    color: #FFC400;
    font-size: 1.4em;
    line-height: 1;
}

/* Карточка-рамка для советов */
.info-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.4em 1.6em;
    margin: 1.4em 0;
}

.info-card h3 {
    margin-top: 0;
}

/* Две ключевые функции — карточки */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 28px 0;
    align-items: stretch;
    max-width: 900px;
    margin-left: 0;
    margin-right: 0;
}

.feature-grid.feature-grid--full {
    max-width: none;
    width: 100%;
}



.feature-grid.feature-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid.feature-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .feature-grid.feature-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .feature-grid.feature-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.feature-card {
    padding: 1.4em;
    background: #FFF8E1;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card.feature-card--white {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card-title {
    font-size: 1.15rem;
    margin: 0 0 0.6em;
    color: #222;
}

.feature-figure {
    margin: 1em 0 0.4em;
    text-align: center;
}

.feature-figure-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.feature-figure-caption {
    margin-top: 0.7em;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Универсальная сетка карточек */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8em;
    margin: 2em 0;
}

.card-grid.card-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.4em;
}

.card {
    background: #f9f9f9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.card-img {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eee;
}

.card-body {
    padding: 1.2em 1.4em;
}

.card-title {
    margin: 0 0 0.5em;
    font-size: 1.25em;
    color: #222;
    position: relative;
    padding-left: 2.2em;
}

.card-check {
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: #FFC400;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

.card-text {
    margin: 0;
    color: #555;
    font-size: 0.98em;
}

/* Карточки выбора */
.tip-card {
    padding: 1.4em;
    background: #FFF8E1;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.tip-card-title {
    margin: 0 0 0.8em;
    color: #222;
    font-size: 1.15em;
}

.tip-card-list {
    margin: 0.6em 0 0;
    padding-left: 1.2em;
    list-style: disc;
    color: #444;
}

/* Вспомогательные блоки для FAQ */
.tip-box {
    background: #f8f9fa;
    padding: 10px;
    border-left: 4px solid #3498db;
    margin: 1em 0;
    border-radius: 4px;
}

.faq-paragraph {
    margin: 1em 0;
}

.faq-conclusion {
    margin: 1.2em 0 0;
    font-weight: 600;
    color: #222;
}

.faq-conclusion-text {
    margin: 0.6em 0 0;
}

.formula {
    margin: 1em 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.1em;
}

.formula-highlight {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid #FFE08A;
}

/* =========================================================
   FAQ — современный, читабельный, красивый
   ========================================================= */
details.faq {
    margin-bottom: 0.9em;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.8em;
    transition: all 0.2s ease;
}

details.faq summary {
    cursor: pointer;
    font-weight: 700;               /* жирный вопрос всегда заметен */
    font-size: 1.12em;              /* чуть крупнее */
    color: #111;
    padding: 0.6em 0;
    list-style: none;
    transition: color 0.2s ease;
}

details.faq summary:hover,
details.faq[open] summary {
    color: #000;
}

details.faq summary::-webkit-details-marker {
    display: none;
}

details.faq summary::before {
    content: "▶ ";
    color: #FFC400;
    margin-right: 12px;
    font-size: 1.3em;
    vertical-align: middle;
}

details.faq[open] summary::before {
    content: "▼ ";
}

.faq-content {
    padding: 0.6em 0 0.3em 2.2em;   /* отступ слева, чтобы текст не прилипал */
    font-size: 0.97em;
    color: #333;
    line-height: 1.68;
}

.faq-content p {
    margin: 0.7em 0;
}

.faq-content h4 {
    margin: 1.5em 0 0.7em;
    font-size: 1.08em;
    color: #222;
    font-weight: 600;
}

.faq-content ul,
.faq-content ol {
    margin: 0.7em 0 1.1em 0;
    padding-left: 0;
    list-style: none;
}

.faq-content ul li,
.faq-content ol li {
    margin-bottom: 0.7em;
    position: relative;
    padding-left: 2em;
}

.faq-content ul li::before {
    content: "•";
    position: absolute;
    left: 0.4em;
    color: #FFC400;
    font-size: 1.4em;
    line-height: 1;
}

.faq-content ol {
    padding-left: 2.2em;
    list-style: decimal;
}

.faq-content strong {
    color: #222;
    font-weight: 600;
}

/* Выделение вывода или важного совета */
.faq-content p strong,
.faq-content .highlight {
    background: #fff8e1;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ОСНОВНЫЕ ВИДЫ СХЕМ ЩИТКА — СВЕТЛО-ЖЁЛТЫЕ, НЕНАВЯЗЧИВЫЕ */
.scheme-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);          /* 2 в ряд на десктопе */
    gap: 1.4em;
    margin: 1.8em 0 2.5em;
}

.scheme-card {
    padding: 1.6em 1.8em 2em;                       /* больше места снизу для картинки */
    background: #FFF8E1;                            /* светло-кремово-жёлтый, очень мягкий */
    border-radius: 12px;
    border: none;
    box-shadow: none;
    color: #222;
    display: flex;
    flex-direction: column;
}

.scheme-card strong {
    display: block;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 0.8em;
    color: #333;
}

.scheme-card p {
    margin: 0;
    font-size: 1.05em;
    line-height: 1.5;
}

.scheme-card figure {
    margin-top: auto;                               /* картинка прижимается к низу карточки */
}

.scheme-card figcaption {
    font-size: 0.88em;
    color: #555;
}

.scheme-figure {
    margin: 1.2em 0 0.4em;
    text-align: center;
}

.scheme-figure-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    display: block;
}

.scheme-figure-caption {
    margin-top: 0.7em;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .scheme-cards {
        grid-template-columns: 1fr;                 /* 1 в ряд на мобильных */
    }
}

/* =========================================================
   ЭТАПЫ + ОШИБКИ — усиленный визуал
   ========================================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 1.2em 0 0.4em;
}

.step-card {
    position: relative;
    padding: 1.6em 1.6em 1.4em;
    background: #f9fafb;
    border: 1px solid #eceff3;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.step-title {
    margin-top: 0;
    margin-bottom: 0.7em;
}

.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 1.2em 0 0.4em;
}

.mistake-card {
    background: #f9fafb;
    border: 1px solid #eceff3;
    border-radius: 14px;
    padding: 1.2em 1.4em;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.mistake-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.4em;
}

.mistake-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95em;
    line-height: 1;
    margin-top: 2px;
}

.mistake-card h3 {
    margin: 0;
    line-height: 1.1;
}

.mistakes-section .mistake-num {
    margin-top: 2px;
}

.mistakes-section .mistake-head {
    align-items: flex-start;
}

@media (max-width: 900px) {
    .steps-grid,
    .mistakes-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SVG схема — аккуратнее и в стиле страницы
   ========================================================= */
.scheme-figure-img--svg {
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
    border: 1px solid #eee;
}

.scheme-figure-img--svg .schema-svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   ТАБЛИЦА ВЫБОРА
   ========================================================= */
.table-wrap {
    overflow-x: auto;
    margin: 1.5em 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

.table th, .table td {
    padding: 14px 18px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.table th {
    background: #FFF8E1;
    font-weight: 600;
    color: #222;
}

.table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* =========================================================
   КНОПКИ МАГАЗИНОВ (слева!)
   ========================================================= */
.cta {
    margin: 1.5em 0;
    padding: 1.5em 0;
}

.cta h2 {
    margin-top: 0;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: flex-start; /* слева, не по центру! */
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn {
    padding: 12px 20px;
    border-radius: 10px;
    background: #FFC400;
    color: #111;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid #FFC400;
    transition: all 0.2s ease;
}

.btn:hover {
    background: #FFB300;
    border-color: #FFB300;
    transform: translateY(-1px);
}

.cta.cta--dark {
    background: #111;
    color: #fff;
    border-radius: 0;
    padding: 2em 1.5em;
}

.cta.cta--dark h2,
.cta.cta--dark p {
    color: #fff;
}

.cta.cta--full {
    margin: 0;
    padding: 2.2em 0;
    width: 100%;
}

.cta.cta--dark .btn {
    background: #FFC400;
    border-color: #FFC400;
    color: #111;
}

.cta-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

@media (max-width: 768px) {
    .cta-inner {
        padding: 0 14px;
    }
}

/* =========================================================
   ГЛОССАРИЙ
   ========================================================= */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2em;
    margin-top: 1em;
}

.glossary-item {
    padding: 1em;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.glossary-item strong {
    font-size: 1.25em;
    display: block;
    margin-bottom: 0.4em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    margin-top: 40px;
    background: #111;
    color: #ddd;
    padding: 32px 0 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.footer-title {
    color: #FFC400;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-text {
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
    max-width: 200px;
    font-size: 12px;
}

.footer-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    max-width: 200px;
    line-height: 1.45;
}

.footer-note-title,
.footer-note-sub {
    display: block;
}

.footer-note-title {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.footer-note-sub {
    margin-top: 4px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 6px 0;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
}

.footer-links a:hover {
    color: #FFC400;
}

.footer-logo {
    max-width: 110px;
    height: auto;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 14px 0;
    font-size: 13px;
    color: #aaa;
    text-align: center;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-logo {
        max-width: 120px;
    }
}
details.faq[open] {
    background: #fafafa;
    border-radius: 8px;
    padding: 0.3em 0.9em 0.8em;
    margin-bottom: 1.1em;
}

/* =========================================================
   BLOCK: Встраиваемый щиток (аккуратная инфо-карточка)
   ========================================================= */

.block{
  background:#fff;
  border:1px solid #eee;
  border-radius:12px;
  padding:1.8em 2em;
  margin:2.2em 0;
  box-shadow:0 2px 10px rgba(0,0,0,0.04);
}

.block h2{
  margin:0 0 0.7em;
}

.block .intro{
  margin:0 0 1.2em;
  font-size:1.06em;
  color:#333;
}

.block h3{
  margin:1.4em 0 0.8em;
  font-size:1.35em;
}

.block .points{
  margin:0 0 1.2em;
  padding-left:0;
  list-style:none;
}

.block .points li{
  margin:0 0 0.85em;
  padding-left:2em;
  position:relative;
  line-height:1.65;
  color:#222;
}

.block .points li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0.05em;
  width:1.35em;
  height:1.35em;
  border-radius:50%;
  background:#FFC400;
  color:#111;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:0.9em;
}

/* две колонки "плюсы/минусы" */
.block .cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.2em;
  margin:1.2em 0 1.3em;
}

.block .cols > div{
  background:#fafafa;
  border:1px solid #eee;
  border-radius:10px;
  padding:1.1em 1.2em;
}

.block .cols h4{
  margin:0 0 0.65em;
  font-size:1.1em;
  color:#111;
}

.block .cols ul{
  margin:0;
  padding-left:0;
  list-style:none;
}

.block .cols ul li{
  position:relative;
  padding-left:1.2em;
  margin:0 0 0.6em;
  color:#333;
}

.block .cols ul li::before{
  content:"•";
  position:absolute;
  left:0;
  top:-0.05em;
  color:#FFC400;
  font-size:1.4em;
  line-height:1;
}

/* советы — как "теги" */
.block .tips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:1em 0 0.2em;
}

.block .tips span{
  background:#fff;
  border:1px solid #eee;
  border-radius:999px;
  padding:8px 12px;
  font-size:0.95em;
  color:#222;
}

/* вывод */
.block .conclusion{
  margin:1.1em 0 0;
  padding-top:1.1em;
  border-top:1px solid #eee;
  font-weight:600;
  color:#111;
}

/* адаптив */
@media (max-width:768px){
  .block{ padding:1.4em 1.2em; }
  .block .cols{ grid-template-columns:1fr; }
  .block .tips span{ width:100%; border-radius:10px; }
}

/* =========================================================
   404
   ========================================================= */
.error-404 {
    text-align: center;
    padding: 2.4em 2em;
    max-width: 760px;
    margin: 2.2em auto 2.6em;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.error-404-hero {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0.9em;
}

.error-404-num {
    font-size: 4.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #4a4a4a;
}

.error-404-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2b2b2b 0%, #4a4a4a 100%);
    position: relative;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.error-404-text {
    margin-bottom: 1.6em;
}

.error-404 .cta-buttons {
    justify-content: center;
}

.error-404-icon::before,
.error-404-icon::after {
    content: "";
    position: absolute;
    border-radius: 4px;
    background: #FFC400;
}

.error-404-icon::before {
    width: 26px;
    height: 6px;
    top: 16px;
    left: 14px;
}

.error-404-icon::after {
    width: 18px;
    height: 6px;
    top: 30px;
    left: 18px;
}

@media (max-width: 768px) {
    .error-404-num {
        font-size: 3.6rem;
    }
    .error-404-icon {
        width: 46px;
        height: 46px;
    }
}
