/* Общие стили для юридических страниц Geozor (offer, payment, refund). */
/* privacy.html использует идентичный inline-CSS — при правке синхронизировать вручную. */

/* ===== Дизайн-токены (из лендинга Geozor) ===== */
:root {
    --bg:              #f6f9ff;
    --bg-warm:         #F7F4F1;
    --bg-white:        #ffffff;
    --bg-card:         #ffffff;
    --bg-elevated:     #ecf5ff;

    --text:            #0b1d2a;
    --text-secondary:  #5A6872;
    --text-muted:      #8A9AA6;

    --primary:         #D85A30;
    --primary-deep:    #a5360d;
    --primary-light:   rgba(216, 90, 48, 0.08);
    --primary-border:  rgba(216, 90, 48, 0.2);

    --secondary:       #0e6682;
    --secondary-light: rgba(14, 102, 130, 0.08);

    --border:          #E0DDD8;
    --border-subtle:   rgba(224, 221, 216, 0.6);
    --shadow:          rgba(0, 0, 0, 0.06);

    --radius:          16px;
    --radius-sm:       12px;
    --radius-xs:       10px;

    --font-heading:    'Montserrat', 'Manrope', -apple-system, sans-serif;
    --font-body:       'Inter', -apple-system, sans-serif;
    --transition:      200ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
    min-height: 100vh;
}

/* ===== Шапка ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    padding: 16px 0;
}

.header-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 32px;
    width: auto;
}

.header-badge {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ===== Hero ===== */
.hero {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    position: relative;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(26px, 5vw, 42px);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
}

.hero-chip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-chip .dot.orange { background: var(--primary); }
.hero-chip .dot.green  { background: #34d399; }

/* ===== Контент ===== */
.content {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ===== Оглавление ===== */
.toc {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: 0 1px 4px var(--shadow);
}

.toc-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 4px;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 10px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.toc-list a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.toc-list .num {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    min-width: 22px;
    font-family: var(--font-heading);
}

/* ===== Секции ===== */
.section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px var(--shadow);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.section:hover {
    border-color: rgba(216, 90, 48, 0.25);
    box-shadow: 0 2px 12px rgba(216, 90, 48, 0.06);
}

.section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.section-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.section h2 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.section h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 14px 0 8px;
}

.section p {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.7;
}

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

.section strong,
.section b {
    color: var(--text);
    font-weight: 600;
}

/* ===== Списки ===== */
.data-list {
    list-style: none;
    margin: 10px 0;
}

.data-list li {
    position: relative;
    padding: 7px 0 7px 22px;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

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

.data-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* ===== Реквизиты ===== */
.requisites {
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-xs);
    padding: 18px 20px;
    margin: 14px 0;
}

.requisites-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.req-row {
    display: flex;
    gap: 8px;
    padding: 5px 0;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(216, 90, 48, 0.1);
}

.req-row:last-child { border-bottom: none; }

.req-label {
    color: var(--text-muted);
    min-width: 120px;
    flex-shrink: 0;
}

.req-value {
    color: var(--text);
    font-weight: 500;
}

.req-value a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.req-value a:hover {
    color: var(--primary);
}

/* ===== Таблица тарифов ===== */
.plans-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 13.5px;
}

.plans-table th,
.plans-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.plans-table th {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-elevated);
}

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

.plans-table td strong {
    color: var(--text);
}

/* ===== Callout ===== */
.callout {
    background: var(--secondary-light);
    border: 1px solid rgba(14, 102, 130, 0.2);
    border-left: 3px solid var(--secondary);
    border-radius: var(--radius-xs);
    padding: 14px 18px;
    margin: 14px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.callout strong { color: var(--text); }

/* ===== Бейджи способов оплаты ===== */
.pay-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.pay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 8px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    letter-spacing: 0.3px;
}

.pay-badge.visa { color: #1A1F71; }
.pay-badge.mc   { color: #EB001B; }
.pay-badge.mir  { color: #0F754E; }
.pay-badge.sbp  { color: #5B0E9D; }

/* ===== Код ===== */
code {
    background: var(--primary-light);
    color: var(--primary-deep);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 500;
}

/* ===== Внешние ссылки ===== */
.ext-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.ext-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ===== Футер (тёмный, как на лендинге) ===== */
.footer {
    background: #1A2B38;
    padding: 28px 0;
}

.footer-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-left {
    font-size: 13px;
    color: #8A9AA6;
}

.footer-right {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-right a {
    color: #8A9AA6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color var(--transition);
}

.footer-right a:hover {
    color: var(--primary);
}

/* ===== Адаптивность ===== */
@media (max-width: 640px) {
    .hero { padding: 36px 16px 24px; }
    .content { padding: 0 16px 60px; }
    .section { padding: 22px 18px; }
    .toc { padding: 18px; }
    .toc-list { grid-template-columns: 1fr; }
    .req-row { flex-direction: column; gap: 2px; }
    .req-label { min-width: unset; font-size: 12px; }
    .header-badge { display: none; }
    .footer-inner { flex-direction: column; text-align: center; }
    .plans-table { font-size: 12.5px; }
    .plans-table th,
    .plans-table td { padding: 8px 8px; }
}

/* ===== Анимации ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.section,
.toc {
    animation: fadeInUp 0.3s ease-out both;
}

.toc { animation-delay: 0.05s; }
.section:nth-child(1)  { animation-delay: 0.08s; }
.section:nth-child(2)  { animation-delay: 0.11s; }
.section:nth-child(3)  { animation-delay: 0.14s; }
.section:nth-child(4)  { animation-delay: 0.17s; }
.section:nth-child(5)  { animation-delay: 0.20s; }
.section:nth-child(6)  { animation-delay: 0.23s; }
.section:nth-child(7)  { animation-delay: 0.26s; }
.section:nth-child(8)  { animation-delay: 0.29s; }
.section:nth-child(9)  { animation-delay: 0.32s; }
.section:nth-child(10) { animation-delay: 0.35s; }
