/* =========================================
   ОБЩИЕ СТИЛИ
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #FF6B8A;
    --primary-dark: #E84A6F;
    --secondary: #FFB088;
    --bg: #FFF9F5;
    --bg-soft: #FFE8E0;
    --text: #2D1B1B;
    --text-muted: #8B7B7B;
    --border: #FFE0D5;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #FF6B8A 0%, #FFB088 100%);
    --shadow-sm: 0 2px 8px rgba(255, 107, 138, 0.08);
    --shadow-md: 0 8px 24px rgba(255, 107, 138, 0.15);
    --shadow-lg: 0 20px 60px rgba(255, 107, 138, 0.2);
}

body {
    font-family: 'Nunito', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

a { color: inherit; text-decoration: none; }

/* =========================================
   ЛОГОТИП
   ========================================= */
.top-navbar {
    padding: 30px 20px;
    text-align: center;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.logo-text { color: var(--text); }
.logo-heart { font-size: 20px; animation: heartbeat 1.5s ease infinite; }

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* =========================================
   HERO
   ========================================= */
.hero {
    padding: 40px 20px 80px;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Левая часть: телефон */
.hero-left { display: flex; justify-content: center; }

.hero-phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #FFE0D5 0%, #FFC4B0 100%);
    border-radius: 42px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.hero-phone-notch {
    width: 80px;
    height: 22px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    margin: 0 auto 10px;
}
.hero-phone-screen {
    width: 100%;
    height: calc(100% - 32px);
    background: #FFF9F5;
    border-radius: 32px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}
.hero-phone-hint {
    font-size: 9px;
    color: var(--text-muted);
    padding: 4px 8px;
    background: var(--bg-soft);
    border-radius: 8px;
    margin-bottom: 8px;
}
.hero-phone-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.hero-phone-img { font-size: 48px; }
.hero-phone-card h4 {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
}
.hero-phone-sub {
    font-size: 10px;
    color: var(--text-muted);
}
.hero-phone-btn {
    width: 100%;
    padding: 10px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}
.hero-phone-footer {
    font-size: 9px;
    color: var(--primary);
    font-weight: 700;
    margin-top: 8px;
}

/* Правая часть: текст */
.hero-right { text-align: center; }

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--text);
}
.hero-title-accent { color: var(--primary); }

.hero-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 100px;
    margin-bottom: 24px;
}
.hero-tab {
    padding: 8px 24px;
    border-radius: 100px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}
.hero-tab.active {
    background: var(--gradient);
    color: white;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Кнопка */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 40px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.btn-primary.btn-large { font-size: 18px; padding: 20px 48px; }
.btn-icon { font-size: 18px; }

/* Соцдоказательство */
.hero-social-proof { margin-top: 40px; }
.avatars-stack {
    display: inline-flex;
    margin-bottom: 12px;
}
.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 3px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-left: -12px;
    transition: transform 0.3s;
}
.avatar-circle:first-child { margin-left: 0; }
.avatar-circle:hover { transform: translateY(-4px); z-index: 10; position: relative; }

.hero-social-proof p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

/* =========================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ========================================= */
.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--text);
}
.section-title-accent { color: var(--primary); }
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto 50px;
    line-height: 1.5;
}

/* =========================================
   КАК ЭТО РАБОТАЕТ
   ========================================= */
.how-it-works {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.step-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 32px;
    padding: 30px;
    transition: all 0.3s;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-image {
    height: 180px;
    background: var(--bg-soft);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.step-img-mockup {
    font-size: 70px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.step-text { }
.step-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    font-weight: 900;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.step-text h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}
.step-text p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* =========================================
   FAQ
   ========================================= */
.faq {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 60px;
    padding: 24px 32px;
    transition: all 0.3s;
}
.faq-item[open] {
    border-radius: 32px;
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* =========================================
   ОТЗЫВЫ
   ========================================= */
.reviews {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}
.reviews-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}
.slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    font-size: 18px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    flex-shrink: 0;
}
.slider-arrow:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.review-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 32px;
    padding: 60px 40px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 600px;
}
.review-message {
    background: #2D1B1B;
    color: white;
    border-radius: 16px;
    padding: 20px 24px;
    max-width: 420px;
    position: relative;
}
.review-message p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}
.review-time {
    font-size: 11px;
    opacity: 0.6;
    display: block;
    text-align: right;
}

