/* ============================================================
   GLAMPING LANDING — STYLES
   Тема: тёмный минимализм, акценты — золотой (#C9A84C)
   ============================================================ */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* --- VARIABLES --- */
:root {
  --bg-dark: #0D0F0E;
  --bg-card: #151917;
  --bg-card-hover: #1B1F1D;
  --bg-surface: #1A1E1C;
  --gold: #C9A84C;
  --gold-light: #E4CA7A;
  --gold-dim: #8B7330;
  --green-accent: #3DDC84;
  --text-primary: #F0EDE6;
  --text-secondary: #9B9A97;
  --text-muted: #5E5D5A;
  --border: #2A2E2C;
  --border-light: #363B39;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 30px rgba(0,0,0,0.4);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

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

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.header--scrolled {
  background: rgba(13, 15, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
}

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

.nav__link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { width: 100%; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.burger--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger--active span:nth-child(2) { opacity: 0; }
.burger--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 80px 32px 40px;
    gap: 24px;
    transition: right var(--transition);
    border-left: 1px solid var(--border);
  }
  .nav--open { right: 0; }
  .nav__link { font-size: 1.1rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.6);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,15,14,0.4) 0%,
    rgba(13,15,14,0.7) 50%,
    var(--bg-dark) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 120px 0 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero__title {
  margin-bottom: 20px;
  white-space: pre-line;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.7;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius);
  transition: var(--transition);
  border: none;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.hero__cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__title {
  margin-bottom: 12px;
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   ADVANTAGES
   ============================================================ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.advantage-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.advantage-card:hover {
  border-color: var(--gold-dim);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.advantage-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 14px;
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.advantage-card__title {
  margin-bottom: 10px;
  font-weight: 600;
}

.advantage-card__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc-section {
  opacity: 0;
  transform: translateY(30px);
}

.calc-section.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.calc-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.calc-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.calc-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .calc-controls { grid-template-columns: 1fr; }
  .calc-wrapper { padding: 28px 20px; }
}

.calc-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}

.calc-group__slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-group__slider-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 8px;
  outline: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: var(--fill, 50%) 100%;
  background-repeat: no-repeat;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  cursor: grab;
  border: 3px solid var(--bg-dark);
  box-shadow: 0 2px 8px rgba(201,168,76,0.3);
  transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  cursor: grab;
  border: 3px solid var(--bg-dark);
}

/* Select */
.calc-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B9A97' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  transition: border-color var(--transition);
}

.calc-select:focus {
  outline: none;
  border-color: var(--gold-dim);
}

/* Results */
.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.calc-result-item {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
}

.calc-result-item__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.calc-result-item__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
}

/* Installment & button */
.calc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.calc-installment {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
}

.calc-installment input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  cursor: pointer;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-display);
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.25);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.step-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.step-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}

.step-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(201, 168, 76, 0.12);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.step-card__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.08);
  border-radius: 16px;
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.step-card__title {
  margin-bottom: 10px;
  font-weight: 600;
}

.step-card__text {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  opacity: 0;
  transform: translateY(20px);
}

.gallery-item.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================================
   FORM
   ============================================================ */
.form-section {
  opacity: 0;
  transform: translateY(30px);
}

.form-section.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .form-wrapper { padding: 28px 20px; }
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-dim);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.form-submit-row {
  margin-top: 8px;
}

/* ============================================================
   NOTIFICATION
   ============================================================ */
.notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 16px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  max-width: 90vw;
}

.notification--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.notification--success {
  background: #1a3a2a;
  border: 1px solid #2d6a4f;
  color: #95d5b2;
}

.notification--error {
  background: #3a1a1a;
  border: 1px solid #6a2d2d;
  color: #d5a5a5;
}

.notification__close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1rem;
  opacity: 0.6;
  padding: 4px;
}

.notification__close:hover { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer__link:hover { color: var(--gold-light); }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
  margin-right: 8px;
}

.social-link:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer__disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 500px;
  text-align: right;
}

@media (max-width: 600px) {
  .footer__bottom { flex-direction: column; }
  .footer__disclaimer { text-align: left; }
}

/* ============================================================
   SCROLL HEADER SCRIPT HELPER
   ============================================================ */
