﻿/* =============================================
   Алиса Вереск — стили сайта
   Mobile-first, editorial lifestyle
   ============================================= */

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

:root {
    --bg: #FBFBF9;
    --bg-card: #F4F3EF;
    --bg-dark: #2D3A34;
    --text: #2D3A34;
    --text-light: #4A5D54;
    --text-muted: #7A8E83;
    --accent: #4A6356;
    --accent-hover: #3B5045;
    --border: #E5E3DD;
    --white: #FFFFFF;
    --brown: #8A7256;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --max-w: 1120px;
    --max-w-narrow: 720px;
    --px: 20px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.container--narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--px); }
.section { padding: 48px 0; }
.section--dark { background-color: var(--bg-dark); color: var(--bg); }
.section--card { background-color: var(--bg-card); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-brown { color: var(--brown); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: 28px; letter-spacing: -0.02em; }
h2 { font-size: 24px; letter-spacing: -0.01em; }
h3 { font-size: 18px; }

.text-sm { font-size: 13px; }
.text-base { font-size: 15px; }
.text-lg { font-size: 17px; }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }

.label {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--accent); display: block; margin-bottom: 12px;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 12px; font-family: var(--font-body);
    font-size: 15px; font-weight: 600; border: none; cursor: pointer;
    transition: all 0.2s ease; text-decoration: none; text-align: center; width: 100%;
}
.btn:hover { text-decoration: none; }
.btn--primary { background-color: var(--accent); color: var(--white); }
.btn--primary:hover { background-color: var(--accent-hover); color: var(--white); }
.btn--secondary { background-color: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--secondary:hover { background-color: var(--bg-card); }
.btn--dark { background-color: var(--white); color: var(--bg-dark); }
.btn--dark:hover { background-color: #f0f0f0; color: var(--bg-dark); }
.btn--ghost { background: transparent; color: var(--text-muted); font-weight: 400; font-size: 13px; padding: 8px 0; }
.btn--ghost:hover { color: var(--text); }
.btn--small { padding: 10px 20px; font-size: 13px; border-radius: 8px; }

hr { border: none; height: 1px; background-color: var(--border); margin: 0; }
.divider { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }

/* HERO */
.hero { padding: 40px 0 32px; }
.hero__inner { display: flex; flex-direction: column-reverse; gap: 32px; align-items: center; }
.hero__text { text-align: center; }
.hero__title { margin-bottom: 16px; }
.hero__subtitle { font-size: 15px; font-weight: 300; color: var(--text-light); line-height: 1.7; margin-bottom: 24px; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero__cta { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.hero__image { width: 100%; max-width: 320px; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* ПРОБЛЕМЫ */
.problems__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.problem-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.problem-card__title { font-family: var(--font-serif); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.problem-card__text { font-size: 14px; font-weight: 300; color: var(--text-light); line-height: 1.6; }

/* ТЕСТ-БЛОК */
.test-cta { padding: 48px 0; }
.test-cta__box { background: var(--bg-card); border-radius: 24px; padding: 32px 24px; text-align: center; }
.test-cta__title { margin-bottom: 12px; }
.test-cta__subtitle { font-size: 15px; color: var(--text-light); font-weight: 300; margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* МАГНИТ */
.magnet { padding: 48px 0; }
.magnet__box { background: var(--bg-card); border-radius: 24px; padding: 32px 24px; text-align: center; }
.magnet__title { margin-bottom: 12px; }
.magnet__text { font-size: 15px; color: var(--text-light); font-weight: 300; margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ПРОДУКТЫ */
.products__grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.product-card__title { font-family: var(--font-serif); font-size: 18px; font-weight: 600; }
.product-card__subtitle { font-size: 14px; font-weight: 300; color: var(--text-light); line-height: 1.5; }
.product-card__meta { font-size: 12px; color: var(--text-muted); }
.product-card__price { display: flex; align-items: baseline; gap: 10px; }
.product-card__price-current { font-size: 20px; font-weight: 600; color: var(--accent); }
.product-card__price-old { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }

/* БАНДЛ */
.bundle { padding: 48px 0; }
.bundle__box { background: var(--bg-dark); color: var(--bg); border-radius: 24px; padding: 32px 24px; text-align: center; }
.bundle__title { font-family: var(--font-serif); font-size: 24px; font-weight: 600; margin-bottom: 8px; color: var(--white); }
.bundle__subtitle { font-size: 15px; font-weight: 300; opacity: 0.8; margin-bottom: 20px; }
.bundle__list { text-align: left; font-size: 14px; font-weight: 300; opacity: 0.9; margin-bottom: 20px; }
.bundle__list li { padding: 4px 0; list-style: none; }
.bundle__list li::before { content: "✓ "; color: var(--accent); font-weight: 600; }
.bundle__price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 20px; }
.bundle__price-current { font-family: var(--font-serif); font-size: 32px; font-weight: 600; color: var(--white); }
.bundle__price-old { font-size: 16px; text-decoration: line-through; opacity: 0.5; }

/* АЛИСА */
.about { padding: 48px 0; }
.about__photo { width: 100%; max-width: 200px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__text { font-size: 15px; font-weight: 300; color: var(--text-light); line-height: 1.8; margin-bottom: 12px; }

/* FAQ */
.faq { padding: 48px 0; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__question { width: 100%; background: none; border: none; padding: 16px 0; font-family: var(--font-serif); font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.faq__question::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--text-muted); transition: transform 0.2s; }
.faq__item.active .faq__question::after { content: '-'; }
.faq__answer { display: none; padding: 0 0 16px; font-size: 14px; font-weight: 300; color: var(--text-light); line-height: 1.7; }
.faq__item.active .faq__answer { display: block; }

/* ФИНАЛЬНЫЙ CTA */
.final-cta { padding: 48px 0 96px; }
.final-cta__buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.final-cta__buttons a { display: block; padding: 14px 20px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--text); text-align: center; transition: all 0.2s; }
.final-cta__buttons a:hover { border-color: var(--accent); background: var(--bg-card); text-decoration: none; }

/* ФУТЕР */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 32px 0; font-size: 12px; color: var(--text-muted); }
.footer__inner { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.footer__links a { color: var(--text-muted); font-size: 12px; }
.footer__links a:hover { color: var(--text); }

/* МОБИЛЬНАЯ ФИКСИРОВАННАЯ КНОПКА */
.mobile-fixed { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; padding: 12px var(--px); background: var(--bg); border-top: 1px solid var(--border); }
.mobile-fixed .btn { margin: 0; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

/* МОДАЛКА */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: 20px; padding: 32px 24px; max-width: 420px; width: 100%; position: relative; }
.modal__close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); }
.modal__title { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.modal__text { font-size: 14px; font-weight: 300; color: var(--text-light); margin-bottom: 20px; line-height: 1.6; }
.modal__form { display: flex; flex-direction: column; gap: 12px; }
.modal__input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; font-family: var(--font-body); font-size: 14px; outline: none; }
.modal__input:focus { border-color: var(--accent); }
.modal__success { display: none; font-size: 14px; color: var(--accent); font-weight: 500; text-align: center; padding: 16px 0; }

/* ТЕСТ */
.quiz { padding: 40px 0 96px; min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.quiz-container { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 28px 20px; max-width: 480px; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.progress-bar { width: 100%; height: 5px; background-color: var(--border); border-radius: 3px; margin-bottom: 24px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background-color: var(--accent); transition: width 0.3s ease; border-radius: 3px; }
.quiz h2 { font-family: var(--font-serif); font-size: 19px; font-weight: 600; line-height: 1.4; margin: 0 0 20px; }
.options-list { display: flex; flex-direction: column; gap: 10px; }
.option-btn { background: #FAFAFA; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; text-align: left; font-size: 14px; color: var(--text); cursor: pointer; transition: all 0.2s; line-height: 1.4; font-family: var(--font-body); }
.option-btn:hover { border-color: var(--accent); background: #F4F6F5; }
.result-screen { display: none; text-align: center; }
.badge { display: inline-block; background: #EAF0EC; color: var(--accent); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.result-desc { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.offer-box { background: #FAF8F5; border: 1px dashed #D5CFC5; border-radius: 12px; padding: 16px; margin-top: 20px; text-align: left; }

/* АДАПТИВ */
@media (min-width: 640px) {
    :root { --px: 32px; }
    .section { padding: 72px 0; }
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    .problems__grid { grid-template-columns: repeat(2, 1fr); }
    .products__grid { grid-template-columns: repeat(2, 1fr); }
    .final-cta__buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (min-width: 960px) {
    :root { --px: 48px; }
    .section { padding: 96px 0; }
    h1 { font-size: 44px; }
    h2 { font-size: 36px; }
    .hero__inner { flex-direction: row; text-align: left; }
    .hero__text { text-align: left; }
    .hero__cta { align-items: flex-start; }
    .hero__image { max-width: 380px; }
    .problems__grid { grid-template-columns: repeat(3, 1fr); }
    .products__grid { grid-template-columns: repeat(3, 1fr); }
    .footer__inner { flex-direction: row; justify-content: space-between; }
    .mobile-fixed { display: none !important; }
}

@media (min-width: 640px) and (max-width: 959px) {
    .hero__inner { flex-direction: row; text-align: left; }
    .hero__text { text-align: left; }
    .hero__cta { align-items: flex-start; }
    .hero__image { max-width: 280px; }
    .products__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
    .mobile-fixed { display: block; }
    body { padding-bottom: 72px; }
}

/* =============================================
   МИНИ-ПЛЕЕР
   ============================================= */
.player {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 20px;
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
}

.player__cover {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.player__title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.player__duration {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.player__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.player__play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.player__play:hover {
    background: var(--accent-hover);
}

.player__progress {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.player__bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.player__time {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 36px;
    text-align: right;
}

.player__phrase {
    font-family: var(--font-serif);
    font-size: 14px;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 12px;
}

.player__tip {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.5;
}

.player--hidden { display: none; }

.player__icon { display: inline-block; vertical-align: middle; }
