/* ============================================================
   KLASSIKO - салон краси, Одеса
   Дизайн-система: графіт (лого) + слонова кістка + золото
   ============================================================ */

:root {
  --ink: #1f2523;
  --graphite: #4c5551;
  --graphite-dark: #39413e;
  --graphite-deep: #2b312f;
  --ivory: #f7f5f1;
  --cream: #efebe3;
  --white: #ffffff;
  --gold: #b49a6a;
  --gold-light: #cdb88f;
  --gold-text: #7a6339; /* контрастна версія золотого для тексту на світлому (WCAG AA) */
  --muted: #6d746f;
  --line: rgba(31, 37, 35, 0.12);
  --shadow-soft: 0 18px 50px rgba(31, 37, 35, 0.10);
  --shadow-card: 0 10px 30px rgba(31, 37, 35, 0.08);
  --radius: 14px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --header-h: 84px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ---------- Типографіка ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 17px; }

.section { padding: 110px 0; }
.section--tint { background: var(--cream); }
.section--dark { background: var(--graphite-deep); }
.section--dark h2, .section--dark h3 { color: var(--white); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.28s ease;
  white-space: nowrap;
}

.btn--solid { background: var(--graphite); color: var(--white); }
.btn--solid:hover { background: var(--graphite-dark); transform: translateY(-2px); box-shadow: var(--shadow-card); }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #a3895a; transform: translateY(-2px); box-shadow: var(--shadow-card); }

.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.6); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }

.btn--outline { border: 1px solid var(--graphite); color: var(--graphite); }
.btn--outline:hover { background: var(--graphite); color: var(--white); }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-h);
}

/* blur через ::before, бо backdrop-filter на самій шапці створює containing block
   для fixed-нащадків і ламає мобільне off-canvas меню */
.header--scrolled {
  background: rgba(247, 245, 241, 0.96);
  box-shadow: 0 1px 0 var(--line);
}

.header--scrolled::before,
.page-sub .header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.logo { display: flex; align-items: center; gap: 14px; }

.logo__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--graphite);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.35s ease;
}

.logo__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-top: 3px;
}

.header--scrolled .logo__text { color: var(--ink); }
.header--scrolled .logo__sub { color: var(--gold-text); }

.nav { display: flex; gap: 30px; }

.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.25s ease;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav a:hover { color: var(--gold-light); }
.nav a:hover::after { width: 100%; }

.header--scrolled .nav a { color: var(--ink); }
.header--scrolled .nav a:hover { color: var(--gold-text); }

.header__actions { display: flex; align-items: center; gap: 20px; }

.header__phone {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.35s ease;
  white-space: nowrap;
}
.header--scrolled .header__phone { color: var(--ink); }

.header .btn { padding: 12px 26px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.burger span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}
.header--scrolled .burger span { background: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../img/interior-2.jpg") center/cover no-repeat;
  filter: grayscale(35%);
  transform: scale(1.03);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(28, 33, 31, 0.88) 0%, rgba(28, 33, 31, 0.62) 45%, rgba(28, 33, 31, 0.30) 100%);
}

.hero .container { position: relative; z-index: 2; }

.hero__content { max-width: 680px; padding-top: var(--header-h); }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 26px;
}
.hero__eyebrow::before, .hero__eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold-light);
}

.hero h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 500;
  color: var(--white);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__lead {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  color: var(--gold-light);
  line-height: 1;
}

.hero__stat span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  max-width: 160px;
}

/* ---------- Про салон ---------- */

.about { position: relative; }

.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}

.about__media { position: relative; }

.about__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.about__media::before {
  content: "";
  position: absolute;
  inset: 28px -28px -28px 28px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}

.about__badge {
  position: absolute;
  left: -30px;
  bottom: 34px;
  background: var(--graphite);
  color: var(--white);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-soft);
}

.about__badge b {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  color: var(--gold-light);
  line-height: 1;
}

.about__badge span { display: block; font-size: 12.5px; margin-top: 6px; opacity: 0.85; }

.about__text h2 { font-size: clamp(32px, 4vw, 48px); margin-top: 14px; }
.about__text > p { margin-top: 20px; color: var(--muted); font-size: 16.5px; }

.about__list { margin-top: 32px; display: grid; gap: 18px; }

.about__item { display: flex; gap: 16px; align-items: flex-start; }

.about__item-icon {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-text);
  box-shadow: var(--shadow-card);
}

.about__item b { display: block; font-size: 15.5px; }
.about__item p { font-size: 14.5px; color: var(--muted); margin-top: 3px; }

