:root {
  --ink: #243022;
  --forest: #1d271b;
  --forest-soft: #293527;
  --moss: #7f8a67;
  --sage: #b9c2a1;
  --porcelain: #f4efe5;
  --linen: #ddd2bf;
  --gold: #c2a36b;
  --clay: #a98772;
  --white: #fffaf1;
  --line: rgba(244, 239, 229, 0.24);
  --shadow: 0 28px 90px rgba(18, 24, 16, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(4.5rem, 14vw, 12rem);
  line-height: 0.86;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 5.6rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.05rem;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1120px, calc(100% - 32px));
  padding: 12px 14px;
  color: var(--white);
  background: rgba(29, 39, 27, 0.62);
  border: 1px solid rgba(244, 239, 229, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.main-nav,
.site-footer nav,
.hero-actions,
.messenger-row {
  display: flex;
  align-items: center;
}

.brand {
  width: 190px;
  min-width: 190px;
}

.brand-logo {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.hero-logo {
  width: min(620px, 84vw);
  height: auto;
  border-radius: 10px;
}

.main-nav {
  justify-content: center;
  gap: 24px;
  font-size: 0.86rem;
  color: rgba(255, 250, 241, 0.82);
}

.header-action,
.button,
.messenger-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.header-action,
.button-primary {
  color: var(--forest);
  background: var(--gold);
}

.button-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 250, 241, 0.45);
}

.section-dark {
  color: var(--white);
  background: var(--forest);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 138px max(24px, 6vw) 42px;
  overflow: hidden;
}

.hero::after,
.values::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(29, 39, 27, 0.96) 0%, rgba(29, 39, 27, 0.72) 44%, rgba(29, 39, 27, 0.2) 100%),
    linear-gradient(0deg, rgba(29, 39, 27, 0.82), rgba(29, 39, 27, 0.08));
}

.hero-media {
  position: absolute;
  inset: 0;
}

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

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  max-width: 720px;
  min-height: calc(100svh - 220px);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 600px;
  margin-top: 26px;
  color: rgba(255, 250, 241, 0.82);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.about,
.reviews,
.contacts {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.76fr);
  gap: 56px;
  align-items: center;
}

.about-copy p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 22px;
  color: rgba(36, 48, 34, 0.76);
  font-size: 1.12rem;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.about-details article {
  padding: 20px;
  background: var(--white);
  border: 1px solid rgba(36, 48, 34, 0.12);
  border-radius: 8px;
}

.about-details span {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-copy .about-details p {
  margin-top: 10px;
  color: rgba(36, 48, 34, 0.7);
  font-size: 0.92rem;
  line-height: 1.55;
}

.about-photo {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  background: var(--forest-soft);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-photo-stack {
  display: grid;
  min-height: 0;
  padding: 12px;
  gap: 12px;
}

.about-photo-stack::after {
  display: none;
}

.about-photo::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(0deg, rgba(29, 39, 27, 0.28), rgba(29, 39, 27, 0.02));
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-stack img {
  height: auto;
  min-height: 0;
}

.about-photo-main,
.about-photo-portrait {
  border-radius: 6px;
}

.about-photo-main {
  object-position: center;
}

.about-photo-portrait {
  width: 46%;
  justify-self: end;
  margin-top: -150px;
  border: 8px solid var(--forest-soft);
  box-shadow: 0 18px 50px rgba(18, 24, 16, 0.28);
  object-position: center top;
}

.services {
  padding: 96px 0 112px;
  overflow: hidden;
}

.section-heading {
  max-width: 760px;
}

.section-heading.center {
  margin: 0 auto;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px auto 0;
  color: rgba(255, 250, 241, 0.68);
  font-size: 1rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1160px, calc(100% - 40px));
  margin: 52px auto 0;
}

.service-card {
  position: relative;
  display: grid;
  min-height: 340px;
  overflow: hidden;
  align-content: end;
  gap: 16px;
  padding: 26px;
  background:
    linear-gradient(0deg, rgba(29, 39, 27, 0.68), rgba(29, 39, 27, 0.04)),
    var(--service-image);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(12, 18, 10, 0.18);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(194, 163, 107, 0.72);
  box-shadow: 0 26px 80px rgba(12, 18, 10, 0.28);
  outline: none;
  transform: translateY(-4px);
}

.service-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.08), transparent 34%),
    linear-gradient(0deg, rgba(29, 39, 27, 0.72), transparent 58%);
}

