/* ============================================================
   DDCom Engineering — v4 «Конверсионный светлый»
   Light premium conversion-focused build
   ============================================================ */

/* ---------- Custom properties ---------- */
:root {
  /* Color */
  --c-bg: #FBFBF9;
  --c-bg-alt: #F4F3EF;
  --c-surface: #FFFFFF;
  --c-ink: #16181D;
  --c-ink-soft: #3E434C;
  --c-muted: #5A5F69;
  --c-line: #E5E3DC;
  --c-red: #D7261E;
  --c-red-dark: #B71C15;
  --c-navy: #232A36;
  --c-navy-deep: #1A1D24;
  --c-wa: #25D366;
  --c-wa-dark: #1DA851;
  --c-wa-text: #0E7A43;   /* AA-compliant green for text on light backgrounds (5.2:1) */
  --c-wa-text-hover: #0A5C33;
  --c-amber: #D97706;     /* ≥3:1 non-text contrast on white */

  /* Type */
  --font-main: 'Onest', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --fs-h1: clamp(2.05rem, 1.1rem + 3.4vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 1.15rem + 1.7vw, 2.35rem);
  --fs-h3: clamp(1.12rem, 1rem + 0.4vw, 1.3rem);
  --fs-body: 1.0rem;
  --fs-small: 0.875rem;

  /* Layout */
  --container: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 6px 24px rgba(22, 24, 29, 0.07), 0 2px 6px rgba(22, 24, 29, 0.05);
  --shadow-hover: 0 14px 38px rgba(22, 24, 29, 0.12), 0 4px 10px rgba(22, 24, 29, 0.06);
  --header-h: 84px;
  --space-section: clamp(4rem, 3rem + 4vw, 7rem);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--c-ink);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }

a { color: var(--c-red-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-red); }

img, svg { display: block; max-width: 100%; }

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
  flex: none;
}

:focus-visible {
  outline: 3px solid var(--c-red);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--c-ink);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.5rem + 2.5vw, 2rem);
}

@media (min-width: 1700px) {
  :root { --container: 1320px; }
}

section { padding-block: var(--space-section); }

.section-alt { background: var(--c-bg-alt); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.2rem, 1.6rem + 2vw, 3.4rem);
}

.section-sub {
  font-size: 1.06rem;
  color: var(--c-muted);
  margin-bottom: 0;
}

.kicker {
  display: inline-block;
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-red);
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  margin-right: 0.6rem;
  vertical-align: 0.22em;
  background: var(--c-red);
}

.kicker--light { color: #FF8D85; }
.kicker--light::before { background: #FF8D85; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--c-red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(215, 38, 30, 0.28);
}

.btn-primary:hover {
  background: var(--c-red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(215, 38, 30, 0.32);
}

.btn-primary:active { transform: translateY(0); }

.btn-lg { padding: 1.05rem 2rem; font-size: 1.08rem; border-radius: 12px; }
.btn-sm { padding: 0.62rem 1.1rem; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 249, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled { box-shadow: 0 4px 18px rgba(22, 24, 29, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  min-height: var(--header-h);
}

.logo-link {
  display: inline-flex;
  color: var(--c-ink); /* currentColor parts of the logo */
  flex: none;
}

.logo-mark { height: 52px; width: auto; }
.logo-mark--footer { height: 40px; }

/* Nav (desktop) */
.main-nav { margin-left: auto; }

.nav-list {
  display: flex;
  gap: clamp(0.9rem, 1.4vw, 1.6rem);
  list-style: none;
}

.nav-list a {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  text-decoration: none;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-list a:hover { color: var(--c-red); border-bottom-color: var(--c-red); }

.nav-extra { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.2vw, 1.1rem);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--c-ink);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover { color: var(--c-red); }

.header-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-wa);
  color: #fff;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.header-wa:hover { background: var(--c-wa-dark); color: #fff; transform: translateY(-1px); }
.header-wa .icon { width: 20px; height: 20px; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.lang-divider { color: #B9B6AC; }

.lang-switch .lang-option {
  text-decoration: none;
  color: var(--c-muted);
  padding: 0.2rem 0.3rem;
  border-radius: 6px;
}

.lang-switch a.lang-option:hover { color: var(--c-red); background: rgba(215, 38, 30, 0.08); }

.lang-switch .lang-option.is-active {
  color: #fff;
  background: var(--c-ink);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.burger-line {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 2px;
  background: var(--c-ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-open .burger-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .burger-line:nth-child(2) { opacity: 0; }
.nav-open .burger-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 2rem + 3.5vw, 6rem);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(215, 38, 30, 0.05), transparent 60%),
    var(--c-bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin-bottom: 0.5em; }

.hero-sub {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.22rem);
  color: var(--c-muted);
  max-width: 38rem;
}

.hero-points {
  list-style: none;
  margin: 1.4rem 0 1.8rem;
  display: grid;
  gap: 0.65rem;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--c-ink-soft);
}

.hero-points .icon {
  color: var(--c-red);
  margin-top: 0.22em;
  width: 1.1em;
  height: 1.1em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.6rem;
  margin-bottom: 1rem;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.3rem;
}

.hero-phone,
.hero-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--c-ink);
  white-space: nowrap;
}

.hero-phone:hover { color: var(--c-red); }

.hero-wa { color: var(--c-wa-text); }
.hero-wa:hover { color: var(--c-wa-text-hover); }

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--c-muted);
  margin: 0;
}

