:root {
    --olive-dark: #3E4D34;
    --olive: #6B7F5E;
    --olive-light: #E8EFE2;
    --gold: #C7A253;
    --gold-hover: #B08B3F;
    --gold-light: #E8D5A3;
    --bg-color: #F9F9F6;
    --text-main: #2C3327;
    --text-muted: #667062;
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --shadow: 0 20px 40px rgba(62, 77, 52, 0.08);
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-family); background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

.parallax-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
    background-image: radial-gradient(circle at 10% 20%, rgba(199, 162, 83, 0.08) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(107, 127, 94, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

header {
    position: fixed; top: 0; width: 100%; background: rgba(249, 249, 246, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 100; border-bottom: 1px solid rgba(0,0,0,0.03); padding: 16px 0;
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 700; color: var(--olive-dark); display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-dot { width: 12px; height: 12px; background: var(--gold); border-radius: 50%; }

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

/* --- Кнопки с золотым переливом --- */
.btn {
    display: inline-block; padding: 12px 24px; border-radius: 50px;
    font-weight: 600; font-size: 15px; text-decoration: none;
    transition: all 0.3s ease; cursor: pointer; border: none;
    text-align: center; position: relative; overflow: hidden;
}
.btn-ghost { color: var(--olive-dark); background: transparent; }
.btn-ghost:hover { background: var(--olive-light); }

.btn-primary, .btn-outline.btn-gold {
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold), var(--gold-hover));
    background-size: 300% 100%;
    color: #fff;
    box-shadow: 0 8px 20px rgba(199, 162, 83, 0.3);
    animation: goldShimmer 4s ease infinite;
}
.btn-primary:hover, .btn-outline.btn-gold:hover {
    animation-duration: 1.5s;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(199, 162, 83, 0.45);
}
@keyframes goldShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-outline {
    border: 2px solid var(--olive); color: var(--olive-dark); background: transparent;
}
.btn-outline:hover { background: var(--olive); color: white; }

/* --- Гамбургер для мобильных --- */
.hamburger {
    display: none; background: none; border: none; cursor: pointer; padding: 8px;
    flex-direction: column; gap: 5px; z-index: 110;
}
.hamburger span {
    display: block; width: 26px; height: 2.5px; background: var(--olive-dark);
    border-radius: 2px; transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-menu {
    display: none; position: fixed; top: 70px; left: 0; width: 100%;
    background: rgba(249, 249, 246, 0.98); backdrop-filter: blur(20px);
    padding: 20px 24px 30px; z-index: 99;
    flex-direction: column; gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.mobile-menu.active { display: flex; }
.mobile-menu .btn { width: 100%; }

/* --- Остальной контент (без изменений) --- */
.hero { padding: 180px 0 100px; text-align: center; }
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; color: var(--olive-dark); margin-bottom: 24px; max-width: 900px; margin-left: auto; margin-right: auto; }
.hero p { font-size: 20px; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; }

.app-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 60px; }
.app-btn { display: flex; align-items: center; gap: 10px; background: var(--olive-dark); color: white; padding: 14px 28px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; font-size: 16px; transition: transform 0.2s; }
.app-btn:hover { transform: scale(1.05); background: var(--olive); }
.app-btn svg { width: 24px; height: 24px; fill: currentColor; }

.mockup-wrapper { margin-top: 40px; perspective: 1000px; }
.mockup {
    width: 320px; height: 640px; background: white; border-radius: 40px; margin: 0 auto;
    border: 8px solid var(--olive-dark); box-shadow: 0 30px 60px rgba(62, 77, 52, 0.2);
    transform: rotateX(5deg) rotateY(-5deg); transition: transform 0.5s ease;
    background-image: linear-gradient(180deg, #fff 0%, #f0f4ec 100%); position: relative; overflow: hidden;
}
.mockup:hover { transform: rotateX(0deg) rotateY(0deg); }
.mockup::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 25px; background: var(--olive-dark); border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }
.mockup-content { padding: 50px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.mockup-card { background: white; border-radius: 16px; padding: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.mockup-card.gold { background: var(--gold); color: white; }

section { padding: 100px 0; }
.section-title { font-size: 40px; font-weight: 700; color: var(--olive-dark); text-align: center; margin-bottom: 16px; letter-spacing: -1px; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 18px; margin-bottom: 60px; max-width: 600px; margin-left: auto; margin-right: auto; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background: white; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid rgba(107, 127, 94, 0.1); }
.feature-icon { width: 60px; height: 60px; background: var(--olive-light); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--olive-dark); font-size: 28px; }
.feature-card h3 { font-size: 22px; color: var(--olive-dark); margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 16px; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: stretch; }
.pricing-card { background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 2px solid transparent; transition: 0.3s; }
.pricing-card.featured { border-color: var(--gold); transform: scale(1.02); position: relative; }
.pricing-card.featured::before { content: "Рекомендуем"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--gold); color: white; padding: 4px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; }
.pricing-card h3 { font-size: 24px; color: var(--olive-dark); margin-bottom: 8px; }
.pricing-price { font-size: 42px; font-weight: 800; color: var(--olive-dark); margin-bottom: 24px; }
.pricing-price span { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.pricing-features { list-style: none; margin-bottom: 40px; flex-grow: 1; }
.pricing-features li { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.05); color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.pricing-features li::before { content: "✓"; color: var(--gold); font-weight: bold; }

footer { background: var(--olive-dark); color: white; padding: 60px 0 30px; border-radius: 40px 40px 0 0; margin-top: 60px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-brand { max-width: 320px; }
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-links h4 { margin-bottom: 16px; color: var(--gold); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-links a:hover { color: white; text-decoration: underline; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); font-size: 13px; line-height: 1.8; }

/* --- Модальные окна --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(62, 77, 52, 0.4);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--bg-color); width: 100%; max-width: 480px;
    border-radius: var(--radius-lg); padding: 40px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
    transform: translateY(20px) scale(0.95); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; font-size: 24px;
    color: var(--text-muted); cursor: pointer; transition: color 0.2s;
}
.modal-close:hover { color: var(--olive-dark); }
.modal-title { font-size: 26px; font-weight: 700; color: var(--olive-dark); margin-bottom: 8px; text-align: center; }
.modal-subtitle { font-size: 15px; color: var(--text-muted); text-align: center; margin-bottom: 30px; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--olive-dark); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
    border: 2px solid rgba(107, 127, 94, 0.2); background: white;
    font-family: var(--font-family); font-size: 15px; color: var(--text-main);
    transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--olive); }
.form-textarea { min-height: 90px; resize: vertical; }

.consent-group {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 4px 0 16px; padding: 12px 14px;
    background: #fff; border: 2px solid rgba(107, 127, 94, 0.2);
    border-radius: var(--radius-sm); transition: border-color 0.2s;
}
.consent-group.is-invalid { border-color: #d9534f; }
.consent-group input[type="checkbox"] {
    flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
    accent-color: var(--olive); cursor: pointer;
}
.consent-group label { font-size: 13px; line-height: 1.45; color: var(--text-muted); cursor: pointer; }
.consent-group a { color: var(--olive-dark); font-weight: 600; text-decoration: underline; }

.form-submit {
    width: 100%; padding: 16px; border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 300% 100%;
    color: white; font-size: 16px; font-weight: 700;
    border: none; cursor: pointer; transition: background 0.2s, transform 0.2s;
    margin-top: 10px; animation: goldShimmer 4s ease infinite;
}
.form-submit:hover:not(:disabled) { transform: translateY(-2px); animation-duration: 1.5s; }
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; animation: none; }

.alert { padding: 12px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; display: none; text-align: center; word-break: break-word; }
.alert-error { background: #fdf0ef; color: #d9534f; border: 1px solid #f5c6cb; }
.alert-success { background: #eef7ea; color: #3E4D34; border: 1px solid #c3e0b8; }

/* --- Страница согласия --- */
.legal-page { padding: 160px 0 80px; }
.legal-card { max-width: 860px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 56px; border: 1px solid rgba(107, 127, 94, 0.1); }
.legal-card h1 { font-size: 34px; font-weight: 800; color: var(--olive-dark); margin-bottom: 8px; }
.legal-meta { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.legal-card h2 { font-size: 21px; color: var(--olive-dark); margin: 28px 0 10px; }
.legal-card p, .legal-card li { font-size: 16px; color: var(--text-main); margin-bottom: 10px; }
.legal-card ul { padding-left: 22px; margin-bottom: 14px; }
.legal-card a { color: var(--olive); font-weight: 600; }
.legal-note { background: var(--olive-light); border-left: 4px solid var(--olive); padding: 16px 20px; border-radius: var(--radius-sm); font-size: 14px; color: var(--olive-dark); margin: 24px 0; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; padding: 12px 26px; background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); background-size: 300% 100%; color: #fff; border-radius: 50px; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 8px 20px rgba(199, 162, 83, 0.3); animation: goldShimmer 4s ease infinite; }
.legal-back:hover { transform: translateY(-2px); animation-duration: 1.5s; }
.legal-back svg { width: 18px; height: 18px; fill: currentColor; }

/* --- Адаптивность --- */
@media (max-width: 1024px) {
    .nav-actions .btn-ghost { display: none; } /* скрываем "Вход" на планшетах */
    .hamburger { display: flex; } /* показываем гамбургер */
    .nav-actions .btn-outline,
    .nav-actions .btn-primary { display: none; } /* скрываем кнопки из шапки */
}

@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 18px; }
    .section-title { font-size: 32px; }
    .pricing-card.featured { transform: none; }
    .app-links { flex-direction: column; align-items: center; }
    .app-btn { width: 100%; max-width: 280px; justify-content: center; }
    .modal-content { padding: 30px 20px; margin: 16px; }
    .legal-card { padding: 28px 20px; }
    .legal-card h1 { font-size: 26px; }
}

/* ===== Адаптивная шапка Rahma.Care ===== */
.site-header { z-index: 1000; }
.header-content { min-width: 0; gap: 16px; }
.logo { flex: 0 0 auto; white-space: nowrap; }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.mobile-actions { display: none; }
.burger {
    display: none;
    width: 40px; height: 40px; padding: 9px;
    border: 1px solid rgba(62,77,52,.18); border-radius: 12px;
    background: transparent; cursor: pointer;
    flex-direction: column; justify-content: center; gap: 5px;
    flex: 0 0 auto;
}
.burger span {
    display: block; width: 20px; height: 2px;
    background: var(--olive-dark); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    padding: 14px 24px 20px; background: rgba(249,249,246,.98);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
}
.mobile-menu.active { display: flex; flex-direction: column; gap: 10px; }
.mobile-menu .btn { width: 100%; }

@media (min-width: 769px) {
    .nav-actions { display: flex !important; }
    .nav-actions .btn { display: inline-block !important; }
    .mobile-actions, .mobile-menu { display: none !important; }
}
@media (max-width: 768px) {
    header { padding: 10px 0; }
    .header-content { gap: 8px; }
    .nav-actions { display: none !important; }
    .mobile-actions {
        display: flex; align-items: center; justify-content: flex-end;
        gap: 6px; min-width: 0; margin-left: auto;
    }
    .mobile-actions .btn-compact {
        display: inline-flex; align-items: center; justify-content: center;
        min-height: 38px; padding: 8px 11px; font-size: 13px;
        line-height: 1.1; white-space: nowrap; border-radius: 30px;
    }
    .mobile-actions .btn-ghost { background: transparent; }
    .burger { display: flex; }
    .logo { font-size: 20px; gap: 6px; }
    .logo-dot { width: 10px; height: 10px; }
}
@media (max-width: 380px) {
    .container { padding-left: 12px; padding-right: 12px; }
    .header-content { gap: 5px; }
    .logo { font-size: 17px; gap: 5px; }
    .mobile-actions { gap: 4px; }
    .mobile-actions .btn-compact { padding: 7px 8px; font-size: 12px; }
    .burger { width: 36px; height: 36px; padding: 7px; }
}


/* ===== Исправления формы и ссылок подвала ===== */
/* Honeypot нужен антиспаму, но не должен быть виден посетителю. */
.hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Email в брендовом блоке подвала */
.footer-contact {
    margin-top: 12px;
    color: rgba(255,255,255,.68);
}
.footer-contact a,
.footer-requisites a {
    display: inline-block;
    color: rgba(255,255,255,.9) !important;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(199,162,83,.65);
    padding-bottom: 2px;
    transition: color .2s ease, border-color .2s ease;
}
.footer-contact a:hover,
.footer-requisites a:hover {
    color: var(--gold-light) !important;
    border-color: var(--gold-light);
}