/* =========================================
   НИЖНЯЯ CTA
   ========================================= */
.bottom-cta {
    text-align: center;
    padding: 40px 20px 80px;
}

/* =========================================
   ФУТЕР
   ========================================= */
.site-footer {
    background: var(--bg-soft);
    padding: 40px 20px;
    text-align: center;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}
.footer-links a {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--primary); }
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 20px;
    font-weight: 900;
}

/* =========================================
   СТАРЫЕ КЛАССЫ (для внутренних страниц)
   ========================================= */
.settings-page {
    display: flex;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: flex-start;
}
.preview-column { flex: 0 0 320px; display: flex; flex-direction: column; align-items: center; }
.settings-column { flex: 1; max-width: 520px; }

.phone-frame {
    width: 280px;
    height: 520px;
    background: linear-gradient(135deg, #FFE0D5 0%, #FFC4B0 100%);
    border-radius: 36px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
}
.phone-notch {
    width: 80px;
    height: 20px;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    margin: 0 auto 10px;
}
.phone-content {
    width: 100%;
    height: calc(100% - 30px);
    background: white;
    border-radius: 28px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.preview-title { font-size: 16px; font-weight: 800; margin-bottom: 15px; }
.preview-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; }

.settings-block {
    background: white;
    border: 2px solid var(--border);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
}
.block-header {
    background: #FFE8E0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--text);
}
.block-body { padding: 24px; }

.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #FFF9F5;
    transition: border-color 0.3s;
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}
.form-textarea { resize: vertical; min-height: 80px; }

.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}
.nav-btn {
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}
.nav-btn.back {
    background: white;
    color: var(--text);
    border: 2px solid var(--border);
}
.nav-btn.back:hover { border-color: var(--primary); }
.nav-btn.next {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-md);
}
.nav-btn.next:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.image-option input[type="radio"] { display: none; }
.image-card {
    aspect-ratio: 1;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: all 0.3s;
    background: #FFF9F5;
}
.image-card:hover { transform: scale(1.05); }
.image-option input[type="radio"]:checked + .image-card {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 107, 138, 0.25);
    background: #FFE8E0;
}

.page-title {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text);
}
.settings-title {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
}
.settings-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Прогресс-бар */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: white;
    border: 2px solid var(--border);
    color: var(--text-muted);
}
.progress-circle.completed {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}
.progress-circle.active {
    border-color: var(--primary);
    color: var(--primary);
}
.progress-line {
    width: 60px;
    height: 3px;
    background: var(--border);
}
.progress-line.completed { background: var(--gradient); }

/* Выбор пола */
.gender-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}
.gender-selector input[type="radio"] { display: none; }
.gender-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 30px 40px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    min-width: 180px;
}
.gender-card:hover { transform: translateY(-5px); }
.gender-selector input[type="radio"]:checked + .gender-card {
    border-color: var(--primary);
    background: #FFF1F2;
}

/* Финальный экран */
.done-page {
    text-align: center;
    padding: 60px 20px;
}
.done-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.1;
}
.done-title .highlight { color: var(--primary); }
.link-box {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin: 30px auto;
    max-width: 600px;
    word-break: break-all;
    font-size: 14px;
    color: var(--text-muted);
}
.link-box a { color: var(--primary); font-weight: 700; }

/* =========================================
   АДАПТИВ
   ========================================= */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 42px; }
    .section-title { font-size: 32px; }
    .step-card { grid-template-columns: 1fr; text-align: center; }
    .step-number { margin: 0 auto 16px; }
    .settings-page { flex-direction: column; gap: 30px; }
    .preview-column { flex: auto; }
    .reviews-slider { gap: 12px; }
    .review-card { padding: 40px 20px; }
    .faq-item { padding: 20px 24px; border-radius: 30px; }
    .footer-links { gap: 16px; }
}