:root {
  /* === Основные цвета === */
  --primary: #2a9d8f; /* Глубокий изумруд */
  --accent: #e9c46a; /* Золотой акцент */
  --dark: #0d1b1e; /* Тёмный фон */
  --darker: #071012; /* Глубокий фон */
  --dark-accent: rgba(233, 196, 106, 0.08); /* Карточки, overlay */
  --dark-border: rgba(42, 157, 143, 0.15); /* Границы */
  --input-bg: rgba(255, 255, 255, 0.05); /* Инпуты */
  --light: #f7f7f7; /* Для логотипа на тёмном фоне */

  /* === Текстовые цвета === */
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-secondary-light: #888888;
  --text-inverse: #0d1b1e;

  /* === Тени === */
  --shadow-btn: 0 12px 30px rgba(42, 157, 143, 0.25);
  --shadow-btn-hover: 0 20px 45px rgba(42, 157, 143, 0.4);
  --shadow-phone: 0 0 25px rgba(42, 157, 143, 0.3);
  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.6);
  --shadow-cookie: 0 -8px 25px rgba(0, 0, 0, 0.35);

  /* === Радиусы === */
  --radius-btn: 30px;
  --radius-card: 20px;
  --radius-input: 12px;

  /* === Шрифты === */
  --font-primary: "Merriweather", serif;
  --font-logo: "Playfair Display", serif;

  /* === Градиенты === */
  --gradient-hero: linear-gradient(135deg, #0d1b1e, #2a9d8f33);
  --gradient-hero-overlay: radial-gradient(circle at 80% 20%, #2a9d8f33, transparent 60%);
  --gradient-comparison: linear-gradient(135deg, var(--primary), var(--accent));
}

body.light-theme {
  --dark: #f0f4f8;
  --darker: #e3edf7;
  --dark-accent: rgba(42, 157, 143, 0.05);
  --dark-border: rgba(233, 196, 106, 0.1);
  --input-bg: rgba(13, 27, 30, 0.03);

  --text-primary: #0d1b1e;
  --text-secondary: #555555;
  --text-secondary-light: #888888;
  --text-inverse: #ffffff;

  --font-primary: "Merriweather", serif;
  --font-logo: "Playfair Display", serif;
}


/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,body{
    overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-primary);
  background: var(--dark);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ================= HEADER ================= */
header {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--dark-border);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}
.logo {
  font-family: var(--font-logo);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--light);
}
.logo span {
  color: var(--primary);
}

/* ================= NAV ================= */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.nav-links a:hover {
  color: var(--primary);
}
.phone {
  background: var(--primary);
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-btn);
  font-weight: bold;
  box-shadow: var(--shadow-phone);
  text-decoration: none;
}
.burger-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
}

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  background: var(--gradient-hero), url("img/hero-bg.jpg") center/cover;
  display: flex;
  align-items: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero h1 {
  font-family: var(--font-logo);
  font-size: 6.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  color: white;
}

/* ================= BUTTONS ================= */
.btn {
  background: var(--primary);
  color: white !important;
  padding: 1.2rem 3rem;
  border: none;
  border-radius: var(--radius-btn);
  font-weight: 800;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.4s;
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  display: inline-block;
}
.btn:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-btn-hover);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  margin-left: 1.5rem;
}
body.light-theme .btn-outline {
  color: var(--primary);
}
body.dark-theme .btn-outline {
  color: white;
  border: 2px solid white;
}
body.dark-theme .btn-outline:hover {
  background: white;
  color: var(--dark);
}

/* ================= SECTIONS ================= */
.section {
  padding: 120px 0;
}
.section-title {
  text-align: center;
  font-family: var(--font-logo);
  font-size: 4rem;
  margin-bottom: 4rem;
  color: var(--primary);

}

/* ================= ADVANTAGES ================= */
.advantages {
  background: var(--darker);
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}
.adv-card {
  background: var(--dark-accent);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  text-align: center;
  transition: 0.5s;
}
.adv-card:hover {
  background: rgba(99, 102, 241, 0.25);
  transform: translateY(-15px) scale(1.05);
}
.adv-card p {
  color: var(--text-secondary);
}

/* ================= GALLERY ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.gallery-item {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  min-height: 400px;
  text-decoration: none;
  display: block;
  color: white;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s;
}
.gallery-item:hover img {
  transform: scale(1.15);
}
.overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(99, 102, 241, 0.95);
  padding: 1rem 2rem;
  border-radius: var(--radius-btn);
  font-weight: 800;
  font-size: 1.3rem;
  color: white;
}

/* ================= COMPARISON ================= */
.comparison {
  background: var(--gradient-comparison);
  clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
  padding: 150px 0;
  color: white;
}
.comparison .section-title {
  color: white;
}

