/* CSS Custom Properties */
:root {
    /* Brand colors from logo */
    --bg: #12151a;
    --text: #F0F0F0;
    --muted: #9EA3AE;
    --accent: #c9a35c;
    --accent-light: #d4b16e;
    --border: #242635;
    
    /* Legacy variables for compatibility */
    --panel: #171a20;
    --primary-bg: var(--bg);
    --accent-gold: var(--accent);
    --text-primary: var(--text);
    --text-secondary: var(--muted);
    --text-muted: var(--muted);
    --card-bg: var(--panel);
    --border-color: var(--border);
    
    /* Typography */
    --font-system: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Marketplace Colors */
    --wildberries-color: #8B5CF6;
    --ozon-color: #3B82F6;
    
    /* Spacing */
    --container-max: 1280px;
    --section-padding: 60px 24px;
    --card-padding: 32px;
    --gap-small: 16px;
    --gap-medium: 24px;
    --gap-large: 48px;
    
    /* Cases Section */
    --case-card-h: 620px;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-system);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    box-shadow: none;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    z-index: 1000;
    padding: 16px 0;
}

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

.nav-brand .logo {
    display: inline-block;
    text-decoration: none;
}

.logo, .logo img {
    display: block;
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
}

.logo-img {
    height: 56px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.cta-btn {
    background: linear-gradient(180deg, var(--accent), var(--accent-light));
    color: #111;
    border: 0;
    padding: 16px 31px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    filter: brightness(.95);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 120px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 32px;
}

.hero-header {
    text-align: center;
    margin-bottom: 24px;
}

.hero-body {
    display: grid;
    grid-template-columns: 1fr 0.65fr;
    gap: 48px;
    align-items: start;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-title {
    font-size: 54px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 14px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 186px;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Marketplace accent colors */
.marketplace-accent {
    color: var(--accent-gold);
    font-weight: 700;
    text-decoration: underline;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.feature-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 16px;
    height: 48px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.3s ease;
}

.feature-item:hover {
    border-color: var(--accent-gold);
}

.feature-icon {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: start;
    margin-top: 40px;
}

.hero-woman {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(180deg, var(--accent), var(--accent-light));
    color: #111;
    border: 0;
    padding: 0 22px;
    height: 48px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    filter: brightness(.95);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border-color);
    padding: 0 22px;
    height: 48px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Stats Section */
.stats {
    padding: var(--section-padding);
    background: var(--card-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gap-large);
}

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

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Section Titles - унифицированные как у блока "Схема работы" */
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--text-primary);
}

/* Why Us Section */
.why-us {
    padding: 60px 0;
    background: var(--bg);
}

/* Section subtitle - унифицированные как у блока "Схема работы" */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.4;
    max-width: 800px;
}

.why-us-badge {
    text-align: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.why-us-badge .marketplace-accent {
    color: #D2A23B;
    font-weight: 600;
}

/* Header and lead */
.why-us .section-title {
    text-align: center;
    margin-bottom: 16px;
    font-size: 32px;
    line-height: 1.2;
    color: var(--text-primary);
}

.why-us-lead {
    text-align: center;
    margin: 0 auto 48px;
    max-width: 800px;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.4;
}

/* Cards grid */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.why-us-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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

.why-us-card:nth-child(1) { animation-delay: 0.1s; }
.why-us-card:nth-child(2) { animation-delay: 0.2s; }
.why-us-card:nth-child(3) { animation-delay: 0.3s; }
.why-us-card:nth-child(4) { animation-delay: 0.4s; }
.why-us-card:nth-child(5) { animation-delay: 0.5s; }
.why-us-card:nth-child(6) { animation-delay: 0.6s; }

.why-us-card:hover {
    border-color: #D2A23B;
    transform: translateY(-2px);
}

.why-us-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(210, 162, 59, 0.1);
    border-radius: 12px;
    color: #D2A23B;
}

.why-us-card h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.why-us-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 14px;
}

.why-us-highlight {
    color: #D2A23B;
    font-weight: 600;
}

/* CTA Section */
.why-us-cta {
    text-align: center;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.why-us-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.why-us-cta-buttons .btn-primary {
    min-width: 320px;
}

.why-us-cta-buttons .btn-secondary-ghost {
    min-width: 200px;
}

.why-us-cta-note {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0.8;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .why-us {
        padding: 48px 0 56px;
    }
    
    .why-us .section-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .why-us-lead {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 48px;
    }
    
    .why-us-card {
        padding: 24px 20px;
    }
    
    .why-us-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .why-us-cta-buttons a {
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .why-us-card h3 {
        font-size: 16px;
    }
    
    .why-us-card p {
        font-size: 13px;
    }
}

/* Mini Case Section */
.mini-case {
    padding: var(--section-padding);
    background: var(--card-bg);
}

.case-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--gap-large);
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.case-before, .case-after {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--card-padding);
}

.case-after {
    border-color: var(--accent-gold);
}

.case-before h3, .case-after h3 {
    font-size: 20px;
    margin-bottom: 24px;
    text-align: center;
}


.metric {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.metric:last-child {
    border-bottom: none;
}

.metric-label {
    color: var(--text-secondary);
}

.metric-value {
    font-weight: 600;
    color: var(--text-primary);
}

.metric-value.highlight {
    color: var(--accent-gold);
    font-weight: 700;
}


/* Comparison Section */
.comparison {
    padding: var(--section-padding);
    background: var(--card-bg);
}

.comparison-table {
    overflow-x: auto;
    margin-bottom: var(--gap-large);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--primary-bg);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--card-bg);
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table td {
    color: var(--text-secondary);
}

