:root {
  --ink: #1d1714;
  --ink-soft: #4a3f38;
  --muted: #8a7c72;
  --cream: #f7f2ec;
  --cream-deep: #efe6dc;
  --paper: #fffdfa;
  --accent: #b4644c;
  --accent-deep: #96492f;
  --accent-soft: #f2ded4;
  --gold: #c9a227;
  --line: #e3d8cc;
  --line-dark: rgba(255, 255, 255, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(29, 23, 20, 0.05), 0 4px 14px rgba(29, 23, 20, 0.05);
  --shadow-md: 0 10px 30px rgba(29, 23, 20, 0.09);
  --shadow-lg: 0 28px 70px rgba(29, 23, 20, 0.22);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 92px;
}

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

body.is-locked {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--accent);
}

p {
  margin: 0;
}

ul, ol, dl, dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.62);
}

.section__title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  max-width: 18ch;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 52px;
}

.section__note {
  max-width: 40ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(29, 23, 20, 0.04);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 13px;
}

.btn--lg {
  padding: 17px 34px;
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 242, 236, 0.86);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(247, 242, 236, 0.96);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--accent);
  background: var(--paper);
}

.logo__mark svg {
  width: 21px;
  height: 21px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__name {
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: 0.02em;
}

.logo__sub {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav__link {
  position: relative;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.header__phone:hover {
  color: var(--accent);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--paper);
}

.burger span {
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.hero {
  position: relative;
  padding: 76px 0 68px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 68%);
  opacity: 0.75;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 60px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.9rem, 6.4vw, 5.2rem);
  margin-bottom: 24px;
  max-width: 14ch;
}

.hero__lead {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 34px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__facts strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.hero__facts span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  max-width: 20ch;
}

.hero__art {
  position: relative;
  aspect-ratio: 4 / 4.6;
  min-height: 420px;
}

.hero__panel {
  position: absolute;
  border-radius: 240px 240px 26px 26px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero__panel--main {
  inset: 0 12% 8% 0;
}

.hero__panel--small {
  width: 44%;
  aspect-ratio: 3 / 4;
  right: 0;
  bottom: 0;
  border-radius: 26px 26px 160px 160px;
  border: 6px solid var(--cream);
}

.hero__badge {
  position: absolute;
  left: -14px;
  bottom: 16%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 190px;
}

.hero__badge-value {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
}

.hero__badge-label {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.hero__ring {
  position: absolute;
  top: -6%;
  right: -8%;
  width: 200px;
  height: 200px;
  color: var(--accent);
  opacity: 0.5;
  animation: spin 60s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.photo--fallback {
  background-image:
    radial-gradient(120% 90% at 18% 12%, rgba(255, 255, 255, 0.5), transparent 55%),
    linear-gradient(150deg, #e8d7ca 0%, #d8bda9 38%, #b98a72 72%, #8f5f4c 100%);
}

.photo--fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 9px);
  mix-blend-mode: overlay;
}

.hero__panel,
.about__photo,
.master__photo,
.contacts__map-frame {
  position: relative;
}

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  padding: 16px 0;
}

.ticker__track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: ticker 38s linear infinite;
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--muted);
}

.ticker__track span:nth-child(even) {
  color: var(--accent);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.services__controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.search {
  position: relative;
  max-width: 420px;
}

.search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.search input {
  width: 100%;
  padding: 15px 18px 15px 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search input::placeholder {
  color: var(--muted);
}

.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.25s var(--ease);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.chip[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.services__loading {
  color: var(--muted);
  font-size: 14px;
  padding: 30px 0;
}

.services__empty {
  color: var(--muted);
  font-size: 14px;
  padding: 30px 0;
  text-align: center;
}

.category {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 16px;
}

.category:first-child {
  margin-top: 0;
}

.category__title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

.category__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.category__count {
  font-size: 12px;
  color: var(--muted);
}

.service {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}

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

.service__name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
}

.service__duration {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 6px;
}

.service__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.service__price {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  transition: gap 0.25s var(--ease);
}

.service__btn:hover {
  gap: 13px;
}

.service__btn svg {
  width: 15px;
  height: 15px;
}

.about {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.about::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -220px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 100, 76, 0.34), transparent 66%);
}

