/* ======================================================
   TAKT.CSS — ГК Такт, Истра. Главный стилевой файл.
   Концепция: «Конструктор настроения участка»
   Шрифты: Cormorant Garamond (дисплей) + Jost (текст)
   ====================================================== */

/* ── GOOGLE FONTS (локально подключены в base.html) ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600;700&display=swap');

/* ======================================================
   ROOT / CSS VARIABLES
   ====================================================== */
:root {
  /* Mood 0 — Тишина (green) */
  --m0-bg1:    #1a2818;
  --m0-bg2:    #2d3d2a;
  --m0-bg3:    #0f1e0d;
  --m0-accent: #7aaa5f;

  /* Mood 1 — Стиль и ветер (blue) */
  --m1-bg1:    #1a2535;
  --m1-bg2:    #2c3f58;
  --m1-bg3:    #0d1a2a;
  --m1-accent: #7ab8d8;

  /* Mood 2 — Обзор и безопасность (violet) */
  --m2-bg1:    #1e2232;
  --m2-bg2:    #2a3048;
  --m2-bg3:    #10142a;
  --m2-accent: #a090e0;

  /* Active mood defaults (mood 0) */
  --bg1:    var(--m0-bg1);
  --bg2:    var(--m0-bg2);
  --bg3:    var(--m0-bg3);
  --accent: var(--m0-accent);
  --atext:  #e8f0e4;
  --asub:   rgba(232,240,228,0.6);

  /* Universal palette */
  --bg:          #111820;
  --bg-card:     #1a2230;
  --bg-panel:    rgba(255,255,255,0.04);
  --border:      rgba(255,255,255,0.1);
  --border-dim:  rgba(255,255,255,0.06);
  --white:       #ffffff;
  --white-dim:   rgba(255,255,255,0.85);
  --white-muted: rgba(255,255,255,0.55);
  --white-faded: rgba(255,255,255,0.25);
  --blue:        var(--accent);
  --blue-trace:  rgba(122,170,95,0.07);

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Jost', system-ui, sans-serif;

  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 8px 40px rgba(0,0,0,0.5);
  --shadow-sm: 0 4px 20px rgba(0,0,0,0.35);

  --transition: 0.3s ease;
  --transition-mood: 0.9s ease;
}

