/* ═══════════════════════════════════════════════════════════
   CUSTOM PROPERTIES
═══════════════════════════════════════════════════════════ */
:root {
  /* Light theme - base */
  --bg:           #F7F5F0;
  --bg-surface:   #EDEAE3;
  --bg-hover:     #E5E2DB;
  --border:       #D6D2C8;
  --border-mid:   #C4C0B6;

  /* Text */
  --text-1:       #111110;
  --text-1-soft:  rgba(17, 17, 16, 0.37);
  --text-2:       #5C5850;
  --text-3:       #9A9488;

  /* Accent - forest green */
  --accent:       #245C44;
  --accent-h:     #245C44;
  --accent-dim:   rgba(36, 92, 68, 0.08);
  --accent-mid:   rgba(36, 92, 68, 0.14);

  /* Dark sections */
  --dark:         #111110;
  --dark-2:       #1C1B18;
  --dark-3:       #252420;
  --dark-bd:      #2E2C28;
  --dark-t1:      #F0EDE6;
  --dark-t2:      #9A9488;
  --dark-t3:      #5C5850;
  --accent-lit:   #4ADE80;

  /* Typography */
  --f-display:    'Space Grotesk', 'Inter', system-ui, sans-serif;
  --f-body:       'Inter', system-ui, sans-serif;
  --f-mono:       'JetBrains Mono', 'Fira Code', monospace;
  --f-logo:       'Intro Rust', 'Space Grotesk', 'Inter', system-ui, sans-serif;

  /* Layout */
  --gap-section:  112px;
  --w-max:        1200px;
  --r:            12px;
  --r-sm:         8px;

  /* Motion */
  --ease:         0.18s ease;
  --ease-slow:    0.45s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(27, 67, 50, 0.14);
}

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }

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

/* ═══════════════════════════════════════════════════════════
   FOCUS
═══════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ═══════════════════════════════════════════════════════════
   SKIP LINK
═══════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -120%;
  left: 16px;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 80px;
}

.section-gap { padding: var(--gap-section) 0; }
section[id] { scroll-margin-top: 88px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY TOKENS
═══════════════════════════════════════════════════════════ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.section-label--dark {
  color: var(--accent-lit);
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.1;
  color: var(--text-1);
  max-width: 640px;
  margin-top: 14px;
  text-wrap: balance;
}

.section-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 540px;
  margin-top: 18px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 13px 22px;
  cursor: pointer;
  transition:
    background var(--ease),
    color var(--ease),
    border-color var(--ease),
    transform 0.12s ease,
    filter 0.12s ease;
  text-decoration: none;
}

.btn--lg  { font-size: 16px; padding: 15px 26px; }
.btn--sm  { font-size: 14px; padding: 10px 16px; }

/* Green fill - light sections */
.btn--accent {
  background: var(--accent-h);
  color: #fff;
  border-color: var(--accent-h);
}
.btn--accent:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn--accent:active { transform: translateY(0); }

/* White fill - dark sections */
.btn--primary-dark {
  background: var(--dark-t1);
  color: var(--dark);
  border-color: var(--dark-t1);
}
.btn--primary-dark:hover { background: #fff; border-color: #fff; transform: translateY(-1px); }
.btn--primary-dark:active { transform: translateY(0); }

/* Ghost - dark sections */
.btn--ghost-dark {
  background: transparent;
  color: var(--dark-t2);
  border-color: var(--dark-bd);
}
.btn--ghost-dark:hover { color: var(--dark-t1); border-color: rgba(240,237,230,0.28); }

/* Outline - light sections */
.btn--outline {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border-mid);
}
.btn--outline:hover { background: var(--bg-surface); border-color: var(--text-3); }

/* Form submit */
.btn--form {
  background: var(--accent-h);
  color: #fff;
  border-color: var(--accent-h);
  font-weight: 600;
  width: 100%;
}
.btn--form:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn--form:active { transform: translateY(0); }

