/* ── Reset & Variables ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f8f7f5;
  --surface: #f1f0ee;
  --primary: #1a2e5a;
  --red: #d62d2d;
  --text: #1c1c1c;
  --text-sec: #5a5a5a;
  --gold: #e8a020;
  --border: #e2e0dc;
  --cmyk-strip-h: 4px;
  --header-bar-h: 72px;
}

html {
  scroll-behavior: auto;
  /* Lenis manages scrolling */
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  overflow-x: clip;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', sans-serif;
}

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

/* ── CMYK Strip ────────────────────────────────────────────────────────────── */
.cmyk-strip {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 1002;
  height: var(--cmyk-strip-h);
  display: flex;
  transform-origin: left center;
}

.cmyk-strip span {
  flex: 1;
}

.cmyk-strip span:nth-child(1) {
  background: #00B8D4;
}

.cmyk-strip span:nth-child(2) {
  background: #FF0090;
}

.cmyk-strip span:nth-child(3) {
  background: #FFE500;
}

.cmyk-strip span:nth-child(4) {
  background: #1c1c1c;
}

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Page loader ───────────────────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0d1b3e;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#page-loader img {
  height: 56px;
  width: auto;
  animation: loaderPulse 1s ease-in-out infinite alternate;
}

@keyframes loaderPulse {
  from {
    opacity: .5;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* ── Tweaks panel ──────────────────────────────────────────────────────────── */
#tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  width: 260px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: none;
  flex-direction: column;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

#tweaks-panel.visible {
  display: flex;
}

#tweaks-panel h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
}

.tweak-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tweak-row label {
  font-weight: 500;
  color: var(--text-sec);
}

.tweak-row select,
.tweak-row input[type=range] {
  width: 100%;
}

.tweak-row select {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--red);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(214, 45, 45, .35);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: #b82424;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(214, 45, 45, .45);
}

.btn-primary--lg {
  padding: 16px 36px;
  font-size: 14px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .1);
  border: 2px solid rgba(255, 255, 255, .28);
  color: white;
  padding: 16px 32px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .07em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .6);
}

/* ── Section commons ───────────────────────────────────────────────────────── */
.section-intro {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: block;
  font-size: 12px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  overflow: hidden;
}

.section-label--gold {
  color: rgba(232, 160, 32, .8);
}

.section-heading {
  font-weight: 900;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--primary);
  margin-top: 8px;
  letter-spacing: -.01em;
  overflow: hidden;
}

.section-desc {
  font-size: 17px;
  color: var(--text-sec);
  max-width: 480px;
  margin: 12px auto 0;
  line-height: 1.6;
}

.text-red {
  color: var(--red);
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: calc(var(--cmyk-strip-h) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 1000;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  background: rgba(248, 247, 245, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
  background: rgba(248, 247, 245, .97);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(26, 46, 90, .07);
}

.header-inner {
  height: var(--header-bar-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--surface);
  color: var(--primary);
}

.nav-callback-link {
  display: none;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.header-phone svg {
  color: var(--red);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: background .18s ease;
}

.nav-toggle:hover {
  background: var(--surface);
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease, translate .25s ease;
}

.site-header.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-inner {
  position: relative;
  z-index: 1003;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(26, 46, 90, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}

.site-header.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: var(--bg);
  padding-top: calc(var(--cmyk-strip-h) + var(--header-bar-h) + env(safe-area-inset-top, 0px));
  position: relative;
  overflow: clip;
}

.hero-blob {
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 560px;
  height: 560px;
  pointer-events: none;
  background: radial-gradient(circle,
      rgba(0, 184, 212, .07) 0%, rgba(255, 0, 144, .04) 40%, transparent 70%);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 55%) minmax(0, 45%);
  min-height: calc(100vh - 76px);
  max-width: 1320px;
  margin: 0 auto;
}

/* Left photo panel */
.hero-photo {
  position: relative;
  overflow: visible;
  background: transparent;
  display: flex;
  align-items: center;
  align-self: center;
}

.hero-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo--empty .hero-photo__img {
  display: none;
}

.hero-photo--empty::after {
  content: '📷  фото продукції\A\Aзамінити src на hero-photo.webp';
  white-space: pre;
  text-align: center;
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.8;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px 48px;
  margin: 24px;
}

/* Right content panel */
.hero-content {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Badge — light variant */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 46, 90, .07);
  border: 1px solid rgba(26, 46, 90, .18);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  opacity: 0;
  align-self: flex-start;
}

.hero-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* Title — dark on light */
.hero-title {
  font-size: clamp(34px, 4.2vw, 66px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -.03em;
  perspective: 800px;
  opacity: 0;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-sec);
  max-width: 440px;
  line-height: 1.65;
  margin-bottom: 40px;
  opacity: 0;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
}

/* Dark outline button (for light bg) */
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: white;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  opacity: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-sec);
  margin-top: 4px;
  font-weight: 500;
}

