/*
Theme Name: dds_oooyutservis.ru
Theme URI: https://oooyutservis.ru/
Author: Иванов Дмитрий
Author URI: https://oooyutservis.ru/
Description: Тема DomainDealSmart (DDS) — «Цифровой актив». Минималистичный, деловой дизайн с технологическим акцентом для портала по доменным именам.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dds_oooyutservis_ru
*/

/* =========================================================
   1. Базовые переменные и сброс
   ========================================================= */
:root {
    --bg-page: #F8F9FC;
    --bg-card: #FFFFFF;
    --color-primary: #1A4D8C;
    --color-primary-dark: #0F3B6E;
    --color-secondary: #00A6B5;
    --color-price: #E6673A;
    --color-text: #1E293B;
    --color-text-soft: #5B677B;
    --color-label: #94A3B8;
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-border: #E2E8F0;
    --shadow-card: 0 4px 18px rgba(15, 59, 110, 0.06);
    --shadow-card-hover: 0 10px 28px rgba(15, 59, 110, 0.12);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 40px;
    --content-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg-page);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

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

a { color: var(--color-primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--color-secondary); }

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--color-text);
    line-height: 1.25;
    margin: 0 0 0.6em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }

blockquote {
    margin: 1em 0;
    padding: 1em 1.2em;
    border-left: 4px solid var(--color-secondary);
    background: rgba(0, 166, 181, 0.05);
    border-radius: var(--radius-sm);
    color: var(--color-text-soft);
    font-style: italic;
}

code, pre, .price-mono {
    font-family: "JetBrains Mono", "Fira Code", "Consolas", "Courier New", monospace;
}

code {
    background: rgba(26, 77, 140, 0.07);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.92em;
    color: var(--color-primary-dark);
}

pre {
    background: #0F172A;
    color: #E2E8F0;
    padding: 1em 1.2em;
    border-radius: var(--radius-md);
    overflow-x: auto;
    line-height: 1.5;
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2em 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
th, td {
    padding: 0.7em 0.9em;
    border: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}
th {
    background: rgba(26, 77, 140, 0.05);
    color: var(--color-primary);
    font-weight: 700;
    position: sticky;
    top: 0;
    cursor: pointer;
    transition: background .18s ease;
}
th:hover { background: rgba(26, 77, 140, 0.12); }
tr:nth-child(even) td { background: rgba(248, 249, 252, 0.6); }

/* =========================================================
   2. Утилиты-обёртки
   ========================================================= */
.shell {
    width: min(100% - 32px, var(--content-width));
    margin-inline: auto;
}

.section {
    padding: 56px 0;
}

.section-tight {
    padding: 32px 0;
}

/* =========================================================
   3. Кнопки
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    font-family: inherit;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .22s ease;
    line-height: 1.2;
}

.btn-primary {
    padding: 12px 22px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #1A4D8C 0%, #0F3B6E 100%);
    color: #fff;
    box-shadow: none;
}
.btn-primary:hover {
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 166, 181, 0.3);
}

.btn-outline {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover {
    background: rgba(26, 77, 140, 0.05);
    color: var(--color-primary);
}

.btn-pill {
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #00A6B5 0%, #1A4D8C 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 166, 181, 0.2);
    font-size: 1.05rem;
}
.btn-pill:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 166, 181, 0.32); }
.btn-pill::after { content: "→"; font-size: 1.1em; }

/* =========================================================
   4. Шапка сайта
   ========================================================= */
.site-head {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}
.head-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 18px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.brand-logo { width: 48px; height: 48px; display: block; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-primary);
    line-height: 1.15;
    letter-spacing: -0.3px;
    max-width: 360px;
}
.brand-name a { color: inherit; }
.brand-tagline {
    font-size: 0.78rem;
    color: var(--color-text-soft);
    line-height: 1.3;
    margin-top: 3px;
    max-width: 420px;
}

.primary-nav { margin-left: auto; }
.primary-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.primary-nav li { margin: 0; }
.primary-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-weight: 500;
    transition: all .18s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    background: rgba(26, 77, 140, 0.08);
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid var(--color-border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-text);
    font-size: 0.9rem;
}

