/*
Theme Name: dds_fizika-express.ru
Author: Илья Сотников
Description: Образовательный портал по точным наукам. Дизайн: научный неоморфизм и инженерная графика, фиолетовая палитра.
Version: 1.1
Text Domain: fizex
*/

/* ===== Переменные ===== */
:root {
    --bg:        #F4F2F9;
    --bg-alt:    #EBE6F2;
    --dark:      #1A172B;
    --dark-2:    #2C2545;
    --text:      #1F1B2E;
    --accent:    #7C4DFF;
    --accent-2:  #00D4FF;
    --muted:     #8A85A0;
    --card-sh:   #C8C0D8;
    --border:    #EBE6F2;
    --radius-c:  16px;
    --radius-b:  12px;
}

/* ===== База ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(124,77,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,77,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

h1 { font-size: 3.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; }

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

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

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

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    padding: 0.7em 1.6em;
    border-radius: var(--radius-b);
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease, background 0.2s ease, filter 0.2s ease;
    text-align: center;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    filter: brightness(1.12);
    transform: translateY(2px);
    color: #fff;
}
.btn-ghost {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-ghost:hover {
    background: rgba(124,77,255,0.2);
    color: var(--accent);
}

/* ===== Текстовые ссылки ===== */
.text-link {
    color: var(--accent);
    font-weight: 600;
    position: relative;
    display: inline-block;
}
.text-link::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: 0.15em;
    height: 2px;
    background: var(--accent-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}
.text-link:hover::after { transform: scaleX(1); }

/* ===== Заголовки секций ===== */
.section-heading {
    position: relative;
    padding-left: 1rem;
    margin: 0 0 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.section-heading::before {
    content: "";
    position: absolute;
    left: 0; top: 0.1em; bottom: 0.1em;
    width: 6px;
    background: var(--accent);
    border-radius: 3px;
}
.section-heading .sym {
    color: var(--accent-2);
    font-size: 1.6rem;
    font-weight: 700;
}

/* ===== Шапка ===== */
.site-header {
    background: var(--dark);
    color: #F4F2F9;
    border-bottom: 1px solid rgba(124,77,255,0.25);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}
.branding {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}
.brand-logo { display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.site-title {
    font-weight: 700;
    color: #F4F2F9;
    font-size: 1.05rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 40ch;
}
.site-desc {
    color: var(--muted);
    font-size: 0.8rem;
    display: none;
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav .nav-list a {
    color: #E9E5F5;
    padding: 0.5em 0.9em;
    border-radius: 8px;
    display: block;
    transition: background 0.2s ease, color 0.2s ease;
}
.main-nav .nav-list a:hover,
.main-nav .nav-list .current-menu-item > a {
    background: rgba(124,77,255,0.25);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle-bar {
    width: 26px; height: 3px;
    background: #F4F2F9;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Раскладки ===== */
.site-main { padding: 2.5rem 0 3rem; }

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

/* ===== Сайдбар ===== */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-c);
    box-shadow: 0 0 20px var(--card-sh);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    color: var(--text);
}
.sidebar .widget-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    color: var(--text);
    position: relative;
    padding-left: 0.7rem;
}
.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: 0.15em; bottom: 0.15em;
    width: 4px; background: var(--accent); border-radius: 2px;
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li {
    padding: 0.5em 0;
    border-bottom: 1px dashed var(--border);
}
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--text); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date,
.sidebar .widget time { color: var(--muted); font-size: 0.85rem; }

/* ===== Хлебные крошки ===== */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs .sep { margin: 0 0.35rem; color: var(--muted); }

/* ===== Заголовок страницы ===== */
.page-head { margin-bottom: 1.8rem; }
.page-title { font-size: 2.4rem; margin: 0 0 0.4rem; }
.archive-desc { color: var(--muted); }

/* ===== Сетка карточек ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
}

/* ===== Карточка записи ===== */
.card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-c);
    box-shadow: 0 0 20px var(--card-sh);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px var(--card-sh);
    border-color: var(--accent);
}
.card-thumb {
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
.card-thumb a { display: block; }
.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.3rem 1.4rem 1.4rem;
    position: relative;
    min-width: 0;
}
.card-stamp {
    position: absolute;
    right: 0; bottom: 0;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    padding: 0.3em 0.7em;
    border-top-left-radius: 8px;
}
.card-meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.card-title {
    font-size: 1.25rem;
    margin: 0 0 0.6rem;
    line-height: 1.3;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
    color: #3d374f;
    font-size: 0.96rem;
    margin-bottom: 1rem;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { align-self: flex-start; margin-top: auto; }

.empty-note, .no-results { color: var(--muted); }

/* ===== Пагинация ===== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.4rem 0 0;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.7rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 0 12px var(--card-sh);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pagination a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pagination .page-numbers.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.pagination .page-numbers.dots {
    border: 0;
    box-shadow: none;
    background: transparent;
}

/* ===== Запись / страница ===== */
.single-post, .single-page {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-c);
    box-shadow: 0 0 20px var(--card-sh);
    padding: 2rem 2.2rem;
}
.single-title { font-size: 2.4rem; margin: 0 0 0.6rem; }
.single-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.4rem; }
.single-meta a { color: var(--accent); }
.meta-sep { margin: 0 0.4rem; }
.single-thumb {
    margin: 0 0 1.6rem;
    border-radius: var(--radius-c);
    overflow: hidden;
}
.single-thumb img { display: block; width: 100%; }
.entry-content { min-width: 0; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2 { margin: 1.6em 0 0.6em; }
.entry-content h3 { margin: 1.4em 0 0.5em; }
.entry-content img { border-radius: 10px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content blockquote {
    margin: 1.4em 0;
    padding: 1.2rem 1.4rem;
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    color: #EDEAF7;
    border-radius: var(--radius-c);
    border-left: 5px solid var(--accent);
    box-shadow: 0 0 24px rgba(124,77,255,0.25);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.single-tags { margin-top: 1.6rem; font-size: 0.9rem; }
.tags-label { color: var(--muted); }

/* ===== Таблицы ===== */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--muted);
}
.entry-content th, .entry-content td {
    border: 1px solid var(--muted);
    padding: 0.6em 0.8em;
    text-align: left;
}
.entry-content th { background: var(--bg-alt); }

/* ===== Комментарии ===== */
.comments-area {
    margin-top: 2.4rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-c);
    box-shadow: 0 0 20px var(--card-sh);
    padding: 1.8rem 2rem;
}
.comments-title { font-size: 1.5rem; margin: 0 0 1.2rem; }
.comment-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.comment-list ol.children { list-style: none; padding-left: 1.4rem; }
.comment-item { margin-bottom: 1.2rem; }
.comment-inner {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
}
.comment-meta { display: flex; gap: 0.8rem; align-items: baseline; margin-bottom: 0.4rem; }
.comment-author { font-weight: 600; }
.comment-date { color: var(--muted); font-size: 0.82rem; }
.comment-await { color: var(--accent); font-style: italic; }
.comment-reply a { color: var(--accent); font-size: 0.88rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7em 0.9em;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    font: inherit;
    color: var(--text);
    margin-top: 0.3rem;
}
.comment-form label { font-size: 0.9rem; font-weight: 600; }
.comment-form p { margin-bottom: 0.9rem; }