/* Десктоп: герой у межах одного viewport (після базових правил — перебиває min-height фото тощо) */
@media (min-width: 901px) {
  .hero-section {
    display: flex;
    flex-direction: column;
    min-height: unset;
    /* CMYK-смужка є position:fixed — не займає місця в потоці.
       Hero займає весь viewport, padding-top компенсує хедер. */
    height: 100dvh;
    max-height: 100dvh;
    overflow: clip;
    box-sizing: border-box;
  }

  .hero-split {
    flex: 1 1 0;
    height: 100%;
    min-height: 0 !important;
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    padding-bottom: 24px;
  }

  .hero-photo {
    min-height: 0;
    height: 100%;
    max-height: 100%;
  }

  .hero-content {
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(28px, 3.2vh, 56px) clamp(40px, 4vw, 56px);
  }

  .hero-badge {
    margin-bottom: clamp(14px, 2vh, 28px);
  }

  .hero-title {
    font-size: clamp(30px, 3.5vw, 56px);
    margin-bottom: clamp(12px, 1.6vh, 22px);
  }

  .hero-sub {
    font-size: clamp(15px, 1.25vw, 17px);
    margin-bottom: clamp(18px, 2.2vh, 40px);
  }

  .hero-stats {
    flex-wrap: nowrap;
    margin-top: clamp(20px, 2.8vh, 48px);
    padding-top: clamp(16px, 2vh, 32px);
    gap: clamp(10px, 1.5vw, 24px);
  }

  .hero-stats .stat-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .hero-stats .stat-value {
    font-size: clamp(22px, 2.4vw, 30px);
  }

  .hero-stats .stat-label {
    font-size: 11px;
    line-height: 1.35;
  }
}

/* Mobile hero */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-photo {
    min-height: 300px;
  }

  .hero-content {
    padding: 40px 24px;
    overflow: hidden;
  }

  .hero-title {
    font-size: clamp(28px, 7vw, 48px);
  }

  /* Статистика на всю ширину колонки героя + сітка як таблиця */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: calc(100% + 48px);
    max-width: none;
    margin-left: -24px;
    margin-right: -24px;
    margin-top: 40px;
    padding-top: 0;
    padding-bottom: 0;
    border-top: none;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.75);
  }

  .hero-stats .stat-item {
    padding: 18px 16px 20px;
    box-sizing: border-box;
  }

  .hero-stats .stat-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .hero-stats .stat-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .hero-stats .stat-value {
    font-size: clamp(26px, 8vw, 32px);
  }

  .hero-stats .stat-label {
    font-size: 11px;
    line-height: 1.35;
    margin-top: 6px;
  }
}

/* ── Services ──────────────────────────────────────────────────────────────── */
.services-section {
  background: var(--surface);
  padding: 96px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 46, 90, .06);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  opacity: 0;
  transform: translateY(50px);
  will-change: transform;
  overflow: hidden;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--card-color) 25%, transparent);
  box-shadow: 0 20px 48px rgba(26, 46, 90, .14);
  transform: translateY(-6px) !important;
}