/* ---------- Таймлайн історії ---------- */

.timeline {
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.timeline__item {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  border-top: 3px solid var(--gold);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--graphite);
  line-height: 1;
}

.timeline__item p { margin-top: 12px; font-size: 14.5px; color: var(--muted); }

@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .timeline { grid-template-columns: 1fr; }
}

/* ---------- Послуги ---------- */

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

.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }

.service-card__media { position: relative; height: 230px; overflow: hidden; }

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card__media img { transform: scale(1.06); }

/* Вертикальне фото (1000x1499) у горизонтальній картці 230px:
   центрований кадр показує лише шию, тому зсуваємо кадр угору. */
.service-card__media img[src$="service-massage.jpg"] { object-position: center 14%; }

.service-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }

.service-card__body h3 { font-size: 24px; }

.service-card__body p { margin-top: 10px; font-size: 14.5px; color: var(--muted); flex: 1; }

.service-card__price {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.service-card__link {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-card__link:hover { color: var(--gold-text); }

/* ---------- Ціни ---------- */

.prices__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.prices__tab {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.25s ease;
}

.prices__tab:hover { border-color: var(--gold); color: var(--gold-text); }

.prices__tab.is-active {
  background: var(--graphite);
  border-color: var(--graphite);
  color: var(--white);
}

.prices__panel { display: none; }
.prices__panel.is-active { display: block; animation: fadeUp 0.4s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.price-table {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
}

.price-row:last-child { border-bottom: none; }

.price-row__name { font-size: 16px; font-weight: 600; }
.price-row__note { font-size: 13px; color: var(--muted); margin-top: 2px; }

.price-row__dots {
  flex: 1;
  border-bottom: 1px dotted rgba(31, 37, 35, 0.25);
  transform: translateY(-4px);
}

.price-row__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--graphite);
  white-space: nowrap;
}

.price-row__value small { font-size: 14px; color: var(--muted); font-family: var(--font-body); }

.prices__note {
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Бренди ---------- */

.brands { padding: 70px 0; background: var(--graphite-deep); }

.brands__title {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 36px;
}

.brands__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 56px;
}

.brands__item {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.3s ease;
}

.brands__item:hover { color: var(--white); }

/* ---------- Команда ---------- */

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 34px 28px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

.team-card__avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--graphite) 0%, var(--graphite-dark) 100%);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.05em;
}

.team-card h3 { font-size: 22px; }

.team-card__role {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.team-card__desc { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- Галерея ---------- */

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 18px;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: block;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery__item:hover img { transform: scale(1.07); }

.gallery__item::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 300;
  color: var(--white);
  background: rgba(31, 37, 35, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery__item:hover::after { opacity: 1; }

.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.gallery__item.is-hidden { display: none; }

.gallery__note {
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Відгуки ---------- */

.reviews { overflow: hidden; }

.reviews__ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: -20px 0 40px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  box-shadow: var(--shadow-card);
  font-size: 14px;
}

.rating-badge b { font-size: 17px; color: var(--graphite); }
.rating-badge .star { color: var(--gold-text); }
.rating-badge span { color: var(--muted); font-size: 13px; }

.reviews .swiper { padding: 10px 6px 56px; }

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 36px 34px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.review-card__stars { color: var(--gold-text); letter-spacing: 4px; font-size: 15px; }

.review-card__text {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  flex: 1;
  font-style: italic;
}

.review-card__author { display: flex; align-items: center; gap: 14px; }

.review-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--graphite);
  font-family: var(--font-display);
  font-size: 19px;
}

.review-card__author b { display: block; font-size: 15px; }
.review-card__author span { font-size: 13px; color: var(--muted); }

.swiper-pagination-bullet { background: var(--graphite); opacity: 0.25; }
.swiper-pagination-bullet-active { background: var(--gold); opacity: 1; }

.reviews__cta { text-align: center; margin-top: 12px; }

/* ---------- CTA-стрічка ---------- */

.cta-band {
  position: relative;
  padding: 96px 0;
  /* interior-3 вертикальне (800x1200): у широкій стрічці центрований кадр
     показує лише стіл, тому піднімаємо кадр до рівня майстрів. */
  background: url("../img/interior-3.jpg") center 28%/cover no-repeat;
  color: var(--white);
  text-align: center;
}

.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(31, 37, 35, 0.78); }

.cta-band .container { position: relative; z-index: 2; }

.cta-band h2 { color: var(--white); font-size: clamp(30px, 4vw, 46px); max-width: 720px; margin-inline: auto; }

