/* ============================================================
   АВТОГИДРА ПРО — общий файл стилей
   Палитра: чёрный / белый / лайм
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Syne:wght@500;600;700;800&display=swap");

:root {
  --bg: #090909;
  --bg-2: #111111;
  --bg-3: #171717;
  --bg-4: #1e1e1e;
  --fg: #f4f4ef;
  --fg-muted: #9c9c94;
  --fg-subtle: #6e6e66;
  --lime: #c8f542;
  --lime-hover: #d6ff63;
  --lime-dim: rgba(200, 245, 66, 0.14);
  --line: rgba(244, 244, 239, 0.1);
  --line-strong: rgba(244, 244, 239, 0.18);
  --overlay: rgba(9, 9, 9, 0.55);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);

  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --container: 1180px;
  --wide: 1320px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --header-h: 76px;
  --radius: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 280ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
[role="button"] {
  cursor: pointer;
  font-family: inherit;
}

button:disabled {
  cursor: not-allowed;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 0;
}

p {
  text-wrap: pretty;
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(var(--container), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.container-wide {
  width: min(var(--wide), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--lime);
  color: var(--bg);
  padding: 8px 12px;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(9, 9, 9, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}

.header.is-scrolled {
  background: rgba(9, 9, 9, 0.94);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(var(--wide), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-pro {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--bg);
  background: var(--lime);
  padding: 2px 7px 1px;
  border-radius: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  color: var(--fg-muted);
  border-radius: 999px;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--fg);
}

.nav a.is-active {
  background: var(--lime-dim);
  color: var(--lime);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg);
  transition: color var(--t-fast) var(--ease);
}

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

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.burger span {
  display: block;
  height: 1.5px;
  width: 22px;
  background: var(--fg);
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast);
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-lime {
  background: var(--lime);
  color: var(--bg);
}

.btn-lime:hover {
  background: var(--lime-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
}

.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 9, 9, 0.28) 0%, rgba(9, 9, 9, 0.2) 35%, rgba(9, 9, 9, 0.92) 100%),
    linear-gradient(90deg, rgba(9, 9, 9, 0.55) 0%, rgba(9, 9, 9, 0.1) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--wide), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 0 0 clamp(3rem, 8vh, 6.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--lime);
}

.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  max-width: 14ch;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 42ch;
  margin-bottom: 32px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  max-width: 16ch;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--fg-muted);
  max-width: 46ch;
  font-size: 1.05rem;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  max-width: 14ch;
}

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-lead {
  color: var(--fg-muted);
  max-width: 36ch;
  font-size: 0.98rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  min-height: 420px;
  max-height: 560px;
}

.muted {
  color: var(--fg-muted);
}

/* ---------- Cards / advantages ---------- */

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.adv-card {
  background: var(--bg-2);
  padding: 32px 28px 36px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--t-med) var(--ease);
}

.adv-card:hover {
  background: var(--bg-3);
}

.adv-index {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--lime);
}

.adv-card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.adv-card p {
  color: var(--fg-muted);
  font-size: 0.94rem;
  margin-top: auto;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  isolation: isolate;
  border: 1px solid var(--line);
  transition: transform var(--t-med) var(--ease);
}

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

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 700ms var(--ease);
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.1) 0%, rgba(9, 9, 9, 0.88) 100%);
}

.service-card h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.service-card p {
  color: rgba(244, 244, 239, 0.78);
  font-size: 0.94rem;
  max-width: 36ch;
}

.service-card.tall {
  min-height: 480px;
  grid-row: span 2;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

.service-panel:hover {
  border-color: rgba(200, 245, 66, 0.35);
  transform: translateY(-3px);
}

.service-panel img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.service-panel-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.service-panel h3 {
  font-size: 1.4rem;
}

.service-panel p {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.tag {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bg);
  background: var(--lime);
  padding: 4px 8px;
  border-radius: 2px;
}

/* ---------- Works / gallery ---------- */

.works-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 12px;
}

.works-grid a,
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
  display: block;
}

.works-grid img,
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.works-grid a:hover img,
.gallery-grid figure:hover img {
  transform: scale(1.04);
}

.works-grid a:first-child {
  grid-row: span 2;
}

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

.gallery-grid figure {
  height: 320px;
}

.gallery-grid figure:nth-child(1) {
  grid-column: span 2;
  height: 420px;
}

.gallery-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}

.process-item {
  padding: 8px 28px 8px 0;
  border-right: 1px solid var(--line);
  min-height: 180px;
}

.process-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.process-item:not(:first-child) {
  padding-left: 28px;
}

.process-item h3 {
  font-size: 1.2rem;
  margin: 16px 0 10px;
}

.process-item p {
  color: var(--fg-muted);
  font-size: 0.94rem;
}

.process-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--lime);
}