/* Wide card (7th — spans all 3 columns) */
.service-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-width: 0;
  padding: 24px 28px 28px;
}

.service-card--wide .service-card__body {
  padding: 32px 40px;
}

.service-card__icon {
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--card-color) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-color);
  overflow: hidden;
}

.service-card--wide .service-card__icon {
  width: 20%;
  height: auto;
}

.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card__title {
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  line-height: 1.2;
}

.service-card__sub {
  font-size: 13px;
  color: var(--card-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.service-card__desc {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
  flex: 1;
}

.service-card__products {
  font-size: 12px;
  color: #8a8a8a;
  line-height: 1.5;
}

.service-card__link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--card-color);
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
  align-self: flex-start;
  cursor: pointer;
  transition: color .18s ease, opacity .18s ease;
}

.service-card__link:hover {
  opacity: 0.88;
}

.service-card__link:focus-visible {
  outline: 2px solid var(--card-color);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Why Us ────────────────────────────────────────────────────────────────── */
.why-section {
  background: var(--bg);
  padding: 96px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.why-card {
  background: white;
  border-radius: 16px;
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(26, 46, 90, .05);
  opacity: 0;
  transform: translateY(40px);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  will-change: transform;
}

.why-card:hover {
  border-color: color-mix(in srgb, var(--card-color) 28%, transparent);
  box-shadow: 0 20px 48px rgba(26, 46, 90, .12);
  transform: translateY(-6px) !important;
}

.why-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-color) 14%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-color);
  margin-bottom: 20px;
  transition: background .22s ease, transform .22s ease;
}

.why-card:hover .why-card__icon {
  background: color-mix(in srgb, var(--card-color) 24%, transparent);
  transform: scale(1.06);
}

.why-card__title {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
}

.why-card__desc {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.7;
}

/* ── Clients ───────────────────────────────────────────────────────────────── */
.clients-section {
  background: var(--primary);
  padding: 72px 0;
  overflow: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

.clients-intro {
  margin-bottom: 40px;
  text-align: center;
}

.clients-heading {
  font-weight: 900;
  font-size: clamp(24px, 3vw, 38px);
  color: white;
  margin-top: 8px;
  overflow: hidden;
}

.clients-marquee-hint {
  display: none;
  margin: 10px auto 0;
  max-width: 320px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marquee-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  /* hidden замість clip — інакше в частині браузерів transform-анімація marquee не малюється */
  overflow: hidden;
}

.marquee-track {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 22s linear infinite;
  will-change: transform;
}

.marquee-set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 14px 28px;
  margin: 0 8px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
}