.highlight-column {
    background: rgba(201, 163, 92, 0.15) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    position: relative;
}

.comparison-badge {
    background: var(--accent);
    color: var(--bg);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.row-even {
    background: rgba(255, 255, 255, 0.02);
}

.row-odd {
    background: rgba(255, 255, 255, 0.04);
}

.progress-bar {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

.progress-fill {
    height: 100%;
    background: #dc3545;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-full {
    background: var(--accent) !important;
}

/* Logo accent styling */
.logo-accent {
    background: var(--accent-gold);
    color: var(--primary-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}


.comparison-conclusion {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--primary-bg);
    border-radius: 8px;
    padding: 40px;
    min-height: 200px;
}

.conclusion-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.conclusion-image {
    flex: 0 0 315px;
    text-align: center;
}

.businesswoman-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.conclusion-title {
    color: var(--accent-gold);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.conclusion-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conclusion-text p {
    margin: 0;
    color: var(--text-primary);
    font-size: 21px;
    line-height: 1.6;
    font-weight: 500;
}

/* Pricing Section */
.pricing {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--section-padding) 24px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 20px;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    min-height: 640px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--card-padding);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.pricing-card.featured {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    min-height: 28px; 
    padding: 0 10px;
    border-radius: 9999px; 
    font-size: 12px; 
    font-weight: 600; 
    letter-spacing: .02em;
}

/* Спринт — серый, спокойный */
.plan--sprint .plan-badge {
    background: transparent;
    color: #a1a1aa;
    border: 1px solid #3f3f46;
}

/* Оптимум — золотой (как и было) */
.plan--optimum .plan-badge {
    background: #eab308;           /* золото */
    color: #1c1917;                 /* тёмный текст */
    border: 1px solid #f5d34f;
}

/* Максимум — невидимый, но резервирует высоту */
.plan--max .plan-badge {
    visibility: hidden;             /* место сохраняется */
}

.plan-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pricing__subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    opacity: .9;
    margin-bottom: 16px;
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.price {
    margin: 12px 0 8px;
}

.pricing .price {
    font-size: clamp(26px, 3.6vw, 42px);
    line-height: 1.1;
    font-weight: 800;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    max-width: 100%;
    color: var(--accent-gold);
}

.pricing .price .amount {
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
}

.pricing .price .cur {
    font-weight: 800;
}

.pricing .price .extra {
    font-weight: 700;
}

.price-value {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.price-main .percent {
    font-weight: 600;
    opacity: .95;
}

.price-note {
    opacity: .8;
    font-size: 14px;
    margin-top: 4px;
    color: var(--text-secondary);
}

/* Тарифные карточки: выравнивание */
.pricing-grid {
    align-items: stretch;
}

@media (min-width: 1024px) {
    /* Строгая вертикальная сетка для тарифов на десктопе */
    .pricing-card { 
        display: grid; 
        grid-template-rows: var(--head-h) var(--price-h) 1fr auto; 
        height: 100%; 
    }
    
    .plan-head, .plan-price { 
        display: flex; 
        flex-direction: column; 
        justify-content: flex-end; 
    }
    
    .plan-head > *:first-child, .plan-price > *:first-child { 
        margin-top: 0; 
    }
    
    .plan-head > *:last-child, .plan-price > *:last-child { 
        margin-bottom: 0; 
    }

    /* если у тарифа нет бейджа — сохраняем место под него */
    .plan-badge:empty { 
        visibility: hidden; 
        min-height: 28px; /* высота под бейдж «Популярный/Старт» */ 
    }

    .plan-body { 
        margin: 0; 
    }
    
    .plan-cta { 
        align-self: end; 
        margin-top: 10px;
    }
}

/* мобильный/планшет — естественная высота */
@media (max-width: 1023.98px) {
    .pricing-card { 
        display: grid;
        grid-template-rows: auto auto 1fr auto; 
    }
    
    .plan-cta { 
        margin-top: 10px;
    }
}

/* Старый стиль убран - теперь используем .plan-body */

.plan-price {
    display: flex;
    flex-direction: column;
}

.plan-price-main {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.plan-price-note {
    opacity: .8;
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.pricing__list {
    list-style: none;
    margin-top: 16px;
    text-align: left;
    width: 100%;
    overflow: visible;
}

.pricing__list li {
    margin: 6px 0;
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto;
    white-space: normal !important;
    line-height: 1.4;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
    /* Принудительно отключаем line-clamp */
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    text-overflow: clip !important;
}

.pricing__list li:last-child {
    border-bottom: none;
}

.pricing__footer {
    margin-top: 20px;
}

/* Переопределение для новой структуры тарифов - убрано, используем Grid */

.pricing-btn {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-bg);
    padding: 16px 42px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
}

.pricing-btn:hover {
    background: var(--accent-light);
}

.btn-tg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.pricing-btn.btn-tg {
    padding: 12px 24px;
    font-size: 15px;
    margin-top: 12px;
}

/* Ensure consistent styling in footer */
.footer .pricing-btn.btn-tg {
    background: var(--accent-gold);
    color: var(--primary-bg);
}

.footer .pricing-btn.btn-tg:hover {
    background: var(--accent-light);
}

@media (max-width: 640px) {
    .btn-tg { 
        width: 100%; 
        justify-content: center; 
    }
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #e4e4e7;
    border: 1px solid #3f3f46;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 600;
    transition: .2s ease;
    text-decoration: none;
    font-size: 17px;
    width: 100%;
    text-align: center;
}

.btn-secondary:hover { 
    background: rgba(255,255,255,.04); 
    border-color: #52525b; 
}

.btn-secondary:focus { 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(161,161,170,.35); 
}

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card {
        min-height: 0;
    }
}

.pricing-note {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--card-padding);
}

.pricing-note h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pricing-note ul {
    color: var(--text-secondary);
    padding-left: 20px;
}

.pricing-note li {
    margin-bottom: 8px;
}

/* Cases Section */
.cases {
    padding: var(--section-padding);
    background: var(--bg);
}

.cases-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.cases-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.4;
    max-width: 800px;
    opacity: 0.9;
}

.cases-grid {
    display: grid !important;
    grid-template-columns: 1fr;    /* mobile */
    gap: 24px;
    align-items: start;
    grid-auto-rows: auto;
    margin-bottom: 64px;
}

/* Desktop: выравниваем карточки в строке по высоте */
@media (min-width: 1024px) {
    .cases-grid {
        align-items: stretch !important;
    }
}

@media (min-width: 640px) {
    .cases-grid { 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
    }
}

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

/* Case Card */
.case-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
    width: 100%;
}

