/* ==========================================================================
   Барбершоп "Бритва" — единый файл стилей всех страниц
   Палитра: раздел 6.2 ТЗ (фоны #0E0E0E/#0A0A0A/#171717, акцент #D97B29)
   Подход: mobile-first, контрольные точки 320 / 576 / 768 / 992 / 1366 / 1920
   ========================================================================== */

/* ---------- 1. Переменные и сброс ---------- */
:root {
  --bg-page: #0E0E0E;
  --bg-header: #0A0A0A;
  --bg-card: #171717;
  --border: #2B2B2B;
  --text-main: #F2EFEA;
  --text-muted: #A8A29E;
  --accent: #D97B29;
  --accent-hover: #E89144;
  --success: #4CAF7D;
  --error: #C94F3D;

  --font-head: "Oswald", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;

  --header-h: 64px;
  --container: 1200px;
  --radius: 8px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-page);
  min-width: 320px;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

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

::selection {
  background: var(--accent);
  color: #140c06;
}

/* Утилиты */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

/* ---------- 2. Типографика ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

h1 {
  font-size: clamp(30px, 6vw, 56px);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(24px, 4.5vw, 38px);
  margin-bottom: 14px;
}

h3 {
  font-size: clamp(19px, 3vw, 24px);
  margin-bottom: 10px;
}

p {
  margin-bottom: 14px;
}

.section {
  padding-block: 56px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section--tight {
  padding-block: 40px;
}

.section__head {
  max-width: 700px;
  margin-bottom: 32px;
}

.section__lead {
  color: var(--text-muted);
  font-size: 17px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.text-muted {
  color: var(--text-muted);
}

/* Текстовая колонка для страницы политики: абзацы не шире ~700 px */
.prose {
  max-width: 700px;
  color: var(--text-muted);
  font-size: 16px;
}

.prose h2 {
  color: var(--text-main);
  margin-top: 28px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  margin-bottom: 12px;
}

.prose ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 14px;
}

.accent {
  color: var(--accent);
}

/* ---------- 3. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn--primary {
  background-color: var(--accent);
  color: #140c06;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--accent-hover);
  color: #140c06;
}

.btn--ghost {
  background-color: transparent;
  border-color: var(--border);
  color: var(--text-main);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* Кнопки мессенджеров: без рамки и без подсветки, при наведении меняют цвет текста */
.btn--whatsapp,
.btn--telegram {
  background-color: transparent;
  border-color: transparent;
  color: var(--text-main);
  min-height: auto;
  padding: 8px 80px;
  border-radius: 0;
  outline: none;
}

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  background-color: transparent;
  border-color: transparent;
  color: #25D366;
}

.btn--telegram:hover,
.btn--telegram:focus-visible {
  background-color: transparent;
  border-color: transparent;
  color: #39A7E0;
}

.btn--full {
  width: 100%;
}

/* ---------- 4. Шапка и навигация ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

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

.logo__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo__text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.logo__text span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Панель меню: на мобильных скрыта, открывается бургером */
.nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav__list {
  display: none;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.nav__burger {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  transition: background-color var(--transition);
}

.nav__burger::before,
.nav__burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  transition: transform var(--transition), top var(--transition);
}

.nav__burger::before {
  top: -7px;
}

.nav__burger::after {
  top: 7px;
}

.nav__toggle[aria-expanded="true"] .nav__burger {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__burger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Мобильное выпадающее меню */
.header__menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 12px 0 20px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition),
    visibility var(--transition);
}

.header__menu a {
  color: var(--text-main);
}

.header__menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-left: 3px solid transparent;
}

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

.nav__link.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
  flex-shrink: 0;
}

.header__phone {
  display: none;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--text-main);
  padding: 6px 8px;
  min-height: 44px;
  align-items: center;
  gap: 8px;
}

.header__phone img {
  width: 18px;
  height: 18px;
}

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

.header__cta {
  display: none;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}

