/* ===== Stamplex ===== */
:root {
  color-scheme: dark;
  --primary: #2252f6;
  --primary-dark: #0f35b7;
  --primary-soft: rgba(34, 82, 246, .16);
  --primary-text: #6f8fff;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --border: #2c2c2c;
  --bg: #141414;
  --bg-tint: #111111;
  --surface: #1b1b1b;
  --field: #131313;
  --img-bg: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(0, 0, 0, .5);
  --header-h: 76px;

  --telegram: #229ed9;
  --whatsapp: #25d366;
  --viber: #7360f2;
  --instagram: #e1306c;
}

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

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

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-text); }
h1, h2, h3 { line-height: 1.15; margin: 0; }

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

.icon, .social svg, .messenger svg { width: 1em; height: 1em; flex-shrink: 0; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 12px 28px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(34, 82, 246, .35); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--light { background: #fff; color: #141414; }
.btn--light:hover { background: #d8d8d8; }
.btn--outline { background: transparent; color: var(--text); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(34, 82, 246, .45); outline-offset: 2px;
}

/* ===== Шапка ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 20, 20, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

/* Логотип: тонкий геометричний напис між двома лініями, «Λ» без перекладини */
.logo {
  --lw: .18em;
  position: relative; display: inline-block; padding: 9px 0; flex-shrink: 0;
  font-weight: 200; font-size: 28px; line-height: 1; letter-spacing: var(--lw); text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.logo::before, .logo::after {
  content: ""; position: absolute; left: 0; right: var(--lw); height: 1px; background: currentColor; opacity: .85;
}
.logo::before { top: 0; }
.logo::after { bottom: 0; }
.logo__word { display: block; white-space: nowrap; }
.logo__a { display: inline-block; width: .6em; height: .7em; margin-right: var(--lw); }
.logo__a svg { display: block; width: 100%; height: 100%; overflow: visible; }
.logo__a path { fill: none; stroke: currentColor; stroke-width: 1.4px; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
/* при наведенні «Λ» робить повний оберт */
.logo:hover .logo__a, .logo:focus-visible .logo__a { animation: logo-spin .9s cubic-bezier(.5, 0, .3, 1); }
@keyframes logo-spin { to { transform: rotate(360deg); } }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--primary-text); }

.header__contacts { display: flex; align-items: center; gap: 18px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.header__phone .icon { color: var(--primary-text); font-size: 18px; }
.header__phone:hover { color: var(--primary-text); }
.header__number { display: none; }

/* ===== Соцмережі ===== */
.socials { display: flex; gap: 8px; }
.social {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  color: #fff; font-size: 18px; transition: transform .2s, opacity .2s;
}
.social:hover { transform: translateY(-2px); opacity: .9; }
.socials--lg .social { width: 48px; height: 48px; font-size: 24px; }
.social--telegram { background: var(--telegram); }
.social--whatsapp { background: var(--whatsapp); }
.social--viber { background: var(--viber); }
.social--instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }

/* ===== Головний блок ===== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(17, 17, 17, .96) 0%, rgba(17, 17, 17, .86) 50%, rgba(17, 17, 17, .55) 100%),
    url("../images/hero.jpg") center 75% / cover no-repeat;
}
.hero__inner { padding: clamp(40px, 9vh, 96px) 20px clamp(44px, 10vh, 104px); max-width: 1200px; }
/* перший екран — на всю висоту вікна (svh: без панелей браузера на телефоні), текст по центру */
.hero { display: flex; align-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
.hero__inner { width: 100%; }
/* розміри залежать і від висоти вікна: на ноутбуках (широкий, але низький екран) кнопки вміщаються на першому екрані */
.hero__title {
  font-size: clamp(32px, min(5.4vw, 8.5vh), 64px); font-weight: 700; text-transform: uppercase;
  letter-spacing: .02em; line-height: 1.2; max-width: 16ch;
}
.hero__subtitle { margin: clamp(10px, 2.2vh, 18px) 0 0; font-size: clamp(20px, min(2.4vw, 4.2vh), 28px); font-weight: 600; max-width: 32ch; }
.hero__text { margin: clamp(10px, 2.4vh, 20px) 0 0; font-size: 18px; max-width: 520px; opacity: .92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(20px, 4.4vh, 36px); }
.hero__actions .btn--primary { box-shadow: 0 10px 24px rgba(34, 82, 246, .35); }
.hero__actions .btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.hero__actions .btn--light:hover { background: rgba(255, 255, 255, .12); }

.hero__messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.messenger {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  transition: background-color .2s;
}
.messenger svg { font-size: 18px; }
.messenger--telegram:hover { background: var(--telegram); }
.messenger--whatsapp:hover { background: var(--whatsapp); }
.messenger--viber:hover { background: var(--viber); }

.hero__insta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: clamp(14px, 3vh, 28px) 0 0; font-size: 16px; }
.hero__insta a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: none; }
.hero__insta a span { border-bottom: 2px solid rgba(238, 42, 123, .7); transition: border-color .2s; }
.hero__insta a:hover span { border-color: #fff; }
.hero__insta svg {
  width: 30px; height: 30px; padding: 5px; border-radius: 9px; color: #fff;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7);
  box-shadow: 0 6px 16px rgba(238, 42, 123, .35); transition: transform .2s;
}
.hero__insta a:hover svg { transform: translateY(-2px) rotate(-6deg); }

/* ===== Секції ===== */
.section { padding: 88px 0; scroll-margin-top: -72px; } /* при переході з меню заголовок одразу під шапкою */
.section--tinted { background: var(--bg-tint); }
.section__title { font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: .01em; }
.section__title::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: 14px;
  border-radius: 2px; background: var(--primary);
}
.section__lead { margin: 18px 0 0; max-width: 640px; color: var(--muted); font-size: 17px; }

/* ===== Каталог макетів ===== */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.tab {
  min-height: 44px; padding: 10px 20px; border: 1.5px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 15px;
  white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.tab:hover { border-color: var(--primary); }
.tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab:focus-visible { outline: 3px solid rgba(34, 82, 246, .45); outline-offset: 2px; }

.cat { margin-top: 28px; }
.cat[hidden] { display: none; }
.cat__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.cat__title { font-size: 24px; font-weight: 700; letter-spacing: .01em; }
.cat__desc { margin: 6px 0 0; color: var(--muted); }
.cat__price { white-space: nowrap; }
.cat__price b { color: var(--primary-text); font-weight: 800; }

.carousel { position: relative; margin-top: 20px; }
.carousel__track {
  --gap: 16px; --per: 5;
  display: flex; gap: var(--gap); margin: 0; padding: 4px 2px 14px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.carousel__btn {
  position: absolute; top: calc(50% - 30px); z-index: 2; display: grid; place-items: center;
  width: 46px; height: 46px; padding: 0 0 4px; border: 1px solid var(--border); border-radius: 50%;
  background: rgba(27, 27, 27, .92); color: #fff; font: 400 32px/1 system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5); transition: background-color .2s, opacity .2s;
}
.carousel__btn:hover { background: var(--primary); }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }
.carousel__btn--prev { left: -18px; }
.carousel__btn--next { right: -18px; }
.carousel.is-static .carousel__btn { display: none; }
/* Перетягування мишею (на телефоні гортається пальцем нативно) */
.carousel__track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.carousel__track.is-dragging .sample { pointer-events: none; }

.sample {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s;
}
.sample:hover { border-color: var(--primary); }
.sample--wide { flex-basis: min(100%, 560px); }
/* Квадратна рамка; картинка позиціонується абсолютно, щоб Safari не розтягував блок під її висоту */
.sample__img { --pad: 12px; position: relative; display: block; aspect-ratio: 1 / 1; background: var(--img-bg); cursor: zoom-in; overflow: hidden; }
.sample__img img {
  position: absolute; top: var(--pad); left: var(--pad);
  width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad));
  object-fit: contain; transition: transform .3s;
}
.sample__img:hover img { transform: scale(1.05); }
/* Дублікати / факсиміле — одна широка картинка у своїх пропорціях */
.sample--wide .sample__img { aspect-ratio: auto; padding: var(--pad); }
.sample--wide .sample__img img { position: static; width: 100%; height: auto; }
.sample__foot { display: flex; align-items: center; gap: 8px; padding: 10px; }
/* код макета в лівому верхньому куті картинки (картки, перегляд, сітка) */
.code-badge {
  position: absolute; top: 8px; left: 8px; z-index: 1; padding: 3px 9px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 13px; line-height: 1.3; letter-spacing: .03em;
  pointer-events: none;
}
.sample__order {
  flex: 1; min-height: 36px; padding: 6px 14px; border: 1.5px solid var(--primary); border-radius: 999px;
  background: transparent; color: var(--text); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer;
  transition: background-color .2s;
}
.sample__order:hover { background: var(--primary); }
/* «Дивитись усі» — праворуч від назви категорії */
.cat__all {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 8px 16px;
  border: 1.5px solid var(--primary); border-radius: 999px; background: var(--primary-soft); color: var(--text);
  font: inherit; font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; transition: background-color .2s;
}
.cat__all svg { width: 15px; height: 15px; color: var(--primary-text); flex-shrink: 0; }
.cat__all:hover { background: var(--primary); }
.cat__all:hover svg { color: #fff; }
.catalog__hint { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* ===== Перегляд макетів: стрічка, поточний макет по центру, сусіди видно з боків ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 64px 0 24px; background: rgba(8, 8, 8, .98); animation: fade .2s ease-out;
}
.lightbox[hidden] { display: none; }
.lightbox__track {
  --gap: 24px;
  position: relative; display: flex; align-items: center; gap: var(--gap); margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none;
}
.lightbox__track::-webkit-scrollbar { display: none; }
/* --r — пропорції рамки (ширина/висота): 1 для круглих печаток, більше для штампів */
.lb-slide {
  --w: min(80vw, calc((100vh - 250px) * var(--r, 1)), calc(640px * var(--r, 1)));
  flex: 0 0 var(--w); scroll-snap-align: center; cursor: pointer;
  filter: brightness(.4); transform: scale(.92); transition: filter .25s, transform .25s;
}
.lb-slide:first-child { margin-left: calc(50vw - var(--w) / 2); }
.lb-slide:last-child { margin-right: calc(50vw - var(--w) / 2); }
.lb-slide.is-current { filter: none; transform: none; cursor: default; }
.lb-slide--wide { --w: min(92vw, 900px); }
.lb-slide__box {
  position: relative; display: grid; place-items: center; aspect-ratio: var(--r, 1); padding: 4%;
  background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lb-slide--wide .lb-slide__box { aspect-ratio: auto; padding: 2%; }
.lb-slide__box img { width: 100%; height: 100%; object-fit: contain; }
.lb-slide__box .code-badge { top: 12px; left: 12px; padding: 4px 12px; font-size: 16px; }
.lb-slide--wide .lb-slide__box img { height: auto; }
.lightbox__info { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 16px; }
.lightbox__caption { margin: 0; color: #fff; font-weight: 600; text-align: center; }
.lightbox__counter { margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 14px; white-space: nowrap; }
.lightbox__order { min-height: 46px; }
.lightbox__btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff;
  font: 400 34px/1 system-ui, sans-serif; cursor: pointer; transition: background-color .2s, opacity .2s;
}
.lightbox__btn:hover { background: var(--primary); }
.lightbox__btn:disabled { opacity: 0; pointer-events: none; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev, .lightbox__next { top: calc(50% - 70px); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { display: none; }
/* «Усі макети» і «Замовити цей макет» — однакові за шириною, одна під одною */
.lightbox__all, .lightbox__order { width: min(100%, 420px); }
.lightbox__all { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.lightbox__all svg { width: 16px; height: 16px; }
.lightbox__all:hover { background: rgba(255, 255, 255, .12); }
.lightbox.is-single .lightbox__all { display: none; }
.lightbox__grid {
  position: absolute; inset: 0; z-index: 3; overflow-y: auto; overscroll-behavior: contain;
  background: rgb(8, 8, 8); animation: fade .2s ease-out;
}
.lightbox__grid[hidden] { display: none; }
.lightbox__grid-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 72px; padding: 12px 12px 12px 20px; background: rgba(8, 8, 8, .94);
}
.lightbox__grid-title { margin: 0; color: #fff; font-weight: 700; font-size: 17px; }
.lightbox__grid-close { position: static; flex-shrink: 0; }
.lightbox__grid-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px;
  max-width: 1100px; margin: 0 auto; padding: 4px 20px 32px; list-style: none;
}
.lightbox__grid-item {
  display: block; width: 100%; padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; text-align: center;
}
.lightbox__grid-thumb {
  position: relative; display: grid; place-items: center; aspect-ratio: var(--r, 1); padding: 6%;
  background: #fff; border-radius: 10px; outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .2s;
}
.lightbox__grid-item img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__grid-item:hover .lightbox__grid-thumb, .lightbox__grid-item.is-current .lightbox__grid-thumb { outline-color: var(--primary); }
.lightbox__grid-thumb .code-badge { top: 4px; left: 4px; padding: 1px 6px; font-size: 11px; }
.lightbox__grid-item:focus-visible { outline: none; }
.lightbox__grid-item:focus-visible .lightbox__grid-thumb { outline-color: var(--primary); }
@keyframes fade { from { opacity: 0; } }
@media (max-width: 600px) {
  .lightbox__track { --gap: 10px; }
  .lb-slide { --w: min(72vw, calc((100vh - 280px) * var(--r, 1))); }
  /* на телефоні стрілки лежать поверх країв сусідніх макетів */
  .lightbox__btn.lightbox__prev, .lightbox__btn.lightbox__next {
    width: 40px; height: 40px; font-size: 30px; background: rgba(34, 82, 246, .9); box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
  }
  .lightbox__prev { left: 6px; }
  .lightbox__next { right: 6px; }
  /* на телефоні — по три макети в рядку */
  .lightbox__grid-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; padding: 4px 16px 28px; }
  .lightbox__grid-head { min-height: 64px; padding: 8px 8px 8px 16px; }
  .lightbox__grid-title { font-size: 16px; }
}

/* ===== Форма ===== */
.order { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.order__alt { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: var(--muted); font-weight: 600; }

.form {
  display: grid; gap: 14px; padding: 32px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.form__field { display: block; }
.form__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.form input[type="text"], .form input[type="tel"], .form textarea {
  width: 100%; padding: 14px 16px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--field); border: 1.5px solid var(--border); border-radius: 12px;
  transition: border-color .2s, background-color .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); background: var(--field); }
.form .is-invalid { border-color: #e5484d !important; background: rgba(229, 72, 77, .1) !important; }

.form__file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; }
.form__file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form__file-btn {
  padding: 10px 18px; border: 1.5px dashed var(--primary); border-radius: 12px;
  color: var(--primary-text); font-weight: 600; font-size: 14px; transition: background-color .2s;
}
.form__file:hover .form__file-btn, .form__file input:focus-visible + .form__file-btn { background: var(--primary-soft); }
.form__file-name { font-size: 14px; color: var(--muted); word-break: break-all; }
.form__hp { position: absolute; left: -9999px; }
.form__submit { width: 100%; margin-top: 6px; }
.form__submit[disabled] { opacity: .6; cursor: wait; transform: none; }
.form__error { margin: 0; color: #ff6b6b; font-size: 14px; font-weight: 600; }

/* ===== Питання ===== */
.faq { display: grid; gap: 12px; max-width: 860px; margin-top: 44px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.faq__item[open] { border-color: var(--primary); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-text); font-size: 22px; font-weight: 500; line-height: 1;
  transition: transform .2s;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--primary-text); }
.faq__a { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* ===== Контакти ===== */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.contact { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.contact__title { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-text); margin-bottom: 12px; }
.contact p { margin: 0 0 8px; }
.contact small { color: var(--muted); }
.contact__link { color: var(--text); font-weight: 700; text-decoration: none; word-break: break-word; }
.contact__link:hover { color: var(--primary-text); }
.schedule { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.schedule dt { font-weight: 700; }
.schedule dd { margin: 0; }

/* ===== Підвал ===== */
.footer { background: #0b0b0b; border-top: 1px solid var(--border); color: rgba(255, 255, 255, .6); font-size: 14px; }
.footer .footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.footer p { margin: 0; }
.footer__cities { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 28px; font-size: 13px; }
.footer__cities a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer__cities a:hover { color: #fff; text-decoration: underline; }

/* ===== Модальне вікно ===== */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, .7);
}
.modal[hidden] { display: none; }
.modal__box {
  width: 100%; max-width: 400px; padding: 36px 28px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  animation: pop .25s ease-out;
}
.modal__box h3 { font-size: 24px; color: var(--text); }
.modal__box p { margin: 12px 0 24px; color: var(--muted); }
.modal__box .btn { min-width: 140px; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }

/* ===== Адаптив ===== */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header__contacts { margin-left: auto; }
  .carousel__track { --per: 4; }
}

@media (max-width: 820px) {
  .carousel__track { --per: 3; }
  .order { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; scroll-margin-top: -50px; }
  .hero__inner { padding: 72px 20px 80px; }
  /* на вузькому екрані зсуваємо фото праворуч, щоб у кадрі були печатка й золотий відбиток */
  .hero { background-position: center, 82% 75%; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .logo { font-size: 20px; padding: 7px 0; --lw: .14em; }
  .header__inner { gap: 12px; }
  .header__contacts { gap: 10px; }
  /* у шапці: кнопка дзвінка виділена й відокремлена від месенджерів */
  .header__phone span { display: none; }
  .header__phone {
    width: 40px; height: 40px; justify-content: center; border-radius: 50%;
    background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft);
  }
  .header__phone .icon { color: #fff; font-size: 19px; }
  .header__contacts { gap: 14px; }
  .header .socials { gap: 6px; padding-left: 14px; border-left: 1px solid var(--border); }
  .header .social { width: 34px; height: 34px; font-size: 17px; }
  .header .social--instagram { display: none; }
  /* «язичок» з номером під шапкою; ховається, щойно почали гортати */
  .header__number {
    position: absolute; top: 100%; right: 16px; display: block;
    padding: 3px 14px 6px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 12px 12px;
    background: rgba(20, 20, 20, .94); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em;
    text-decoration: none; white-space: nowrap;
    transition: opacity .2s, transform .2s;
  }
  .header.is-scrolled .header__number { opacity: 0; transform: translateY(-8px); pointer-events: none; }

  .hero__inner { padding: 56px 16px 64px; }
  .hero__text { font-size: 16px; }
  .hero__actions .btn { flex: 1 1 100%; font-size: 17px; letter-spacing: .06em; }

  .tabs { gap: 6px; margin-top: 28px; }
  /* кнопки розтягуються на всю ширину рядка, шрифт росте разом з екраном:
     формулу підібрано так, щоб від 360px вкладки вміщались у два рядки */
  .tab { flex: 1 1 auto; min-height: 44px; padding: 8px; font-size: clamp(14px, calc(4.86vw - 4.6px), 18px); }
  .tab--long { font-size: clamp(13px, calc(4.86vw - 5.6px), 17px); letter-spacing: -.01em; }
  /* назва і ціна в один рядок, опис під ними */
  .cat { margin-top: 18px; }
  .cat__head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; }
  .cat__head > div:first-child { display: contents; }
  .cat__title { font-size: 19px; }
  .cat__title { grid-area: 1 / 1; }
  .cat__all { grid-area: 1 / 2; align-self: center; padding: 6px 12px; font-size: 13px; }
  .cat__desc { grid-area: 2 / 1 / 3 / 3; margin: 0; font-size: 14px; }
  .carousel { margin-top: 12px; }
  /* на телефоні форма вище, месенджери — під нею */
  .order { gap: 0; }
  .order__info { display: contents; }
  .order .form { margin-top: 20px; }
  .order__alt { order: 1; margin-top: 24px; }
  .carousel__track { --per: 2.2; --gap: 12px; margin: 0 -16px; padding: 4px 16px 12px; scroll-padding-inline: 16px; }
  .carousel__btn { top: calc(50% - 40px); width: 40px; height: 40px; font-size: 28px; }
  .carousel__btn--prev { left: -6px; }
  .carousel__btn--next { right: -6px; }
  .sample--wide { flex-basis: calc(100% - 8px); }
  .sample__img { --pad: 8px; }
  .sample__foot { padding: 8px; }
  .sample__order { min-height: 34px; padding: 4px 12px; }

  .form { padding: 22px 18px; }
  .contacts { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .faq { margin-top: 32px; }
  .faq__q { padding: 16px 18px; font-size: 15px; }
  .faq__a { padding: 0 18px 18px; font-size: 15px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__cities { justify-content: center; }
}

@media (max-width: 360px) {
  .logo { font-size: 18px; }
}

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