/* =========================================================
   БК ГЕФЕСТ — стилі сайту
   Кольори бренду беруться з логотипу (фіолетовий) +
   золотий акцент для кнопок.
   ========================================================= */

:root {
  --violet-950: #150f2b;
  --violet-900: #1e1640;
  --violet-800: #2a1f57;
  --violet-700: #3a2a78;
  --violet-500: #5d47b8;
  --violet-100: #ece9f7;
  --soft: #f5f4fa;

  --gold-1: #ffb93d;
  --gold-2: #ffe077;
  --gold-text: #1a1406;

  --ink: #17141f;
  --muted: #5f5a6e;
  --white: #fff;

  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(30, 22, 64, .35);
  --shadow-sm: 0 8px 24px -12px rgba(30, 22, 64, .3);

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Nunito", "Segoe UI", Arial, sans-serif;

  --header-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: 0;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--violet-500); outline-offset: 3px; }

.btn--gold {
  color: var(--gold-text);
  background: linear-gradient(to top, var(--gold-1) 0%, var(--gold-2) 50%, var(--gold-1) 100%);
  box-shadow: 0 10px 24px -10px rgba(255, 170, 30, .8), inset 0 -2px 0 rgba(0, 0, 0, .08);
}
.btn--gold:hover { filter: brightness(1.04); box-shadow: 0 14px 30px -10px rgba(255, 170, 30, .9); }

.btn--viber {
  color: var(--white);
  background: #7360f2;
  box-shadow: 0 10px 24px -12px rgba(115, 96, 242, .9);
}

.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--lg { padding: 20px 40px; font-size: 19px; }
.btn--block { width: 100%; }

/* ---------- Заголовки секцій ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section--dark {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(93, 71, 184, .45), transparent 60%),
    var(--violet-900);
  color: var(--white);
}

.h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: .01em;
  color: var(--violet-900);
}
.h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
}
.h2--left { text-align: left; }
.h2--left::after { margin-left: 0; }
.h2--light { color: var(--white); }

.section__sub {
  max-width: 640px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--muted);
}

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.header.is-scrolled {
  background: rgba(30, 22, 64, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .5);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__logo { width: 46px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .05em;
}
.brand__tag { font-size: 12px; opacity: .8; }

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .9;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, opacity .2s;
}
.nav a:hover { opacity: 1; border-color: var(--gold-1); }
.nav__phone { display: none; }

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}
.header__phone {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .03em;
}
.header__mail { font-size: 13px; opacity: .8; text-decoration: none; }
.header__mail:hover, .header__phone:hover { color: var(--gold-2); }

.header__call, .burger { display: none; }

/* ---------- Головний екран ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 170px;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 15, 43, .75) 0%, rgba(30, 22, 64, .45) 45%, rgba(21, 15, 43, .8) 100%),
    url("../img/hero.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__kicker {
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 22px;
}
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 30px;
}
.tag {
  display: inline-block;
  padding: 6px 16px 8px;
  font-size: clamp(24px, 4.2vw, 48px);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.tag--light { background: rgba(255, 255, 255, .94); color: var(--violet-950); }
.tag--dark { background: var(--violet-800); color: var(--white); }
.tag--sm {
  margin-top: 6px;
  font-size: clamp(16px, 2vw, 22px);
  background: var(--violet-950);
  border-left: 4px solid var(--gold-1);
}
.hero__lead {
  max-width: 640px;
  font-size: 18px;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

/* ---------- Переваги ---------- */
.perks { position: relative; z-index: 2; margin-top: -110px; }
.perks__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.perk {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px 26px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold-1);
}
.perk__icon {
  flex: 0 0 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--violet-700);
  background: var(--violet-100);
}
.perk__icon svg { width: 36px; height: 36px; }
.perk__title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--violet-900);
  margin-bottom: 8px;
}
.perk p { font-size: 15px; color: var(--muted); }

/* ---------- Послуги ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 54px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 10 / 7; overflow: hidden; }
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card:hover .card__img img { transform: scale(1.06); }
.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 24px 30px;
}
.card__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--violet-900);
  margin-bottom: 12px;
}
.card p { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.card .btn { margin-top: auto; }

/* ---------- Матеріали ---------- */
.brands {
  background: var(--violet-800);
  color: var(--white);
  padding: 30px 0;
}
.brands__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brands__label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 15px;
  color: var(--gold-2);
}
.brands__list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brands__list li {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .14em;
  opacity: .9;
}

