/* ==========================================
   RESET & BASE STYLES
   Палитра A – «Editorial light»
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --page-bg: #FAF8F4;        /* тёплый белый – фон страницы */
    --paper: #FFFFFF;          /* карточки */
    --sand: #F2F4FC;           /* светлая полоса секций */
    --sage: #E7E9FC;           /* светлая индиговая подложка */
    --ink: #202844;            /* основной текст */
    --ink-muted: #5B6180;      /* приглушённый текст */
    --green: #3B4FD8;          /* акцент – индиго */
    --green-dark: #2F3FB0;     /* hover */
    --amber: #C89B3C;          /* вторичный акцент – приглушённое золото */
    --amber-text: #9A7018;     /* янтарь для текста (контраст AA large) */
    --amber-deep: #7A5814;     /* янтарь для мелкого текста чипов */
    --card-border: #E4E6F1;    /* тонкая рамка карточек */
    --card-shadow: 0 6px 24px rgba(20, 27, 52, 0.06);
    --red: #C0392B;            /* крестики таблицы, ошибки форм */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Golos Text', 'Inter', system-ui, sans-serif;
    background: var(--page-bg);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Мокап статичный: кастомный курсор (JS) отключён, системный курсор виден */
.custom-cursor,
.cursor-follower {
    display: none;
}

/* Видимый фокус с клавиатуры */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3 {
    font-family: 'Golos Text', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1.3;
    font-weight: 600;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--green);
}

/* ==========================================
   CONTAINER & SECTIONS
   ========================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

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

section {
    padding: 6.5rem 0;
    position: relative;
}

/* Плавные переходы между секциями – только для секций верхнего уровня
   (главная); вложенные section внутри main не трогаем */
body > section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to bottom, transparent 0%, rgba(20, 27, 52, 0.035) 100%);
    pointer-events: none;
    z-index: 0;
}

section > * {
    position: relative;
    z-index: 1;
}

/* ==========================================
   CARDS (бывший glassmorphism – теперь белые карточки)
   ========================================== */
.glass {
    background: var(--paper);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    padding-top: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(59, 79, 216, 0.09) 0%, transparent 60%),
        linear-gradient(180deg, #FFFFFF 0%, var(--page-bg) 55%, var(--sage) 100%);
}

.hero::after {
    background: linear-gradient(to bottom, transparent 0%, var(--sage) 100%);
}

/* Канвас с частицами скрыт – светлый фон задан самой секции */
.hero-background {
    display: none;
}

#particleCanvas {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-title {
    color: var(--ink);
    margin-bottom: 3rem;
}

.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--green);
    margin-bottom: 3rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.02em;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 2;
    color: rgba(20, 27, 52, 0.8);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--green);
    border: 1px solid var(--green);
    color: #FFFFFF;
    /* единый размер главных кнопок по всему сайту */
    min-height: 52px;
    padding: 0 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'Golos Text', 'Inter', system-ui, sans-serif;
    cursor: pointer;
    border-radius: 12px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--green-dark);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: #FFFFFF;
    border-color: var(--green-dark);
    box-shadow: 0 8px 24px rgba(59, 79, 216, 0.28);
    transform: translateY(-2px);
}

/* Ensure text is above background */
.cta-button > * {
    position: relative;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--green), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   SECTION TITLES
   ========================================== */
.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.subtitle-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--green);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid rgba(59, 79, 216, .35);
    transition: color .2s ease, border-color .2s ease;
}

.subtitle-link:hover { color: var(--green-dark); border-color: var(--green-dark); }

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--ink-muted);
    margin-bottom: 3.5rem;
    letter-spacing: 0.05em;
}

/* ==========================================
   EXPERTS SECTION
   ========================================== */
.experts {
    /* светлая песочная полоса, стекающая в тёплый белый */
    background: linear-gradient(180deg, var(--sand) 0%, var(--page-bg) 60%, var(--page-bg) 100%);
}

.experts::after {
    background: linear-gradient(to bottom, transparent 0%, var(--page-bg) 100%);
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.expert-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.expert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59, 79, 216, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.expert-card:hover::before {
    opacity: 1;
}

.expert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(20, 27, 52, 0.12);
    border-color: var(--green);
}

.expert-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sage) 0%, var(--sand) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(59, 79, 216, 0.25);
    transition: all 0.3s ease;
}

.expert-card:hover .expert-photo {
    border-color: var(--green);
    box-shadow: 0 8px 30px rgba(59, 79, 216, 0.2);
}

.photo-placeholder {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green);
    font-family: 'Golos Text', 'Inter', system-ui, sans-serif;
}

.expert-name {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.expert-title {
    text-align: center;
    font-size: 0.9rem;
    color: var(--green);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.expert-role {
    text-align: center;
    font-size: 0.95rem;
    color: var(--ink-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.expert-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    margin-top: auto; /* прижать метрики к общей нижней линии ряда */
}

.metric {
    font-size: 0.85rem;
    color: var(--amber-deep);
    padding: 0.3rem 1rem;
    background: rgba(232, 168, 56, 0.15);
    border-radius: 20px;
    font-weight: 500;
}

/* Role Icon Styles */
.role-icon {
    font-size: 2rem;
    letter-spacing: 0.05em;
}

/* ==========================================
   TECHNOLOGY SECTION
   ========================================== */
.technology {
    background: linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg) 100%);
}

.technology::after {
    background: linear-gradient(to bottom, transparent 0%, var(--sand) 100%);
}

.tech-grid {
    display: grid;
    /* 3 фиксированные колонки: auto-fit давал раскладку 2+1 с сиротой на ноутбуках <1274px */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    margin-bottom: 6rem;
}

.tech-card {
    padding: 4rem 3rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    text-align: center;
}

.tech-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 70px rgba(20, 27, 52, 0.12);
}

.tech-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.tech-icon svg {
    width: 100%;
    height: 100%;
}

.tech-card h3 {
    margin-bottom: 1.5rem;
    color: var(--green);
}

.tech-card p {
    color: rgba(20, 27, 52, 0.8);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.tech-tags span {
    padding: 0.5rem 1.2rem;
    background: rgba(232, 168, 56, 0.14);
    border: 1px solid rgba(232, 168, 56, 0.5);
    border-radius: 25px;
    font-size: 0.85rem;
    color: var(--amber-deep);
    font-weight: 500;
}

/* ==========================================
   ACHIEVEMENTS
   ========================================== */
.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    padding: 5rem 3rem;
    background: var(--paper);
    border-radius: 30px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.achievement-item {
    text-align: center;
}

.achievement-number {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--amber-text);
    font-family: 'Golos Text', 'Inter', system-ui, sans-serif;
    margin-bottom: 1rem;
    line-height: 1;
}

.achievement-item p {
    color: var(--ink-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    background: linear-gradient(180deg, var(--sand) 0%, var(--page-bg) 50%, var(--page-bg) 100%);
}

.services::after {
    background: linear-gradient(to bottom, transparent 0%, var(--sage) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    align-items: start;
}

.service-card {
    padding: 4rem 3rem;
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
}

.service-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--green);
    box-shadow: 0 16px 48px rgba(59, 79, 216, 0.14);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.service-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(59, 79, 216, 0.07);
    border: 1px solid rgba(59, 79, 216, 0.3);
    border-radius: 25px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 2rem;
    font-weight: 500;
}

.service-badge.highlight {
    background: var(--amber);
    color: var(--ink);
    border-color: var(--amber);
}

.service-card h3 {
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.service-description {
    color: rgba(20, 27, 52, 0.8);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.service-features {
    list-style: none;
    margin-bottom: 3rem;
}

.service-features li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(20, 27, 52, 0.08);
    color: rgba(20, 27, 52, 0.8);
    position: relative;
    padding-left: 2rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.service-button {
    width: 100%;
    padding: 1.2rem;
    background: transparent;
    border: 2px solid var(--green);
    color: var(--green);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Golos Text', 'Inter', system-ui, sans-serif;
    cursor: pointer;
}

.service-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--green);
    transition: left 0.4s ease;
    z-index: -1;
}

.service-button:hover::before {
    left: 0;
}

.service-button:hover {
    color: #FFFFFF;
}

.service-button.primary {
    background: var(--green);
    color: #FFFFFF;
}

.service-button.primary:hover {
    background: var(--green-dark);
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(59, 79, 216, 0.3);
}

.service-button.primary::before {
    left: 0;
    background: transparent;
}

.service-button.primary:hover::before {
    left: 0;
    background: transparent;
}

/* ==========================================
   COMPARISON SECTION
   ========================================== */
.comparison {
    background: linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg) 100%);
}

.comparison::after {
    background: linear-gradient(to bottom, transparent 0%, var(--sage) 100%);
}

.comparison-table {
    padding: 2.5rem;
    border-radius: 25px;
    overflow-x: auto;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid rgba(59, 79, 216, 0.25);
}

