/*
Theme Name: Beauty19
Author: Beauty19
Description: Одностраничная тема студии наращивания ресниц: услуги, портфолио, отзывы и запись в WhatsApp.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beauty19
*/

:root {
  --bg: #f3eee8;
  --paper: #fffdfb;
  --ink: #241c19;
  --muted: #5c534e;
  --line: rgba(36, 28, 25, 0.12);
  --gold: #8a6232;
  --rose: #8f4d4a;
  --header-h: 124px;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(36, 28, 25, 0.08);
}

@media (min-width: 421px) {
  :root { --header-h: 72px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 8px);
}

body {
  margin: 0;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}

body.nav-open,
body.lightbox-open { overflow: hidden; }

img { max-width: 100%; display: block; }

button,
input,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 8vw, 62px);
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
}

h3 { margin: 0 0 8px; font-size: 32px; }

p { margin: 0; }

::selection { background: #e7cfc4; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 300;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus { top: calc(12px + env(safe-area-inset-top)); }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

@media (min-width: 900px) {
  .wrap { width: min(1120px, calc(100% - 80px)); }
}

.section,
.footer {
  scroll-margin-top: 8px;
}

.section { padding: 64px 0; }

@media (min-width: 900px) {
  .section { padding: 104px 0; }
}

.about { padding-top: 20px; }

@media (min-width: 900px) {
  .about { padding-top: 36px; }
}

.section--white { background: var(--paper); }

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker--light { color: #e4c7a2; }

.section__head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  max-width: 740px;
}

.section__head p { color: var(--muted); max-width: 46em; }

@media (min-width: 800px) {
  .section__head { margin-bottom: 36px; }
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  max-width: 38em;
}

.prose {
  margin-top: 16px;
  color: var(--muted);
  max-width: 42em;
}

.prose + .prose { margin-top: 12px; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: #f3eee8;
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(36, 28, 25, 0.05);
}

.header__bar {
  position: relative;
  z-index: 46;
  background: #f3eee8;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: var(--header-h);
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
}

@media (max-width: 420px) {
  .header__bar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo burger"
      "phone phone";
    align-items: center;
    column-gap: 8px;
    padding: 8px 0;
  }
  .logo { grid-area: logo; justify-self: start; }
  .burger { grid-area: burger; justify-self: end; }
  a.header__phone {
    grid-area: phone;
    width: max-content;
    margin-left: 0;
    justify-self: start;
    justify-content: flex-start;
    padding: 2px 0 4px;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
}

.logo__mark { width: 34px; height: 34px; flex: none; }

.logo__name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.header__phone {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.header__phone svg { width: 16px; height: 16px; fill: currentColor; }

a.header__cta { display: none; margin-left: 8px; }

.burger {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  position: relative;
  flex: none;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 21px;
  height: 1.5px;
  background: currentColor;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease;
}

.burger span::before { transform: translateY(-7px); }
.burger span::after { transform: translateY(7px); }

.header.is-open .burger span { background: transparent; }
.header.is-open .burger span::before { transform: rotate(45deg); }
.header.is-open .burger span::after { transform: rotate(-45deg); }

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 22, 20, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 40;
}

.header.is-open .backdrop {
  opacity: 1;
  pointer-events: auto;
}

.nav {
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top));
  right: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
  margin: 0;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  background: #f7f3ee;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0s linear 0.35s;
}

.header.is-open .nav {
  transform: none;
  visibility: visible;
  transition: transform 0.35s ease;
}

.nav a {
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
  padding: 10px 4px;
  border-radius: 12px;
}

.nav a.is-active { color: var(--rose); }

.nav__phone {
  margin-top: auto;
  font-size: 26px !important;
  font-family: var(--sans) !important;
  font-weight: 700;
  padding-top: 18px !important;
}

@media (min-width: 560px) {
  .nav {
    width: min(420px, 100%);
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 60px rgba(36, 28, 25, 0.08);
  }
}

@media (min-width: 1000px) {
  .burger,
  .backdrop,
  .nav__phone { display: none; }

  .header__phone { margin-left: 16px; font-size: 15px; }
  a.header__cta { display: inline-flex; }

  .nav {
    position: static;
    transform: none;
    visibility: visible;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: none;
  }

  .nav a {
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    padding: 8px 10px;
    border-radius: 999px;
  }

  .nav a.is-active { background: rgba(36, 28, 25, 0.06); color: var(--ink); }
}

.noscript-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 16px 4px;
  background: var(--paper);
}

