/* ============================================================
   Berezka Studio — продуктовая студия. styles.css
   ============================================================ */

:root {
  /* Палитра */
  --bg:        #0b0d12;
  --bg-2:      #0f121a;
  --surface:   #141926;
  --surface-2: #1b2233;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);

  --text:      #eef1f7;
  --muted:     #98a2b8;
  --muted-2:   #6b7488;

  --accent:    #7c5cff;
  --accent-2:  #23d5ab;
  --accent-3:  #ff7eb3;
  --grad:      linear-gradient(100deg, #7c5cff 0%, #23d5ab 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,92,255,.18), rgba(35,213,171,.12));

  /* Типографика */
  --font:      'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display:   'Unbounded', var(--font);

  /* Сетка / ритм */
  --maxw:      1180px;
  --gut:       clamp(20px, 5vw, 48px);
  --radius:    18px;
  --radius-lg: 26px;

  --ease:      cubic-bezier(.22,.61,.36,1);
  --shadow:    0 24px 60px -28px rgba(0,0,0,.7);
  --shadow-c:  0 18px 50px -22px rgba(124,92,255,.55);
}

/* ---------- Base / reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; }
::selection { background: rgba(124,92,255,.4); color: #fff; }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .8em; --pad-x: 1.4em;
  display: inline-flex; align-items: center; gap: .55em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 100px;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .25s, border-color .25s;
  will-change: transform;
}
.btn svg { transition: transform .35s var(--ease); }
.btn--primary {
  background: var(--grad);
  color: #0b0d12;
  box-shadow: var(--shadow-c);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 56px -20px rgba(35,213,171,.65); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: rgba(255,255,255,.02);
}
.btn--ghost:hover { background: rgba(255,255,255,.07); border-color: var(--accent-2); transform: translateY(-2px); }
.btn--lg { --pad-y: 1.02em; --pad-x: 1.7em; font-size: 1.02rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-content: center; gap: 22px;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader__logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.preloader__bar { width: 180px; height: 3px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: var(--grad); animation: load 1.1s var(--ease) infinite; }
@keyframes load { 0%{transform:translateX(-120%)} 100%{transform:translateX(360%)} }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,13,18,.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; }
.brand__mark { border-radius: 11px; box-shadow: 0 6px 18px -6px rgba(124,92,255,.7); }
.brand__name { font-size: 1.2rem; letter-spacing: .01em; }

.nav__links { display: flex; gap: 30px; }
.nav__links a { font-weight: 600; font-size: .96rem; color: var(--muted); position: relative; padding: 4px 0; transition: color .25s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 14px; }

.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero__glow--1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(124,92,255,.85), transparent 65%); top: -140px; right: -80px; animation: float1 14s ease-in-out infinite; }
.hero__glow--2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(35,213,171,.7), transparent 65%); bottom: -160px; left: -90px; animation: float2 16s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(-40px, 50px) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(50px, -40px) scale(1.08); } }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: .5;
}

.hero__inner { position: relative; max-width: 880px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .9rem; color: var(--muted);
  padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 100px;
  background: rgba(255,255,255,.02); margin-bottom: 26px;
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(35,213,171,.18); }

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin-bottom: 26px;
}
.hero__title span { display: block; }

.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.32rem); color: var(--muted); max-width: 640px; margin-bottom: 38px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 54px; }

.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero__trust-label { font-size: .85rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.hero__trust-logos { display: flex; flex-wrap: wrap; gap: 10px; }
.trustchip { font-size: .85rem; font-weight: 600; color: var(--muted); padding: 6px 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; display: grid; place-items: start center; padding-top: 7px; }
.hero__scroll span { width: 4px; height: 8px; border-radius: 4px; background: var(--accent-2); animation: scroll 1.6s var(--ease) infinite; }
@keyframes scroll { 0%{opacity:0;transform:translateY(0)} 35%{opacity:1} 70%{opacity:0;transform:translateY(12px)} 100%{opacity:0} }

/* ---------- Metrics ---------- */
.metrics { border-block: 1px solid var(--line); background: linear-gradient(var(--bg-2), var(--bg)); }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 46px 24px; text-align: center; position: relative; }
.metric + .metric::before { content: ""; position: absolute; left: 0; top: 26%; height: 48%; width: 1px; background: var(--line); }
.metric__num { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric__label { margin-top: 10px; color: var(--muted); font-weight: 600; font-size: .98rem; }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(70px, 11vw, 130px) 0; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section__head--row > div { min-width: 280px; }
.section__head--row .section__lead { max-width: 380px; margin: 0; }
.section__tag { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; }
.section__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.1; letter-spacing: -.015em; }
.section__lead { margin-top: 18px; color: var(--muted); font-size: 1.1rem; max-width: 620px; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--accent-2); margin-bottom: 22px; transition: transform .4s var(--ease); }
.card__icon svg { width: 30px; height: 30px; }
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); }
.card__title { font-family: var(--display); font-weight: 600; font-size: 1.22rem; margin-bottom: 12px; letter-spacing: -.01em; }
.card__text { color: var(--muted); font-size: .99rem; }

