/* ============================================================
   GIYASZHON DAVRENOV — Video Editing & Photo Processing
   Light modern design system — frontpromote.co
   ============================================================ */

:root {
  --bg: #F7F7F4;
  --bg-2: #F0F0EA;
  --surface: #FFFFFF;
  --ink: #16181D;
  --ink-2: #454A55;
  --muted: #7C818D;
  --line: #E6E6E0;
  --line-2: #D8D8D1;
  --accent: #4F46E5;
  --accent-deep: #3730A3;
  --ember: #C2703D;
  --ember-soft: #F6E7DB;
  --accent-soft: #ECEBFA;
  --shadow-sm: 0 1px 2px rgba(22, 24, 29, .05), 0 8px 24px -16px rgba(22, 24, 29, .16);
  --shadow-md: 0 2px 6px rgba(22, 24, 29, .05), 0 24px 48px -28px rgba(22, 24, 29, .26);
  --shadow-lg: 0 4px 14px rgba(22, 24, 29, .06), 0 40px 70px -32px rgba(22, 24, 29, .34);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--accent-soft); color: var(--accent-deep); }

.wrap { width: min(var(--container), 92%); margin-inline: auto; }
.wrap-narrow { width: min(860px, 94%); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -.022em;
  color: var(--ink);
}

