/* Сантех Студія — лендінг. Кольори й шрифт ті самі, що в магазині (frontend/src/assets/styles/index.css). */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --t: «температура» регулятора, 0 = холодна (фіолетовий), 1 = гаряча (помаранчевий).
   Зареєстрована як число, щоб її можна було анімувати. */
@property --t {
  syntax: '<number>';
  inherits: true;
  initial-value: 0.56;
}

:root {
  --violet: #8c52fe;
  --violet-deep: #7a3de8;
  --orange: #fc904f;
  --ink: #373d43;
  --mist: #f8f7ff;
  --night: #160a33;
  --night-2: #23104f;
  --rule: #e2d8ff;

  --pad: 32px;
  --radius: 32px;
}

@media (max-width: 760px) {
  :root {
    --pad: 16px;
    --radius: 24px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  max-width: 1264px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ───── Кнопки ───── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 30px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--hot {
  background: var(--orange);
  color: var(--night);
  box-shadow: 0 10px 30px rgba(252, 144, 79, 0.35);
}

.btn--hot:hover {
  background: #ffa268;
  box-shadow: 0 14px 40px rgba(252, 144, 79, 0.5);
}

.btn--glass {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn--glass:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* ───── Шапка: «плаваюча» скляна панель ───── */

.top {
  position: sticky;
  top: 12px;
  z-index: 20;
  height: 64px;
  margin: 12px auto -76px;
  max-width: calc(1264px - 2 * var(--pad));
  width: calc(100% - 2 * var(--pad));
  padding: 0 10px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  background: rgba(22, 10, 51, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(22, 10, 51, 0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  display: block;
}

.nav {
  display: flex;
  gap: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.nav a {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.top__call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--night);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.top__call:hover {
  background: var(--orange);
}

.top__call-ico {
  display: none;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.top__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Меню для телефона й планшета: <details>, працює і без скриптів */
.menu {
  display: none;
  position: relative;
}

.menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary:hover,
.menu[open] summary {
  background: rgba(255, 255, 255, 0.22);
}

.menu summary span,
.menu summary span::before,
.menu summary span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.menu summary span {
  position: relative;
}

.menu summary span::before,
.menu summary span::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu summary span::before {
  top: -6px;
}

.menu summary span::after {
  top: 6px;
}

.menu nav {
  position: absolute;
  top: calc(100% + 20px);
  right: -10px;
  display: grid;
  min-width: 230px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: var(--night);
  box-shadow: 0 24px 60px rgba(22, 10, 51, 0.4);
}

.menu nav a {
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
}

.menu nav a:hover,
.menu nav a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.12);
}

/* до 1100 px п'ять пунктів меню не вміщаються в один рядок — показуємо кнопку меню */
@media (max-width: 1100px) {
  .nav {
    display: none;
  }

  .menu {
    display: block;
  }
}

/* на телефоні номер у шапці стає круглою кнопкою з трубкою */
@media (max-width: 520px) {
  .top__call {
    justify-content: center;
    width: 44px;
    padding: 0;
  }

  .top__call-full {
    display: none;
  }

  .top__call-ico {
    display: block;
  }
}

/* ───── Hero ───── */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--night);
  border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
  /* оголошено тут, а не в :root, щоб колір перераховувався разом із --t */
  --temp: color-mix(in oklab, var(--violet), var(--orange) calc(var(--t) * 100%));
}

@media (prefers-reduced-motion: no-preference) {
  .hero {
    animation: warm-up 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s backwards;
  }
}

@keyframes warm-up {
  from {
    --t: 0;
  }
}

/* світіння: постійне фіолетове зліва і «температурне» за регулятором */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 70% at 10% 0%, rgba(140, 82, 254, 0.55), transparent 70%),
    radial-gradient(46% 62% at 80% 58%, color-mix(in oklab, var(--temp), transparent 30%), transparent 72%),
    radial-gradient(40% 50% at 100% 100%, color-mix(in oklab, var(--temp), transparent 62%), transparent 70%);
}

/* плитка: тонка сітка, що проступає біля регулятора */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 76px 76px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(70% 85% at 78% 55%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 85% at 78% 55%, #000 10%, transparent 75%);
}

.hero--page .wrap {
  padding-block: clamp(132px, 15vw, 184px) clamp(48px, 7vw, 88px);
}

.hero--page h1 {
  margin-top: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
  min-height: min(100svh, 860px);
  padding-block: 150px 96px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.875rem;
  font-weight: 600;
}

.chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(252, 144, 79, 0.25);
}

