/*
Theme Name: Барберная №1
Author: Барберная №1
Description: Фирменная тема барберной с прайсом, товарами и прямой онлайн-записью.
Version: 2.6.9
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: barbernaya-one
*/

:root {
  --black: #080808;
  --black-soft: #111111;
  --panel: #171717;
  --white: #f7f5f0;
  --muted: #aaa69e;
  --gold: #f4c847;
  --gold-deep: #b9870d;
  --line: rgba(255, 255, 255, 0.16);
  --container: 1320px;
  --font-display: "Bona Nova", Georgia, serif;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font:
    400 16px/1.6 Manrope,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

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

a,
button {
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    opacity 0.3s ease;
}

html.js [data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js [data-animate].is-visible {
  opacity: 1;
  transform: none;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

.container {
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--gold);
  color: var(--black);
}

.skip-link:focus {
  transform: none;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(8, 8, 8, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 86px;
  padding-inline: clamp(24px, 6vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  width: 106px;
  height: 72px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: none;
}

.brand img {
  width: 96px;
  height: 82px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 38px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav > a:not(.booking-link) {
  position: relative;
  padding-block: 8px;
  transition: color 0.2s ease;
}

.primary-nav > a:not(.booking-link)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 1px;
  background: var(--gold);
  transition: right 0.2s ease;
}

.primary-nav > a:not(.booking-link):hover {
  color: var(--gold);
}

.primary-nav > a:not(.booking-link):hover::after {
  right: 0;
}

.menu-toggle {
  display: none;
}

.mobile-booking-link {
  display: none;
}

.booking-link {
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--gold);
  color: var(--black);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.booking-link:hover {
  transform: translateY(-2px);
  background: var(--white);
  border-color: var(--white);
}

.booking-link:active {
  transform: translateY(0);
}

.booking-link-pulse {
  animation: booking-pulse 1.6s ease-in-out infinite;
}

.booking-link-large {
  min-height: 60px;
  padding-inline: 34px;
  font-size: 13px;
}

@keyframes booking-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(244, 200, 71, 0.62), 0 0 18px rgba(244, 200, 71, 0.22);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(244, 200, 71, 0), 0 0 30px rgba(244, 200, 71, 0.52);
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100svh;
  min-height: 700px;
  background: #080808;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -3%;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.96) 0 28%,
      rgba(0, 0, 0, 0.28) 56%,
      rgba(0, 0, 0, 0.82)
    ),
    linear-gradient(0deg, #080808 0, transparent 40%, rgba(0, 0, 0, 0.52)),
    url("assets/images/hero-background.jpg") center/cover;
  filter: saturate(0.35) contrast(1.15);
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.hero-grid {
  position: relative;
  height: 100%;
}

.hero-brand {
  position: absolute;
  top: 51%;
  left: clamp(20px, 4vw, 64px);
  z-index: 4;
  width: min(31vw, 390px);
  transform: translateY(-58%);
}

.hero-brand img {
  width: min(100%, 360px);
  mix-blend-mode: screen;
}

.hero-brand p {
  margin: 18px 0 0;
  color: #d5d2cb;
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.55;
  text-transform: uppercase;
}

.hero-art {
  position: absolute;
  right: 2%;
  bottom: -3%;
  z-index: 3;
  width: min(54vw, 720px);
  height: 88%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1000px;
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  inset: 13% 3% 8% 5%;
  border: 1px solid rgba(244, 200, 71, 0.34);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(244, 200, 71, 0.8);
}

.hero-orbit::before {
  top: 20%;
  left: 8%;
}

.hero-orbit::after {
  right: 9%;
  bottom: 18%;
}

.hero-model {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transform-origin: 52% 27%;
  filter: drop-shadow(-26px 30px 32px rgba(0, 0, 0, 0.64));
  transition: transform 0.08s linear;
}

.hero-actions {
  position: absolute;
  left: clamp(20px, 4vw, 64px);
  bottom: clamp(42px, 7vh, 74px);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 28px;
}

.text-link {
  padding-block: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

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

/* Shared sections */
.section {
  padding-block: clamp(76px, 8vw, 116px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
  margin-bottom: 46px;
}

.section-kicker {
  display: block;
  padding-top: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2 {
  max-width: 760px;
  margin: 0;
  font: 700 clamp(36px, 4.5vw, 58px) / 1.07 var(--font-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-heading p {
  max-width: 580px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Price */
.section-price {
  background: #0d0d0d;
  color: var(--white);
}

.section-price .section-heading p {
  color: var(--muted);
}

.section-price .section-heading {
  display: block;
  margin-bottom: 46px;
}

.section-price .section-kicker {
  display: none;
}

.section-price .section-heading h2 {
  max-width: none;
  font-size: clamp(42px, 5vw, 62px);
  letter-spacing: -0.025em;
}

.section-price .section-heading p {
  max-width: 600px;
  margin-top: 18px;
}

.services-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.services-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.services-table th,
.services-table td {
  border-bottom: 1px solid var(--line);
  padding: 24px 14px;
  vertical-align: middle;
}

.services-table thead th {
  padding-top: 28px;
  padding-bottom: 28px;
  color: #d2cec5;
  font:
    800 18px/1 "Roboto Condensed",
    "Arial Narrow",
    Arial,
    sans-serif;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.services-table thead th:first-child {
  width: 56%;
  color: var(--white);
  text-align: left;
}

.services-table thead th strong,
.services-table thead th small {
  display: block;
}

.services-table thead th small {
  margin-top: 7px;
  color: var(--muted);
  font:
    600 11px/1.2 Manrope,
    Arial,
    sans-serif;
  letter-spacing: 0.02em;
  text-transform: none;
}

.services-table thead th strong {
  color: var(--gold);
  font-size: 15px;
}

.services-table tbody tr {
  transition:
    background-color 0.35s ease,
    transform 0.35s ease;
  animation: service-row-in 0.48s both;
}

.services-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.045);
}

.services-table tbody th {
  color: var(--white);
  font:
    700 clamp(15px, 1.35vw, 20px) / 1.25 Manrope,
    Arial,
    sans-serif;
  text-align: left;
  text-transform: uppercase;
}

.services-table tbody th small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: none;
}

.services-table tbody td {
  color: #eeeae2;
  font-size: clamp(16px, 1.55vw, 23px);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

@keyframes service-row-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.js .product-grid > [data-animate]:nth-child(2) {
  transition-delay: 0.08s;
}

.price-table-wrap {
  border: 1px solid #292929;
  background: var(--black);
  color: var(--white);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.price-table th,
.price-table td {
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  text-align: center;
  vertical-align: middle;
}

.price-table tr > *:last-child {
  border-right: 0;
}

.price-table tbody tr:last-child > * {
  border-bottom: 0;
}

.price-table thead th {
  height: 112px;
  background: #121212;
  font-size: 14px;
  text-transform: uppercase;
}

.price-table thead th:first-child {
  width: 43%;
  color: var(--gold);
  font:
    800 25px/1 "Roboto Condensed",
    sans-serif;
  text-align: left;
}

.price-table thead strong,
.price-table thead small {
  display: block;
}

.price-table thead small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.stars {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.price-table tbody th {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.price-table tbody th small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.price-table tbody td {
  font-size: clamp(16px, 1.55vw, 21px);
  font-weight: 800;
  white-space: nowrap;
}

.price-table tbody tr {
  transition: background 0.2s ease;
}

.price-table tbody tr:hover {
  background: #1a1a1a;
}

.price-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
}

.price-action p {
  margin: 0;
  color: var(--muted);
}

.secondary-button {
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.secondary-button:hover {
  transform: translateY(-2px);
  background: var(--gold);
  color: var(--black);
}

.secondary-button:active {
  transform: translateY(0);
}

/* Products */
.section-products {
  background: #121212;
  color: var(--white);
}

.section-products .section-heading p {
  color: var(--muted);
}

.section-products .section-heading {
  display: block;
  text-align: center;
}

.section-products .section-heading h2,
.section-products .section-heading p {
  margin-inline: auto;
}

.product-category + .product-category {
  margin-top: clamp(72px, 8vw, 112px);
}

.product-category-heading,
.catalog-category-heading {
  margin-bottom: 24px;
  padding-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.product-category-heading h3,
.catalog-category-heading h2 {
  margin: 0;
  font: 700 clamp(34px, 4vw, 50px) / 1.07 var(--font-display);
  text-transform: uppercase;
}

.product-category-heading p,
.catalog-category-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.product-category-heading > a {
  padding-bottom: 5px;
  flex: none;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.product-category-heading > a:hover {
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  min-width: 0;
  min-height: 420px;
  padding: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--white);
  border: 1px solid #333;
  border-radius: 18px;
  background: radial-gradient(circle at 55% 38%, rgba(244, 200, 71, 0.07), transparent 55%), linear-gradient(135deg, #252525, #131313 75%);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(244, 200, 71, 0.72);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.product-card-media {
  height: 270px;
  display: grid;
  place-items: center;
}

.product-card-media img {
  width: min(100%, 255px);
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 20px rgba(0, 0, 0, 0.55));
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.06);
}

.product-card > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card h4 {
  margin: 8px 0 0;
  font: 800 clamp(20px, 2vw, 27px) / 1.15 "Rubik", Arial, sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.product-card .product-card-arrow {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 20px;
  line-height: 1;
}


/* Final CTA */
.final-booking {
  background: var(--black);
}

.final-booking-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: center;
}

.final-booking-inner > img {
  width: min(100%, 350px);
  mix-blend-mode: screen;
}

.final-booking h2 {
  max-width: 650px;
}

.final-booking p {
  max-width: 580px;
  margin: 22px 0 32px;
  color: var(--muted);
  line-height: 1.7;
}

/* Footer */
.site-footer {
  background: #030303;
  color: #b8b4ac;
  border-top: 1px solid var(--line);
  padding-bottom: clamp(140px, 18vw, 180px);
}

.footer-main {
  min-height: 190px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
}

.footer-logo {
  width: 120px;
  mix-blend-mode: screen;
}

.footer-main p {
  max-width: 440px;
  margin: 0;
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 150px 20px 0;
  font-size: 12px;
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.simple-page {
  min-height: 70vh;
  padding-block: 150px 80px;
}

.simple-page h1 {
  font: 700 clamp(36px, 4.5vw, 58px) / 1.07 var(--font-display);
}

.entry-content {
  max-width: 760px;
}

.entry-content a {
  color: var(--gold);
  text-decoration: underline;
}

/* Catalog page */
.catalog-hero {
  padding-block: 170px 76px;
  background:
    radial-gradient(circle at 82% 30%, rgba(244, 200, 71, 0.12), transparent 26%),
    #080808;
  border-bottom: 1px solid var(--line);
}

.catalog-hero-inner {
  /* Верх каталога выровнен по основной сетке страницы. */
  max-width: none;
}

.back-link {
  width: fit-content;
  margin-bottom: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

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

.catalog-hero h1 {
  margin: 14px 0 0;
  font: 700 clamp(38px, 4.6vw, 60px) / 1.07 var(--font-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.catalog-hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.products-catalog {
  padding-block: 64px 100px;
  background: #101010;
}

.catalog-jump {
  margin-bottom: clamp(60px, 7vw, 96px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-jump a {
  padding: 14px 20px;
  border: 1px solid rgba(244, 200, 71, 0.38);
  border-radius: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.catalog-jump a:hover {
  border-color: var(--gold);
  background: rgba(244, 200, 71, 0.08);
}

.catalog-category + .catalog-category {
  margin-top: clamp(76px, 9vw, 128px);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.catalog-card {
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 18px;
  background: linear-gradient(135deg, #252525, #141414 75%);
  transition: border-color 0.35s ease, transform 0.35s ease;
}

.catalog-card:hover {
  border-color: rgba(244, 200, 71, 0.62);
  transform: translateY(-4px);
}

.catalog-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(244, 200, 71, 0.08), transparent 60%);
}

.catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.catalog-card:hover .catalog-card-media img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.04);
}

.catalog-card-media-cutout img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.5));
}

.catalog-card:hover .catalog-card-media-cutout img {
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.55));
}

.catalog-card-media > span {
  color: #363636;
  font:
    800 72px/1 "Roboto Condensed",
    "Arial Narrow",
    Arial,
    sans-serif;
}

.catalog-card-body {
  min-height: 130px;
  padding: 24px;
}

.catalog-card-body h3 {
  margin: 0;
  color: var(--white);
  font: 800 clamp(20px, 2vw, 26px) / 1.15 "Rubik", Arial, sans-serif;
  text-transform: uppercase;
}

.catalog-card-body p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 980px) {
  .hero-brand {
    width: min(35vw, 330px);
  }

  .hero-art {
    right: -7%;
    width: 66vw;
  }

  .price-table th,
  .price-table td {
    padding: 15px 12px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 70px;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand {
    width: 78px;
    height: 60px;
  }

  .brand img {
    width: 74px;
    height: 62px;
  }

  .menu-toggle {
    position: relative;
    z-index: 52;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    color: var(--white);
  }

  .mobile-booking-link {
    min-height: 48px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: var(--black);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .menu-toggle span {
    width: 18px;
    height: 1px;
    background: currentColor;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

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

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

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

  .primary-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    min-height: calc(100svh - 70px);
    padding: 30px 22px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: #080808;
    font-size: 17px;
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav > a:not(.booking-link) {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav .booking-link {
    margin-top: 30px;
  }

  .hero {
    height: 100svh;
    min-height: 650px;
  }

  .hero::before {
    background:
      linear-gradient(0deg, #080808 0, transparent 42%, rgba(0, 0, 0, 0.65)),
      url("assets/images/hero-background.jpg") center/cover;
    opacity: 0.8;
  }

  .hero-brand {
    top: 88px;
    left: 50%;
    width: 170px;
    transform: translateX(-50%);
    text-align: center;
  }

  .hero-brand img {
    width: 170px;
    margin-inline: auto;
  }

  .hero-brand p {
    display: none;
  }

  .hero-art {
    right: 50%;
    bottom: 0;
    width: 100vw;
    height: 72%;
    transform: translateX(50%);
  }

  .hero-orbit {
    inset: 13% 7% 8%;
  }

  .hero-actions {
    left: 20px;
    right: 20px;
    bottom: 28px;
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .booking-link {
    width: min(100%, 390px);
  }

  .section {
    padding-block: 70px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 30px;
  }

  .section-kicker {
    padding-top: 0;
  }

  .section h2 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .price-table-wrap {
    border: 0;
    background: transparent;
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td {
    display: block;
    width: 100%;
  }

  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .price-table tbody {
    display: grid;
    gap: 10px;
  }

  .price-table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #292929;
    background: var(--black);
    color: var(--white);
  }

  .price-table tbody th {
    grid-column: 1 / -1;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 17px;
  }

  .price-table tbody td {
    min-width: 0;
    padding: 16px 8px;
    border-bottom: 0;
    font-size: 16px;
    white-space: normal;
  }

  .price-table tbody td::before {
    content: attr(data-label);
    min-height: 34px;
    margin-bottom: 7px;
    display: block;
    color: var(--gold);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .price-action {
    align-items: stretch;
    flex-direction: column;
  }

  .price-action .booking-link {
    width: 100%;
  }

  .section-price .section-heading {
    margin-bottom: 34px;
  }

  .section-price .section-heading h2 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .services-table-wrap {
    overflow: visible;
    border-top: 0;
  }

  .services-table,
  .services-table tbody,
  .services-table tr,
  .services-table th,
  .services-table td {
    display: block;
    width: 100%;
  }

  .services-table {
    min-width: 0;
  }

  .services-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .services-table tbody {
    display: grid;
    gap: 10px;
  }

  .services-table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #292929;
    background: var(--black);
  }

  .services-table tbody th {
    grid-column: 1 / -1;
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
  }

  .services-table tbody td {
    min-width: 0;
    padding: 15px 4px;
    border-bottom: 0;
    font-size: 15px;
    white-space: normal;
  }

  .services-table tbody td::before {
    content: attr(data-label);
    min-height: 30px;
    margin-bottom: 7px;
    display: block;
    color: var(--gold);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .catalog-hero {
    padding-block: 126px 58px;
  }

  .back-link {
    margin-bottom: 36px;
  }

  .catalog-hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .products-catalog {
    padding-block: 40px 70px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-card-body {
    min-height: 170px;
    padding: 18px;
  }

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

  .product-card {
    min-height: 380px;
  }

  .final-booking-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .final-booking-inner > img {
    width: 190px;
  }

  .final-booking .booking-link {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 100px 1fr;
    gap: 24px;
    padding-block: 32px;
  }

  .footer-logo {
    width: 90px;
  }

  .footer-main .booking-link {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .hero-brand {
    width: 145px;
  }

  .hero-brand img {
    width: 145px;
  }

  .hero-art {
    height: 70%;
  }

  .price-table tbody td {
    font-size: 14px;
  }

  .product-card {
    min-height: 380px;
  }

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

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    margin-inline: auto;
  }

  .footer-main .booking-link {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .hero-brand {
    top: 49%;
  }

  .hero-art {
    height: 82%;
  }

  .hero-actions {
    bottom: 24px;
  }
}

@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;
  }

  .hero-model {
    transform: none !important;
  }
}

/* Video led first screen and the new single page sequence */
.header-inner {
  gap: 24px;
}

.primary-nav {
  gap: clamp(12px, 1.55vw, 24px);
  font-size: 11px;
  letter-spacing: 0.045em;
}

.primary-nav .booking-link {
  min-height: 58px;
  padding-inline: 28px;
  font-size: 13px;
}

.hero {
  min-height: 620px;
  height: min(860px, 100svh);
}

.hero::before {
  inset: 0;
  background: url("assets/images/hero-background.jpg") center / cover no-repeat;
  filter: grayscale(0.35) brightness(0.76);
  transform: none;
}

.hero::after {
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.34) 55%, rgba(0, 0, 0, 0.55)),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), transparent 72%);
  mask-image: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.32) brightness(0.72);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  padding-top: 110px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content .section-kicker {
  padding: 0;
  color: var(--gold);
}

.hero-content h1 {
  max-width: 1100px;
  margin: 0;
  font: 700 clamp(48px, 6.5vw, 92px) / 1.05 var(--font-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.7);
}

.hero-content h1 em {
  color: var(--gold);
  font-size: 1.25em;
  font-style: normal;
  white-space: nowrap;
}

.hero-content > p {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--white);
  font-size: clamp(16px, 1.65vw, 22px);
  line-height: 1.5;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.footer-links a {
  min-height: 74px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(244, 200, 71, 0.42);
  background: #111;
  color: var(--white);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer-links a span:last-child {
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  border-color: var(--gold);
  background: #1d1912;
  transform: translateY(-3px);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .footer-bottom {
    padding: 20px 0;
  }

  .footer-links a {
    min-height: 64px;
    padding: 14px;
    font-size: 13px;
    text-align: left;
  }
}

.hero-content .hero-actions {
  position: static;
  margin-top: 32px;
  gap: 32px;
}

.footer-contact p {
  margin: 0 0 8px;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-top: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--white);
  font-size: 25px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  color: var(--gold);
  transform: translateY(4px);
}

.section h2 {
  font-size: clamp(34px, 4.2vw, 54px);
}

.product-card h4 {
  font-size: clamp(20px, 2vw, 27px);
}

#price, #products, #work, #certificate, #booking, #cosmetics, #tools {
  scroll-margin-top: 96px;
}

.certificate-section {
  background: #101010;
  border-top: 1px solid var(--line);
}

.certificate-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(36px, 6vw, 100px);
}

.certificate-copy h2 {
  max-width: 500px;
  margin: 16px 0 0;
}

.certificate-copy p {
  max-width: 470px;
  margin: 24px 0 30px;
  color: var(--muted);
  line-height: 1.7;
}

.certificate-layout > img {
  width: 100%;
  border: 1px solid rgba(244, 200, 71, 0.38);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.4);
}

.final-booking-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visit-card {
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--line);
  background: #111;
}

.visit-card address {
  margin-top: 22px;
  color: var(--white);
  font: normal 800 clamp(24px, 2.7vw, 36px) / 1.12 "Rubik", Arial, sans-serif;
  text-transform: uppercase;
}

.visit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
}

.visit-links a {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

@media (min-width: 761px) and (max-width: 1120px) {
  .header-inner {
    min-height: 78px;
  }

  .mobile-booking-link {
    min-height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    background: var(--gold);
    color: var(--black);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .menu-toggle {
    position: relative;
    z-index: 52;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    color: var(--white);
  }

  .menu-toggle span {
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }

  .primary-nav {
    position: absolute;
    inset: 100% 0 auto;
    height: calc(100svh - 78px);
    padding: 26px max(24px, 4vw);
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    background: #080808;
    font-size: 16px;
  }

  .primary-nav.open { display: flex; }
  .primary-nav > a:not(.booking-link) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .primary-nav .booking-link { margin-top: 24px; }
}

@media (max-width: 760px) {
  .header-inner {
    padding-inline: 24px;
  }

  .product-category-heading,
  .catalog-category-heading {
    align-items: start;
    flex-direction: column;
  }

  .product-category-heading h3,
  .catalog-category-heading h2 {
    font-size: clamp(32px, 8vw, 42px);
  }

  .section h2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .section-price .section-heading h2 {
    font-size: clamp(38px, 10vw, 50px);
  }

  .product-card h4 {
    font-size: clamp(21px, 6vw, 27px);
  }

  .product-card-media {
    height: 220px;
  }

  .mobile-booking-link {
    margin-left: auto;
  }

  .header-inner {
    gap: 12px;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    height: calc(100svh - 70px);
    min-height: 0;
    overflow-y: auto;
    padding-block: 18px 36px;
    font-size: 15px;
  }

  .primary-nav > a:not(.booking-link) {
    padding: 12px 0;
  }

  .primary-nav .booking-link {
    margin-top: 20px;
  }

  .hero {
    height: 86svh;
    min-height: 600px;
  }

  .hero::before {
    background: url("assets/images/hero-background.jpg") center / cover no-repeat;
    opacity: 1;
  }

  .hero-content {
    padding-top: 110px;
    padding-bottom: 92px;
    text-align: center;
    align-items: center;
  }

  .hero-content h1 {
    max-width: 550px;
    font-size: clamp(38px, 10vw, 55px);
  }

  .hero-content > p {
    max-width: 470px;
    margin-top: 20px;
    font-size: 17px;
  }

  .hero-map-links {
    margin-top: 14px;
  }

  .hero-content .hero-actions {
    width: 100%;
    margin-top: 24px;
    align-items: flex-start;
    gap: 18px;
  }

  .hero-content .hero-actions .booking-link {
    width: min(100%, 330px);
  }

  .hero-scroll {
    margin-top: 18px;
  }

  .certificate-layout,
  .final-booking-inner {
    grid-template-columns: 1fr;
  }

  .certificate-layout > img {
    max-width: 650px;
  }
}

@media (max-width: 420px) {
  .hero-content h1 {
    font-size: 38px;
  }

  .hero-scroll {
    display: inline-flex;
  }
}

/* Persistent online booking button */
.floating-booking {
  position: fixed;
  right: max(88px, env(safe-area-inset-right));
  bottom: max(80px, env(safe-area-inset-bottom));
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 120px;
  height: 120px;
  padding: 8px;
  border: 1px solid rgba(244, 200, 71, 0.75);
  border-radius: 50%;
  background: radial-gradient(circle at center, #242019, #080808 78%);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  animation: booking-pulse 1.65s ease-in-out infinite;
}

.floating-booking img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.floating-booking span {
  font-size: inherit;
  text-transform: uppercase;
}

.floating-booking:hover,
.floating-booking:focus-visible {
  background: #28221a;
  border-color: var(--gold);
}

.floating-booking:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .floating-booking {
    right: max(30px, env(safe-area-inset-right));
    left: auto;
    bottom: max(48px, env(safe-area-inset-bottom));
    width: 96px;
    height: 96px;
    font-size: 9px;
    transform: none;
  }

  .floating-booking img {
    width: 54px;
    height: 54px;
  }
}

@media (min-width: 360px) and (max-width: 600px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-card {
    border-radius: 10px;
  }

  .catalog-card-body {
    min-height: 100px;
    padding: 13px;
  }

  .catalog-card-body h3 {
    font-size: 14px;
    line-height: 1.25;
  }

  .catalog-card-body p {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
  }
}

/* Certificate image and purchase contact */
.certificate-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.certificate-layout > img {
  max-width: 760px;
}
