/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111827;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* --- Layout --- */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 16px;
}
.container-narrow { max-width: 768px; }
@media (min-width: 640px) {
    .container { padding: 0 24px; }
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.brand-logo {
    height: 56px;
    width: auto;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
}

.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
    font-size: 14px;
    color: #4b5563;
    transition: color 0.2s;
    padding: 8px 4px;
}
.nav a:hover { color: #dc2626; }
@media (max-width: 640px) {
    .nav { gap: 14px; }
    .nav a { font-size: 13px; }
}

/* --- Hero --- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 80px;
    background: #ffffff;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.hero h1 {
    font-size: clamp(32px, 5.5vw, 56px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
    margin-bottom: 24px;
}
.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: #4b5563;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}
.text-gradient {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* --- Decorative blobs --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
    z-index: 0;
}
.blob-red {
    width: 500px; height: 500px;
    top: -10%; right: -8%;
    background: radial-gradient(circle, rgba(220,38,38,0.15), transparent 70%);
}
.blob-orange {
    width: 400px; height: 400px;
    bottom: -10%; left: -6%;
    background: radial-gradient(circle, rgba(249,115,22,0.15), transparent 70%);
}

/* --- Sections --- */
.section { padding: 64px 0; position: relative; }
@media (min-width: 640px) { .section { padding: 96px 0; } }
.section-white { background: #ffffff; }
.section-tinted { background: linear-gradient(180deg, #ffffff 0%, rgba(220,38,38,0.03) 50%, #ffffff 100%); }

.section-badge {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
    text-align: center;
    line-height: 1.2;
}
.section-sub {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    max-width: 560px;
    margin: 12px auto 0;
}
.section-tinted .section-badge,
.section-tinted .section-title { text-align: center; }
.section-tinted .section-badge { display: block; width: fit-content; margin-left: auto; margin-right: auto; margin-bottom: 12px; }

/* --- Steps (How it works) --- */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 56px;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.step-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220,38,38,0.08);
}
.step-num {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: #dc2626;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(220,38,38,0.25);
}
.step-icon {
    width: 80px; height: 80px;
    background: #fef2f2;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    margin: 0 auto 20px;
}
.step-icon svg { width: 40px; height: 40px; }
.step-card h3 { font-size: 20px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.step-card p { color: #6b7280; line-height: 1.6; font-size: 15px; }

/* --- Conditions --- */
.conditions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 56px;
}
@media (min-width: 640px) { .conditions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .conditions { grid-template-columns: repeat(3, 1fr); } }

.cond-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cond-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.cond-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(220,38,38,0.2);
    margin-bottom: 20px;
}
.cond-icon svg { width: 24px; height: 24px; }
.cond-card h3 { font-size: 18px; font-weight: 600; color: #111827; margin-bottom: 8px; }
.cond-card p { color: #4b5563; line-height: 1.6; font-size: 14px; }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 48px; }
.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover { border-color: #d1d5db; }
.faq-item[open] {
    border-color: #fecaca;
    border-left: 4px solid #ef4444;
    box-shadow: 0 4px 12px rgba(220,38,38,0.05);
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    transition: background 0.2s, color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(249, 250, 251, 0.6); }
.faq-item[open] summary { color: #b91c1c; }
.faq-toggle {
    flex-shrink: 0;
    width: 32px; height: 32px;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    transition: transform 0.3s, background 0.2s, color 0.2s;
}
.faq-item[open] .faq-toggle {
    background: #dc2626;
    color: #ffffff;
    transform: rotate(45deg);
}
.faq-item p {
    padding: 0 24px 24px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

/* --- Privacy page --- */
.privacy-page {
    padding: 48px 0 80px;
    background: #ffffff;
}
.privacy-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #6b7280;
    transition: color 0.2s;
    margin-bottom: 32px;
}
.privacy-back:hover { color: #dc2626; }
.privacy-title {
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
    line-height: 1.2;
}
.privacy-date {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 8px;
}
.privacy-body {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
}
.privacy-body h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}
.privacy-body p { margin-top: 8px; }
.privacy-body ul {
    margin-top: 8px;
    padding-left: 24px;
    list-style: disc;
}
.privacy-body ul li { margin-bottom: 4px; }
.privacy-body a {
    color: #dc2626;
    text-decoration: underline;
}
.privacy-body a:hover { color: #b91c1c; }

/* --- Footer --- */
.site-footer {
    background: linear-gradient(180deg, #111827 0%, #030712 100%);
    color: #ffffff;
    position: relative;
}
.footer-accent {
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #f43f5e, #f97316);
}
.footer-inner {
    padding: 48px 16px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
}
@media (min-width: 640px) { .footer-inner { padding: 48px 24px 32px; } }
.footer-brand h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.footer-brand p {
    font-size: 14px;
    color: #9ca3af;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}
.footer-address {
    margin-top: 12px !important;
    font-size: 13px !important;
    color: #6b7280 !important;
}
.footer-requisites {
    margin-top: 12px !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    line-height: 1.7 !important;
}
.footer-copy {
    padding-top: 24px;
    border-top: 1px solid rgba(75, 85, 99, 0.4);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.footer-privacy-link {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-privacy-link:hover {
    color: #d1d5db;
}
@media (min-width: 640px) {
    .footer-copy {
        flex-direction: row;
        justify-content: space-between;
    }
}
.footer-copy p { font-size: 12px; color: #6b7280; }