.comparison-header .comparison-col {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.comparison-header .comparison-col.highlighted {
    font-weight: 700;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(20, 27, 52, 0.07);
    transition: all 0.3s ease;
    position: relative;
}

.comparison-row:hover {
    background: rgba(59, 79, 216, 0.04);
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    margin-left: -0.8rem;
    margin-right: -0.8rem;
}

.comparison-col {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.comparison-col.faded {
    color: var(--ink-muted);
}

.comparison-col.highlighted {
    color: var(--green);
    font-weight: 500;
}

.icon-check {
    color: var(--green);
    font-size: 1.2rem;
    font-weight: 700;
}

.icon-cross {
    color: var(--red);
    font-size: 1.2rem;
    font-weight: 700;
}

.comparison-explanation {
    grid-column: 1 / -1;
    font-family: 'Golos Text', 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 14px;
    font-style: italic;
    color: var(--ink-muted);
    line-height: 1.5;
    margin-top: 0.6rem;
    padding-left: 1rem;
}

/* ==========================================
   FOOTER CTA – глубокая зелёная плашка
   ========================================== */
.footer-cta {
    padding: 6.5rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
}

.footer-cta h2 {
    margin-bottom: 2rem;
    color: #FFFFFF;
}

.footer-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Инверсная кнопка на зелёной плашке */
.footer-cta .cta-button {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--green);
}

.footer-cta .cta-button::before {
    background: var(--sage);
}

.footer-cta .cta-button:hover {
    color: var(--green-dark);
    border-color: var(--sage);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 3rem 0;
    text-align: center;
    background: var(--ink);
}

.footer p {
    color: rgba(250, 250, 247, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.85rem;
    color: rgba(232, 168, 56, 0.85);
}

.footer-link {
    color: rgba(250, 250, 247, 0.7);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--amber);
}

/* ==========================================
   MODAL
   ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 27, 52, 0.55);
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    max-width: 800px;
    width: 90%;
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 24px 64px rgba(20, 27, 52, 0.18);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: var(--ink-muted);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--green);
    transform: rotate(90deg);
}

.modal-title {
    margin-bottom: 0;
    color: var(--green);
    font-size: 1.8rem;
}

.modal-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--ink);
    font-size: 1.3rem;
}

.publications-list {
    list-style: none;
}

.publications-list li {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--sand);
    border-left: 3px solid var(--green);
    border-radius: 8px;
    color: rgba(20, 27, 52, 0.85);
    line-height: 1.8;
}

.publications-list strong {
    color: var(--green);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   NAVIGATION HEADER
   ========================================== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    transform: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    padding: 0.85rem 0;
    transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

/* .navbar .container наследует сетку сайта: логотип встаёт по левому краю
   контента, кнопка – по правому, шапка выравнена с секциями ниже */

.navbar.scrolled {
    padding: 0.6rem 0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 20px rgba(20, 27, 52, 0.07);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* кнопка срочного заказа – только на мобильных */
.nav-urgent { display: none; }

.logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 0;
}

/* Логотип текстом: PhD. прямым, lab курсивом – как в фирменном начертании */
.logo-phd,
.logo-lab {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: 30px;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.logo-phd { font-weight: 400; }

.logo-lab {
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--green);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button-nav {
    background: transparent;
    border: 2px solid var(--green);
    color: var(--green);
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: 'Golos Text', 'Inter', system-ui, sans-serif;
    cursor: pointer;
}

.cta-button-nav:hover {
    background: var(--green);
    color: #FFFFFF;
}

/* ==========================================
   SERVICE PRICE
   ========================================== */
.service-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
    margin: 1.5rem 0;
    text-align: center;
}

/* ==========================================
   CASE STUDY SECTION
   ========================================== */
.case-study {
    background: linear-gradient(180deg, var(--sage) 0%, var(--page-bg) 50%, var(--page-bg) 100%);
}

.case-study::after {
    background: linear-gradient(to bottom, transparent 0%, var(--page-bg) 100%);
}

/* Cases Accordion */
.cases-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.case-item {
    background: var(--paper);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.case-item:hover {
    border-color: rgba(59, 79, 216, 0.45);
}

.case-item-header {
    padding: 2rem 2.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.case-item-header:hover {
    background: rgba(59, 79, 216, 0.04);
}

.case-item-header h3 {
    color: var(--ink);
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.case-item-heading {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.case-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-chip {
    font-size: 0.78rem;
    color: var(--ink);
    background: linear-gradient(180deg, #FFFFFF 0%, #F4F1E9 100%);
    border: 1px solid rgba(20, 27, 52, 0.07);
    border-radius: 999px;
    padding: 0.32rem 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow:
        0 2px 5px rgba(20, 27, 52, 0.09),
        0 6px 14px rgba(20, 27, 52, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.case-chip:first-child {
    color: var(--green);
}

.case-quote--standalone {
    margin-top: 2.5rem;
}

.case-toggle {
    font-size: 2rem;
    color: var(--green);
    font-weight: 400;
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.case-item.active .case-toggle {
    transform: rotate(45deg);
}

.case-item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 2.5rem;
}

.case-item.active .case-item-content {
    max-height: 2000px;
    padding: 0 2.5rem 2rem 2.5rem;
}

.case-item-content p {
    color: rgba(20, 27, 52, 0.85);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.case-item-content strong {
    color: var(--green);
    font-weight: 600;
}

.case-quote {
    padding: 2rem;
    background: var(--sage);
    border-left: 4px solid var(--green);
    border-radius: 12px;
    margin-top: 1.5rem;
}

.case-quote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--ink);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.case-quote cite {
    color: var(--green);
    font-style: normal;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq {
    background: linear-gradient(180deg, var(--sage) 0%, var(--page-bg) 100%);
}

.faq::after {
    display: none; /* последняя секция, градиент не нужен */
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    border-top: 1px solid var(--card-border);
}

.faq-item { border-bottom: 1px solid var(--card-border); }

.faq-q {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1.35rem 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.4;
    color: var(--ink);
    transition: color .2s ease;
}

.faq-q:hover { color: var(--green); }

.faq-chevron {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: .2rem;
    color: var(--green);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}

.faq-item.is-open .faq-q { color: var(--green); }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

/* раскрытие без вычисления высоты */
.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s cubic-bezier(.4, 0, .2, 1);
}

.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

.faq-a p {
    overflow: hidden;
    margin: 0;
    font-size: .95rem;
    line-height: 1.7;
    color: var(--ink-muted);
    max-width: 68ch;
}

.faq-item.is-open .faq-a p { padding-bottom: 1.35rem; }

@media (max-width: 700px) {
    .faq-q { font-size: 1rem; padding: 1.1rem 0; gap: 1rem; }
    .faq-a p { font-size: .92rem; }
}


/* ==========================================
   CONTACT FORM MODAL
   ========================================== */
.contact-form-modal {
    max-width: 500px;
}

.modal-subtitle {
    color: var(--ink-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.88rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.85rem 1.2rem;
    background: var(--page-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--ink);
    font-size: 0.95rem;
    font-family: 'Golos Text', 'Inter', system-ui, sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(59, 79, 216, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    margin-top: 0.3rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--green);
}

.checkbox-text {
    font-size: 0.82rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

.consent-link {
    color: var(--green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.consent-link:hover {
    text-decoration: underline;
    color: var(--green-dark);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: rgba(20, 27, 52, 0.8);
    font-weight: 400;
}

.checkbox-group label a {
    color: var(--green);
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

.form-error {
    color: var(--red);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.form-submit {
    margin-top: 0.5rem;
    cursor: pointer;
    width: 100%;
}

.form-success {
    padding: 2rem 1.5rem;
    text-align: center;
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--green), #3E7A55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #FFFFFF;
    font-weight: bold;
    animation: successPulse 0.6s ease;
    box-shadow: 0 8px 24px rgba(59, 79, 216, 0.3);
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 1.5rem;
    color: var(--green);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.success-message {
    color: rgba(20, 27, 52, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 450px;
    margin: 0 auto;
}

/* ==========================================
   FOOTER UPDATED
   ========================================== */
.footer {
    padding: 5rem 0 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
    text-align: left;
}

.footer-section h4 {
    color: var(--amber);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(250, 250, 247, 0.7);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section a {
    color: rgba(250, 250, 247, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--amber);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(250, 250, 247, 0.12);
    text-align: center;
}

/* ==========================================
   MOBILE MENU
   ========================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--green);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 10px 32px rgba(20, 27, 52, 0.12);
    background: rgba(250, 250, 247, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    z-index: 999;
    border-bottom: 1px solid var(--card-border);
    animation: slideDown 0.3s ease;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem;
    border-bottom: 1px solid rgba(20, 27, 52, 0.08);
    transition: all 0.3s ease;
}

.mobile-menu nav a:hover {
    color: var(--green);
    padding-left: 1.5rem;
}

.mobile-menu .cta-button-nav {
    margin-top: 1rem;
    width: 100%;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tablet & Mobile */
@media (max-width: 1024px) {
    .container {
        padding: 0 4%;
    }

    section {
        padding: 7rem 0;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .comparison-table {
        padding: 2rem;
        overflow-x: auto;
    }
}

@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .cta-button-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navbar-content {
        justify-content: space-between;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .comparison-header {
        display: none;
    }

    .comparison-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
        margin-bottom: 1rem;
        background: var(--paper);
        border: 1px solid var(--card-border);
        border-radius: 15px;
    }

    .comparison-col {
        justify-content: flex-start;
    }

    .comparison-col:first-child {
        font-weight: 600;
        color: var(--green);
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(59, 79, 216, 0.2);
    }

    .comparison-col.faded::before {
        content: "Другие: ";
        font-weight: 600;
        color: var(--ink-muted);
        margin-right: 0.5rem;
    }

    .comparison-col.highlighted::before {
        content: "PhDLab: ";
        font-weight: 700;
        color: var(--green);
        margin-right: 0.5rem;
    }

    .comparison-explanation {
        grid-column: 1;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

    .container {
        padding: 0 5%;
    }

    .hero {
        padding-top: 80px;
        height: auto;
        min-height: 100vh;
        padding-bottom: 3rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .logo-phd,
    .logo-lab {
        font-size: 18px;
    }

    .experts-grid,
    .tech-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card.featured {
        transform: scale(1);
        border: 2px solid var(--green);
    }

    .service-card.featured:hover {
        transform: translateY(-10px);
    }

    .modal-content {
        padding: 1.8rem 1.2rem;
        width: 95%;
    }

    .contact-form-modal {
        width: 95%;
        padding: 1.8rem 1.2rem;
    }

    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem;
    }

    .achievements {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 2rem;
    }

    .cta-button {
        padding: 1.2rem 2rem;
        font-size: 0.9rem;
    }

    .hero-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.2em;
    }

    .subtitle-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--green);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid rgba(59, 79, 216, .35);
    transition: color .2s ease, border-color .2s ease;
}

.subtitle-link:hover { color: var(--green-dark); border-color: var(--green-dark); }

.section-subtitle {
        font-size: 1rem;
        margin-bottom: 4rem;
    }

    .expert-card {
        padding: 2rem 1.5rem;
    }

    .tech-card {
        padding: 3rem 2rem;
    }

    .service-card {
        padding: 3rem 2rem;
    }

    .case-item-header {
        padding: 1.5rem;
    }

    .case-item-header h3 {
        font-size: 1.1rem;
    }

    .case-item.active .case-item-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .faq-question {
        font-size: 1.1rem;
    }

    .faq-answer {
        font-size: 1rem;
    }

    .comparison-table {
        padding: 1.5rem;
    }

    .comparison-explanation {
        padding-left: 0;
        margin-top: 0.5rem;
        font-size: 13px;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 4%;
    }

    section {
        padding: 4rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 0.6rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
    }

    .experts-grid,
    .tech-grid,
    .services-grid {
        gap: 1.5rem;
    }

    .expert-card,
    .tech-card,
    .service-card {
        padding: 2rem 1.5rem;
    }

    .expert-photo {
        width: 120px;
        height: 120px;
    }

    .photo-placeholder {
        font-size: 2rem;
    }

    .tech-icon {
        width: 60px;
        height: 60px;
    }

    .achievements {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .achievement-number {
        font-size: 2.5rem;
    }

    .service-price {
        font-size: 1.5rem;
    }

    .case-item-header {
        padding: 1.2rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .case-toggle {
        position: absolute;
        right: 1.2rem;
        top: 1.2rem;
    }

    .faq-grid {
        gap: 1.5rem;
    }

    .modal-content {
        padding: 1.5rem 1rem;
    }

    .modal-close {
        top: 0.8rem;
        right: 0.8rem;
        font-size: 1.5rem;
    }

    .modal-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .modal-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.82rem;
    }

    .footer-cta {
        padding: 5rem 0;
    }

    .footer-cta h2 {
        font-size: 1.75rem;
    }

    .footer-cta p {
        font-size: 1rem;
    }

    .scroll-indicator {
        bottom: 2rem;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--ink) 0%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: 0 0 40px rgba(59, 79, 216, 0.25);
}

/* ==========================================
   IMAGE PROTECTION
   ========================================== */
.protected-img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    pointer-events: none;
}

.img-shield {
    position: relative;
}

.img-shield::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: auto;
    z-index: 2;
}

/* ==========================================
   FLOATING TELEGRAM BUTTON
   ========================================== */
.floating-tg {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 16px;
    background: var(--green);
    color: #FFFFFF;
    border-radius: 50%;
    text-decoration: none;
    font-family: 'Golos Text', 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(59, 79, 216, 0.3);
    transition: border-radius 0.5s ease, padding 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 1.5s;
}

.floating-tg span {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.6s ease, opacity 0.4s ease 0.15s, margin-left 0.5s ease;
    margin-left: 0;
}

.floating-tg:hover {
    border-radius: 50px;
    padding: 16px 22px;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(59, 79, 216, 0.4);
    background: var(--green-dark);
}

.floating-tg:hover span {
    max-width: 200px;
    opacity: 1;
    margin-left: 10px;
}

.floating-tg svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .floating-tg:hover { border-radius: 50%; padding: 16px; }
    .floating-tg:hover span { max-width: 0; opacity: 0; margin-left: 0; }
}

/* ==========================================
   BLOG ARTICLE (editorial light)
   ========================================== */
.article-page {
    padding: 9rem 0 5rem;
    background: var(--page-bg);
}

.article-container {
    max-width: 800px;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: var(--green);
    text-decoration: none;
}

.breadcrumbs a:hover { text-decoration: underline; }

.crumb-sep { margin: 0 0.5em; color: var(--card-border); }
.crumb-current { color: var(--ink-muted); }

.article-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 1rem;
    text-wrap: balance;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.meta-sep { margin: 0 0.35em; }

.article-body { font-size: 1.05rem; color: var(--ink); }

.article-body h2 {
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    color: var(--ink);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 1.15rem;
    color: var(--ink);
    margin: 2rem 0 0.8rem;
}

.article-body p { margin-bottom: 1.1rem; text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.article-body li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
/* служебные блоки внутри статьи по формату не выключаются: текст короткий, рвётся дырами.
   Выравнивание при этом сохраняем родное: баннер в конце центрирован, остальные слева. */
.article-body .cta-inline p,
.article-body .cta-final p,
.article-body .cta-final .cta-final-title,
.article-body .article-like p,
.article-body figcaption { hyphens: none; -webkit-hyphens: none; }

.article-body .cta-inline p,
.article-body .article-like p,
.article-body figcaption { text-align: left; }

.article-body .cta-final p,
.article-body .cta-final .cta-final-title { text-align: center; }

@media (max-width: 700px) {
    .article-body p, .article-body li { text-align: left; hyphens: none; -webkit-hyphens: none; }
}

.article-body ul, .article-body ol {
    margin: 0 0 1.2rem 1.4rem;
}

.article-body li { margin-bottom: 0.5rem; }

.article-body a { color: var(--green); }
.article-body a:hover { color: var(--green-dark); }

.article-body strong { color: var(--ink); }

.article-body blockquote {
    margin: 1.5rem 0;
    padding: 1.2rem 1.5rem;
    background: var(--sage);
    border-left: 4px solid var(--green);
    border-radius: 10px;
}

.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    background: var(--paper);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
}

.article-body th, .article-body td {
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.article-body th {
    background: var(--sage);
    color: var(--ink);
    font-weight: 600;
}

.article-body tr:last-child td { border-bottom: none; }

.table-scroll { overflow-x: auto; }

.info-box {
    position: relative;
    margin: 1.7rem 0;
    padding: 1.15rem 1.5rem 1.15rem 1.65rem;
    background: var(--sand);
    border: 1px solid var(--card-border);
    border-radius: 3px;
}

/* тонкая индиговая грань вместо стоковой цветной полосы слева */
.info-box::before {
    content: '';
    position: absolute;
    left: -1px; top: -1px; bottom: -1px;
    width: 2px;
    background: var(--green);
    opacity: .5;
    border-radius: 3px 0 0 3px;
}

/* термин, с которого начинается врезка, звучит акцентом */
.info-box > p:first-child > strong:first-child { color: var(--green-dark); }

.info-box p:last-child { margin-bottom: 0; }

/* идущие подряд врезки не разваливаются на отдельные острова */
.info-box + .info-box { margin-top: .75rem; }

/* FAQ (видимый блок) */








/* CTA статьи */
.article-cta {
    margin: 3rem 0 0;
    padding: 1.8rem 2rem;
    background: var(--sage);
    border-radius: 14px;
    border: 1px solid rgba(59, 79, 216, 0.15);
}

.article-cta p { margin-bottom: 1.2rem; color: var(--ink); }

.article-cta-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-cta .cta-button { padding: 1rem 2rem; }

.cta-link {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

.cta-link:hover { color: var(--green-dark); text-decoration: underline; }

/* Полезные материалы */
.related-links {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.related-links h3 { color: var(--ink); margin-bottom: 1rem; font-size: 1.1rem; }

.related-links a {
    display: block;
    color: var(--green);
    text-decoration: none;
    padding: 0.4rem 0;
}

.related-links a:hover { color: var(--green-dark); text-decoration: underline; }

@media (max-width: 768px) {
    .article-page { padding: 7rem 0 3rem; }
}

/* ==========================================
   BLOG HUB
   ========================================== */
.blog-hub {
    padding: 9rem 0 5rem;
    background: var(--page-bg);
}

.hub-header h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    color: var(--ink);
    margin-bottom: 1rem;
}

.hub-intro {
    color: var(--ink-muted);
    max-width: 70ch;
    margin-bottom: 3rem;
}

.hub-intro a { color: var(--green); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.6rem 1.8rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--green);
    box-shadow: 0 12px 32px rgba(20, 27, 52, 0.1);
}

.blog-card h2 {
    font-size: 1.15rem;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 0.6rem;
}

.blog-card-meta {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin-bottom: 0.8rem;
}

.blog-card-desc {
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-more {
    margin-top: auto;
    color: var(--green);
    font-weight: 600;
    font-size: 0.9rem;
}

.hub-extra {
    margin-top: 3rem;
    padding: 1.6rem 1.8rem;
    background: var(--sage);
    border-radius: 14px;
}

.hub-extra h2 { font-size: 1.2rem; color: var(--ink); margin-bottom: 0.6rem; }
.hub-extra p { color: var(--ink-muted); margin: 0; }
.hub-extra a { color: var(--green); }

@media (max-width: 860px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-hub { padding: 7rem 0 3rem; }
}

/* Картинки в статьях */
.article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.article-body figure {
    margin: 1.8rem 0;
}

.article-body figcaption {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin-top: 0.6rem;
    text-align: center;
}

/* ==========================================
   ГЛАВНАЯ v2: клиентские секции
   ========================================== */

/* Символы в хиро */
.hero-symbols {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* На широких экранах символы держатся ближе к центру, а не у краёв окна */
@media (min-width: 1100px) {
    .hero-symbols {
        left: 50%;
        right: auto;
        width: min(100%, 1520px);
        transform: translateX(-50%);
    }
}

.hero-symbols span {
    position: absolute;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    color: rgba(59, 79, 216, 0.085);
    white-space: nowrap;
    user-select: none;
}

/* Второй тон символов: приглушённый шалфей вместо жёлтого */
.hero-symbols .sym-accent { color: rgba(74, 118, 98, 0.13); }

/* Что мы делаем */
.what { background: var(--page-bg); }
.what::after { background: linear-gradient(to bottom, transparent 0%, var(--sand) 100%); }

.what-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.what-card {
    padding: 1.8rem 1.9rem;
    border-radius: 16px;
}

.what-card h3 {
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 0.6rem;
}

.what-card p {
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

.what-card--links { background: var(--sage); border-color: rgba(59, 79, 216, 0.2); }

.what-card--links a {
    display: block;
    margin-top: 0.7rem;
    color: var(--green);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.what-card--links a:hover { color: var(--green-dark); text-decoration: underline; }

/* Как проходит работа */
.how { background: var(--sand); }
.how::after { background: linear-gradient(to bottom, transparent 0%, var(--page-bg) 100%); }

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.step {
    background: var(--paper);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.8rem 1.6rem;
    box-shadow: var(--card-shadow);
    position: relative;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.step h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.6rem; }
.step p { font-size: 0.92rem; color: var(--ink-muted); line-height: 1.6; }

/* Почему это надёжно */
.guarantees { background: var(--page-bg); }
.guarantees::after { background: linear-gradient(to bottom, transparent 0%, var(--sage) 100%); }

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.guarantee-card {
    padding: 1.7rem 1.8rem;
    border-radius: 16px;
}

.guarantee-figure {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--amber-text);
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.guarantee-card p {
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* Команда компактно */
.team { background: var(--sage); }
.team::after { background: linear-gradient(to bottom, transparent 0%, var(--page-bg) 100%); }

.team-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.team-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    border-radius: 14px;
}

.team-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--sage);
    border: 2px solid rgba(59, 79, 216, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-avatar span {
    font-weight: 700;
    color: var(--green);
    font-size: 1rem;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.team-info strong { color: var(--ink); font-size: 0.98rem; }
.team-info span { color: var(--ink-muted); font-size: 0.82rem; line-height: 1.4; }

@media (max-width: 1024px) {
    .what-grid, .guarantee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .what-grid, .guarantee-grid, .steps, .team-strip { grid-template-columns: 1fr; }
    .hero-symbols .sym-hide-mobile { display: none; }
    .hero-symbols span { font-size: 2.5rem !important; }
}

.hero-symbols .sym-cite {
    font-style: italic;
    font-weight: 400;
    color: rgba(59, 79, 216, 0.11);
}

@media (max-width: 700px) {
    .hero-symbols .sym-cite { display: none; }
}

/* Плавный хаотичный дрейф символов в хиро */
.hero-symbols span {
    transform: rotate(var(--r, 0deg));
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-name: symDriftA;
    will-change: transform;
}

.hero-symbols .sym-drift-b { animation-name: symDriftB; }
.hero-symbols .sym-drift-c { animation-name: symDriftC; }

@keyframes symDriftA {
    0%, 100% { transform: rotate(var(--r)) translate3d(0, 0, 0); }
    30%      { transform: rotate(calc(var(--r) + 4deg)) translate3d(16px, -22px, 0); }
    65%      { transform: rotate(calc(var(--r) - 3deg)) translate3d(-12px, 14px, 0); }
}

@keyframes symDriftB {
    0%, 100% { transform: rotate(var(--r)) translate3d(0, 0, 0); }
    35%      { transform: rotate(calc(var(--r) - 5deg)) translate3d(-18px, -12px, 0); }
    70%      { transform: rotate(calc(var(--r) + 3deg)) translate3d(10px, 18px, 0); }
}

@keyframes symDriftC {
    0%, 100% { transform: rotate(var(--r)) translate3d(0, 0, 0); }
    25%      { transform: rotate(calc(var(--r) + 2deg)) translate3d(12px, 16px, 0); }
    60%      { transform: rotate(calc(var(--r) - 4deg)) translate3d(-16px, -10px, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-symbols span { animation: none; }
}

/* Глобальный градиент section::after предназначен для секций главной –
   внутри статей и хаба блога он рисует тёмную полосу под FAQ-блоком */
.article-page section::after,

/* Промо-карточка калькулятора на главной */
.calc-promo { padding: 0 0 6.5rem; background: var(--page-bg); }
.calc-promo::after { display: none; }

.calc-promo-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2.2rem 2.4rem;
    /* та же рамка-паспарту, что у карточки «О нас» */
    border: 10px solid var(--sage);
    border-radius: 3px;
    background: var(--paper);
    box-shadow: 0 18px 44px rgba(32, 40, 68, .09);
}

.calc-promo-card::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(59, 79, 216, .32);
    pointer-events: none;
}

.calc-promo-text { position: relative; z-index: 1; }
.calc-promo-btn { position: relative; z-index: 1; }

.calc-promo-text h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.calc-promo-text p { color: var(--ink-muted); max-width: 56ch; }

.calc-promo-btn {
    flex-shrink: 0;
    text-decoration: none;
}

@media (max-width: 760px) {
    .calc-promo-card { flex-direction: column; align-items: flex-start; padding: 1.8rem; }
}

/* ==========================================
   УНИФИКАЦИЯ 2026-07-23: единое полотно фона,
   один масштаб радиусов, единые пилюли
   ========================================== */

/* 1. Фон: вся страница – одно полотно var(--page-bg).
   Убираем полосы секций и градиентные «швы» между ними. */
body > section::after { display: none !important; }

/* чередование поверхностей: кремовый – песочный – кремовый */
.hero, .stages, .perks, .calc-promo { background: var(--page-bg); }
.how, .about, .faq { background: var(--sand); }

/* лёгкий акцент хиро оставляем, но без полосы-перехода снизу */
.hero {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(59, 79, 216, 0.05) 0%, transparent 60%),
        var(--page-bg);
}

/* 2. Радиусы: карточки 16px, крупные контейнеры 20px */
.team-item, .blog-card, .faq-item, .case-item { border-radius: 16px; }
.comparison-table, .calc-promo-card, .achievements { border-radius: 20px; }

/* 3. Шаги и карточки на едином фоне получают чуть более заметную рамку */
.step, .what-card, .guarantee-card, .team-item {
    border-color: var(--card-border);
}

/* 4. Финальный CTA – зелёная карта вместо полосы */
.footer-cta {
    background: var(--page-bg);
    padding: 0 0 6.5rem;
}

.footer-cta .container {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    max-width: 1180px;
}

.footer-cta h2 {
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
    background: none;
}

.footer-cta p { color: rgba(255, 255, 255, 0.85); }

.footer-cta .cta-button {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--green-dark);
}

.footer-cta .cta-button::before { background: var(--sage); }
.footer-cta .cta-button:hover { color: var(--green-dark); box-shadow: 0 0 30px rgba(255, 255, 255, 0.35); }

@media (max-width: 760px) {
    .footer-cta .container { padding: 2.5rem 1.5rem; border-radius: 16px; }
}

/* Футер – на едином полотне, финальный акцент остаётся за зелёной CTA-картой */
.footer {
    background: var(--page-bg);
    border-top: 1px solid var(--card-border);
}

.footer .footer-bottom p,
.footer p { color: var(--ink-muted); }

.footer .footer-note { color: var(--ink-muted); }

.footer a, .footer .footer-link { color: var(--green); }
.footer a:hover { color: var(--green-dark); }

/* Футер – на едином полотне; финальный акцент остаётся за зелёной CTA-картой */
.footer {
    background: var(--page-bg);
    border-top: 1px solid var(--card-border);
}

.footer p, .footer .footer-note { color: var(--ink-muted); }
.footer a, .footer .footer-link { color: var(--green); }
.footer a:hover { color: var(--green-dark); }

/* ==========================================
   Заголовок главной: динамическое название вуза
   ========================================== */
.hero-title {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: #202844;
}
/* ширину даёт .container (1400px) – отдельного ограничителя не ставим */
.hero-content { text-align: left; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(480px, 1fr) minmax(0, 420px);
    gap: 3.5rem;
    align-items: center;
}

.hero-copy .hero-description {
    margin: 0 0 2.6rem;
    max-width: 46ch;
}

.hero-line {
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
}
.hero-uni {
    display: inline-block;
    vertical-align: baseline;
    box-sizing: content-box;
    text-align: left;
    white-space: nowrap;
    color: var(--green);
}
.hero-uni-text {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.hero-uni-text.is-out {
    opacity: 0;
    transform: translateY(-0.25em);
}
@media (max-width: 600px) {
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
        line-height: 1.22;
    }
    .hero-line {
        white-space: normal;
    }
    .hero-uni {
        display: block;
        width: auto !important;
        margin-top: 0.12em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-uni-text { transition: none; }
}

/* ==========================================
   НА КАКОМ ЭТАПЕ ВАША РАБОТА: три продукта
   ========================================== */
.stages::after { background: linear-gradient(to bottom, transparent 0%, rgba(20, 27, 52, 0.035) 100%); }

.stages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    position: relative;
}

/* Линия пути работы: от замысла к защите */
.stages-grid::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 1px;
    /* линия выходит за крайние точки и растворяется, а не обрывается на них */
    background: linear-gradient(90deg,
        transparent 0,
        var(--card-border) 9%,
        var(--card-border) 91%,
        transparent 100%);
}

.stage-dot {
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 auto 1.8rem;
    border: 1.5px solid var(--green);
    border-radius: 50%;
    background: var(--page-bg);
    opacity: .5;
    position: relative;
    transition: background .2s ease, opacity .2s ease, transform .2s ease;
}

/* Наведение на колонку подсвечивает её название и точку на линии */
.stage:hover .stage-dot {
    background: var(--green);
    opacity: 1;
    transform: scale(1.15);
}

.stage:hover .stage-name { color: var(--green); }

.stage {
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0 0;
    text-align: center;
}

.stage-name { transition: color .2s ease; }

/* вертикальных разделителей нет: колонки разводит только промежуток */

.stage-num {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    font-variant-numeric: tabular-nums;
    color: var(--ink-muted);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.stage-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.55rem;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 1.2rem;
}

.stage-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink-muted);
    margin-bottom: 2rem;
    max-width: 26ch;
}

.stage-spec {
    margin: 0 0 1.8rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--card-border);
}

.stage-spec dt {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    opacity: 0.75;
    margin-bottom: 0.4rem;
}

.stage-spec dd {
    margin: 0 0 1rem;
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--ink);
}

.stage-spec dd:last-child { margin-bottom: 0; }

.stage-spec dd.stage-price {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15rem;
    color: var(--green);
    font-variant-numeric: tabular-nums;
}

.stage-price {
    margin-top: auto;
    align-self: center;
    display: inline-flex;
    align-items: baseline;
    gap: .4rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: 'Golos Text', system-ui, sans-serif;
    color: var(--green);
    transition: color .2s ease;
}

.stage-price-from {
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink-muted);
}

.stage-price-value {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stage-price-go {
    font-size: 1.05rem;
    transition: transform .2s ease;
}

.stage-price:hover { color: var(--green-dark); }
.stage-price:hover .stage-price-go { transform: translateX(3px); }
.stage:hover .stage-price-go { transform: translateX(3px); }

.stages-note {
    margin: 3rem auto 0;
    max-width: 760px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem 1.6rem;
    border: 1px solid rgba(59, 79, 216, .2);
    border-radius: 16px;
    background: var(--sage);
}

.stages-note svg {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-top: .15rem;
    color: var(--green);
}

.stages-note p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
    color: var(--ink);
}

@media (max-width: 700px) {
    .stages-note { padding: 1.1rem 1.2rem; gap: .8rem; }
    .stages-note p { font-size: .9rem; }
}

.stages-other {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.stages-other p {
    font-size: 1rem;
    color: var(--ink-muted);
    max-width: 52ch;
    margin: 0;
}

.stages-other-btn {
    background: var(--green);
    border: 1px solid var(--green);
    color: #FFFFFF;
    font-family: 'Golos Text', 'Inter', system-ui, sans-serif;
    min-height: 52px;
    padding: 0 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.stages-other-btn:hover {
    background: var(--green-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(59, 79, 216, 0.28);
}

.modal-context {
    background: var(--sage);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    color: var(--green);
    margin: -0.5rem 0 1.2rem;
}

@media (max-width: 1024px) {
    .stages-grid { gap: 1.8rem; }
    .stage-name { font-size: 1.35rem; }
}

@media (max-width: 820px) {
    .stages-grid::before { display: none; }
    .stage-dot { display: none; }
    .stages-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .stage { padding: 0; }
    .stage + .stage {
        border-top: 1px solid var(--card-border);
        padding-top: 2.2rem;
    }
}

/* ==========================================================
   КАК ПРОХОДИТ РАБОТА: одна исследовательская траектория
   ========================================================== */
.track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.6rem;
    position: relative;
}

/* линия траектории проходит через точки и растворяется по краям */
.track::before {
    content: '';
    position: absolute;
    top: 93px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0,
        var(--card-border) 8%,
        var(--card-border) 92%,
        transparent 100%);
}

.track-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* артефакт исследования: собирается от заметок к готовой рукописи */
.track-art {
    height: 72px;
    display: flex;
    align-items: center;
    color: var(--green);
    opacity: .42;
    transition: opacity .25s ease, transform .25s ease;
}

.track-art svg {
    width: 64px;
    height: 48px;
    display: block;
}

.track-dot {
    display: block;
    align-self: center;
    width: 11px;
    height: 11px;
    margin: 16px 0 1.5rem;
    border: 1.5px solid var(--green);
    border-radius: 50%;
    background: var(--sand);
    opacity: .5;
    transition: background .22s ease, opacity .22s ease, transform .22s ease;
}

.track-num {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    font-variant-numeric: tabular-nums;
    color: var(--ink-muted);
    opacity: .7;
    margin-bottom: .45rem;
}

.track-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.12rem;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: .6rem;
    transition: color .22s ease;
}

.track-text {
    font-size: .88rem;
    line-height: 1.55;
    color: var(--ink-muted);
    margin: 0;
}

.track-step:hover .track-art { opacity: .85; transform: translateY(-2px); }
.track-step:hover .track-dot { background: var(--green); opacity: 1; transform: scale(1.15); }
.track-step:hover .track-name { color: var(--green); }

.track-cta {
    margin-top: 3rem;
    text-align: center;
}

.track-cta .cta-button span {
    display: inline-block;
    transition: transform .2s ease;
}

.track-cta .cta-button:hover span { transform: translateX(3px); }

@media (max-width: 1100px) {
    .track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 1.6rem; }
    .track::before { display: none; }
    .track-dot { display: none; }
    .track-art { height: 60px; opacity: .5; }
}

@media (max-width: 700px) {
    .track { grid-template-columns: 1fr; gap: 2rem; }
    .track-art { height: 52px; }
    .track-art svg { width: 54px; height: 40px; }
    .track-cta .cta-button { width: 100%; }
}

/* ==========================================================
   ЧТО ВЫ ПОЛУЧАЕТЕ КРОМЕ РЕЗУЛЬТАТА
   ========================================================== */
.perks::after { background: linear-gradient(to bottom, transparent 0%, rgba(20, 27, 52, 0.035) 100%); }

.perks-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.perks-col {
    display: flex;
    flex-direction: column;
}

.perk + .perk {
    margin-top: 1.9rem;
    padding-top: 1.9rem;
    border-top: 1px solid var(--card-border);
}

.perk-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    color: var(--green);
    opacity: .5;
    margin-bottom: .5rem;
}

.perk-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: .5rem;
}

.perk-text {
    font-size: .9rem;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0;
}

/* лучи от центра к пунктам */
.perks-rays {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.perks-rays line {
    stroke: var(--card-border);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.perk { position: relative; z-index: 1; background: var(--page-bg); }

/* центральный медальон с Ψ */
.perks-art {
    position: relative;
    margin: 0;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    color: var(--green);
}

.perks-art::before {
    content: '';
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--sage) 0%, rgba(231, 233, 252, 0) 72%);
}

.perks-ring {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1px dashed rgba(59, 79, 216, .35);
    animation: perksSpin 46s linear infinite;
}

.perks-ring::before {
    content: '';
    position: absolute;
    inset: 9%;
    border-radius: 50%;
    border: 1px solid rgba(59, 79, 216, .16);
}

@keyframes perksSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .perks-ring { animation: none; }
}

.perks-psi {
    position: relative;
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: clamp(4rem, 7vw, 6.4rem);
    line-height: 1;
    color: var(--green);
    opacity: .5;
}

@media (max-width: 1100px) {
    .track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 1.6rem; }
    .track::before { display: none; }
    .track-dot { display: none; }
    .track-art { height: 60px; opacity: .5; }
}

@media (max-width: 700px) {
    .track { grid-template-columns: 1fr; gap: 2rem; }
    .track-art { height: 52px; }
    .track-art svg { width: 54px; height: 40px; }
    .track-cta .cta-button { width: 100%; }
}

/* ==========================================================
   ЧТО ВЫ ПОЛУЧАЕТЕ КРОМЕ РЕЗУЛЬТАТА
   ========================================================== */
.perks::after { background: linear-gradient(to bottom, transparent 0%, rgba(20, 27, 52, 0.035) 100%); }

.perks-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.perks-col {
    display: flex;
    flex-direction: column;
}

.perk + .perk {
    margin-top: 1.9rem;
    padding-top: 1.9rem;
    border-top: 1px solid var(--card-border);
}

.perk-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    color: var(--green);
    opacity: .5;
    margin-bottom: .5rem;
}

.perk-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: .5rem;
}

.perk-text {
    font-size: .9rem;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0;
}

/* лучи от центра к пунктам */
.perks-rays {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.perks-rays line {
    stroke: var(--card-border);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.perk { position: relative; z-index: 1; background: var(--page-bg); }

/* центральный медальон с Ψ */
.perks-art {
    margin: 0;
    position: relative;
    display: flex;
    justify-content: center;
    color: var(--green);
}

.perks-art::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, var(--sage) 0%, transparent 70%);
}

.perks-art svg {
    position: relative;
    width: 100%;
    max-width: 260px;
    height: auto;
    opacity: .55;
}

@media (max-width: 1100px) {
    .perks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem; }
    .perks-rays { display: none; }
    .perks-art { order: -1; grid-column: 1 / -1; aspect-ratio: auto; height: 190px; }
    .perks-ring { inset: auto; width: 170px; height: 170px; }
    .perks-psi { font-size: 4.4rem; }
}

@media (max-width: 700px) {
    .perks-grid { grid-template-columns: 1fr; gap: 1.9rem; }
    .perks-col + .perks-col .perk:first-child {
        margin-top: 1.9rem;
        padding-top: 1.9rem;
        border-top: 1px solid var(--card-border);
    }
}

/* ==========================================================
   КТО РАБОТАЕТ НАД ИССЛЕДОВАНИЕМ: роли без лиц
   ========================================================== */
.team-note {
    max-width: 68ch;
    margin: -1.6rem auto 3rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--ink-muted);
}

.experts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.expert {
    background: var(--paper);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.6rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.expert:hover {
    border-color: rgba(59, 79, 216, .35);
    box-shadow: 0 14px 32px rgba(20, 27, 52, .08);
}

.expert-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 1.1rem;
    color: var(--green);
    opacity: .55;
    transition: opacity .22s ease;
}

.expert:hover .expert-icon { opacity: .9; }

.expert-icon svg { width: 100%; height: 100%; display: block; }

.expert-role {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: .4rem;
}

.expert-cred {
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--green);
    margin: 0 0 .6rem;
}