/* ================= ACCESSORIES ================= */
.acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}
.acc-card {
  background: var(--dark-accent);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  text-align: center;
  border: 1px solid var(--dark-border);
  transition: 0.5s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.acc-card:hover {
  transform: translateY(-10px);
}
.price {
  font-size: 2.2rem;
  color: var(--primary);
  font-weight: 900;
  margin: 1rem 0;
}
.acc-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 1rem;
  flex-grow: 1;
}

/* ================= FORM ================= */
.order-form {
  background: var(--darker);
  padding: 4rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--dark-border);
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 1.5rem;
}
input,
select {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-input);
  border: none;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-family: var(--font-primary);
}
input::placeholder {
  color: var(--text-secondary-light);
}
select {
  color: var(--text-secondary-light);
  appearance: none;
}
select option {
  color: #333;
  background: white;
}
/* ================= FOOTER ================= */
footer {
    background: var(--darker);
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--dark-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    text-align: left;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}
.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.footer-col h3 {
    font-family: var(--font-logo);
    color: var(--primary);
    font-size: 1.8rem;
}
.footer-col p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.footer-col p strong { color: var(--text-primary); }
.footer-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-border);
    text-align: center;
}
.footer-links a {
    color: var(--text-secondary-light);
    text-decoration: none;
    margin: 0 1rem;
    transition: 0.3s;
}
.footer-links a:hover { color: var(--primary); }

/* ================= THEME SWITCHER ================= */
.theme-switcher {
    background: var(--dark-accent);
    border: 1px solid var(--dark-border);
    color: var(--primary);
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.theme-switcher:hover {
    background: var(--primary);
    color: white;
}

/* ================= COOKIE POPUP ================= */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--darker);
    border-top: 2px solid var(--primary);
    padding: 1.5rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: bottom 0.5s ease-in-out;
    box-shadow: var(--shadow-cookie);
}
.cookie-popup.show { bottom: 0; }
.cookie-popup p { color: var(--text-secondary); margin: 0; }
.cookie-popup a { color: var(--primary); text-decoration: none; }
.cookie-popup .btn { padding: 0.8rem 1.5rem; font-size: 1rem; flex-shrink: 0; }

/* ================= LEGAL PAGE ================= */
.legal-page {
    padding-top: 150px;
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.legal-page .container { flex-grow: 1; }
.legal-page h1 {
    font-family: var(--font-logo);
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
}
.legal-page h2 {
    font-family: var(--font-logo);
    font-size: 2rem;
    color: var(--accent);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.legal-page p, .legal-page li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 900px;
}
.legal-page ul { list-style-position: inside; padding-left: 1rem; }
.legal-page a { color: var(--primary); }
.thank-you-message {
    text-align: center;
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}
.thank-you-message .icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

/* ================= RESPONSIVE STYLES ================= */
@media (max-width: 1024px) {
    .hero h1 { font-size: 5rem; }
}

@media (max-width: 768px) {
    .gallery .container {
        padding: 0;
    }
    .burger-btn { display: block; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: #0a0a14;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.4s ease-in-out;
    }
    .nav-menu.active { right: 0; }
    .nav-links { flex-direction: column; align-items: flex-start; gap: 2rem; width: 100%; }
    .nav-links a { font-size: 1.5rem; color: #cbd5e1; }
    .nav-menu .phone { margin-top: 2rem; width: 100%; text-align: center; }

    .hero { padding-top: 120px; text-align: center; min-height: 750px; }
    .hero h1 { font-size: 3.2rem; line-height: 1.1; }
    .hero p { font-size: 1.25rem; margin-bottom: 2rem; }
    .hero-content .btn,
    .hero-content .btn-outline { display: block; width: 100%; margin: 1rem 0 0 0; padding: 1.1rem 2rem; }

    .section { padding: 60px 0; }
    .section-title { font-size: 2.5rem; margin-bottom: 3rem; }
    .gallery-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .comparison { padding: 100px 0; clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%); }
    .comparison p { font-size: 1.25rem; }
    .order-form { padding: 2rem; }
    #siparis { padding-bottom: 60px; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-col { text-align: center; }
    .footer-header { justify-content: center; gap: 1rem; }
    .footer-links { display: flex; flex-direction: column; gap: 1rem; }
    .footer-links a { margin: 0; }

    .legal-page { padding-top: 120px; }
    .legal-page h1 { font-size: 2.2rem; }
    .legal-page h2 { font-size: 1.8rem; }

    .cookie-popup { flex-direction: column; padding: 1.5rem; text-align: center; }
    .cookie-popup .btn { width: 100%; }
}

@media (max-width: 425px) {
    .section-title {
        font-size: 2rem;
    }
}