:root {
  --bg: #f7f4f0;
  --bg-deep: #efeae4;
  --cream: #faf7f4;
  --text: #2f2c29;
  --text-soft: #6a6460;
  --mint: #a8c5b8;
  --mint-dark: #7a9e8e;
  --mint-glow: rgba(168, 197, 184, 0.45);
  --blush: #e8c4c0;
  --lavender: #c9c0d9;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(47, 44, 41, 0.06);
  --shadow-hover: 0 20px 50px rgba(47, 44, 41, 0.1);
  --grid-color: rgba(122, 158, 142, 0.12);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 1;
}
body.is-entering {
  animation: pageFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pageFadeIn {
  from { opacity: 0.01; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  body.is-entering { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 92%); margin: 0 auto; }

/* Soft techno grid + glow */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
}
.bg-glow {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(80px); pointer-events: none; opacity: 0.55;
}
.bg-glow-1 { width: 520px; height: 520px; top: -120px; right: -80px; background: var(--mint-glow); }
.bg-glow-2 { width: 420px; height: 420px; bottom: 10%; left: -100px; background: rgba(232, 196, 192, 0.35); }
.bg-glow-3 { width: 300px; height: 300px; top: 45%; right: 15%; background: rgba(201, 192, 217, 0.25); }

/* Header */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  background: rgba(247, 244, 240, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
header.scrolled {
  border-bottom-color: rgba(47, 44, 41, 0.07);
  background: rgba(247, 244, 240, 0.94);
}
.header-inner {
  width: min(1140px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--mint);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; }
nav { display: flex; gap: 28px; font-size: 0.92rem; font-weight: 500; }
nav a { color: var(--text-soft); position: relative; transition: color 0.2s; }
nav a:hover, nav a.active { color: var(--text); }
nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--mint-dark); border-radius: 2px;
}
.header-cta { padding: 10px 20px; font-size: 0.9rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--text); color: var(--cream); }
.btn-primary:hover { background: #1f1d1b; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-mint { background: var(--mint); color: var(--text); }
.btn-mint:hover { background: var(--mint-dark); color: white; transform: translateY(-2px); }
.btn-soft {
  background: var(--white); color: var(--text);
  border: 1px solid rgba(47, 44, 41, 0.1);
}
.btn-soft:hover { background: var(--bg-deep); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid rgba(47, 44, 41, 0.18);
}
.btn-outline:hover { border-color: var(--mint-dark); color: var(--mint-dark); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Typography */
.section-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mint-dark); margin-bottom: 12px;
}
h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5.2vw, 3.7rem);
  font-weight: 600; line-height: 1.15; letter-spacing: -0.025em;
}
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 16px;
}
h3 { font-size: 1.2rem; font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 540px; }

/* Hero */
.hero {
  min-height: 88vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 50px) 0 60px; position: relative;
}
.hero-content { max-width: 640px; position: relative; z-index: 1; }
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--mint-dark);
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 22px;
}
.hero-label::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 12px var(--mint-glow);
}
.hero h1 { margin-bottom: 22px; }
.hero-text { font-size: 1.2rem; color: var(--text-soft); margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Video block */
.video-section { padding: 40px 0 80px; }
.video-wrap {
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(47, 44, 41, 0.06);
  background: #1a1a1a;
  aspect-ratio: 16 / 9;
  max-width: 900px;
  margin: 0 auto;
}
.video-wrap video {
  width: 100%; height: 100%; object-fit: cover;
}

/* Demo banner */
.demo-banner {
  background: linear-gradient(135deg, rgba(168, 197, 184, 0.25), rgba(232, 196, 192, 0.2));
  border: 1px solid rgba(122, 158, 142, 0.25);
  border-radius: 20px; padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.demo-banner h3 { margin-bottom: 6px; }
.demo-banner p { color: var(--text-soft); font-size: 0.98rem; }

section { padding: 90px 0; position: relative; }
.section-head { margin-bottom: 48px; }

.card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  border: 1px solid rgba(47, 44, 41, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ——— Expandable format cards ——— */
.format-list { display: flex; flex-direction: column; gap: 16px; }
.format-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(47, 44, 41, 0.06);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.format-item.open { box-shadow: var(--shadow-hover); }
.format-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--text);
  transition: background 0.2s;
}
.format-btn:hover { background: rgba(168, 197, 184, 0.08); }
.format-btn-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.format-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: rgba(168, 197, 184, 0.3);
}
.format-btn h3 { font-size: 1.15rem; margin-bottom: 2px; }
.format-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mint-dark);
}
.format-chevron {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
}
.format-item.open .format-chevron {
  transform: rotate(180deg);
  background: var(--mint);
}
.format-chevron svg { width: 14px; height: 14px; }
.format-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.format-item.open .format-body { max-height: 600px; }
.format-content {
  padding: 0 28px 28px;
  border-top: 1px solid rgba(47, 44, 41, 0.06);
  padding-top: 20px;
  color: var(--text-soft);
  font-size: 1rem;
}
.format-content p { margin-bottom: 12px; }
.format-content ul {
  padding-left: 18px;
  margin: 10px 0 14px;
  line-height: 1.85;
}
.format-content strong { color: var(--text); }
.format-example {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 12px;
  font-size: 0.95rem;
  border-left: 3px solid var(--mint);
}

/* About / process etc */
.about-hero { padding-top: calc(var(--header-h) + 80px); padding-bottom: 50px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 18px;
  background: rgba(168, 197, 184, 0.3);
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 22px; box-shadow: var(--shadow);
  border: 1px solid rgba(47, 44, 41, 0.04);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem; font-weight: 600; color: var(--mint);
  display: block; margin-bottom: 14px; opacity: 0.85;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-soft); font-size: 0.95rem; }
