/* =========================================================
   Босс — мужская парикмахерская, Тюмень
   ========================================================= */

:root {
  --brown-950: #1b0f08;
  --brown-900: #2b1810;
  --brown-800: #3a2418;
  --brown-700: #4b2e1e;
  --brown-600: #6b4630;
  --caramel: #c9955a;
  --caramel-2: #e0b37c;
  --cream: #f7f0e6;
  --cream-2: #efe4d6;
  --sand: #e4d5c3;
  --white: #ffffff;
  --ink: #2b1b12;
  --muted: #6e5a4c;
  --line: #e4d5c3;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 24px 60px rgba(43, 24, 16, 0.1);
  --shadow-card: 0 18px 40px rgba(43, 24, 16, 0.09);
  --container: 1200px;
  --font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--caramel);
  color: var(--brown-950);
}

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

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--brown-900);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--brown-900);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
}

h3 {
  font-size: 1.375rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown-600);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow--light {
  color: var(--caramel-2);
}

.text-accent {
  color: var(--caramel-2);
}

.stars {
  color: var(--caramel);
  font-size: 17px;
  letter-spacing: 4px;
  line-height: 1;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn--primary {
  background: var(--caramel);
  border-color: var(--caramel);
  color: var(--brown-950);
}

.btn--primary:hover {
  background: var(--caramel-2);
  border-color: var(--caramel-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(201, 149, 90, 0.32);
}

.btn--outline {
  background: transparent;
  border-color: var(--sand);
  color: var(--brown-800);
}

.btn--outline:hover {
  background: var(--white);
  border-color: var(--brown-600);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--sm {
  padding: 11px 18px;
  font-size: 12.5px;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 15px;
}

/* ---------- Topbar ---------- */

.topbar {
  background: var(--brown-950);
  color: rgba(255, 255, 255, 0.66);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 36px;
}

.topbar__info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--caramel);
  opacity: 0.7;
}

.topbar__hours {
  color: var(--caramel-2);
}

.topbar__phone {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.topbar__phone:hover {
  color: var(--caramel-2);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 240, 230, 0.92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease;
}

.header.is-scrolled {
  box-shadow: 0 12px 32px rgba(43, 24, 16, 0.09);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 80px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--brown-900);
}

.logo__mark {
  display: block;
  width: 52px;
  height: 52px;
  flex: none;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__text strong {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo__text small {
  margin-top: 4px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brown-800);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--caramel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: var(--brown-600);
}

.nav a:hover::after {
  transform: scaleX(1);
}

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

.header__phone {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brown-800);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header__phone:hover {
  color: var(--brown-600);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.burger span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--brown-900);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.menu-open .burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.menu-open .burger span:nth-child(2) {
  opacity: 0;
}

body.menu-open .burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

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

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 760px;
  padding: 92px 0 118px;
  overflow: hidden;
  background: var(--brown-950);
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../images/work-fade.jpg") center 62% / cover no-repeat;
  transform: scale(1.03);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 12, 6, 0.95) 0%, rgba(24, 12, 6, 0.78) 44%, rgba(24, 12, 6, 0.32) 100%),
    linear-gradient(0deg, rgba(24, 12, 6, 0.9) 0%, rgba(24, 12, 6, 0) 46%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 56px;
}

.hero__content {
  max-width: 760px;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 6.2vw, 5.7rem);
  font-weight: 600;
  line-height: 0.98;
  color: var(--white);
}

.hero__lead {
  max-width: 540px;
  margin-bottom: 32px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.hero__stats {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__stats li:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.hero__stats strong {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  color: var(--white);
}

.hero__stats span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.hero__promo {
  position: relative;
  align-self: end;
  padding: 30px;
  border: 1px solid rgba(201, 149, 90, 0.4);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 149, 90, 0.23), transparent 55%),
    #fffaf3;
  box-shadow: 0 30px 70px rgba(10, 5, 2, 0.34);
  color: var(--brown-900);
}

