/*
Theme Name: dds_vinathuthuat.com
Author: Алексей Громов
Description: Практический журнал о быте, ремонте и технике. Дизайн «Медный контур»: швейцарская сетка, медные и янтарные акценты.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mdkontur
*/

:root {
    --bg: #F4F5F7;
    --bg-alt: #E9EBEF;
    --head-bg: #FFFFFF;
    --foot-bg: #23272E;
    --side-bg: #FFFFFF;
    --ink: #1F2328;
    --copper: #B87333;
    --copper-dark: #94591F;
    --amber: #E0A526;
    --mute: #6B7280;
    --line: #C9CED6;
    --pattern: #E3E5E9;
    --title-font: "Arial Narrow", "Roboto Condensed", "Helvetica Neue Condensed", Impact, system-ui, sans-serif;
    --text-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* -------------------------------------------------- Скрытие по [hidden] */

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

/* -------------------------------------------------- База */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, var(--pattern) 0, var(--pattern) 1px, transparent 1px, transparent 9px);
    color: var(--ink);
    font-family: var(--text-font);
    font-size: 17px;
    line-height: 1.65;
}

body::after {
    content: "";
    position: fixed;
    right: 1.5rem;
    bottom: 1.2rem;
    width: 230px;
    height: 230px;
    pointer-events: none;
    opacity: .12;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23B87333' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M26 176 L104 98'/%3E%3Cpath d='M104 98 a30 30 0 1 0 -6 -26'/%3E%3Cpath d='M98 72 l22 22 20-20-22-22'/%3E%3Cpath d='M60 26 L150 116'/%3E%3Cpath d='M44 10 L74 40 L60 54 L30 24 Z'/%3E%3Cpath d='M150 116 l16 16'/%3E%3C/svg%3E");
}

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

a { color: var(--copper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }

h1, h2, h3, h4, h5 {
    font-family: var(--title-font);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.16;
    color: var(--ink);
    margin: 0 0 .7em;
}

h1 { font-size: 3.25rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3rem; }
li { margin-bottom: .35em; }

blockquote {
    margin: 1.6rem 0;
    padding: 1.1rem 1.4rem;
    border-left: 3px solid var(--amber);
    background: #FFFFFF;
    color: var(--ink);
}
blockquote p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; }
table, th, td { border: 1px solid var(--line); }
th, td { padding: .6rem .8rem; text-align: left; }
th { background: var(--bg-alt); font-family: var(--title-font); }

code, pre { font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: .92em; }
pre { overflow-x: auto; padding: 1rem; background: var(--bg-alt); border: 1px solid var(--line); }

/* -------------------------------------------------- Контейнер */

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.topline { height: 4px; background: var(--copper); }

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

.site-head {
    background: var(--head-bg);
    border-bottom: 1px solid var(--line);
    padding: 1.3rem 0;
    position: relative;
    z-index: 2;
}

.head-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    flex: 1 1 320px;
    text-decoration: none;
    color: var(--ink);
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-logo, .brand svg { width: 52px; height: 52px; display: block; flex: none; }
.brand-text { min-width: 0; }
.brand-name {
    font-family: var(--title-font);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    display: block;
    max-height: 3.1em;
    overflow: hidden;
}
.brand-tagline {
    display: block;
    color: var(--mute);
    font-size: .78rem;
    line-height: 1.4;
    max-height: 2.9em;
    overflow: hidden;
    margin-top: .2rem;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--title-font);
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .55rem .9rem;
    border-radius: 2px;
    cursor: pointer;
}

.main-nav { flex: 1 1 auto; min-width: 0; }
.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
    font-family: var(--title-font);
    font-size: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--copper); border-bottom-color: var(--copper); }
.nav-list .current-menu-item > a { border-bottom-color: var(--amber); }

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

.crumbs {
    font-size: .85rem;
    color: var(--mute);
    padding: 1.1rem 0 .2rem;
}
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--copper); text-decoration: underline; }
.crumbs .sep { color: var(--copper); margin: 0 .35rem; }

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

.site-main { padding: 1.2rem 0 3.5rem; position: relative; z-index: 1; }

.layout-single { display: block; }
.layout-single > .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 2.4rem;
    align-items: start;
}
.layout-with-sidebar > .content-area { min-width: 0; }

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

