/* ============================================
   KARKASON.RU — ДИЗАЙН-СИСТЕМА
   Версия: 1.3
   Две темы: Небесная (light) + Графит (dark)
   ============================================ */

/* ============================================
   1. ПЕРЕМЕННЫЕ
   ============================================ */

:root {
    /* ----- СВЕТЛАЯ ТЕМА «НЕБЕСНАЯ» (по умолчанию) ----- */
    --color-bg: #F0F4F8;
    --color-bg-surface: rgba(255, 255, 255, 0.7);
    --color-bg-card: rgba(255, 255, 255, 0.6);
    --color-bg-input: rgba(255, 255, 255, 0.8);
    --color-bg-hover: rgba(0, 102, 204, 0.03);

    --color-text-primary: #0A0E1A;
    --color-text-secondary: #2E3A4A;
    --color-text-muted: #7A8A9E;
    --color-text-inverse: #FFFFFF;

    --color-accent-1: #0066CC;
    --color-accent-2: #4A9EFF;
    --color-accent-grad: linear-gradient(135deg, #0066CC, #4A9EFF);
    --color-accent-hover: rgba(0, 102, 204, 0.15);

    --color-border: rgba(0, 102, 204, 0.08);
    --color-border-hover: rgba(0, 102, 204, 0.2);

    --color-error: #E5484D;
    --color-error-bg: rgba(229, 72, 77, 0.06);

    --color-shadow: rgba(0, 102, 204, 0.06);
    --shadow-card: 0 20px 60px rgba(0, 102, 204, 0.06);
    --shadow-btn: 0 0 40px rgba(0, 102, 204, 0.1);
    --shadow-focus: 0 0 0 4px rgba(0, 102, 204, 0.06);

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 12px;
    --radius-xs: 10px;
    --radius-round: 50%;

    --space-xxs: 4px;
    --space-xs: 6px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-xxl: 32px;
    --space-xxxl: 48px;
    --space-xxxxl: 64px;
}

[data-theme="dark"] {
    --color-bg: #14171C;
    --color-bg-surface: rgba(20, 23, 28, 0.7);
    --color-bg-card: rgba(255, 255, 255, 0.04);
    --color-bg-input: rgba(255, 255, 255, 0.05);
    --color-bg-hover: rgba(74, 158, 255, 0.05);

    --color-text-primary: #FFFFFF;
    --color-text-secondary: #A0B0C8;
    --color-text-muted: #5A6A85;
    --color-text-inverse: #0A0E1A;

    --color-accent-1: #4A9EFF;
    --color-accent-2: #7BB8FF;
    --color-accent-grad: linear-gradient(135deg, #4A9EFF, #7BB8FF);
    --color-accent-hover: rgba(74, 158, 255, 0.2);

    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(74, 158, 255, 0.3);

    --color-error: #FF6B6E;
    --color-error-bg: rgba(255, 107, 110, 0.08);

    --color-shadow: rgba(0, 0, 0, 0.3);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-btn: 0 0 40px rgba(74, 158, 255, 0.15);
    --shadow-focus: 0 0 0 4px rgba(74, 158, 255, 0.1);
}

/* ============================================
   2. БАЗОВЫЕ СТИЛИ
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    background: var(--color-bg);
    color: var(--color-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-accent-1); border-radius: 2px; }

::selection { background: var(--color-accent-1); color: var(--color-text-inverse); }

:focus-visible { outline: 2px solid var(--color-accent-1); outline-offset: 2px; border-radius: 4px; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent-1); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-accent-2); }

/* ============================================
   3. КОНТЕЙНЕР
   ============================================ */

.container {
    max-width: 1200px;
    width: 92%;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (min-width: 768px) { .container { padding: 0 var(--space-xxl); } }
@media (min-width: 1200px) { .container { padding: 0 var(--space-xxxl); } }

/* ============================================
   4. ПРОГРЕСС-БАР
   ============================================ */

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--color-accent-grad);
    z-index: 9999;
    transition: width 0.2s ease;
}

/* ============================================
   5. ХЕДЕР
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-sm) 0;
    background: var(--color-bg-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--color-border);
    transition: padding 0.4s ease, box-shadow 0.4s ease;
}

.header-scrolled {
    padding: var(--space-xs) 0;
    box-shadow: 0 4px 40px var(--color-shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 92%;
    margin: 0 auto;
}

/* П.2 — печатающийся текст под логотипом */
.logo {
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    transition: transform 0.3s ease;
}
.logo:hover { transform: scale(1.02); }

.logo-main {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    line-height: 1;
}

.logo-accent { color: var(--color-accent-1); }

.logo-typing {
    font-size: clamp(0.65rem, 0.75vw, 0.8rem);
    font-weight: 400;
    color: var(--color-text-secondary);
    border-right: 1.5px solid var(--color-accent-1);
    padding-right: 3px;
    animation: blink 0.8s step-end infinite;
    white-space: nowrap;
    min-height: 1.2em;
    display: inline-block;
    letter-spacing: 0.01em;
}

@keyframes blink {
    0%, 100% { border-color: var(--color-accent-1); }
    50% { border-color: transparent; }
}

.themes {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-round);
    border: 1.5px solid var(--color-border);
    background: var(--color-bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.theme-btn:hover {
    transform: scale(1.1);
    border-color: var(--color-accent-1);
}
.theme-btn:active { transform: scale(0.92); }
.theme-btn.active {
    border-color: var(--color-accent-1);
    box-shadow: 0 0 20px var(--color-accent-1);
}

.theme-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--color-text-secondary);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
    pointer-events: none;
}
.theme-btn:hover svg,
.theme-btn.active svg {
    stroke: var(--color-accent-1);
}