.hero__promo-badge {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--caramel);
  color: var(--brown-950);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__promo-price {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
  line-height: 0.95;
  color: var(--brown-900);
}

.hero__promo-text {
  margin-top: 8px;
  max-width: 220px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.hero__promo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(43, 24, 16, 0.3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brown-900);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__promo-link svg {
  width: 16px;
  height: 16px;
}

.hero__promo-link:hover {
  color: var(--brown-600);
  border-color: var(--brown-600);
}

.hero__promo-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--sand);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

.hero__promo-note a {
  font-weight: 700;
  color: var(--brown-800);
  text-decoration: underline;
  text-decoration-color: rgba(75, 46, 30, 0.35);
  text-underline-offset: 3px;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero__scroll span {
  width: 1px;
  height: 30px;
  background: linear-gradient(rgba(255, 255, 255, 0.6), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* ---------- Features ---------- */

.features {
  position: relative;
  z-index: 5;
  margin-top: -52px;
}

.features__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 26px;
  border-right: 1px solid var(--line);
}

.feature:last-child {
  border-right: 0;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--brown-700);
}

.feature__icon svg {
  width: 22px;
  height: 22px;
}

.feature strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brown-900);
}

.feature > div > span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- Ticker ---------- */

.ticker {
  margin-top: 34px;
  padding: 13px 0;
  overflow: hidden;
  background: var(--caramel);
  color: var(--brown-950);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
}

.ticker__group span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__sep {
  opacity: 0.5;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- Section basics ---------- */

.section {
  padding: clamp(64px, 8vw, 110px) 0;
}

.section--dark {
  background: var(--brown-900);
  color: var(--white);
}

.section--dark h2 {
  color: var(--white);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 36px;
  margin-bottom: clamp(30px, 4vw, 50px);
}

.section-head__text {
  max-width: 440px;
  justify-self: end;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.section-head--dark .section-head__text {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Services ---------- */

.services {
  background: var(--cream);
}

.services__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--brown-700);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.tab:hover {
  border-color: var(--brown-600);
}

.tab.is-active {
  background: var(--brown-900);
  border-color: var(--brown-900);
  color: var(--white);
}

.services__hint {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 149, 90, 0.7);
  box-shadow: var(--shadow-card);
}

.service__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 20px;
  margin-bottom: 12px;
}

.service__cat {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-600);
}

.service__badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--caramel);
  color: var(--brown-950);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.service__badge--soft {
  background: var(--cream-2);
  color: var(--brown-700);
}

.service__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.service__name {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--brown-900);
}

.service__price {
  flex: none;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--brown-700);
  white-space: nowrap;
}

.service__desc {
  margin-bottom: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown-800);
  transition: color 0.2s ease, gap 0.2s ease;
}

.service__link svg {
  width: 15px;
  height: 15px;
}

.service__link:hover {
  gap: 12px;
  color: var(--brown-600);
}

.service--feature {
  border-color: var(--brown-900);
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 149, 90, 0.18), transparent 55%),
    var(--brown-900);
}

.service--feature .service__cat {
  color: var(--caramel-2);
}

.service--feature .service__name,
.service--feature .service__price {
  color: var(--white);
}

.service--feature .service__desc {
  color: rgba(255, 255, 255, 0.66);
}

.service--feature .service__link {
  border-top-color: rgba(255, 255, 255, 0.16);
  color: var(--caramel-2);
}

.service--feature .service__link:hover {
  color: var(--white);
}

.service--feature .service__badge {
  background: var(--caramel);
}

.services__note {
  margin-top: 24px;
  max-width: 760px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Masters ---------- */

.masters {
  position: relative;
  overflow: hidden;
}

.masters::before,
.masters::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.masters::before {
  top: -160px;
  right: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(201, 149, 90, 0.14), transparent 68%);
}

.masters::after {
  bottom: -220px;
  left: -180px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(201, 149, 90, 0.09), transparent 68%);
}

.masters .container {
  position: relative;
  z-index: 1;
}

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

.master {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.master:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 149, 90, 0.5);
  background: rgba(255, 255, 255, 0.055);
}

