:root {
  --bg: #f4efe8;
  --paper: #faf6f0;
  --card: #f8f3ec;
  --text: #314245;
  --muted: #667476;
  --line: #dbcfc1;
  --brand: #cb7b52;
  --brand-deep: #2f5e62;
  --brand-soft: #dce9e3;
  --brand-dark-surface: #2c5c61;
  --sand: #efe4d5;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(74, 64, 53, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito Sans", "Trebuchet MS", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, #fbf8f3 0, transparent 35%),
    radial-gradient(circle at 100% 0%, #e6efea 0, transparent 28%),
    var(--bg);
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: "PT Serif", "Palatino Linotype", "Book Antiqua", serif;
  line-height: 1.2;
  margin: 0 0 12px;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg), transparent 8%);
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 24%);
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--brand-deep);
}

.hero {
  display: grid;
  gap: 24px;
  padding: 36px 0 12px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(1.9rem, 5.8vw, 3rem);
}

.lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.16rem);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 20px;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 18px rgba(203, 123, 82, 0.22);
}

.btn--primary:hover {
  background: #b96943;
}

.btn--ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.btn--messenger {
  width: 100%;
  background: rgba(255, 248, 241, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--brand-deep);
}

.btn--service {
  min-width: 148px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 16px rgba(203, 123, 82, 0.18);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.chips-title {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.chips li {
  border-left: 2px solid #c9b29b;
  padding-left: 8px;
  font-size: 0.95rem;
  color: #3b474b;
}

.hero__photo-wrap {
  display: flex;
  justify-content: center;
}

.hero__photo {
  width: min(470px, 100%);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.quick-contact {
  padding: 6px 0 30px;
}

.quick-contact__card {
  background: var(--brand-dark-surface);
  color: #f7f1ea;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
  position: relative;
  overflow: hidden;
}

.quick-contact__card::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.first-session {
  padding: 16px 0 10px;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.step__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 0 10px;
  background: #f0e1d5;
  color: var(--brand);
  font-weight: 800;
}

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

.contact-grid {
  display: grid;
  gap: 10px;
}

.section-head {
  margin: 12px 0 14px;
}

section {
  scroll-margin-top: 84px;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-row {
  display: grid;
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 1px solid #e2d8cc;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 8px 18px rgba(61, 54, 44, 0.04);
}

.service-row--accent {
  background: linear-gradient(180deg, #f8f1e7 0%, #f4ece1 100%);
}

.service-row__title {
  display: grid;
  gap: 2px;
  align-content: start;
}

.service-row__title h3 {
  margin-bottom: 0;
}

.service-row__title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-row__desc {
  margin: 0;
  color: var(--muted);
}

.service-row__meta {
  display: grid;
  gap: 12px;
  align-items: center;
}

.service-row__price {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-deep);
}

.details-section {
  padding: 26px 0 10px;
  display: grid;
  gap: 12px;
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  padding: 0;
  overflow: hidden;
}

.detail-card summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.detail-card summary::-webkit-details-marker {
  display: none;
}

.detail-card summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #d7c8ba;
  color: var(--brand);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 120ms ease, background-color 120ms ease;
}

.detail-card[open] summary::after {
  content: "−";
  background: #f3e3d7;
}

.details-body {
  padding: 0 20px 18px;
  color: var(--muted);
}

.details-body ul {
  margin: 0;
  padding-left: 18px;
}

.urgent-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f3e6da;
  color: #5d4a3d;
}

.urgent-note__title {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--brand-deep);
}

.urgent-note p {
  margin: 0;
}

.urgent-note p + p {
  margin-top: 6px;
}

.reviews,
.faq,
.contacts {
  padding-top: 24px;
}

.reviews__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.reviews__nav {
  display: none;
  gap: 8px;
}

.reviews__arrow {
  width: 38px;
  height: 38px;
  border: 1px solid #d9cabd;
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.92);
  color: var(--brand-deep);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.reviews-carousel {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.reviews-carousel::-webkit-scrollbar {
  display: none;
}

.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(84%, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.review-card {
  scroll-snap-align: start;
  min-height: 100%;
  background: #fffaf5;
  border: 1px solid #e5d8cd;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 20px rgba(61, 54, 44, 0.04);
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.review-card__name {
  margin: 0;
  font-weight: 800;
  color: var(--brand-deep);
}

.review-card__stars {
  margin: 0;
  color: var(--brand);
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.review-card__date {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.93rem;
}

.review-card__text {
  margin: 0;
  color: var(--text);
}

.faq details {
  margin-bottom: 10px;
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.contacts {
  padding-bottom: 92px;
}

.contacts__lead {
  margin: 0 0 16px;
  color: var(--muted);
}

.contacts__buttons {
  display: grid;
  gap: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 14px 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  background: rgba(248, 243, 236, 0.94);
  backdrop-filter: blur(6px);
}

.mobile-bar a {
  text-decoration: none;
  text-align: center;
  padding: 14px 8px;
  font-weight: 800;
  color: var(--brand-deep);
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 34px;
    padding-top: 40px;
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-row {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.2fr) auto;
    padding: 22px 24px;
  }

  .reviews-track {
    grid-auto-columns: minmax(46%, 1fr);
  }

  .contacts__buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1020px) {
  .reviews__nav {
    display: inline-flex;
  }

  .reviews-track {
    grid-auto-columns: minmax(32%, 1fr);
  }

  .service-row {
    grid-template-columns: minmax(250px, 0.7fr) minmax(320px, 1.3fr) minmax(170px, auto);
    gap: 28px;
  }

  .service-row__meta {
    min-width: 178px;
    justify-items: end;
  }
}

@media (max-width: 420px) {
  .topbar {
    min-height: 64px;
    justify-content: center;
    padding: 8px 0;
  }

  .brand {
    font-size: 0.95rem;
  }

  .detail-card summary {
    padding: 16px;
  }

  .details-body,
  .faq details p {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 900px) {
  .mobile-bar {
    display: none;
  }

  .contacts {
    padding-bottom: 36px;
  }
}