/* Arrow animation */
.btn__arrow { flex-shrink: 0; transition: transform var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Loading state */
.btn__sending { display: none; }
.btn.is-loading .btn__label,
.btn.is-loading .btn__arrow { display: none; }
.btn.is-loading .btn__sending { display: block; }
.btn.is-loading { opacity: 0.7; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */

/* Scroll reveal */
.reveal {
  opacity: 1;
  transform: none;
}
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease calc(var(--i, 0) * 75ms),
    transform 0.5s ease calc(var(--i, 0) * 75ms);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}
.hero-reveal {
  opacity: 1;
}
html.js .hero-reveal {
  opacity: 0;
  animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .hero-reveal { opacity: 1; animation: none; filter: none; }
  .btn, .card, .area-card { transition: none; }
  .nav__logo-type::after { animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease-slow);
}
.nav.is-scrolled { border-bottom-color: var(--border); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-logo);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text-1);
  flex-shrink: 0;
  margin-right: auto;
  white-space: nowrap;
}
.nav__logo:hover { color: var(--accent); }

.nav__logo-shell,
.nav__logo-core,
.nav__logo-fixed,
.nav__logo-tail,
.nav__logo-reserve {
  display: inline-block;
}

.nav__logo-core {
  display: inline-flex;
  align-items: flex-start;
  gap: 0;
}

.nav__logo-type {
  flex: 0 0 auto;
  color: var(--text-1-soft);
  transform: translateY(-0.02em);
  white-space: nowrap;
}

.nav__logo-tail {
  flex: 0 0 auto;
}

.nav__logo-reserve {
  flex: 0 0 auto;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  width: 0;
}

.nav__logo-type::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 0.92em;
  margin-left: 0;
  background: currentColor;
  vertical-align: -0.08em;
  animation: logo-caret-blink 0.88s step-end infinite;
}

.nav__logo-type.is-static::after {
  animation: none;
  opacity: 0.3;
}

@keyframes logo-caret-blink {
  0%, 46% { opacity: 1; }
  47%, 100% { opacity: 0; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
}
.nav__links a:hover { color: var(--text-1); background: var(--accent-dim); }
.nav__links a.is-active { color: var(--accent); }

.nav__cta { flex-shrink: 0; margin-left: 8px; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: var(--r-sm);
  padding: 9px;
  margin-left: auto;
  transition: background var(--ease);
}
.nav__hamburger:hover { background: var(--accent-dim); }
.nav__hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-1);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.24s ease, opacity 0.18s ease;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px 24px 40px;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-2);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--ease);
}
.nav__mobile a:hover { color: var(--text-1); }
.nav__mobile a:last-child {
  margin-top: 20px;
  border-bottom: none;
  background: var(--accent-h);
  color: #fff;
  font-size: 17px;
  padding: 16px 24px;
  border-radius: var(--r-sm);
  text-align: center;
}
.nav__mobile a:last-child:hover { background: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  background:
    linear-gradient(180deg, rgba(247, 245, 240, 0.92) 0%, rgba(247, 245, 240, 0) 104px),
    radial-gradient(circle at 14% 100%, rgba(196, 192, 182, 0.16) 0%, transparent 36%),
    linear-gradient(180deg, #FBF9F4 0%, #F1ECE2 100%);
  padding: clamp(64px, 10vh, 104px) 0 clamp(72px, 12vh, 120px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Subtle structural grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 17, 16, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 16, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.8;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

.hero .section-label { margin-bottom: 6px; }
.hero .section-label--dark { color: var(--accent); }

.hero__headline {
  font-family: var(--f-display);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--text-1);
  max-width: 900px;
  margin: 20px 0 32px;
}
.hero__headline-dim { color: rgba(17, 17, 16, 0.28); }

.hero__sub {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-bd);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--dark-bd);
  font-size: 13px;
  color: var(--dark-t3);
}
.hero__trust-item:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}
.hero__trust-item svg { color: var(--accent-lit); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   PROBLEM
═══════════════════════════════════════════════════════════ */
.problem__intro {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: var(--text-2);
  margin-top: 14px;
  margin-bottom: 40px;
  max-width: 600px;
  text-wrap: balance;
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.problem__bridge {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-2);
  margin-top: 40px;
}

/* Card */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  transition: border-color var(--ease), background var(--ease);
}
.card:hover { border-color: var(--border-mid); background: var(--bg-hover); }
.card__icon { color: var(--accent); margin-bottom: 20px; }
.card__title {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text-1);
  margin-bottom: 10px;
}
.card__text { font-size: 15px; color: var(--text-2); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   PROCESS
═══════════════════════════════════════════════════════════ */
.process {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.process__step {
  padding: 48px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.process__step:hover { background: var(--bg-surface); }
.process__step:nth-child(2n)   { border-right: none; }
.process__step:nth-child(3),
.process__step:nth-child(4)    { border-bottom: none; }

.process__number {
  font-family: var(--f-mono);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}
.process__title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-1);
  margin-bottom: 12px;
}
.process__text { font-size: 15px; color: var(--text-2); line-height: 1.7; max-width: 360px; }

/* ═══════════════════════════════════════════════════════════
   AREAS
═══════════════════════════════════════════════════════════ */
.areas { background: var(--bg-surface); }

.areas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 48px;
}

