/* ===================================================================
   Atelier Blush — styles
   =================================================================== */

:root {
  /* palette */
  --pink:         #efa7c0;   /* primary buttons / marquee */
  --pink-deep:    #ec97b4;   /* button hover */
  --pink-panel:   #f6c4d4;   /* services accordion section */
  --pink-soft:    #fcebf1;   /* booking form background */
  --pink-footer:  #f7cedb;   /* footer background */
  --cream:        #faf5ec;   /* warm section background */
  --cream-2:      #fdfaf3;   /* welcome lighter cream */
  --ink:          #211b19;   /* primary text */
  --ink-soft:     #5b524e;   /* secondary text */
  --rose:         #d97c9c;   /* accent labels + hand-drawn strokes */
  --white:        #ffffff;
  --line:         rgba(33, 27, 25, 0.14);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1280px;
  --maxw-wide: 1500px;
  --radius: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream-2);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 { margin: 0; font-weight: 500; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 40px;
}

.container-wide {
  width: 100%;
  max-width: var(--maxw-wide);
  margin-inline: auto;
  padding-inline: 40px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 16px 30px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-pink {
  background: var(--pink);
  color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(217, 124, 156, 0.8);
}
.btn-pink:hover {
  background: var(--pink-deep);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 36px; font-size: 15px; }
.btn-block { width: 100%; padding: 20px; font-size: 15px; }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 18px;
}

/* hand-drawn underline / ellipse decorations */
.u-word { position: relative; white-space: nowrap; }
.deco-underline {
  position: absolute;
  left: 0;
  bottom: -0.32em;
  width: 100%;
  height: 0.42em;
  overflow: visible;
}
.circle-word { position: relative; display: inline-block; }
.deco-ellipse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  height: 165%;
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
}

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(33, 27, 25, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 84px;
}
.brand {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav {
  display: flex;
  gap: 38px;
  margin-left: auto;
  margin-right: 8px;
  font-size: 15px;
  font-weight: 500;
}
.nav a { position: relative; padding: 4px 0; transition: color 0.2s; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--rose);
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--rose); }
.nav a:hover::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 26px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px 40px 26px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a {
  padding: 12px 0;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid rgba(33,27,25,0.06);
}
.mobile-menu .btn { margin-top: 12px; }
.mobile-menu.open { display: flex; }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  background: var(--cream);
  min-height: 620px;
}
.hero-media { position: relative; overflow: hidden; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px clamp(40px, 6vw, 110px) 70px clamp(40px, 5vw, 90px);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 34px;
}
.hero-title .circle-word {
  font-weight: 700;
  margin-right: 0.12em;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 0 40px;
  line-height: 1.7;
}

/* ===================================================================
   MARQUEE
   =================================================================== */
.marquee {
  background: var(--pink);
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-track .dot { color: var(--white); font-size: 14px; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===================================================================
   WELCOME / TOOLS
   =================================================================== */
.welcome {
  position: relative;
  background: var(--cream-2);
  padding: clamp(90px, 12vw, 160px) 40px;
  overflow: hidden;
}
.welcome-inner {
  max-width: 630px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.welcome-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.1;
  margin-bottom: 30px;
}
.welcome-title em { font-style: italic; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 26px;
  max-width: 220px;
}
.divider .line { flex: 1; height: 1px; background: var(--line); }
.divider .heart { width: 16px; height: 16px; fill: var(--pink); }

.welcome-text {
  font-size: 16.5px;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto;
}

.tool {
  position: absolute;
  width: clamp(120px, 14vw, 215px);
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 24px 34px rgba(120, 80, 95, 0.18));
  pointer-events: none;
}
.tool-scissors { top: 7%;  left: 4%;  width: clamp(90px, 11vw, 170px); transform: rotate(-8deg); }
.tool-brush    { top: 40%; left: 3%;  transform: rotate(14deg); }
.tool-dryer    { top: 8%;  right: 3%; width: clamp(130px, 16vw, 240px); transform: rotate(8deg); }
.tool-comb     { bottom: 8%; right: 5%; width: clamp(95px, 11vw, 165px); transform: rotate(-32deg); }

/* ===================================================================
   SERVICES (accordion)
   =================================================================== */
.services {
  background: var(--pink-panel);
  padding: clamp(40px, 6vw, 90px) 0;
}
.accordion { list-style: none; margin: 0; padding: 0; }
.acc-item {
  border-bottom: 1px solid rgba(33, 27, 25, 0.18);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.acc-item:first-child { border-top: 1px solid rgba(33, 27, 25, 0.18); }

/* the opened block sits on the page background colour, not the pink panel */
.acc-item.open {
  background: var(--cream-2);
  border-radius: 18px;
  border-color: transparent;
  box-shadow: 0 22px 48px -32px rgba(120, 80, 95, 0.5);
}

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  background: none;
  border: none;
  cursor: pointer;
  padding: clamp(26px, 3.4vw, 42px) 0;
  text-align: left;
  font-family: var(--serif);
  color: var(--ink);
}
.acc-num {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  min-width: 56px;
}
.acc-title {
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 500;
  flex: 1;
  line-height: 1.1;
}
.acc-icon {
  position: relative;
  width: 26px; height: 26px;
  flex-shrink: 0;
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.acc-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }   /* horizontal */
.acc-icon::after  { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }    /* vertical */
.acc-item.open .acc-icon::after { transform: translateX(-50%) scaleY(0); opacity: 0; }

.acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s ease;
}
.acc-item.open .acc-body { max-height: 640px; }