.price { font-weight: 600; color: var(--mint-dark); font-size: 1.05rem; margin-top: 16px; }

.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(47, 44, 41, 0.04);
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.work-visual {
  height: 200px; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem;
  color: rgba(47, 44, 41, 0.3);
}
.work-visual.avtodom { background: linear-gradient(145deg, #e8e0d5, #d4c8b8); }
.work-visual.agro { background: linear-gradient(145deg, #d8e5d8, #b8d0b8); }
.work-visual.cofe { background: linear-gradient(145deg, #e8d9c8, #d4c0a8); }
.work-visual.other { background: linear-gradient(145deg, #e0d8e8, #c8c0d8); }
.work-body { padding: 24px; }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--mint-dark); background: rgba(168, 197, 184, 0.28);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.work-body p { color: var(--text-soft); font-size: 0.95rem; margin: 8px 0 16px; }
.work-link { font-weight: 600; font-size: 0.95rem; }
.work-link:hover { color: var(--mint-dark); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--white); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.form-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
  border: 1px solid rgba(47, 44, 41, 0.04);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.88rem; font-weight: 500;
  color: var(--text-soft); margin-bottom: 7px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid rgba(47, 44, 41, 0.12); border-radius: 12px;
  font-family: inherit; font-size: 1rem; background: var(--bg); color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--mint);
}
.form-group textarea { min-height: 110px; resize: vertical; }

.cta-block {
  background: linear-gradient(145deg, rgba(168, 197, 184, 0.22), rgba(232, 196, 192, 0.18));
  border-radius: 24px; padding: 56px 48px; text-align: center;
  border: 1px solid rgba(122, 158, 142, 0.2);
}
.cta-block h2 { margin-bottom: 12px; }
.cta-block p {
  color: var(--text-soft); max-width: 460px; margin: 0 auto 28px; font-size: 1.1rem;
}
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

footer {
  padding: 36px 0;
  border-top: 1px solid rgba(47, 44, 41, 0.06);
  text-align: center; color: var(--text-soft); font-size: 0.9rem;
}

@media (max-width: 960px) {
  nav { display: none; }
  .grid-2, .grid-3, .values-grid, .steps, .works-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .demo-banner { flex-direction: column; align-items: flex-start; }
  .cta-block { padding: 40px 24px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 50px); }
  .format-btn { padding: 18px 20px; }
  .format-content { padding: 0 20px 20px; padding-top: 16px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .format-btn-left { gap: 12px; }
  .format-icon { width: 42px; height: 42px; }
}

/* ——— Mobile menu ——— */
.burger {
  display: none;
  width: 44px; height: 44px;
  border: none; background: transparent;
  cursor: pointer; padding: 10px;
  flex-direction: column; justify-content: center; gap: 6px;
  z-index: 110;
}
.burger span {
  display: block; height: 2px; width: 22px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: rgba(247, 244, 240, 0.98);
  backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  padding: 24px 24px 40px;
  gap: 8px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.nav-mobile.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-mobile a {
  font-size: 1.15rem;
  font-weight: 500;
  padding: 14px 8px;
  color: var(--text);
  border-bottom: 1px solid rgba(47, 44, 41, 0.06);
}
.nav-mobile a.active { color: var(--mint-dark); }
.nav-mobile .btn { text-align: center; margin-top: 8px; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card { text-align: center; padding: 28px 16px; }
.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.1rem; font-weight: 600; color: var(--mint-dark);
}
.stat-label { color: var(--text-soft); font-size: 0.9rem; margin-top: 4px; }
.about-top { align-items: start; }

body.menu-open { overflow: hidden; }

/* Stronger mobile */
@media (max-width: 960px) {
  .burger { display: flex; }
  .nav-desktop { display: none !important; }
  .hide-mobile { display: none !important; }
  .nav-mobile { display: flex; }

  section { padding: 64px 0; }
  .about-hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 32px; }
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.55rem, 6vw, 2.1rem); }
  .hero-text { font-size: 1.05rem; }
  .lead { font-size: 1.05rem; }
  .card { padding: 24px 20px; }
  .video-wrap { border-radius: 16px; }
  .cta-block { padding: 36px 20px; }
  .demo-banner { padding: 22px 20px; }
  .format-btn h3 { font-size: 1.05rem; }
  .work-visual { height: 160px; }
  .header-inner { gap: 12px; }
  .logo { font-size: 1.15rem; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .container { width: 92%; }
  .stats-grid { gap: 12px; }
  .stat-num { font-size: 1.7rem; }
  .format-price { font-size: 0.85rem; }
  .btn { padding: 13px 22px; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .video-section { padding: 24px 0 48px; }
}

/* Honeypot — hidden from users, visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* Privacy and consent additions */
.consent-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 4px 0 16px;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}
.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--mint-dark);
}
.consent-row label { cursor: pointer; }
.consent-row a, .footer-privacy a, .privacy-content a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-privacy { margin-top: 8px; }
.privacy-content { line-height: 1.75; }
.privacy-content h2 { margin: 28px 0 8px; font-size: 1.2rem; }
.privacy-content p { margin-bottom: 14px; }
.privacy-content p:first-child { padding: 14px 16px; border-radius: 12px; background: rgba(232, 196, 192, 0.18); }
@media (max-width: 560px) { .form-card { padding: 24px 18px; } }