.case-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* Wide card for desktop layout */
@media (min-width: 1024px) {
    .case-wide {
        grid-column: 1 / -1;
    }
}

/* Case Header with title and chips */
.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

/* Case Title */
.case-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    flex: 2;
    line-height: 1.2;
    max-width: 60%;
}

/* Adaptive Pictures */
.hero-photo, .summary-photo, .final-cta-photo { 
    display: block; 
    border-radius: 12px; 
    overflow: hidden; 
}

.hero-photo img, .summary-photo img, .final-cta-photo img { 
    display: block; 
    width: 100%; 
    height: auto; 
    object-fit: cover; 
}

/* Case Chips */
.case-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.case-chip {
    display: inline-block;
    padding: 4px 8px;
    background: var(--accent-gold);
    color: var(--bg);
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
}

/* Case Content - full width */
.case-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    width: 100%;
}

.case-sec h4 {
    font-size: 14.5px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--text-primary);
}

.case-sec ul {
    padding-left: 18px;
    margin: 0;
}

.case-sec li,
.case-sec p {
    font-size: 15.5px;
    line-height: 1.45;
    margin: 0 0 6px;
    color: var(--text-secondary);
    display: block;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}

/* Case Media */
.case-media {
    margin-top: 12px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
}

/* Desktop: прибиваем медиа к низу карточки */
@media (min-width: 1024px) {
    .case-media {
        margin-top: auto;
    }
}

.case-media img, 
.case-media video, 
.case-media canvas {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Row layout for multiple images */
.case-media--row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.case-media--row img {
    width: 100%;
    height: auto;
}

.case-media figcaption {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    opacity: 0.8;
}

/* Placeholder for missing images */
.case-placeholder {
    background: var(--accent-gold);
    color: var(--bg);
    padding: 48px 16px;
    text-align: center;
    font-weight: 600;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Section */
.cases-cta {
    text-align: center;
    padding: 48px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.cases-cta h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.cases-cta-btn {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--bg);
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.cases-cta-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.cases-cta p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 1023px) {
    /* .cases-grid адаптивные правила выше */
    
    .case-card {
        height: auto;
        width: 100%;
    }
    
}

@media (max-width: 768px) {
    .cases-container {
        padding: 0 16px;
    }
    
    .case-card {
        padding: 20px;
    }
    
    .cases-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .cases-cta h3 {
        font-size: 24px;
    }
}

/* About + Values Section */
.about-values {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.about-values.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Badge at top */
.about-badge {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

/* Lead paragraph */
.about-lead {
    max-width: 900px;
    margin: 32px auto 48px;
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

/* Cards Grid - Desktop: 2 columns, Mobile: 1 column */
.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}

/* Individual Card */
.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.about-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.3;
}

/* Lists */
.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* Icons */
.about-icon {
    color: #D2A23B;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(210, 162, 59, 0.15);
    border: 1px solid #D2A23B;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Highlights */
.about-highlight {
    color: #D2A23B;
    font-weight: 600;
}

/* Separator */
.about-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin-top: 60px;
}

/* FAQ Section */
#faq {
    scroll-margin-top: 96px;
}

.faq {
    padding: var(--section-padding);
    background: var(--card-bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

@media (min-width: 768px) {
    .faq-question {
        padding: 16px 20px;
    }
}

.faq-question:hover {
    background: rgba(201, 163, 92, 0.12);
}

.faq-question:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.faq-icon {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-gold);
    transition: transform .18s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 1000px;
}

.faq-answer p {
    padding: 12px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 65ch;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .faq-answer p {
        padding: 16px 20px;
    }
}
@media (max-width: 768px) {
    .faq-item.is-open .faq-answer {
        max-height: 1500px !important;
        overflow: visible !important;
    }
    
    .faq-answer p {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
}

.faq-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 16px;
}

.link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.link:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* Final CTA Section */
.final-cta {
    padding: 80px 0;
    background: var(--bg);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.final-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Left: Image */
#final-cta .final-cta__media {
    height: 100%;
}

#final-cta .final-cta__frame {
    position: relative;
    height: 100%;
    padding: 20px;               /* внутренняя «рамка» */
    display: grid;
    place-items: center;
}

#final-cta .final-cta__frame img,
#final-cta .final-cta__frame picture,
#final-cta .final-cta-photo img {
    width: 92%;                  /* делаем фото визуально меньше */
    height: 92%;
    object-fit: cover;
    object-position: 32% 50%;    /* смещаем чуть влево */
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    display: block;
    transition: transform 0.3s ease;
}

#final-cta .final-cta-photo {
    display: block;
    width: 100%;
    height: 100%;
}