.acc-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  gap: clamp(30px, 4vw, 64px);
  padding: 6px 0 clamp(40px, 4vw, 54px) clamp(76px, 8vw, 112px);
}
.acc-desc { color: var(--ink); font-size: 15px; line-height: 1.75; margin: 0; max-width: 320px; }

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  padding: 7px 0;
}
.price-list .star { color: var(--rose); font-size: 12px; }
.price-list .p-name { font-weight: 500; }
.price-list .p-dots {
  flex: 1;
  border-bottom: 1.5px dotted rgba(33,27,25,0.4);
  transform: translateY(-4px);
  margin: 0 4px;
}
.price-list .p-price { font-weight: 600; white-space: nowrap; }

.acc-help {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}

.acc-help p {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  column-gap: 10px;

  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.acc-help .mini-heart {
  grid-column: 1;
  width: 25px;
  height: 25px;
  fill: none;
  flex-shrink: 0;
  margin-top: 1px;
}

.acc-help .text-link {
  grid-column: 2;
  justify-self: start;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}
.text-link .arrow { transition: transform 0.25s; }
.text-link:hover .arrow { transform: translateX(4px); }

/* ===================================================================
   STYLIST
   =================================================================== */
.stylist {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background: var(--cream);
  align-items: stretch;
}
.stylist-media { overflow: hidden; min-height: 520px; }
.stylist-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.stylist-content {
  padding: clamp(60px, 7vw, 110px) clamp(40px, 6vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stylist-title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.12;
  margin-bottom: 28px;
}
.stylist-title em { font-style: italic; color: var(--rose); font-size: 0.78em; display: inline-block; margin-top: 8px; }
.stylist-content p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 18px;
  max-width: 540px;
}
.stylist-stats {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  margin: 18px 0 38px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 48px);
  color: var(--ink);
  line-height: 1;
}
.stat-label { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.stylist-content .btn { align-self: flex-start; }

/* ===================================================================
   ABOUT
   =================================================================== */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;   /* text left, image right */
  background: var(--cream);
  align-items: stretch;
}
.about-media { overflow: hidden; min-height: 540px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.about-content {
  padding: clamp(64px, 7vw, 120px) clamp(40px, 6vw, 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.1;
  margin-bottom: 34px;
}
.about-content p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 20px;
  max-width: 520px;
}
.about-content p:last-child { margin-bottom: 0; }

/* ===================================================================
   shared section heading
   =================================================================== */
.section-head { text-align: center; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head .eyebrow { margin-bottom: 16px; }
.section-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.1;
}
.section-title em { font-style: italic; }

/* ===================================================================
   GALLERY
   =================================================================== */
.gallery {
  background: var(--cream-2);
  padding: clamp(70px, 8vw, 120px) 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.g-card {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 3 / 4;
  background: var(--pink-soft);
}
.g-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.g-card:hover img { transform: scale(1.05); }
.gallery-cta { text-align: center; margin-top: clamp(36px, 4vw, 52px); }

/* ===================================================================
   BOOKING FORM
   =================================================================== */
.booking {
  background: var(--pink-soft);
  padding: clamp(70px, 8vw, 120px) 0;
}
.book-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 26px;
  max-width: 980px;
  margin: 0 auto;
}
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 9px;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(217, 124, 156, 0.35);
  border-radius: 14px;
  padding: 15px 18px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 56px; }