/* =========================================================
   5. Хлебные крошки
   ========================================================= */
.crumbs {
    padding: 14px 0;
    font-size: 0.88rem;
    color: var(--color-text-soft);
}
.crumbs ol {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.crumbs li { margin: 0; }
.crumbs li + li::before {
    content: "/";
    color: var(--color-label);
    margin-right: 6px;
}
.crumbs a { color: var(--color-text-soft); }
.crumbs a:hover { color: var(--color-primary); }
.crumbs [aria-current="page"] { color: var(--color-text); font-weight: 600; }

/* =========================================================
   6. Карточки записей
   ========================================================= */
.cards-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #EEF2F7;
}

.card-thumb-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(26, 77, 140, 0.08), rgba(0, 166, 181, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.card-body {
    flex: 1;
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-meta {
    font-size: 0.78rem;
    color: var(--color-label);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.card-meta a { color: var(--color-secondary); }

.card-title {
    font-size: 1.18rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.card-title a { color: var(--color-text); }
.card-title a:hover { color: var(--color-primary); }

.card-excerpt {
    color: var(--color-text-soft);
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-foot {
    padding-top: 6px;
}

.card-foot .btn-outline {
    padding: 7px 14px;
    font-size: 0.88rem;
}

/* Горизонтальная карточка (для списков и архивов) */
.card-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}
.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: #EEF2F7;
}
.card-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-row .card-body {
    padding: 22px 26px;
}

/* =========================================================
   7. Каркас контента
   ========================================================= */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
    padding: 40px 0 64px;
}
.layout-no-sidebar {
    width: 85%;
    margin-inline: auto;
    padding: 40px 0 64px;
}
.layout-front {
    width: 85%;
    margin-inline: auto;
    padding: 24px 0 64px;
}

.content-area {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow-card);
}

.entry-title { margin-top: 0; }

.entry-meta {
    font-size: 0.85rem;
    color: var(--color-label);
    margin-bottom: 1.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.entry-meta a { color: var(--color-secondary); }

.entry-thumb {
    margin: 0 0 1.5em;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content figure { margin: 1em 0; }
.entry-content img { border-radius: var(--radius-sm); }

.tag-list {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-soft);
}
.tag-list a {
    display: inline-block;
    background: rgba(26, 77, 140, 0.07);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-right: 6px;
    font-size: 0.85rem;
}
.tag-list a:hover { background: rgba(0, 166, 181, 0.15); color: var(--color-secondary); }

/* =========================================================
   8. Сайдбар
   ========================================================= */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.widget {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-card);
}
.widget-title {
    font-size: 1.05rem;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-secondary);
    color: var(--color-primary);
}
.widget ul {
    list-style: none;
    margin: 0; padding: 0;
}
.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    margin: 0;
}
.widget li:last-child { border-bottom: none; }
.widget a { color: var(--color-text); }
.widget a:hover { color: var(--color-secondary); }

/* =========================================================
   9. Главная: тематические блоки
   ========================================================= */
.front-hero {
    background: linear-gradient(135deg, #1A4D8C 0%, #0F3B6E 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.front-hero::after {
    content: "";
    position: absolute;
    right: -120px; top: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(0, 166, 181, 0.4) 0%, transparent 70%);
    pointer-events: none;
}
.front-hero h1 {
    color: #fff;
    font-size: 2.4rem;
    max-width: 720px;
    position: relative;
    z-index: 1;
}
.front-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    max-width: 620px;
    position: relative;
    z-index: 1;
}
.front-hero .btn-pill { position: relative; z-index: 1; margin-top: 12px; }

.theme-block {
    margin: 40px 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-card);
}
.theme-block h2 {
    color: var(--color-primary);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.theme-block h2 .badge-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #00A6B5, #1A4D8C);
    color: #fff;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
}