.master__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.master__avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--caramel-2), #9a6438);
  color: var(--brown-950);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.master__name {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
}

.master__role {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel-2);
}

.master__badge {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 7px;
  border: 1px solid rgba(201, 149, 90, 0.45);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--caramel-2);
}

.master__reviews {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.master__reviews svg {
  width: 14px;
  height: 14px;
  color: var(--caramel);
}

.master__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caramel-2);
  transition: color 0.2s ease, gap 0.2s ease;
}

.master__link svg {
  width: 15px;
  height: 15px;
}

.master__link:hover {
  gap: 12px;
  color: var(--white);
}

.masters__note {
  margin-top: 22px;
  max-width: 760px;
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.42);
}

/* ---------- Gallery ---------- */

.gallery {
  background: var(--white);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}

.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--brown-900);
  cursor: zoom-in;
}

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

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

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 10, 5, 0.6), transparent 45%);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.gallery__caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.gallery__item--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 5px;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 149, 90, 0.24), transparent 55%),
    var(--brown-900);
  color: var(--white);
  cursor: pointer;
}

.gallery__item--cta::after {
  display: none;
}

.gallery__cta-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel-2);
}

.gallery__item--cta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s ease;
}

.gallery__item--cta svg {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--caramel-2);
  transition: transform 0.2s ease;
}

.gallery__item--cta:hover strong {
  color: var(--caramel-2);
}

.gallery__item--cta:hover svg {
  transform: translateX(4px);
}

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

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

.video-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 36px;
  margin-top: 16px;
  padding: 28px 32px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 110%, rgba(201, 149, 90, 0.22), transparent 55%),
    var(--brown-900);
  color: var(--white);
}

.video-feature__copy {
  position: relative;
  z-index: 1;
}

.video-feature h3 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--white);
}

.video-feature__copy p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.64);
}

.video-feature__meta {
  margin-top: 16px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.video-feature__media {
  position: relative;
  z-index: 1;
  justify-self: stretch;
  width: 100%;
}

.video-feature__video {
  width: 100%;
  max-width: 100%;
  height: 360px;
  max-height: none;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: #000;
  object-fit: cover;
  object-position: center 38%;
}

/* ---------- Branches ---------- */

.branches {
  background: var(--cream);
}

.branches__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}

.branches__list {
  display: grid;
  align-content: start;
  gap: 16px;
}

.branch {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.branch__num {
  position: absolute;
  top: 10px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 104px;
  font-weight: 600;
  line-height: 1;
  color: var(--cream);
  pointer-events: none;
  user-select: none;
}

.branch__body {
  position: relative;
  z-index: 1;
}

.branch__label {
  margin-bottom: 8px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-600);
}

.branch__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
}

.branch__meta {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.branch__list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.branch__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--brown-800);
}

.branch__list svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--brown-600);
}

.branch__list a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.branch__list a:hover {
  text-decoration-color: var(--brown-600);
}

.branch__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.branches__note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}

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

.branches__note svg {
  width: 15px;
  height: 15px;
  color: var(--brown-600);
}

/* ---------- Branch map ---------- */

.branches__map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #f0e9df;
}

.branch-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.branch-map__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: var(--muted);
}

.branch-map__fallback a {
  color: var(--brown-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.branch-map.leaflet-container {
  background: transparent;
  font-family: var(--font-body);
}

.branch-map .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(43, 24, 16, 0.14);
}

.branch-map .leaflet-control-zoom a {
  width: 32px;
  height: 32px;
  border-color: var(--line);
  background: #fffaf3;
  color: var(--brown-900);
  font-size: 18px;
  line-height: 32px;
}

.branch-map .leaflet-control-zoom a:hover {
  background: var(--cream-2);
  color: var(--brown-950);
}

.branch-map .leaflet-control-attribution {
  background: rgba(255, 250, 243, 0.88);
  color: var(--muted);
  font-size: 9px;
  padding: 2px 6px;
}

.branch-map .leaflet-control-attribution a {
  color: var(--brown-700);
}

.map-pin {
  position: relative;
  width: 38px;
  height: 48px;
  border: 0;
  background: transparent;
}

.map-pin span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--caramel);
  border-radius: 50%;
  background: var(--brown-900);
  color: var(--caramel-2);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(27, 15, 8, 0.35);
  transition: transform 0.2s ease;
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--brown-900);
}