.field input::placeholder,
.field textarea::placeholder { color: #b9a7ad; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(239, 167, 192, 0.22);
}
.field-date { grid-column: 1 / 2; }
.field-comment { grid-column: 2 / 4; }
.field-submit { grid-column: 1 / -1; margin-top: 6px; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px; }
.select-wrap .chevron {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--rose);
  pointer-events: none;
}
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.5; }

.book-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin: 24px 0 0;
  max-width: 980px;
  margin-inline: auto;
}
.book-note.success { color: #1f7a4d; font-weight: 600; }

/* ===================================================================
   CONTACTS
   =================================================================== */
.contacts {
  background: var(--cream);
  padding: clamp(70px, 8vw, 120px) 0;
}
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.contact-col {
  text-align: center;
  padding: 6px clamp(18px, 2.5vw, 40px);
  position: relative;
}
.contact-col + .contact-col::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: rgba(217, 124, 156, 0.4);
}
.c-icon {
  display: inline-flex;
  width: 56px; height: 56px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--rose);
  border-radius: 50%;
  color: var(--rose);
  margin-bottom: 20px;
}
.c-icon svg { width: 26px; height: 26px; }
.c-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 12px;
}
.c-text { font-size: 15.5px; color: var(--ink); line-height: 1.6; margin: 0; }
.c-text a:hover { color: var(--rose); }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: var(--pink-footer);
  padding-top: clamp(56px, 6vw, 84px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand .brand { font-size: 30px; display: inline-block; margin-bottom: 16px; }

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;   /* выравнивание всего содержимого по центру */
  text-align: center;
}

.footer-slogan {
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 6px 0;    /* небольшой отступ снизу, чтобы сердечко было ближе */
}

.footer-heart {
  width: 20px;
  height: 20px;
  fill: var(--rose);
  display: block;       /* чтобы работал margin: auto */
  margin: 0 auto;       /* центрирование по горизонтали */
  flex-shrink: 0;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--ink);
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--ink);
  padding: 6px 0;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover { color: var(--white); padding-left: 4px; }
.footer-subscribe p { font-size: 15px; margin: 0 0 20px; line-height: 1.6; }

.socials { display: flex; gap: 14px; }
.social {
  display: inline-flex;
  width: 50px; height: 50px;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  border-radius: 50%;
  transition: transform 0.25s ease, color 0.2s ease, background-color 0.2s ease;
}
.social svg { width: 100%; height: 100%; overflow: visible; }
.social:hover { color: #c2607f; transform: translateY(-3px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 40px;
  border-top: 1px solid rgba(33, 27, 25, 0.14);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.footer-bottom a:hover { color: var(--ink); }

/* ===================================================================
   SCROLL TO TOP
   =================================================================== */
.to-top {
  position: fixed;
  right: clamp(18px, 3vw, 40px);
  bottom: clamp(18px, 3vw, 40px);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--pink);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(217, 124, 156, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  z-index: 60;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--pink-deep); transform: translateY(-3px); }
.to-top:active { transform: translateY(-1px); }
.to-top svg { width: 23px; height: 23px; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1080px) {
  .acc-grid { grid-template-columns: 1fr 1fr; gap: 28px 44px; }
  .acc-help { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }

  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 380px; max-height: 480px; }
  .hero-content { padding: 54px 40px 64px; }

  .stylist, .about { grid-template-columns: 1fr; }
  .stylist-media, .about-media { min-height: 360px; max-height: 460px; }

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

  .contacts-grid { grid-template-columns: 1fr 1fr; gap: 44px 0; }
  .contact-col:nth-child(3)::before { display: none; }
}

@media (max-width: 720px) {
  .container, .container-wide { padding-inline: 24px; }
  .mobile-menu { padding-inline: 24px; }

  .acc-grid { grid-template-columns: 1fr; padding-left: 0; }
  .acc-head { gap: 16px; }
  .acc-num { min-width: 38px; }

  .book-form { grid-template-columns: 1fr; }
  .field-date, .field-comment { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; padding-inline: 24px; }

  .tool-brush, .tool-comb { display: none; }
  .tool-scissors { width: 70px; top: 3%; }
  .tool-dryer { width: 92px; top: 3%; }

  .stylist-stats { gap: 22px; flex-wrap: wrap; }
}

