/*
Theme Name: dds_renfotolab.ru
Author: Евгений Рябов
Description: Тема информационного сайта о фотолабораторном оборудовании. Холодная индустриально-лабораторная палитра, строгая типографика, техническая сетка.
Version: 1.1
Text Domain: fotolab
*/

:root {
    --bg: #F2F6FA;
    --bg-alt: #E6EFF7;
    --head: #11304D;
    --foot: #0A1C2E;
    --side: #FFFFFF;
    --text: #1E2A36;
    --acc: #0077BE;
    --acc2: #45B5E5;
    --mute: #7A8B9E;
    --line: #D0DDEB;
    --deep: #082C52;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(30, 42, 54, 0.045) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(30, 42, 54, 0.045) 0 1px, transparent 1px 34px);
    color: var(--text);
    font-family: "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", "Manrope", "Segoe UI", Arial, sans-serif;
    color: var(--head);
    line-height: 1.22;
    letter-spacing: -0.01em;
    margin: 0 0 0.7em;
    font-weight: 700;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1.1em; }

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

a { color: var(--acc); text-decoration: none; }

.entry-body a,
.widget-text a,
.crumbs a {
    border-bottom: 1px dashed var(--acc);
    transition: border-color .18s ease, color .18s ease;
}
.entry-body a:hover,
.widget-text a:hover,
.crumbs a:hover {
    border-bottom: 1px solid var(--acc2);
    color: var(--acc2);
}

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.narrow {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.skip-link { position: absolute; left: -9999px; }

/* --------------------------------------------------
   Кнопки
-------------------------------------------------- */

.btn {
    display: inline-block;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    padding: 0.78rem 1.7rem;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 1px solid var(--acc);
    background: var(--acc);
    color: #fff;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--deep); border-color: var(--deep); color: #fff; }

.btn-ghost {
    background: transparent;
    color: var(--acc);
    z-index: 0;
}
.btn-ghost::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0;
    background: var(--acc);
    transition: width .28s ease;
    z-index: -1;
}
.btn-ghost:hover { color: #fff; border-color: var(--acc); background: transparent; }
.btn-ghost:hover::before { width: 100%; }

.btn-light {
    background: var(--acc2);
    border-color: var(--acc2);
    color: #06263F;
}
.btn-light:hover { background: #fff; border-color: #fff; color: var(--head); }

/* --------------------------------------------------
   Шапка
-------------------------------------------------- */

.site-head {
    background: var(--head);
    color: #E8F1F8;
    padding: 1.4rem 0 1.5rem;
}

.head-top {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 auto;
}
.brand a { color: inherit; }
.brand-logo { display: block; max-height: 62px; width: auto; }
.brand-mark { flex: 0 0 auto; display: block; }

.brand-text { min-width: 0; }
.site-title {
    font-size: 1.06rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.35;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}
.site-desc {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    color: #9FBBD2;
    line-height: 1.5;
}

.nav-toggle {
    display: none;
    border: 1px solid #33587A;
    background: transparent;
    color: #E8F1F8;
    border-radius: 2px;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.main-nav { margin-top: 1.2rem; }
.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.9rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    display: inline-block;
    color: #CFE2F0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: #fff;
    border-bottom-color: var(--acc2);
}

/* Приём №1: «лабораторная линейка» */
.lab-ruler {
    height: 4px;
    background: linear-gradient(90deg, var(--acc2) 0%, var(--acc) 55%, var(--deep) 100%);
    position: relative;
}
.lab-ruler::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.55) 0 1px, transparent 1px 22px);
}

/* --------------------------------------------------
   Раскладки
-------------------------------------------------- */

.site-main { padding: 2.4rem 0 3.2rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.content-area { min-width: 0; }

.sidebar {
    min-width: 0;
    background: var(--side);
    border: 1px solid var(--line);
    box-shadow: 5px 5px 0 rgba(17, 48, 77, 0.07);
    padding: 1.5rem 1.4rem;
}

/* --------------------------------------------------
   Хлебные крошки
-------------------------------------------------- */

.crumbs {
    font-size: 0.85rem;
    color: var(--mute);
    margin: 0 0 1.4rem;
    line-height: 1.7;
}
.crumbs a { color: var(--mute); border-bottom: 1px dashed var(--line); }
.crumbs a:hover { color: var(--acc); border-bottom-color: var(--acc2); }
.crumbs .sep { color: var(--line); margin: 0 0.25rem; }

/* --------------------------------------------------
   Заголовки секций
-------------------------------------------------- */

.sec-head { margin-bottom: 1.7rem; }
.sec-head h2,
.sec-head h1 {
    display: inline-block;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--acc);
    font-size: 1.75rem;
}
.sec-head h2::before,
.sec-head h1::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 0.75rem;
    background: var(--acc);
    vertical-align: middle;
}
.sec-head p {
    margin: 0.9rem 0 0;
    color: var(--mute);
    max-width: 62ch;
}

