/* ============================================================
   Magellania CRM — Marketing Site Styles
   Primary: #2563eb (blue-600)
   ============================================================ */

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-primary-bg: #eff6ff;
    --color-text: #0f172a;
    --color-text-muted: #475569;
    --color-text-light: #64748b;
    --color-border: #e2e8f0;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-success: #16a34a;
    --color-warning: #f59e0b;
    --color-danger: #dc2626;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.2s ease;
    --container-max: 1200px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Inter", "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    max-width: 100%;
    display: block;
}

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

a:hover {
    color: var(--color-primary-dark);
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

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

section {
    padding: 60px 0;
}

@media (min-width: 768px) {
    section {
        padding: 80px 0;
    }
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    h1 {
        font-size: 40px;
    }
}

h2 {
    font-size: 26px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    h2 {
        font-size: 32px;
    }
}

h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.lead {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1.65;
}

@media (min-width: 768px) {
    .lead {
        font-size: 20px;
    }
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text);
}

.brand:hover {
    color: var(--color-text);
}

.brand-mark {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: none;
    gap: 24px;
    list-style: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

.nav-cta {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Sprint 20s: mobile — компактный header.
   На <768px скрываем "Войти" (есть на login странице из CTA) и сжимаем
   primary CTA, чтобы не вылезал за viewport. */
@media (max-width: 767px) {
    .nav-cta .btn-ghost { display: none; }
    .nav-cta .btn { padding: 8px 14px; font-size: 13px; }
    .site-header .container { padding-left: 12px; padding-right: 12px; gap: 4px; }
    .brand { font-size: 14px; line-height: 1.1; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}

.btn:focus-visible,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-text-light);
    color: var(--color-text);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
}

.btn-ghost:hover {
    color: var(--color-primary);
    background: var(--color-primary-bg);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f0f9ff 100%);
    padding: 70px 0 80px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding: 100px 0 120px;
    }
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 20px;
    max-width: 820px;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 42px;
    }
}