.deal-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.deal-type {
    padding: 22px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(248, 249, 252, 0.6);
    transition: all .25s ease;
}
.deal-type:hover {
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 166, 181, 0.12);
}
.deal-type-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, rgba(0, 166, 181, 0.18), rgba(26, 77, 140, 0.12));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 14px;
}
.deal-type h3 {
    font-size: 1.05rem;
    margin: 0 0 6px;
    color: var(--color-text);
}
.deal-type p {
    font-size: 0.9rem;
    color: var(--color-text-soft);
    margin: 0;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 22px;
}
.step-card {
    position: relative;
    padding: 28px 22px 24px;
    background: linear-gradient(140deg, rgba(26, 77, 140, 0.04), rgba(0, 166, 181, 0.04));
    border-radius: var(--radius-md);
    overflow: hidden;
}
.step-card .step-watermark {
    position: absolute;
    right: 14px; top: -8px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(26, 77, 140, 0.07);
    line-height: 1;
    pointer-events: none;
}
.step-card h3 {
    font-size: 1.05rem;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}
.step-card p {
    font-size: 0.92rem;
    color: var(--color-text-soft);
    margin: 0;
    position: relative;
    z-index: 1;
}

.front-posts-section .section-title {
    margin: 40px 0 22px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.front-posts-section .section-title h2 { margin: 0; }
.front-posts-section .section-title a {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Слайдер на главной */
.dds-slider {
    position: relative;
    margin: 24px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}
.dds-slider-track {
    display: flex;
    transition: transform .5s ease;
}
.dds-slide {
    flex: 0 0 100%;
    padding: 48px 56px;
    background: linear-gradient(135deg, rgba(26, 77, 140, 0.06), rgba(0, 166, 181, 0.08));
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.dds-slide h3 {
    color: var(--color-primary);
    font-size: 1.6rem;
    max-width: 600px;
}
.dds-slide p {
    color: var(--color-text-soft);
    max-width: 600px;
    font-size: 1.02rem;
}
.dds-slide-price {
    font-family: "JetBrains Mono", "Consolas", monospace;
    color: var(--color-price);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 8px;
}
.dds-slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 16px 0;
    background: #fff;
}
.dds-slider-dots button {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: background .2s ease;
}
.dds-slider-dots button.is-active { background: var(--color-primary); }

/* =========================================================
   10. Пагинация
   ========================================================= */
.dds-pagination {
    margin: 40px 0 0;
    display: flex;
    justify-content: center;
}
.dds-pagination .nav-links,
.dds-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0; padding: 0;
}
.dds-pagination a,
.dds-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: #fff;
    border: 1.5px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all .18s ease;
}
.dds-pagination a:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}
.dds-pagination .current {
    background: linear-gradient(135deg, #1A4D8C, #0F3B6E);
    color: #fff;
    border-color: transparent;
}
.dds-pagination .dots {
    background: transparent;
    border-color: transparent;
}

/* =========================================================
   11. Поиск, форма поиска
   ========================================================= */
.search-form {
    display: flex;
    gap: 8px;
    width: 100%;
}
.search-form .search-field {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--color-text);
    transition: border-color .18s ease;
}
.search-form .search-field:focus {
    outline: none;
    border-color: var(--color-secondary);
}
.search-form .search-submit {
    padding: 11px 22px;
    background: linear-gradient(135deg, #1A4D8C, #0F3B6E);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s ease;
}
.search-form .search-submit:hover {
    box-shadow: 0 0 0 3px rgba(0, 166, 181, 0.3);
}

/* =========================================================
   12. Комментарии
   ========================================================= */
.comments-area {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}
.comments-title {
    font-size: 1.3rem;
    color: var(--color-primary);
}
.comment-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}
.comment-list .comment, .comment-list .pingback {
    margin-bottom: 18px;
    padding: 16px 18px;
    background: rgba(248, 249, 252, 0.7);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.comment-list .children {
    list-style: none;
    margin: 14px 0 0 24px;
    padding: 0;
    border-left: 2px solid var(--color-secondary);
    padding-left: 18px;
}
.comment-author {
    font-weight: 700;
    color: var(--color-primary);
}
.comment-meta {
    font-size: 0.8rem;
    color: var(--color-label);
    margin-bottom: 8px;
}
.comment-meta a { color: var(--color-label); }
.comment-content p { margin: 0 0 0.5em; }
.reply a {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.comment-form {
    display: grid;
    gap: 12px;
}
.comment-form p { margin: 0; }
.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--color-text-soft);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    color: var(--color-text);
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}
.comment-form .submit {
    padding: 11px 24px;
    background: linear-gradient(135deg, #1A4D8C, #0F3B6E);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    width: max-content;
    transition: all .2s ease;
}
.comment-form .submit:hover { box-shadow: 0 0 0 3px rgba(0, 166, 181, 0.3); }
.no-comments { color: var(--color-text-soft); font-style: italic; }

/* =========================================================
   13. 404
   ========================================================= */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}