.sec-head.on-dark h2 { color: #fff; border-bottom-color: var(--acc2); }
.sec-head.on-dark h2::before { background: var(--acc2); }
.sec-head.on-dark p { color: #A8C4DA; }

/* Приём №2: «оглавление в цифрах» */
.fsection { position: relative; overflow: hidden; }
.sec-index {
    position: absolute;
    top: 0.6rem;
    right: 2%;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(17, 48, 77, 0.055);
    pointer-events: none;
    user-select: none;
}
.sec-index.light { color: rgba(255, 255, 255, 0.06); }

/* --------------------------------------------------
   Главная: секции
-------------------------------------------------- */

.fsection { padding: 3.4rem 0; }
.band-alt { background: var(--bg-alt); }
.band-dark {
    background:
        radial-gradient(circle at 50% 30%, rgba(69, 181, 229, 0.28) 0%, rgba(17, 48, 77, 0) 62%),
        var(--head);
    color: #DDEBF6;
}

.perf {
    height: 14px;
    background-image: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 17px);
    background-size: 17px 4px;
    background-repeat: repeat-x;
    background-position: center;
}

/* Hero */
.hero {
    position: relative;
    background:
        radial-gradient(circle at 82% 78%, rgba(69, 181, 229, 0.22) 0%, rgba(17, 48, 77, 0) 58%),
        var(--head);
    color: #E4F0F9;
    padding: 3.6rem 0 3.9rem;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero h1 {
    color: #fff;
    font-size: 3.5rem;
    line-height: 1.08;
    margin: 0 0 1.1rem;
}
.hero-kicker {
    display: inline-block;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--acc2);
    border-left: 4px solid var(--acc2);
    padding-left: 0.7rem;
    margin-bottom: 1.2rem;
}
.hero-lead {
    color: #B9D3E6;
    font-size: 1.06rem;
    max-width: 54ch;
    margin-bottom: 1.7rem;
}
.hero-art { display: block; width: 100%; height: auto; }
.hero-lens {
    position: absolute;
    right: -40px;
    bottom: -70px;
    width: 340px;
    opacity: 0.16;
    z-index: 1;
    pointer-events: none;
}

/* Таймлайн */
.tl { list-style: none; margin: 0; padding: 0 0 0 0.4rem; position: relative; }
.tl::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 8px;
    bottom: 8px;
    width: 0;
    border-left: 2px dashed var(--acc2);
}
.tl-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1.5rem;
    padding-bottom: 1.9rem;
    position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--acc);
    background: var(--bg);
    color: var(--acc);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
}
.band-alt .tl-num { background: var(--bg-alt); }
.tl-body { min-width: 0; padding-top: 0.35rem; }
.tl-body h3 { margin: 0 0 0.4rem; font-size: 1.14rem; }
.tl-body p { margin: 0; color: #46586A; }

/* Рубрикатор */
.rub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.rub-card {
    position: relative;
    display: block;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 1.7rem 1.6rem 3.3rem;
    box-shadow: 6px 6px 0 rgba(17, 48, 77, 0.08);
    color: var(--text);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rub-card:hover {
    transform: translateY(-4px);
    box-shadow: 9px 9px 0 rgba(17, 48, 77, 0.13);
    border-color: var(--acc2);
}
.rub-card h3 { margin: 1rem 0 0.5rem; font-size: 1.2rem; }
.rub-card p { margin: 0; color: #4C5F71; font-size: 0.95rem; }
.rub-icon { display: block; }
.rub-arrow {
    position: absolute;
    right: 1.4rem;
    bottom: 1.3rem;
    color: var(--acc);
    transition: transform .22s ease;
}
.rub-card:hover .rub-arrow { transform: translateX(8px); }

/* Чек-лист */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 1.3rem;
    align-items: start;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--line);
}
.check-item:last-child { border-bottom: 0; }
.switch {
    width: 50px;
    height: 26px;
    border-radius: 2px;
    background: var(--acc);
    position: relative;
    margin-top: 0.3rem;
    box-shadow: inset 0 0 0 1px var(--deep);
}
.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 1px;
}
.check-body { min-width: 0; }
.check-body strong {
    display: block;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--head);
    margin-bottom: 0.2rem;
}
.check-body span { color: #4C5F71; font-size: 0.97rem; }

/* --------------------------------------------------
   Карточки записей
-------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.6rem;
}
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 6px 6px 0 rgba(17, 48, 77, 0.08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 9px 9px 0 rgba(17, 48, 77, 0.14);
    border-color: var(--acc2);
}
.card-thumb { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background:
        repeating-linear-gradient(135deg, rgba(69, 181, 229, 0.16) 0 8px, transparent 8px 18px),
        var(--bg-alt);
    border-bottom: 1px solid var(--line);
}
.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.3rem 1.4rem;
}
.card-title { font-size: 1.13rem; margin: 0 0 0.5rem; }
.card-title a { color: var(--head); }
.card-title a:hover { color: var(--acc); }
.card-excerpt { color: #4C5F71; font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot { margin-top: auto; padding-top: 1rem; }

.post-meta {
    font-size: 0.8rem;
    color: var(--mute);
    margin-bottom: 0.55rem;
    letter-spacing: 0.02em;
}
.post-meta a { color: var(--mute); }
.post-meta a:hover { color: var(--acc); }
.meta-sep { color: var(--line); }

.card-more {
    display: inline-block;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--acc);
    border-bottom: 1px dashed var(--acc);
    padding-bottom: 2px;
}
.card-more:hover { color: var(--acc2); border-bottom: 1px solid var(--acc2); }

/* --------------------------------------------------
   Записи и страницы
-------------------------------------------------- */

.entry-head { margin-bottom: 1.5rem; }
.entry-head h1 { font-size: 2.35rem; margin-bottom: 0.6rem; }

.entry-thumb { margin: 0 0 1.7rem; }
.entry-thumb img { display: block; width: 100%; object-fit: cover; }

.entry-body { font-size: 1.02rem; }
.entry-body h2 {
    margin-top: 2rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--line);
    display: inline-block;
}
.entry-body h2::before {
    content: "";
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 0.6rem;
    background: var(--acc);
    vertical-align: middle;
}
.entry-body h3 { margin-top: 1.6rem; }
.entry-body ul,
.entry-body ol { padding-left: 1.3rem; }
.entry-body li { margin-bottom: 0.45rem; }
.entry-body blockquote {
    margin: 1.6rem 0;
    padding: 1.3rem 1.5rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--acc);
    color: #35485B;
}
.entry-body blockquote p:last-child { margin-bottom: 0; }
.entry-body img { display: block; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid var(--line);
    background: #fff;
}
th, td {
    border: 1px solid var(--line);
    padding: 0.65rem 0.8rem;
    text-align: left;
}
th { background: var(--bg-alt); color: var(--head); font-family: "Inter", "Segoe UI", Arial, sans-serif; }