@media (max-width: 480px) {
    .logo-main { font-size: 0.95rem; }
    .logo-typing { font-size: 0.55rem; }
}

/* ============================================
   6. ФУТЕР (п.5 — больше не fixed)
   ============================================ */

.footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    background: var(--color-bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    z-index: 10;
}

.footer-text {
    font-size: clamp(0.75rem, 0.8vw, 0.85rem);
    color: var(--color-text-muted);
    line-height: 1.8;
}

.footer-text a { color: var(--color-accent-1); transition: color 0.3s ease; }
.footer-text a:hover { color: var(--color-accent-2); }

.footer-divider {
    display: inline-block;
    margin: 0 var(--space-xs);
    color: var(--color-text-muted);
    opacity: 0.3;
}

.footer-disclaimer {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ============================================
   7. COOKIE-БАННЕР (п.5 — не перекрывает)
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 640px;
    z-index: 9999;
    background: var(--color-bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    box-shadow: 0 20px 60px var(--color-shadow);
    animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cookie-text {
    font-size: clamp(0.8rem, 0.85vw, 0.9rem);
    color: var(--color-text-secondary);
    margin: 0;
    flex: 1;
}
.cookie-text a { color: var(--color-accent-1); font-weight: 500; text-decoration: underline; }

.cookie-btn {
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-xs);
    background: var(--color-accent-grad);
    color: var(--color-text-inverse);
    font-weight: 600;
    font-size: clamp(0.8rem, 0.85vw, 0.9rem);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
}
.cookie-btn:hover { transform: scale(1.03); box-shadow: 0 0 30px var(--color-accent-1); }

@media (max-width: 640px) {
    .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: var(--space-sm); text-align: center; }
    .cookie-btn { width: 100%; padding: var(--space-sm); }
}

/* ============================================
   8. MAIN И ЭКРАНЫ
   ============================================ */

.main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 var(--space-xxxxl);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) { .main { padding: 100px 0 var(--space-xxxl); } }
@media (max-width: 480px) { .main { padding: 90px 0 var(--space-xxl); } }

.main::before {
    content: '';
    position: absolute;
    width: 80vw;
    height: 80vw;
    top: -30%;
    right: -20%;
    background: radial-gradient(circle, var(--color-accent-1) 0%, transparent 70%);
    opacity: 0.04;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    animation: floatBg 25s ease-in-out infinite alternate;
}

@keyframes floatBg {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -40px) scale(1.1); }
}

.main-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.screen {
    display: none;
    animation: screenIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}
.screen.active { display: block; }

@keyframes screenIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   9. HERO (п.3 — заголовок в 2 цвета)
   ============================================ */