.expert-task {
    font-size: .88rem;
    line-height: 1.55;
    color: var(--ink-muted);
    margin: 0;
}

.team-summary {
    margin: 2.4rem 0 0;
    text-align: center;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.1rem;
    color: var(--ink);
}

.team-summary strong { color: var(--green); font-weight: 700; }

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

@media (max-width: 700px) {
    .experts { grid-template-columns: 1fr; gap: 1.1rem; }
    .team-note { margin-bottom: 2.2rem; text-align: left; }
}

/* ==========================================================
   О НАС: тезисы, гарантии, услуги
   ========================================================== */
.about::after { background: linear-gradient(to bottom, transparent 0%, var(--page-bg) 100%); }

.about-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: 720px;
    margin: 0 auto 3.2rem;
    padding: 2.6rem 2.8rem;
    /* плотное паспарту, как у рамки диплома */
    border: 10px solid var(--sage);
    border-radius: 3px;
    background: var(--paper);
    box-shadow: 0 18px 44px rgba(20, 27, 52, .09);
}

/* тонкая внутренняя линия внутри паспарту */
.about-card::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(59, 79, 216, .32);
    pointer-events: none;
    z-index: 1;
}

/* Ψ водяным знаком за текстом */
.about-card-psi {
    position: absolute;
    right: 0.14em;
    bottom: 0.06em;
    z-index: 0;
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: 5.4rem;
    line-height: 1;
    color: var(--green);
    opacity: .08;
    pointer-events: none;
}