.entry-tags { margin-top: 1.8rem; font-size: 0.87rem; color: var(--mute); }
.entry-tags a { color: var(--acc); }

/* Акцентная плашка (цитата) */
.quote-plate {
    background:
        radial-gradient(circle at 50% 20%, rgba(69, 181, 229, 0.3) 0%, rgba(17, 48, 77, 0) 60%),
        var(--head);
    color: #E1EEF8;
    padding: 2.6rem 2.4rem;
    border-radius: 0;
}
.quote-plate p {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 1.45rem;
    line-height: 1.45;
    color: #fff;
}
.quote-plate cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.87rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--acc2);
}

/* --------------------------------------------------
   Пагинация
-------------------------------------------------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.4rem;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    color: var(--head);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pager a.page-numbers:hover { background: var(--acc); border-color: var(--acc); color: #fff; }
.pager .page-numbers.current { background: var(--head); border-color: var(--head); color: #fff; }
.pager .page-numbers.dots { border-color: transparent; background: transparent; color: var(--mute); }

/* --------------------------------------------------
   Виджеты
-------------------------------------------------- */

.widget { margin-bottom: 1.9rem; }
.widget:last-child { margin-bottom: 0; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.55rem 0; border-bottom: 1px dashed var(--line); }
.widget li:last-child { border-bottom: 0; }

.widget-title {
    font-size: 1.02rem;
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--acc);
    display: inline-block;
}
.widget-title::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 0.55rem;
    background: var(--acc);
    vertical-align: middle;
}

/* Сайдбар — светлый фон */
.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: var(--text); }
.sidebar .widget-title { color: var(--head); }
.sidebar .widget a { color: var(--head); }
.sidebar .widget a:hover { color: var(--acc); }
.sidebar .widget .post-date { display: block; color: var(--mute); font-size: 0.78rem; }

/* --------------------------------------------------
   Подвал
-------------------------------------------------- */

