/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0d0c11; 
    --bg-panel: #16131c;
    --bg-lighter: #221c29;
    
    --plum: #3a1a2b;
    --burgundy: #52162a;
    
    --champagne: #e8d5be;
    --champagne-muted: #bdae9c;
    
    --text-main: #f5f0ef;
    --text-muted: #aba3a6;
    
    --glass-bg: rgba(28, 24, 35, 0.65);
    --glass-border: rgba(232, 213, 190, 0.1);
    --glass-border-hover: rgba(232, 213, 190, 0.25);
    
    --transition: cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text, .label, .label-sm {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

/* Typography Utility */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff, var(--champagne));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--champagne);
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 24px;
}

.center-text { text-align: center; }
.subtitle { max-width: 600px; margin: 0 auto 48px; }

/* Layout & Buttons */
.container, .hero-container, .nav-container, .problem-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-spacing {
    padding: 100px 0;
}

.dark-bg {
    background-color: var(--bg-panel);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

/* Buttons */
.btn-primary, .btn-outline {
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.4s var(--transition);
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--bg-lighter);
    color: var(--champagne);
    border: 1px solid var(--glass-border-hover);
    padding: 16px 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    background: var(--champagne);
    color: var(--bg-dark);
    box-shadow: 0 0 24px rgba(232, 213, 190, 0.4);
    transform: translateY(-2px);
}

.btn-primary.lg {
    font-size: 1.2rem;
    padding: 20px 48px;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
}

.btn-outline:hover {
    border-color: var(--champagne);
    color: var(--champagne);
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: background 0.3s;
}

.navbar.scrolled {
    background: rgba(13, 12, 17, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--champagne);
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.label {
    display: inline-block;
    color: var(--champagne);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--champagne);
    padding-bottom: 4px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 32px;
}

.action-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.6s var(--transition);
    /* Добавляем маску, чтобы скрыть текст, вшитый в левую часть картинки */
    -webkit-mask-image: linear-gradient(to right, transparent 5%, black 30%);
    mask-image: linear-gradient(to right, transparent 5%, black 30%);
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 90% center; /* Смещаем фокус вправо, на планшет и модель */
    filter: brightness(0.85) contrast(1.1);
}

.glow-effect {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, var(--bg-dark) 100%);
    pointer-events: none;
}

/* Marquee */
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: var(--plum);
    padding: 16px 0;
    border-top: 1px solid var(--burgundy);
    border-bottom: 1px solid var(--burgundy);
    margin-bottom: 80px;
}

.marquee-text {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--champagne);
    animation: marquee 25s linear infinite;
    padding-right: 20px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Problem Section */
.problem-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.rounded-img {
    border-radius: 16px;
    width: 100%;
    display: block;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.promise-box {
    padding: 32px;
    margin-top: 24px;
    border-left: 4px solid var(--champagne);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 64px;
}

.feature-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-hover);
}

.mockup-ui {
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
}

.ui-header {
    background: #222;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #888;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.ui-title { margin-left: auto; margin-right: auto; }

.ui-body { padding: 24px; }

.badge {
    padding: 8px 12px; border-radius: 6px; font-size: 0.85rem; margin-bottom: 8px; font-weight: 500;
}
.badge.red { background: rgba(255, 95, 86, 0.15); color: #ff5f56; border: 1px solid rgba(255,95,86,0.3); }
.badge.yellow { background: rgba(255, 189, 46, 0.15); color: #ffbd2e; border: 1px solid rgba(255,189,46,0.3); }

.verdict {
    margin-top: 16px; padding-top: 16px; border-top: 1px solid #333; font-size: 0.9rem; color: #ccc;
}

.msg {
    padding: 12px 16px; border-radius: 12px; font-size: 0.95rem; margin-bottom: 12px; width: fit-content; max-width: 85%;
}
.msg.him { background: #2a2a2a; color: #eee; }
.msg.ai { background: rgba(232, 213, 190, 0.1); border: 1px solid rgba(232, 213, 190, 0.3); color: var(--champagne); margin-left: auto; }

.ai-hint {
    font-size: 0.8rem; color: #888; text-align: center; margin-bottom: 16px; font-style: italic;
}

.replies {
    display: flex; gap: 8px; margin-bottom: 24px;
}
.reply-btn {
    flex: 1; text-align: center; padding: 8px; border: 1px solid #444; border-radius: 6px; font-size: 0.8rem; cursor: pointer; transition: 0.3s; color: #888;
}
.reply-btn.active {
    background: var(--champagne); color: var(--bg-dark); border-color: var(--champagne);
}

.feature-text-card {
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    height: 100%;
}
.icon { font-size: 2rem; margin-bottom: 16px; }

/* Transformation */
.transform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 48px;
}

.transform-col {
    padding: 40px;
    border-radius: 16px;
}
.transform-col.before {
    background: rgba(82, 22, 42, 0.1); /* light burgundy hint */
    border: 1px solid rgba(82, 22, 42, 0.3);
}

.label-sm {
    display: block; font-size: 1.5rem; margin-bottom: 32px; border-bottom: 1px solid var(--text-muted); padding-bottom: 12px;
}
.label-sm.gold { color: var(--champagne); border-color: var(--champagne); }

.transform-col ul { list-style: none; }
.transform-col li { margin-bottom: 20px; font-size: 1.1rem; color: var(--text-muted); display: flex; gap: 12px; align-items: flex-start; }
.cross { color: #ff5f56; font-weight: bold; }
.check { color: var(--champagne); font-weight: bold; }

.center-cta { margin-top: 64px; text-align: center; }

/* Cases */
.cases-carousel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}

.case-card {
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.case-avatar {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 2px solid var(--champagne);
}
.case-quote {
    font-style: italic; font-size: 1.05rem; margin-bottom: 24px; flex-grow: 1; color: #ddd;
}
.case-result {
    padding-top: 20px; border-top: 1px solid var(--glass-border); color: var(--champagne); font-weight: 500;
}

/* Final CTA */
.final-cta { text-align: center; }
.cta-container {
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid var(--champagne);
    background: linear-gradient(180deg, rgba(232, 213, 190, 0.05) 0%, transparent 100%);
}
.cta-actions { margin: 40px 0 16px; }
.micro-copy { font-size: 0.85rem; color: #666; }

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid #222;
    background: #000;
}
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo { display: flex; align-items: center; font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--champagne); }
.footer-links a { color: var(--text-muted); text-decoration: none; margin-left: 24px; transition: 0.3s; }
.footer-links a:hover { color: var(--champagne); }
.footer-copy { width: 100%; text-align: center; margin-top: 20px; font-size: 0.8rem; color: #555; }

/* Animations - Initial State */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in { opacity: 0; transition: opacity 1s ease; }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Animations - Active State */
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in.visible { opacity: 1; }

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .problem-container, .features-grid, .transform-grid, .cases-carousel {
        grid-template-columns: 1fr;
    }
    .hero { text-align: center; padding-top: 100px; }
    .hero-actions { align-items: center; margin: 32px auto 0; }
    .image-wrapper { max-width: 500px; margin: 0 auto; }
}
@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .btn-primary.lg { padding: 16px 24px; font-size: 1rem; width: 100%; }
    .navbar .btn-outline { display: none; }
}