.about-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    text-align: center;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.05rem, 1.5vw, 1.24rem);
    line-height: 1.6;
    color: var(--ink);
}

.about-card strong {
    color: var(--green);
    font-weight: 700;
}

@media (max-width: 700px) {
    .about-card {
        padding: 1.6rem 1.3rem;
        margin-bottom: 2.2rem;
        border-width: 7px;
    }
    .about-card::before { inset: 5px; }
    .about-card-psi { font-size: 4rem; }
}

.about-claims {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 3.5rem;
}

.about-claim {
    padding: 1.7rem 0;
    border-top: 1px solid var(--card-border);
}

.about-claim:nth-child(-n+2) { border-top: 0; padding-top: 0; }

.about-claim h3 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.12rem;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: .5rem;
}

.about-claim p {
    font-size: .92rem;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0;
}

.about-block { margin-top: 3.4rem; }

.about-heading {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.45rem;
    color: var(--ink);
    margin-bottom: 1.4rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--card-border);
}

.about-guarantees {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 3.5rem;
}

.about-guarantee {
    display: flex;
    gap: .8rem;
    font-size: .92rem;
    line-height: 1.6;
    color: var(--ink-muted);
}

.about-guarantee strong {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: .15rem;
}

.about-check {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: .2rem;
    color: var(--green);
}