.sec-title {
    position: relative;
    padding-left: 3.4rem;
    margin-bottom: 1.6rem;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 2.4rem;
    height: 3px;
    background: var(--copper);
}
.sec-title .mark {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--amber);
    margin-right: .6rem;
    vertical-align: .08em;
}

.entry-content h2,
.widget-title,
.card-title {
    position: relative;
}

.entry-content h2 { padding-left: 1.2rem; }
.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 8px;
    height: 8px;
    background: var(--copper);
}

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

.btn {
    display: inline-block;
    font-family: var(--title-font);
    font-size: 1rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .72rem 1.5rem;
    border-radius: 2px;
    border: 1px solid var(--copper);
    text-decoration: none;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-fill { background: var(--copper); color: #FFFFFF; }
.btn-fill:hover {
    background: var(--copper-dark);
    color: #FFFFFF;
    box-shadow: 0 0 0 2px var(--amber);
    transform: translateX(2px);
    text-decoration: none;
}
.btn-ghost { background: transparent; color: var(--copper); }
.btn-ghost:hover {
    background: var(--copper-dark);
    color: #FFFFFF;
    box-shadow: 0 0 0 2px var(--amber);
    transform: translateX(2px);
    text-decoration: none;
}

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

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.6rem;
    margin-bottom: 2.2rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(31, 35, 40, .05);
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
    min-width: 0;
}
.card:hover {
    transform: translateY(-2px);
    border-color: var(--copper);
    box-shadow: 0 6px 16px rgba(31, 35, 40, .11);
}

.card-thumb { display: block; border-bottom: 2px solid var(--copper); }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.25rem 1.35rem;
    min-width: 0;
}
.card-title { font-size: 1.22rem; margin-bottom: .5rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--copper); }

.card-meta {
    font-size: .8rem;
    color: var(--mute);
    margin-bottom: .6rem;
    letter-spacing: .03em;
}

.card-excerpt { color: #3A4048; font-size: .95rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }

.card-more {
    margin-top: auto;
    padding-top: .9rem;
    font-family: var(--title-font);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .9rem;
}
.card-more a { text-decoration: none; border-bottom: 1px solid var(--copper); }
.card-more a:hover { border-bottom-color: var(--ink); }

/* -------------------------------------------------- Главная */

.front-section { padding: 3.6rem 0; position: relative; }
.front-section--alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, #DCDFE5 0, #DCDFE5 1px, transparent 1px, transparent 8px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.dot-rule {
    height: 6px;
    background-image: radial-gradient(var(--copper) 1.4px, transparent 1.6px);
    background-size: 12px 6px;
    background-repeat: repeat-x;
    opacity: .75;
}

.soft-rule {
    width: 80%;
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 0 auto;
}

/* Hero */

.site-main--front { padding: 0 0 0; }

.front-inner {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.hero {
    position: relative;
    color: #FFFFFF;
    padding: 5.2rem 0 4.6rem;
    background-color: #23272E;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(25, 28, 33, .93) 0%, rgba(25, 28, 33, .76) 62%, rgba(25, 28, 33, .58) 100%);
}
.hero .shell { position: relative; z-index: 2; }
.hero-inner { width: min(100%, 680px); }
.hero-label {
    display: inline-block;
    font-family: var(--title-font);
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--amber);
    border: 1px solid rgba(224, 165, 38, .55);
    padding: .3rem .7rem;
    border-radius: 2px;
    margin-bottom: 1.3rem;
}
.hero h1 { color: #FFFFFF; margin-bottom: 1rem; }
.hero-line { width: 92px; height: 4px; background: var(--copper); margin-bottom: 1.2rem; }
.hero-sub { color: #D8DBE0; font-size: 1.08rem; margin: 0; }

/* Шаги */

.steps { counter-reset: none; }
.step {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 1.6rem;
    padding: 1.8rem 0;
    border-bottom: 1px dashed var(--line);
    align-items: start;
}
.step:last-child { border-bottom: 0; }
.step-num {
    font-family: var(--title-font);
    font-size: 3.4rem;
    line-height: 1;
    color: var(--copper);
}
.step-body { min-width: 0; }
.step-body h3 { margin-bottom: .55rem; }
.step-cols { column-count: 2; column-gap: 2rem; }
.step-cols p { margin: 0 0 .8em; }

/* Статистика */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2rem 1.6rem;
}
.stat {
    padding: .4rem 1.2rem;
    border-right: 1px solid var(--line);
    min-width: 0;
    text-align: center;
}
.stat:last-child { border-right: 0; }
.stat-num {
    display: block;
    font-family: var(--title-font);
    font-size: 2.9rem;
    line-height: 1.05;
    color: var(--ink);
}
.stat-cap { display: block; color: var(--mute); font-size: .92rem; margin-top: .35rem; }

/* Рубрикатор */

.topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.2rem;
}
.topic {
    display: flex;
    align-items: center;
    gap: .95rem;
    padding: 1.15rem 1.3rem;
    background: #FFFFFF;
    border: 1px solid var(--copper);
    border-radius: 4px;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.topic:hover {
    transform: translateX(2px);
    background: #FFFDF8;
    box-shadow: 0 5px 14px rgba(31, 35, 40, .1);
    color: var(--ink);
    text-decoration: none;
}
.topic svg { width: 34px; height: 34px; flex: none; stroke: var(--amber); fill: none; stroke-width: 1.6; }
.topic-text { min-width: 0; }
.topic-name {
    display: block;
    font-family: var(--title-font);
    font-size: 1.14rem;
    line-height: 1.2;
}
.topic-note { display: block; font-size: .84rem; color: var(--mute); }

/* Лента последних записей на главной */

.front-latest .front-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}
.front-latest .front-head .all-link {
    font-family: var(--title-font);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .92rem;
    text-decoration: none;
    border-bottom: 1px solid var(--copper);
}

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