.hero-title {
    font-size: clamp(1.8rem, 4.5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
    text-align: center;
}

.hero-title .highlight {
    display: block;
    background: var(--color-accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* П.3 — печатающийся текст под заголовком тем же размером */
.hero-typing-wrapper {
    min-height: 2.6rem;
    margin-bottom: var(--space-xl);
    text-align: center;
}

.hero-typing {
    font-size: clamp(1.6rem, 4vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--color-text-secondary);
    border-right: 3px solid var(--color-accent-1);
    padding-right: 6px;
    animation: blink 0.8s step-end infinite;
    line-height: 1.1;
}

.hero-sub {
    font-size: clamp(1rem, 1.1vw, 1.2rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xxxl);
    font-weight: 400;
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   10. КАРТОЧКИ (п.4 — 2×2 на ноутбуке)
   ============================================ */

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin: var(--space-xl) 0 var(--space-xxl);
}

@media (min-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

.card-tile {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 2px solid transparent;
}

.card-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.card-tile:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-card);
}

.card-tile:hover img { transform: scale(1.05); }

.card-tile.active {
    border-color: var(--color-accent-1);
    box-shadow: 0 0 0 4px var(--color-accent-1), var(--shadow-card);
}

.card-title {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    right: var(--space-lg);
    z-index: 2;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.card-title h3 {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 700;
    margin-bottom: var(--space-xxs);
    line-height: 1.2;
}

.card-title p {
    font-size: clamp(0.7rem, 0.8vw, 0.85rem);
    opacity: 0.9;
    line-height: 1.35;
}

.screen-hint {
    text-align: center;
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: var(--color-error);
    margin-bottom: var(--space-lg);
    animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   11. ШАГ 2 — БЛОКИ
   ============================================ */

.screen-title {
    font-size: clamp(1.6rem, 2.5vw, 2.8rem);
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: var(--space-sm);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.screen-sub {
    font-size: clamp(0.95rem, 1vw, 1.1rem);
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.info-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xxl);
    align-items: start;
}

@media (min-width: 768px) {
    .info-block {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xxl);
        align-items: center;
    }
}

.info-block-media {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    aspect-ratio: 1 / 1;
    background: var(--color-bg-card);
}

.info-block-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-block-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.info-block-text h2 {
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.info-block-text p {
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.info-subtitle {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: var(--space-sm);
}

.info-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.info-list li {
    position: relative;
    padding-left: var(--space-xl);
    font-size: clamp(0.9rem, 0.95vw, 1rem);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent-grad);
}

.section-subtitle {
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    margin: var(--space-xl) 0 var(--space-md);
    line-height: 1.3;
}

.section-text {
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-lg);
    line-height: 1.6;
}

.category-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

@media (min-width: 640px) { .category-groups { grid-template-columns: repeat(3, 1fr); } }

.category-group {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    transition: all 0.3s ease;
}

.category-group:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-card);
}

.category-group-title {
    font-weight: 700;
    color: var(--color-text-primary);
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    margin-bottom: var(--space-sm);
}

.pricing-table {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.pricing-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    font-size: clamp(0.85rem, 0.95vw, 1rem);
    color: var(--color-text-secondary);
    align-items: center;
}

.pricing-row:last-child { border-bottom: none; }

@media (min-width: 768px) {
    .pricing-row { grid-template-columns: 1fr 2fr 1fr; gap: var(--space-md); }
}

.pricing-header {
    background: var(--color-bg-hover);
    font-weight: 700;
    color: var(--color-text-primary);
    font-size: clamp(0.8rem, 0.9vw, 0.95rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pricing-row strong { color: var(--color-text-primary); font-weight: 700; }

.examples-table {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.examples-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
    font-size: clamp(0.8rem, 0.9vw, 0.95rem);
    color: var(--color-text-secondary);
    align-items: center;
}

.examples-row:last-child { border-bottom: none; }

@media (min-width: 900px) {
    .examples-row { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: var(--space-md); }
}

.examples-header {
    background: var(--color-bg-hover);
    font-weight: 700;
    color: var(--color-text-primary);
    font-size: clamp(0.7rem, 0.85vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.features-line {
    text-align: center;
    font-size: clamp(0.9rem, 1vw, 1.05rem);
    font-weight: 600;
    color: var(--color-accent-1);
    margin: var(--space-xl) 0;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-hover);
    border-radius: var(--radius-sm);
    letter-spacing: 0.01em;
}

/* ============================================
   12. ШАГ 3 — ФОРМА
   ============================================ */

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 540px;
    margin: 0 auto;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-size: clamp(0.85rem, 0.9vw, 0.95rem);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xxs);
}

.form-hint {
    font-size: clamp(0.8rem, 0.85vw, 0.9rem);
    color: var(--color-text-muted);
    line-height: 1.5;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--color-bg-input);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.input-wrapper:focus-within {
    border-color: var(--color-accent-1);
    box-shadow: var(--shadow-focus);
}

.input-wrapper.error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 4px var(--color-error-bg);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.input-icon {
    padding-left: var(--space-lg);
    color: var(--color-text-muted);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.input-wrapper:focus-within .input-icon { color: var(--color-accent-1); }

.input-icon i { font-size: 1rem; width: 20px; text-align: center; }

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--space-md) var(--space-lg);
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    font-weight: 400;
    font-family: inherit;
    color: var(--color-text-primary);
    outline: none;
    min-height: 54px;
    width: 100%;
}

.input-wrapper input::placeholder { color: var(--color-text-muted); font-weight: 400; }

.field-error {
    display: none;
    font-size: clamp(0.75rem, 0.8vw, 0.85rem);
    color: var(--color-error);
    padding-left: var(--space-xxs);
    font-weight: 500;
    line-height: 1.4;
}

.field-error.show { display: block; }

.messenger-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.messenger-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xxs);
    padding: var(--space-md) var(--space-sm);
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 72px;
}