.about-check svg { width: 100%; height: 100%; display: block; }

.about-services-lead {
    font-size: .95rem;
    color: var(--ink-muted);
    margin: 0 0 1.1rem;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.about-tag {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 1.1rem;
    border: 1px solid rgba(59, 79, 216, .28);
    /* тот же радиус, что у кнопок – теги кликабельны */
    border-radius: 12px;
    background: var(--paper);
    font-family: 'Golos Text', 'Inter', system-ui, sans-serif;
    font-size: .88rem;
    font-weight: 500;
    color: var(--green);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.about-tag:hover {
    background: var(--green);
    border-color: var(--green);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 2rem;
    margin-top: 1.5rem;
}

.about-links a {
    font-size: .95rem;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
    border-bottom: 1px solid rgba(59, 79, 216, .35);
    transition: color .2s ease, border-color .2s ease;
}

.about-links a:hover { color: var(--green-dark); border-color: var(--green-dark); }

@media (max-width: 820px) {
    .about-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: 720px;
    margin: 0 auto 3.2rem;
    padding: 2.6rem 2.8rem;
    /* плотное паспарту, как у рамки диплома */
    border: 10px solid var(--sage);
    border-radius: 3px;
    background: var(--paper);
    box-shadow: 0 18px 44px rgba(20, 27, 52, .09);
}

/* тонкая внутренняя линия внутри паспарту */
.about-card::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(59, 79, 216, .32);
    pointer-events: none;
    z-index: 1;
}

/* Ψ водяным знаком за текстом */
.about-card-psi {
    position: absolute;
    right: 0.14em;
    bottom: 0.06em;
    z-index: 0;
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: 5.4rem;
    line-height: 1;
    color: var(--green);
    opacity: .08;
    pointer-events: none;
}

.about-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    text-align: center;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.05rem, 1.5vw, 1.24rem);
    line-height: 1.6;
    color: var(--ink);
}