/* ===== Форма поиска ===== */
.search-form {
    display: flex;
    gap: 0.6rem;
    max-width: 520px;
    margin: 1rem 0;
}
.search-field {
    flex: 1;
    min-width: 0;
    padding: 0.7em 1em;
    border: 1px solid var(--border);
    border-radius: var(--radius-b);
    background: #fff;
    font: inherit;
    color: var(--text);
}

/* ===== 404 ===== */
.error-404 { text-align: center; padding: 2rem 0; }
.error-code {
    font-size: 6rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent);
}
.error-404 .search-form { margin-inline: auto; }
.error-text { color: var(--muted); }

/* ========================================================================
   ГЛАВНАЯ СТРАНИЦА
   ======================================================================== */
.front-section { padding: 3.2rem 0; }
.section-alt { background: var(--bg-alt); }

/* --- Блок 1: Hero --- */
.fs-hero {
    position: relative;
    background: var(--dark);
    color: #EDEAF7;
    padding: 4.5rem 0 4rem;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg svg { width: 100%; height: 100%; display: block; }
.hero-bg .wave { animation: fizexWave 9s ease-in-out infinite alternate; transform-origin: center; }
.hero-bg .wave-2 { animation-duration: 12s; }
@keyframes fizexWave {
    from { transform: translateY(0); }
    to   { transform: translateY(-16px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-bg .wave { animation: none; }
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}
.hero-title {
    font-size: 3.8rem;
    margin: 0 0 1rem;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent);
}
.hero-sub { color: #C9C3DE; font-size: 1.1rem; margin: 0; }
.hero-cta {
    background: linear-gradient(135deg, var(--dark-2), var(--dark));
    border: 1px solid rgba(124,77,255,0.35);
    border-radius: var(--radius-c);
    padding: 1.8rem 1.8rem;
    box-shadow: 0 0 30px rgba(124,77,255,0.2);
}
.hero-note { color: #D6D1E8; font-size: 0.98rem; }

/* --- Блок 2: Направления --- */
.dir-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.dir-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: var(--radius-c);
    padding: 1.8rem 1.6rem;
    box-shadow: 8px 8px 20px var(--card-sh), -8px -8px 20px #ffffff;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    min-width: 0;
}
.dir-card:hover {
    transform: translateY(-3px);
    box-shadow: 12px 12px 26px var(--card-sh), -10px -10px 22px #ffffff, 0 0 0 1px var(--accent);
}
.dir-icon {
    width: 84px; height: 84px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    box-shadow: inset 4px 4px 10px var(--card-sh), inset -4px -4px 10px #ffffff;
    margin-bottom: 1.1rem;
}
.dir-icon img { display: block; }
.dir-name { margin: 0 0 0.5rem; }
.dir-text { color: #4a4460; font-size: 0.96rem; margin-bottom: 1.1rem; }
.dir-card .text-link { margin-top: auto; align-self: flex-start; }

/* --- Блок 3: Чек-лист --- */
.checklist {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.4rem;
    position: relative;
    max-width: 780px;
}
.checklist::before {
    content: "";
    position: absolute;
    left: 0; top: 0.6rem; bottom: 0.6rem;
    width: 4px;
    background: linear-gradient(var(--accent), var(--accent-2));
    border-radius: 2px;
}
.check-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
}
.check-mark {
    flex: 0 0 30px;
    width: 30px; height: 30px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 14px var(--card-sh);
    position: relative;
}
.check-mark::after {
    content: "";
    position: absolute;
    left: 10px; top: 5px;
    width: 7px; height: 13px;
    border: solid var(--accent);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.check-body { min-width: 0; }
.check-title { margin: 0 0 0.3rem; font-size: 1.15rem; }
.check-body p { margin: 0; color: #4a4460; }

/* --- Блок 4: Таймлайн --- */
.timeline {
    position: relative;
    max-width: 880px;
    margin-inline: auto;
    padding: 1rem 0;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 3px;
    margin-left: -1.5px;
    background: repeating-linear-gradient(var(--accent) 0 8px, transparent 8px 16px);
}
.tl-step {
    position: relative;
    width: 50%;
    padding: 1rem 2.2rem;
    box-sizing: border-box;
}
.tl-left { left: 0; text-align: right; }
.tl-right { left: 50%; text-align: left; }
.tl-node {
    position: absolute;
    top: 1.6rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--accent-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 0 18px rgba(124,77,255,0.4);
    z-index: 1;
}
.tl-left .tl-node { right: -22px; }
.tl-right .tl-node { left: -22px; }
.tl-card {
    display: inline-block;
    text-align: left;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-c);
    box-shadow: 0 0 20px var(--card-sh);
    padding: 1.2rem 1.4rem;
}
.tl-num {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}
.tl-title { margin: 0 0 0.4rem; }
.tl-card p { margin: 0; color: #4a4460; }

/* ===== Подвал ===== */
.site-footer {
    background: var(--dark);
    color: #D6D1E8;
    padding: 2.8rem 0 1.4rem;
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.footer-col .widget { margin-bottom: 1.4rem; color: #D6D1E8; }
.footer-col .widget-title {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin: 0 0 0.9rem;
    position: relative;
    padding-left: 0.7rem;
}
.footer-col .widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: 0.15em; bottom: 0.15em;
    width: 4px; background: var(--accent-2); border-radius: 2px;
}
.footer-col .widget,
.footer-col .widget p { color: #C4BFD8; }
.footer-col .widget ul { list-style: none; margin: 0; padding: 0; }
.footer-col .widget li { padding: 0.35em 0; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.footer-col .widget li:last-child { border-bottom: 0; }
.footer-col .widget a { color: #E9E5F5; }
.footer-col .widget a:hover { color: var(--accent-2); }
.footer-col .widget time,
.footer-col .widget .post-date { color: #9A94B4; font-size: 0.85rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 1rem;
    padding-top: 1.2rem;
}
.copyright { margin: 0; color: #9A94B4; font-size: 0.9rem; }

/* ===== Cookie-баннер ===== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--dark);
    color: #E9E5F5;
    padding: 1rem 1.4rem;
    border-top: 2px solid var(--accent);
    box-shadow: 0 -6px 24px rgba(26,23,43,0.35);
}
.cookie-text { margin: 0; font-size: 0.9rem; max-width: 70ch; }
.cookie-accept { flex: 0 0 auto; }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
    h1 { font-size: 2.8rem; }
    .hero-title { font-size: 2.8rem; }
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { margin-top: 2rem; }
    .hero-inner { grid-template-columns: 1fr; }
    .dir-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: 1.2rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1, .page-title, .single-title { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .hero-title { font-size: 2.1rem; }

    .nav-toggle { display: flex; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav .nav-list { flex-direction: column; gap: 0.2rem; }

    .site-main { padding: 1.6rem 0 2rem; }
    .single-post, .single-page { padding: 1.4rem 1.2rem; }
    .comments-area { padding: 1.3rem 1.2rem; }
    .cards-grid { grid-template-columns: 1fr; }

    .fs-hero { padding: 3rem 0 2.6rem; }
    .hero-cta { padding: 1.4rem 1.3rem; }
    .front-section { padding: 2.4rem 0; }

    /* Таймлайн в одну колонку */
    .timeline::before { left: 18px; }
    .tl-step { width: 100%; left: 0; text-align: left; padding: 1rem 0 1rem 3rem; }
    .tl-left, .tl-right { left: 0; text-align: left; }
    .tl-left .tl-node, .tl-right .tl-node { left: -4px; right: auto; }

    .cookie-banner { flex-direction: column; text-align: center; padding: 1rem; }
}