/* ---------- Reviews ---------- */

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

.review {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
}

.review q {
  font-size: 1.05rem;
  line-height: 1.5;
  quotes: "«" "»";
}

.review footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.review-car {
  color: var(--fg-subtle);
  font-size: 0.82rem;
}

/* ---------- Social ---------- */

.social-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.social-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}

.social-card:hover {
  border-color: var(--lime);
  background: var(--bg-3);
}

.social-card h3 {
  font-size: 1.8rem;
}

.social-card p {
  color: var(--fg-muted);
  margin: 12px 0 28px;
}

.social-arrow {
  font-family: var(--font-display);
  color: var(--lime);
  font-size: 1.4rem;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3.2rem) var(--pad);
  text-align: left;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 10px;
}

.stat span {
  color: var(--fg-muted);
  font-size: 0.92rem;
}

/* ---------- Principles / quality ---------- */

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.principle {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.principle h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.principle p {
  color: var(--fg-muted);
}

.trust-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.trust-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.trust-card h3 {
  font-size: 1.6rem;
  margin: 8px 0 14px;
}

.director {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
}

.director img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.director figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(9, 9, 9, 0.85));
}

.director strong {
  display: block;
  font-size: 1.1rem;
}

.director span {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* ---------- Contacts ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
}

.contact-list {
  display: flex;
  flex-direction: column;
}

.contact-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
}

.contact-item .label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 600;
}

.contact-item a,
.contact-item p {
  font-size: 1.15rem;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--lime);
}

.map-stub {
  min-height: 460px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(9, 9, 9, 0.2), rgba(9, 9, 9, 0.55)),
    url("../assets/img/lounge.jpg") center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.map-stub-card {
  background: rgba(9, 9, 9, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  max-width: 320px;
}

.map-stub-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.map-stub-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.consult {
  margin-top: 48px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.consult h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--fg-muted);
  margin-top: 14px;
  max-width: 28ch;
  font-size: 0.92rem;
}

.footer h4 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer a {
  display: inline-block;
  color: var(--fg-muted);
  font-size: 0.92rem;
  padding: 4px 0;
  transition: color var(--t-fast) var(--ease);
}

.footer a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--fg-subtle);
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal button {
  background: none;
  border: 0;
  color: var(--fg-subtle);
  font-size: 0.8rem;
  padding: 0;
}

.footer-legal button:hover,
.footer-legal a:hover {
  color: var(--fg);
}

/* ---------- Cookie ---------- */

.cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  max-width: 520px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  display: none;
}

.cookie.is-visible {
  display: block;
  animation: rise 280ms var(--ease);
}

.cookie p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

.cookie p button {
  background: none;
  border: 0;
  color: var(--lime);
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

/* ---------- Modals ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 90;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
  overflow: auto;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  width: min(640px, 100%);
  max-height: none;
  overflow: visible;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  margin: auto;
  animation: rise 280ms var(--ease);
}

.modal h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.modal h3 {
  font-size: 1.05rem;
  margin: 18px 0 8px;
}

.modal p,
.modal li {
  color: var(--fg-muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.modal ol,
.modal ul {
  padding-left: 18px;
}

.modal li {
  list-style: disc;
  margin-bottom: 6px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: 1.4rem;
  line-height: 1;
}

/* ---------- Mobile drawer ---------- */

.mobile-nav {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 700ms var(--ease) forwards;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .nav,
  .header-phone {
    display: none;
  }

  .header-cta .btn {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header-inner {
    gap: 12px;
  }

  .mobile-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(9, 9, 9, 0.98);
    z-index: 49;
    padding: 28px var(--pad);
    flex-direction: column;
    gap: 8px;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .mobile-nav a {
    font-family: var(--font-display);
    font-size: 1.8rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .adv-grid,
  .process,
  .reviews,
  .stats,
  .services-list,
  .principles,
  .footer-grid,
  .split,
  .trust-row,
  .contact-grid,
  .social-block {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid,
  .works-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .works-grid a:first-child,
  .service-card.tall {
    grid-row: auto;
    min-height: 320px;
  }

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

  .gallery-grid figure,
  .gallery-grid figure:nth-child(1) {
    height: 240px;
    grid-column: auto;
  }

  .process-item,
  .process-item:not(:first-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }

  .split img {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .adv-grid,
  .process,
  .reviews,
  .stats,
  .services-grid,
  .services-list,
  .principles,
  .footer-grid,
  .split,
  .trust-row,
  .contact-grid,
  .social-block,
  .works-grid,
  .gallery-grid,
  .consult {
    grid-template-columns: 1fr;
    display: grid;
  }

  .consult {
    align-items: flex-start;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero {
    min-height: 88svh;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .director {
    min-height: 420px;
  }

  .map-stub {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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