/* Mood body classes */
body.mood-0 { --bg1:var(--m0-bg1); --bg2:var(--m0-bg2); --bg3:var(--m0-bg3); --accent:var(--m0-accent); --atext:#e8f0e4; --asub:rgba(232,240,228,0.6); --blue-trace:rgba(122,170,95,0.07); }
body.mood-1 { --bg1:var(--m1-bg1); --bg2:var(--m1-bg2); --bg3:var(--m1-bg3); --accent:var(--m1-accent); --atext:#e4eef5; --asub:rgba(228,238,245,0.6); --blue-trace:rgba(122,184,216,0.07); }
body.mood-2 { --bg1:var(--m2-bg1); --bg2:var(--m2-bg2); --bg3:var(--m2-bg3); --accent:var(--m2-accent); --atext:#eceaf8; --asub:rgba(236,234,248,0.6); --blue-trace:rgba(160,144,224,0.07); }

/* ======================================================
   RESET & BASE
   ====================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--white-dim);
  overflow-x: hidden;
  transition: background var(--transition-mood), color 0.6s ease;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ======================================================
   SCROLL PROGRESS
   ====================================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s, background 0.6s;
}

/* ======================================================
   TYPOGRAPHY
   ====================================================== */
.display-serif {
  font-family: var(--ff-display);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--white-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.section-head { margin-bottom: 2.5rem; }
.section-head.center { text-align: center; }

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 50px;
  margin-bottom: 0.75rem;
  transition: color 0.6s, border-color 0.6s;
}

/* ======================================================
   NAVBAR
   ====================================================== */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0;
  background: transparent;
  transition: background 0.4s;
}
#mainNav.scrolled {
  background: rgba(10, 14, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dim);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar-brand {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white) !important;
  padding: 16px 0;
  letter-spacing: 0.05em;
}
.navbar-brand .accent-dot { color: var(--accent); transition: color 0.6s; }
.nav-link {
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 20px 12px !important;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active-link { color: var(--white) !important; }
.nav-cta-btn {
  margin-left: 8px;
  padding: 8px 20px !important;
  background: var(--accent);
  color: #fff !important;
  border-radius: 50px;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  transition: background 0.3s, opacity 0.2s !important;
}
.nav-cta-btn:hover { opacity: 0.88; }
.navbar-toggler {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
}
.navbar-toggler-icon { filter: invert(1); }

/* ======================================================
   FLOATING CALL BUTTON
   ====================================================== */
.call-float {
  position: fixed;
  bottom: 28px; right: 20px; z-index: 9998;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.call-wrap { position: relative; width: 58px; height: 58px; }
.call-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: cring 2.4s ease-out infinite;
  transition: border-color 0.6s;
}
.call-ring-2 { animation-delay: 0.9s; }
@keyframes cring {
  0%   { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(1.95); opacity: 0; }
}
.call-btn {
  position: relative; z-index: 2;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.25rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.6s, transform 0.2s;
}
.call-btn:hover { transform: scale(1.08); color: #fff; }
.call-lbl {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--white-faded);
  white-space: nowrap;
}

/* ======================================================
   HERO SECTION (главная страница)
   ====================================================== */
.hero {
  min-height: 100vh;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding-top: 80px;
  background: var(--bg3);
  transition: background var(--transition-mood);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, var(--bg2) 0%, var(--bg3) 60%),
    radial-gradient(ellipse 50% 50% at 75% 70%, var(--bg1) 0%, transparent 60%);
  transition: background var(--transition-mood);
}
.hero-noise {
  position: absolute; inset: 0; z-index: 1; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}
.bokeh { position: absolute; border-radius: 50%; pointer-events: none; }
.bokeh-1 { width: 280px; height: 280px; top: 10%; left: 5%; background: radial-gradient(circle, var(--accent), transparent 70%); opacity: 0.08; animation: bFloat 14s ease-in-out infinite; transition: background 0.8s; }
.bokeh-2 { width: 180px; height: 180px; top: 55%; right: 8%; background: radial-gradient(circle, var(--accent), transparent 70%); opacity: 0.06; animation: bFloat 19s ease-in-out infinite reverse; transition: background 0.8s; }
.bokeh-3 { width: 120px; height: 120px; bottom: 15%; left: 30%; background: radial-gradient(circle, var(--accent), transparent 70%); opacity: 0.07; animation: bFloat 11s ease-in-out infinite 3s; transition: background 0.8s; }
@keyframes bFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-40px) scale(1.15); }
  66%      { transform: translate(-20px,25px) scale(0.9); }
}
.hero-content {
  position: relative; z-index: 3;
  text-align: center; max-width: 840px;
  padding: 0 20px; width: 100%;
}
.hero-eyebrow { color: var(--accent); transition: color 0.6s; margin-bottom: 1.2rem; }
.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 300; font-style: italic;
  color: var(--white); line-height: 1.08; margin-bottom: 1rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}
.hero h1 em { font-style: normal; color: var(--accent); transition: color 0.6s; }
.hero-slogan {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 300; font-style: italic;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2.5rem;
}

/* ── Mood switcher ── */
.mood-switcher {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.mood-btn {
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  transition: all 0.35s ease;
  min-width: 120px;
  user-select: none;
  position: relative; overflow: hidden;
}
.mood-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent); opacity: 0;
  transition: opacity 0.35s; border-radius: var(--radius);
}
.mood-btn:hover::before { opacity: 0.08; }
.mood-btn.active {
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 28px rgba(0,0,0,0.3), inset 0 0 0 1px var(--accent);
  transform: translateY(-3px);
}
.mood-btn.active::before { opacity: 0.1; }
.mood-emoji { font-size: 2rem; line-height: 1; position: relative; z-index: 1; }
.mood-name {
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
  position: relative; z-index: 1; transition: color 0.3s;
}
.mood-btn.active .mood-name { color: var(--accent); transition: color 0.6s; }

/* Range slider */
.mood-range-wrap {
  position: relative; width: 340px; max-width: 90vw; margin: 0 auto 0;
}
.mood-range-labels {
  display: flex; justify-content: space-between;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 8px;
}
input[type=range].mood-range {
  -webkit-appearance: none; width: 100%; height: 4px;
  border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) var(--range-pct, 0%), rgba(255,255,255,0.12) var(--range-pct, 0%));
  transition: background 0.3s;
}
input[type=range].mood-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(0,0,0,0.4), 0 0 0 4px rgba(255,255,255,0.1);
  transition: background 0.6s, transform 0.2s; cursor: grab;
}
input[type=range].mood-range::-webkit-slider-thumb:active { transform: scale(1.25); cursor: grabbing; }
input[type=range].mood-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: var(--accent); cursor: grab;
}