@media (max-width: 460px) {
  .contacts-grid { grid-template-columns: 1fr; gap: 40px 0; }
  .contact-col::before { display: none !important; }
  .hero-title { font-size: 38px; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===================================================================
   STYLIST + ABOUT — общая сетка 2×2
   =================================================================== */
   .stylist-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 100vh;           /* чтобы строки были равны по высоте */
    background: var(--cream);
  }
  
  /* все ячейки сетки — занимают 100% своей области */
  .stylist-about > * {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  /* ---------- изображения ---------- */
  .stylist-media,
  .about-media {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .stylist-media img,
  .about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* ---------- текстовые блоки ---------- */
  .stylist-content,
  .about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 5vw, 80px) clamp(30px, 4vw, 70px);
    /* убираем старые padding, которые были привязаны к отдельным секциям */
  }
  
  /* дополнительно убираем старые стили для .stylist и .about, чтобы не конфликтовали */
  /* (их можно просто удалить или закомментировать) */

/* =========================================================
   SERVICES — белый раскрытый контент + линии на всю ширину
   ========================================================= */

   .services {
    background: var(--pink-panel);
    overflow-x: hidden;
  }
  
  /* Открытая вкладка сама не становится белой */
  .acc-item.open {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
  
  /* Шапка услуги остаётся розовой */
  .acc-head,
  .acc-item.open .acc-head {
    background: var(--pink-panel);
  }
  
  /* Раскрывающийся блок физически растягиваем на всю ширину экрана */
  .acc-body {
    max-height: 0;
    overflow: hidden;
    background: var(--white);
  
    /* убираем прошлый способ через box-shadow */
    box-shadow: none;
    clip-path: none;
  
    /* full-bleed: выводим блок за пределы .container */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  
    transition: max-height 0.45s ease;
  }
  
  /* Только у открытой вкладки появляются линии на всю ширину */
  .acc-item.open .acc-body {
    max-height: 640px;
    border-top: 1px solid rgba(33, 27, 25, 0.18);
    border-bottom: 1px solid rgba(33, 27, 25, 0.18);
  }
  
  /* Контент возвращаем обратно в ширину контейнера */
  .acc-grid {
    max-width: var(--maxw);
    margin-inline: auto;
  
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 1fr;
    gap: clamp(30px, 4vw, 64px);
  
    padding:
      clamp(28px, 3.5vw, 48px)
      40px
      clamp(40px, 4vw, 54px)
      40px;
  }
  
  /* На телефонах */
  @media (max-width: 720px) {
    .acc-grid {
      grid-template-columns: 1fr;
      padding: 26px 24px 36px;
    }
  }

  /* =========================================================
   ФИНАЛЬНЫЕ ПРАВКИ: HERO, ВАШ МАСТЕР / О НАС, ФОРМА ЗАПИСИ
   ========================================================= */

/* 1. Hero: кнопка теперь по ширине текстового блока выше */
.hero-content > .btn {
  width: min(100%, 440px);
  max-width: 440px;
}

/* 2. Секции "Ваш мастер" и "О нас": уменьшаем изображения красиво */
.stylist-about {
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  grid-template-rows: auto auto;
  min-height: 0;

  padding: clamp(70px, 8vw, 115px) clamp(24px, 5vw, 72px);
  gap: clamp(34px, 5vw, 72px);

  align-items: center;
}

/* Убираем принудительное растягивание ячеек на всю высоту */
.stylist-about > * {
  height: auto;
  overflow: visible;
}

/* Карточки с изображениями */
.stylist-media,
.about-media {
  min-height: 0;
  max-height: none;

  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 60px -34px rgba(120, 80, 95, 0.45);
  background: var(--pink-soft);
}

/* Фото мастера — вертикальное, но не огромное */
.stylist-media {
  aspect-ratio: 4 / 5;
  max-height: 520px;
  align-self: center;
}

/* Фото салона — чуть более горизонтальное */
.about-media {
  aspect-ratio: 4 / 5;
  max-height: 520px;
  align-self: center;
}

.stylist-media img,
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Текстовые блоки становятся легче и аккуратнее */
.stylist-content,
.about-content {
  padding: clamp(28px, 3vw, 48px) 0;
}

.stylist-content p,
.about-content p {
  max-width: 560px;
}

/* Сохраняем правильное расположение во второй строке */
.about-content {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.about-media {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

/* 3. Форма записи: кнопка короче и по центру */
.book-form .field-submit {
  display: flex;
  justify-content: center;
}

.book-form .field-submit .btn-block {
  width: auto;
  min-width: 260px;
  padding: 18px 42px;
}

/* Планшеты и телефоны */
@media (max-width: 900px) {
  .stylist-about {
    grid-template-columns: 1fr;
    padding: clamp(56px, 8vw, 80px) 24px;
    gap: 34px;
  }

  .stylist-media,
  .about-media {
    width: 100%;
    max-width: 580px;
    margin-inline: auto;
    max-height: 420px;
  }

  .stylist-media {
    order: 1;
    aspect-ratio: 4 / 5;
  }

  .stylist-content {
    order: 2;
  }

  .about-content {
    order: 3;
    grid-column: auto;
    grid-row: auto;
  }

  .about-media {
    order: 4;
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .stylist-content,
  .about-content {
    max-width: 640px;
    margin-inline: auto;
  }
}

@media (max-width: 460px) {
  .hero-content > .btn {
    width: 100%;
    max-width: 440px;
  }

  .book-form .field-submit .btn-block {
    width: 100%;
    max-width: 320px;
    min-width: 0;
  }

  .stylist-media,
  .about-media {
    border-radius: 24px;
    max-height: 360px;
  }
}

/* =========================================================
   ФИКС КНОПКИ В ФОРМЕ ЗАПИСИ
   ========================================================= */

   .book-form .field-submit {
    align-items: center;
  }
  
  .book-form .field-submit > button.btn-block {
    width: fit-content !important;
    min-width: 260px;
    max-width: 320px;
    padding-inline: 42px;
  }
  
  /* На маленьких экранах оставляем аккуратную ширину, но не во всю форму */
  @media (max-width: 460px) {
    .book-form .field-submit > button.btn-block {
      width: 100%;
      max-width: 300px;
      min-width: 0;
    }
  }

  /* =========================================================
   ФИКС КАДРИРОВАНИЯ ФОТО В БЛОКЕ "О НАС"
   ========================================================= */

   .about-media img {
    object-position: center 18%;
  }

  /* =========================================================
   HERO — последовательная анимация рисования линий
   1) сначала обводка вокруг POV
   2) потом линия под словом "волосам"
   ========================================================= */

/* Сначала прячем линии через stroke-dashoffset */
.hero .circle-word .deco-ellipse path {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  opacity: 0;
  animation: draw-pov-circle 1.15s ease-out 0.25s forwards;
}

.hero .hero-title .u-word .deco-underline path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  opacity: 0;
  animation: draw-hair-underline 0.85s ease-out 1.35s forwards;
}

/* Анимация обводки вокруг POV */
@keyframes draw-pov-circle {
  0% {
    stroke-dashoffset: 520;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* Анимация линии под словом "волосам" */
@keyframes draw-hair-underline {
  0% {
    stroke-dashoffset: 320;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* Отключаем анимации для пользователей с reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero .circle-word .deco-ellipse path,
  .hero .hero-title .u-word .deco-underline path {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* =========================================================
   WELCOME — залёт инструментов при появлении блока
   ========================================================= */

/* Чуть двигаем предметы ближе к центральному тексту */
.tool-scissors {
  top: 9%;
  left: 10%;
  transform: rotate(-8deg);
}

.tool-brush {
  top: 46%;
  left: 8%;
  transform: rotate(14deg);
}

.tool-dryer {
  top: 9%;
  right: 8%;
  transform: rotate(8deg);
}

.tool-comb {
  bottom: 10%;
  right: 10%;
  transform: rotate(-32deg);
}

/* До появления блока в экране предметы скрыты */
.welcome .tool {
  opacity: 0;
  will-change: transform, opacity;
  transform-origin: center;
}

/* Когда JS добавит класс .tools-animated — запускается последовательный залёт */
.welcome.tools-animated .tool-scissors {
  animation: fly-scissors-in 1.7s cubic-bezier(0.18, 0.9, 0.24, 1.15) 0.05s both;
}

.welcome.tools-animated .tool-dryer {
  animation: fly-dryer-in 1.7s cubic-bezier(0.18, 0.9, 0.24, 1.15) 0.25s both;
}

.welcome.tools-animated .tool-brush {
  animation: fly-brush-in 1.8s cubic-bezier(0.18, 0.9, 0.24, 1.15) 0.45s both;
}

.welcome.tools-animated .tool-comb {
  animation: fly-comb-in 1.8s cubic-bezier(0.18, 0.9, 0.24, 1.15) 0.65s both;
}

/* Ножницы залетают слева снизу по дуге */
@keyframes fly-scissors-in {
  0% {
    opacity: 0;
    transform: translate(-220px, 160px) rotate(-48deg) scale(0.72);
  }

  55% {
    opacity: 1;
    transform: translate(22px, -26px) rotate(8deg) scale(1.05);
  }

  78% {
    transform: translate(-8px, 10px) rotate(-14deg) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(-8deg) scale(1);
  }
}

/* Фен залетает справа сверху */
@keyframes fly-dryer-in {
  0% {
    opacity: 0;
    transform: translate(260px, -130px) rotate(36deg) scale(0.76);
  }

  55% {
    opacity: 1;
    transform: translate(-24px, 24px) rotate(-8deg) scale(1.04);
  }

  78% {
    transform: translate(10px, -8px) rotate(14deg) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(8deg) scale(1);
  }
}

/* Щётка / расчёска слева залетает мягко снизу */
@keyframes fly-brush-in {
  0% {
    opacity: 0;
    transform: translate(-260px, 80px) rotate(64deg) scale(0.74);
  }

  55% {
    opacity: 1;
    transform: translate(28px, -18px) rotate(0deg) scale(1.05);
  }

  78% {
    transform: translate(-10px, 8px) rotate(20deg) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(14deg) scale(1);
  }
}

/* Правая расчёска залетает справа снизу */
@keyframes fly-comb-in {
  0% {
    opacity: 0;
    transform: translate(240px, 140px) rotate(-92deg) scale(0.74);
  }

  55% {
    opacity: 1;
    transform: translate(-24px, -22px) rotate(-18deg) scale(1.05);
  }

  78% {
    transform: translate(10px, 8px) rotate(-38deg) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(-32deg) scale(1);
  }
}

/* На телефонах оставляем предметы аккуратнее */
@media (max-width: 720px) {
  .tool-scissors {
    top: 5%;
    left: 8%;
  }

  .tool-dryer {
    top: 5%;
    right: 7%;
  }
}

/* Для пользователей, у которых отключены анимации */
@media (prefers-reduced-motion: reduce) {
  .welcome .tool {
    opacity: 1;
    animation: none !important;
  }
}

/* =========================================================
   GALLERY / CONTACTS / BOOKING — рисование линий и текста
   ========================================================= */

/* ---------- Галерея: линия под "вдохновляют" ---------- */
.gallery .section-title .deco-underline path {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  opacity: 0;
}

.gallery.line-animated .section-title .deco-underline path {
  animation: draw-gallery-underline 1.05s ease-out 0.15s forwards;
}

@keyframes draw-gallery-underline {
  0% {
    stroke-dashoffset: 360;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* ---------- Контакты: линия под "сияли" ---------- */
.contacts .section-title .deco-underline path {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  opacity: 0;
}

.contacts.line-animated .section-title .deco-underline path {
  animation: draw-contacts-underline 0.9s ease-out 0.15s forwards;
}

@keyframes draw-contacts-underline {
  0% {
    stroke-dashoffset: 240;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* ---------- Форма записи: слово "преображение" пишется по буквам ---------- */

.booking .section-title em.handwrite-ready {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  font-style: italic;
  white-space: pre;
}

.booking .section-title em.handwrite-ready .handwrite-char {
  display: inline-block;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateY(0.16em) rotate(-2deg);
  filter: blur(2px);
  will-change: opacity, clip-path, transform, filter;
}

.booking.line-animated .section-title em.handwrite-ready .handwrite-char {
  animation: handwrite-letter 0.36s cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
  animation-delay: calc(0.12s + var(--i) * 0.075s);
}

@keyframes handwrite-letter {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateY(0.16em) rotate(-2deg);
    filter: blur(2px);
  }

  55% {
    opacity: 1;
    filter: blur(0.6px);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0) rotate(0);
    filter: blur(0);
  }
}

/* Отключение анимаций для reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gallery .section-title .deco-underline path,
  .contacts .section-title .deco-underline path {
    animation: none !important;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .booking .section-title em.handwrite-ready .handwrite-char {
    animation: none !important;
    opacity: 1;
    clip-path: none;
    transform: none;
    filter: none;
  }
}

/* =========================================================
   SKETCH HEART — новое рисованное сердечко + анимация
   ========================================================= */

   .sketch-heart {
    overflow: visible;
    flex-shrink: 0;
  }
  
  .sketch-heart__fill {
    fill: #fb7f9b;
    opacity: 0.92;
  }
  
  .sketch-heart__stroke {
    fill: none;
    stroke: #3b070b;
    stroke-width: 5.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  
  .divider .heart.sketch-heart {
    width: 34px;
    height: 32px;
    fill: none;
  }
  
  .acc-help .mini-heart.sketch-heart {
    width: 25px;
    height: 25px;
    fill: none;
    margin-top: 0;
  }
  
  .footer-heart.sketch-heart {
    width: 42px;
    height: 40px;
    fill: none;
  }
  
  .section-title--booking {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 0.18em;
  }
  
  .booking-heart.sketch-heart {
    width: 0.76em;
    height: 0.76em;
    fill: none;
    transform: translateY(0.12em);
  }
  
  .booking .booking-heart .sketch-heart__fill {
    opacity: 0;
    transform: scale(0.84);
    transform-origin: 50% 58%;
  }
  
  .booking .booking-heart .sketch-heart__stroke {
    stroke-dasharray: 360;
    stroke-dashoffset: 360;
    opacity: 0;
  }
  
  .booking.line-animated .booking-heart .sketch-heart__fill {
    animation: sketch-heart-fill 0.45s ease-out 1.45s forwards;
  }
  
  .booking.line-animated .booking-heart .sketch-heart__stroke--1 {
    animation: sketch-heart-draw 1s ease-out 1.36s forwards;
  }
  
  .booking.line-animated .booking-heart .sketch-heart__stroke--2 {
    animation: sketch-heart-draw 0.95s ease-out 1.46s forwards;
  }
  
  .booking.line-animated .booking-heart .sketch-heart__stroke--3 {
    animation: sketch-heart-draw 1.05s ease-out 1.56s forwards;
  }
  
  .booking.line-animated .booking-heart .sketch-heart__stroke--4 {
    animation: sketch-heart-draw 0.9s ease-out 1.66s forwards;
  }
  
  @keyframes sketch-heart-draw {
    0% {
      stroke-dashoffset: 360;
      opacity: 0;
    }
  
    5% {
      opacity: 1;
    }
  
    100% {
      stroke-dashoffset: 0;
      opacity: 1;
    }
  }
  
  @keyframes sketch-heart-fill {
    0% {
      opacity: 0;
      transform: scale(0.84);
    }
  
    100% {
      opacity: 0.92;
      transform: scale(1);
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .booking .booking-heart .sketch-heart__fill,
    .booking .booking-heart .sketch-heart__stroke {
      animation: none !important;
      opacity: 1;
      stroke-dashoffset: 0;
      transform: none;
    }
  }

  /* =========================================================
   MOBILE FIX — поле даты в форме записи не выезжает за рамки
   ========================================================= */

/* =========================================================
   MOBILE FIX — поле даты в форме записи
   ========================================================= */

   @media (max-width: 720px) {
    .book-form,
    .book-form .field,
    .book-form input,
    .book-form select,
    .book-form textarea {
      min-width: 0;
      max-width: 100%;
    }
  
    .book-form input[type="date"] {
      width: 100%;
      min-width: 0;
      max-width: 100%;
  
      /* фикс высоты */
      height: 56px;
      min-height: 56px;
      line-height: 1.6;
  
      /* такие же отступы, как у остальных полей */
      padding: 15px 18px;
  
      appearance: none;
      -webkit-appearance: none;
    }
  
    .book-form input[type="date"]::-webkit-datetime-edit {
      display: flex;
      align-items: center;
      min-height: 24px;
      line-height: 1.6;
      padding: 0;
    }
  
    .book-form input[type="date"]::-webkit-date-and-time-value {
      text-align: left;
      min-height: 24px;
      line-height: 1.6;
    }
  
    .book-form input[type="date"]::-webkit-calendar-picker-indicator {
      margin-left: 0;
    }
  }