.about-card strong {
    color: var(--green);
    font-weight: 700;
}

@media (max-width: 700px) {
    .about-card {
        padding: 1.6rem 1.3rem;
        margin-bottom: 2.2rem;
        border-width: 7px;
    }
    .about-card::before { inset: 5px; }
    .about-card-psi { font-size: 4rem; }
}

.about-claims { grid-template-columns: 1fr; gap: 0; }
    .about-claim:nth-child(2) { border-top: 1px solid var(--card-border); padding-top: 1.7rem; }
    .about-guarantees { grid-template-columns: 1fr; gap: 1.3rem; }
}

/* ==========================================================
   ВЕРХНЯЯ ПОЛОСКА
   ========================================================== */
.topbar-psi {
    display: inline-block;
    margin-left: .3em;
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: 1.24em;
    line-height: 1;
    vertical-align: -0.1em;
    opacity: 1;
}

.topbar-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: opacity .2s ease;
}

.topbar-link:hover { opacity: .78; }
.topbar-link:hover .topbar-psi { opacity: 1; }

.topbar {
    background: var(--sage);
    color: var(--green);
    font-size: .8rem;
    line-height: 1.4;
    text-align: center;
    padding: .5rem 0;
}

/* ==========================================================
   МОБИЛЬНЫЙ ФУНДАМЕНТ: таб-бар и плотная вёрстка
   ========================================================== */
.mobile-bar { display: none; }

@media (max-width: 700px) {
    /* --- нижний таб-бар --- */
    .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--card-border);
        box-shadow: 0 -8px 24px rgba(20, 27, 52, .07);
    }

    .mobile-bar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 56px;
        padding: .4rem 0;
        border: 0;
        background: none;
        color: var(--green);
        font-family: 'Golos Text', 'Inter', system-ui, sans-serif;
        font-size: .68rem;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
    }

    .mobile-bar-item svg { width: 22px; height: 22px; }
    .mobile-bar-item:active { background: var(--sage); }

    body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
    .floating-tg { display: none; }
    body.modal-open .mobile-bar,
    body.menu-open .mobile-bar { display: none; }

    /* --- компактная шапка --- */
    .topbar { font-size: .72rem; padding: .4rem 0; }
    .navbar { padding: .4rem 0; }
    .navbar .container { min-height: 48px; }
    .navbar .cta-button-nav { display: none; }

    /* шапка: срочный заказ слева, логотип по центру, меню справа */
    .navbar-content {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
    }

    .nav-urgent {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: -10px;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: none;
        color: var(--green);
        cursor: pointer;
    }

    .nav-urgent svg { width: 24px; height: 24px; }
    .nav-urgent:active { background: var(--sage); }

    .navbar .logo { justify-content: center; }
    .mobile-menu-toggle { justify-self: end; margin-right: -10px; }

    /* --- плотная вертикальная сетка --- */
    section { padding: 2.6rem 0; }
    .section-title { font-size: clamp(1.5rem, 6.5vw, 1.9rem); margin-bottom: .7rem; }
    .subtitle-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--green);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid rgba(59, 79, 216, .35);
    transition: color .2s ease, border-color .2s ease;
}

.subtitle-link:hover { color: var(--green-dark); border-color: var(--green-dark); }

.section-subtitle { font-size: 1rem; margin-bottom: 1.8rem; }

    /* --- состояния для касания --- */
    .stage:active .stage-name,
    .track-step:active .track-name { color: var(--green); }
    .expert:active { border-color: rgba(59, 79, 216, .35); }
}

/* ==========================================================
   КАК ВЫГЛЯДИТ РЕЗУЛЬТАТ: страницы проспектуса
   ========================================================== */
.showcase {
    background: linear-gradient(180deg, var(--page-bg) 0%, #E6E9FB 22%, #E6E9FB 78%, var(--page-bg) 100%);
}

.showcase-stage {
    display: grid;
    grid-template-columns: 1fr 1.24fr 1fr;
    align-items: center;
    gap: 1.6rem;
    max-width: 940px;
    margin: 0 auto;
    perspective: 1400px;
}

.sheet {
    margin: 0;
    text-align: center;
}

.sheet-paper {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(20, 27, 52, .1);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .35s ease;
}

.sheet-paper svg { display: block; width: 100%; height: auto; }

.sheet--main .sheet-paper {
    box-shadow: 0 30px 60px rgba(20, 27, 52, .18);
}

.sheet--side .sheet-paper {
    box-shadow: 0 18px 40px rgba(20, 27, 52, .12);
}

.sheet--left .sheet-paper { transform: rotate(-4deg) translateY(14px); }
.sheet--right .sheet-paper { transform: rotate(4deg) translateY(14px); }

.showcase-stage:hover .sheet--left .sheet-paper { transform: rotate(-6deg) translateY(6px); }
.showcase-stage:hover .sheet--right .sheet-paper { transform: rotate(6deg) translateY(6px); }
.showcase-stage:hover .sheet--main .sheet-paper { transform: translateY(-6px); }

.sheet figcaption {
    margin-top: 1rem;
    font-size: .84rem;
    line-height: 1.45;
    color: var(--ink-muted);
}

.sheet--main figcaption {
    font-weight: 600;
    color: var(--ink);
}

.showcase-note {
    margin: 2.4rem auto 0;
    max-width: 52ch;
    text-align: center;
    font-size: .85rem;
    color: var(--ink-muted);
    opacity: .8;
}

@media (max-width: 860px) {
    .showcase-stage { grid-template-columns: 1fr; gap: 2rem; max-width: 420px; }
    .sheet--left .sheet-paper,
    .sheet--right .sheet-paper { transform: none; }
    .sheet--side { display: none; }
}

/* ==========================================================
   КАК УСТРОЕНА ОПЛАТА: шкала платежа
   ========================================================== */
.assure { background: var(--page-bg); }

.pay {
    max-width: 940px;
    margin: 0 auto;
}

.pay-steps {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 1rem;
}

.pay-step {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    position: relative;
    padding-bottom: 1rem;
}

/* вертикальная засечка от вехи к шкале */
.pay-step::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1px;
    height: .7rem;
    background: var(--green);
    opacity: .45;
}

.pay-num {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2.4rem, 4.4vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    color: var(--green);
    font-variant-numeric: tabular-nums;
}

.pay-step--b .pay-num { opacity: .75; }

.pay-when {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink);
}

.pay-note {
    font-size: .88rem;
    line-height: 1.55;
    color: var(--ink-muted);
    max-width: 34ch;
}

/* шкала: доли соответствуют платежам */
.pay-bar {
    display: flex;
    gap: 4px;
    height: 10px;
}

.pay-seg { border-radius: 999px; }
.pay-seg--a { flex: 4; background: var(--green); }
.pay-seg--b { flex: 6; background: var(--sage); }

/* условия строкой, без карточек */
.pay-terms {
    list-style: none;
    max-width: 940px;
    margin: 2.2rem auto 0;
    padding: 1.4rem 0 0;
    border-top: 1px solid var(--card-border);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.8rem;
}

.pay-terms li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .9rem;
    line-height: 1.45;
    color: var(--ink);
}

.pay-terms svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: .1rem;
    color: var(--green);
}

.assure-cta { margin-top: 2.6rem; text-align: center; }

@media (max-width: 900px) {
    .pay-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pay-note { font-size: .84rem; }
}

@media (max-width: 620px) {
    .pay-steps { grid-template-columns: 1fr; gap: 1.2rem; }
    .pay-step { padding-bottom: 0; }
    .pay-step::after { display: none; }
    .pay-num { font-size: 2.2rem; }
    .pay-bar { margin-top: .4rem; }
    .pay-terms { grid-template-columns: 1fr; gap: .7rem; margin-top: 1.6rem; padding-top: 1.2rem; }
    .pay-terms li { font-size: .88rem; }
    .assure-cta .cta-button { width: 100%; }
}

/* ==========================================================
   СТАТЬИ И ИНСТРУМЕНТЫ
   ========================================================== */
.resources { background: var(--sand); }

/* инструмент – широкая полоса, он один и он не статья */
.tool {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    padding: 1.5rem 1.8rem;
    border: 1px solid rgba(59, 79, 216, .24);
    border-radius: 16px;
    background: var(--sage);
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tool:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 79, 216, .5);
    box-shadow: 0 16px 36px rgba(32, 40, 68, .1);
}

.tool-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--paper);
    color: var(--green);
}

.tool-icon svg { width: 26px; height: 26px; }

.tool-body { display: flex; flex-direction: column; gap: .2rem; }

.tool-kicker {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
}

.tool-body strong {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15rem;
    color: var(--ink);
}

.tool-text {
    font-size: .9rem;
    line-height: 1.55;
    color: var(--ink-muted);
    max-width: 60ch;
}

.tool-go {
    margin-left: auto;
    font-size: 1.3rem;
    color: var(--green);
    transition: transform .22s ease;
}

.tool:hover .tool-go { transform: translateX(5px); }

/* заголовок списка статей */
.arts-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 2.6rem 0 1.2rem;
}

.arts-head h3 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.3rem;
    color: var(--ink);
}

.arts-all {
    font-size: .93rem;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
    white-space: nowrap;
}

.arts-all:hover { color: var(--green-dark); }

/* карточки статей */
.arts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.art {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.4rem 1.4rem 1.25rem;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: var(--paper);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* линия прочерчивается сверху при наведении */
.art::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--green);
    transition: width .32s cubic-bezier(.4, 0, .2, 1);
}

.art:hover::before { width: 100%; }

.art:hover {
    border-color: rgba(59, 79, 216, .38);
    box-shadow: 0 14px 30px rgba(32, 40, 68, .08);
}