#final-cta .final-cta__frame img:hover {
    transform: scale(1.02);
}

#final-cta .final-cta__frame::after {
    content: "";
    position: absolute; 
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(90deg, transparent 55%, rgba(210,162,59,.08) 100%);
    pointer-events: none;        /* лёгкая золотая «связка» к форме */
}

/* Right: Form Card */
.final-cta-form-wrapper {
    height: 100%;
}

.final-cta-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.final-cta-form-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.16);
}

.final-cta-form-card h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.2;
}

.badge-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.final-cta-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-field input,
.form-field select {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    min-height: 48px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #D2A23B;
    box-shadow: 0 0 0 3px rgba(210, 162, 59, 0.1);
}

.form-field input::placeholder {
    color: var(--text-muted);
}

.form-field select {
    cursor: pointer;
}

.form-field select option {
    background: var(--card-bg);
    color: var(--text-primary);
}

/* Form Errors */
.form-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    min-height: 16px;
}

/* Submit Button */
.final-cta-submit {
    width: 100%;
    background: #D2A23B;
    color: #12151a;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
    min-height: 48px;
}

.final-cta-submit:hover {
    background: #c9a35c;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(210, 162, 59, 0.3);
}

.final-cta-submit:active {
    transform: translateY(0);
}

.final-cta-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-spinner {
    display: flex;
    align-items: center;
}

/* Trust Text */
.trust-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Consent Group */
.consent-group {
    margin-top: 16px;
}

.form-agree{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.5;opacity:.9}
.form-agree input{margin-top:2px}
.form-agree a{color:inherit;text-decoration:underline}
.form-agree a:hover{opacity:.9}

/* Privacy Notice (legacy - keeping for compatibility) */
.form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.privacy-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-muted);
}

/* Success State */
.final-cta-success {
    text-align: center;
    padding: 32px;
}

.success-icon {
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
}

.final-cta-success h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.3;
}

.success-back {
    min-width: 200px;
}

/* Responsive Design */
/* крупные экраны — ещё немного «воздуха» */
@media (min-width: 1440px) {
    #final-cta .final-cta__frame {
        padding: 24px;
    }
    
    #final-cta .final-cta__frame img,
    #final-cta .final-cta-photo img {
        width: 90%;
        height: 90%;
    }
}

@media (max-width: 1279px) {
    .final-cta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
    
    .final-cta-form-card {
        padding: 28px;
    }
    
    .final-cta-form-card h2 {
        font-size: 28px;
    }
}

@media (max-width: 1023px) {
    .final-cta {
        padding: 64px 0;
    }
    
    .final-cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
        align-items: initial;
    }
    
    /* мобильные — без рамки и градиента */
    #final-cta .final-cta__media {
        min-height: 320px;
        height: auto;
    }
    
    #final-cta .final-cta__frame {
        padding: 12px;
    }
    
    #final-cta .final-cta__frame img,
    #final-cta .final-cta-photo img {
        width: 100%;
        height: 100%;
        object-position: 35% 50%;
    }
    
    #final-cta .final-cta__frame::after {
        background: none;
    }
    
    .final-cta-form-wrapper {
        height: auto;
    }
    
    .final-cta-form-card {
        height: auto;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .final-cta {
        padding: 48px 0;
    }
    
    .final-cta-grid {
        padding: 0 16px;
    }
    
    .final-cta-form-card {
        padding: 20px;
    }
    
    .final-cta-form-card h2 {
        font-size: 22px;
    }
    
    .final-cta-subtitle {
        font-size: 15px;
    }
}