.messenger-tile:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.messenger-tile.active {
    background: var(--color-accent-grad);
    border-color: transparent;
    box-shadow: var(--shadow-btn);
    color: var(--color-text-inverse);
}

.messenger-tile i {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.messenger-tile span {
    font-size: clamp(0.7rem, 0.8vw, 0.85rem);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.messenger-tile.active i,
.messenger-tile.active span { color: var(--color-text-inverse); }

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    padding: var(--space-xxs) 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    cursor: pointer;
    background: var(--color-bg-input);
    border: 1.5px solid var(--color-border);
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked {
    background: var(--color-accent-1);
    border-color: var(--color-accent-1);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 6px;
    height: 10px;
    border-right: 2px solid var(--color-text-inverse);
    border-bottom: 2px solid var(--color-text-inverse);
    transform: rotate(45deg);
}

.checkbox-group.error input[type="checkbox"] {
    border-color: var(--color-error);
    box-shadow: 0 0 0 4px var(--color-error-bg);
}

.checkbox-text {
    font-size: clamp(0.85rem, 0.9vw, 0.95rem);
    color: var(--color-text-secondary);
    line-height: 1.45;
}

.checkbox-text a { color: var(--color-accent-1); font-weight: 500; text-decoration: underline; }

.btn-nav {
    padding: var(--space-md) var(--space-xl);
    font-size: clamp(0.9rem, 0.95vw, 1rem);
    font-weight: 600;
    font-family: inherit;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-xs);
    background: var(--color-bg-card);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    text-align: center;
}

.btn-nav:hover {
    border-color: var(--color-accent-1);
    color: var(--color-accent-1);
    transform: translateY(-1px);
}

.btn-nav:active { transform: scale(0.97); }

.btn-nav:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-nav-primary {
    background: var(--color-accent-grad);
    color: var(--color-text-inverse);
    border: none;
    box-shadow: var(--shadow-btn);
}

.btn-nav-primary:hover {
    color: var(--color-text-inverse);
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--color-accent-1);
}

.btn-nav-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.nav-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-xxl);
}

/* ============================================
   13. ШАГ 4 — СЕКЦИИ (п.7, 8, 9)
   ============================================ */

/* --- Секция 1: Офис (п.7 — современный UI/UX) --- */
.office-block {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xxl) var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.office-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent-grad);
}

.office-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-round);
    background: var(--color-accent-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-inverse);
    font-size: 1.4rem;
    box-shadow: var(--shadow-btn);
}