.art-tag {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--green);
    opacity: .75;
    transition: opacity .2s ease;
}

.art-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.art:hover .art-tag { opacity: 1; }

.art-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.14rem;
    line-height: 1.35;
    color: var(--ink);
    transition: color .2s ease;
}

.art:hover .art-title { color: var(--green); }

.art-go {
    margin-top: auto;
    padding-top: .8rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-muted);
    transition: color .2s ease;
}

.art:hover .art-go { color: var(--green); }

.art-go i { font-style: normal; display: inline-block; transition: transform .2s ease; }
.art:hover .art-go i { transform: translateX(4px); }

/* карточка-инструмент выделяется подложкой */
.art--tool {
    background: var(--sage);
    border-color: rgba(59, 79, 216, .28);
}

.art--tool .art-tag { opacity: 1; }

@media (max-width: 900px) {
    .arts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .arts { grid-template-columns: 1fr; }
    .arts-head { flex-direction: column; align-items: center; gap: .4rem; text-align: center; }
    .tool { padding: 1.2rem; }
}

/* ==========================================================
   КОНТАКТЫ И СВЯЗЬ
   ========================================================== */
.contacts { background: var(--page-bg); }

.contacts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    max-width: 980px;
    margin: 0 auto;
    align-items: start;
}

.contacts-line {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--card-border);
    text-decoration: none;
    color: inherit;
}

.contacts-line svg {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: .1rem;
    color: var(--green);
}

.contacts-line span {
    font-size: .93rem;
    line-height: 1.55;
    color: var(--ink-muted);
}

.contacts-line strong {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .15rem;
}

.contacts-line--tg:hover strong { color: var(--green); }

.contacts-note {
    margin: 1.4rem 0 0;
    font-size: .85rem;
    line-height: 1.6;
    color: var(--ink-muted);
    opacity: .85;
}

.contacts-form {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    background: var(--paper);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 16px 40px rgba(32, 40, 68, .07);
}

/* поля с «плавающей» подписью */
.field { position: relative; }

.field input,
.field textarea {
    width: 100%;
    padding: 1.5rem .95rem .6rem;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: var(--paper);
    font-family: 'Golos Text', system-ui, sans-serif;
    font-size: .95rem;
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease;
    resize: vertical;
}

.field textarea { min-height: 96px; padding-top: 1.7rem; }

.field label {
    position: absolute;
    left: .95rem;
    top: 1.05rem;
    font-size: .95rem;
    color: var(--ink-muted);
    pointer-events: none;
    transition: transform .16s ease, font-size .16s ease, color .16s ease;
    transform-origin: left top;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(59, 79, 216, .14);
}

.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
    transform: translateY(-.62rem) scale(.78);
    color: var(--green);
}

/* согласие */
.consent {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: .2rem 0 .4rem;
    cursor: pointer;
}

.consent input { position: absolute; opacity: 0; width: 0; height: 0; }

.consent-box {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: .1rem;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    background: var(--paper);
    position: relative;
    transition: background .16s ease, border-color .16s ease;
}

.consent-box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .16s ease;
}

.consent input:checked + .consent-box {
    background: var(--green);
    border-color: var(--green);
}

.consent input:checked + .consent-box::after { transform: rotate(45deg) scale(1); }
.consent input:focus-visible + .consent-box { box-shadow: 0 0 0 3px rgba(59, 79, 216, .18); }

.consent-text {
    font-size: .85rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

.consent-text a { color: var(--green); }

.contacts-form textarea {
    width: 100%;
    resize: vertical;
    font-family: inherit;
}

.contacts-submit { width: 100%; margin-top: .4rem; }

.contacts-status {
    margin: .9rem 0 0;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--ink-muted);
    min-height: 1.2em;
}

.contacts-status.is-ok { color: var(--green); font-weight: 600; }
.contacts-status.is-error { color: var(--red); }

@media (max-width: 860px) {
    .contacts-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .contacts-form { padding: 1.3rem; }
}

/* ==========================================================
   МОБИЛЬНАЯ ВЁРСТКА: всё по центру
   ========================================================== */
@media (max-width: 700px) {
    .stage,
    .perk,
    .expert,
    .about-claim,
    .assure-item,
    .contacts-line,
    .res-article {
        text-align: center;
        align-items: center;
    }

    .stage { align-items: center; }
    .stage-list li { padding-left: 0; text-align: center; }
    .stage-list li::before { display: none; }
    .stage-spec { text-align: center; }
    .stage-link { align-self: center; }

    .perk-num { text-align: center; }

    .about-guarantee { flex-direction: column; align-items: center; text-align: center; gap: .4rem; }
    .about-tags { justify-content: center; }
    .about-links { justify-content: center; }
    .about-services-lead { text-align: center; }
    .about-heading { text-align: center; }

    .assure-item { flex-direction: column; gap: .5rem; }
    .assure-item svg { margin-top: 0; }

    .contacts-line { flex-direction: column; gap: .4rem; }
    .contacts-note { text-align: center; }
    .contacts-form { text-align: left; }

    .res-tool { flex-direction: column; align-items: center; text-align: center; }
    .res-article { align-items: center; }
    .res-all { align-self: center; }

    .team-note, .showcase-note { text-align: center; }
    .sheet figcaption { text-align: center; }
}

/* ==========================================================
   ПОШАГОВАЯ ФОРМА
   ========================================================== */
.stage--clickable { cursor: pointer; }

.wizard { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.wizard[hidden] { display: none; }

.wizard-backdrop { position: absolute; inset: 0; background: rgba(32, 40, 68, .55); backdrop-filter: blur(4px); }

.wizard-dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--paper);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(32, 40, 68, .28);
    padding: 2rem 2rem 1.6rem;
}

.wizard-close {
    position: absolute; top: 12px; right: 16px;
    border: 0; background: none; font-size: 1.9rem; line-height: 1;
    color: var(--ink-muted); cursor: pointer;
}

.wizard-kicker { margin: 0 0 .3rem; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.wizard-title { font-family: 'Lora', Georgia, serif; font-size: 1.5rem; color: var(--ink); margin: 0 0 1.2rem; }

.wizard-steps { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.6rem; }
.wizard-step {
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: .78rem; font-weight: 600;
    border: 1px solid var(--card-border); color: var(--ink-muted); background: var(--paper);
}
.wizard-step.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.wizard-step.is-done { border-color: var(--green); color: var(--green); }
.wizard-step-line { flex: 1; height: 1px; background: var(--card-border); }

.wizard-step-title { margin: 0 0 1.2rem; font-family: 'Lora', Georgia, serif; font-size: 1.1rem; color: var(--ink); }

.wizard-field { margin-bottom: 1.3rem; }
.wizard-label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .55rem; }

.wizard-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.wizard-option {
    position: relative;
    display: inline-flex; align-items: center;
    padding: .55rem 1.05rem;
    border: 1px solid var(--card-border); border-radius: 999px;
    background: #fff;
    font-size: .88rem; font-weight: 500; color: var(--ink-muted);
    cursor: pointer; user-select: none;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.wizard-option input { position: absolute; opacity: 0; pointer-events: none; }

/* галочка выезжает только у выбранного варианта */
.wizard-option::before {
    content: '';
    width: 0; height: 11px; margin-right: 0;
    flex: none; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6.4 4.4 9.8 11 2.4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6.4 4.4 9.8 11 2.4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: width .16s ease, margin-right .16s ease;
}

.wizard-option:hover { border-color: rgba(59, 79, 216, .4); background: #FBFBFF; color: var(--ink); }
.wizard-option:focus-within { box-shadow: 0 0 0 3px rgba(59, 79, 216, .16); }

.wizard-option.is-on {
    background: var(--sage); border-color: var(--green);
    color: var(--green-dark); font-weight: 600;
    box-shadow: 0 0 0 1px var(--green) inset;
}
.wizard-option.is-on::before { width: 11px; margin-right: .42rem; }
.wizard-option.is-on:hover { background: var(--sage); color: var(--green-dark); }

@media (prefers-reduced-motion: reduce) {
    .wizard-option, .wizard-option::before { transition: none; }
}

.wizard-field input[type="text"],
.wizard-field textarea {
    width: 100%;
    padding: .8rem .9rem;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: var(--page-bg);
    font-family: inherit; font-size: .92rem; color: var(--ink);
    resize: vertical;
}
.wizard-field input[type="text"]:focus,
.wizard-field textarea:focus { outline: none; border-color: var(--green); }

.wizard-file {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.1rem;
    border: 1px dashed rgba(59, 79, 216, .4);
    border-radius: 12px;
    background: var(--page-bg);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.wizard-file:hover { border-color: var(--green); }
.wizard-file input[type="file"] { position: absolute; opacity: 0; width: 0; height: 0; }

.wizard-file-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--sage);
    color: var(--green);
    font-size: 1.1rem;
    line-height: 1;
}

.wizard-file-name {
    font-size: .9rem;
    color: var(--ink-muted);
    word-break: break-all;
}

.wizard-file.is-picked { border-style: solid; border-color: var(--green); background: var(--sage); }
.wizard-file.is-picked .wizard-file-name { color: var(--ink); font-weight: 600; }
.wizard-file.is-picked .wizard-file-icon { background: var(--green); color: #fff; }

.wizard-hint {
    display: block;
    margin-top: .5rem;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

.wizard-error { display: block; margin-top: .35rem; font-size: .78rem; color: var(--red); }

.wizard-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .4rem; }
.wizard-back { border: 0; background: none; font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-muted); cursor: pointer; }
.wizard-back:hover { color: var(--green); }
.wizard-next { min-width: 190px; }

.wizard-done { text-align: center; padding: 1rem 0 .5rem; }
.wizard-done-icon { width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%; background: var(--sage); color: var(--green); display: grid; place-items: center; font-size: 1.5rem; }
.wizard-done-title { font-family: 'Lora', Georgia, serif; font-size: 1.25rem; color: var(--ink); margin: 0 0 .5rem; }
.wizard-done-text { font-size: .93rem; line-height: 1.6; color: var(--ink-muted); margin: 0; }

@media (max-width: 600px) {
    .wizard { padding: 0; align-items: stretch; }
    .wizard-dialog { width: 100%; max-height: 100vh; border-radius: 0; padding: 1.6rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); }
    .wizard-next { min-width: 0; flex: 1; }
}

/* ==========================================================
   АКЦЕНТНАЯ ФРАЗА МЕЖДУ БЛОКАМИ
   ========================================================== */
