:root {
    --bg-color: #F8F5F2;
    --surface-color: #FFFFFF;
    --text-color: #333333;
    --primary-color: #2F4858;
    --accent-color: #D3756B;
    --border-color: rgba(47, 72, 88, 0.15);
    --font-serif: 'Lora', serif;
    --font-sans: 'Montserrat', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; }
.tag { display: inline-block; color: var(--accent-color); font-weight: 700; margin-bottom: 16px; letter-spacing: 1px; font-size: 14px; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-family: var(--font-serif); font-size: 42px; color: var(--primary-color); margin-bottom: 20px; }
.btn { display: inline-block; background-color: var(--primary-color); color: white; padding: 14px 32px; text-decoration: none; border-radius: 5px; font-weight: 700; transition: all 0.3s ease; border: 1px solid var(--primary-color); }
.btn:hover { background-color: var(--accent-color); border-color: var(--accent-color); }
.btn.btn-secondary { background: transparent; color: var(--primary-color); }
.btn.btn-secondary:hover { background-color: var(--primary-color); color: white; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s, transform 0.8s; transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.main-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 245, 242, 0.8); backdrop-filter: blur(10px); }
.main-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.logo { font-family: var(--font-serif); font-size: 28px; font-weight: 600; color: var(--primary-color); text-decoration: none; }
.nav-links a { text-decoration: none; color: var(--text-color); margin: 0 15px; font-weight: 500; }

.hero { min-height: 80vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.hero-content h1 { font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--primary-color); line-height: 1.2; margin-bottom: 20px; }
.hero-content p { font-size: 18px; margin-bottom: 30px; }
.hero-image-wrapper { position: relative; }
.hero-image { width: 100%; height: 500px; background: url('assets/4.jpeg') no-repeat center center; background-size: cover; border-radius: 10px; }

.philosophy-section { text-align: center; max-width: 800px; margin: 0 auto; }
.philosophy-section h2 { font-family: var(--font-serif); font-size: 32px; color: var(--primary-color); margin-bottom: 20px; }
.philosophy-section p { font-size: 18px; }

.features-section { background-color: var(--surface-color); }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.feature-card { display: flex; gap: 20px; }
.feature-icon { font-size: 32px; color: var(--accent-color); }
.feature-card h3 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 10px; }

.use-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.use-case-item { position: relative; border-radius: 10px; overflow: hidden; }
.use-case-item img { width: 100%; height: 400px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.use-case-item:hover img { transform: scale(1.05); }
.use-case-item h4 { position: absolute; bottom: 20px; left: 20px; color: white; font-size: 24px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.simplicity-section { background: var(--primary-color); color: var(--bg-color); text-align: center; padding: 80px 0; }
.simplicity-content h2 { color: var(--bg-color); font-size: 32px; }
.simplicity-content .tag { color: rgba(255,255,255,0.7); }

.privacy-section { text-align: center; }

.pricing-section { background-color: var(--surface-color); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 800px; margin: 0 auto; }
.price-card { border: 1px solid var(--border-color); padding: 40px; text-align: center; }
.price-card.popular { border: 2px solid var(--accent-color); }
.price-card h3 { font-family: var(--font-serif); font-size: 28px; }
.price { font-size: 42px; font-weight: 700; margin: 20px 0; color: var(--primary-color); }
.price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.price-card ul { list-style: none; margin-bottom: 30px; }
.price-card ul li { margin-bottom: 10px; }

.tech-section { text-align: center; padding: 60px 0; background-color: #ECE8E1; }
.tech-content h4 { font-size: 18px; font-weight: 500; max-width: 600px; margin: 0 auto; color: var(--text-muted); }

.footer { text-align: center; background-color: var(--primary-color); color: var(--bg-color); padding: 80px 0; }
.footer h2 { color: var(--bg-color); font-size: 32px; margin-bottom: 30px; }
.footer .btn { background-color: var(--bg-color); color: var(--primary-color); }
.footer .btn:hover { background-color: var(--accent-color); color: white; border-color: var(--accent-color); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 60px auto 0 auto; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.2); }
.footer-links a { color: var(--bg-color); text-decoration: none; margin-left: 20px; opacity: 0.8; }

.cookie-banner { position: fixed; bottom: 20px; left: 20px; background: var(--surface-color); padding: 20px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); z-index: 1000; max-width: 350px; opacity: 0; transform: translateY(120%); transition: opacity 0.5s, transform 0.5s; }
.cookie-banner.visible { opacity: 1; transform: translateY(0); }
.cookie-banner p { margin-bottom: 15px; font-size: 14px; }
.cookie-banner button { width: 100%; }

.footer-requisites {
    margin: 50px auto 30px auto;
    padding-top: 30px;
    max-width: 600px;
    color: rgba(248, 245, 242, 0.7);
    font-size: 14px;
    line-height: 1.8;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-requisites p {
    margin: 0;
}

.footer-requisites a {
    color: rgba(248, 245, 242, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-requisites a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-image-wrapper { display: none; }
    .features-grid, .pricing-grid, .use-cases-grid { grid-template-columns: 1fr; }
    .main-nav .nav-links, .main-nav .btn { display: none; }
    .footer-bottom { flex-direction: column; gap: 15px; }
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg-color);
}
.auth-container {
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.auth-container .logo {
    display: inline-block;
    margin-bottom: 30px;
}
.auth-card {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: left;
}
.auth-card h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.auth-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: var(--font-sans);
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 72, 88, 0.1);
}
.auth-card .btn {
    width: 100%;
    margin-top: 10px;
}
.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
    color: var(--text-muted);
}
.auth-switch a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.nav-menu .nav-link {
    text-decoration: none;
    color: var(--text-color);
    margin: 0 15px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu .nav-link:hover {
    color: var(--primary-color);
}

.nav-menu .nav-link:hover::after {
    width: 100%;
}

.legal-page .legal-content {
    padding-top: 60px;
    padding-bottom: 60px;
}
.legal-content .container {
    max-width: 800px;
}
.legal-content h1 {
    font-family: var(--font-serif);
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.legal-content p, .legal-content h3 {
    margin-bottom: 1.5em;
}
.legal-content h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--primary-color);
    margin-top: 2em;
}