/* ── Mood stage ── */
.mood-stage {
  position: relative; z-index: 3; width: 100%;
  max-width: 1040px; margin: 0 auto;
  padding: 40px 20px 60px;
}
.mood-panel { display: none; }
.mood-panel.active { display: block; }
.mood-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (max-width: 768px) {
  .mood-panel-inner { grid-template-columns: 1fr; }
}
.mood-visual {
  border-radius: 14px; overflow: hidden;
  aspect-ratio: 4/3; position: relative;
  background: rgba(0,0,0,0.3);
}
.fence-scene {
  position: absolute; inset: 0; display: flex;
  flex-direction: column; justify-content: flex-end;
  padding-bottom: 12px;
}
.fp-row {
  display: flex; align-items: flex-end;
  gap: 0; padding: 0 12px 0;
}
/* Профнастил */
.pf-panel {
  flex: 1; height: 120px;
  background: linear-gradient(180deg, #2d3e2a, #1e2c1c);
}
.pf-post {
  width: 8px; height: 130px;
  background: linear-gradient(180deg, #4a5c47, #2a3828);
  margin: 0 2px;
}
/* Евроштакетник */
.es-slat {
  flex: 0 0 18px; height: 100px;
  background: linear-gradient(180deg, #7ab8d8, #4a88a8);
  border-radius: 2px 2px 0 0;
}
.es-color { background: linear-gradient(180deg, #6aace8, #3a78c8); }
.es-post {
  flex: 0 0 10px; height: 115px;
  background: linear-gradient(180deg, #4a7a9a, #2a5a7a);
  margin: 0 2px;
}
/* 3D сетка */
.mesh-post {
  flex: 0 0 10px; height: 100px;
  background: linear-gradient(180deg, #7070b0, #4040a0);
  margin: 0 3px;
}
.mesh-cell {
  flex: 1; height: 100px;
  background: repeating-conic-gradient(rgba(160,144,224,0.2) 0% 25%, transparent 0% 50%) 0/14px 14px;
  border: 1px solid rgba(160,144,224,0.3);
}
/* scene backgrounds */
.scene-sky-silence { flex: 1; background: linear-gradient(180deg, #0f1e0d, #1a2818); }
.scene-sky-wind    { flex: 1; background: linear-gradient(180deg, #0d1a2a, #1a2535); }
.scene-sky-security{ flex: 1; background: linear-gradient(180deg, #10142a, #1e2232); }
/* leaves */
.scene-leaves { position: absolute; inset: 0; pointer-events: none; }
.leaf {
  position: absolute;
  width: 20px; height: 10px;
  background: var(--accent); opacity: 0.4;
  clip-path: ellipse(50% 50% at 50% 50%);
  animation: leafSway 4s ease-in-out infinite;
  transition: background 0.6s;
}
@keyframes leafSway {
  0%,100% { transform: rotate(0deg) translateY(0); }
  50%      { transform: rotate(8deg) translateY(-6px); }
}
/* stars (mood 2) */
.star {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(160,144,224,0.8); border-radius: 50%;
  animation: starBlink 3s ease-in-out infinite;
}
@keyframes starBlink {
  0%,100% { opacity: 0.8; }
  50%      { opacity: 0.2; }
}

/* mood info */
.mood-info { padding: 8px 0; }
.mood-tag {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.75rem; transition: color 0.6s;
}
.mood-info h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400; color: var(--white);
  line-height: 1.2; margin-bottom: 0.75rem;
}
.mood-desc {
  color: var(--white-muted);
  font-size: 0.87rem; line-height: 1.75;
  margin-bottom: 1.2rem;
}
.mood-material-badge {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
  margin-bottom: 1rem;
}
.mat-icon { font-size: 1.6rem; }
.mat-info { display: flex; flex-direction: column; }
.mat-info strong { color: var(--white); font-size: 0.9rem; font-weight: 600; }
.mat-info span { color: var(--white-muted); font-size: 0.78rem; }
.mood-props { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.5rem; }
.prop-chip {
  font-size: 0.73rem; font-weight: 500;
  padding: 5px 12px; border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--white-muted);
}
.prop-chip.active-chip {
  border-color: var(--accent);
  color: var(--white);
  background: rgba(255,255,255,0.05);
}
.btn-choose-mood {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 12px 28px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-choose-mood:hover { opacity: 0.88; transform: translateY(-2px); color: #fff; }

/* ======================================================
   PAGE HERO (внутренние страницы)
   ====================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--bg) 0%, #1a2230 100%);
  padding: 110px 0 50px;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(122,170,95,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400; font-style: italic;
  color: var(--white); line-height: 1.1;
  margin-top: 0.75rem;
  margin-bottom: 0.6rem;
}
.page-hero-desc {
  color: var(--white-muted);
  font-size: 0.9rem; line-height: 1.7;
  max-width: 600px;
}

/* Breadcrumbs */
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 4px;
  list-style: none; padding: 0; margin: 0;
  font-size: 0.75rem; color: var(--white-faded);
}
.breadcrumbs li + li::before { content: '→'; margin-right: 4px; }
.breadcrumbs a { color: var(--white-faded); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--accent); }
.bc-cur { color: var(--accent); }

/* Sep line */
.sep-line {
  width: 50px; height: 2px;
  background: var(--accent);
  margin-bottom: 1.5rem;
  transition: background 0.6s;
}

/* ======================================================
   BUTTONS
   ====================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--white-dim);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn.sm { padding: 8px 20px; font-size: 0.76rem; }
.btn.lg { padding: 15px 36px; font-size: 0.88rem; }
.btn.w-100 { width: 100%; justify-content: center; }

/* ======================================================
   FORMS
   ====================================================== */
.f-group { margin-bottom: 1rem; }
.f-label {
  display: block;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--white-muted); margin-bottom: 6px;
}
.f-input {
  display: block; width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  color: var(--white); font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.f-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.09);
}
.f-input::placeholder { color: var(--white-faded); }
.f-input.light-bg { background: rgba(255,255,255,0.04); }
select.f-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
textarea.f-input { resize: vertical; min-height: 100px; }
.f-privacy { font-size: 0.7rem; color: var(--white-faded); line-height: 1.5; }

/* mood chosen display (форма на главной) */
.mood-chosen-display {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
}
.mcd-emoji { font-size: 1.8rem; }
.mcd-text { display: flex; flex-direction: column; }
.mcd-text strong { color: var(--white); font-size: 0.9rem; }
.mcd-text span { color: var(--white-muted); font-size: 0.78rem; }
.btn-send {
  width: 100%; padding: 14px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.06em; cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-send:hover { opacity: 0.88; transform: translateY(-2px); }

/* ======================================================
   FORM SECTION (главная страница)
   ====================================================== */
.form-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg) 0%, #1a2230 100%);
  position: relative;
}
.form-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(255,255,255,0.02) 0%, transparent 70%);
  pointer-events: none;
}
.form-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 40px;
  backdrop-filter: blur(8px);
}
.form-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300; color: var(--white); margin-bottom: 0.5rem;
}
.form-title em { font-style: italic; color: var(--accent); transition: color 0.6s; }
.form-sub { color: var(--white-muted); font-size: 0.87rem; line-height: 1.7; margin-bottom: 1.8rem; }
.contact-aside {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 36px;
}
.ca-title {
  font-family: var(--ff-display);
  font-size: 1.3rem; font-weight: 300; font-style: italic;
  color: var(--white-dim); margin-bottom: 1rem;
}
.phone-accent {
  display: block;
  font-size: 1.6rem; font-weight: 600;
  color: var(--accent); margin-bottom: 1.8rem;
  transition: color 0.6s;
}
.phone-accent:hover { opacity: 0.88; }
.ca-row {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 1rem;
}
.ca-ico {
  width: 38px; height: 38px;
  background: var(--blue-trace);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 0.9rem;
  flex-shrink: 0; transition: background 0.6s, color 0.6s;
}
.ca-row > div:last-child { display: flex; flex-direction: column; }
.ca-row strong { color: var(--white); font-size: 0.84rem; font-weight: 600; }
.ca-row span { color: var(--white-muted); font-size: 0.78rem; }

/* ======================================================
   STORIES SECTION (главная страница)
   ====================================================== */
.stories-section { padding: 80px 0 60px; background: var(--bg); }
.story-scroll-container {
  overflow-x: auto; padding: 0 20px 20px;
  cursor: grab; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.story-scroll-container::-webkit-scrollbar { display: none; }
.story-track {
  display: flex; gap: 20px;
  width: max-content; padding: 10px 4px;
}
.story-card {
  width: 280px; flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.story-img {
  height: 170px; position: relative;
  background: linear-gradient(135deg, #1a1428, #2a2240);
  display: flex; align-items: center; justify-content: center;
}
.si-1 { background: linear-gradient(135deg, #0f1e0d, #1e3218); }
.si-2 { background: linear-gradient(135deg, #0d1824, #182a3a); }
.si-3 { background: linear-gradient(135deg, #0e1020, #1a1c38); }
.story-img-icon { font-size: 3.5rem; opacity: 0.2; }
.story-mood-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.55);
  color: var(--white-dim); padding: 4px 10px;
  border-radius: 50px; backdrop-filter: blur(8px);
}
.story-read-more {
  position: absolute; bottom: 12px; right: 12px;
  font-size: 0.72rem; color: var(--white-muted);
  background: rgba(0,0,0,0.45); padding: 4px 10px;
  border-radius: 50px; backdrop-filter: blur(8px);
}
.story-body { padding: 18px 20px; }
.story-body h5 {
  font-family: var(--ff-display);
  font-size: 1.05rem; font-weight: 400; color: var(--white);
  margin-bottom: 0.4rem;
}
.story-body p { color: var(--white-muted); font-size: 0.8rem; line-height: 1.6; margin-bottom: 0.6rem; }
.story-price { font-size: 0.75rem; font-weight: 600; color: var(--accent); transition: color 0.6s; }

/* Story Modal */
.story-modal .modal-content {
  background: #141c24;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--white-dim);
}
.story-modal .modal-header {
  border-bottom: 1px solid var(--border-dim);
  padding: 20px 24px 16px;
}
.story-modal .modal-title {
  font-family: var(--ff-display);
  font-size: 1.3rem; font-weight: 400; color: var(--white);
}
.story-modal .btn-close { filter: invert(1) opacity(0.5); }
.story-modal .modal-body { padding: 24px; }
.modal-visual {
  height: 120px; border-radius: 10px;
  background: linear-gradient(135deg, #1a1428, #2a2240);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.modal-details {
  display: flex; gap: 10px; margin: 16px 0 20px;
}
.md-chip {
  flex: 1; text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 8px;
}
.dc-val { font-family: var(--ff-display); font-size: 1.2rem; color: var(--accent); transition: color 0.6s; }
.dc-lbl { font-size: 0.68rem; color: var(--white-faded); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.btn-modal-cta {
  width: 100%; padding: 13px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; cursor: pointer;
  transition: opacity 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-modal-cta:hover { opacity: 0.88; }

/* ======================================================
   QUICK BAR
   ====================================================== */
.quick-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-dim);
  padding: 10px 0; overflow-x: auto;
  scrollbar-width: none;
}
.quick-bar::-webkit-scrollbar { display: none; }
.quick-bar-inner {
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.quick-lbl {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--white-faded);
  flex-shrink: 0; margin-right: 4px;
}
.quick-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 500;
  color: var(--white-muted); padding: 5px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: all 0.2s; flex-shrink: 0;
}
.quick-chip:hover {
  color: var(--accent); border-color: var(--accent);
  background: var(--blue-trace);
}

/* ======================================================
   SERVICES SCROLL (главная — горизонтальный скролл)
   ====================================================== */
.scroll-wrap { overflow-x: auto; scrollbar-width: none; }
.scroll-wrap::-webkit-scrollbar { display: none; }
.scroll-track { display: flex; gap: 16px; padding: 4px 2px 12px; width: max-content; }

/* Service Cards */
.s-card {
  width: 260px; flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.s-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.s-card-media { position: relative; overflow: hidden; height: 170px; }
.s-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.s-card:hover .s-card-media img { transform: scale(1.05); }
.s-card-cat {
  position: absolute; top: 10px; left: 10px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 3px 10px; border-radius: 50px;
  transition: background 0.6s;
}
.s-card-media-ph {
  height: 170px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-panel); color: var(--accent); font-size: 2.5rem; opacity: 0.6;
}
.s-card-body { padding: 16px; }
.s-card-name { font-family: var(--ff-display); font-size: 1.05rem; font-weight: 400; color: var(--white); margin-bottom: 5px; }
.s-card-desc { font-size: 0.78rem; color: var(--white-muted); line-height: 1.6; margin-bottom: 8px; }
.s-card-price { font-size: 0.82rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; transition: color 0.6s; }
.s-card-foot { display: flex; gap: 6px; }

/* Services grid tiles (страница категории) */
.srv-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s; height: 100%;
}
.srv-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.srv-tile-img { height: 200px; overflow: hidden; }
.srv-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.srv-tile:hover .srv-tile-img img { transform: scale(1.05); }
.srv-tile-img-ph {
  height: 200px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-panel); color: var(--accent); font-size: 3rem; opacity: 0.5;
}
.srv-tile-body { padding: 18px; }
.srv-tile-name { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 400; color: var(--white); margin-bottom: 8px; }
.srv-tile-desc { font-size: 0.82rem; color: var(--white-muted); line-height: 1.65; margin-bottom: 10px; }
.srv-tile-price { font-size: 0.88rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; transition: color 0.6s; }
.srv-tile-actions { display: flex; gap: 8px; }

/* Service detail */
.srv-detail-img { border-radius: var(--radius); overflow: hidden; }
.srv-detail-img img { width: 100%; border-radius: var(--radius); }
.feat-table { width: 100%; border-collapse: collapse; }
.feat-table td { padding: 8px 4px; border-bottom: 1px solid var(--border-dim); font-size: 0.82rem; color: var(--white-muted); }
.feat-table td:first-child { color: var(--white-faded); width: 45%; }

/* Price panel */
.price-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.price-panel-head {
  background: rgba(255,255,255,0.06);
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-dim);
}
.price-panel-head h3 {
  font-family: var(--ff-display);
  font-size: 1.15rem; font-weight: 400; color: var(--white); margin-bottom: 4px;
}
.price-panel-val { font-size: 1.4rem; font-weight: 700; color: var(--accent); transition: color 0.6s; }
.price-panel-body { padding: 20px 22px; }
.price-panel-body p { color: var(--white-muted); font-size: 0.82rem; line-height: 1.65; margin-bottom: 1rem; }

/* ======================================================
   PROCESS SECTION
   ====================================================== */
.process-section { padding: 70px 0; background: var(--bg-card); }
.process-track {
  display: flex; gap: 0;
  position: relative; flex-wrap: wrap;
}
.process-track::before {
  content: '';
  position: absolute; top: 24px; left: 0; right: 0;
  height: 1px; background: var(--border); z-index: 0;
}
.process-step {
  flex: 1; min-width: 140px;
  text-align: center; position: relative; z-index: 1;
  padding: 0 12px;
}
.p-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 1.1rem; font-weight: 600;
  color: #fff; margin: 0 auto 12px;
  box-shadow: 0 0 0 4px var(--bg-card), 0 0 0 5px var(--border);
  transition: background 0.6s;
}
.p-title { font-size: 0.85rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.p-desc  { font-size: 0.76rem; color: var(--white-muted); line-height: 1.55; }

/* ======================================================
   WHY / ADVANTAGES
   ====================================================== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 576px) { .why-grid { grid-template-columns: 1fr; } }
.why-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px;
  transition: border-color 0.2s;
}
.why-item:hover { border-color: var(--accent); }
.why-ico {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--blue-trace);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1rem; flex-shrink: 0;
  transition: background 0.6s, color 0.6s;
}
.why-item h4 { font-size: 0.88rem; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.why-item p  { font-size: 0.78rem; color: var(--white-muted); line-height: 1.5; margin: 0; }

/* ======================================================
   CTA SECTION
   ====================================================== */
.cta-section {
  background: linear-gradient(135deg, #111820, #1a2230);
  padding: 70px 0;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(122,170,95,0.05) 0%, transparent 70%);
  pointer-events: none; transition: background 0.6s;
}
.cta-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 50px; align-items: center;
}
@media (max-width: 768px) { .cta-grid { grid-template-columns: 1fr; gap: 32px; } }
.cta-phone {
  display: block; font-size: 2rem; font-weight: 700;
  color: var(--accent); margin: 1rem 0; line-height: 1;
  transition: color 0.6s;
}
.cta-phone:hover { opacity: 0.88; }
.cta-note { color: var(--white-muted); font-size: 0.82rem; margin-bottom: 1.5rem; }
.cta-perks { display: flex; flex-direction: column; gap: 8px; }
.cta-perk {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; color: var(--white-dim);
}
.cta-perk i { color: var(--accent); font-size: 0.9rem; transition: color 0.6s; }
.cta-section .price-panel { background: rgba(255,255,255,0.06); }

/* ======================================================
   PORTFOLIO
   ====================================================== */
.port-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.port-filter {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.76rem; font-weight: 500;
  padding: 6px 16px; border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--white-muted); cursor: pointer;
  transition: all 0.2s;
}
.port-filter:hover, .port-filter.active {
  border-color: var(--accent); color: var(--accent);
  background: var(--blue-trace);
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.port-item {
  border-radius: 12px; overflow: hidden;
  position: relative; cursor: pointer;
  aspect-ratio: 4/3;
}
.port-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.port-item:hover img { transform: scale(1.05); }
.port-item-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 16px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 100%);
  transform: translateY(40%); opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.port-item:hover .port-item-info { transform: translateY(0); opacity: 1; }
.port-item-info h3 { font-family: var(--ff-display); font-size: 1rem; color: #fff; margin-bottom: 2px; }
.port-item-info p  { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin: 0; }

/* Mosaic (главная) */
.port-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 10px;
}
.port-mosaic .port-cell:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.port-cell { border-radius: 10px; overflow: hidden; position: relative; cursor: pointer; }
.port-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.port-cell:hover img { transform: scale(1.06); }
.port-cell-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
  padding: 12px;
}
.port-cell:hover .port-cell-overlay { opacity: 1; }
.port-cell-overlay h4 { color: #fff; font-size: 0.88rem; text-align: center; margin-bottom: 4px; }
.port-cell-overlay span { color: rgba(255,255,255,0.6); font-size: 0.74rem; text-align: center; }
@media (max-width: 576px) {
  .port-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .port-mosaic .port-cell:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}

/* ======================================================
   BLOG
   ====================================================== */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s; height: 100%;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-cover { display: block; overflow: hidden; height: 200px; }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-cover img { transform: scale(1.05); }
.blog-card-cover-ph {
  height: 200px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-panel); color: var(--accent); font-size: 3rem; opacity: 0.4;
}
.blog-card-body { padding: 20px; }
.blog-date { font-size: 0.72rem; color: var(--white-faded); margin-bottom: 0.5rem; }
.blog-title { font-family: var(--ff-display); font-size: 1.1rem; font-weight: 400; line-height: 1.3; margin-bottom: 0.5rem; }
.blog-title a { color: var(--white); transition: color 0.2s; }
.blog-title a:hover { color: var(--accent); }
.blog-excerpt { color: var(--white-muted); font-size: 0.8rem; line-height: 1.65; margin-bottom: 0.75rem; }
.blog-more { font-size: 0.76rem; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; transition: color 0.6s; }

/* Blog content */
.blog-content { color: var(--white-dim); font-size: 0.92rem; line-height: 1.9; }
.blog-content h2 { font-family: var(--ff-display); font-size: 1.5rem; color: var(--white); margin: 2rem 0 0.75rem; }
.blog-content h3 { font-size: 1.1rem; color: var(--white); margin: 1.5rem 0 0.5rem; }
.blog-content p  { margin-bottom: 1rem; }
.blog-content ul, .blog-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.blog-content li { margin-bottom: 0.4rem; }
.blog-content img { border-radius: var(--radius-sm); margin: 1.5rem 0; }

/* ======================================================
   REVIEWS
   ====================================================== */
.reviews-outer { overflow: hidden; padding: 10px 0; }
.reviews-track {
  display: flex; gap: 16px;
  animation: reviewsScroll 40s linear infinite;
  width: max-content;
}
.reviews-track:hover { animation-play-state: paused; }
@keyframes reviewsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.r-card {
  width: 280px; flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
}
.r-stars { color: var(--accent); font-size: 0.85rem; margin-bottom: 8px; transition: color 0.6s; }
.r-text { color: var(--white-muted); font-size: 0.8rem; line-height: 1.7; margin-bottom: 14px; }
.r-author { display: flex; align-items: center; gap: 10px; }
.r-ava { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.r-ava-ph {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-panel); color: var(--accent); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.r-name { font-size: 0.82rem; font-weight: 600; color: var(--white); }
.r-date { font-size: 0.72rem; color: var(--white-faded); }

/* ======================================================
   CONTACTS PAGE
   ====================================================== */
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-row {
  display: flex; gap: 14px; align-items: flex-start;
}
.c-ico {
  width: 44px; height: 44px;
  background: var(--blue-trace);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1rem; flex-shrink: 0;
  transition: background 0.6s, color 0.6s;
}
.c-ico.wa { color: #25d366; }
.c-ico.tg { color: #2ca5e0; }
.c-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white-faded); }
.c-value { font-size: 0.92rem; color: var(--white); font-weight: 500; }
a.c-value:hover { color: var(--accent); }
.contact-form-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 36px;
}
.map-box { border-radius: var(--radius); overflow: hidden; }
.map-box iframe { display: block; }

/* ======================================================
   FOOTER
   ====================================================== */
footer {
  background: #0c1018;
  border-top: 1px solid var(--border-dim);
  padding: 60px 0 30px;
}
.footer-brand {
  font-family: var(--ff-display);
  font-size: 1.7rem; font-weight: 600;
  color: var(--white); margin-bottom: 4px;
}
.footer-brand span { color: var(--accent); transition: color 0.6s; }
.footer-sub { font-size: 0.75rem; color: var(--white-faded); letter-spacing: 0.1em; margin-bottom: 12px; }
.flink {
  display: block; color: rgba(255,255,255,0.38);
  font-size: 0.82rem; padding: 3px 0;
  transition: color 0.2s;
}
.flink:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 36px; padding-top: 24px;
  font-size: 0.75rem; color: rgba(255,255,255,0.2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }
.footer-soc {
  display: flex; gap: 14px; margin-top: 12px;
}
.footer-soc a {
  color: rgba(255,255,255,0.3); font-size: 1.1rem;
  transition: color 0.2s;
}
.footer-soc a:hover { color: var(--accent); }

/* ======================================================
   LEAD MODAL (global)
   ====================================================== */
#leadModal .modal-content {
  background: #141c24;
  border: 1px solid var(--border);
  border-radius: 16px; color: var(--white-dim);
}
#leadModal .modal-header {
  border-bottom: 1px solid var(--border-dim);
  padding: 20px 24px 16px;
}
#leadModal .modal-title {
  font-family: var(--ff-display);
  font-size: 1.4rem; font-weight: 400; color: var(--white);
}
#leadModal .btn-close { filter: invert(1) opacity(0.5); }
#leadModal .modal-body { padding: 24px; }

/* ======================================================
   TOAST / MESSAGES
   ====================================================== */
.toast-container { z-index: 9999; }
.takt-toast {
  background: #1a2230;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--white-dim);
  font-size: 0.85rem;
}
.takt-toast.success { border-left: 3px solid var(--accent); }
.takt-toast.error   { border-left: 3px solid #f87171; }

/* Django messages */
.alert { border-radius: var(--radius-sm); font-size: 0.85rem; }
.alert-success { background: rgba(122,170,95,0.12); border-color: rgba(122,170,95,0.3); color: #9adf79; }
.alert-danger  { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.3); color: #f87171; }

/* ======================================================
   COOKIE CONSENT
   ====================================================== */
#cookieBanner {
  background: rgba(20,28,36,0.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
}

/* ======================================================
   PRIVACY POLICY, 404, 500
   ====================================================== */
.content-page { padding: 110px 0 60px; min-height: 60vh; }
.content-page h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; color: var(--white); margin-bottom: 2rem;
}
.content-page h2 {
  font-family: var(--ff-display);
  font-size: 1.4rem; color: var(--white);
  margin: 2rem 0 0.75rem;
}
.content-page p, .content-page li {
  color: var(--white-muted); font-size: 0.88rem; line-height: 1.85;
}
.error-page {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  text-align: center; padding: 20px;
}
.error-code {
  font-family: var(--ff-display);
  font-size: 8rem; font-weight: 300;
  color: var(--accent); line-height: 1;
  opacity: 0.3;
  transition: color 0.6s;
}

/* ======================================================
   REVEAL ANIMATION
   ====================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================
   UTILITY
   ====================================================== */
.text-accent { color: var(--accent) !important; transition: color 0.6s; }
.text-muted  { color: var(--white-muted) !important; }
.bg-dark-card { background: var(--bg-card); }
.border-dim   { border-color: var(--border-dim) !important; }
.py-section   { padding: 70px 0; }

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 992px) {
  .form-card { padding: 28px; }
  .contact-aside { padding: 28px; }
  .cta-section .price-panel { margin-top: 0; }
}
@media (max-width: 768px) {
  .process-track { gap: 24px; }
  .process-track::before { display: none; }
  .process-step { flex: 0 0 calc(50% - 12px); }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 3.5rem); }
  .hero-slogan { font-size: 0.95rem; }
  .mood-switcher { gap: 8px; }
  .mood-btn { min-width: 95px; padding: 12px 14px; }
  .mood-stage { padding: 24px 12px 40px; }
  .mood-panel-inner { padding: 20px; gap: 20px; }
  .port-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  footer { padding: 40px 0 24px; }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .port-mosaic { grid-template-columns: 1fr; }
  .port-mosaic .port-cell:nth-child(1) { grid-column: span 1; }
  .scroll-track { padding-bottom: 8px; }
}
