/* =============================================
   airbagservice.dnepr — Premium bilingual landing
   ============================================= */

:root {
  --ink: #1a1a1a;
  --ink-soft: #2d2d2d;
  --muted: #6b6b6b;
  --line: #f0e4e4;
  --line-strong: #e5d4d4;
  --bg: #ffffff;
  --bg-tint: #fef7f7;
  --surface: #ffffff;
  --accent: #c8102e;
  --accent-hover: #a30d25;
  --accent-soft: #fef2f2;
  --accent-deep: #7f0a1a;
  --success: #1f6b4a;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(200, 16, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(200, 16, 46, 0.1);
  --shadow-lg: 0 18px 48px rgba(200, 16, 46, 0.12);

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;

  --header-h: 68px;
  --cta-h: 68px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.75rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform 0.12s ease, box-shadow var(--ease);
}

.btn:active { transform: scale(0.98); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn__icon-telegram { width: 18px; height: 18px; }
.btn--sm { min-height: 42px; padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn--lg { min-height: 50px; padding: 0.9rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.25);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn--secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--line-strong);
}
.btn--secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--light {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.btn--light:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent-hover);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  min-width: 0;
}
.logo:hover { color: var(--accent); }
.logo__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.logo__mark img {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 50%;
  object-fit: contain;
}
.logo__text { display: flex; flex-direction: column; min-width: 0; }
.logo__name {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.logo__tag {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav { display: none; }
.nav__list { display: flex; gap: 1.5rem; }
.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.nav__link:hover,
.nav__link.is-active { color: var(--accent); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang__btn {
  min-width: 42px;
  min-height: 32px;
  padding: 0 0.65rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.lang__btn.is-active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.header__phone { display: none; }

.header__telegram,
.header__instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: var(--surface);
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}

.header__telegram {
  display: none;
}

.header__telegram svg,
.header__instagram svg {
  width: 18px;
  height: 18px;
}

.header__telegram:hover,
.header__instagram:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.burger {
  width: 42px;
  height: 42px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--ease), opacity var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.nav.is-open {
  display: block;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-md);
}
.nav.is-open .nav__list {
  flex-direction: column;
  gap: 0.25rem;
}
.nav.is-open .nav__link {
  display: block;
  padding: 0.85rem 0.25rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* Hero */
.hero {
  position: relative;
  padding: 2.75rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(200, 16, 46, 0.07), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: url("images/hero-bg.png") center 35% / cover no-repeat;
  opacity: 0.18;
}

.hero__video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.22;
}

/* Mobile: video background instead of static photo */
@media (max-width: 767px) {
  .hero__media {
    background: none;
    opacity: 1;
  }

  .hero__video {
    display: block;
  }
}

/* Soft wash on the text side — keeps headline readable over media */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.72) 32%,
    rgba(255, 255, 255, 0.28) 58%,
    transparent 78%
  );
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none !important;
  }
  .hero__media {
    background: url("images/hero-bg.png") center 35% / cover no-repeat;
    opacity: 0.18;
  }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  font-size: clamp(1.85rem, 6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1rem;
  max-width: 14ch;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.trust-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.trust-row li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.trust-row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-panel {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.hero-panel__ring {
  position: absolute;
  inset: 8% 12%;
  border: 1px solid var(--line-strong);
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.95), rgba(254,242,242,0.85));
  box-shadow: var(--shadow-lg);
}

