/* =========================================
   1. ПЕРЕМЕННЫЕ
   ========================================= */
:root {
  /* Цвета */
  --color-bg: #FAFAF8;
  --color-surface: #F0F1EE;
  --color-line: #D9DBD6;
  --color-text: #1A1C1B;
  --color-muted: #5F6460;
  --color-accent: #3e634d;       /* тёмный дымчатый зелёный: кнопки, ссылки */
  --color-accent-soft: #E6EDE8;  /* светлый зелёный: плашки, подложки */
  --color-dark: #141615;         /* тёмные блоки */

  /* Шрифты */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Roboto', system-ui, sans-serif;

  /* Отступы */
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 3.5rem;
  --space-section: clamp(2.75rem, 6vw, 5rem);

  /* Прочее */
  --radius: 4px;
  --transition: 0.4s ease;
  --header-h: 70px;
  --gutter: 1.25rem;
}

/* =========================================
   2. СБРОС И БАЗА
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

p a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

section {
  scroll-margin-top: var(--header-h);
}

/* Видимый фокус для тех, кто ходит по сайту клавишей Tab */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* =========================================
   3. ТИПОГРАФИКА
   ========================================= */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 9vw, 5.5rem);
}

h2 {
  font-size: clamp(1.9rem, 5vw, 3.25rem);
  margin-bottom: var(--space-m);
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.eyebrow {
  margin-bottom: var(--space-s);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
}

/* =========================================
   4. СЕКЦИИ (телефон)
   ========================================= */
.section {
  max-width: 1200px;
  margin-inline: auto;
  padding: var(--space-section) var(--gutter);
}

.section > p:not(.eyebrow) {
  max-width: 600px;
  color: var(--color-muted);
}

.section.section--dark {
  max-width: none;
  padding-inline: max(1.25rem, calc((100% - 1200px) / 2 + 1.25rem));
  background: var(--color-dark);
  color: var(--color-bg);
}

.section--dark > p:not(.eyebrow) {
  color: inherit;
}

.section--dark .eyebrow,
.section--dark p a {
  color: #a7cbb4;
}

/* =========================================
   5. КНОПКА
   ========================================= */
.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn:hover {
  background: transparent;
  color: var(--color-accent);
}

/* =========================================
   7. ЦИФРЫ В БЛОКЕ «ПРО НАС»
   ========================================= */
.facts {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-l);
}

.facts li {
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
}

.facts strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-accent);
}

.facts span {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* =========================================
   8. ОТ ПЛАНШЕТА И ШИРЕ
   ========================================= */
   @media (min-width: 768px) {
  :root {
    --gutter: 2rem;
  }
    .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
  .section {
    padding-inline: 2rem;
  }

  .section.section--dark {
    padding-inline: max(2rem, calc((100% - 1200px) / 2 + 2rem));
  }

  .facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .btn {
    padding: 1rem 2.25rem;
  }


/* =========================================
   9. ШАПКА (телефон)
   ========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--space-s);
  height: var(--header-h);
  padding-inline: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
/* Логотип: на телефоне только монограмма */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-accent);
}

.logo-text {
  display: none;
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-muted);
}

.logo-text strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
}

/* Кнопка в шапке на телефоне скрыта: «Записатися» есть в меню */
.header > .btn {
  display: none;
}

/* Бургер */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}

.burger span {
  width: 26px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition);
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* Мобильное меню: выпадает под шапкой */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem 1.25rem 1.5rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color var(--transition);
}

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

.nav-cta {
  margin-top: var(--space-s);
}

.nav-cta a {
  padding: 0.9rem;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
}

.nav-cta a:hover {
  background: transparent;
  color: var(--color-accent);
}

/* =========================================
   10. HERO
   ========================================= */
.hero {
  --hero-base: #52765b;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--hero-base);
  color: #fff;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(12, 30, 20, 0.58) 0%,
    rgba(12, 30, 20, 0.2) 30%,
    rgba(12, 30, 20, 0) 65%
  ), linear-gradient(
    315deg,
    rgba(18, 45, 29, 0.88) 0%,
    rgba(18, 45, 29, 0.55) 30%,
    rgba(18, 45, 29, 0.18) 65%,
    rgba(18, 45, 29, 0) 100%
  );
  content: "";
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: clamp(23rem, 46vw, 36rem);
  min-width: 0;
}