/* Телефони та вузькі планшети: ручний скрол замість повільної анімації */
@media (max-width: 900px) {
  .clients-section {
    padding: 56px 0 64px;
    overflow-x: hidden;
  }

  .clients-intro {
    margin-bottom: 12px;
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  .clients-marquee-hint {
    display: block;
  }

  .marquee-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-behavior: auto;
    touch-action: pan-x;
    padding: 0 max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
    /* Нативний скролбар ховаємо: при JS-зацикленні scrollLeft стрибає назад і повзунок «ніколи не доходить» до кінця */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .marquee-wrap::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .marquee-track {
    animation: none;
    gap: 0;
  }

  /* Одна лінія клієнтів — скрол закінчується, без «безкінечного» JS-лупу */
  .marquee-set--dup {
    display: none !important;
  }

  .marquee-item {
    padding: 12px 18px;
    margin: 0 6px;
    font-size: 13px;
  }
}

/* Десктоп: явно вмикаємо marquee (перебиває випадковий cascade) */
@media (min-width: 901px) {
  .marquee-track {
    animation: marquee 22s linear infinite;
  }

  .marquee-wrap {
    overflow: hidden;
  }
}

/* ── CTA ───────────────────────────────────────────────────────────────────── */
.cta-section {
  background: #0d1b3e;
  padding: 96px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(214, 45, 45, .12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.cta-badge {
  display: inline-block;
  background: rgba(232, 160, 32, .15);
  border: 1px solid rgba(232, 160, 32, .3);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: 0;
}

.cta-heading {
  font-weight: 900;
  font-size: clamp(28px, 4vw, 52px);
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.01em;
  overflow: hidden;
}

.cta-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0;
}

.cta-btn {
  opacity: 0;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #0a1428;
  padding: 64px 0 0;
  color: rgba(255, 255, 255, .7);
  opacity: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}

.footer-logo-wrap {
  background: white;
  border-radius: 10px;
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 8px;
}

.footer-logo {
  height: 44px;
  width: auto;
  display: block;
}

.footer-since {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 24px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  transition: color .15s ease;
}

.footer-contact-item:hover {
  color: white;
}

.footer-contact-item svg {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-nav__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: white;
  margin-bottom: 18px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
  transition: color .15s ease;
}

.footer-nav a:hover {
  color: rgba(255, 255, 255, .9);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-inner span {
  font-size: 13px;
  color: rgba(255, 255, 255, .35);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease;
}

.footer-social:hover {
  background: var(--red);
  color: white;
}

/* ── SplitType char helpers ────────────────────────────────────────────────── */
.char {
  display: inline-block;
  transform-origin: 50% 100%;
}

.word {
  display: inline-block;
  overflow: hidden;
}

.line {
  display: block;
  overflow: hidden;
}

/* ── Що ми друкуємо ────────────────────────────────────────────────────────── */
.products-section {
  background: white;
  padding: 96px 0;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.product-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.chip {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: default;
  transition: transform .22s ease, box-shadow .22s ease;
}

.chip:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .11);
}

.chip__img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.chip__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.chip:hover .chip__img-wrap img {
  transform: scale(1.07);
}

.chip__body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chip__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.chip small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-sec);
}

.chip.hidden {
  display: none;
}

/* ── Як ми працюємо ────────────────────────────────────────────────────────── */
.process-section {
  background: var(--surface);
  padding: 96px 0;
}

.process-timeline {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
  align-items: start;
  gap: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  min-width: 0;
  opacity: 0;
  transform: translateY(32px);
}

.process-step__num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--red);
  margin-bottom: 16px;
  transition: color .22s ease, letter-spacing .22s ease;
}

.process-step__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(26, 46, 90, .08);
  transition:
    transform .28s cubic-bezier(0.34, 1.3, 0.64, 1),
    background .22s ease,
    border-color .22s ease,
    box-shadow .28s ease,
    color .2s ease;
}

.process-step__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 10px;
  transition: color .2s ease;
}

.process-step__desc {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 14px;
  transition: color .2s ease;
}

.process-step__time {
  display: inline-block;
  background: rgba(26, 46, 90, .07);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  transition: background .22s ease, color .2s ease, transform .22s ease;
}

/* Connector arrow */
.process-connector {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 44px;
  color: var(--border);
  cursor: default;
}

.process-connector::after {
  content: '→';
  font-size: 22px;
  color: var(--border);
  display: inline-block;
  transition: color .22s ease, transform .28s cubic-bezier(0.34, 1.3, 0.64, 1);
}

@media (hover: hover) and (pointer: fine) {
  .process-step:hover .process-step__icon {
    transform: scale(1.08);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 10px 32px rgba(26, 46, 90, 0.22);
    color: #fff;
  }

  .process-step:hover .process-step__num {
    color: var(--primary);
    letter-spacing: 0.14em;
  }

  .process-step:hover .process-step__title {
    color: var(--primary);
  }

  .process-step:hover .process-step__desc {
    color: var(--text);
  }

  .process-step:hover .process-step__time {
    background: rgba(26, 46, 90, 0.11);
    transform: translateY(-1px);
  }

  .process-connector:hover::after {
    color: var(--primary);
    transform: translateX(4px);
  }
}