.service-card-classic {
  --service-image: url("assets/services/service-classic.svg");
}

.service-card-sport {
  --service-image: url("assets/services/service-sport.svg");
}

.service-card-lymph {
  --service-image: url("assets/services/service-lymph.svg");
}

.service-card-thai {
  --service-image: url("assets/services/service-thai.svg");
}

.service-card-relax {
  --service-image: url("assets/services/service-relax.svg");
}

.service-card-fascia {
  --service-image: url("assets/services/service-fascia.svg");
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: var(--white);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.08;
}

.service-card span {
  position: relative;
  z-index: 1;
  justify-self: start;
  padding: 9px 14px;
  color: var(--white);
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(255, 250, 241, 0.34);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.service-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(18, 24, 16, 0.68);
  border: 0;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.service-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100svh - 48px));
  overflow: auto;
  padding: clamp(28px, 5vw, 48px);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.98), rgba(244, 239, 229, 0.96)),
    var(--porcelain);
  border: 1px solid rgba(194, 163, 107, 0.3);
  border-radius: 8px;
  box-shadow: 0 34px 110px rgba(8, 12, 7, 0.42);
}

.service-modal-panel:focus {
  outline: none;
}

.service-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  color: rgba(36, 48, 34, 0.72);
  background: rgba(36, 48, 34, 0.06);
  border: 1px solid rgba(36, 48, 34, 0.12);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.service-modal-panel .eyebrow {
  margin-bottom: 16px;
}

.service-modal-panel h2 {
  max-width: 560px;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.service-modal-panel p:not(.eyebrow) {
  margin-top: 22px;
  color: rgba(36, 48, 34, 0.76);
  font-size: 1.08rem;
}

.service-modal-panel ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.service-modal-panel li {
  position: relative;
  padding-left: 24px;
  color: rgba(36, 48, 34, 0.78);
}

.service-modal-panel li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 999px;
  content: "";
}

.service-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(36, 48, 34, 0.12);
}

.service-modal-footer strong {
  color: var(--forest);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
}

.values {
  position: relative;
  overflow: hidden;
  padding: 110px max(24px, 6vw);
}

.values::after {
  background:
    linear-gradient(90deg, rgba(29, 39, 27, 0.92), rgba(29, 39, 27, 0.48)),
    linear-gradient(0deg, rgba(29, 39, 27, 0.6), rgba(29, 39, 27, 0.3));
}

.values-media {
  position: absolute;
  inset: 0;
}

.values-heading {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto 52px;
  text-align: center;
}

.values-heading .eyebrow {
  margin-bottom: 16px;
}

.values-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px auto 0;
  color: rgba(255, 250, 241, 0.72);
  font-size: 1.08rem;
}

.values-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  min-height: 360px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.values-grid > * {
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.values-grid article {
  display: grid;
  align-content: end;
  text-align: center;
}

.values-grid span {
  display: block;
  margin-bottom: 70px;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
}

.values-grid p {
  margin-top: 14px;
  color: rgba(255, 250, 241, 0.72);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.review-grid figure {
  position: relative;
  display: grid;
  min-height: 0;
  margin: 0;
  padding: 34px 30px 30px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.98), rgba(244, 239, 229, 0.88)),
    var(--white);
  border: 1px solid rgba(36, 48, 34, 0.12);
  border-radius: 8px;
  box-shadow: 0 20px 56px rgba(18, 24, 16, 0.08);
}

.review-grid figure:nth-child(1),
.review-grid figure:nth-child(2) {
  grid-column: span 3;
}

.review-grid figure:nth-child(3) {
  grid-column: span 4;
}

.review-grid figure:nth-child(4) {
  grid-column: span 2;
}

.review-grid figure:nth-child(5),
.review-grid figure:nth-child(6) {
  grid-column: span 3;
}

.review-grid figure::before {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(var(--gold), var(--gold)) left top / 42px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left top / 1px 42px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 42px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 1px 42px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 42px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 1px 42px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 42px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 1px 42px no-repeat;
  border-radius: 5px;
  opacity: 0.34;
}

.review-grid figure::after {
  position: absolute;
  top: 18px;
  right: 30px;
  width: 54px;
  height: 8px;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(90deg, rgba(194, 163, 107, 0.78) 0 8px, transparent 8px 13px);
  opacity: 0.55;
}

blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.review-grid blockquote {
  position: relative;
  z-index: 1;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  color: rgba(36, 48, 34, 0.82);
  font-size: 0.97rem;
  line-height: 1.66;
  white-space: pre-line;
}