.noscript-nav a { font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

.btn:active { transform: scale(0.98); }

.btn--dark { background: var(--ink); color: #f6f1ec; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(36, 28, 25, 0.22); }
.header__cta { min-height: 40px; padding: 0 14px; font-size: 14px; }

@media (hover: hover) {
  .btn--dark:hover { background: #3c312c; }
  .btn--ghost:hover { background: rgba(36, 28, 25, 0.04); }
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.about__grid { display: grid; gap: 28px; }

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    grid-template-areas:
      "intro portrait"
      "more portrait";
    column-gap: 72px;
    row-gap: 8px;
    align-items: center;
  }
  .about__intro { grid-area: intro; }
  .about__more { grid-area: more; }
  .portrait { grid-area: portrait; }
}

.portrait {
  position: relative;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #eadfd6;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.portrait figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

.portrait figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.facts {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}

.facts li {
  padding: 14px 12px 16px 0;
  border-top: 1px solid var(--line);
}

.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.1;
}

.facts span { color: var(--muted); font-size: 14px; }

.price {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 860px;
}

.price li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.price li:last-child { border-bottom: 1px solid var(--line); }

.price__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.price h3 { font-size: clamp(28px, 4vw, 36px); }

.price__cost {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price p {
  margin-top: 8px;
  max-width: 62ch;
  color: var(--muted);
}

.price__time {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (min-width: 800px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

.shot {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #eadfd6;
  aspect-ratio: 1;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  .shot:hover img { transform: scale(1.04); }
}

.reviews__top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.reviews__top .section__head { margin-bottom: 0; }

.reviews__nav { display: flex; gap: 8px; flex: none; }

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

.reviews__scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.reviews__scroller::-webkit-scrollbar { display: none; }

.review {
  flex: 0 0 84%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  padding: 20px 18px 18px;
  border-radius: 20px;
  background: #f7f2ec;
  border: 1px solid var(--line);
}

@media (min-width: 720px) {
  .review { flex-basis: calc((100% - 14px) / 2); }
}

@media (min-width: 1000px) {
  .review { flex-basis: calc((100% - 28px) / 3); }
}

.stars { display: flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }

.review blockquote { margin: 0; flex: 1; }
.review blockquote p { font-size: 16px; line-height: 1.5; }

.review footer { display: grid; gap: 2px; }
.review__name { font-family: var(--serif); font-size: 24px; line-height: 1; }
.review__meta { color: var(--muted); font-size: 13px; }

.faq { display: grid; gap: 0; max-width: 860px; }

.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }

.faq__item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}

.faq__icon {
  width: 22px;
  height: 22px;
  position: relative;
  flex: none;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}

.faq__icon::before { left: 0; right: 0; top: 10px; height: 1.5px; }
.faq__icon::after { top: 0; bottom: 0; left: 10px; width: 1.5px; transition: transform 0.25s ease; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel-inner { overflow: hidden; }
.faq__panel-inner p {
  max-width: 68ch;
  padding-bottom: 18px;
  color: var(--muted);
}

.footer {
  background: #1c1614;
  color: #f4ece6;
  padding: 64px 0 calc(28px + env(safe-area-inset-bottom));
}

@media (min-width: 900px) {
  .footer { padding-top: 96px; }
}

.footer h2 { margin-bottom: 12px; }

.footer__grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
  }
}

.footer__phone {
  display: inline-block;
  margin: 8px 0 12px;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1;
}

.footer__hours { color: #d9cdc4; max-width: 36em; }

.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.mess {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 236, 230, 0.2);
  color: #f6f1ec;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.icon { width: 18px; height: 18px; display: block; flex: none; }

@media (hover: hover) {
  .mess:hover { background: rgba(244, 236, 230, 0.08); }
}

.form-card {
  background: #f7f3ee;
  color: var(--ink);
  border-radius: 24px;
  padding: 22px 18px 18px;
}

@media (min-width: 700px) {
  .form-card { padding: 28px 26px 22px; }
}

.form-card > p { color: var(--muted); margin-bottom: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }

.field label { font-size: 13px; font-weight: 700; }

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(36, 28, 25, 0.14);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
}

.field input { min-height: 48px; }
.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(138, 98, 51, 0.16);
  outline: none;
}

.field.has-error input,
.field.has-error textarea { border-color: #a33b3b; }

.field__error { color: #8d2e2e; font-size: 13px; margin: 0; }

.form-note { margin-top: 10px; color: var(--muted); font-size: 13px; }

.form .btn { width: 100%; }

@media (min-width: 560px) {
  .form .btn { width: auto; }
}

.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--muted); }
.form-success__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.text-btn {
  margin-top: 14px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 236, 230, 0.12);
  color: #cfc3ba;
  font-size: 13px;
}

.footer__bottom a { color: inherit; }

.legal {
  margin-top: 14px;
  color: #b7aba3;
  font-size: 13px;
  max-width: 70ch;
}

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 16, 14, 0.74);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  background: #f7f3ee;
}

.lightbox__img {
  width: 100%;
  max-height: min(68dvh, 720px);
  object-fit: contain;
  background: #efe4dc;
  border-radius: 14px;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 243, 238, 0.94);
  font-weight: 700;
}

.lightbox__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.lightbox__bar p { margin: 0; text-align: center; }
.lightbox__bar strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
}
.lightbox__bar span { color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body.admin-bar .header { top: 32px; }

body.admin-bar .nav {
  top: calc(var(--header-h) + 32px + env(safe-area-inset-top));
  height: calc(100dvh - var(--header-h) - 32px - env(safe-area-inset-top));
}

@media screen and (max-width: 782px) {
  body.admin-bar .header { top: 46px; }

  body.admin-bar .nav {
    top: calc(var(--header-h) + 46px + env(safe-area-inset-top));
    height: calc(100dvh - var(--header-h) - 46px - env(safe-area-inset-top));
  }
}

@media (min-width: 1000px) {
  body.admin-bar .nav {
    top: auto;
    height: auto;
  }
}

.page-title { margin-bottom: 18px; }

.entry + .entry {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.entry-content {
  color: var(--muted);
  max-width: 68ch;
}

.entry-content > * + * { margin-top: 12px; }

.entry-content a { color: var(--rose); }

.entry-content ul,
.entry-content ol { margin: 0; padding-left: 1.2em; }

.pagination { margin-top: 28px; }

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.pagination .page-numbers.current {
  background: var(--ink);
  color: #f6f1ec;
}