/* Дополнительные кнопки внутри мобильного меню */
.menu-extra {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 4px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.menu-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.menu-phone img {
  width: 18px;
  height: 18px;
}

/* ---------- 5. Главный экран (hero) ---------- */
.hero {
  position: relative;
  padding: 84px 0 60px;
  background-image: url("../img/backgrounds/hero.svg");
  background-size: cover;
  background-position: center;
  background-color: var(--bg-page);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.hero__content {
  max-width: 640px;
}

.hero__title {
  font-size: clamp(34px, 7.5vw, 64px);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--accent);
}

.hero__text {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 28px;
}

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

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 36px;
  color: var(--text-muted);
  font-size: 15px;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta img {
  width: 20px;
  height: 20px;
}

/* Акцентная барбер-полоса: точка стиля */
.barber-stripe {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    #D97B29 0 12px,
    #0E0E0E 12px 24px,
    #F2EFEA 24px 36px
  );
}

/* ---------- 6. Блоки на главной ---------- */
.advantages__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.advantage {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.advantage__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 14px;
}

.advantage__icon img {
  width: 24px;
  height: 24px;
}

.advantage h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.advantage p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 0;
}

/* ---------- 7. Карточки ---------- */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__media img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card__body h3 {
  margin-bottom: 0;
}

.card__footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__price {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.card__price small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.masters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Карточка мастера */
.master-card__photo img {
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  width: 100%;
}

.master-card__name {
  margin-bottom: 2px;
}

.master-card__role {
  color: var(--accent);
  font-size: 14px;
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.master-card__exp {
  font-size: 14px;
  color: var(--text-muted);
}

.master-card .card__body {
  gap: 8px;
}

.master-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.socials {
  display: flex;
  gap: 6px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--bg-page);
}

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

.socials img {
  width: 22px;
  height: 22px;
}

/* ---------- 8. Как записаться (шаги) ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.step {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 22px 70px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
}

.step h3 {
  font-size: 19px;
}

.step p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 0;
}

/* ---------- 9. CTA-блок ---------- */
.cta {
  background-image: url("../img/backgrounds/cta.svg");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 22px;
  text-align: center;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.cta h2 {
  margin-bottom: 10px;
}

.cta p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 24px;
}

/* ---------- 10. Таблицы прайса ---------- */
.price-category + .price-category {
  margin-top: 40px;
}

.price-category__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.price-category__title .card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.price-category__title h2 {
  margin-bottom: 0;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.price-table thead th {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background-color: var(--bg-header);
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-table .price {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
  font-size: 18px;
  white-space: nowrap;
}

.price-table .duration {
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
}

.price-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Абонементы */
.abons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.abon {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.abon--featured {
  border-color: var(--accent);
}

.abon h3 {
  font-size: 19px;
}

.abon__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  color: var(--accent);
  margin: 8px 0;
}

.abon p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 0;
}

/* ---------- 11. Галерея ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition),
    background-color var(--transition);
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: var(--accent);
}

.filter-btn.is-active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #140c06;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gallery-item {
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-main);
}

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.92);
  padding: 20px;
}

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

.lightbox__figure {
  max-width: min(920px, 92vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 74vh;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lightbox__figure figcaption {
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
}

.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
}

.lightbox__btn:hover {
  border-color: var(--accent);
}

.lightbox__btn img {
  width: 22px;
  height: 22px;
}

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

.lightbox__prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- 12. Контакты и форма ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  margin-bottom: 10px;
}

.contact-card h3 img {
  width: 22px;
  height: 22px;
}

.contact-card address {
  font-style: normal;
  color: var(--text-main);
  line-height: 1.6;
}

.contact-card p,
.contact-card li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.contact-card a {
  color: var(--text-main);
}

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

.contacts-messengers {
  display: flex;
  flex-wrap: wrap;
  column-gap: 22px;
  row-gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

/* Форма записи */
.booking {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  padding: 28px 22px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.booking h2 {
  margin-bottom: 8px;
}

.booking__sub {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field label .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background-color: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-main);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.field.is-valid input,
.field.is-valid select,
.field.is-valid textarea {
  border-color: var(--success);
}

.field-error {
  display: none;
  color: var(--error);
  font-size: 13px;
  line-height: 1.4;
}

.field.is-invalid .field-error {
  display: block;
}

.field-hint {
  color: var(--text-muted);
  font-size: 13px;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.checkbox-field input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-height: 24px;
  flex-shrink: 0;
  accent-color: var(--accent);
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-field label {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-field a {
  color: var(--accent);
}

.checkbox-field.is-invalid label {
  color: var(--error);
}

.checkbox-field.is-invalid .field-error {
  display: block;
  margin-top: 6px;
}

/* Экран "Спасибо" */
.thanks {
  text-align: center;
  padding: 28px 0 8px;
}

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

.thanks__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(76, 175, 125, 0.12);
  border: 1px solid rgba(76, 175, 125, 0.5);
  border-radius: 50%;
}

.thanks__icon img {
  width: 34px;
  height: 34px;
}

.thanks h2 {
  margin-bottom: 8px;
}

.thanks p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 22px;
}

.thanks__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto 18px;
}

.thanks__actions .btn img {
  width: 22px;
  height: 22px;
}

/* ---------- 13. Плавающие кнопки мессенджеров ---------- */
.floating-actions {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-actions a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-header);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition), transform var(--transition);
}