/* ---------- Про компанію ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__media { position: relative; isolation: isolate; }
.about__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.about__media::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 3px solid var(--gold-1);
  border-radius: var(--radius);
  z-index: -1;
}
.about__badge {
  position: absolute;
  left: -20px;
  bottom: 28px;
  padding: 18px 22px;
  background: var(--violet-800);
  color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  line-height: 1.3;
}
.about__badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 26px;
  text-transform: uppercase;
  color: var(--gold-2);
}
.about__badge span { font-size: 14px; }

.about__text p { margin-top: 18px; color: #3b3747; }
.about__text .h2 { margin-bottom: 8px; }

.checks {
  list-style: none;
  padding: 0;
  margin: 26px 0 32px;
  display: grid;
  gap: 12px;
}
.checks li {
  position: relative;
  padding-left: 36px;
  font-weight: 600;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%231e1640' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Блок із формою ---------- */
.cta {
  position: relative;
  padding: 100px 0;
  color: var(--white);
  overflow: hidden;
}
.cta__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(21, 15, 43, .95) 0%, rgba(42, 31, 87, .85) 50%, rgba(42, 31, 87, .55) 100%),
    url("../img/cta-bg.jpg") center / cover no-repeat;
}
.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.cta__text p { margin-top: 24px; font-size: 18px; opacity: .92; max-width: 520px; }

/* ---------- Форми ---------- */
.form { display: grid; gap: 14px; }
.form--card {
  padding: 34px 32px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.form__title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--violet-900);
  line-height: 1.2;
}
.form__lead { color: var(--muted); font-size: 15px; margin-top: -4px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; font-weight: 700; color: #3b3747; }
.field input,
.field select {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--soft);
  border: 2px solid transparent;
  border-radius: 10px;
  transition: border-color .2s, background .2s;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--violet-500);
  background: var(--white);
}
.field input.is-invalid { border-color: #e0483c; background: #fff5f4; }
.form .btn { margin-top: 6px; }
.form__note { font-size: 12px; color: var(--muted); text-align: center; }
.form__status { font-size: 15px; font-weight: 700; text-align: center; min-height: 0; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #1c8a4a; }
.form__status.is-err { color: #c4362b; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ---------- Галерея ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 54px;
}
.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 16px;
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(transparent, rgba(21, 15, 43, .9));
}

/* ---------- Етапи ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 60px 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  counter-reset: none;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 10%;
  right: 10%;
  border-top: 2px dashed rgba(255, 224, 119, .45);
}
.step { position: relative; text-align: center; }
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  color: var(--gold-text);
  background: linear-gradient(to top, var(--gold-1), var(--gold-2));
  box-shadow: 0 0 0 8px var(--violet-900), 0 0 0 10px rgba(255, 224, 119, .35);
}
.step__title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 10px;
}
.step p { font-size: 15px; opacity: .8; }
.steps__cta { text-align: center; margin-top: 56px; }

/* ---------- Контакти ---------- */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: stretch;
}
.contacts__company {
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: .03em;
  color: var(--violet-700);
}
.contacts__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 30px;
  display: grid;
  gap: 18px;
}
.contacts__list li { display: flex; gap: 14px; align-items: flex-start; }
.contacts__list svg {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  color: var(--violet-700);
  background: var(--violet-100);
}
.contacts__list a { text-decoration: none; font-weight: 700; font-size: 18px; }
.contacts__list a:hover { color: var(--violet-500); }
.contacts__list small { color: var(--muted); font-size: 14px; }
.contacts__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.contacts__map {
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--soft);
}
.contacts__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Підвал ---------- */
.footer {
  background: var(--violet-950);
  color: rgba(255, 255, 255, .85);
  padding: 44px 0 26px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.brand--footer .brand__logo { width: 40px; }
.brand--footer .brand__name { font-size: 20px; color: var(--white); }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav a, .footer__contacts a { text-decoration: none; }
.footer__nav a:hover, .footer__contacts a:hover { color: var(--gold-2); }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer__contacts a:first-child { font-family: var(--font-head); font-size: 18px; color: var(--white); }
.footer__copy { padding-top: 22px; font-size: 13px; opacity: .6; }

/* ---------- Плаваючі кнопки ---------- */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab__btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: transform .2s;
}
.fab__btn:hover { transform: scale(1.08); }
.fab__btn svg { width: 28px; height: 28px; }
.fab__btn--viber { background: #7360f2; }
.fab__btn--call {
  color: var(--gold-text);
  background: linear-gradient(to top, var(--gold-1), var(--gold-2));
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 185, 61, .6); }
  70% { box-shadow: 0 0 0 16px rgba(255, 185, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 185, 61, 0); }
}