.hero-note .icon { color: var(--c-red); }

.hero-visual svg {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Stats / intro ---------- */
.stats-intro { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.stats-intro p:last-child { color: var(--c-muted); font-size: 1.06rem; margin-bottom: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 0.8rem + 1vw, 1.6rem);
}

.stat {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 1rem + 1vw, 2rem) clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  box-shadow: var(--shadow-soft);
}

.stat-num {
  font-size: clamp(2.1rem, 1.6rem + 1.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-red);
  white-space: nowrap;
}

.stat-unit {
  font-size: 0.5em;
  font-weight: 700;
  color: var(--c-ink-soft);
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--c-muted);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.8rem + 1vw, 1.6rem);
}

.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: rgba(215, 38, 30, 0.09);
  color: var(--c-red);
}

.service-icon svg { width: 28px; height: 28px; }

.service-card h3 { margin-bottom: 0.45em; }
.service-card p { margin: 0; color: var(--c-muted); font-size: 0.97rem; }

/* ---------- Case studies ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 1rem + 1.2vw, 2rem);
}

.case-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.case-visual {
  aspect-ratio: 16 / 9;
  background: #E9EDF1;
}

.case-visual svg { width: 100%; height: 100%; }

.case-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.3rem, 1rem + 1vw, 1.9rem);
}

.case-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.case-tag {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-tag--res { background: #E4F0E6; color: #285D38; }
.case-tag--com { background: #E5EDF8; color: #25457A; }
.case-tag--ind { background: #F7EDDC; color: #7A4E0E; }
.case-tag--prv { background: #F3E7F1; color: #6E3263; }

.case-year {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-muted);
  white-space: nowrap;
}

.case-title { margin-bottom: 0.7em; font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); }

.case-text { color: var(--c-ink-soft); font-size: 0.97rem; margin-bottom: 0.8em; }
.case-text strong { color: var(--c-ink); }

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin: 0.5rem 0 1.1rem;
  padding: 1rem 1.1rem;
  background: var(--c-bg-alt);
  border-radius: var(--radius-sm);
}

.case-facts li { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }

.fact-value {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.fact-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-muted);
}

.case-result {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: #1F6B38;
  margin-bottom: 1.1rem;
}

.case-result .icon { color: #1F6B38; }

.case-quote {
  margin: auto 0 0;
  padding: 0.85rem 0 0.2rem 1.1rem;
  border-left: 4px solid var(--c-red);
}

.case-quote p {
  font-size: 1.02rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  color: var(--c-ink);
  margin-bottom: 0.55em;
}

.case-quote cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--c-muted);
}

.cases-cta {
  margin-top: clamp(2.2rem, 1.8rem + 1.5vw, 3.2rem);
  text-align: center;
}

.cases-cta p {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

/* ---------- Process ---------- */
.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.9rem, 0.7rem + 0.8vw, 1.3rem);
  counter-reset: step;
}