.hero-panel__core {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--accent);
}
.hero-panel__logo {
  width: 160px;
  height: 160px;
  margin-inline: auto;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(26, 26, 26, 0.18);
}
.hero-panel__label {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-panel__stat {
  position: absolute;
  z-index: 2;
  min-width: 88px;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.hero-panel__stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.hero-panel__stat span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}
.hero-panel__stat--1 { top: 12%; left: 0; }
.hero-panel__stat--2 { bottom: 14%; right: 0; }

/* Sections */
.section { padding: var(--space-7) 0; }
.section--tint { background: var(--bg-tint); }

.section__head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section__title {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section__desc {
  color: var(--muted);
  font-size: 1.02rem;
}

/* Cards */
.cards {
  display: grid;
  gap: 1rem;
}
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
a.card:hover {
  color: inherit;
}
.card:hover {
  border-color: rgba(200, 16, 46, 0.28);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card__icon svg { width: 22px; height: 22px; }
.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.45rem;
}
.card__text {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}

.benefit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.35rem;
}
.benefit__n {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.benefit h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
}
.benefit p {
  font-size: 0.94rem;
  color: var(--muted);
}

/* Consultation CTA */
.section--cta {
  padding-block: 2.5rem;
}

.cta-consult {
  max-width: 720px;
  margin-inline: auto;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.cta-consult__lead {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.cta-consult__sub {
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.cta-consult__sub a {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.cta-consult__sub a:hover {
  color: var(--accent-hover);
}

.cta-consult__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 480px;
  margin-inline: auto;
}

.cta-consult__form input {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.cta-consult__form input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12);
}

.cta-consult__note {
  margin-top: 0.85rem;
  min-height: 1.4em;
  font-size: 0.92rem;
}

.cta-consult__note.is-success {
  color: var(--success);
  font-weight: 600;
}

.cta-consult__note.is-error {
  color: var(--accent);
  font-weight: 600;
}

@media (min-width: 640px) {
  .cta-consult__form {
    flex-direction: row;
    align-items: stretch;
    max-width: 100%;
  }
  .cta-consult__form input {
    flex: 1;
    min-width: 0;
  }
  .cta-consult__form .btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* Process */
.steps {
  display: grid;
  gap: 1rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: grid;
  gap: 0.65rem;
}
.step__num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
}
.step p {
  font-size: 0.94rem;
  color: var(--muted);
}

.remote-note {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  text-align: center;
}
.remote-note p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 42rem;
  line-height: 1.55;
}

/* FAQ */
.faq {
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: 0.65rem;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  line-height: 1.35;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform var(--ease);
}
.faq__item[open] .faq__question::after {
  transform: rotate(225deg);
  margin-top: 4px;
}
.faq__answer {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}
.faq__answer a {
  color: var(--accent);
  font-weight: 500;
}

/* Mobile: horizontal swipe rows (services, why, process) */
@media (max-width: 767px) {
  #services .cards,
  #why .cards,
  #process .steps,
  #remote .steps,
  body[data-service] .service-steps {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    padding-bottom: 0.25rem;
  }

  #services .cards::-webkit-scrollbar,
  #why .cards::-webkit-scrollbar,
  #process .steps::-webkit-scrollbar,
  #remote .steps::-webkit-scrollbar,
  body[data-service] .service-steps::-webkit-scrollbar {
    display: none;
  }

  #services .cards > *,
  #why .cards > *,
  #process .steps > *,
  #remote .steps > *,
  body[data-service] .service-steps > * {
    flex: 0 0 auto;
    width: min(82vw, 300px);
    scroll-snap-align: start;
  }

  body[data-service] .service-steps {
    max-width: none;
  }
}

/* Works gallery */
.works-filters-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.works-filters-wrap::-webkit-scrollbar {
  display: none;
}

.works-filters {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
}

.works-filter {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.works-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.works-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.works-carousel {
  position: relative;
}

.works-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--ease), border-color var(--ease), color var(--ease), opacity var(--ease);
}

.works-carousel__btn svg {
  width: 20px;
  height: 20px;
}

.works-carousel__btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.works-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.works-carousel__btn--prev {
  left: 0.35rem;
}

.works-carousel__btn--next {
  right: 0.35rem;
}

.works-grid {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 1.25rem;
  scroll-padding-inline: 1.25rem;
}

.works-grid::-webkit-scrollbar {
  display: none;
}

.works-item {
  flex: 0 0 auto;
  /* Mobile: 1 photo across screen (iPhone 15 viewport 393px) */
  width: calc(100vw - 2.5rem);
  max-width: 393px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.works-item.is-hidden {
  display: none;
}

.works-item__link {
  display: block;
  color: inherit;
  line-height: 0;
}

.works-item__link:hover {
  color: inherit;
}

.works-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--ease);
}

.works-item:hover img {
  transform: scale(1.03);
}

.works-item__placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  background: var(--bg-tint);
  color: var(--muted);
  text-align: center;
}

.works-item__placeholder svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
  opacity: 0.65;
}

.works-item__placeholder span {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.works-item img,
.works-item video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 767px) {
  .works-carousel__btn {
    display: none;
  }
}