.floating-actions a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.floating-actions img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ---------- 14. Подвал ---------- */
.footer {
  background-color: var(--bg-header);
  border-top: 1px solid var(--border);
  margin-top: 56px;
}

.footer__inner {
  padding-block: 44px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer h3 {
  font-size: 16px;
  margin-bottom: 14px;
  letter-spacing: 0.1em;
}

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

.footer__about {
  color: var(--text-muted);
  font-size: 15px;
  margin: 14px 0 16px;
  max-width: 300px;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul a {
  color: var(--text-muted);
  font-size: 15px;
}

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

.footer__contacts address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 4px;
}

.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer__contacts img {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

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

.footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 18px;
}

.footer__copy {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 0;
}

.footer__bottom a {
  font-size: 14px;
}

/* ---------- 15. Страница 404 ---------- */
.error-page {
  min-height: calc(100vh - var(--header-h) - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 16px;
}

.error-page__code {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(88px, 18vw, 160px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.error-page__code span {
  color: var(--text-muted);
}

/* ---------- 16. Брейкпоинты ---------- */
@media (min-width: 576px) {
  .container {
    padding-inline: 24px;
  }

  .header__phone {
    display: inline-flex;
  }

  .header__cta {
    display: inline-flex;
  }

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

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

  .form-row--full {
    grid-template-columns: 1fr;
  }

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

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

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

@media (min-width: 768px) {
  :root {
    --header-h: 76px;
  }

  .nav__toggle {
    display: none;
  }

  .nav {
    justify-content: center;
  }

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

  .nav__list {
    display: flex;
    justify-content: center;
    gap: 4px;
  }

  .menu-extra,
  .menu-extra a {
    display: none;
  }

  .nav__link {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 15px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .nav__link.is-active {
    border-left: none;
    border-bottom-color: var(--accent);
  }

  .hero {
    padding: 120px 0 80px;
  }

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

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

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

  .floating-actions {
    display: none;
  }

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

  .booking {
    padding: 36px 34px;
  }

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

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

@media (min-width: 992px) {
  .advantages__grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .price-table th,
  .price-table td {
    padding: 16px 22px;
  }

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

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

  .footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .map-frame iframe {
    height: 360px;
  }
}

@media (min-width: 1366px) {
  .section {
    padding-block: 72px;
  }

  .hero {
    padding: 150px 0 96px;
  }
}

@media (min-width: 1920px) {
  :root {
    --container: 1320px;
  }
}

/* ---------- 17. Прайс: на телефоне таблица -> список ---------- */
@media (max-width: 767.98px) {
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td {
    display: block;
    width: 100%;
  }

  .price-table thead {
    display: none;
  }

  .price-table tr {
    border-bottom: 1px solid var(--border);
    padding: 6px 14px;
  }

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

  .price-table td {
    border: none;
    padding: 4px 0;
  }

  .price-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-head);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
  }

  .price-table td.name {
    padding-top: 12px;
  }

  .price-table td.price {
    padding-bottom: 12px;
  }
}

/* ---------- 18. Доступность ---------- */
@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;
  }
}


/* Кнопка возврата в портфолио */
.to-portfolio {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 300;
  background: var(--accent);
  color: #140c06;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background-color var(--transition);
}
.to-portfolio:hover,
.to-portfolio:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