@media (max-width: 900px) {
  .process-section {
    padding: 56px 0 64px;
  }

  .process-section .section-intro {
    margin-bottom: 32px;
  }

  .process-section .section-desc {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2px;
    font-size: 15px;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 100%;
  }

  /* між кроками стрілка не потрібна — картки йдуть списком */
  .process-connector {
    display: none;
  }

  .process-step {
    align-items: flex-start;
    text-align: left;
    padding: 18px 16px 20px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(26, 46, 90, 0.06);
    transition: border-color 0.22s ease, box-shadow 0.28s ease;
  }

  .process-timeline>.process-step:last-child {
    margin-bottom: 0;
  }

  .process-step__num {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .process-step__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
  }

  .process-step__icon svg {
    width: 24px;
    height: 24px;
  }

  .process-step__title {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .process-step__desc {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 12px;
    max-width: none;
  }

  .process-step__time {
    font-size: 11px;
    padding: 5px 12px;
  }
}

@media (max-width: 900px) and (hover: hover) and (pointer: fine) {
  .process-section .process-step:hover {
    border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
    box-shadow: 0 10px 28px rgba(26, 46, 90, 0.1);
  }
}

/* ── Портфоліо ─────────────────────────────────────────────────────────────── */
.portfolio-section {
  background: white;
  padding: 96px 0;
}

.portfolio-bento {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
}

.portfolio-item {
  opacity: 0;
  transform: translateY(40px);
}

/* Розміри клітинок Bento (за індексом 1-11) */
.portfolio-bento .portfolio-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-bento .portfolio-item:nth-child(8) {
  grid-column: span 2;
  grid-row: span 1;
}

.portfolio-bento .portfolio-item:nth-child(9) {
  grid-column: span 2;
  grid-row: span 1;
}

.portfolio-item__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  height: 100%;
  background: var(--surface);
  cursor: pointer;
}

.portfolio-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-item__img-wrap:hover img {
  transform: scale(1.08);
}

/* Empty placeholder */
.portfolio-item__img-wrap--empty::after {
  content: '📷 фото';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-sec);
  border: 2px dashed var(--border);
  border-radius: 12px;
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(13, 27, 62, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

@supports (backdrop-filter: blur(2px)) {
  .portfolio-item__overlay {
    backdrop-filter: blur(2px);
  }
}

.portfolio-item__img-wrap:hover .portfolio-item__overlay {
  opacity: 1;
}

.portfolio-item__zoom {
  background: white;
  color: var(--primary);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(16px) scale(0.9);
  opacity: 0;
  transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity .3s ease;
}

.portfolio-item__img-wrap:hover .portfolio-item__zoom {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (max-width: 900px) {
  .portfolio-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 12px;
  }

  .portfolio-bento .portfolio-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .portfolio-bento .portfolio-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .portfolio-bento .portfolio-item:nth-child(8) {
    grid-column: span 2;
  }

  .portfolio-bento .portfolio-item:nth-child(9) {
    grid-column: span 2;
  }
}

@media (max-width: 550px) {
  .portfolio-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .portfolio-bento .portfolio-item:nth-child(n) {
    grid-column: 1 / -1;
    grid-row: span 1;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 20, 40, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img-wrap {
  max-width: 90vw;
  max-height: 82vh;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.lightbox__caption {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  white-space: nowrap;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, .12);
  border: none;
  color: white;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .18s ease;
}

.lightbox__close:hover {
  background: var(--red);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .12);
  border: none;
  color: white;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease;
}

.lightbox__prev {
  left: 20px;
}

.lightbox__next {
  right: 20px;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--primary);
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Відгуки ───────────────────────────────────────────────────────────────── */
.testimonials-section {
  background: var(--surface);
  padding: 96px 0;
}

.testimonials-slider {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  min-height: 240px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
}

.testimonial-slide.active {
  opacity: 1;
  pointer-events: all;
  position: relative;
  transform: translateX(0);
}

.testimonial-quote {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 80px;
  color: var(--primary);
  line-height: .7;
  opacity: .18;
}

.testimonial-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-sec);
  margin-top: 2px;
}

