/* ============================================================
   DDCom Engineering — v5 «Кейсовый журнальный»
   Magazine-style, portfolio-led. Ink navy / paper / signal red.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #101720;
  --ink-2: #0B1118;
  --ink-3: #18222E;
  --paper: #F6F5F1;
  --white: #FFFFFF;

  --red: #D7261E;
  --red-dark: #AF1B14;
  --red-bright: #FF5A4C;

  --text-ink: #161D26;
  --muted-ink: #4E5662;
  --text-paper: #EDEDE8;
  --muted-paper: #A8B0BA;

  --line-ink: rgba(16, 23, 32, 0.14);
  --line-paper: rgba(246, 245, 241, 0.16);

  --wa: #128C7E;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 1700px) {
  :root {
    --container: 1380px;
    --header-h: 92px;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { display: block; }

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

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--ink :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible {
  outline-color: var(--red-bright);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(215, 38, 30, 0.28);
}
.btn--primary:active { transform: translateY(0); }
.btn--lg { padding: 18px 36px; font-size: 1.02rem; }
.btn--wa { background: #0E7265; color: #fff; }
.btn--wa:hover { background: #0B5D53; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--text-paper);
  background: transparent;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(11, 17, 24, 0.96);
  box-shadow: 0 1px 0 var(--line-paper), 0 18px 40px rgba(0, 0, 0, 0.25);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header.is-scrolled,
  body.nav-open .site-header {
    background: rgba(11, 17, 24, 0.82);
    backdrop-filter: blur(10px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
  height: var(--header-h);
}

.brand { color: var(--paper); flex: none; }
.brand .logo-mark { height: 52px; width: auto; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(237, 237, 232, 0.85);
  padding: 6px 2px;
  background-image: linear-gradient(var(--red-bright), var(--red-bright));
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: 0 100%;
  transition: color 0.25s var(--ease), background-size 0.3s var(--ease);
}
.nav-link:hover { color: #fff; background-size: 100% 2px; }

.nav-extras { display: none; }

.header-contacts { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 20px); flex: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--paper);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.header-phone:hover { color: var(--red-bright); }
.header-phone .icon { color: var(--red-bright); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-paper);
  border-radius: 50%;
  color: var(--paper);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.icon-btn:hover { border-color: var(--red-bright); color: var(--red-bright); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.lang-sep { color: var(--line-paper); }
.lang-current { color: var(--red-bright); }
.lang-link { color: var(--muted-paper); transition: color 0.25s var(--ease); }
.lang-link:hover { color: #fff; }

.header-cta { padding: 12px 20px; font-size: 0.85rem; }
@media (max-width: 1480px) { .header-cta { display: none; } }

/* Hamburger */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 110;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--text-paper);
  background:
    radial-gradient(1100px 520px at 82% -12%, rgba(215, 38, 30, 0.16), transparent 62%),
    radial-gradient(700px 420px at -8% 100%, rgba(255, 90, 76, 0.05), transparent 60%),
    var(--ink);
}

.hero-inner {
  padding-top: calc(var(--header-h) + clamp(56px, 11vh, 130px));
  padding-bottom: clamp(48px, 8vh, 96px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-paper);
}
.hero-kicker::before {
  content: "";
  width: 46px;
  height: 2px;
  background: var(--red);
  flex: none;
}

.hero h1 {
  margin-top: 28px;
  max-width: 21ch;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.hero h1 em {
  font-style: italic;
  color: var(--red-bright);
}

.hero-sub {
  margin-top: 26px;
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  color: var(--muted-paper);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(32px, 4.5vh, 48px);
}

.hero-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 2.5vw, 30px); }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--paper);
  transition: color 0.25s var(--ease);
}
.contact-link .icon { color: var(--red-bright); }
.contact-link:hover { color: var(--red-bright); }

/* Intro + counters band */
.hero-stats { border-top: 1px solid var(--line-paper); }
.hero-stats-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) 1.6fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(34px, 5vw, 58px);
}

.intro-line {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted-paper);
  border-left: 2px solid var(--red);
  padding-left: 20px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.1vw, 3rem);
  line-height: 1.05;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.stat-num .plus { color: var(--red-bright); margin-left: 2px; }
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-paper);
}

/* ---------- Generic sections ---------- */
.section { padding-block: clamp(72px, 9vw, 132px); }
.section--paper { background: var(--paper); color: var(--text-ink); }
.section--white { background: var(--white); color: var(--text-ink); }
.section--ink { background: var(--ink); color: var(--text-paper); }