.entry-head { margin-bottom: 1.4rem; }
.entry-title { margin-bottom: .5rem; }
.entry-meta { color: var(--mute); font-size: .88rem; }
.entry-thumb { margin: 0 0 1.6rem; }
.entry-thumb img { display: block; width: 100%; border-radius: 4px; border-bottom: 2px solid var(--copper); }

.entry-content { font-size: 1.03rem; }
.entry-content img { border-radius: 4px; }
.entry-content h2 { margin-top: 1.9rem; }
.entry-content h3 { margin-top: 1.5rem; }

.entry-tags {
    margin-top: 1.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: .9rem;
    color: var(--mute);
}

.page-head { margin-bottom: 1.5rem; }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2rem 0 .5rem;
}
.pager .page-numbers {
    display: inline-block;
    padding: .5rem .85rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--title-font);
    letter-spacing: .05em;
}
.pager a.page-numbers:hover { border-color: var(--copper); color: var(--copper); }
.pager .page-numbers.current { background: var(--copper); border-color: var(--copper); color: #FFFFFF; }
.pager .page-numbers.dots { border-color: transparent; background: transparent; }

/* -------------------------------------------------- Сайдбар и виджеты */

.sidebar {
    background: var(--side-bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.4rem 1.4rem .6rem;
    min-width: 0;
}
.sidebar .widget { margin-bottom: 1.6rem; color: var(--ink); }
.sidebar .widget-title {
    font-size: 1.15rem;
    padding-left: 1.1rem;
    position: relative;
    color: var(--ink);
    margin-bottom: .8rem;
}
.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 8px;
    height: 8px;
    background: var(--copper);
}
.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget li {
    padding: .5rem 0;
    border-bottom: 1px dotted var(--line);
    font-size: .95rem;
    color: var(--ink);
}
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(184, 115, 51, .5); }
.sidebar .widget a:hover { color: var(--copper); border-bottom-color: var(--copper); }
.sidebar .widget .post-date { display: block; color: var(--mute); font-size: .8rem; }

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