.cta-band p { margin-top: 16px; color: rgba(255, 255, 255, 0.82); font-size: 17px; }

.cta-band .btn { margin-top: 34px; }

/* ---------- Контакти ---------- */

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contacts__info { display: grid; gap: 26px; margin-top: 8px; }

.contact-item { display: flex; gap: 18px; align-items: flex-start; }

.contact-item .contact-item__icon {
  flex: 0 0 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--gold-text);
  box-shadow: var(--shadow-card);
}

.contact-item b { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-item p, .contact-item a { font-size: 17px; font-weight: 600; margin-top: 4px; display: block; }
.contact-item a:hover { color: var(--gold-text); }
.contact-item span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

.contacts__socials { display: flex; gap: 14px; margin-top: 6px; }

.contacts__socials .social-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--white);
  transition: all 0.3s ease;
}

.contacts__socials .social-btn:hover { background: var(--gold); transform: translateY(-3px); }

.contacts__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 460px;
}

.contacts__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

/* ---------- Форма запису ---------- */

.booking {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 44px;
  margin-top: 56px;
}

.booking__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }

.booking h3 { font-size: 30px; }
.booking > .booking__grid p { color: var(--muted); }

.booking__form { display: grid; gap: 16px; }

.booking__form input,
.booking__form select,
.booking__form textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ivory);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s ease;
}

.booking__form input:focus,
.booking__form select:focus,
.booking__form textarea:focus { outline: none; border-color: var(--gold); }

.booking__form .btn { justify-self: start; }

.booking__note { font-size: 13px; color: var(--muted); }

.booking__alt { display: grid; gap: 14px; }

.booking__alt .btn { justify-content: flex-start; }

/* ---------- Footer ---------- */

.footer { background: var(--graphite-deep); color: rgba(255, 255, 255, 0.75); padding: 64px 0 30px; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer .logo__text { color: var(--white); }

.footer__about { margin-top: 18px; font-size: 14.5px; max-width: 320px; }

.footer h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.footer ul { display: grid; gap: 10px; }
.footer ul a { font-size: 14.5px; transition: color 0.25s ease; }
.footer ul a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Мобільна панель запису ---------- */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  box-shadow: 0 -8px 30px rgba(31, 37, 35, 0.14);
}

.mobile-cta a {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-cta a:first-child { background: var(--graphite); color: var(--white); }
.mobile-cta a:last-child { background: var(--gold); color: var(--ink); }

/* ---------- Кнопка вгору ---------- */

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 70;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--white);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--gold); }

/* ---------- Адаптив ---------- */

@media (max-width: 1320px) {
  .header__phone { display: none; }
  .nav { gap: 22px; }
}

@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

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

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 82vw);
    background: var(--graphite-deep);
    flex-direction: column;
    gap: 8px;
    padding: 110px 36px 40px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s ease, visibility 0.4s;
    z-index: 85;
  }

  .nav.is-open { transform: translateX(0); visibility: visible; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3); }

  .nav a { color: var(--white) !important; font-size: 16px; padding: 12px 0; }

  .burger { display: flex; z-index: 95; }

  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--white); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--white); }

  .header__phone, .header .btn { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media::before { display: none; }
  .about__badge { left: 16px; }

  .contacts__grid { grid-template-columns: 1fr; }
  .booking__grid { grid-template-columns: 1fr; gap: 28px; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }

  .cta-band { background-attachment: scroll; }

  .mobile-cta { display: grid; }
  .mobile-cta a { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(.mobile-cta) { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }

  /* iOS Safari зумить поля <16px при фокусі */
  .booking__form input,
  .booking__form select,
  .booking__form textarea { font-size: 16px; }
}

@media (max-width: 620px) {
  .services__grid { grid-template-columns: 1fr; }
  .hero__eyebrow::before, .hero__eyebrow::after { display: none; }
  .hero__stats { gap: 28px; }
  .footer__grid { grid-template-columns: 1fr; }
  .booking { padding: 30px 22px; }
  .price-row { padding: 16px 20px; flex-wrap: wrap; }
  .price-row__dots { display: none; }
  .price-row__value { margin-left: auto; }
  .logo__text { font-size: 17px; }
}

/* ---------- Службові сторінки послуг ---------- */

.page-sub .header {
  position: sticky;
  top: 0;
  background: rgba(247, 245, 241, 0.97);
  box-shadow: 0 1px 0 var(--line);
}

.page-sub .logo__text,
.page-sub .nav a,
.page-sub .header__phone { color: var(--ink); }
.page-sub .burger span { background: var(--ink); }

.subhero {
  background: var(--graphite-deep);
  color: var(--white);
  padding: 80px 0 64px;
}

.subhero h1 {
  color: var(--white);
  font-size: clamp(32px, 4.6vw, 52px);
  max-width: 780px;
}

.subhero p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  font-size: 17px;
}

.breadcrumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--gold-light); }
.breadcrumbs a:hover { text-decoration: underline; }

.subcontent { max-width: 820px; }
.subcontent h2 { font-size: clamp(26px, 3vw, 36px); margin: 44px 0 16px; }
.subcontent p { margin: 14px 0; color: #3c433f; }
.subcontent ul { margin: 14px 0 14px 22px; list-style: disc; color: #3c433f; }
.subcontent li { margin: 6px 0; }

.sub-cta {
  margin-top: 48px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.sub-cta b { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.sub-cta div span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.sub-cta .btn { flex-shrink: 0; }

.sub-links { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.sub-links a {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--graphite);
  transition: all 0.25s ease;
}
.sub-links a:hover { border-color: var(--gold); color: var(--gold-text); }

/* ---------- Доступність ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 200;
  background: var(--graphite-deep);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 0; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.hero a:focus-visible,
.footer a:focus-visible,
.section--dark a:focus-visible,
.brands a:focus-visible { outline-color: var(--gold-light); }

.booking__form :focus-visible { outline: 2px solid var(--gold); outline-offset: 0; }

.gallery__item:focus-visible::after { opacity: 1; }

@media (max-width: 780px) {
  .hero__eyebrow { letter-spacing: 0.14em; font-size: 11px; }
  .hero__eyebrow::before, .hero__eyebrow::after { display: none; }
}

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

/* ---------- Питання і відповіді (FAQ) ---------- */

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  align-items: start;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}

.faq__q {
  font-size: clamp(21px, 2.1vw, 26px);
  margin-bottom: 10px;
}

.faq__a { color: #3c433f; }

.subcontent .faq { grid-template-columns: 1fr; margin: 18px 0 0; }
.subcontent .faq__item { padding: 22px 24px; }
.subcontent .faq__a { margin: 0; }

@media (max-width: 780px) {
  .faq { gap: 16px; }
  .faq__item { padding: 20px 18px; }
}

/* ---------- Прайс однією таблицею (/pricelist/) ---------- */

.price-sheet {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.price-sheet th,
.price-sheet td {
  text-align: left;
  vertical-align: top;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}

.price-sheet thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cream);
}

.price-sheet thead th:last-child,
.price-sheet td:last-child { text-align: right; }

.price-sheet tbody th[scope="row"] { font-size: 16px; font-weight: 600; }

.price-sheet__group th {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  background: var(--ivory);
  padding-top: 26px;
}

.price-sheet__note {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.price-sheet__value {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--graphite);
  white-space: nowrap;
}

.price-sheet__meta {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
}

@media (max-width: 620px) {
  .price-sheet th,
  .price-sheet td { padding: 14px 16px; }
  .price-sheet__group th { font-size: 21px; }
  .price-sheet__value { font-size: 18px; }
}

/* ---------- Напрями майстра на картці (/specialists/) ---------- */

.team-card__list {
  margin-top: 12px;
  display: grid;
  gap: 4px;
  font-size: 13.5px;
  color: var(--muted);
}

.team-card__list li::before {
  content: "· ";
  color: var(--gold-text);
}

/* ---------- Ілюстрація в тексті сторінки послуги ---------- */

.subcontent__media {
  margin: 28px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Навігація в підвалі підсторінок: внутрішня перелінковка на всі розділи
   (додано 09.2026 після SEO-рев'ю - нові сторінки були без вхідних посилань) */
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}
.footer__links a { opacity: .75; }
.footer__links a:hover { opacity: 1; }

/* Перемикач мови UA / RU у шапці (додано 09.2026 разом із російською версією) */
.lang-switch { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--white); transition: color .35s ease; }
.lang-switch a, .lang-switch span { display: inline-block; padding: 5px 8px; line-height: 1; border: 1px solid currentColor; border-radius: 4px; }
.lang-switch a { opacity: .72; transition: opacity .25s ease, color .25s ease; }
.lang-switch a:hover, .lang-switch a:focus-visible { opacity: 1; color: var(--gold-light); }
.lang-switch__current { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.header--scrolled .lang-switch { color: var(--ink); }