.section-head { max-width: 880px; margin-bottom: clamp(44px, 6vw, 76px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; flex: none; }
.section--ink .eyebrow { color: var(--red-bright); }

.section h2 {
  margin-top: 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.95rem, 3.6vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section--ink h2 { color: var(--paper); }
.section h2 em { font-style: italic; color: var(--red); }
.section--ink h2 em { color: var(--red-bright); }

.section-lede {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted-ink);
}
.section--ink .section-lede { color: var(--muted-paper); }

/* ---------- Portfolio / cases ---------- */
.case-list { display: flex; flex-direction: column; }

.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  padding-block: clamp(52px, 7vw, 96px);
  border-top: 1px solid var(--line-ink);
}
.case:first-child { border-top: 0; padding-top: clamp(8px, 2vw, 20px); }
.case:nth-of-type(even) .case-art-col { order: 2; }

.case-art-col { position: relative; }

.case-index {
  position: absolute;
  top: clamp(-52px, -5vw, -68px);
  left: -8px;
  z-index: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(5rem, 10vw, 9.5rem);
  line-height: 1;
  color: rgba(215, 38, 30, 0.13);
  user-select: none;
  pointer-events: none;
}
.case:nth-of-type(even) .case-index { left: auto; right: -8px; }

.case-art-frame {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line-ink);
  background: #FCFBF8;
  padding: clamp(20px, 3vw, 44px);
}
.case-art-frame::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 46px;
  height: 46px;
  border-top: 3px solid var(--red);
  border-left: 3px solid var(--red);
}
.case:nth-of-type(even) .case-art-frame::after {
  left: auto;
  right: -1px;
  border-left: 0;
  border-right: 3px solid var(--red);
}
.case-art { width: 100%; height: auto; color: #2B3542; }

.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.case-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.case-year {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.case-title {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.case-blocks { display: grid; gap: 18px; margin-top: 24px; }
.case-block h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.case-block p { margin-top: 7px; line-height: 1.66; color: #39424E; }

.case-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: 30px;
}
.case-stats > div { border-top: 3px solid var(--red); padding-top: 10px; }
.case-stats dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-ink);
}
.case-stats dd {
  margin-top: 5px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  line-height: 1.12;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.case-stats dd.small {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  padding-top: 5px;
}

.case-result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.case-result .icon { color: var(--red); margin-top: 3px; }

.case-quote {
  margin-top: 26px;
  border-left: 3px solid var(--red);
  padding: 6px 0 6px 20px;
}
.case-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.55;
  color: #222B35;
}
.case-quote footer {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted-ink);
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(20px, 2.5vw, 30px);
}
.service-card {
  border: 1px solid var(--line-paper);
  background: rgba(255, 255, 255, 0.015);
  padding: clamp(26px, 2.8vw, 36px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-card:hover { border-color: rgba(255, 90, 76, 0.55); transform: translateY(-4px); }
.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--red-bright);
}
.service-card h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.25;
  color: var(--paper);
}
.service-card p { margin-top: 12px; font-size: 0.94rem; line-height: 1.66; color: var(--muted-paper); }

/* ---------- Process ---------- */
.process-list { max-width: 920px; }
.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(18px, 3vw, 36px);
  padding-block: clamp(26px, 3.2vw, 38px);
  border-top: 1px solid var(--line-ink);
}
.step:last-child { border-bottom: 1px solid var(--line-ink); }
.step-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.step-body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  color: var(--ink);
}
.step-body p { margin-top: 9px; max-width: 64ch; line-height: 1.66; color: #39424E; }
.step-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 12px;
  border: 1px solid var(--line-ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

/* ---------- Trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(20px, 2.5vw, 30px);
}
.trust-card {
  border: 1px solid var(--line-paper);
  background: rgba(255, 255, 255, 0.015);
  padding: clamp(26px, 3vw, 40px);
}
.trust-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.25;
  color: var(--paper);
}
.trust-doc {
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-paper);
}
.trust-benefit {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-paper);
  font-size: 0.95rem;
  line-height: 1.66;
  color: var(--text-paper);
}
.trust-benefit strong { color: var(--red-bright); font-weight: 700; }

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 2.5vw, 30px);
}
.review-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-ink);
  border-top: 3px solid var(--red);
  padding: clamp(26px, 3vw, 38px);
}
.stars { display: flex; gap: 3px; color: var(--red); }
.review-text { position: relative; flex: 1; margin-top: 20px; }
.review-text::before {
  content: "\201C";
  position: absolute;
  top: -28px;
  left: -6px;
  font-family: var(--serif);
  font-size: 4.4rem;
  line-height: 1;
  color: rgba(215, 38, 30, 0.16);
  pointer-events: none;
}
.review-text p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.62;
  color: #222B35;
}
.review-meta { margin-top: 22px; display: flex; flex-direction: column; }
.review-name { font-weight: 700; color: var(--ink); }
.review-role { margin-top: 2px; font-size: 0.85rem; color: var(--muted-ink); }
.review-source {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line-ink); }
.faq-item:first-child { border-top: 1px solid var(--line-ink); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(20px, 2.6vw, 28px) 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }

.faq-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-ink);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); border-color: var(--red); color: var(--red); }

.faq-a { padding: 0 56px clamp(22px, 2.6vw, 30px) 0; }
.faq-a p { max-width: 68ch; line-height: 1.7; color: #39424E; }

/* ---------- Contact / final CTA ---------- */
.contact {
  background:
    radial-gradient(900px 460px at 8% 0%, rgba(215, 38, 30, 0.13), transparent 60%),
    var(--ink);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.contact-list { margin-top: clamp(28px, 3.4vw, 40px); }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  line-height: 1.55;
  color: var(--text-paper);
}
.contact-list .icon { color: var(--red-bright); margin-top: 3px; }
.contact-list a {
  font-weight: 600;
  color: var(--paper);
  transition: color 0.25s var(--ease);
}
.contact-list a:hover { color: var(--red-bright); }

.form-card {
  background: var(--paper);
  color: var(--text-ink);
  border-top: 4px solid var(--red);
  padding: clamp(26px, 3.4vw, 46px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #C9C5BA;
  border-radius: 3px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--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'%3E%3Cpath fill='%234E5662' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}
.field input::placeholder { color: #6F695B; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 38, 30, 0.16);
}
.field.is-invalid input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215, 38, 30, 0.12); }
.field-error { margin-top: 7px; font-size: 0.82rem; font-weight: 500; color: var(--red); }

.form-card .btn { width: 100%; margin-top: 6px; }

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted-ink);
}
.form-note .icon { color: var(--red); margin-top: 2px; }