/* Footer */
.footer {
    padding: 64px 0 32px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.footer-grid{
    display:grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap:48px;
    align-items:start;
    margin-bottom: var(--gap-large);
}
.footer-col h4,
.footer-col h5{
    margin:0 0 10px;
    font-size:16px;
    line-height:1.2;
    font-weight:600;
    color: var(--text-primary);
}
.footer-col p{ 
    margin:0 0 8px; 
    color: var(--text-secondary);
    line-height: 1.6;
}
.footer-col ul{ 
    list-style:none; 
    margin:0; 
    padding:0; 
}
.footer-col li{ 
    margin:0 0 8px; 
}
.footer-col a{
    text-decoration: underline;
    text-underline-offset: 2px;
    color: var(--text-secondary);
}
.footer-col a:hover{ 
    opacity:.9; 
}
.footer-col a:focus-visible{
    outline: 2px solid rgba(255,208,120,.9);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ровная «верхняя линия» в колонках */
.footer-col > *:first-child{ margin-top:0 !important; }
.footer-col > *:last-child{ margin-bottom:0 !important; }

.footer-col--brand p{ max-width: 40ch; }

#why-us, #process, #cases, #comparison, #pricing, #faq{
    scroll-margin-top: 96px;
}

/* Mobile Hero Optimization */
@media (max-width: 640px) {
    /* Case header mobile adjustments */
    .case-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .case-chips {
        align-self: flex-end;
        justify-content: flex-end;
    }
    
    /* Вернуть старые размеры для чипов в кейсах */
    .case-chip {
        /* Без изменений - остаются базовые стили */
    }
    
    /* Применить новые размеры к правильным чипам (.chip) */
    .chip {
        display: flex !important; 
        align-items: center !important; 
        justify-content: center !important;
        padding: 10px 12px !important;                  /* уменьшили боковые отступы */
        font-size: 14px !important; 
        line-height: 1.25 !important;                   /* читабельно на мобилке */
        min-height: 42px !important;                    /* вмещает 2 строки */
        min-width: 90px !important;                     /* уменьшили минимальную ширину */
        max-width: 100% !important;
        text-align: center !important;
        white-space: normal !important;                 /* разрешаем переносы */
        word-break: break-word !important; 
        hyphens: auto !important;
        box-sizing: border-box !important;
    }
    
    /* Скрыть 2 последних чипа только на мобилках */
    .chips .chip:nth-last-child(1),
    .chips .chip:nth-last-child(2) {
        /* display: none; */
        /* Временно отключено для тестирования */
        padding: 8px 10px !important;  /* Уменьшенные отступы для длинного чипа */
        min-width: 80px !important;    /* Минимальная ширина */
        width: auto !important;        /* Автоматическая ширина по содержимому */
    }
    
    .case-card h3 {
        font-size: 20px;
        max-width: 100%;
        margin-bottom: 8px;
        text-align: center;
    }

    .hero{ padding: 16px 16px 20px; }
    .hero__grid{ max-width: 440px; margin: 0 auto; }
    
    .hero__title{
        font-size: 26px;
        line-height: 1.15;
        letter-spacing: .1px;
        word-break: keep-all;
        hyphens: auto;
        margin-bottom: 12px;
    }
    
    .hero__lead{
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 14px;
    }
    .hero__lead a{
        text-decoration: underline;
        text-underline-offset: 2px;
    }
    
    .hero-founder{ 
        font-size: 13px; 
        line-height: 1.45; 
        margin: 8px 0 14px; 
        display: grid; 
        row-gap: 4px;
    }
    .hero-founder .marketplace-accent{ 
        color: #FFD27A; 
        font-weight: 600; 
    }
    .hero-founder br{ 
        display: none; 
    }
    
    .hero-badges{ 
        display: grid; 
        row-gap: 8px; 
    }
    .hero-badges li{
        min-height: 40px;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 14px;
        line-height: 1.25;
        align-items: center;
        gap: 8px;
    }
    .hero-badges li::before{
        width: 16px; 
        height: 16px; 
        flex: 0 0 16px;
    }
    .hero-badges img{ 
        width: 28px; 
        height: 28px; 
        border-radius: 6px; 
        object-fit: cover; 
    }
    
    .hero__grid{
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        grid-template-columns: unset !important;
        gap: 0 !important;
    }
    .hero__title{
        order: 1;
    }
    .hero__lead{
        order: 2;
    }
    .hero-founder{
        order: 3;
    }
    .hero-badges{
        order: 4;
    }
    .hero__media{
        order: 5;
    }
    .hero-cta{
        order: 6;
    }
    
    .hero__media {
        width: 100% !important;
        max-width: 300px !important;
        margin: 16px auto !important;
        overflow: hidden !important;
        grid-column: unset !important;
        justify-self: center !important;
    }
    
    .hero__media img {
        width: 100% !important;
        max-width: 300px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
        border-radius: 12px !important;
    }
    
    .hero .container {
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding-inline: 16px !important;
    }
    
    .hero__content {
        grid-column: unset !important;
    }
    
    .hero-photo, .summary-photo, .final-cta-photo { 
        margin-top: 12px; 
    }
    
    .hero-cta{ 
        display: grid; 
        row-gap: 10px; 
        margin-top: 12px; 
    }
    .hero-cta .btn-primary, 
    .hero-cta .btn-secondary{ 
        height: 48px; 
        width: 100%; 
    }
    .hero-cta .btn-secondary{ 
        background: transparent; 
        border: 1px solid #3f3f46; 
    }
    
    .nav-cta{
        font-size: 11px;
        line-height: 1.2;
        height: auto;
        min-height: 32px;
        padding: 4px 8px;
        border-radius: 10px;
        box-shadow: none;
        min-width: unset;
        white-space: normal;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .navbar .container{ gap: 8px; }
    .navbar{ padding-inline: 12px; }
    
    .hero{ margin-top: 8px; }
    
    .hero p, .hero li{ overflow-wrap: anywhere; }
    .hero .container{ padding-inline: 16px; }
}

@media (max-width: 360px){
    .nav-cta{
        font-size: 10px;
        min-height: 28px;
        padding: 3px 6px;
    }
}

@media (min-width: 641px){
    .header .cta-btn{ display: inline-flex; }
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-layout {
        gap: 24px;
    }
    
    .hero-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-content {
        align-items: center;
        text-align: center;
        order: 1;
    }
    
    /* Footer mobile styles */
    .footer {
        padding: 48px 0 32px;
    }
    
}

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

@media (max-width:640px){
    .footer-grid{ 
        grid-template-columns:1fr; 
        gap:20px; 
    }
    .footer-col--brand{ order:1; }
    .footer-col--quick{ order:2; }
    .footer-col--docs{  order:3; }
    .footer-col--contacts{ order:4; }
}

@media (max-width: 768px) {
    .hero-image {
        order: 2;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .case-comparison {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
}

@media (max-width: 480px) {
    :root {
        --section-padding: 30px 16px;
        --card-padding: 24px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-number {
        font-size: 32px;
    }
}

/* ===== Pain→Solution styles (compact) ===== */
.ps {
    padding: 56px 0 64px;
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.ps__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.ps__head {
    text-align: center;
    margin-bottom: 48px;
}

.ps__head h2 {
    margin: 0 0 16px;
    font-size: 32px;
    line-height: 1.2;
    color: var(--text-primary);
}

.ps__sub {
    margin: 0;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

/* Two columns layout */
.ps__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.ps__column h3 {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.ps__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ps__item {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Bullet icons */
.ps__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-secondary);
}

/* Highlight for key words */
.ps__highlight {
    color: #D2A23B;
    font-weight: 600;
}

/* CTA Section */
.ps__cta {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.ps__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-secondary-ghost {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary-ghost:hover {
    border-color: #D2A23B;
    color: #D2A23B;
    transform: translateY(-1px);
}

.ps__cta-note {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0.8;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ps {
        padding: 48px 0 56px;
    }
    
    .ps__columns {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .ps__head h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .ps__sub {
        font-size: 16px;
    }
    
    .ps__column h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .ps__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .ps__cta-buttons a {
        min-width: 280px;
    }
}

/* ===== HERO GRID LAYOUT ===== */

/* контейнер хиро */
.hero__grid{
  display:grid;
  grid-template-columns: 0.58fr 0.42fr;  /* слева текст, справа фото */
  grid-template-rows: auto auto;         /* 1: заголовки, 2: контент/фото */
  align-items:center;
  gap:24px;
}

/* заголовок и подзаголовок — во всю ширину, по центру */
.hero__title{ grid-column:1 / -1; text-align:center; margin-bottom:6px; }
.hero__lead{  grid-column:1 / -1; text-align:center; margin-bottom:18px; }

/* ниже: слева контент (маркеры+кнопки), справа фото */
.hero__content{ grid-column:1; }
.hero__media{   grid-column:2; justify-self:end; }
.hero__media img{
  max-width:560px; width:100%; height:auto;
  border-radius:16px; display:block;
}

/* старые стили hero-badges удалены */

.btn-primary,.btn-secondary{
  height:52px; padding:0 22px; font-size:16.5px; border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:600;
  transition:all 0.2s ease;
}
.btn-secondary{ border:1px solid rgba(255,255,255,.14); }

/* адаптив */
@media (max-width:1024px){
  .hero__grid{ 
    grid-template-columns:1fr; 
    grid-template-rows: auto auto auto auto;
  }
  .hero__title{ order:1; }
  .hero__lead{ order:2; }
  .hero__content{ order:3; }
  .hero__media{ order:4; justify-self:center; margin-top:12px; }
}

/* === HERO: размеры, изображение, отступы === */

/* Заголовок — адаптивно и крупнее */
.hero__title{
  /* было ~32–36px */
  font-size: clamp(32px, 4.2vw, 60px);  /* до ~60px на десктопе */
  line-height: 1.15;
  max-width: 20ch;
  margin: 0 auto 10px auto;
}

/* Подзаголовок — немного ближе к H1 */
.hero__lead{
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  margin-bottom: 18px; /* было больше */
}

/* Фото справа — крупнее и выровнять к правому краю */
.hero__media{ grid-column: 2; justify-self: end; }
.hero__media img{
  max-width: 640px;            /* было ~480–520px */
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

/* старые стили hero-badges удалены */

/* CTA — одинаковая высота, меньше нижний зазор */
.hero .cta{ gap: 14px; margin-top: 6px; margin-bottom: 0; }
.hero .btn-primary, .hero .btn-secondary{
  height: 52px; padding: 0 22px; font-size: 16.5px; border-radius: 12px;
}

/* Снижаем «провис» у секции hero */
.hero{ padding-bottom: 32px; }   /* было больше */

/* Если снизу всё ещё большой зазор — уменьшить верхний отступ следующей секции */
.hero + section{ margin-top: 24px; }

/* Адаптив */
@media (max-width: 1024px){
  .hero__media img{ max-width: 520px; }
}
@media (max-width: 640px){
  .hero__title{ font-size: clamp(28px, 7vw, 34px); }
  .hero__lead{  font-size: 16.5px; }
  .hero .btn-primary, .hero .btn-secondary{ height: 48px; }
}

/* HERO founder text */
.hero-founder {
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 500;
}

/* HERO badges: 2×2 grid, без пустоты справа */
.hero .hero-badges{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px 14px;                 /* row/col gap */
  margin-bottom: 18px;
  list-style: none; padding: 0;   /* на всякий случай */
  max-width: 680px;               /* чтобы визуально не «расползались» */
}

/* Сами плашки — compact chips */
.hero .hero-badges > li{
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  width: auto !important;         /* жёстко убиваем растягивание */
  flex: 0 0 auto;                 /* защита от расширения */
  white-space: nowrap;
}

/* Иконка-галочка (если через ::before) */
.hero .hero-badges > li::before{
  content: "✓";
  font-weight: 700;
  opacity: .9;
}

/* Планшет/мобилка — одна колонка, выше для тача */
@media (max-width: 1024px){
  .hero .hero-badges{
    grid-template-columns: 1fr;
  }
  .hero .hero-badges > li{
    height: 40px;
    font-size: 14.5px;
  }
}

/* ===== PROCESS SECTION WITH TIMELINE ===== */

.proc{position:relative;padding:52px 0;border-top:1px solid rgba(255,255,255,.06)}
.proc__title{font-size:36px;line-height:1.2;text-align:center;margin:0 0 8px}
.proc__note{color:#9EA3AE;text-align:center;margin:0 0 26px}

.proc__grid{
  position:relative;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  max-width:1120px;margin:0 auto;padding:0;list-style:none;
  grid-template-areas:
    "s1 s2"
    "s3 s4"
    "s5 s6";
}

/* вертикальная «релса» по центру */

.proc__card{
  position:relative; background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px; padding:16px 16px 12px;
}
.proc__card[data-step="1"]{ grid-area: s1; }
.proc__card[data-step="2"]{ grid-area: s2; }
.proc__card[data-step="3"]{ grid-area: s3; }
.proc__card[data-step="4"]{ grid-area: s4; }
.proc__card[data-step="5"]{ grid-area: s5; }
.proc__card[data-step="6"]{ grid-area: s6; }


.step-badge{ display:inline-flex; align-items:center; justify-content:center;
  width:24px; height:24px; border-radius:9999px; opacity:0.9;
  background:rgba(241,184,45,0.06); border:1px solid #F1B82D; color:#F1B82D;
  font-weight:600; font-size:12px; line-height:24px; text-align:center; }

@media (max-width: 768px) {
  .proc .chip--ghost { display: none; }
}
.proc__chips{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 6px}
.chip{height:26px;padding:0 10px;border-radius:999px;display:inline-flex;align-items:center;
  font-size:12.5px;background:rgba(200,134,13,.16);color:#D2A238;border:1px solid rgba(200,134,13,.32)}
.chip--ghost{background:transparent;color:#F0F0F0;border:1px solid rgba(255,255,255,.16)}

.proc__out{margin:8px 0 0 0;padding-left:18px;color:#9EA3AE}
.proc__out li{margin:2px 0}

@media (max-width: 900px){
  .proc__grid{grid-template-columns:1fr}
  .proc__card{padding-left:42px}
}

/* убрать старые рельсы и коннекторы */

/* чипы — чуть крупнее */
.proc .proc__chips{ margin: 6px 0 8px; gap:10px; }
.proc .chip{ height:auto; padding:2px 8px; font-size:12px; line-height:1.2; border-radius:9999px; }
.proc .chip--accent{ background-color: var(--accent-gold); color: #12151a; font-weight: 500; }
.proc .chip--ghost{ background:transparent; border:1px solid rgba(255,255,255,.12); color:#9EA3AE; }

/* описание — читаемее */
.proc .proc__desc{ margin:6px 0 0; font-size:16px; line-height:1.55; }

/* карточки и сетка — компактно */



/* ===== СХЕМА РАБОТЫ ===== */
.process {
    padding: 60px 0;
    background: var(--bg-primary);
}

.process .section-title {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--text-primary);
    text-align: center;
}

.process .section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.4;
    max-width: 800px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    position: relative;
    min-height: 200px;
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.process-step-number {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(212, 162, 55, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
}

.process-step h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
}

.process-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.process-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.process-chip-time {
    background: rgba(212, 162, 55, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.process-chip-role {
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.7);
}

.process-step p {
    color: rgba(255,255,255,.8);
    line-height: 1.6;
    margin: 0;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-step {
        min-height: 180px;
    }
    
    .process-chip-role {
        display: none;
    }
    
    .process .section-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .process .section-subtitle {
        font-size: 16px;
    }
}

/* ===== CONCLUSION SECTION ===== */

/* Сетка: фото слева (≈38–42%), текст справа (≈58–62%) */
.conclusion{
  display: grid;
  grid-template-columns: clamp(320px, 36vw, 440px) minmax(560px, 1fr);
  gap: 36px;
  align-items: center;
}

/* Фото — крупное, без искусственного уменьшения */
.conclusion__media{
  max-width: none;
}
.conclusion__media img{
  width: 100%;
  max-width: none;
  aspect-ratio: 3 / 4;       /* аккуратная вертикаль */
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Карточка вывода — деликатный фон и золотой акцент слева */
.conclusion__card{
  position:relative; padding:20px 24px 22px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-left: 4px solid #D4AF37;  /* золотая полоса */
  border-radius: 12px;
  min-width: 560px;
}

/* Уплотняем типографику */
.conclusion__card h3{ margin:0 0 10px; }
.conclusion__card p{ margin:0 0 10px; line-height:1.5; }
.conclusion__card ul{ margin:6px 0 12px; padding:0; list-style:none; }
.conclusion__card li{
  position:relative; margin:8px 0 0; padding-left:22px;
}
.conclusion__card li::before{
  content:"✓"; position:absolute; left:0; top:0; color:#D4AF37;
  font-weight:700; line-height:1;
}

/* Чипы-факты */
.chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.chip{
  height:30px; padding:0 12px; border-radius:999px;
  border:1px solid rgba(212,175,55,.35);
  background: rgba(212,175,55,.06);
  display:inline-flex; align-items:center;
  font-size:14px;
}
.chip:hover{ background: rgba(212,175,55,.10); border-color: rgba(212,175,55,.55); }

/* Планшет: фото всё ещё крупное */
@media (max-width: 1200px){
  .conclusion{
    grid-template-columns: clamp(300px, 40vw, 380px) 1fr;
    gap: 28px;
  }
  .conclusion__card{ min-width: 520px; }
}

/* Мобилка: одна колонка, фото сверху, широкое */
@media (max-width: 900px){
  .conclusion{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .conclusion__media img{
    width: 88%;
    margin: 0 auto;
    max-width: 420px;       /* чтобы не «ломать» верстку на больших телефонах */
  }
  .conclusion__card{ min-width: 0; }
}

/* About + Values Section - Адаптивные стили */
@media (max-width: 1024px) {
    .about-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-card {
        padding: 28px;
    }
    
    .about-lead {
        font-size: 17px;
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .about-values {
        padding: 60px 20px;
    }
    
    .about-card {
        padding: 24px;
        border-radius: 16px;
    }
    
    .about-card h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .about-lead {
        font-size: 16px;
        line-height: 1.5;
        margin: 24px auto 36px;
    }
    
    .about-list li {
        font-size: 14px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .about-values {
        padding: 50px 16px;
    }
    
    .about-card {
        padding: 20px;
        border-radius: 14px;
    }
    
    .about-card h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .about-lead {
        font-size: 15px;
        margin: 20px auto 28px;
    }
    
    .about-list li {
        font-size: 13px;
        gap: 8px;
    }
    
    .about-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .about-badge {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

@media (max-width: 380px) {
    .pricing .price {
        font-size: clamp(24px, 5.5vw, 36px);
    }
}

.accent {
    color: var(--accent-gold, #D4AF37);
    font-weight: 700;
}

/* Списки: читабельность и шаг */
.ps ul {
    line-height: 1.5;
}

.ps li + li {
    margin-top: .5rem;
}

/* Золотой акцент — использовать существующую переменную, иначе цвет по умолчанию */
.ps .accent {
    color: var(--accent-gold, #D4AF37);
    font-weight: 700;
}

/* Сетка: на мобиле в один столбец, порядок: боли → что делаем → CTA */
@media (max-width: 900px) {
    .ps__columns {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Кнопки CTA: одинаковая высота и выравнивание по базовой линии */
.ps__cta-buttons .btn {
    min-height: 48px;
}

.ps__cta-buttons {
    align-items: center;
}

/* Подзаголовок секции why-us */
.why-us-lead {
    line-height: 1.35;
    max-width: 960px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
}

/* Карточки why-us */
.why-us-card h3 {
    margin-bottom: 8px;
}

.why-us-card p {
    margin-top: 0;
}

/* Иконки: единый размер и центровка */
.why-us-icon {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-us-icon svg {
    width: 22px;
    height: 22px;
}

/* Additional adaptive styles for case cards */
.case-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.case-text, .case-desc, .case-result {
    display: block;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}

/* Золотые акценты - только первый на карточку */
.why-us-card .accent {
    color: inherit;
}

.why-us-card .accent:first-of-type {
    color: var(--accent-gold, #D4AF37);
    font-weight: 700;
}

/* Адаптивная сетка карточек */
@media (min-width: 768px) and (max-width: 1024px) {
    .why-us-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 1025px) {
    .why-us-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }
}

/* ===== CURRENCY UTILITIES ===== */
.currency {
    font-variant-numeric: tabular-nums;
}

.nowrap {
    white-space: nowrap;
}

/* Lightbox styles */
.lb {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.lb img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}

.lb.hidden {
    display: none;
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-close:hover {
    background: rgba(255, 255, 255, 1);
}

/* CTA Note */
.cta-note{
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;   /* отступ над кнопкой */
}

/* мобильная подстройка */
@media (max-width: 640px){
  .cta-note{
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
  }
  
  /* Специфичное правило для длинного чипа в мобилке */
  .chips .chip:nth-last-child(1) {
    width: auto !important;             /* автоматическая ширина как у других чипов */
    max-width: 156px !important;        /* увеличили на 30% (120px * 1.3) */
    padding: 10px 12px !important;      /* такие же отступы как у "Старт 7–14 дней" */
    font-size: 14px !important;         /* такой же размер шрифта */
    line-height: 1.25 !important;       /* такая же высота строки */
    min-height: 42px !important;        /* такая же высота чипа */
    text-align: center !important;      /* центровка текста */
    justify-content: center !important; /* центровка по горизонтали */
    white-space: normal !important;     /* разрешаем переносы для длинного текста */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
}

/* ====== ЯКОРНЫЕ ССЫЛКИ И НАВИГАЦИЯ ====== */
/* Отступ для якорных ссылок чтобы заголовки не скрывались под навигацией */
.legal-content h1, 
.legal-content h2, 
.legal-content h3, 
.legal-content h4 {
  scroll-margin-top: 80px;
}

/* Плавная прокрутка для всего документа */
html {
  scroll-behavior: smooth;
}

/* ====== СТИЛИ ДЛЯ ПЕЧАТИ ====== */
@media print {
  /* Скрыть навигацию и футер при печати */
  .navbar, 
  .legal-nav, 
  .footer, 
  .cta-btn, 
  .nav-cta {
    display: none !important;
  }
  
  /* Оптимизировать контент для печати */
  .legal-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }
  
  /* Разрыв страницы после оглавления */
  .table-of-contents {
    page-break-after: always;
  }
  
  /* Настройки шрифтов для печати */
  body {
    font-size: 12pt !important;
    line-height: 1.4 !important;
    color: #000 !important;
    background: #fff !important;
  }
  
  /* Заголовки не должны разрываться */
  h1, h2, h3, h4 {
    page-break-after: avoid;
    color: #000 !important;
  }
  
  /* Стили для заполняемых полей в Приложении №2 */
  .fillable .___ {
    border-bottom: 1px solid #000 !important;
    min-width: 100px !important;
    display: inline-block !important;
    color: #000 !important;
    text-decoration: none !important;
  }
  
  /* Ссылки в печати */
  a {
    color: #000 !important;
    text-decoration: none !important;
  }
  
  /* Убрать фоновые цвета и границы */
  .intro-text,
  .table-of-contents {
    background: #fff !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
  
  /* Оптимизировать списки */
  ul, ol {
    page-break-inside: avoid;
  }
  
  /* Убрать декоративные элементы */
  .edition-date {
    color: #666 !important;
  }
}