.process-step {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.step-num {
  display: inline-block;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-red);
  margin-bottom: 0.8rem;
}

.process-step h3 { font-size: 1.08rem; margin-bottom: 0.45em; }
.process-step p { font-size: 0.92rem; color: var(--c-muted); margin-bottom: 0.9em; }

.step-time {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-ink-soft);
}

/* ---------- Trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 0.8rem + 1vw, 1.5rem);
}

.trust-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  box-shadow: var(--shadow-soft);
}

.trust-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: var(--c-navy);
  color: #fff;
}

.trust-icon svg { width: 28px; height: 28px; }

.trust-card h3 { font-size: 1.08rem; margin-bottom: 0.5em; }

.trust-doc {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-ink-soft);
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px dashed var(--c-line);
}

.trust-benefit { font-size: 0.92rem; color: var(--c-muted); margin: 0; }
.trust-benefit strong { color: var(--c-ink); }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.8rem + 1vw, 1.6rem);
}

.review-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  box-shadow: var(--shadow-soft);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.review-stars { display: inline-flex; gap: 2px; color: var(--c-amber); }
.review-stars .icon { width: 18px; height: 18px; }

.review-source {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-muted);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
}

.review-text {
  font-size: 0.99rem;
  color: var(--c-ink-soft);
  margin-bottom: 1.2rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--c-navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.review-author strong { display: block; font-size: 0.97rem; }
.review-author small { display: block; font-size: 0.84rem; color: var(--c-muted); }

/* ---------- FAQ ---------- */
.faq-container { max-width: 880px; }

.faq-list { display: grid; gap: 0.8rem; }

.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.4rem 1.15rem 1.4rem;
  font-weight: 700;
  font-size: 1.04rem;
  transition: color 0.18s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--c-red); }

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--c-red);
  border-bottom: 2.5px solid var(--c-red);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

.faq-item[open] summary { color: var(--c-red); }

.faq-answer { padding: 0 1.4rem 1.3rem; }
.faq-answer p { margin: 0; color: var(--c-ink-soft); }

/* ---------- Contact / final CTA ---------- */
.section-dark {
  background:
    radial-gradient(900px 460px at 12% 0%, rgba(215, 38, 30, 0.16), transparent 55%),
    var(--c-navy-deep);
  color: #DDE0E5;
}

.section-dark h2 { color: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  align-items: start;
}

.contact-copy > p { color: #B9BEC7; max-width: 34rem; }

.contact-promise {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  margin: 1.4rem 0 1.6rem;
  max-width: 34rem;
}

.contact-promise .icon { color: #FF8D85; }

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #C9CDD4;
}

.contact-list .icon { color: #FF8D85; margin-top: 0.2em; }
.contact-list .icon-wa-green { color: var(--c-wa); }

.contact-list a { color: #fff; font-weight: 600; }
.contact-list a:hover { color: #FF8D85; }

/* Form */
.lead-form {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color: var(--c-ink);
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.field input,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235A5F69'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 20px;
  padding-right: 2.6rem;
  cursor: pointer;
}

.field input::placeholder { color: #9CA0A8; }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(215, 38, 30, 0.16);
}

.field input.is-invalid {
  border-color: var(--c-red);
  background: #FFF6F5;
}

.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-red-dark);
}

.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: var(--c-muted);
  text-align: center;
}

/* Form success state */
.form-success { text-align: center; padding: 1.2rem 0.4rem; }

.form-success .success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #E4F0E6;
  color: #1F6B38;
}

.form-success .success-icon svg { width: 32px; height: 32px; fill: currentColor; }
.form-success h3 { margin-bottom: 0.4em; }
.form-success p { color: var(--c-muted); margin-bottom: 1.2em; }

.btn-wa {
  background: var(--c-wa-text); /* white text needs ≥4.5:1 — brand green fails */
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 122, 67, 0.3);
}

.btn-wa:hover { background: var(--c-wa-text-hover); color: #fff; transform: translateY(-1px); }
.btn-wa .icon { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-navy-deep);
  color: #B9BEC7;
  /* currentColor parts of the footer logo render light */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1.4fr;
  gap: clamp(1.8rem, 1.4rem + 1.5vw, 3rem);
  padding-block: clamp(2.8rem, 2.2rem + 2vw, 4rem);
}