/* ---------- Cases ---------- */
.caselist { display: grid; gap: 26px; }
.caseitem {
  display: grid; grid-template-columns: minmax(0, 42%) 1fr; gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s;
}
.caseitem:nth-child(even) { grid-template-columns: 1fr minmax(0, 42%); }
.caseitem:nth-child(even) .caseitem__media { order: 2; }
.caseitem:hover { border-color: var(--line-2); transform: translateY(-4px); }
.caseitem__media { position: relative; min-height: 290px; background: var(--bg-2); overflow: hidden; }
.caseart { width: 100%; height: 100%; }
.caseitem__industry { position: absolute; top: 18px; left: 18px; z-index: 2; font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 6px 13px; border-radius: 100px; background: rgba(11,13,18,.6); backdrop-filter: blur(8px); border: 1px solid var(--line-2); }
.caseitem__body { padding: clamp(28px, 4vw, 44px); }
.caseitem__client { display: block; font-size: .86rem; font-weight: 700; color: var(--accent-2); letter-spacing: .02em; margin-bottom: 12px; }
.caseitem__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 16px; }
.caseitem__task, .caseitem__did { color: var(--muted); font-size: .98rem; margin-bottom: 12px; }
.caseitem__task b, .caseitem__did b { color: var(--text); }
.caseitem__stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.caseitem__stack span { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 5px 11px; border: 1px solid var(--line); border-radius: 7px; }
.caseitem__results { display: flex; flex-wrap: wrap; gap: 22px 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.caseitem__results li { font-size: .92rem; color: var(--muted); display: flex; flex-direction: column; }
.caseitem__results b { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1; margin-bottom: 5px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 30px 22px 30px 0; }
.step::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 2px; background: var(--line); }
.step::after { content: ""; position: absolute; top: 16px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(124,92,255,.15); }
.step:last-child::before { background: linear-gradient(90deg, var(--line), transparent); }
.step__num { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--accent-2); margin: 26px 0 12px; }
.step__title { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-bottom: 10px; }
.step__text { color: var(--muted); font-size: .95rem; }

