/* =========================================================
   FORMA — nail & beauty studio, single-page business card
   Design tokens live at the top; everything else derives
   from them. Edit here to re-theme the whole site.
   ========================================================= */

:root{
  /* --- color: warm putty base, deep wine accent, brass detail --- */
  --bg:            #F1E7DE;
  --bg-soft:       #F8F1EA;
  --bg-card:       #FBF6EF;
  --blush:         #E7CFC2;
  --ink:           #241A18;
  --ink-soft:      #5B4C46;
  --wine:          #7C2A3B;
  --wine-dark:     #591D2A;
  --brass:         #A9814A;
  --dark:          #2B1620;
  --dark-soft:     #40222F;
  --cream-on-dark: #F5E9DE;
  --line:          rgba(36,26,24,0.12);
  --line-on-dark:  rgba(245,233,222,0.16);

  /* --- type --- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Space Mono", ui-monospace, monospace;

  /* --- shape: banner frames --- */
  --radius-banner: 20px;
  --radius-banner-lg: 24px;
  --radius-card:  28px 28px 28px 6px;
  --radius-pill:  999px;
  --radius-sm:    14px;

  /* --- layout --- */
  --wrap: 1180px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --shadow-soft: 0 20px 40px -24px rgba(36,26,24,0.35);
}

/* ============ RESET ============ */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
ul{ list-style: none; margin: 0; padding: 0; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; cursor: pointer; }
h1,h2,h3{ font-family: var(--font-display); margin: 0; font-weight: 500; }
p{ margin: 0; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible{
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--wine);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 999;
}
.skip-link:focus{
  left: var(--space-3);
  top: var(--space-3);
}

.wrap{
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

/* ============ TYPE HELPERS ============ */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 var(--space-2);
}
.eyebrow--light{ color: var(--brass); }

.section-head{ max-width: 620px; margin-bottom: var(--space-3); }
.section-head h2{ font-size: clamp(28px, 3.6vw, 40px); margin-bottom: var(--space-2); }
.section-lead{ color: var(--ink-soft); font-size: 16px; }

section{ padding-block: var(--space-5); }
.hero{ padding-block: var(--space-3) var(--space-4); }