/* ---------- Модальні вікна ---------- */
.modal,
.lightbox {
  border: 0;
  padding: 0;
  max-width: calc(100vw - 32px);
}
.modal {
  width: 440px;
  padding: 40px 34px 30px;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6);
}
.modal::backdrop,
.lightbox::backdrop {
  background: rgba(15, 10, 32, .75);
  backdrop-filter: blur(4px);
}
.modal[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  font-size: 32px;
  line-height: 1;
  color: var(--muted);
}
.modal__close:hover { color: var(--ink); }
.modal__close--light { color: var(--white); z-index: 2; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.modal__close--light:hover { color: var(--gold-2); }

.lightbox {
  background: transparent;
  max-height: calc(100vh - 32px);
  overflow: visible;
}
.lightbox img {
  max-width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  border-radius: 10px;
}
.lightbox p {
  margin-top: 12px;
  text-align: center;
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ---------- Анімація появи ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1180px) {
  .header__contacts .header__mail { display: none; }
  .nav { gap: 16px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }

  .header__cta, .header__contacts { display: none; }
  .header__call {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: 50%;
    color: var(--gold-text);
    background: linear-gradient(to top, var(--gold-1), var(--gold-2));
  }
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
  }
  .burger span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
  }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 20px 24px;
    background: var(--violet-900);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, .5);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a {
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .nav a:hover { border-color: rgba(255, 255, 255, .08); color: var(--gold-2); }
  .nav__phone { display: block; color: var(--gold-2); }
  .header.menu-open { background: var(--violet-900); }

  .perks__grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 56px; }
  .about__media { max-width: 640px; }
  .cta__inner { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-left: auto; margin-right: auto; }
  .steps::before { top: 34px; bottom: 34px; left: 33px; right: auto; border-top: 0; border-left: 2px dashed rgba(255, 224, 119, .45); }
  .step {
    display: grid;
    grid-template-columns: 68px 1fr;
    column-gap: 22px;
    text-align: left;
    padding-bottom: 30px;
  }
  .step__num { grid-row: span 2; margin: 0; }
  .step__title { align-self: end; margin-bottom: 4px; }
  .contacts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .brand__tag { display: none; }
  .brand__logo { width: 40px; }
  .brand__name { font-size: 20px; }
  .hide-sm { display: none; }

  .hero { padding-bottom: 140px; }
  .hero__title { gap: 8px; }
  .tag { padding: 4px 10px 6px; }
  .hero__lead { font-size: 16px; }
  .btn--lg { padding: 18px 26px; font-size: 17px; width: 100%; max-width: 360px; }

  .perks { margin-top: -90px; }
  .perk { padding: 22px 20px; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .brands__inner { justify-content: center; text-align: center; }
  .brands__list { justify-content: center; gap: 10px 28px; }
  .brands__list li { font-size: 20px; }
  .about__badge { left: 12px; bottom: 12px; padding: 12px 16px; }
  .about__badge strong { font-size: 20px; }
  .about__media::before { inset: 14px -10px -14px 10px; }
  .form--card { padding: 26px 20px; }
  .modal { padding: 36px 20px 24px; }
  .contacts__btns .btn { flex: 1 1 100%; }
  .contacts__map, .contacts__map iframe { min-height: 320px; }
  .footer__inner, .footer__contacts { align-items: flex-start; }
  .footer__inner { flex-direction: column; }
  .fab { right: 14px; bottom: 14px; }
  .fab__btn { width: 52px; height: 52px; }
}