.office-title {
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}

.office-address {
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.office-block .btn-nav {
    width: auto;
    min-width: 280px;
}

/* --- Секция 2: Подкатегории (п.8 — заголовок) --- */
.subcategories-block {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.subcategories-title {
    font-size: clamp(1.1rem, 1.3vw, 1.3rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    text-align: center;
    letter-spacing: -0.01em;
}

.subcategories-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.subcategory-tile {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-bg-input);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-xs);
    font-size: clamp(0.85rem, 0.9vw, 0.95rem);
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
}

.subcategory-tile:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.subcategory-tile.active {
    background: var(--color-accent-grad);
    color: var(--color-text-inverse);
    border-color: transparent;
    box-shadow: var(--shadow-btn);
}

/* --- Секция 3: Дата (п.9 — отдельная секция) --- */
.date-block {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.date-title {
    font-size: clamp(1.1rem, 1.3vw, 1.3rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}

.date-sub {
    font-size: clamp(0.9rem, 0.95vw, 1rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.date-input {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    display: block;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-input);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    font-family: inherit;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 54px;
    text-align: center;
    font-weight: 500;
}

.date-input:focus {
    outline: none;
    border-color: var(--color-accent-1);
    box-shadow: var(--shadow-focus);
}

.date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: opacity(0.6);
}

[data-theme="dark"] .date-input::-webkit-calendar-picker-indicator {
    filter: invert(1) opacity(0.7);
}

/* --- Финальные кнопки --- */
.final-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0 var(--space-xxl);
}

.final-buttons .btn-nav {
    width: auto;
    min-width: 280px;
}

@media (min-width: 640px) {
    .final-buttons { flex-direction: row; justify-content: center; flex-wrap: wrap; }
}

.notification {
    display: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-xs);
    background: rgba(0, 102, 204, 0.08);
    border: 1px solid rgba(0, 102, 204, 0.2);
    color: var(--color-accent-1);
    font-size: clamp(0.85rem, 0.9vw, 0.95rem);
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    max-width: 380px;
    width: 100%;
}

.notification.show {
    display: block;
    animation: fadeSlide 0.5s ease;
}

[data-theme="dark"] .notification {
    background: rgba(74, 158, 255, 0.1);
    border-color: rgba(74, 158, 255, 0.25);
}

/* ============================================
   14. АДАПТИВ
   ============================================ */

@media (max-width: 768px) {
    .info-block { grid-template-columns: 1fr; gap: var(--space-lg); }
    .info-block-media { max-width: 500px; margin: 0 auto; }

    .pricing-row, .examples-row {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
        padding: var(--space-md);
    }

    .pricing-row > div:first-child,
    .examples-row > div:first-child {
        font-weight: 700;
        color: var(--color-text-primary);
        margin-bottom: var(--space-xs);
    }

    .category-groups { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.5rem; }
    .hero-typing { font-size: 1.3rem; }
    .hero-sub { font-size: 0.95rem; margin-bottom: var(--space-xl); }
    .screen-title { font-size: 1.4rem; }

    .nav-group {
        flex-direction: column-reverse;
        gap: var(--space-sm);
    }

    .nav-group .btn-nav { width: 100%; max-width: none; }

    .final-buttons .btn-nav,
    .office-block .btn-nav { width: 100%; min-width: 0; }

    .subcategory-tile { width: 100%; justify-content: center; }

    .info-list li { padding-left: var(--space-lg); }

    .office-block, .subcategories-block, .date-block {
        padding: var(--space-lg);
    }
}

/* ============================================
   15. ДОСТУПНОСТЬ
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .screen { animation: none !important; }
    .main::before { animation: none !important; }
}

/* ============================================
   16. СОСТОЯНИЕ "УЖЕ ОТПРАВЛЕНО"
   ============================================ */

.btn-nav.already-sent {
    opacity: 0.7;
    position: relative;
}

.btn-nav.already-sent::after {
    content: '✓';
    font-weight: 700;
    margin-left: 6px;
    font-size: 1.1em;
}

.btn-nav-primary.already-sent::after {
    color: #FFFFFF;
}

.btn-nav:not(.btn-nav-primary).already-sent::after {
    color: var(--color-accent-1);
}