:root {
  --canvas: #ffffff;
  --ink: #000000;
  --paper: #f6f6f6;
  --line: #000000;
  --wrap: 1200px;
  --nav: 76px;
  --radius: 24px;
  --pill: 999px;
  --t: 200ms;
  --gutter: 24px;
  --font: Manrope, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 200;
  background: var(--ink);
  color: var(--canvas);
  padding: 8px 16px;
  border-radius: var(--pill);
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

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

/* Type */
.display {
  font-size: clamp(32px, 4.2vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
h1, h2, h3 { font-weight: 400; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.1; margin: 0; }
h3 { font-size: 20px; font-weight: 500; margin: 0 0 8px; }
.muted { opacity: 0.8; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 30px;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.btn:hover { background: var(--canvas); color: var(--ink); }
.btn--ghost {
  background: var(--canvas);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--canvas); }
.btn--ghost.is-on { background: var(--ink); color: var(--canvas); }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--canvas);
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--ink); color: var(--canvas); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  padding: 6px 14px 6px 6px;
  font-size: 14px;
}
.chip__n {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  padding: 0 8px;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav);
  background: var(--canvas);
  display: flex;
  align-items: center;
  overflow-x: clip;
}
.header__bar {
  width: min(calc(var(--wrap) + 80px), calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 500;
}
.logo img { height: 28px; width: auto; }
.nav {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}
.nav a { text-decoration: none; transition: opacity var(--t); }
.nav a:hover { opacity: 0.55; }
.nav a[aria-current="page"] { font-weight: 600; }
.header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
}
.header__contacts a { text-decoration: none; }
.header__socials { display: flex; gap: 8px; }
#menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  background: var(--canvas);
  cursor: pointer;
}
#menu {
  position: fixed;
  inset: var(--nav) 0 0;
  z-index: 49;
  background: var(--canvas);
  padding: 24px;
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms;
}
#menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
#menu .nav {
  flex-direction: column;
  font-size: 22px;
  gap: 16px;
  margin-bottom: 24px;
}

/* Hero slider */
.hero--slide {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--canvas);
}
.hero__slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  min-height: 100vh;
  align-items: center;
  padding: calc(var(--nav) + 40px) 0 80px;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 560ms ease, transform 560ms ease, visibility 560ms;
}
.hero__slide.is-on {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.hero__copy { padding-left: max(24px, calc((100% - var(--wrap)) / 2)); max-width: 640px; }
.hero__media {
  min-height: 60vh;
  display: grid;
  place-items: center;
}
.hero__media img {
  max-height: 72vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.hero__lead { margin: 0 0 28px; max-width: 36em; }
.hero__lead a { text-underline-offset: 3px; }
.hero__ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.hero__ctrl:hover { background: var(--ink); color: var(--canvas); }
.hero__ctrl--prev { left: 12px; }
.hero__ctrl--next { right: 12px; }
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background var(--t), transform var(--t);
}
.hero__dots button.is-on { background: var(--ink); transform: scale(1.25); }

/* Sections */
.section { padding: 80px 0; }
.section--tight { padding: 40px 0; }
#partners.section--tight { padding: 56px 0; }
#lead.lead-intro { padding: 72px 0; }
.section__head { margin-bottom: 28px; }

.shot {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 360ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .shot:hover img { transform: scale(1.03); }
}

.marquee {
  overflow: hidden;
  border-block: 1px solid transparent;
}
.marquee__track {
  display: flex;
  gap: 48px;
  align-items: center;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img, .marquee svg { height: 36px; width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

.why {
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  gap: 32px;
  align-items: start;
}
.why__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--paper) url("../assets/images/why-shop.png") center / cover;
}
.why__card {
  border: 1px solid var(--ink);
  border-radius: 16px;
  padding: 16px;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  min-height: 110px;
  transition: background var(--t), color var(--t);
}
@media (min-width: 64em) {
  .why__card { min-height: 300px; }
  .why__pill { min-height: 96px; }
  .why--list .why__pill { min-height: 180px; padding: 24px 28px; }
  #why.section { padding: 100px 0; }
  #process.section { padding: 100px 0; }
  #gallery.section { padding: 32px 0; }
}
.why__card:hover {
  background: var(--ink);
  color: var(--canvas);
}
.why__pills { display: grid; gap: 10px; }
.why__pill {
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  padding: 12px 16px;
  transition: background var(--t), color var(--t);
}
.why__pill:hover {
  background: var(--ink);
  color: var(--canvas);
}

.svc {
  position: relative;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  min-height: 360px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (min-width: 64em) {
  .svc { min-height: 720px; }
}
.svc__plus {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--canvas);
  cursor: pointer;
  transition: transform 280ms ease;
}
.svc.is-open .svc__plus { transform: rotate(45deg); }
.svc__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 22px;
  align-self: flex-start;
}
.svc__more {
  font-size: 15px;
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 320ms ease, opacity 240ms ease, margin 240ms ease;
}
.svc.is-open .svc__more {
  max-height: 8em;
  margin-top: 16px;
  opacity: 1;
}
.svc .btn { align-self: center; margin-top: 16px; }