figcaption {
  margin-top: 28px;
  color: var(--moss);
  font-size: 0.92rem;
  font-weight: 700;
}

.booking {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 480px);
  gap: 56px;
  align-items: start;
  padding: 96px max(24px, 6vw);
}

.booking-copy p:not(.eyebrow) {
  margin-top: 24px;
  color: rgba(255, 250, 241, 0.74);
}

.booking-label {
  margin-bottom: 24px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.messenger-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.messenger-row a {
  color: var(--white);
  border: 1px solid rgba(255, 250, 241, 0.28);
}

.booking-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  color: var(--ink);
  background: var(--porcelain);
  border-radius: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(36, 48, 34, 0.74);
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  padding: 14px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(36, 48, 34, 0.28);
  border-radius: 0;
  font: inherit;
  color-scheme: light;
}

select {
  cursor: pointer;
}

input[name="phone"],
input[name="telegram"],
input[type="date"],
input[type="time"] {
  padding: 12px 14px;
  background: rgba(194, 163, 107, 0.08);
  border: 1px solid rgba(194, 163, 107, 0.34);
  border-radius: 8px;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.78;
  filter: sepia(0.65) saturate(1.7) hue-rotate(2deg);
}

input:focus,
select:focus {
  border-color: var(--gold);
  outline: none;
}

.form-note {
  color: rgba(36, 48, 34, 0.58);
  font-size: 0.82rem;
}

.form-note.success {
  color: #4f6b48;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(320px, 1.3fr);
  gap: 16px;
  margin-top: 38px;
}

.contact-panel,
.map-panel {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(36, 48, 34, 0.12);
  border-radius: 8px;
}

.contact-panel {
  padding: 30px;
}

dl {
  display: grid;
  gap: 28px;
  margin: 0;
}

dt {
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

dd {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.map-panel {
  min-height: 380px;
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px max(24px, 6vw);
  color: var(--white);
  background: var(--forest);
}

.footer-brand {
  display: block;
  width: 190px;
  min-width: 190px;
}

.footer-logo {
  width: 100%;
  height: auto;
}

.site-footer nav {
  gap: 20px;
  color: rgba(255, 250, 241, 0.72);
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    border-radius: 24px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 900px;
    padding-top: 116px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(29, 39, 27, 0.96), rgba(29, 39, 27, 0.52)),
      linear-gradient(90deg, rgba(29, 39, 27, 0.7), rgba(29, 39, 27, 0.15));
  }

  .hero-inner {
    min-height: 560px;
  }

  .about,
  .booking,
  .contact-grid,
  .values-grid,
  .about-details {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-modal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .review-grid figure,
  .review-grid figure:nth-child(1),
  .review-grid figure:nth-child(2),
  .review-grid figure:nth-child(3),
  .review-grid figure:nth-child(4),
  .review-grid figure:nth-child(5),
  .review-grid figure:nth-child(6) {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 10px;
  }

  .brand {
    width: 150px;
    min-width: 150px;
  }

  .header-action,
  .button,
  .messenger-row a {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 880px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .about,
  .reviews,
  .contacts {
    width: min(100% - 28px, 1160px);
    padding: 72px 0;
  }

  .about-photo,
  .about-photo img {
    min-height: 0;
  }

  .about-photo-stack {
    min-height: 0;
  }

  .about-photo-portrait {
    width: 58%;
    margin-top: -110px;
  }

  .service-card,
  .review-grid figure,
  .booking-form,
  .contact-panel {
    padding: 22px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

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

  .review-grid figure,
  .review-grid figure:nth-child(1),
  .review-grid figure:nth-child(2),
  .review-grid figure:nth-child(3),
  .review-grid figure:nth-child(4),
  .review-grid figure:nth-child(5),
  .review-grid figure:nth-child(6) {
    grid-column: 1;
  }

  .review-grid figure::before {
    inset: 12px;
  }

  .review-grid figure::after {
    right: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .service-modal {
    padding: 14px;
  }

  .service-modal-panel {
    max-height: calc(100svh - 28px);
    padding: 28px 22px 24px;
  }

  .service-modal-close {
    top: 12px;
    right: 12px;
  }

  .values {
    padding: 72px 14px;
  }

  .services .section-heading h2 {
    font-size: 1.85rem;
  }

  .values-grid > * {
    padding: 24px;
  }

  .values-grid span {
    margin-bottom: 28px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