/* Controls */
.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.testimonials-prev,
.testimonials-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.testimonials-prev:hover,
.testimonials-next:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.testimonials-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.4);
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq-section {
  background: white;
  padding: 96px 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  text-align: left;
  gap: 16px;
  transition: color .18s ease;
}

.faq-q:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  position: relative;
  transition: border-color .18s ease, transform .3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 10px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 10px;
  transition: transform .3s ease;
}

.faq-item.open .faq-icon {
  border-color: var(--primary);
  transform: rotate(45deg);
}

.faq-a {
  overflow: hidden;
}

.faq-a p {
  padding-bottom: 22px;
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.7;
}

/* ── Контакти ──────────────────────────────────────────────────────────────── */
.contacts-section {
  background: var(--surface);
  padding: 96px 0;
  scroll-margin-top: calc(var(--cmyk-strip-h) + var(--header-bar-h) + 16px);
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: stretch;
}

/* Form */
.contacts-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-margin-top: calc(var(--cmyk-strip-h) + var(--header-bar-h) + 16px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
}

.form-required {
  color: var(--red);
  margin-left: 2px;
}

.form-input {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: white;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 46, 90, .1);
}

.form-input::placeholder {
  color: #aaa;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a5a5a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  align-self: flex-start;
  margin-top: 4px;
}

.form-success {
  padding: 14px 18px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 600;
}

/* Info block */
.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

.contacts-info-block {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(26, 46, 90, .05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contacts-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(26, 46, 90, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contacts-info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-sec);
  margin-bottom: 3px;
}

.contacts-info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color .15s ease;
}

a.contacts-info-value:hover {
  color: var(--primary);
}

.contacts-phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Map placeholder */
.map-placeholder {
  background: #e8e6e2;
  border-radius: 12px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-sec);
  font-size: 14px;
  font-weight: 500;
  border: 2px dashed var(--border);
  padding: 24px;
  text-align: center;
}

.map-placeholder small {
  font-size: 11px;
  color: #aaa;
  font-weight: 400;
}

@media (max-width: 900px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .header-inner {
    gap: 20px;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    gap: 10px;
  }

  .nav-links {
    flex: unset;
    gap: 0;
  }

  .nav-links a {
    padding: 8px 7px;
    font-size: 12px;
  }

  .header-right {
    gap: 8px;
    margin-left: 0;
  }

  .header-phone__num {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-bar-h: 58px;
  }

  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .header-inner {
    gap: 12px;
    align-items: center;
  }

  .logo-img {
    height: 40px;
  }

  .nav-toggle {
    display: flex;
  }

  .header-right {
    gap: 8px;
    margin-left: auto;
  }

  .header-right .btn-primary {
    padding: 9px 14px;
    font-size: 11px;
    letter-spacing: .04em;
  }

  .nav-links {
    position: absolute;
    z-index: 1002;
    left: 0;
    right: 0;
    bottom: auto;
    top: 100%;
    height: auto;
    max-height: calc(100dvh - var(--cmyk-strip-h) - var(--header-bar-h) - env(safe-area-inset-top, 0px));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    flex: unset;
    padding: 8px 0 12px 0;
    margin: 0;
    background: rgba(248, 247, 245, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 12px 40px rgba(26, 46, 90, 0.12);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity .28s ease,
      visibility .28s ease,
      transform .28s ease;
  }

  .nav-links a {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-callback-link {
    display: block;
    color: var(--red) !important;
    font-weight: 700 !important;
  }

  .site-header.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card--wide {
    flex-direction: column;
    align-items: stretch;
  }

  .service-card--wide .service-card__icon {
    width: 100%;
    height: 200px;
  }

  .service-card--wide .service-card__body {
    padding: 24px 28px 28px;
  }

  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 52px);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .header-phone__num {
    display: none;
  }

  .header-phone {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .header-right .btn-primary {
    font-size: 10px;
    padding: 8px 10px;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

/* ── Promo Block (Hero left panel) ─────────────────────────────────────────── */
.promo-block {
  background: linear-gradient(145deg, #1a2e5a 0%, #0d1b3e 100%);
  border-radius: 20px;
  margin: 24px 24px 24px 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: white;
  position: relative;
  overflow: hidden;
  width: calc(100% - 48px);
  height: fit-content;
  align-self: center;
  justify-content: flex-start;
}

.promo-block::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(214,45,45,.3) 0%, transparent 70%);
  pointer-events: none;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  align-self: flex-start;
}

.promo-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  color: white;
  text-align: center;
}

.promo-product-img {
  width: 100%;
  border-radius: 10px;
}

.promo-product-img img {
  width: 100%;
  max-height: 45vh;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.promo-price-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.promo-old-price {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-decoration: line-through;
}

.promo-new-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #ffdd57;
}

.promo-gift {
  display: inline-block;
  align-self: center;
  background: rgba(255,221,87,.15);
  border: 1px solid rgba(255,221,87,.5);
  color: #ffdd57;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.promo-desc {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  text-align: center;
}

/* Countdown */
.promo-countdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.promo-countdown__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6);
}