@media (min-width: 768px) {
  .works-filters-wrap {
    overflow-x: visible;
  }

  .works-filters {
    flex-wrap: wrap;
    justify-content: center;
  }

  .works-grid {
    padding-inline: 2.75rem;
    scroll-padding-inline: 2.75rem;
    gap: 0.95rem;
  }

  .works-item {
    /* Tablet: ~2 photos visible */
    width: calc((100% - 0.95rem) / 2);
    max-width: none;
  }

  .works-carousel__btn {
    width: 44px;
    height: 44px;
    margin-top: -22px;
  }

  .works-carousel__btn--prev {
    left: 0.5rem;
  }

  .works-carousel__btn--next {
    right: 0.5rem;
  }
}

@media (min-width: 1024px) {
  #works > .container {
    max-width: 1280px;
  }

  .works-grid {
    gap: 1rem;
    padding-inline: 1.5rem;
    scroll-padding-inline: 1.5rem;
  }

  .works-item {
    /* Desktop: exactly 4 photos per row (~10% larger via wider section) */
    width: calc((100% - 3 * 1rem) / 4);
  }
}

/* Trust */
.metrics {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  text-align: center;
}
.metric strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.metric span {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.quotes {
  display: grid;
  gap: 1rem;
}
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}
.quote p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
  line-height: 1.55;
}
.quote footer {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* Contact */
.contact {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.contact__form { min-width: 0; }

.contact__info .aside__block:last-child {
  margin-bottom: 0;
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.form__row { margin-bottom: 1.1rem; }
.form__row label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.form__row input,
.form__row textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.form__row textarea { min-height: 120px; resize: vertical; }
.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12);
}
.form__note {
  margin-top: 0.9rem;
  min-height: 1.4em;
  text-align: center;
  font-size: 0.92rem;
}
.form__note.is-success { color: var(--success); font-weight: 600; }
.form__note.is-error { color: var(--accent); font-weight: 600; }

.aside__block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  margin-bottom: 0.85rem;
}
.aside__block h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.aside__list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  font-size: 0.94rem;
  color: var(--muted);
}
.aside__list li:last-child { margin-bottom: 0; }
.aside__list svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
  flex-shrink: 0;
}
.aside__list a { color: var(--ink-soft); }
.aside__list a:hover { color: var(--accent); }

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.hours div:last-child { border-bottom: none; }
.hours dt { font-weight: 600; color: var(--ink-soft); }
.hours dd { color: var(--muted); }

.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.messenger {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
}
.messenger:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Map */
.contact__maps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}
.contact__maps .map-block {
  flex: 1 1 auto;
  min-height: 200px;
}
.map-block {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.map-block--square {
  aspect-ratio: 1;
  width: 100%;
}
.map-block--half {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.map-block__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

.map-block__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: background var(--ease), color var(--ease);
}

.map-block__overlay:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent);
}

.map-block__overlay:active {
  background: rgba(255, 255, 255, 0.52);
}

.map-block__pin {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.map-block__pin svg {
  width: 18px;
  height: 18px;
}

.map-block__address {
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 14rem;
}

.map-block__hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 12rem;
  line-height: 1.35;
}

.map-block__overlay:hover .map-block__hint {
  color: var(--accent);
}

/* Footer */
.footer {
  background: var(--accent-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.75rem 0 calc(2.75rem + var(--cta-h));
}
.footer__grid {
  display: grid;
  gap: 1.5rem;
}
.footer__name {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.footer__brand p,
.footer__services {
  max-width: 42rem;
  font-size: 0.94rem;
  line-height: 1.55;
}
.footer__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
}
.footer__list li {
  position: relative;
  padding-left: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.35;
}
.footer__list a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease);
}
.footer__list a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.footer__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.footer__meta p { margin-bottom: 0.35rem; font-size: 0.94rem; }
.footer__meta a { color: rgba(255, 255, 255, 0.85); }
.footer__meta a:hover { color: #fff; }

.footer__instagram a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer__instagram svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer__copy {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
}

/* Mobile CTA */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: 0.55rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(200, 16, 46, 0.08);
}
.mobile-cta .btn { flex: 1; }

/* Header — mobile compact */
@media (max-width: 767px) {
  .header__inner {
    gap: 0.45rem;
  }

  .logo {
    flex: 1;
    min-width: 0;
  }

  .header__actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .lang {
    padding: 2px;
  }

  .lang__btn {
    min-width: 30px;
    min-height: 22px;
    padding: 0 0.35rem;
    font-size: 0.6rem;
    letter-spacing: 0.02em;
  }

  .header__telegram {
    display: inline-flex;
    width: 36px;
    height: 36px;
  }

  .header__telegram svg {
    width: 16px;
    height: 16px;
  }
}