.site-foot {
    background: var(--foot-bg);
    border-top: 3px solid var(--copper);
    color: #D5D8DD;
    padding: 3rem 0 1.6rem;
    position: relative;
    z-index: 1;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2rem;
    margin-bottom: 2.2rem;
}
.foot-col { min-width: 0; }
.site-foot .widget { color: #D5D8DD; font-size: .95rem; }
.site-foot .widget-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    padding-left: 1.1rem;
    position: relative;
    margin-bottom: .8rem;
}
.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 8px;
    height: 8px;
    background: var(--amber);
}
.site-foot .widget ul { list-style: none; padding: 0; margin: 0; }
.site-foot .widget li { padding: .35rem 0; }
.site-foot .widget a { color: #E7E9EC; text-decoration: none; border-bottom: 1px solid rgba(184, 115, 51, .6); }
.site-foot .widget a:hover { color: var(--amber); border-bottom-color: var(--amber); }
.site-foot .widget .post-date { display: block; color: #9AA1AA; font-size: .8rem; }

.foot-bottom {
    border-top: 1px solid #333A44;
    padding-top: 1.2rem;
    color: #9AA1AA;
    font-size: .82rem;
    line-height: 1.5;
}

/* -------------------------------------------------- Формы */

.search-form { display: flex; gap: .5rem; max-width: 420px; }
.search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: .62rem .8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--text-font);
    font-size: .95rem;
}
.search-form input[type="search"]:focus { outline: 2px solid var(--copper); outline-offset: 1px; }
.search-form button {
    border: 1px solid var(--copper);
    background: var(--copper);
    color: #FFFFFF;
    font-family: var(--title-font);
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .62rem 1.1rem;
    border-radius: 2px;
    cursor: pointer;
}
.search-form button:hover { background: var(--copper-dark); box-shadow: 0 0 0 2px var(--amber); }

/* -------------------------------------------------- Комментарии */

.comments-area {
    margin-top: 2.6rem;
    padding: 1.6rem 1.7rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 4px;
}
.comments-title { font-size: 1.5rem; }
.comment-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.comment-list ul.children { list-style: none; padding-left: 1.4rem; }
.comment-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.comment-head { display: flex; gap: 1rem; align-items: baseline; margin-bottom: .4rem; }
.comment-author { font-family: var(--title-font); font-size: 1.05rem; }
.comment-date { color: var(--mute); font-size: .82rem; }
.comment-hold { color: var(--amber); font-size: .9rem; }
.comment-reply { font-size: .88rem; }
.comment-form label { display: block; font-size: .9rem; margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .62rem .8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-family: var(--text-font);
    font-size: .95rem;
    background: #FFFFFF;
    color: var(--ink);
}
.comment-form .submit {
    border: 1px solid var(--copper);
    background: var(--copper);
    color: #FFFFFF;
    font-family: var(--title-font);
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .7rem 1.4rem;
    border-radius: 2px;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--copper-dark); box-shadow: 0 0 0 2px var(--amber); }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.archive-desc { color: var(--mute); font-size: .95rem; }

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

.notfound { padding: 1rem 0 2rem; }
.notfound-actions { margin-top: 1.6rem; }
.notfound-code {
    font-family: var(--title-font);
    font-size: 5.5rem;
    line-height: 1;
    color: var(--copper);
    margin-bottom: .4rem;
}

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

.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: 1rem;
    padding: 1rem 1.6rem;
    background: #23272E;
    border-top: 3px solid var(--copper);
    color: #E7E9EC;
    font-size: .9rem;
}
.cookie-banner p { margin: 0; max-width: 820px; }
.cookie-banner button {
    border: 1px solid var(--copper);
    background: var(--copper);
    color: #FFFFFF;
    font-family: var(--title-font);
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .6rem 1.3rem;
    border-radius: 2px;
    cursor: pointer;
    flex: none;
}
.cookie-banner button:hover { background: var(--copper-dark); box-shadow: 0 0 0 2px var(--amber); }

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

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .layout-single > .content-area { width: 100%; }
    .front-inner { width: 100%; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.4rem; }
    .stat:nth-child(2) { border-right: 0; }
    .hero { padding: 4rem 0 3.4rem; }
}

@media (max-width: 720px) {
    .nav-toggle { display: inline-block; order: 2; margin-left: auto; }
    .main-nav { order: 3; flex-basis: 100%; }
    .nav-list { justify-content: flex-start; gap: .9rem 1.2rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.55rem; }
    body::after { width: 140px; height: 140px; opacity: .1; }
    .front-section { padding: 2.6rem 0; }
    .hero { padding: 3.2rem 0 2.8rem; }
    .step { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
    .step-num { font-size: 2.6rem; }
    .step-cols { column-count: 1; }
    .stats { grid-template-columns: minmax(0, 1fr); padding: 1.6rem 1.4rem; }
    .stat { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
    .stat:last-child { border-bottom: 0; }
    .comments-area { padding: 1.2rem 1.1rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
    .blockquote, blockquote { padding: 1rem 1.1rem; }
    .sidebar { padding: 1.2rem 1.2rem .4rem; }
}