.promo-countdown__timer {
  display: flex;
  align-items: center;
  gap: 4px;
}

.promo-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 52px;
}

.promo-countdown__unit span {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: white;
  font-variant-numeric: tabular-nums;
}

.promo-countdown__unit small {
  font-size: 10px;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.promo-countdown__sep {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  padding-bottom: 10px;
}

.promo-order-btn {
  align-self: center;
  margin-top: 4px;
}

.promo-slide-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.promo-slide-from-right {
  transform: translateX(110%);
  opacity: 0;
  transition: none;
}
.promo-slide-from-left {
  transform: translateX(-110%);
  opacity: 0;
  transition: none;
}
.promo-slide-enter {
  transform: translateX(0);
  opacity: 1;
  transition: transform .48s cubic-bezier(.25,.46,.45,.94), opacity .4s ease;
}
.promo-slide-out-left {
  transform: translateX(-110%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.55,.06,.68,.19), opacity .38s ease;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
}
.promo-slide-out-right {
  transform: translateX(110%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.55,.06,.68,.19), opacity .38s ease;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
}

/* ── Form tabs ──────────────────────────────────────────────────────────────── */
.form-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  align-self: flex-start;
  width: fit-content;
}

.form-tab {
  padding: 11px 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  background: white;
  border: none;
  cursor: pointer;
  color: var(--text-sec);
  transition: background .18s ease, color .18s ease;
}

.form-tab + .form-tab {
  border-left: 1.5px solid var(--border);
}

.form-tab.active {
  background: var(--primary);
  color: white;
}

/* ── Messengers row ─────────────────────────────────────────────────────────── */
.contacts-messengers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 120px;
  height: 36px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: opacity .18s ease, transform .18s ease;
  color: white;
  text-decoration: none;
  flex-shrink: 0;
}

.messenger-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.messenger-btn:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.messenger-btn--viber    { background: #7360f2; }
.messenger-btn--telegram { background: #229ed9; }
.messenger-btn--whatsapp { background: #25d366; }

/* ── Form extras ────────────────────────────────────────────────────────────── */
.form-hint {
  font-size: 12px;
  color: var(--primary);
  background: rgba(26,46,90,.06);
  border-radius: 6px;
  padding: 8px 12px;
  line-height: 1.5;
  display: none;
}

.form-hint:not(:empty) {
  display: block;
}

.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.form-radio input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Callback Modal ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(10, 20, 40, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: white;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(10,20,40,.3);
  transform: translateY(20px) scale(.97);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--surface);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-sec);
  transition: background .18s ease, color .18s ease;
}

.modal-close:hover {
  background: var(--red);
  color: white;
}

.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 24px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .promo-countdown__unit {
    min-width: 42px;
    padding: 6px 8px;
  }

  .promo-countdown__unit span {
    font-size: 18px;
  }

  .form-tabs {
    width: 100%;
  }

  .form-tab {
    flex: 1;
    text-align: center;
    padding: 11px 12px;
    font-size: 12px;
  }

  .modal-box {
    padding: 28px 20px;
  }
}