.area-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  transition: border-color var(--ease), transform var(--ease);
}
.area-card:hover { border-color: var(--accent); background: var(--accent-dim); transform: translateY(-2px); }
.area-card__icon { color: var(--accent); margin-bottom: 14px; }
.area-card__title {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin-bottom: 6px;
}
.area-card__text { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* Custom strip */
.areas__custom {
  margin-top: 10px;
  border: 1px dashed var(--border-mid);
  border-radius: var(--r);
  padding: 26px 32px;
  transition: border-color var(--ease), background var(--ease);
}
.areas__custom:hover { border-color: var(--accent); background: var(--accent-dim); }
.areas__custom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.areas__custom-title {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin-bottom: 4px;
}
.areas__custom-text { font-size: 13px; color: var(--text-2); line-height: 1.6; max-width: 520px; }

/* ═══════════════════════════════════════════════════════════
   WHY
═══════════════════════════════════════════════════════════ */
.why__list {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.why__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 20px;
  padding: 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background var(--ease);
}
.why__item:hover { background: var(--bg-surface); }
.why__item:nth-child(2n)    { border-right: none; }
.why__item:nth-child(n+3)   { border-bottom: none; }
.why__num {
  font-family: var(--f-mono);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  padding-top: 3px;
}
.why__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.why__title {
  font-family: var(--f-display);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: var(--text-1);
}
.why__text { font-size: 15px; color: var(--text-2); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════ */
.faq { background: var(--bg); }

.faq__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: start;
}
.faq__header { position: sticky; top: 88px; }
.faq__list { border-top: 1px solid var(--border); }

.faq__item { border-bottom: 1px solid var(--border); }

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  color: var(--text-1);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  min-height: 48px;
  transition: color var(--ease);
}
.faq__question:hover { color: var(--accent); }

.faq__icon {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.25s ease, color var(--ease);
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); color: var(--accent); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__answer-inner { padding-bottom: 22px; }
.faq__answer-inner p { font-size: 15px; color: var(--text-2); line-height: 1.75; }

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.contact {
  background:
    linear-gradient(180deg, #F4F0E6 0%, #FBF8F2 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 17, 16, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 16, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.75;
  pointer-events: none;
}

.contact__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__header {
  padding-top: 12px;
}

.contact .section-label--dark {
  color: var(--accent);
}

.contact__title {
  font-family: var(--f-display);
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.06;
  color: var(--text-1);
  margin-top: 14px;
  margin-bottom: 28px;
  text-wrap: balance;
}
.contact__line { display: block; }
.contact__sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 380px;
}
.contact__note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.75;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: rgba(251, 248, 242, 0.8);
  border: 1px solid rgba(196, 192, 182, 0.92);
  border-radius: var(--r);
  box-shadow: 0 18px 50px rgba(17, 17, 16, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.form-optional { color: var(--text-3); font-weight: 400; margin-left: 4px; }

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--text-1);
  width: 100%;
  -webkit-appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27, 67, 50, 0.08);
}
.form-group input.is-error,
.form-group textarea.is-error {
  border-color: #dc6c6c;
  box-shadow: 0 0 0 4px rgba(220, 108, 108, 0.08);
}
.form-group textarea { resize: vertical; min-height: 118px; max-height: 280px; line-height: 1.6; }