.display {
  font-size: clamp(2.7rem, 6.2vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.03;
}
.display .serif-i { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -.026em;
}
h3 { font-size: 1.35rem; letter-spacing: -.015em; }
h4 { font-size: 1.12rem; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 58ch;
}
p { line-height: 1.7; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 30px; height: 1.5px; background: linear-gradient(90deg, var(--accent), var(--ember)); }
.eyebrow.center::after { content: ""; width: 30px; height: 1.5px; background: linear-gradient(90deg, var(--ember), var(--accent)); }

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--soft { background: var(--bg-2); }
.section--white { background: var(--surface); }
.section--ink { background: var(--ink); color: #E7E8EC; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-top: 4px; }
.section-head .lead { margin-top: 18px; }
.section--ink .eyebrow { color: #C7C3FA; }
.section--ink h2 { color: #fff; }
.section--ink .lead { color: #B9BCC6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
  will-change: transform;
}
.btn .arr { transition: transform .28s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(79, 70, 229, .55);
}
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ember { background: var(--ember); color: #fff; box-shadow: 0 10px 24px -12px rgba(194, 112, 61, .55); }
.btn--ember:hover { transform: translateY(-2px); filter: brightness(.96); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.text-link:hover { border-color: var(--accent); gap: 12px; }
.section--ink .text-link { color: #C7C3FA; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 244, .78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(22, 24, 29, .22); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.brand__tag { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.main-nav a:hover { color: var(--ink); background: rgba(22, 24, 29, .05); }
.main-nav a.active { color: var(--accent); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta .btn { padding: 12px 22px; font-size: 14.5px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 12px;
  position: relative;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 30px; }
.nav-toggle.open span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  padding: 110px 8% 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform .35s var(--ease), opacity .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-menu a.active { color: var(--accent); }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 5vw, 56px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero__eyebrow { margin-bottom: 22px; }
.hero h1 { margin: 0 0 24px; }
.hero__lead { margin-bottom: 34px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 15px; height: 15px; color: var(--accent); }

.hero__media { position: relative; }
.hero__media .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.hero__media .frame img { width: 100%; height: clamp(320px, 40vw, 520px); object-fit: cover; }
.hero__media .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22, 24, 29, .22));
}
.hero__media .frame .play-tag {
  position: absolute;
  left: 22px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff;
  font-weight: 600; font-size: 14px;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.hero__media .frame .play-tag .pl {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.play-tag .pl svg { width: 14px; height: 14px; fill: #fff; }

.float-card {
  position: absolute;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  animation: bob 5.5s var(--ease) infinite;
}
.float-card b { font-family: var(--font-display); font-size: 17px; letter-spacing: -.01em; display: block; line-height: 1.1; }
.float-card small { color: var(--muted); font-size: 12.5px; }
.float-card .ic {
  width: 38px; height: 38px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.float-card .ic svg { width: 19px; height: 19px; }
.float-card--tl { top: -20px; left: -24px; animation-delay: .6s; }
.float-card--br { right: -18px; bottom: -22px; animation-delay: 1.4s; }
.float-card--br .ic { background: var(--accent-soft); color: var(--accent); }
.float-card--tl .ic { background: var(--ember-soft); color: var(--ember); }

@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero__rings { position: absolute; z-index: -1; pointer-events: none; }
.hero__rings--one { right: -8%; top: -14%; width: 460px; height: 460px; border-radius: 50%; border: 1px dashed rgba(79,70,229,.18); }
.hero__rings--two { right: -4%; top: -8%; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(194,112,61,.14); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0;
  position: relative;
}
.marquee__track { display: flex; gap: 44px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: inline-flex; align-items: center; gap: 44px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__track span::after { content: "◆"; font-size: 9px; color: var(--accent); opacity: .55; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--ember));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__ic {
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.service-card:hover .service-card__ic { background: var(--accent); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service-card__ic svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.service-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.service-card__list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.service-card__list li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--ember); }

/* ---------- Tools ---------- */
.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tool {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.tool:hover { transform: translateY(-3px); border-color: var(--accent); }
.tool .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tool--solo .dot { background: var(--ember); box-shadow: 0 0 0 4px var(--ember-soft); }

/* ---------- Steps / process ---------- */
.process { counter-reset: step; display: grid; gap: 24px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step__num {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent);
}
.step__num::after { content: counter(step); font-size: 15px; }
.step h3 { margin: 14px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step__arrow { position: absolute; top: 34px; right: 30px; color: var(--line-2); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .28s var(--ease);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.work-card:hover { transform: translateY(-8px) rotate(.4deg); box-shadow: var(--shadow-lg); }
.work-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.06); }
.work-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(22,24,29,.4)); opacity: 0; transition: opacity .4s var(--ease); }
.work-card:hover .work-card__media::after { opacity: 1; }
.work-card__media .cat {
  position: absolute; left: 16px; bottom: 14px;
  z-index: 2;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #fff;
  background: rgba(22,24,29,.4);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.work-card:hover .work-card__media .cat { opacity: 1; transform: translateY(0); }
.work-card__body { padding: 20px 22px 24px; }
.work-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.work-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; padding: 30px 20px; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--accent), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: #B9BCC6; font-size: 15px; display: block; margin-top: 6px; }

/* ---------- Pricing ---------- */
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card--featured { border-color: transparent; background: linear-gradient(160deg, var(--ink) 0%, #262838 100%); color: #E7E8EC; }
.price-card--featured::before {
  content: "Most popular";
  position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--ember));
  color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 18px; border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; }
.price-card--featured h3 { color: #fff; }
.price-card__desc { color: var(--muted); font-size: 14.5px; margin: 8px 0 22px; }
.price-card--featured .price-card__desc { color: #B9BCC6; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price b { font-family: var(--font-display); font-size: 3rem; font-weight: 700; letter-spacing: -.03em; }
.price small { color: var(--muted); }
.price-card--featured .price small { color: #B9BCC6; }
.price-note { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.price-card--featured .price-note { color: #9da0ac; }
.price-list { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-list li { display: flex; gap: 11px; font-size: 15px; color: var(--ink-2); }
.price-list li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.price-card--featured .price-list li { color: #D6D8DF; }
.price-card--featured .price-list li svg { color: #C2703D; }

/* ---------- Testimonials / quote ---------- */
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  position: relative;
}
.quote svg.bq { width: 34px; height: 34px; color: var(--accent); opacity: .9; margin-bottom: 18px; }
.quote p { font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; line-height: 1.5; letter-spacing: -.01em; margin: 0 0 20px; }
.quote b { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.quote small { color: var(--muted); display: block; margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 55%, #6d2f62 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: clamp(40px, 6vw, 68px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; right: -90px; top: -90px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 0 0 44px rgba(255,255,255,.06), 0 0 0 90px rgba(255,255,255,.04);
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .btn { position: relative; z-index: 2; justify-self: end; }
.cta-band__chips { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2; }
.cta-band__chip { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--bg);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--surface);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .err { font-size: 12.5px; color: #D43F3F; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #D43F3F; }
.field.invalid .err { display: block; }
.form-msg { display: none; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 20px; }
.form-msg.ok { display: block; background: #E9F7EE; color: #1E7A45; border: 1px solid #C4EED5; }
.form-msg.bad { display: block; background: #FDEBEB; color: #B02A2A; border: 1px solid #F5C6C6; }

.contact-meta { display: flex; flex-direction: column; gap: 16px; }
.meta-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.meta-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.meta-row .ic { width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.meta-row .ic svg { width: 20px; height: 20px; }
.meta-row b { display: block; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 5px; }
.meta-row span, .meta-row a { color: var(--ink-2); font-size: 15px; }
.meta-row a:hover { color: var(--accent); }

/* ---------- Policy pages ---------- */
.policy-hero { padding: clamp(48px, 7vw, 84px) 0 8px; }
.policy-hero h1 { margin: 8px 0 14px; }
.policy-hero .updated { color: var(--muted); font-size: 14px; }
.policy-body { padding-bottom: clamp(64px, 8vw, 96px); }
.policy-nav {
  position: sticky; top: 90px;
  margin-bottom: 48px;
  font-size: 14px;
  color: var(--muted);
}
.policy-nav a { color: var(--accent); }
.policy-grid { display: grid; grid-template-columns: minmax(220px, 260px) 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 90px; }
.toc h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toc a {
  display: block; padding: 8px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 14.5px;
  border-left: 2px solid transparent;
  transition: all .25s var(--ease);
}
.toc a:hover { background: var(--surface); color: var(--ink); border-left-color: var(--accent); }
.policy h2 { font-size: 1.5rem; margin: 44px 0 14px; scroll-margin-top: 110px; }
.policy h3 { font-size: 1.12rem; margin: 26px 0 10px; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: var(--ink-2); font-size: 15.5px; }
.policy ul, .policy ol { padding-left: 22px; }
.policy li { margin-bottom: 8px; }
.policy .note {
  background: var(--accent-soft);
  border: 1px solid #D8D6FA;
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14.5px;
  margin: 18px 0;
}
.policy table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.policy table th, .policy table td { border: 1px solid var(--line-2); padding: 11px 14px; text-align: left; }
.policy table th { background: var(--bg-2); font-family: var(--font-display); font-weight: 600; }
.policy a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.policy-soft { color: var(--muted); font-size: 14px; }

/* ---------- Misc components ---------- */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(8px, 2vw, 20px); }
.page-hero h1 { margin: 10px 0 18px; }
.page-hero .lead { margin: 0; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.breadcrumbs { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--accent); }

/* 404 */
.error-hero { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 0; }
.error-hero .code { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; background: linear-gradient(120deg, var(--accent), var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-hero h1 { margin: 12px 0 14px; }
.error-hero p { color: var(--muted); max-width: 46ch; margin: 0 0 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9BCC6; font-size: 15px; }
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: clamp(48px, 6vw, 72px) 0 40px;
}
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: #8A8E99; }
.footer-brand p { margin: 16px 0 0; max-width: 34ch; font-size: 14.5px; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: #B9BCC6; transition: color .25s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 13px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--accent); }
.footer-contact a:hover { color: #C7C3FA; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}
.footer-bottom p { margin: 0; }
.footer-policy-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  width: min(680px, 94%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px 26px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.cookie-banner.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cookie-banner h4 { margin-bottom: 8px; }
.cookie-banner p { margin: 0 0 18px; font-size: 14.5px; color: var(--ink-2); }
.cookie-banner .cb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cb-details { display: none; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.cb-details.open { display: block; }
.cb-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cb-row:last-child { border-bottom: 0; }
.cb-row small { color: var(--muted); }
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: background .25s var(--ease); }
.switch .slider::before { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .25s var(--ease); }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:disabled + .slider { background: var(--line-2); opacity: .6; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

.lazy { opacity: 0; transition: opacity .5s var(--ease); }
.lazy.loaded { opacity: 1; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .35s var(--ease);
  z-index: 150;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 17px; height: 17px; }

/* ---------- FAQ accordion ---------- */
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pl { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; transition: transform .3s var(--ease); }
.faq-item summary .pl svg { width: 13px; height: 13px; }
.faq-item[open] summary .pl { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-item .faq-body { padding: 0 26px 24px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .main-nav, .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; margin-top: 20px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn { justify-self: start; }
  .stats { grid-template-columns: 1fr; gap: 8px; }
  .policy-grid { grid-template-columns: 1fr; }
  .toc { position: static; margin-bottom: 8px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .float-card--tl { left: -6px; }
  .float-card--br { right: -6px; }
  .price-card--featured { order: -1; }
  .cookie-banner { padding: 20px; }
  .hero__cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}