.map-pin:hover span {
  transform: scale(1.06);
}

.leaflet-popup-content-wrapper {
  border-radius: 10px;
  background: var(--brown-900);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(20, 10, 5, 0.3);
}

.leaflet-popup-content {
  margin: 13px 15px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.leaflet-popup-content span {
  display: block;
  margin-bottom: 6px;
}

.leaflet-popup-content a {
  color: var(--caramel-2);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.leaflet-popup-tip {
  background: var(--brown-900);
}

.leaflet-container a.leaflet-popup-close-button {
  color: var(--caramel-2);
}

/* ---------- Reviews ---------- */

.reviews {
  padding-bottom: clamp(44px, 4.5vw, 64px);
  background: var(--white);
}

.reviews__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
}

.rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 149, 90, 0.24), transparent 55%),
    linear-gradient(90deg, rgba(43, 24, 16, 0.97) 0%, rgba(43, 24, 16, 0.9) 46%, rgba(43, 24, 16, 0.62) 100%),
    url("../images/interior.jpg") center / cover no-repeat;
  color: var(--white);
}

.rating__value {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 500;
  line-height: 0.9;
  color: var(--white);
}

.rating .stars {
  margin: 14px 0 10px;
  font-size: 19px;
  color: var(--caramel-2);
}

.rating__text {
  margin-bottom: 20px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
}

.rating__facts {
  width: 100%;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.rating__facts dt {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  color: var(--caramel-2);
}

.rating__facts dd {
  margin-top: 5px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
}

.review {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.review::before {
  content: "“";
  position: absolute;
  top: -22px;
  right: 22px;
  font-family: Georgia, serif;
  font-size: 160px;
  line-height: 1;
  color: var(--sand);
  opacity: 0.55;
  pointer-events: none;
}

.review__stars {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  color: var(--caramel);
  font-size: 16px;
  letter-spacing: 4px;
}

.review blockquote {
  position: relative;
  z-index: 1;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--brown-900);
}

.review figcaption {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.review figcaption strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-800);
}

.review figcaption span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.review--link {
  justify-content: flex-start;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.review--link::before {
  content: "";
}

.review--link::after {
  content: "2ГИС";
  position: absolute;
  right: 22px;
  bottom: 8px;
  font-family: var(--font-display);
  font-size: 82px;
  font-weight: 600;
  line-height: 1;
  color: rgba(43, 24, 16, 0.05);
  pointer-events: none;
}

.review--link:hover {
  transform: translateY(-2px);
  border-color: var(--caramel);
  box-shadow: var(--shadow-card);
}

.review__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--brown-900);
}

.review__text {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.review__more {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 24px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown-800);
}

/* ---------- FAQ ---------- */

.faq {
  padding-top: clamp(44px, 4.5vw, 64px);
  background: var(--cream);
}

.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 56px;
}

.faq__intro {
  position: sticky;
  top: 110px;
}

.faq__intro p:not(.eyebrow) {
  margin-top: 18px;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.faq__phone {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--brown-800);
  transition: color 0.2s ease;
}

.faq__phone:hover {
  color: var(--brown-600);
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  position: relative;
  padding: 21px 44px 21px 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--brown-900);
  list-style: none;
  cursor: pointer;
}

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

.faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  color: var(--brown-600);
  transition: transform 0.25s ease, color 0.25s ease;
}

.faq__item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--caramel);
}

.faq__answer {
  padding: 0 44px 22px 0;
}

.faq__answer p {
  max-width: 620px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding: clamp(74px, 9vw, 118px) 0;
  overflow: hidden;
  background: var(--brown-950);
  color: var(--white);
}