.form-error,
.form-status {
  font-size: 13px;
  line-height: 1.55;
}
.form-error {
  color: #b64d4d;
}
.form-status {
  color: var(--text-2);
  min-height: 20px;
}
.form-status.is-error {
  color: #b64d4d;
}
.form-status.is-success {
  color: var(--accent);
}

/* Success */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px;
  color: var(--accent);
  background: rgba(251, 248, 242, 0.8);
  border: 1px solid rgba(196, 192, 182, 0.92);
  border-radius: var(--r);
  box-shadow: 0 18px 50px rgba(17, 17, 16, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-success h3 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
.contact-success p { font-size: 16px; color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-bd);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 24px; }
.footer__logo {
  font-family: var(--f-logo);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--dark-t1);
}
.footer__email {
  font-size: 14px;
  color: var(--dark-t2);
  transition: color var(--ease);
}
.footer__email:hover { color: var(--dark-t1); }
.footer__meta { display: flex; align-items: center; gap: 24px; }
.footer__link {
  font-size: 13px;
  color: var(--dark-t3);
  transition: color var(--ease);
}
.footer__link:hover { color: var(--dark-t2); }
.footer__copy { font-size: 13px; color: var(--dark-t3); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - TABLET ≤ 1024px
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --gap-section: 88px; }
  .container { padding: 0 48px; }

  .problem__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .problem__grid .card:last-child {
    grid-column: 1 / -1;
  }

  .process__grid { grid-template-columns: 1fr; }
  .process__step { border-right: none; }
  .process__step:nth-child(2n) { border-right: none; }
  .process__step:nth-child(3) { border-bottom: 1px solid var(--border); }
  .process__step:last-child { border-bottom: none; }

  .areas__grid { grid-template-columns: repeat(2, 1fr); }

  .faq__layout { grid-template-columns: 1fr; gap: 40px; }
  .faq__header { position: static; }

  .contact__layout { grid-template-columns: 1fr; gap: 52px; }

  .why__list { grid-template-columns: 1fr; }
  .why__item { border-right: none; }
  .why__item:nth-child(n+3) { border-bottom: 1px solid var(--border); }
  .why__item:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE ≤ 768px
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --gap-section: 72px; }
  .container { padding: 0 20px; }

  /* Nav */
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  /* Hero */
  .hero { padding: 72px 0 84px; }
  .hero__headline { font-size: clamp(34px, 9.5vw, 52px); }
  .hero__headline br { display: none; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; justify-content: center; }
  .hero__trust { display: none; }

  /* Problem */
  .problem__grid { grid-template-columns: 1fr; }
  .problem__grid .card:last-child { grid-column: auto; }

  /* Process */
  .process__step { padding: 32px 24px; }

  /* Areas */
  .areas__grid { grid-template-columns: 1fr; }
  .areas__custom-inner { flex-direction: column; align-items: flex-start; }

  /* Why */
  .why__item { padding: 28px 24px; }

  /* Contact */
  .contact__line { display: inline; }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - SMALL ≤ 480px
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero__headline { font-size: clamp(30px, 10vw, 40px); }
  .card { padding: 24px; }
  .process__step { padding: 28px 20px; }
  .why__item { grid-template-columns: 48px 1fr; column-gap: 12px; padding: 24px 20px; }
  .nav__mobile a { font-size: 20px; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - SHORT VIEWPORTS (laptopy s malým displejem)
═══════════════════════════════════════════════════════════ */
@media (max-height: 760px) {
  .hero__headline { margin: 12px 0 20px; }
  .hero__sub { margin-bottom: 28px; }
}

@media (max-height: 680px) {
  .hero__headline { margin: 8px 0 14px; }
  .hero__sub { margin-bottom: 20px; }
}