.callback {
  background: var(--ink);
  color: var(--canvas);
  border-radius: 40px;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}
.callback label { display: grid; gap: 6px; font-size: 13px; }
.callback input {
  border: 0;
  border-bottom: 1px solid var(--canvas);
  background: transparent;
  color: var(--canvas);
  padding: 8px 0;
}
.callback .btn { background: var(--canvas); color: var(--ink); }
.callback .btn:hover { background: transparent; color: var(--canvas); border-color: var(--canvas); }
.callback__note { grid-column: 1 / -1; font-size: 12px; opacity: 0.75; }
.callback__note a { color: inherit; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.case {
  text-decoration: none;
  background: var(--paper);
  border-radius: 28px;
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
  overflow: hidden;
  transition: transform 280ms ease;
}
.case[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .case:hover { transform: translateY(-2px); }
  .case:hover img { transform: scale(1.04); }
}
.case img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  transition: transform 360ms ease;
}
.case__cat { font-size: 12px; }

.steps {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.steps__list { display: grid; gap: 16px; }
.steps__row {
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  padding: 28px 32px;
  min-height: 124px;
  display: grid;
  grid-template-columns: 36px 160px 1fr;
  gap: 12px;
  align-items: center;
}

.form {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin-inline: auto;
}
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  padding: 14px 20px;
  background: var(--canvas);
}
.form textarea { border-radius: 24px; min-height: 88px; resize: vertical; }
.form__consent { font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.form .btn { justify-self: center; }

.hero--benefits,
.hero--cover {
  min-height: min(100vh, 1080px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: calc(var(--nav) + 48px) 0 80px;
}
.hero--cover { min-height: 100vh; }
.hero--benefits .hero__copy,
.hero--cover .hero__copy { padding-left: max(24px, calc((100% - var(--wrap)) / 2)); }
.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 28px;
  max-width: 520px;
}
.benefit {
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  padding: 10px 16px;
}
.benefit strong { display: block; font-size: 14px; font-weight: 600; }
.benefit span { font-size: 13px; }

.why--list {
  grid-template-columns: 1fr 1fr;
}
.why--list .why__pills { grid-template-columns: 1fr 1fr; }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  min-height: 200px;
}

.equip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.equip--2 { grid-template-columns: 1fr 1fr; }
.equip article {
  display: grid;
  gap: 12px;
}
.equip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--paper);
  border-radius: 16px;
}

.acc { display: grid; gap: 8px; }
.acc details {
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  padding: 4px 8px;
}
.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 20px;
  font-weight: 500;
}
.acc summary::-webkit-details-marker { display: none; }
.acc__panel {
  padding: 0 20px;
  max-width: 52em;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 320ms ease, opacity 240ms ease, padding 240ms ease;
}
.acc details[open] .acc__panel {
  max-height: 40em;
  opacity: 1;
  padding: 0 20px 20px;
}

.handback {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 32px;
  align-items: center;
}
.handback img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.header--mini { height: 64px; }
.header--mini .header__bar { gap: 16px; }

.story { padding: calc(var(--nav) + 48px) 0 80px; max-width: 720px; }
.story__cat {
  display: inline-flex;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  padding: 4px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}
.story img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--paper);
  border-radius: 24px;
  margin: 28px 0;
}
.story h2 { font-size: 28px; margin: 32px 0 12px; }
.story ul { padding-left: 1.2em; }
.story__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0;
}
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related a { text-decoration: none; }
.related img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--paper);
  border-radius: 16px;
}

.prose {
  max-width: 720px;
  padding: calc(var(--nav) + 48px) 0 40px;
}
.prose h1 { font-size: clamp(28px, 4vw, 48px); margin: 0 0 24px; }
.prose h2 { font-size: 22px; margin: 28px 0 12px; }
.prose p, .prose li { margin: 0 0 12px; }
.prose ol { padding-left: 1.2em; }

@media (max-width: 63.99em) {
  .hero--benefits,
  .hero--cover { grid-template-columns: 1fr; min-height: auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .equip,
  .equip--2,
  .related,
  .why--list,
  .why--list .why__pills,
  .handback { grid-template-columns: 1fr; }
}

.footer {
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}
.footer__phone { font-size: clamp(28px, 4vw, 42px); text-decoration: none; display: block; margin: 16px 0 8px; }
.footer__mark img { width: min(280px, 32vw); height: auto; }
.footer__fine { font-size: 12px; margin-top: 20px; opacity: 0.7; }
.footer__socials { display: flex; gap: 8px; margin-top: 16px; }

.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--pill);
  padding: 10px 14px 10px 16px;
  text-decoration: none;
  font-size: 13px;
}