.cta__bg {
  position: absolute;
  inset: 0;
  background: url("../images/interior.jpg") center 40% / cover no-repeat;
  opacity: 0.42;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 12, 6, 0.9), rgba(24, 12, 6, 0.62)),
    radial-gradient(circle at 50% 100%, rgba(201, 149, 90, 0.18), transparent 55%);
}

.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
}

.cta h2 {
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  color: var(--white);
}

.cta__text {
  max-width: 460px;
  margin: 0 auto 30px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 761px) {
  .cta__call {
    display: none;
  }
}

.cta__meta {
  margin-top: 26px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

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

.footer {
  padding: 60px 0 26px;
  background: #180d07;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer__brand p {
  max-width: 280px;
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.7;
}

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

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

.logo--footer .logo__text small {
  color: rgba(255, 255, 255, 0.42);
}

.socials {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}

.social {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.social:hover {
  border-color: var(--caramel);
  background: rgba(201, 149, 90, 0.1);
  color: var(--caramel-2);
}

.footer__col h3 {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel);
}

.footer__col a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s ease;
}

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

.footer__col p {
  margin-top: 8px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.62);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding: 2px 7px;
  border: 1px solid rgba(201, 149, 90, 0.55);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--caramel-2);
  white-space: nowrap;
  vertical-align: middle;
}

.demo-note {
  color: rgba(255, 255, 255, 0.72);
}

.footer__legal a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Mobile bar ---------- */

.mobile-bar {
  display: none;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(18, 9, 4, 0.95);
}

.lightbox.is-open {
  display: grid;
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(100%, 1100px);
}

.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.lightbox__close {
  top: 18px;
  right: 18px;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 18px;
}

.lightbox__nav--next {
  right: 18px;
}