.error-404 .big-code {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    margin: 0 0 0.2em;
    background: linear-gradient(135deg, #1A4D8C, #00A6B5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.error-404 h1 {
    font-size: 1.6rem;
    margin-bottom: 0.6em;
}
.error-404 p {
    color: var(--color-text-soft);
    max-width: 520px;
    margin: 0 auto 1.4em;
}
.error-404 .search-form {
    max-width: 460px;
    margin: 0 auto 1.6em;
}

/* =========================================================
   14. Подвал
   ========================================================= */
.site-foot {
    background: #0F1F33;
    color: #B5C2D6;
    padding: 56px 0 28px;
    margin-top: 40px;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}
.foot-col .widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
    color: #B5C2D6;
}
.foot-col .widget-title {
    color: #fff;
    border-bottom-color: var(--color-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.foot-col .widget a { color: #B5C2D6; }
.foot-col .widget a:hover { color: var(--color-secondary); }
.foot-col .widget li { border-bottom-color: rgba(255, 255, 255, 0.08); }

.foot-bottom {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    font-size: 0.88rem;
    color: #8794AC;
}

.agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(0, 166, 181, 0.12);
    border-radius: var(--radius-pill);
    color: #fff;
}
.agent-badge .agent-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A6B5, #1A4D8C);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
}
.agent-badge .verified {
    color: var(--color-success);
    font-size: 0.8rem;
}

/* =========================================================
   15. Cookie-баннер
   А11: правило для [hidden] — ДО основного блока стилей
   ========================================================= */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    background: #0F1F33;
    color: #E2E8F0;
    border: 1px solid rgba(0, 166, 181, 0.35);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    max-width: 980px;
    margin: 0 auto;
    font-size: 0.95rem;
}
.cookie-banner p { margin: 0; max-width: 700px; }
.cookie-banner a { color: var(--color-secondary); text-decoration: underline; }
.cookie-banner .btn-pill {
    padding: 10px 24px;
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================================
   16. Адаптив
   ========================================================= */
@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .layout-no-sidebar,
    .layout-front {
        width: 100%;
    }
    .foot-cols {
        grid-template-columns: 1fr 1fr;
    }
    .front-hero { padding: 40px 28px; }
    .front-hero h1 { font-size: 1.85rem; }
    .content-area { padding: 24px 22px; }
    .theme-block { padding: 26px 22px; }
}

@media (max-width: 600px) {
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.35rem; }

    .head-inner {
        flex-wrap: wrap;
        gap: 16px;
        padding: 14px 0;
    }
    .menu-toggle { display: inline-block; margin-left: auto; }
    .primary-nav {
        flex: 0 0 100%;
        margin-left: 0;
    }
    .primary-nav[data-collapsed="true"] ul {
        display: none;
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 4px;
    }
    .primary-nav a {
        padding: 10px 12px;
    }

    .brand-name { font-size: 0.95rem; max-width: 240px; }
    .brand-tagline { display: none; }

    .foot-cols { grid-template-columns: 1fr; gap: 28px; }
    .foot-bottom { flex-direction: column; align-items: flex-start; }

    .card-row { flex-direction: column; }
    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-row .card-thumb-wrap a {
        position: static;
    }
    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .dds-slide { padding: 32px 24px; }
    .dds-slide h3 { font-size: 1.25rem; }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        left: 10px; right: 10px; bottom: 10px;
        padding: 16px 18px;
    }
    .cookie-banner .btn-pill { width: 100%; justify-content: center; }

    .front-hero { padding: 32px 22px; }
    .front-hero h1 { font-size: 1.6rem; }
}