.hero .eyebrow {
  color: #a7cbb4;
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: var(--space-m);
  font-size: clamp(3rem, 5.5vw, 4.5rem);
}

.hero-text {
  max-width: 520px;
  margin-bottom: var(--space-l);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-portrait {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: min(48vw, 640px);
  margin: 0;
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  -webkit-mask-image: url("../images/master/master-cutout-mask.png");
  -webkit-mask-position: right bottom;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: url("../images/master/master-cutout-mask.png");
  mask-position: right bottom;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.hero .btn {
  background: #fff;
  border-color: #fff;
  color: var(--color-accent);
}

.hero .btn:hover {
  background: transparent;
  color: #fff;
}

/* =========================================
   11. ШАПКА И HERO: ПЛАНШЕТ И ШИРЕ
   ========================================= */
@media (min-width: 280px) {
  .logo-text {
    display: block;
  }
}

/* Полное меню в строку */
@media (min-width: 1024px) {
  .burger,
  .nav-cta {
    display: none;
  }

  .header > .btn {
    display: inline-block;
  }

  .nav {
    position: static;
    flex: 1;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav ul {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2vw, 2rem);
  }

  .nav a {
    padding: 0.5rem 0;
    border: 0;
  }
    .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* =========================================
   13. КАРТОЧКИ УСЛУГ (mobile-first)
   ========================================= */
.services-grid {
  display: grid;
  gap: 1rem;                       /* телефон: одна колонка */
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  background: var(--color-accent-soft);
  border-radius: 50%;
  color: var(--color-accent);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card p:not(.service-price) {
  flex: 1;                         /* текст занимает свободное место, цена прижата вниз */
  margin-bottom: 1.25rem;
  color: var(--color-muted);
}

.service-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-accent);
}

/* Выделенная карточка */
.service-card--featured {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: #fff;
}

.service-card--featured .service-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #A9C2B3;
}

.service-card--featured p:not(.service-price) {
  color: rgba(255, 255, 255, 0.75);
}

.service-card--featured .service-price {
  color: #A9C2B3;
}

/* Подъём при наведении только там, где есть мышь */
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
  }
}

.price-list {
  margin-top: 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: 7px;
  background: #fff;
}

.price-list > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
  padding: 1rem 1.5rem;
  color: var(--color-accent);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.price-list > summary::-webkit-details-marker {
  display: none;
}

.price-list > summary span::before {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
}

.price-list[open] > summary span::before {
  content: "−";
}

.price-list__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding: 0 clamp(1rem, 3vw, 2rem) 2rem;
}

.price-list__group {
  min-width: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
}

.price-list__group h3 {
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.price-list__group dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.9rem;
}

.price-list__group dt {
  min-width: 0;
}

.price-list__group dd {
  flex-shrink: 0;
  text-align: right;
  font-weight: 500;
  white-space: nowrap;
}

.price-list__group dd small {
  display: block;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 300;
}

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

/* =========================================
   14. КАРТКИ ПРОЦЕДУР
   ========================================= */
.technique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: var(--space-l);
}

.technique-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 22, 21, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.technique-card h3 {
  margin: 1.25rem 1.25rem 0.5rem;
}

.technique-card p {
  flex: 1;
  margin: 0 1.25rem 1.25rem;
  color: var(--color-muted);
}

.technique-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--color-surface);
}

@media (hover: hover) {
  .technique-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 14px 32px rgba(20, 22, 21, 0.12);
  }
}

/* =========================================
   15. РЕЗУЛЬТАТИ «ДО І ПІСЛЯ»
   ========================================= */
.results-hint {
  margin: -1rem 0 var(--space-m);
  color: var(--color-muted);
  font-size: 0.9rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.result-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
  perspective: 1200px;
  cursor: pointer;
}