.lightbox svg {
  width: 21px;
  height: 21px;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .services__grid .service:nth-child(3n + 2),
.js .masters__grid .master:nth-child(3n + 2) {
  transition-delay: 0.06s;
}

.js .services__grid .service:nth-child(3n),
.js .masters__grid .master:nth-child(3n) {
  transition-delay: 0.12s;
}

/* ---------- Responsive ---------- */

@media (max-width: 1160px) {
  .nav {
    gap: 18px;
  }

  .header__phone {
    display: none;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
  }
}

@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    box-shadow: 0 24px 40px rgba(43, 24, 16, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav a {
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a::after {
    display: none;
  }

  body.menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .burger {
    display: block;
  }

  .header__actions {
    margin-left: auto;
  }

  .hero {
    min-height: 720px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
  }

  .hero__promo {
    width: 100%;
    max-width: 420px;
    align-self: auto;
  }

  .hero__stats li {
    padding-right: 22px;
    margin-right: 22px;
  }

  .hero__scroll {
    display: none;
  }

  .features__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature:nth-child(2) {
    border-right: 0;
  }

  .feature:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-head__text {
    justify-self: start;
    max-width: 600px;
  }

  .services__grid,
  .masters__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-auto-rows: 170px;
  }

  .video-feature {
    grid-template-columns: 1fr 300px;
    gap: 24px;
  }

  .video-feature__video {
    width: 100%;
    height: 340px;
  }

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

  .branches__map {
    min-height: 480px;
  }

  .branch__num {
    top: 18px;
    right: 18px;
    font-size: 64px;
  }

  .faq__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq__intro {
    position: static;
  }

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

  .mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 252, 247, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 -10px 30px rgba(43, 24, 16, 0.08);
  }

  .mobile-bar__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--brown-800);
  }

  .mobile-bar__icon svg {
    width: 20px;
    height: 20px;
  }

  .mobile-bar__book {
    flex: 1;
    height: 48px;
  }

  body {
    padding-bottom: 78px;
  }
}

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

  .topbar {
    display: none;
  }

  .header__inner {
    min-height: 70px;
    gap: 16px;
  }

  .logo__mark {
    width: 46px;
    height: 46px;
  }

  .logo__text strong {
    font-size: 20px;
  }

  .header__book {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 56px 0 88px;
  }

  .hero__bg {
    background-position: 50% center;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }

  .hero__lead {
    font-size: 15.5px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
  }

  .hero__stats li {
    padding: 0;
    margin: 0;
    border: 0;
  }

  .features {
    margin-top: -44px;
  }

  .feature {
    padding: 18px;
  }

  .feature__icon {
    width: 40px;
    height: 40px;
  }

  .ticker {
    margin-top: 24px;
  }

  .services__grid,
  .masters__grid {
    grid-template-columns: 1fr;
  }

  .services__toolbar {
    align-items: flex-start;
  }

  .services__hint {
    display: none;
  }

  .tab {
    padding: 9px 15px;
    font-size: 12px;
  }

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

  .gallery__item--hero {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .gallery__caption {
    left: 12px;
    bottom: 11px;
    font-size: 9px;
  }

  .video-feature {
    grid-template-columns: 1fr;
    padding: 24px;
    text-align: center;
  }

  .video-feature__copy p:not(.eyebrow) {
    margin-inline: auto;
  }

  .video-feature__media {
    justify-self: center;
  }

  .video-feature__video {
    width: min(100%, 320px);
    max-height: none;
    height: 300px;
  }

  .branch {
    padding: 26px;
  }

  .branch__num {
    font-size: 82px;
    right: 20px;
  }

  .branches__map {
    min-height: 420px;
  }

  .branch-map__chip {
    padding: 7px 10px;
    font-size: 10px;
  }

  .review {
    padding: 28px;
  }

  .rating {
    padding: 28px;
  }

  .rating__value {
    font-size: 80px;
  }

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

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox__nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox__nav--prev {
    left: calc(50% - 60px);
  }

  .lightbox__nav--next {
    right: calc(50% - 60px);
  }

  .lightbox__img {
    max-height: 72vh;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .logo {
    gap: 9px;
  }

  .logo__text strong {
    font-size: 19px;
  }

  .logo__text small {
    font-size: 7px;
    letter-spacing: 0.12em;
  }

  .hero__promo {
    max-width: none;
    padding: 24px;
  }

  .hero__promo-price {
    font-size: 54px;
  }

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

  .feature {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature:last-child {
    border-bottom: 0;
  }

  .feature:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .gallery__item--hero {
    grid-row: span 1;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .video-feature {
    margin-top: 10px;
  }

  .branches__map {
    min-height: 400px;
  }

  .cta__actions .btn {
    width: 100%;
  }
}

/* ---------- Privacy page ---------- */

.page-head {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.page-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-800);
  transition: color 0.2s ease;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.back-link:hover {
  color: var(--brown-600);
}

.privacy {
  padding: 64px 0 96px;
  background: var(--white);
}

.privacy__container {
  max-width: 820px;
}

.privacy h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

.privacy__meta {
  margin-bottom: 34px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.privacy h2 {
  margin: 34px 0 10px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brown-900);
}

.privacy p,
.privacy li {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--muted);
}

.privacy p + p {
  margin-top: 10px;
}

.privacy ul {
  margin: 10px 0 0;
  padding-left: 20px;
  list-style: disc;
}

.privacy li + li {
  margin-top: 6px;
}

.privacy a {
  color: var(--brown-800);
  text-decoration: underline;
  text-decoration-color: rgba(75, 46, 30, 0.35);
  text-underline-offset: 3px;
}

.privacy a:hover {
  color: var(--brown-600);
}

.privacy__note {
  margin-top: 36px;
  padding: 18px 20px;
  border-left: 3px solid var(--caramel);
  background: var(--cream);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-footer {
  padding: 24px 0;
  background: #180d07;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11.5px;
}

.page-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-footer a {
  color: rgba(255, 255, 255, 0.65);
}

.page-footer a:hover {
  color: var(--white);
}

@media (max-width: 760px) {
  .privacy {
    padding: 44px 0 72px;
  }

  .page-head {
    padding: 14px 0;
  }

  .page-head .logo__text small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .ticker__track {
    animation: none;
  }
}