h1 {
  margin-top: 28px;
  font-size: clamp(2.5rem, 6.6vw, 5.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lede {
  max-width: 32em;
  margin-top: 28px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* ───── Регулятор температури ───── */

.dial-box {
  justify-self: center;
  text-align: center;
}

.dial {
  position: relative;
  width: min(440px, 36vw);
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.dial:active {
  cursor: grabbing;
}

/* шкала з поділок: 270° від холодної до гарячої */
.dial__scale {
  opacity: 0.28;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 225deg, var(--violet) 0deg, var(--orange) 270deg, transparent 270deg);
  -webkit-mask-image:
    repeating-conic-gradient(from 225deg, #000 0deg 1.3deg, transparent 1.3deg 5deg),
    radial-gradient(closest-side, transparent 86%, #000 86.5%);
  mask-image:
    repeating-conic-gradient(from 225deg, #000 0deg 1.3deg, transparent 1.3deg 5deg),
    radial-gradient(closest-side, transparent 86%, #000 86.5%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* активна частина шкали */
.dial__fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  -webkit-mask-image: conic-gradient(from 225deg, #000 calc(var(--t) * 270deg), transparent calc(var(--t) * 270deg));
  mask-image: conic-gradient(from 225deg, #000 calc(var(--t) * 270deg), transparent calc(var(--t) * 270deg));
}

.dial__fill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 225deg, var(--violet) 0deg, var(--orange) 270deg, transparent 270deg);
  -webkit-mask-image:
    repeating-conic-gradient(from 225deg, #000 0deg 1.3deg, transparent 1.3deg 5deg),
    radial-gradient(closest-side, transparent 86%, #000 86.5%);
  mask-image:
    repeating-conic-gradient(from 225deg, #000 0deg 1.3deg, transparent 1.3deg 5deg),
    radial-gradient(closest-side, transparent 86%, #000 86.5%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.dial__knob {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background:
    radial-gradient(120% 120% at 30% 15%, rgba(255, 255, 255, 0.16), transparent 45%),
    linear-gradient(150deg, #34197a, #170a38 70%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -18px 40px rgba(0, 0, 0, 0.35),
    0 30px 70px rgba(5, 0, 20, 0.6),
    0 0 110px color-mix(in oklab, var(--temp), transparent 45%);
}

/* позначка на ручці */
.dial__mark {
  position: absolute;
  inset: 0;
  transform: rotate(calc(-135deg + var(--t) * 270deg));
}

.dial__mark::before {
  content: '';
  position: absolute;
  top: 7%;
  left: 50%;
  width: 3.2%;
  height: 11%;
  margin-left: -1.6%;
  border-radius: 99px;
  background: var(--temp);
  box-shadow: 0 0 18px var(--temp);
}

.dial__temp {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-size: clamp(3.5rem, 8.4vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.dial__val {
  position: relative;
}

.dial__val sup {
  position: absolute;
  top: 0.35em;
  left: calc(100% + 0.2em);
  font-size: 0.3em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: var(--temp);
}

/* справжній повзунок для клавіатури та скрінрідерів */
.dial__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.dial:has(.dial__input:focus-visible) {
  outline: 3px solid var(--orange);
  outline-offset: 8px;
}

/* підказка стоїть у розриві шкали знизу */
.dial__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1%;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.66);
  pointer-events: none;
}

/* ───── Секції ───── */

.sec {
  padding-top: clamp(72px, 10vw, 136px);
}

.sec__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.sec__head p {
  max-width: 30em;
  justify-self: end;
}

/* ───── Сторінка «Про нас» ───── */

/* Карусель: одне фото за раз, по центру. Це звичайне горизонтальне прокручування
   з «прилипанням», тож гортається і пальцем, і колесом, і без скриптів. */
.gal {
  --gal-h: clamp(300px, 56vw, 620px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    'prev car next'
    '. count .';
  align-items: center;
  gap: 16px 20px;
}

.gal__prev {
  grid-area: prev;
}

.gal__next {
  grid-area: next;
}

.gal__count {
  grid-area: count;
  justify-self: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #6b6f76;
}

.gal__now {
  color: var(--violet-deep);
}

.car {
  grid-area: car;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.car::-webkit-scrollbar {
  display: none;
}

/* кожне фото займає всю ширину стрічки і стоїть у ній по центру */
.car li {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--gal-h);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.shot {
  position: relative;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--rule);
}

/* фото показується цілим, без обрізання: обмежуємо і висоту, і ширину */
.shot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--gal-h);
}

.shot__cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(22, 10, 51, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
}

.car-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  background: #fff;
  color: var(--violet-deep);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.car-btn:hover {
  border-color: var(--violet-deep);
  background: var(--violet-deep);
  color: #fff;
}

.car-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.car-btn:disabled:hover {
  border-color: var(--rule);
  background: #fff;
  color: var(--violet-deep);
}

.car-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* на телефоні кнопки стають під фото, щоб не забирати в нього ширину */
@media (max-width: 760px) {
  .gal {
    --gal-h: clamp(280px, 104vw, 480px);
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      'car car car'
      'prev count next';
  }

  .car-btn {
    width: 48px;
    height: 48px;
  }
}

/* Співпраця і вакансії: дві однакові картки поруч */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--radius);
  color: #fff;
  background: var(--night);
  scroll-margin-top: 96px;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(252, 144, 79, 0.6), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgba(140, 82, 254, 0.55), transparent 70%);
}

.card__title {
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.card p {
  max-width: 30em;
  margin-top: 14px;
}

.card__mail a {
  font-weight: 700;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.card .btn {
  margin-top: auto;
}

/* проміжок над кнопкою однаковий в обох картках */
.card__mail {
  padding-bottom: 28px;
}

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

/* Каталог: чотири однакові плитки, 2 × 2 на комп'ютері, в один стовпчик на телефоні.
   Усередині всі влаштовані однаково: [іконка + назва], під ними список. */
.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
}

.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
}

.tile__lead {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Іконка в заокругленому квадраті */
.chip-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
}

.chip-ico svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.tile h3 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 28px 0 0;
}

.tags li {
  padding: 9px 18px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.tile--bath {
  background: #fff;
  box-shadow: 0 1px 0 var(--rule), 0 24px 60px rgba(140, 82, 254, 0.1);
}

.tile--bath .chip-ico {
  color: #fff;
  background: linear-gradient(145deg, #a274ff, #6a2fd6);
}

.tile--bath .tags li {
  border-color: var(--rule);
  background: var(--mist);
}

.tile--heat {
  color: #fff;
  background: var(--night);
}

.tile--heat::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(252, 144, 79, 0.75), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgba(140, 82, 254, 0.5), transparent 70%);
}

.tile--heat .chip-ico {
  color: var(--orange);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tile--heat .tags li {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.tile--more {
  color: #fff;
  background: var(--violet-deep);
}

.tile--more .chip-ico {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.tile--more .tags li {
  border-color: rgba(255, 255, 255, 0.45);
}

.tile--rough {
  background: #ebe4ff;
}

.tile--rough .chip-ico {
  color: #fff;
  background: linear-gradient(145deg, #a274ff, #6a2fd6);
}

.tile--rough .tags li {
  border-color: rgba(122, 61, 232, 0.3);
  background: #fff;
}

@media (max-width: 860px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }
}

/* Як замовити: послідовність, тому з номерами і лінією */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 36px;
  counter-increment: step;
}

.steps li::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  right: -40px;
  height: 3px;
  border-radius: 3px;
  background: var(--rule);
}

.steps li:last-child::before {
  right: 0;
}

.steps li::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--c, var(--violet));
  box-shadow: 0 0 0 5px var(--mist);
}

.steps li:nth-child(1) {
  --c: #8c52fe;
}

.steps li:nth-child(2) {
  --c: #c06fb0;
}

.steps li:nth-child(3) {
  --c: #fc904f;
}

.steps__num::before {
  content: counter(step);
  display: block;
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--c);
}

.steps h3 {
  margin-top: 16px;
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.steps p {
  margin-top: 8px;
  max-width: 24em;
}

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

  .sec__head p {
    justify-self: start;
  }

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

  .steps li {
    padding: 0 0 32px 36px;
  }

  .steps li:last-child {
    padding-bottom: 0;
  }

  .steps li::before {
    top: 6px;
    bottom: -6px;
    left: 6px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .steps li:last-child::before {
    display: none;
  }

  .steps__num::before {
    font-size: 3.5rem;
  }

  .steps h3 {
    margin-top: 8px;
  }
}

/* Контакти */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 6vw, 88px);
  border-radius: clamp(28px, 4vw, 56px);
  color: #fff;
  background: var(--night);
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 90% at 100% 100%, rgba(252, 144, 79, 0.85), transparent 70%),
    radial-gradient(60% 90% at 0% 0%, rgba(140, 82, 254, 0.8), transparent 70%);
}

.contact {
  container-type: inline-size;
}

.contact h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  letter-spacing: -0.03em;
}

.bigphone {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: clamp(2rem, 8.4vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* Номер займає рівно всю ширину блоку: 100cqi = внутрішня ширина .contact,
   9.62 = ширина цього номера в em (при letter-spacing −0.045em). */
@supports (container-type: inline-size) {
  .bigphone {
    font-size: calc(100cqi / 9.62);
  }
}

.bigphone:hover {
  color: var(--orange);
}

.contact__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-top: clamp(32px, 5vw, 64px);
}

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

.where {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.contact address {
  font-style: normal;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}

.hours {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
}

.where__map,
.socials a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.where__map:hover,
.socials a:hover {
  border-color: #fff;
  background: #fff;
  color: var(--night);
}

.contact .actions {
  margin-top: 0;
}

/* Футер */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 32px 40px;
  font-size: 0.9375rem;
  color: #6b6f76;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.foot__links a {
  text-underline-offset: 4px;
}

.foot__links a:hover {
  color: var(--violet-deep);
}

/* ───── Мобільний ───── */

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: 0;
    padding-block: 124px 56px;
  }

  .dial {
    width: min(300px, 72vw);
  }

  .hero::before {
    background:
      radial-gradient(90% 50% at 0% 0%, rgba(140, 82, 254, 0.55), transparent 70%),
      radial-gradient(80% 45% at 50% 82%, color-mix(in oklab, var(--temp), transparent 30%), transparent 72%);
  }

  .hero::after {
    -webkit-mask-image: radial-gradient(90% 45% at 50% 80%, #000 10%, transparent 75%);
    mask-image: radial-gradient(90% 45% at 50% 80%, #000 10%, transparent 75%);
  }
}

@media (max-width: 480px) {
  /* дзвінок на всю ширину, месенджери поруч під ним */
  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .actions .btn {
    padding-inline: 12px;
  }

  .actions .btn--hot {
    grid-column: 1 / -1;
  }

  .tags li {
    font-size: 0.9375rem;
    padding: 8px 14px;
  }
}

/* ───── 404 ───── */

.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--pad);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(60% 60% at 15% 0%, rgba(140, 82, 254, 0.6), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(252, 144, 79, 0.55), transparent 70%),
    var(--night);
}

.lost h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
}

.lost p {
  margin: 20px 0 32px;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 480px) {
  .chip-ico {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .chip-ico svg {
    width: 34px;
    height: 34px;
  }

  .tile__lead {
    gap: 14px;
  }
}