.hero p.lead {
    max-width: 720px;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-meta {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--color-text-light);
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-meta-item i {
    width: 16px;
    height: 16px;
    color: var(--color-success);
}

/* ============================================================
   Page header (smaller hero for inner pages)
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    padding: 50px 0 40px;
    text-align: center;
}

@media (min-width: 768px) {
    .page-header {
        padding: 70px 0 50px;
    }
}

.page-header h1 {
    margin-bottom: 12px;
}

.page-header p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 17px;
}

/* ============================================================
   Features grid
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

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

@media (min-width: 1000px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon i {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 15px;
    margin: 0;
}

/* Section title pattern */
.section-title {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 17px;
}

/* ============================================================
   Pricing teaser / Pricing table
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.price-card {
    padding: 24px 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.price-card.highlight {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.price-card.highlight::before {
    content: "Популярный";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
}

.price-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.price-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 4px;
}

.price-amount-alt {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.price-tagline {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    min-height: 40px;
}

.price-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex-grow: 1;
}

.price-features li {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
    line-height: 1.5;
}

.price-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 14px;
    height: 14px;
    background: var(--color-primary-bg);
    border-radius: 50%;
}

.price-features li::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 11px;
    width: 6px;
    height: 3px;
    border-left: 1.5px solid var(--color-primary);
    border-bottom: 1.5px solid var(--color-primary);
    transform: rotate(-45deg);
}

/* Comparison table */
.comparison-table-wrap {
    overflow-x: auto;
    margin-top: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

.comparison-table th {
    background: var(--color-bg-alt);
    font-weight: 600;
    color: var(--color-text);
    font-size: 13px;
}

.comparison-table td:not(:first-child) {
    text-align: center;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.check-yes {
    color: var(--color-success);
    font-weight: 600;
}

.check-no {
    color: var(--color-text-light);
}

/* Calculator */
.calculator {
    max-width: 760px;
    margin: 40px auto 0;
    padding: 28px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .calc-row {
        grid-template-columns: 1fr 1fr;
    }
}

.calc-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.calc-row input,
.calc-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 15px;
}

.calc-row input:focus,
.calc-row select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.calc-result {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
    text-align: center;
}

.calc-result .label {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.calc-result .value {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
}

.calc-note {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 12px;
    text-align: center;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
    max-width: 820px;
    margin: 40px auto 0;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item[open] {
    border-color: var(--color-primary-light);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
}

.faq-item summary:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.faq-answer {
    padding: 0 24px 18px;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* ============================================================
   Forms (contact)
   ============================================================ */
.form {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--color-danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

.form-help {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 4px;
}

.form-message {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 14px;
}

.form-message.success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.form-message.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

#turnstile-container {
    margin-bottom: 18px;
    min-height: 65px;
}

/* ============================================================
   Deep-dive sections (features.html)
   ============================================================ */
.deep-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--color-border);
}

.deep-section:last-child {
    border-bottom: none;
}

.deep-section .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

@media (min-width: 900px) {
    .deep-section .container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.deep-section.reverse .container > :first-child {
    order: 2;
}

@media (max-width: 899px) {
    .deep-section.reverse .container > :first-child {
        order: 0;
    }
}

.deep-text h2 {
    margin-bottom: 14px;
}

.deep-text ul {
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.deep-text ul li {
    padding-left: 26px;
    position: relative;
    margin-bottom: 8px;
    color: var(--color-text-muted);
    font-size: 15px;
}

.deep-text ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

.deep-visual {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    min-height: 200px;
}

.pipeline-stages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pipeline-stage {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 99px;
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.pipeline-stage.draft { border-color: #cbd5e1; }
.pipeline-stage.sent { border-color: #93c5fd; color: #1d4ed8; }
.pipeline-stage.in_progress { border-color: #fcd34d; color: #b45309; }
.pipeline-stage.paid { border-color: #86efac; color: #166534; }
.pipeline-stage.on_tour { border-color: #67e8f9; color: #155e75; }
.pipeline-stage.closed { border-color: #6ee7b7; color: #047857; background: #ecfdf5; }
.pipeline-stage.cancelled { border-color: #fca5a5; color: #991b1b; }

/* Currency badges */
.currency-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.currency-badge {
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--color-text);
    font-size: 14px;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    text-align: center;
    padding: 60px 24px;
    border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
    .cta-section {
        padding: 80px 24px;
    }
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 16px;
}

.cta-section p {
    color: #dbeafe;
    margin-bottom: 28px;
    font-size: 17px;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

.cta-section .btn-primary:hover {
    background: #f8fafc;
    color: var(--color-primary-dark);
}

.cta-section .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
    display: inline-block;
}

.footer-brand:hover {
    color: #fff;
}

.footer-tagline {
    font-size: 14px;
    color: #94a3b8;
    max-width: 280px;
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
}

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

[role="alert"] {
    /* aria-live regions */
}

/* ============================================================
   Legal documents (Privacy Policy / Terms of Service)
   ============================================================ */
.legal-doc {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 0 80px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
}

.legal-doc h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .legal-doc h1 {
        font-size: 36px;
    }
}

.legal-doc .legal-meta {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.legal-doc .legal-toc {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 0 0 40px;
}

.legal-doc .legal-toc h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.legal-doc .legal-toc ol {
    list-style: decimal;
    padding-left: 22px;
    column-count: 1;
    column-gap: 24px;
}

@media (min-width: 768px) {
    .legal-doc .legal-toc ol {
        column-count: 2;
    }
}

.legal-doc .legal-toc li {
    margin-bottom: 6px;
    font-size: 14px;
    break-inside: avoid;
}

.legal-doc section {
    padding: 0;
    margin-bottom: 36px;
}

.legal-doc h2 {
    font-size: 22px;
    margin: 40px 0 16px;
    padding-top: 16px;
    scroll-margin-top: 80px;
}

.legal-doc h3 {
    font-size: 18px;
    margin: 24px 0 12px;
}

.legal-doc p {
    margin-bottom: 14px;
}

.legal-doc ul, .legal-doc ol {
    margin: 0 0 16px 24px;
}

.legal-doc li {
    margin-bottom: 6px;
}

.legal-doc strong {
    font-weight: 600;
    color: var(--color-text);
}

.legal-doc .legal-callout {
    background: var(--color-primary-bg);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 16px 0 24px;
    font-size: 15px;
    color: var(--color-text);
}

.legal-doc table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
}

.legal-doc table th,
.legal-doc table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.legal-doc table th {
    background: var(--color-bg-alt);
    font-weight: 600;
    color: var(--color-text);
}

.legal-doc a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-doc a:hover {
    color: var(--color-primary-dark);
}

/* ─── Sprint 20i: Screenshot showcase ─── */

.showcase {
    margin-top: 56px;
    margin-bottom: -40px; /* hero overlap для air */
    padding: 0;
    text-align: center;
}

.showcase-frame {
    display: inline-block;
    max-width: 1180px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 32px 64px rgba(15, 23, 42, 0.18),
        0 12px 24px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(15, 23, 42, 0.05);
    background: #fff;
    transform: translateZ(0); /* enable GPU */
}

.showcase-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.showcase-caption {
    margin-top: 20px;
    font-size: 14px;
    color: var(--color-text-soft, #64748b);
}

/* Inline feature shots — alternating side-by-side */
.feature-shot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 56px 0;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.feature-shot:last-child {
    border-bottom: none;
}

.feature-shot.reverse {
    direction: rtl;
}

.feature-shot.reverse > * {
    direction: ltr;
}

.feature-shot-text h3 {
    font-size: 28px;
    margin: 0 0 12px;
    color: var(--color-text);
}

.feature-shot-text p {
    font-size: 17px;
    color: var(--color-text-soft, #475569);
    line-height: 1.6;
    margin: 0 0 16px;
}

.feature-shot-text ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.feature-shot-text li {
    padding: 6px 0 6px 28px;
    position: relative;
    color: var(--color-text);
    font-size: 15px;
}

.feature-shot-text li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--color-primary, #2563eb);
    font-weight: 700;
}

.feature-shot-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 16px 32px rgba(15, 23, 42, 0.12),
        0 4px 8px rgba(15, 23, 42, 0.05),
        0 0 0 1px rgba(15, 23, 42, 0.05);
}

.feature-shot-img img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .feature-shot {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 0;
    }

    .feature-shot.reverse {
        direction: ltr;
    }

    .showcase {
        margin-bottom: 0;
    }

    .showcase-frame {
        border-radius: 12px;
    }
}