/* Responsive */
@media (min-width: 640px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .footer__list { grid-template-columns: repeat(3, 1fr); }
  .trust-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
  }
  .trust-row li { padding-left: 1.15rem; }
}

@media (min-width: 768px) {
  .burger { display: none; }
  .nav { display: block; }
  .header__phone { display: inline-flex; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  #remote .steps { grid-template-columns: repeat(2, 1fr); }
  body[data-service] .service-steps {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 1.15rem;
  }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .contact {
    grid-template-columns: 1fr 1fr;
  }
  .contact__form {
    grid-column: 1 / -1;
  }
  .footer__grid { grid-template-columns: 1.3fr 1fr; }
  .footer__copy { grid-column: 1 / -1; }
  .mobile-cta { display: none; }
  .footer { padding-bottom: 2.75rem; }
}

@media (min-width: 1024px) {
  .container { padding-inline: 1.5rem; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  #remote .steps { grid-template-columns: repeat(4, 1fr); }
  body[data-service] .service-steps {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 1.25rem;
  }
  body[data-service] .service-steps .step {
    padding: 1.75rem 1.6rem;
  }
  .hero { padding: 4rem 0 5rem; }
  .hero__title { max-width: 13ch; }
  .contact {
    grid-template-columns: 1.15fr 0.85fr 0.85fr;
    gap: 1.15rem;
    align-items: stretch;
  }
  .contact__form {
    grid-column: auto;
  }
  .contact__map,
  .contact__maps {
    max-width: 100%;
    justify-self: end;
    height: 100%;
  }
  .contact__maps .map-block--half {
    aspect-ratio: auto;
    min-height: 0;
  }
}

/* Service pages */
body[data-service] .page-hero .container {
  text-align: center;
}
body[data-service] .breadcrumb {
  justify-content: center;
}
body[data-service] .page-hero__title {
  margin-inline: auto;
}
body[data-service] .page-hero__lead {
  margin-inline: auto;
}
body[data-service] .page-hero__cta {
  justify-content: center;
}
body[data-service] .service-badges {
  justify-content: center;
}
body[data-service] .section__head {
  text-align: center;
  margin-inline: auto;
}
body[data-service] .service-content {
  margin-inline: auto;
  text-align: center;
}
body[data-service] .service-list {
  text-align: left;
  max-width: 36rem;
  margin-inline: auto;
}
body[data-service] .service-steps {
  max-width: none;
  margin-inline: auto;
}
body[data-service] .step {
  text-align: center;
}
body[data-service] .step__num {
  margin-inline: auto;
}
body[data-service] .service-steps .step {
  padding: 1.5rem 1.4rem;
  gap: 0.75rem;
}
body[data-service] .service-steps .step__num {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}
body[data-service] .service-steps .step h3 {
  font-size: 1.12rem;
}
body[data-service] .service-steps .step p {
  font-size: 1rem;
  line-height: 1.55;
}
body[data-service] .faq {
  text-align: left;
}
body[data-service] .service-page-cta {
  text-align: center;
}
body[data-service] .service-gallery {
  max-width: 48rem;
  margin-inline: auto;
}
body[data-service] .service-related {
  max-width: 36rem;
  margin-inline: auto;
}
.page-hero {
  padding: 2.5rem 0 2.75rem;
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(200, 16, 46, 0.06), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { opacity: 0.45; }
.page-hero__title {
  font-size: clamp(1.65rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 28ch;
}
.page-hero__lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 40rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.page-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}
.service-badges span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.service-badges span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.45rem;
  vertical-align: middle;
}
.service-content {
  max-width: 720px;
}
.service-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.service-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.service-steps {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 768px) {
  body[data-service] .service-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: none;
  }
}
@media (min-width: 1024px) {
  body[data-service] .service-steps {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 1.25rem;
  }
}
.service-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.service-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.service-related {
  display: grid;
  gap: 0.75rem;
}
.service-related a {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.service-related a:hover {
  border-color: rgba(200, 16, 46, 0.28);
  box-shadow: var(--shadow-md);
  color: var(--accent);
}
.nav__link.is-active {
  color: var(--accent);
  font-weight: 600;
}
.service-page-cta {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}
.service-page-cta p {
  color: var(--muted);
  margin-bottom: 1.15rem;
  line-height: 1.55;
}
@media (min-width: 640px) {
  .service-gallery { grid-template-columns: repeat(4, 1fr); }
  .service-related { grid-template-columns: repeat(2, 1fr); }
}