.site-foot {
    background: var(--foot);
    color: #B7CADA;
    border-top: 4px solid var(--acc);
    margin-top: 0;
    padding: 2.9rem 0 1.6rem;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
}
.foot-col { min-width: 0; }
.site-foot .widget-title {
    color: #fff;
    border-bottom-color: var(--acc2);
}
.site-foot .widget-title::before { background: var(--acc2); }
.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li,
.site-foot .widget .textwidget { color: #B7CADA; }
.site-foot .widget a { color: #DCE9F4; }
.site-foot .widget a:hover { color: var(--acc2); }
.site-foot .widget li { border-bottom-color: rgba(255, 255, 255, 0.1); }
.site-foot .widget .post-date { display: block; color: #7F9AB2; font-size: 0.78rem; }

.foot-bottom {
    margin-top: 2.3rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.84rem;
    color: #7F9AB2;
}

/* --------------------------------------------------
   Формы поиска и комментарии
-------------------------------------------------- */

.search-form {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    display: block;
}
.search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 0.62rem 0.8rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
.search-form input[type="search"]:focus { outline: 2px solid var(--acc2); outline-offset: 0; }
.search-form button {
    border: 1px solid var(--acc);
    background: var(--acc);
    color: #fff;
    border-radius: 2px;
    padding: 0.62rem 1.1rem;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease;
}
.search-form button:hover { background: var(--deep); border-color: var(--deep); }

.comments-area {
    margin-top: 2.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
}
.comments-title { font-size: 1.4rem; }
.comment-list { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 0 1.6rem; padding: 0; }
.comment-inner {
    background: #fff;
    border: 1px solid var(--line);
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 4px 4px 0 rgba(17, 48, 77, 0.06);
}
.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}
.comment-author { font-family: "Inter", "Segoe UI", Arial, sans-serif; font-weight: 700; color: var(--head); }
.comment-date { font-size: 0.8rem; color: var(--mute); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-reply a {
    font-size: 0.85rem;
    color: var(--acc);
    border-bottom: 1px dashed var(--acc);
}
.comment-reply a:hover { border-bottom: 1px solid var(--acc2); color: var(--acc2); }
.comment-hold { font-size: 0.85rem; color: var(--mute); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 0.62rem 0.8rem;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
}
.comment-form textarea { min-height: 140px; }
.comment-form .submit {
    border: 1px solid var(--acc);
    background: var(--acc);
    color: #fff;
    border-radius: 2px;
    padding: 0.72rem 1.6rem;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease;
}
.comment-form .submit:hover { background: var(--deep); border-color: var(--deep); }

/* --------------------------------------------------
   404
-------------------------------------------------- */

.error-block {
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 6px 6px 0 rgba(17, 48, 77, 0.08);
    padding: 2.4rem 2.2rem;
}
.error-code {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 4.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--acc);
    margin-bottom: 0.6rem;
}
.error-block .search-form { margin: 1.4rem 0; max-width: 460px; }

/* --------------------------------------------------
   Cookie-баннер
-------------------------------------------------- */

.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
    background: var(--foot);
    color: #C6D8E6;
    border-top: 3px solid var(--acc);
    padding: 1.05rem 1.6rem;
    font-size: 0.9rem;
}
.cookie-banner p { margin: 0; min-width: 0; }
.cookie-banner a { color: var(--acc2); border-bottom: 1px dashed var(--acc2); }

/* --------------------------------------------------
   Адаптив
-------------------------------------------------- */

@media (max-width: 960px) {
    .hero h1 { font-size: 2.6rem; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .layout-single { width: 100%; }
    .narrow { width: 100%; }
    .rub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sec-index { font-size: 5rem; }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    .hero { padding: 2.6rem 0 2.8rem; }
    .hero h1 { font-size: 2rem; }
    .hero-lens { width: 210px; right: -50px; bottom: -50px; }
    .fsection { padding: 2.4rem 0; }
    .sec-head h2, .sec-head h1 { font-size: 1.4rem; }
    .entry-head h1 { font-size: 1.65rem; }
    .rub-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }
    .card-grid, .card-list { grid-template-columns: minmax(0, 1fr); }
    .tl-item { grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; }
    .tl-num { width: 44px; height: 44px; font-size: 0.9rem; }
    .tl::before { left: 21px; }
    .check-item { grid-template-columns: 44px minmax(0, 1fr); gap: 0.9rem; }
    .switch { width: 40px; height: 22px; }
    .switch::after { width: 16px; height: 16px; }
    .quote-plate { padding: 1.7rem 1.3rem; }
    .quote-plate p { font-size: 1.15rem; }
    .error-block { padding: 1.7rem 1.3rem; }
    .cookie-banner { padding: 0.95rem 1.1rem; }
    .sidebar { padding: 1.2rem 1.1rem; }
    .nav-toggle { display: inline-block; }
    .main-nav { display: none; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.7rem; }
    .sec-index { font-size: 3.6rem; right: 0; }
}