/* ============ BUTTONS ============ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--wine); color: #fff; }
.btn-primary:hover{ background: var(--wine-dark); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--wine); color: var(--wine); }
.btn-sm{ padding: 10px 20px; font-size: 14px; }
.btn-block{ width: 100%; }

/* ============ HEADER ============ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241,231,222,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}
.logo{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo-dot{ color: var(--wine); }
.logo--light{ color: var(--cream-on-dark); }
.logo--light .logo-dot{ color: var(--brass); }

.main-nav{ display: flex; gap: var(--space-4); }
.main-nav a{
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.main-nav a:hover{ color: var(--wine); }

.header-actions{ display: flex; align-items: center; gap: var(--space-3); }
.header-phone{ font-size: 14px; font-weight: 700; display: none; }

.burger{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.burger span{ width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============ HERO ============ */
.hero-inner{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-4);
  align-items: center;
}
.hero-title{
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.hero-title em{ font-style: italic; color: var(--wine); }
.hero-text{
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: var(--space-3);
}
.hero-actions{ display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); }
.hero-meta{ display: flex; gap: var(--space-3); flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.hero-meta strong{ display: block; font-family: var(--font-display); font-size: 18px; color: var(--ink); }

.hero-visual{
  position: relative;
  display: grid;
  gap: var(--space-2);
  align-content: start;
}
.arch{
  border-radius: var(--radius-banner-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.arch-lg{ width: 100%; aspect-ratio: 3 / 2; }
.arch-sm{
  width: 58%;
  aspect-ratio: 4 / 3;
  justify-self: end;
  margin-top: calc(var(--space-2) * -1);
  border: 4px solid var(--bg);
  box-shadow: 0 12px 28px -12px rgba(36,26,24,0.4);
}

.photo-placeholder{
  display: flex;
  align-items: flex-end;
  padding: var(--space-3);
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(255,255,255,0.5), transparent 55%),
    linear-gradient(160deg, var(--blush), var(--wine) 130%);
  color: #fff;
}
.photo-placeholder--accent{
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(255,255,255,0.4), transparent 55%),
    linear-gradient(160deg, var(--brass), var(--dark) 140%);
}
.photo-placeholder span{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(36,26,24,0.35);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.photo-placeholder img,
.arch img,
.media-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Progressive image reveal */
.media-img{
  opacity: 0;
  transition: opacity .45s ease;
}
.media-img.is-revealed{
  opacity: 1;
}

.arch.is-image-loading,
.gallery-item.is-image-loading{
  position: relative;
  display: block;
  padding: 0;
  background:
    linear-gradient(
      110deg,
      var(--blush) 20%,
      var(--bg-soft) 40%,
      var(--blush) 60%
    );
  background-size: 200% 100%;
  animation: mediaShimmer 1.35s ease-in-out infinite;
}

.arch.is-image-loading > .media-img,
.gallery-item.is-image-loading > .media-img{
  position: relative;
  z-index: 1;
}

@keyframes mediaShimmer{
  0%{ background-position: 100% 0; }
  100%{ background-position: -100% 0; }
}

/* ============ USP STRIP ============ */
.usp{ padding-block: var(--space-4); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usp-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.usp-item{ display: flex; gap: 14px; align-items: flex-start; }
.usp-icon{ font-size: 20px; color: var(--wine); line-height: 1.2; }
.usp-item p{ font-size: 14px; color: var(--ink-soft); }
.usp-item strong{ color: var(--ink); }

/* ============ SERVICES ============ */
.services{
  padding-bottom: var(--space-4);
}
.services-tabs{ display: flex; gap: var(--space-2); margin-bottom: var(--space-3); flex-wrap: wrap; }
.tab-btn{
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all .2s ease;
}
.tab-btn.is-active{ background: var(--wine); border-color: var(--wine); color: #fff; }

.price-list{ background: var(--bg-card); border-radius: var(--radius-card); padding: var(--space-2) var(--space-4); box-shadow: var(--shadow-soft); }
.price-list li{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15.5px;
}
.price-list li:last-child{ border-bottom: none; }
.price-list b{ font-family: var(--font-mono); font-weight: 700; color: var(--wine); white-space: nowrap; }

/* ============ GALLERY ============ */
.gallery{
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 42%);
}
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.gallery-grid .arch{
  border-radius: var(--radius-banner);
  box-shadow: none;
}
.arch-tile{ aspect-ratio: 1 / 1; }

.gallery-item{
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--bg-soft);
  cursor: zoom-in;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  transition: opacity .45s ease, transform .35s ease;
}
.gallery-item:hover img.is-revealed,
.gallery-item:focus-visible img.is-revealed{
  transform: scale(1.04);
}
.gallery-item:focus-visible{
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}
.gallery-item-zoom{
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(36,26,24,0.55);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
}
.gallery-item:hover .gallery-item-zoom,
.gallery-item:focus-visible .gallery-item-zoom{
  opacity: 1;
  transform: translateY(0);
}
.gallery-item:not(.is-image-loaded) .gallery-item-zoom{
  opacity: 0 !important;
}

.gallery-empty{ margin: 0; padding: var(--space-4); text-align: center; color: var(--ink-soft); font-size: 15px; grid-column: 1 / -1; }
.arch:has(> img.is-revealed),
.gallery-item.is-image-loaded{
  display: block;
  padding: 0;
  background: none !important;
  animation: none;
}
.gallery-note{ margin-top: var(--space-3); font-size: 13.5px; color: var(--ink-soft); }
.gallery-note[hidden]{ display: none; }

/* PhotoSwipe caption + hide default corner counter */
.pswp__counter{
  display: none !important;
}
.pswp-forma-caption{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: max-content;
  max-width: min(440px, calc(100% - 28px));
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(36, 26, 24, 0.38);
  border: 1px solid rgba(245, 233, 222, 0.18);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  color: #F5E9DE;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.4);
}
.pswp-forma-caption[hidden]{
  display: none !important;
}
.pswp-forma-caption__title{
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.pswp-forma-caption__count{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* ============ MASTERS ============ */
.master{
  position: relative;
  background:
    radial-gradient(90% 70% at 12% 30%, rgba(231,207,194,0.55), transparent 60%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
}
.masters-list{
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.master-card{
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--space-3) var(--space-4);
  align-items: start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.master-card:last-child{
  padding-bottom: 0;
  border-bottom: none;
}
.master-card-visual{
  position: relative;
  width: 200px;
  max-width: 100%;
}
.master-card-visual::before{
  content: "";
  position: absolute;
  inset: 8% -8% -8% 10%;
  border-radius: var(--radius-banner);
  background:
    radial-gradient(120% 100% at 30% 0%, rgba(255,255,255,0.4), transparent 55%),
    linear-gradient(155deg, var(--blush), rgba(124,42,59,0.28) 130%);
  z-index: 0;
  pointer-events: none;
}
.master-card-photo{
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-banner);
  overflow: hidden;
  box-shadow: 0 18px 36px -24px rgba(36,26,24,0.4);
}
.master-card-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.master-card-copy{ min-width: 0; padding-top: 4px; }
.master-card-copy h3{
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  margin: 0 0 var(--space-2);
}
.master-card-text{
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 var(--space-2);
  max-width: 52ch;
}
.master-card-facts{
  margin: 0;
  padding: 0;
  list-style: none;
}
.master-card-facts li{
  padding: 7px 0;
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.master-card-facts li:first-child{ border-top: none; }
.masters-empty{
  margin: 0;
  padding: var(--space-3) 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ============ BOOKING ============ */
.booking{
  background: var(--dark);
  color: var(--cream-on-dark);
  border-radius: 48px;
  margin-inline: var(--space-3);
  padding-inline: var(--space-4);
}
.booking-inner{
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-5);
  align-items: start;
}
.booking-copy h2{ font-size: clamp(26px, 3.2vw, 36px); color: #fff; margin-bottom: var(--space-2); }
.booking-text{ color: rgba(245,233,222,0.75); margin-bottom: var(--space-3); max-width: 40ch; }
.booking-alt{ display: flex; gap: var(--space-3); flex-wrap: wrap; }
.booking-alt a{
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-pill);
  transition: border-color .2s ease, background .2s ease;
}
.booking-alt a:hover{ background: var(--dark-soft); border-color: var(--brass); }

.booking-form{
  background: var(--bg-card);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
}
.form-row{ margin-bottom: var(--space-3); display: flex; flex-direction: column; gap: 6px; }
.form-row--split{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-row--split > div{ display: flex; flex-direction: column; gap: 6px; }
.form-row label{ font-size: 13.5px; font-weight: 700; }
.form-row .optional{ font-weight: 400; color: var(--ink-soft); }

.form-row input,
.form-row select,
.form-row textarea{
  font: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  width: 100%;
  transition: border-color .2s ease, background .2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{ border-color: var(--wine); background: #fff; }
.form-row textarea{ resize: vertical; min-height: 80px; }

.form-row.has-error input,
.form-row.has-error select{ border-color: #B3261E; }
.form-error{
  font-size: 12.5px;
  color: #B3261E;
  min-height: 1em;
}
.form-hint{
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.form-contact{
  border: 0;
  margin: 0 0 var(--space-3);
  padding: 0;
  min-width: 0;
}
.form-contact legend{
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0;
}
.form-contact .optional{ font-weight: 400; color: var(--ink-soft); }
.contact-pref{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.contact-pref-option{
  cursor: pointer;
}
.contact-pref-option input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.contact-pref-option span{
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.contact-pref-option input:checked + span{
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}
.contact-pref-option input:focus-visible + span{
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}
.contact-handle-label{
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
  display: block;
}

.form-refs-label{
  font-size: 13.5px;
  font-weight: 700;
}
.form-refs .optional{ font-weight: 400; color: var(--ink-soft); }
.refs-input{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.refs-picker{
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 8px 10px 8px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  cursor: pointer;
}
.refs-picker-btn{
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--wine);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
}
.refs-picker-status{
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.refs-input:focus-visible + .refs-picker{
  border-color: var(--wine);
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}
.refs-preview{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.refs-thumb{
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.refs-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.refs-remove{
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(36,26,24,0.72);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.form-check{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
  cursor: pointer;
  position: relative;
}
.form-check input{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.form-check-box{
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 1.5px solid rgba(124,42,59,0.4);
  background: var(--bg-soft);
  position: relative;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.form-check-box::after{
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .15s ease;
}
.form-check input:checked + .form-check-box{
  background: var(--wine);
  border-color: var(--wine);
  box-shadow: 0 6px 14px -8px rgba(124,42,59,0.8);
}
.form-check input:checked + .form-check-box::after{
  transform: rotate(45deg) scale(1);
}
.form-check input:focus-visible + .form-check-box{
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}
.form-check-text{ line-height: 1.45; }
.form-check a{ color: var(--wine); text-decoration: underline; }

.form-status{
  margin-top: var(--space-2);
  font-size: 14px;
  font-weight: 700;
  min-height: 1.4em;
}
.form-status.is-success{ color: #2E7D45; }
.form-status.is-error{ color: #B3261E; }

/* ============ REVIEWS ============ */
.reviews-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.review-card{
  margin: 0;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
}
.stars{ color: var(--brass); letter-spacing: 2px; margin-bottom: var(--space-2); font-size: 14px; }
.review-card blockquote{ margin: 0 0 var(--space-2); font-size: 15px; color: var(--ink); }
.review-card figcaption{ font-size: 13px; color: var(--ink-soft); font-weight: 700; }

/* ============ FOOTER ============ */
.site-footer{
  background: var(--dark);
  color: var(--cream-on-dark);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
}
.footer-inner{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-text{ font-size: 14px; color: rgba(245,233,222,0.7); margin-block: var(--space-2); max-width: 30ch; }
.footer-social{ display: flex; gap: 10px; }
.footer-social a{
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
  transition: border-color .2s ease, background .2s ease;
}
.footer-social a:hover{ background: var(--dark-soft); border-color: var(--brass); }

.footer-col h3{ font-family: var(--font-body); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-bottom: var(--space-2); font-weight: 700; }
address{ font-style: normal; font-size: 14.5px; line-height: 1.9; color: rgba(245,233,222,0.85); }

.hours-list li{ display: flex; justify-content: space-between; font-size: 14.5px; padding: 6px 0; color: rgba(245,233,222,0.85); }

.map-placeholder{
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(135deg, var(--dark-soft), var(--dark-soft) 10px, var(--dark) 10px, var(--dark) 20px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--space-2);
  font-size: 12.5px;
  color: rgba(245,233,222,0.6);
}

.footer-bottom{
  display: flex;
  justify-content: space-between;
  padding-block: var(--space-3);
  font-size: 12.5px;
  color: rgba(245,233,222,0.55);
}
.footer-bottom a{ color: rgba(245,233,222,0.75); text-decoration: underline; }
.footer-bottom a:hover{ color: #fff; }

/* ============ RESPONSIVE ============ */
.main-nav.is-open{
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: var(--space-2) var(--space-3);
}
.main-nav.is-open a{ padding: 14px 0; border-bottom: 1px dashed var(--line); }
.main-nav.is-open a:last-child{ border-bottom: none; }
.burger.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity: 0; }
.burger.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
.burger span{ transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 980px){
  .main-nav{ display: none; }
  .header-phone{ display: none; }
  .burger{ display: flex; }

  .hero{ padding-block: var(--space-2) var(--space-4); }
  .hero-inner{ grid-template-columns: 1fr; gap: var(--space-3); }
  .hero-visual{
    order: -1;
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }
  .arch-sm{ width: 48%; margin-top: calc(var(--space-1) * -1); }

  .usp-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery-grid{ grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .master-card{
    grid-template-columns: 160px minmax(0, 1fr);
    gap: var(--space-3);
  }
  .master-card-visual{ width: 160px; }

  .booking{ border-radius: 32px; margin-inline: var(--space-2); }
  .booking-inner{ grid-template-columns: 1fr; }

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

  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px){
  section{ padding-block: var(--space-4); }
  .hero{ padding-block: var(--space-2) var(--space-3); }
  .hero-title{ font-size: clamp(30px, 8vw, 38px); }
  .hero-visual{ max-width: 100%; }
  .hero .arch-lg{ aspect-ratio: 16 / 10; }
  .arch-sm{ display: none; }

  .usp-grid{ grid-template-columns: 1fr; }
  .gallery{
    padding-top: var(--space-3);
    padding-bottom: var(--space-4);
  }
  .gallery-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .arch-tile{ aspect-ratio: 4 / 5; }
  /* Нечётный последний кадр — мягкое «закрытие» сетки перед мастером */
  .gallery-grid > :last-child:nth-child(odd){
    grid-column: 1 / -1;
    width: min(100%, 82%);
    justify-self: center;
    aspect-ratio: 5 / 4;
    margin-top: 2px;
  }
  .gallery .section-head{ margin-bottom: var(--space-3); }

  .master{
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
    margin-top: 0;
  }
  .masters-list{ gap: var(--space-3); }
  .master-card{
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: var(--space-3);
  }
  .master-card-visual{
    width: 108px;
  }
  .master-card-visual::before{
    inset: 6% -6% -6% 8%;
  }
  .master-card-photo{
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 24px -16px rgba(36,26,24,0.35);
  }
  .master-card-copy{ padding-top: 0; }
  .master-card-copy h3{ font-size: 18px; margin-bottom: 6px; }
  .master-card-text{
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .master-card-facts li{
    padding: 5px 0;
    font-size: 12.5px;
  }

  .form-row--split{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; gap: 6px; }
  .hero-actions .btn{ width: 100%; }
}

/* ============ CMS LOAD STATE ============ */
body.is-loading{
  opacity: 0;
}

body.is-ready{
  opacity: 1;
}

body.is-ready main,
body.is-ready .site-header,
body.is-ready .site-footer{
  visibility: visible;
}

body.is-ready.is-bootstrapped{
  transition: none;
}

body.is-ready.is-bootstrapped main,
body.is-ready.is-bootstrapped .site-header,
body.is-ready.is-bootstrapped .site-footer{
  animation: none;
  opacity: 1;
  transform: none;
}

body.is-ready:not(.is-bootstrapped) main,
body.is-ready:not(.is-bootstrapped) .site-header,
body.is-ready:not(.is-bootstrapped) .site-footer{
  visibility: visible;
  animation: siteReveal .42s ease both;
}

@keyframes siteReveal{
  from{
    opacity: 0;
    transform: translateY(8px);
  }
  to{
    opacity: 1;
    transform: none;
  }
}

.site-error{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: var(--bg);
  color: var(--wine);
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.site-error[hidden]{ display: none !important; }