.result-card__tap-hint {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  width: clamp(132px, 54%, 172px);
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.85rem 0.55rem 0.6rem;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(47, 67, 56, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(20, 22, 21, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.result-card__tap-icon {
  position: relative;
  flex: 0 0 38px;
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.result-card__tap-icon::before {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(226, 236, 228, 0.7);
  border-radius: inherit;
  content: "";
  animation: result-card-ripple 2.4s ease-out infinite;
}

.result-card__tap-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  animation: result-card-tap 2.4s ease-in-out infinite;
}

.result-card__tap-label {
  flex: 1;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.result-card:nth-child(2) .result-card__tap-icon svg,
.result-card:nth-child(2) .result-card__tap-icon::before {
  animation-delay: -0.8s;
}

.result-card:nth-child(3) .result-card__tap-icon svg,
.result-card:nth-child(3) .result-card__tap-icon::before {
  animation-delay: -1.6s;
}

.result-card.has-interacted .result-card__tap-hint {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 250ms ease, transform 250ms ease;
}

.result-card.has-interacted .result-card__tap-icon svg,
.result-card.has-interacted .result-card__tap-icon::before {
  animation: none;
}

@keyframes result-card-tap {
  0%, 35%, 100% {
    transform: translateY(0) scale(1);
  }
  42%, 49% {
    transform: translateY(3px) scale(0.94);
  }
  56% {
    transform: translateY(0) scale(1);
  }
}

@keyframes result-card-ripple {
  0%, 30% {
    opacity: 0;
    transform: scale(0.82);
  }
  40% {
    opacity: 0.65;
  }
  75%, 100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

.result-card__inner {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform 750ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.result-card.is-flipped .result-card__inner {
  transform: rotateY(180deg);
}

.result-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
  padding: 0.65rem;
  background: var(--color-bg);
  border: 1px solid rgba(79, 111, 94, 0.45);
  border-radius: inherit;
  box-shadow: 0 10px 28px rgba(20, 22, 21, 0.1), 0 0 0 1px rgba(79, 111, 94, 0.16);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.result-card__face--back {
  transform: rotateY(180deg);
}

.result-card__image {
  display: block;
  flex: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 5px;
  background: var(--color-surface);
  object-fit: cover;
  object-position: center;
}

.result-card__label {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  border-radius: 4px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.result-card:hover .result-card__face {
  border-color: rgba(79, 111, 94, 0.8);
  box-shadow: 0 16px 34px rgba(20, 22, 21, 0.16), 0 0 0 1px var(--color-accent);
}

.result-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 5px;
}

@media (max-width: 767px) {
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .result-card__tap-hint {
    width: calc(100% - 1.5rem);
    gap: 0.45rem;
    padding: 0.45rem 0.55rem;
  }

  .result-card__tap-icon {
    flex-basis: 34px;
    width: 34px;
  }

  .result-card__tap-label {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .result-card__inner {
    aspect-ratio: 3 / 5;
  }

  .result-card:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.425rem);
  }
}

@media (max-width: 380px) {
  .results-grid {
    gap: 0.65rem;
  }

  .result-card:nth-child(3) {
    width: calc(50% - 0.325rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .result-card__inner {
    transition-duration: 1ms;
  }

  .result-card__tap-icon svg,
  .result-card__tap-icon::before {
    animation: none;
  }
}

/* =========================================
   16. ЗАЧІСКИ
   ========================================= */
.hairstyle-intro {
  margin-top: -1rem;
  margin-bottom: var(--space-m);
}

.hairstyle-tab-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  max-width: 660px;
  margin: 0 auto 1.5rem;
  padding: 0.4rem;
  background: var(--color-accent-soft);
  border: 1px solid rgba(79, 111, 94, 0.14);
  border-radius: 999px;
}

.hairstyle-tab {
  padding: 0.75rem 1rem;
  color: var(--color-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.hairstyle-tab[aria-selected="true"] {
  color: #fff;
  background: var(--color-accent);
  box-shadow: 0 4px 12px rgba(20, 22, 21, 0.12);
}

.hairstyle-tab:focus-visible {
  outline-offset: 2px;
}

.hairstyle-panel[hidden] {
  display: none;
}

.hairstyle-panel:not([hidden]) {
  animation: hairstyle-panel-in 450ms ease both;
}

@keyframes hairstyle-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hairstyle-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 1080px;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgba(230, 237, 232, 0.62), rgba(250, 250, 248, 0.96) 65%);
  border: 1px solid rgba(79, 111, 94, 0.2);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20, 22, 21, 0.06);
}

.hairstyle-photo {
  width: 100%;
  max-width: 370px;
  margin-inline: auto;
  padding: 0.55rem;
  background: #fff;
  border: 1px solid rgba(79, 111, 94, 0.32);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(20, 22, 21, 0.1);
}

.hairstyle-photo__frame {
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-surface);
}

.hairstyle-photo__frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

.hairstyle-photo__caption {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.25rem 0.15rem;
  color: var(--color-accent);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hairstyle-copy {
  max-width: 440px;
  padding-block: 1rem;
}

.hairstyle-index {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.hairstyle-index span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hairstyle-copy h3 {
  max-width: 16ch;
  margin: 0.85rem 0 1rem;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.hairstyle-copy > p:not(.hairstyle-index) {
  max-width: 38ch;
  margin-bottom: 1.75rem;
  color: var(--color-muted);
  line-height: 1.8;
}

@media (max-width: 767px) {
  .hairstyle-tab-list {
    gap: 0.2rem;
    margin-bottom: 1rem;
    padding: 0.3rem;
  }

  .hairstyle-tab {
    padding: 0.65rem 0.35rem;
    font-size: 0.72rem;
  }

  .hairstyle-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1rem;
  }

  .hairstyle-photo {
    max-width: 280px;
  }

  .hairstyle-copy {
    max-width: 500px;
    margin-inline: auto;
    padding: 0.25rem 0.25rem 0.5rem;
    text-align: center;
  }

  .hairstyle-index {
    justify-content: center;
  }

  .hairstyle-copy h3,
  .hairstyle-copy > p:not(.hairstyle-index) {
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hairstyle-panel:not([hidden]) {
    animation: none;
  }
}

@media (max-width: 767px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 2.5rem var(--gutter);
  }

  .hero-content {
    display: contents;
  }

  .hero-copy {
    width: auto;
    margin-bottom: 1.75rem;
  }

  .hero h1 {
    max-width: none;
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 9.5vw, 3rem);
  }

  .hero-text {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }

  .hero-portrait {
    position: relative;
    inset: auto;
    width: min(72vw, 340px);
    margin-bottom: -2.5rem;
    justify-self: center;
    pointer-events: none;
  }

  .hero-portrait img {
    height: auto;
  }
}

@media (max-width: 380px) {
  .hero {
    padding-block: 2rem;
  }

  .hero-portrait {
    width: min(72vw, 274px);
    margin-bottom: -2rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.5vw, 2.3rem);
  }
}

/* =========================================
   17. ЗАПИС І КОНТАКТИ
   ========================================= */
.contact-section h2 {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
}

.contact-info,
.contact-map {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(79, 111, 94, 0.2);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20, 22, 21, 0.06);
}

.contact-info {
  display: grid;
  align-content: start;
  gap: 1.75rem;
  background: #f0f3ef;
}

.contact-label {
  margin-bottom: 0.75rem;
  color: var(--color-accent);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-address address strong,
.contact-address address span,
.contact-phone {
  display: block;
}

.contact-address address strong {
  margin-bottom: 0.6rem;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
}

.contact-address address span {
  color: var(--color-muted);
  line-height: 1.7;
}

.contact-phone {
  width: fit-content;
  margin-top: 1rem;
  color: var(--color-accent);
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-phone:hover,
.contact-map__caption a:hover,
.contact-map__credit a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-social,
.contact-hours {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(79, 111, 94, 0.22);
}

.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-social__hint {
  margin-bottom: 0.75rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(79, 111, 94, 0.35);
  border-radius: 4px;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.contact-social-link:hover {
  background: var(--color-accent);
  color: #fff;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hours caption,
.hours th {
  text-align: left;
}

.hours th,
.hours td {
  padding: 0.35rem 0;
  vertical-align: top;
}

.hours th {
  padding-right: 1rem;
  font-weight: 400;
}

.hours td {
  color: var(--color-muted);
  text-align: right;
  white-space: nowrap;
}

.contact-map {
  display: flex;
  flex-direction: column;
  padding: 0.65rem;
  background: #fff;
}

.contact-map__frame {
  flex: 1;
  min-height: 340px;
  overflow: hidden;
  background: var(--color-accent-soft);
  border-radius: 7px;
}

.contact-map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.contact-map__caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0.6rem 0.4rem;
}

.contact-map__caption .contact-label {
  margin-bottom: 0.4rem;
}

.contact-map__caption p:not(.contact-label) {
  max-width: 33ch;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.contact-map__caption > a {
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 500;
}

.contact-map__credit {
  padding: 0.3rem 0.6rem 0.4rem;
  color: var(--color-muted);
  font-size: 0.7rem;
}

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

  .contact-map__frame,
  .contact-map__frame iframe {
    min-height: 300px;
  }
}

@media (max-width: 380px) {
  .contact-map__caption {
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* =========================================
   ВІДГУКИ
   ========================================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: clamp(21rem, calc(34rem - 35vw), 27rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--color-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(26, 28, 27, 0.04);
}

.review-card__mark {
  height: 2.8rem;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
}

.review-card__quote {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.review-card__more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.review-card__more summary::after {
  content: "+";
  font-size: 1.1rem;
}

.review-card__more[open] summary::after {
  content: "−";
}

.review-card__collapse,
.review-card__more[open] .review-card__expand {
  display: none;
}

.review-card__more[open] .review-card__collapse {
  display: inline;
}

.review-card__more > p {
  margin-top: 0.8rem;
}

.review-card__author {
  margin-top: auto;
  padding-top: 1.5rem;
}

.review-card__author cite {
  display: block;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 500;
}

@media (min-width: 768px) {
  .review-card {
    min-height: clamp(21rem, calc(32rem - 16vw), 25rem);
  }
}

@media (max-width: 767px) {
  .reviews-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}

/* =========================================
   18. ПОЯВА ПІД ЧАС ПРОКРУЧУВАННЯ
   ========================================= */
.reveal-pending:not(:focus-within) {
  opacity: 0;
}

.reveal-entering {
  animation: reveal-up 700ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .reveal-entering {
    animation-delay: 0ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-pending:not(:focus-within) {
    opacity: 1;
  }

  .reveal-entering {
    animation: none;
  }
}

/* =========================================
   ПОЛІТИКА КОНФІДЕНЦІЙНОСТІ
   ========================================= */
.privacy-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0, rgba(62, 99, 77, 0.08), transparent 34rem),
    var(--color-bg);
}

.privacy-header {
  justify-content: space-between;
}

.privacy-header .logo {
  margin-right: 0;
}

.privacy-back-link,
.privacy-footer a {
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 500;
}

.privacy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
}

.privacy-main {
  width: min(100% - 2 * var(--gutter), 860px);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem);
}

.privacy-heading {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.privacy-heading .eyebrow {
  margin-bottom: 1rem;
}

.privacy-heading h1 {
  font-size: clamp(2.2rem, 6vw, 4.25rem);
  text-wrap: balance;
}

.privacy-intro {
  max-width: 62ch;
  margin: 1.25rem auto 0;
  color: var(--color-muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.privacy-updated {
  margin-top: 1.5rem;
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.privacy-document {
  padding: clamp(1.25rem, 5vw, 3.5rem);
  border: 1px solid rgba(79, 111, 94, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 55px rgba(20, 22, 21, 0.06);
}

.privacy-section + .privacy-section {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--color-line);
}

.privacy-section h2 {
  margin-bottom: 0.8rem;
  color: var(--color-accent);
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  line-height: 1.3;
}

.privacy-section p,
.privacy-section li,
.privacy-section address {
  color: #414642;
  font-size: 0.94rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.privacy-section p + p,
.privacy-section p + ul,
.privacy-section address {
  margin-top: 0.8rem;
}

.privacy-section ul {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.privacy-section li {
  padding-left: 0.2rem;
}

.privacy-section address span {
  display: block;
}

.privacy-section a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(62, 99, 77, 0.35);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.privacy-section a:hover,
.privacy-back-link:hover,
.privacy-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.privacy-links {
  gap: 0.6rem !important;
}

.privacy-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem max(var(--gutter), calc((100% - 860px) / 2));
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.78rem;
}

@media (max-width: 480px) {
  .privacy-header .logo-text {
    display: none;
  }

  .privacy-back-link {
    font-size: 0.75rem;
  }

  .privacy-section p,
  .privacy-section li,
  .privacy-section address {
    font-size: 0.9rem;
  }

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

@media (max-width: 360px) {
  .privacy-heading h1 {
    font-size: 1.8rem;
  }
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem clamp(0.75rem, 2.4vw, 2rem);
  width: 100%;
  padding: clamp(1.25rem, 3vw, 2rem) var(--gutter);
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: clamp(0.75rem, 0.95vw, 0.875rem);
  line-height: 1.5;
  text-align: center;
}

.footer nav {
  display: flex;
  justify-content: center;
}

.footer a {
  padding: 0.25rem;
  color: var(--color-accent);
  transition: color var(--transition);
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 767px) {
  .footer {
    flex-direction: column;
    gap: 0.2rem;
  }
}