.about__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}

.about__media {
  position: relative;
}

.about__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__quote {
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: min(320px, 84%);
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.about__quote p {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 10px;
}

.about__quote span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about__content .section__title {
  color: var(--cream);
}

.about__lead {
  color: rgba(247, 242, 236, 0.74);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  max-width: 56ch;
  margin: 26px 0 40px;
}

.principles {
  display: grid;
  gap: 2px;
}

.principles li {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
}

.principles li:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.principles__num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 4px;
  flex-shrink: 0;
}

.principles h3 {
  font-size: 21px;
  color: var(--cream);
  margin-bottom: 6px;
}

.principles p {
  font-size: 14px;
  color: rgba(247, 242, 236, 0.6);
  font-weight: 300;
  line-height: 1.65;
  max-width: 48ch;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.master {
  display: flex;
  flex-direction: column;
}

.master__photo {
  aspect-ratio: 3 / 3.7;
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.master:hover .master__photo {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.master__name {
  font-size: 23px;
}

.master__role {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 8px 0 10px;
}

.master__note {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.reviews {
  background: var(--cream-deep);
}

.rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.rating__value {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
}

.rating__stars {
  color: var(--gold);
  letter-spacing: 0.16em;
  font-size: 14px;
}

.rating__count {
  font-size: 12px;
  color: var(--muted);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.review {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.review blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.review__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 19px;
  flex-shrink: 0;
}

.review figcaption strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.review figcaption small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.cta {
  padding: 84px 0;
  background:
    radial-gradient(90% 130% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--cream);
  text-align: center;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta__title {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}

.cta__text {
  max-width: 56ch;
  color: var(--ink-soft);
  font-weight: 300;
}

.cta .btn {
  margin-top: 12px;
}

.contacts__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.contacts__list {
  margin: 34px 0 24px;
  display: grid;
}

.contacts__list li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.contacts__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contacts__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contacts__value {
  font-size: 16px;
}

a.contacts__value:hover {
  color: var(--accent-deep);
}

.contacts__socials {
  display: flex;
  gap: 18px;
}

.contacts__socials a {
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.contacts__socials a:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.contacts__hint {
  font-size: 13px;
  color: var(--muted);
  max-width: 44ch;
}

.contacts__map {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contacts__map-frame {
  position: absolute;
  inset: 0;
}

.contacts__map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(180, 100, 76, 0.28), 0 0 0 16px rgba(180, 100, 76, 0.12);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(180, 100, 76, 0.28), 0 0 0 16px rgba(180, 100, 76, 0.12); }
  50% { box-shadow: 0 0 0 10px rgba(180, 100, 76, 0.2), 0 0 0 26px rgba(180, 100, 76, 0.06); }
}

.footer {
  background: var(--ink);
  color: rgba(247, 242, 236, 0.72);
  padding: 64px 0 28px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--cream);
  line-height: 1;
}

.footer__brand p {
  font-size: 13px;
  font-style: italic;
  font-family: var(--serif);
  font-size: 17px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 13.5px;
}

.footer__nav a:hover {
  color: var(--cream);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  color: rgba(247, 242, 236, 0.5);
}

.footer__top:hover {
  color: var(--cream);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 23, 20, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade 0.28s var(--ease);
}

.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: rise 0.34s var(--ease);
}

@keyframes fade {
  from { opacity: 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px 18px;
}

.modal__step {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.modal__title {
  font-size: 27px;
}

.modal__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: all 0.25s var(--ease);
}

.modal__close:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.modal__close svg {
  width: 17px;
  height: 17px;
}

.modal__progress {
  height: 2px;
  background: var(--line);
  margin: 0 28px 4px;
  border-radius: 2px;
  overflow: hidden;
}

.modal__progress span {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.modal__body {
  padding: 20px 28px 8px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.step__label {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.step__hint {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 16px;
}

.field {
  margin-bottom: 16px;
}

.field__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.field__optional {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.field__control {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--cream);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.field__control:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field__control.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12);
}

textarea.field__control {
  resize: vertical;
  min-height: 68px;
}

select.field__control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%238a7c72' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
  cursor: pointer;
}

.field__error {
  display: block;
  font-size: 12px;
  color: #c0392b;
  margin-top: 6px;
  min-height: 0;
}

.field__error:empty {
  display: none;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 4px;
  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.consent a {
  color: var(--accent-deep);
  border-bottom: 1px solid currentColor;
}

.days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}

.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 13px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--cream);
  transition: all 0.22s var(--ease);
}

.day:hover:not(:disabled) {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.day__weekday {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.day__num {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
}

.day__month {
  font-size: 10px;
  color: var(--muted);
}

.day[aria-checked="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.day[aria-checked="true"] .day__weekday,
.day[aria-checked="true"] .day__month {
  color: rgba(247, 242, 236, 0.62);
}

.day:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 10px;
}

.slot {
  padding: 13px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: all 0.22s var(--ease);
}

.slot:hover:not(:disabled) {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.slot[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.slot:disabled {
  opacity: 0.34;
  cursor: not-allowed;
  text-decoration: line-through;
}

.slots__empty {
  font-size: 13.5px;
  color: var(--muted);
  padding: 10px 0;
}

.summary {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--cream);
  overflow: hidden;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.summary__row:last-child {
  border-bottom: 0;
}

.summary__row dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 2px;
}

.summary__row dd {
  text-align: right;
  font-weight: 500;
}

.form__error {
  margin: 4px 0 14px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(192, 57, 43, 0.09);
  border: 1px solid rgba(192, 57, 43, 0.24);
  color: #96271b;
  font-size: 13px;
  line-height: 1.5;
}

.modal__footer {
  display: flex;
  gap: 12px;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.modal__footer .btn {
  flex: 1;
}

.modal__footer .btn--primary {
  flex: 2;
}

.step--done {
  text-align: center;
  padding-bottom: 12px;
}

.done__icon {
  width: 62px;
  height: 62px;
  margin: 6px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.done__icon svg {
  width: 30px;
  height: 30px;
}

.done__title {
  font-size: 30px;
  margin-bottom: 20px;
}

.step--done .summary {
  text-align: left;
}

.done__id {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 140;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  max-width: min(90vw, 460px);
  text-align: center;
  animation: rise 0.3s var(--ease);
}

.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__art {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    min-height: 360px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .about__media {
    max-width: 460px;
  }

  .contacts__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 72px 0;
  }

  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px;
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.38s var(--ease), opacity 0.28s var(--ease);
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    width: 100%;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }

  .nav__link::after {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header__phone {
    display: none;
  }

  .header__actions .btn {
    padding: 10px 16px;
    font-size: 12.5px;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 36px;
  }

  .rating {
    align-items: flex-start;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero__facts {
    gap: 24px;
  }

  .hero__facts strong {
    font-size: 25px;
  }

  .about__quote {
    position: static;
    width: 100%;
    margin-top: -34px;
    margin-left: auto;
    margin-right: 20px;
    max-width: 320px;
  }

  .principles li {
    gap: 16px;
  }

  .contacts__list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .modal {
    padding: 0;
    place-items: end center;
  }

  .modal__dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 24px 24px 0 0;
    animation: sheet 0.34s var(--ease);
  }

  @keyframes sheet {
    from { transform: translateY(40px); opacity: 0.4; }
  }

  .modal__header {
    padding: 22px 20px 14px;
  }

  .modal__progress {
    margin: 0 20px 4px;
  }

  .modal__body {
    padding: 18px 20px 6px;
  }

  .modal__footer {
    padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
    flex-direction: column-reverse;
  }

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

  .footer__nav {
    gap: 16px 22px;
  }
}

@media (max-width: 400px) {
  .wrap {
    padding: 0 18px;
  }

  .days {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .ticker__track {
    animation: none;
  }
}
