:root {
  --bg: #f8f1ee;
  --surface: #fffaf7;
  --muted-surface: #f0dfda;
  --ink: #281816;
  --muted: #79635f;
  --line: #68372d24;
  --blue: #d66553;
  --blue-dark: #662d26;
  --blue-soft: #f8ddd6;
  --white: #fffaf7;
  --shadow: 0 24px 70px #51241d1c;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); }
body [hidden] { display: none !important; }

.site-header {
  border-bottom-color: #fff8f132;
  background: linear-gradient(180deg, #5a2822d9, #5a282200);
}

.header-avatar { object-fit: cover; }

.hero {
  isolation: isolate;
  min-height: 760px;
  height: auto;
  padding: 148px clamp(38px, 6vw, 112px) 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #5d2923;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 86px 86px;
  opacity: .035;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: auto;
  max-width: 720px;
  padding: 0;
  align-self: center;
}

.hero-kicker {
  margin: 0 0 28px;
  color: #f3b7ac;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fffaf7;
  font-size: clamp(58px, 6.2vw, 100px);
  line-height: .92;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 650px;
  margin: 34px 0 0;
  color: #f8e8e4;
  font-size: clamp(19px, 1.7vw, 27px);
  line-height: 1.45;
}

.hero-actions { margin-top: 38px; }
.hero-actions .button { min-width: 210px; }
.hero-actions .text-link { color: #fff; }
.button:focus-visible { outline: 2px solid #f4a08c; outline-offset: 3px; }
.button-light:is(:hover, :focus-visible) { background: #71372f; color: #fffaf7; }
.button-light:is(:hover, :focus-visible) span { background: #ffffff26; color: #fffaf7; }

.hero-facts {
  margin-top: 42px;
  padding-top: 25px;
  border-top: 1px solid #fff3ec35;
  display: flex;
  gap: 42px;
}

.hero-facts div { display: flex; align-items: center; gap: 11px; }
.hero-facts strong { color: #fffaf7; font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.hero-facts span { max-width: 112px; color: #e8cbc5; font-size: 11px; line-height: 1.35; }

.hero-visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #4b211fed 0%, #4b211fce 40%, #4b211f65 64%, #4b211f18 88%),
    linear-gradient(0deg, #4b211fa6 0%, transparent 54%);
  pointer-events: none;
}
.hero-visual img {
  width: 125%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-lights { position: absolute; top: 0; right: 0; width: min(18%, 300px); height: 38%; z-index: 1; overflow: hidden; pointer-events: none; }
.hero-light { position: absolute; width: 330px; height: 330px; right: -135px; top: -75px; border-radius: 50%; background: radial-gradient(circle, #ffc1ab66 0, #ef8b6b38 34%, transparent 70%); filter: blur(26px); opacity: .55; animation: lightFloat 14s ease-in-out infinite alternate; }
@keyframes lightFloat { to { transform: translate(10px, 18px) scale(1.04); } }

.portrait-stack { position: static !important; top: auto !important; align-self: start; }
.portrait-card { position: static; }
.portrait-main img { object-position: 65% center; }
.portrait-together img { object-position: center 44%; }
.about-copy p,.about-copy .large-copy { color: var(--ink); }

.single-material { max-width: 780px; }
.material-card.single { min-height: 340px; }
.material-card.single h3 { max-width: 620px; font-size: clamp(30px, 4vw, 48px); }
.material-card.single p { max-width: 620px; font-size: 18px; }
.material-card a { color: var(--blue); text-underline-offset: 4px; }

.problems {
  background: #fffaf7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.problem-card {
  min-height: 240px;
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background .25s ease, transform .25s ease;
}

.problem-card:hover { background: #f9e9e4; }
.problem-card h3 { margin: 0 0 15px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.03; letter-spacing: -.04em; }
.problem-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.problems-cta {
  width: 100%;
  min-height: 88px;
  padding: 0 28px;
  border: 1px solid var(--line);
  border-top: 0;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background .2s ease, color .2s ease;
}
.problems-cta span { color: var(--muted); }
.problems-cta b { color: var(--blue); }
.problems-cta:hover { background: var(--blue-dark); color: #fff; }
.problems-cta:hover span,.problems-cta:hover b { color: inherit; }

.tariffs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.tariff-card { padding: 36px; border: 1px solid transparent; border-radius: 4px; background: var(--surface); color: var(--ink); }
.tariff-featured { border-color: #e3a095; box-shadow: 0 18px 55px #4f241b26; }
.tariff-card ul { margin: 28px 0; padding: 0; list-style: none; }
.tariff-card li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); }
.tariff-card li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); }
.tariff-button { width: 100%; }

.booking-dialog {
  width: min(790px, calc(100% - 28px));
  max-height: min(92svh, 960px);
  padding: 34px;
  border-radius: 22px;
  overflow-y: auto;
}
.booking-dialog-head { padding: 0 36px 24px 0; }
.booking-dialog-head .eyebrow { margin-bottom: 10px; }
.booking-dialog-head h2 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.04em; }
.booking-dialog-head > p:last-child { margin: 0; color: var(--blue); font-size: 14px; font-weight: 700; }
.booking-dialog .calendar-card { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.booking-dialog .calendar-head h3 { font-size: 25px; }
.booking-dialog .calendar-head .eyebrow { margin-bottom: 6px; }
.booking-dialog .calendar-weekdays { margin-top: 18px; }
.booking-dialog .calendar-day { min-width: 0; height: clamp(40px, 5vw, 52px); aspect-ratio: auto; }
.booking-dialog .time-panel { min-height: 85px; margin-top: 17px; padding-top: 17px; }
.booking-dialog .time-panel > p { margin: 0 0 11px; color: var(--muted); font-size: 14px; }
.booking-dialog .time-slot.is-selected { border-color: var(--blue); background: var(--blue); color: #fff; }
.booking-unavailable { margin: 16px 2px 0; padding: 15px 18px; border-radius: 10px; background: #f6e5df; color: var(--blue-dark) !important; font-size: 13px; line-height: 1.5; }
.booking-unavailable strong,.booking-unavailable span { display: block; }
.booking-unavailable strong { margin-bottom: 5px; font-size: 15px; }
.booking-unavailable button { margin-top: 14px; padding: 10px 16px; border: 0; border-radius: 999px; background: #d6a99e; color: #fff; cursor: not-allowed; opacity: .7; }
.booking-dialog .modal-close { top: 18px; right: 18px; }

.reviews-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.reviews-heading .section-heading { margin-bottom: 30px; }
.reviews-heading .section-heading > p:last-child { max-width: 560px; margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.reviews-controls { display: flex; gap: 8px; margin-bottom: 34px; }
.reviews-controls button { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.reviews-controls button:hover:not(:disabled) { background: var(--blue); color: #fff; }
.reviews-controls button:disabled { opacity: .35; cursor: default; }
.reviews-grid { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 18px; }
.reviews-grid::-webkit-scrollbar { display: none; }
.review-card { flex: 0 0 clamp(330px, 38vw, 530px); min-height: 330px; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 32px #4f241b0a; display: flex; flex-direction: column; scroll-snap-align: start; }
.review-card .review-quote { height: 52px; color: var(--blue); font: 76px/1 Georgia,serif; }
.review-card p { margin: 12px 0 30px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.56; overflow-wrap: anywhere; }
.review-byline { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 11px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.review-byline strong { display: block; font-size: 13px; }
.review-byline small { display: block; color: var(--muted); font-size: 11px; }

.footer-socials { grid-column: 1 / -1; display: grid; gap: 16px; }
.footer-socials p { margin: 0; color: #f6c0b5; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-socials > div { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-socials a { padding: 14px 18px; border: 1px solid #fff6; border-radius: 999px; background: #ffffff0c; color: #fffaf7; text-decoration: none; }
.footer-socials a:hover { border-color: #f7b5a7; background: #ffffff1c; color: #fff; }
.footer-socials strong { margin-left: 6px; }
body > footer { background: #301a18; color: #f5e8e4; }
body > footer .footer-links a { color: #f5e8e4; }
body > footer .footer-note { color: #c4a9a2; }

@media (max-width: 1080px) {
  .hero { padding-inline: 48px; }
  .hero h1 { font-size: clamp(52px, 7vw, 74px); }
  .problems-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-lights { display: none; }
  .hero { min-height: 740px; padding: 132px 30px 80px; }
  .hero-content { max-width: 720px; }
  .hero-visual img { width: 130%; }
  .hero-visual::after { background: linear-gradient(90deg, #4b211ff2 0%, #4b211fd4 58%, #4b211f58), linear-gradient(0deg, #4b211fb0, transparent 60%); }
  .tariffs { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { background: #5a2822e8; }
  .hero { min-height: 820px; padding: 112px 20px 58px; align-items: flex-start; }
  .hero-content { align-self: flex-start; }
  .hero-kicker { margin-bottom: 18px; font-size: 10px; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .hero-lead { margin-top: 24px; font-size: 18px; }
  .hero-actions { margin-top: 27px; align-items: stretch; }
  .hero-actions .button { width: 100%; min-width: 0; }
  .hero-actions .text-link { align-self: center; }
  .hero-facts { display: none; }
  .hero-visual { top: 63%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%); mask-image: linear-gradient(to bottom, transparent, #000 25%); }
  .hero-visual img { width: 140%; object-position: center top; }
  .hero-visual::after { background: linear-gradient(90deg, #4b211ff7 0%, #4b211fdd 72%, #4b211f75), linear-gradient(0deg, #4b211fd4, transparent 72%); }
  .single-material { max-width: none; }
  .single-material .material-card { min-width: 100%; }
  .problems-grid { grid-template-columns: 1fr; }
  .problem-card { min-height: 205px; padding: 26px 22px; }
  .problems-cta { padding: 20px 22px; align-items: flex-start; flex-direction: column; }
  .tariff-card { padding: 26px 20px; }
  .price { font-size: 58px; }
  .footer-socials > div { display: grid; }
  .footer-socials a { text-align: center; }
  .booking-dialog { padding: 22px 14px; border-radius: 16px; }
  .booking-dialog-head { padding: 0 36px 20px 8px; }
  .booking-dialog .calendar-card { padding: 18px 12px; }
  .booking-dialog .calendar-head h3 { font-size: 22px; }
  .booking-dialog .calendar-weekdays { margin-top: 18px; }
  .reviews-heading { align-items: flex-start; flex-direction: column; gap: 0; }
  .reviews-heading .section-heading { margin-bottom: 14px; }
  .reviews-controls { align-self: flex-end; margin-bottom: 20px; }
  .review-card { flex-basis: min(86vw, 390px); min-height: 310px; padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-light { animation: none; }
}