dialog {
  border: 0;
  border-radius: 24px;
  padding: 28px;
  width: min(420px, 92vw);
}
dialog[open] { animation: dialog-in 200ms ease; }
dialog::backdrop { background: rgb(0 0 0 / 0.4); }
dialog .form { max-width: none; }
@keyframes dialog-in {
  from { opacity: 0; transform: scale(0.98); }
}

.reveal { transition: opacity 320ms ease, transform 320ms ease; }
.reveal:not(.is-in) { opacity: 0; transform: translateY(8px); }

.js-motion .shot:not(.is-in),
.js-motion .why__card:not(.is-in),
.js-motion .why__pill:not(.is-in),
.js-motion .svc:not(.is-in),
.js-motion .case:not(.is-in),
.js-motion .steps__row:not(.is-in),
.js-motion .gallery img:not(.is-in),
.js-motion .equip article:not(.is-in),
.js-motion .benefit:not(.is-in),
.js-motion .handback:not(.is-in) {
  opacity: 0;
  transform: translateY(12px);
}
.js-motion .shot,
.js-motion .why__card,
.js-motion .why__pill,
.js-motion .svc,
.js-motion .case,
.js-motion .steps__row,
.js-motion .gallery img,
.js-motion .equip article,
.js-motion .benefit,
.js-motion .handback {
  transition: opacity 320ms ease, transform 320ms ease;
}
.js-motion .grid-3 > :nth-child(2),
.js-motion .why__cards > :nth-child(2),
.js-motion .why__pills > :nth-child(2),
.js-motion .benefits > :nth-child(2),
.js-motion .gallery > :nth-child(2),
.js-motion .equip > :nth-child(2),
.js-motion .steps__list > :nth-child(2) { transition-delay: 70ms; }
.js-motion .grid-3 > :nth-child(3),
.js-motion .why__cards > :nth-child(3),
.js-motion .why__pills > :nth-child(3),
.js-motion .benefits > :nth-child(3),
.js-motion .gallery > :nth-child(3),
.js-motion .equip > :nth-child(3),
.js-motion .steps__list > :nth-child(3) { transition-delay: 140ms; }
.js-motion .why__cards > :nth-child(4),
.js-motion .why__pills > :nth-child(4),
.js-motion .benefits > :nth-child(4),
.js-motion .gallery > :nth-child(4),
.js-motion .steps__list > :nth-child(4) { transition-delay: 210ms; }
.js-motion .why__cards > :nth-child(5),
.js-motion .steps__list > :nth-child(5) { transition-delay: 280ms; }
.js-motion .steps__list > :nth-child(6) { transition-delay: 350ms; }

@media (max-width: 74.99em) {
  .header__contacts, .header__socials { display: none; }
  .header__bar { gap: 16px; }
  .callback { grid-template-columns: 1.2fr 1fr 1fr; }
  .callback .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 63.99em) {
  .header .nav, .header .btn.js-call { display: none; }
  .header--mini .btn.js-call { display: inline-flex; }
  .header--mini .header__right > a:not(.btn) { display: none; }
  #menu-btn { display: inline-grid; place-items: center; margin-left: auto; }
  .header__bar { gap: 12px; width: calc(100% - 24px); }
  .logo { font-size: 20px; }
  .hero__slide { grid-template-columns: 1fr; }
  .hero__slide.is-on { min-height: auto; padding-bottom: 96px; }
  .hero__copy { padding-left: 24px; padding-right: 24px; max-width: none; }
  .hero__media { min-height: 40vh; }
  .grid-3 { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .callback { grid-template-columns: 1fr; border-radius: 28px; }
  .steps { grid-template-columns: 1fr; }
  .steps__row { grid-template-columns: 28px 1fr; }
  .steps__row span:last-child { grid-column: 1 / -1; }
  .footer { grid-template-columns: 1fr; }
  .fab span { display: none; }
}

@media (min-width: 40em) and (max-width: 63.99em) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track,
  .reveal,
  .hero__slide,
  #menu,
  .shot img,
  .case,
  .case img,
  .svc__more,
  .svc__plus,
  .acc__panel,
  dialog[open] { animation: none !important; transition: none !important; }
  .reveal:not(.is-in),
  .js-motion .shot:not(.is-in),
  .js-motion .why__card:not(.is-in),
  .js-motion .why__pill:not(.is-in),
  .js-motion .svc:not(.is-in),
  .js-motion .case:not(.is-in),
  .js-motion .steps__row:not(.is-in),
  .js-motion .gallery img:not(.is-in),
  .js-motion .equip article:not(.is-in),
  .js-motion .benefit:not(.is-in),
  .js-motion .handback:not(.is-in) {
    opacity: 1;
    transform: none;
  }
  .shot:hover img,
  .case:hover,
  .case:hover img { transform: none; }
}