.band {
    background: var(--green);
    color: #fff;
    padding: 2.6rem 0;
}

.band .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    max-width: 1000px;
}

.band-psi {
    flex: 0 0 auto;
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: 4.4rem;
    line-height: 1;
    opacity: .5;
}

.band p {
    margin: 0;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 700px) {
    .band { padding: 2rem 0; }
    .band .container { flex-direction: column; gap: .6rem; }
    .band-psi { font-size: 3.2rem; }
    .band p { font-size: 1rem; }
}

/* призыв под частыми вопросами */
.faq-cta {
    max-width: 640px;
    margin: 2.6rem auto 0;
    padding: 2rem 2.2rem;
    text-align: center;
    border: 8px solid var(--sage);
    border-radius: 3px;
    background: var(--paper);
    position: relative;
}

.faq-cta::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(59, 79, 216, .26);
    pointer-events: none;
}

.faq-cta-title {
    position: relative;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.2rem;
    color: var(--ink);
    margin: 0 0 .5rem;
}

.faq-cta-text {
    position: relative;
    font-size: .95rem;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0 0 1.4rem;
}

.faq-cta .cta-button { position: relative; }

@media (max-width: 700px) {
    .faq-cta { padding: 1.5rem 1.2rem; border-width: 6px; }
    .faq-cta::before { inset: 5px; }
    .faq-cta .cta-button { width: 100%; }
}

/* ==========================================================
   ОТЗЫВЫ СТУДЕНТОВ
   ========================================================== */
.reviews { background: var(--page-bg); }

.revs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    max-width: 960px;
    margin: 0 auto;
}

.rev {
    position: relative;
    overflow: hidden;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 1.7rem 1.7rem 1.3rem;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: var(--paper);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.rev::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--green);
    transition: width .32s cubic-bezier(.4, 0, .2, 1);
}

.rev:hover::before { width: 100%; }

.rev:hover {
    border-color: rgba(59, 79, 216, .32);
    box-shadow: 0 14px 32px rgba(32, 40, 68, .08);
}

.rev-mark {
    width: 26px;
    height: 26px;
    margin-bottom: .9rem;
    color: var(--green);
    opacity: .55;
}

.rev-quote {
    margin: 0;
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    line-height: 1.62;
    color: var(--ink);
    /* одинаковая высота карточек независимо от длины отзыва */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rev-foot {
    margin-top: auto;
    padding-top: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--card-border);
}

.rev-meta {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.rev-link {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    font-family: 'Golos Text', system-ui, sans-serif;
    font-size: .82rem;
    font-weight: 600;
    color: var(--green);
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s ease;
}

.rev-link i {
    font-style: normal;
    display: inline-block;
    transition: transform .2s ease;
}

.rev-link:hover { color: var(--green-dark); }
.rev-link:hover i { transform: translateX(3px); }

/* просмотр скриншота во весь экран */
.shot {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: rgba(32, 40, 68, .74);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: zoom-out;
}

.shot[hidden] { display: none; }

.shot img {
    width: auto;
    max-width: min(420px, 92vw);
    max-height: 90vh;
    border-radius: 14px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}

.shot-close {
    position: absolute;
    top: .8rem;
    right: 1.4rem;
    border: 0;
    background: none;
    font-size: 2.4rem;
    line-height: 1;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 900px) {
    .revs {
        grid-template-columns: repeat(4, 82vw);
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: .4rem;
    }
    .revs::-webkit-scrollbar { display: none; }
    .rev { scroll-snap-align: center; min-height: 0; }
    .rev-quote { -webkit-line-clamp: 9; }
}

/* ==========================================================
   СТРАНИЦА БЛОГА
   ========================================================== */
.blog-hub { padding: 2.6rem 0 4.5rem; }

.hub-header {
    max-width: 760px;
    margin: 0 auto 2.8rem;
    text-align: center;
}

.hub-header h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: .9rem;
}

.hub-intro {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink-muted);
    margin: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.blog-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.5rem 1.5rem 1.3rem;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: var(--paper);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* линия прочерчивается сверху при наведении – как в блоке статей на главной */
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--green);
    transition: width .32s cubic-bezier(.4, 0, .2, 1);
}

.blog-card:hover::before { width: 100%; }

.blog-card:hover {
    border-color: rgba(59, 79, 216, .38);
    box-shadow: 0 14px 30px rgba(32, 40, 68, .08);
}

.blog-card-tag {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--green);
    opacity: .75;
    transition: opacity .2s ease;
}

.blog-card-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.blog-card:hover .blog-card-tag { opacity: 1; }

.blog-card h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.12rem;
    line-height: 1.35;
    color: var(--ink);
    margin: 0;
    transition: color .2s ease;
}

.blog-card:hover h2 { color: var(--green); }

.blog-card-desc {
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: var(--ink-muted);
}

.blog-card-meta {
    margin: auto 0 0;
    padding-top: .9rem;
    font-size: .78rem;
    color: var(--ink-muted);
    opacity: .8;
}

.blog-card-more {
    margin-top: .5rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-muted);
    transition: color .2s ease;
}

.blog-card:hover .blog-card-more { color: var(--green); }

/* первая статья – крупная */
.blog-card--lead {
    grid-column: span 2;
    padding: 2rem 2.1rem 1.7rem;
    background: var(--sage);
    border-color: rgba(59, 79, 216, .26);
}

.blog-card--lead h2 { font-size: 1.6rem; }
.blog-card--lead .blog-card-desc { font-size: .96rem; max-width: 60ch; }

@media (max-width: 1000px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card--lead { grid-column: auto; padding: 1.5rem 1.4rem 1.3rem; }
    .blog-card--lead h2 { font-size: 1.3rem; }
    .hub-header { text-align: left; margin-bottom: 2rem; }
    .hub-intro { font-size: .98rem; }
}

/* ==========================================================
   БАННЕРЫ ВНУТРИ СТАТЬИ
   ========================================================== */
.cta-inline {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 2.4rem 0;
    padding: 1.3rem 1.5rem;
    border: 1px solid rgba(59, 79, 216, .22);
    border-radius: 16px;
    background: var(--sage);
}

.cta-inline-art {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    color: var(--green);
}

.cta-inline-art svg { width: 100%; height: 100%; display: block; }

.cta-inline-body { flex: 1 1 auto; }

.cta-inline-body strong {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: .25rem;
}

.cta-inline-body p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: var(--ink-muted);
}

.cta-inline .cta-button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 1.5rem;
    font-size: .8rem;
}

/* финальный призыв в конце статьи */
.cta-final {
    position: relative;
    margin: 3rem 0 1rem;
    padding: 2.2rem 2.4rem;
    border: 8px solid var(--sage);
    border-radius: 3px;
    background: var(--paper);
    text-align: center;
}

.cta-final::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(59, 79, 216, .26);
    pointer-events: none;
}

.cta-final-art {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
    color: var(--green);
}

.cta-final-art svg { width: 100%; height: 100%; display: block; }

.cta-final h2,
.cta-final .cta-final-title {
    position: relative;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--ink);
    margin: 0 0 .6rem;
}

.cta-final p {
    position: relative;
    max-width: 52ch;
    margin: 0 auto 1.5rem;
    font-size: .96rem;
    line-height: 1.6;
    color: var(--ink-muted);
}

.cta-final .cta-button { position: relative; }

@media (max-width: 700px) {
    .cta-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: .9rem;
        padding: 1.2rem;
    }
    .cta-inline .cta-button { width: 100%; }
    .cta-final { padding: 1.6rem 1.2rem; border-width: 6px; }
    .cta-final::before { inset: 5px; }
    .cta-final .cta-button { width: 100%; }
    .cta-final-art { width: 76px; height: 76px; }
}

/* ==========================================================
   ВОПРОСЫ ВНУТРИ СТАТЬИ: как на главной
   ========================================================== */
.faq-block {
    margin: 3rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.faq-block h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 1.2rem;
}

.faq-block details {
    border: 0;
    border-bottom: 1px solid var(--card-border);
    border-radius: 0;
    background: none;
    padding: 0;
    margin: 0;
}

.faq-block details:first-of-type { border-top: 1px solid var(--card-border); }

.faq-block summary {
    position: relative;
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1.25rem 0;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--ink);
    background: none;
    border: 0;
    transition: color .2s ease;
}

.faq-block summary:hover { color: var(--green); }
.faq-block summary::-webkit-details-marker { display: none; }

/* шеврон вместо плюса */
.faq-block summary::after {
    content: '';
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: .45rem;
    border-right: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    border-radius: 2px;
    transform: rotate(45deg);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    position: static;
    top: auto;
    right: auto;
}

.faq-block details[open] summary { color: var(--green); }

.faq-block details[open] summary::after {
    transform: rotate(-135deg);
    margin-top: .75rem;
}

.faq-block details > *:not(summary) {
    margin: 0 0 1.25rem;
    font-size: .95rem;
    line-height: 1.7;
    color: var(--ink-muted);
    max-width: 68ch;
}

@media (max-width: 700px) {
    .faq-block summary { font-size: .98rem; padding: 1.05rem 0; gap: 1rem; }
    .faq-block details > *:not(summary) { font-size: .92rem; }
}

/* ---------- оценка статьи «полезно» ---------- */
.article-like {
    display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.1rem;
    margin: 2.6rem 0 2rem;
    padding: 1.3rem 0 0;
    border-top: 1px solid var(--card-border);
}
.like-q { margin: 0; font-size: .95rem; color: var(--ink); }
.like-side { display: flex; align-items: center; gap: .7rem; margin-left: auto; }
.like-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem 1.05rem;
    border: 1px solid var(--card-border); border-radius: 999px;
    background: #fff;
    font: inherit; font-size: .88rem; font-weight: 500; color: var(--ink-muted);
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.like-btn svg { width: 17px; height: 17px; flex: none; }
.like-btn svg path { transition: fill .16s ease; }
.like-btn:hover { border-color: rgba(59, 79, 216, .4); background: #FBFBFF; color: var(--ink); }
.like-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(59, 79, 216, .16); }
.like-btn.is-on {
    background: var(--sage); border-color: var(--green);
    color: var(--green-dark); font-weight: 600;
    box-shadow: 0 0 0 1px var(--green) inset;
}
.like-btn.is-on svg path { fill: currentColor; }
.like-note { font-size: .78rem; color: var(--ink-muted); }

@media (max-width: 640px) {
    .article-like { flex-direction: column; align-items: flex-start; gap: .8rem; }
    .like-side { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .like-btn, .like-btn svg path { transition: none; }
}