.footer-brand { color: #EDEFF2; }
.footer-brand p { margin: 1.2rem 0 0; font-size: 0.93rem; color: #B9BEC7; max-width: 19rem; }

.footer-col h3 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col li { font-size: 0.93rem; }

.footer-col a {
  color: #DDE0E5;
  text-decoration: none;
}

.footer-col a:hover { color: #FF8D85; text-decoration: underline; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 1.2rem;
  font-size: 0.88rem;
}

.footer-bottom-inner p { margin: 0; }
.footer-bottom-inner a { color: #DDE0E5; text-decoration: none; }
.footer-bottom-inner a:hover { color: #FF8D85; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 2vw, 1.6rem);
  bottom: clamp(1rem, 2vw, 1.6rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--c-wa);
  color: #fff;
  box-shadow: 0 8px 24px rgba(29, 168, 81, 0.45);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  background: var(--c-wa-dark);
  color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 30px rgba(29, 168, 81, 0.5);
}

.wa-float .icon { width: 30px; height: 30px; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* gentle stagger inside grids */
.services-grid .reveal:nth-child(3n + 2),
.stats-grid .reveal:nth-child(2),
.trust-grid .reveal:nth-child(2),
.reviews-grid .reveal:nth-child(2),
.process-steps .reveal:nth-child(2),
.cases-grid .reveal:nth-child(even) { transition-delay: 0.1s; }

.services-grid .reveal:nth-child(3n),
.stats-grid .reveal:nth-child(3),
.trust-grid .reveal:nth-child(3),
.reviews-grid .reveal:nth-child(3),
.process-steps .reveal:nth-child(3) { transition-delay: 0.18s; }

.stats-grid .reveal:nth-child(4),
.trust-grid .reveal:nth-child(4),
.process-steps .reveal:nth-child(4) { transition-delay: 0.26s; }

.process-steps .reveal:nth-child(5) { transition-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .wa-float,
  .service-card,
  .case-card { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

/* --- ≤1180px: collapse nav into drawer --- */
@media (max-width: 1180px) {
  :root { --header-h: 72px; }

  .logo-mark { height: 48px; }

  .burger { display: flex; }

  .lang-switch--header { display: none; }
  .header-cta { display: none; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    margin: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 24px 40px rgba(22, 24, 29, 0.14);
    padding: 1.2rem clamp(1rem, 4vw, 2rem) 1.6rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 1.1rem;
  }

  .nav-list a {
    display: block;
    padding: 0.7rem 0.2rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--c-line);
  }

  .nav-extra {
    display: grid;
    gap: 0.9rem;
    justify-items: start;
  }

  .nav-extra-phone,
  .nav-extra-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--c-ink);
    font-size: 1.05rem;
  }

  .nav-extra-wa { color: var(--c-wa-text); }

  .nav-extra .btn { width: 100%; }

  @media (prefers-reduced-motion: reduce) {
    .main-nav { transition: none; }
  }
}

/* --- ≤1024px: grids tighten --- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; max-width: 680px; }

  .contact-grid { grid-template-columns: 1fr; }
}

/* --- ≤768px: single column cases --- */
@media (max-width: 768px) {
  .cases-grid { grid-template-columns: 1fr; }
  .case-facts { grid-template-columns: repeat(2, 1fr); }
  .header-phone-num { display: none; }
}

/* --- ≤480px: compact --- */
@media (max-width: 480px) {
  :root { --header-h: 64px; }

  .logo-mark { height: 48px; }
  .logo-mark--footer { height: 40px; }

  .stats-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }

  .hero-cta .btn { width: 100%; }
  .cases-cta .btn { width: 100%; }

  .wa-float {
    width: 54px;
    height: 54px;
  }

  .wa-float .icon { width: 27px; height: 27px; }

  .footer-grid { grid-template-columns: 1fr; }

  .review-top { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* --- footer mid breakpoint --- */
@media (max-width: 1024px) and (min-width: 481px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* --- ≥1920px: a touch more air --- */
@media (min-width: 1900px) {
  :root { --space-section: 8rem; }
}