.form-success { text-align: center; padding: clamp(10px, 2vw, 20px) 0; }
.form-success .icon { margin: 0 auto; color: var(--red); }
.form-success__title {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--ink);
}
.form-success__text { margin-top: 12px; color: var(--muted-ink); line-height: 1.6; }
.form-success .btn { margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-2);
  color: var(--muted-paper);
  padding-top: clamp(56px, 7vw, 92px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.25fr;
  gap: clamp(32px, 5vw, 72px);
}
.footer-brand { color: var(--paper); }
.footer-brand .logo-mark { height: 40px; width: auto; }
.footer-brand p {
  margin-top: 20px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted-paper);
}
.footer-col h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
}
.footer-col ul { margin-top: 18px; }
.footer-col li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.footer-col li .icon { color: var(--red-bright); margin-top: 3px; }
.footer-col a { color: var(--text-paper); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--red-bright); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-block: 24px;
  border-top: 1px solid var(--line-paper);
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--text-paper); }
.footer-bottom a:hover { color: var(--red-bright); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); background: #0E7265; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .brand .logo-mark { height: 48px; }

  .nav-toggle { display: flex; }
  .header-contacts .lang-switch { display: none; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    margin: 0;
    padding: calc(var(--header-h) + 28px) var(--gutter) 48px;
    background: var(--ink-2);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.38s var(--ease), visibility 0.38s;
  }
  body.nav-open .main-nav { transform: none; visibility: visible; }

  .nav-list { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav-link {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    padding: 10px 0;
    color: var(--paper);
  }

  .nav-extras {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 36px;
    padding-top: 30px;
    border-top: 1px solid var(--line-paper);
  }
  .nav-extras .btn { width: 100%; }
  .nav-extras .lang-switch { display: inline-flex; font-size: 0.95rem; }
}

@media (max-width: 900px) {
  .hero-stats-inner { grid-template-columns: 1fr; gap: 30px; }

  .case { grid-template-columns: 1fr; gap: 34px; align-items: start; }
  .case:nth-of-type(even) .case-art-col { order: 0; }
  .case-index { top: -34px; font-size: 4.6rem; }
  .case:nth-of-type(even) .case-index { right: auto; left: -8px; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 740px) {
  .header-phone .num { display: none; }
  .header-phone {
    width: 40px;
    height: 40px;
    justify-content: center;
    border: 1px solid var(--line-paper);
    border-radius: 50%;
  }
  .header-phone .icon { color: var(--paper); }
  .header-phone:hover { border-color: var(--red-bright); }
  .header-phone:hover .icon { color: var(--red-bright); }

  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .case-stats { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 56px 1fr; }
  .faq-a { padding-right: 0; }
}

@media (max-width: 480px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .icon-btn { display: none; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
  .case-art-frame { padding: 16px; }
  .case-quote p { font-size: 1.04rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn--primary:hover, .service-card:hover, .wa-float:hover { transform: none; }
}