/* ---------- Tech chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-weight: 600; font-size: .98rem; color: var(--text);
  padding: 11px 20px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s, color .3s, background .3s;
}
.chip:hover { transform: translateY(-3px); border-color: transparent; background: var(--grad-soft); color: #fff; box-shadow: 0 10px 30px -16px rgba(124,92,255,.7); }

/* ---------- Team ---------- */
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; text-align: left;
  transition: transform .4s var(--ease), border-color .4s;
}
.member:hover { transform: translateY(-5px); border-color: var(--line-2); }
.member__avatar {
  width: 70px; height: 70px; border-radius: 20px; margin-bottom: 20px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: #0b0d12;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.7);
}
.member__name { font-family: var(--display); font-weight: 600; font-size: 1.22rem; margin-bottom: 4px; }
.member__role { color: var(--accent-2); font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.member__bio { color: var(--muted); font-size: .96rem; }

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 30px 28px;
  display: flex; flex-direction: column; gap: 22px;
  transition: transform .4s var(--ease), border-color .4s;
}
.quote:hover { transform: translateY(-5px); border-color: var(--line-2); }
.quote__mark { font-family: var(--display); font-size: 4rem; line-height: .5; color: var(--accent); opacity: .5; height: 26px; }
.quote blockquote { font-size: 1.05rem; color: var(--text); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote__avatar { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .95rem; color: #0b0d12; background: linear-gradient(135deg, var(--a), var(--b)); flex-shrink: 0; }
.quote__who { display: flex; flex-direction: column; line-height: 1.35; }
.quote__who b { font-weight: 700; }
.quote__who span { color: var(--muted); font-size: .88rem; }

/* ---------- Contacts ---------- */
.contacts { position: relative; }
.contacts__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: start; }
.contacts__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.12; letter-spacing: -.015em; margin: 14px 0 18px; }
.contacts__lead { color: var(--muted); font-size: 1.08rem; max-width: 460px; margin-bottom: 34px; }
.contacts__list { display: grid; gap: 18px; }
.contacts__list li { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 1rem; }
.contacts__list a:hover { color: var(--accent-2); }
.contacts__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--accent-2); flex-shrink: 0; }

.contacts__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 38px); display: grid; gap: 20px; box-shadow: var(--shadow); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 13px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .25s, box-shadow .25s, background .25s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124,92,255,.18); background: var(--surface); }
.field--error input, .field--error textarea { border-color: var(--accent-3); box-shadow: 0 0 0 4px rgba(255,126,179,.16); }
.contacts__note { font-size: .85rem; color: var(--muted-2); text-align: center; }
.contacts__note.ok { color: var(--accent-2); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: clamp(54px, 8vw, 80px); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px 30px; padding-bottom: 50px; }
.footer__tagline { color: var(--muted); font-size: .96rem; margin-top: 18px; max-width: 320px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-family: var(--display); font-weight: 600; font-size: .92rem; letter-spacing: .04em; margin-bottom: 6px; }
.footer__col a, .footer__col span { color: var(--muted); font-size: .96rem; transition: color .25s; }
.footer__col a:hover { color: var(--accent-2); }
.socials { display: flex; gap: 12px; }
.social { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: transform .3s var(--ease), color .3s, border-color .3s, background .3s; }
.social:hover { transform: translateY(-3px); color: #fff; border-color: transparent; background: var(--grad-soft); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .88rem; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a:hover { color: var(--accent-2); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--rd, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero__glow, .hero__scroll span, .preloader__bar i { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cards, .team__grid, .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }
  .step::before, .step::after { display: none; }
  .step { padding: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .step__num { margin-top: 0; }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; gap: 8px;
    background: var(--surface); border-left: 1px solid var(--line);
    padding: 100px 30px 40px;
    transform: translateX(100%); transition: transform .4s var(--ease);
    z-index: 90;
  }
  .nav__links.open { transform: none; box-shadow: -30px 0 80px -30px rgba(0,0,0,.8); }
  .nav__links a { font-size: 1.1rem; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav__cta { display: none; }
  .burger { display: flex; }

  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3)::before, .metric:nth-child(odd)::before { display: none; }
  .metric:nth-child(even)::before { display: block; }
  .metric:nth-child(3), .metric:nth-child(4) { border-top: 1px solid var(--line); }

  .caseitem, .caseitem:nth-child(even) { grid-template-columns: 1fr; }
  .caseitem:nth-child(even) .caseitem__media { order: 0; }
  .caseitem__media { min-height: 200px; }

  .contacts__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .team__grid, .reviews__grid, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero__trust { flex-direction: column; align-items: flex-start; }
  .caseitem__results { gap: 16px 24px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
