@font-face {
  font-family: Cormorant;
  src: url('./assets/cormorant-latin.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
}

@font-face {
  font-family: Cormorant;
  src: url('./assets/cormorant-ru.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  src: url('./assets/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url('./assets/manrope-ru.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --paper: #faf7f0;
  --sand: #eee8da;
  --forest: #1e3428;
  --ink: #23362b;
  --muted: #546257;
  --line: #c9cbbc;
  --cream: #f6eedf;
  --gold: #ddbea0;
  --serif: Cormorant, Georgia, serif;
  --sans: Manrope, Arial, sans-serif;
  --gutter: clamp(22px, 6.1vw, 110px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--sans); }
[hidden] { display: none !important; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }
h2 { font-size: clamp(3rem, 5.1vw, 5.2rem); line-height: .99; letter-spacing: -.052em; }
[id] { scroll-margin-top: 24px; }
:focus-visible { outline: 3px solid #a76e51; outline-offset: 5px; }

.frame { margin-inline: auto; width: min(100% - 2 * var(--gutter), 1280px); }
.skip-link { position: fixed; z-index: 5; top: 12px; left: 12px; padding: 8px 16px; background: var(--paper); transform: translateY(-170%); }
.skip-link:focus { transform: none; }

.header { position: relative; z-index: 2; }
.header-inner { height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.wordmark { display: inline-flex; width: fit-content; flex-direction: column; justify-content: center; text-align: center; text-decoration: none; color: var(--forest); }
.wordmark > span { font: 700 2.05rem/.82 var(--serif); letter-spacing: .105em; }
.wordmark small { margin-top: 8px; font-size: .68rem; font-weight: 700; line-height: 1.1; letter-spacing: .115em; }
.nav { display: flex; align-items: center; gap: clamp(21px, 3.25vw, 48px); }
.nav a, .footer-link { text-decoration: none; font-size: .9rem; font-weight: 700; }
.nav a:hover, .footer-link:hover { text-decoration: underline; text-underline-offset: .35em; }
.header .button { justify-self: end; }
.menu-toggle { display: none; }

.button { display: inline-flex; min-height: 53px; align-items: center; justify-content: center; padding: 13px 28px; border: 1px solid transparent; border-radius: 100px; background: var(--forest); color: var(--paper); font-weight: 750; font-size: .9rem; line-height: 1.35; text-decoration: none; transition: background .16s ease, color .16s ease; }
.button:hover { background: #344d3b; }
.button:disabled { cursor: wait; opacity: .72; }
.button-small { min-height: 43px; padding: 9px 23px; }
.button-light { background: var(--cream); color: var(--forest); }
.button-light:hover { background: #e7d7bf; }

.hero { min-height: clamp(530px, 45.4vw, 730px); display: grid; grid-template-columns: 45.5% 54.5%; background: var(--forest); color: var(--cream); }
.hero-content { align-self: center; padding: 70px clamp(28px, 4vw, 68px) 76px max(var(--gutter), calc((100vw - 1280px) / 2)); }
.hero-place { display: flex; align-items: center; gap: 11px; color: var(--gold); font-weight: 700; font-size: .86rem; }
.hero-place > span:first-child { width: 22px; height: 1px; background: currentColor; flex: none; }
.hero h1 { margin: 23px 0 20px; font-size: clamp(4rem, 6.9vw, 7.8rem); line-height: .83; letter-spacing: -.058em; }
.hero-content > p:not(.hero-place) { max-width: 360px; color: #eadfcd; font-size: clamp(1rem, 1.27vw, 1.2rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 17px 25px; margin-top: 30px; }
.text-link { font-size: .89rem; font-weight: 750; text-underline-offset: .43em; text-decoration-color: #b19f88; }
.text-link:hover { text-decoration-color: currentColor; }
.hero-media { position: relative; min-width: 0; background: #a08a70; }
.hero-media img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 60% center; }

.section { padding-block: clamp(65px, 7.2vw, 110px); }
.section-intro { display: grid; grid-template-columns: 1fr minmax(260px, 330px); align-items: end; gap: 25px; margin-bottom: 34px; }
.section-intro p, .price-intro p, .studio-heading p { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.05vw, 31px); }
.service-card { min-width: 0; display: block; overflow: hidden; text-decoration: none; border-top-left-radius: 46% 30%; border-top-right-radius: 46% 30%; }
.service-card img { background: var(--sand); aspect-ratio: 1.12; object-fit: cover; transition: filter .18s ease; }
.service-card:hover img { filter: brightness(.91); }
.service-caption { display: grid; gap: 5px; padding: 16px 1px 17px; border-bottom: 1px solid var(--line); }
.service-caption h3, .price-group h3 { font-size: clamp(1.95rem, 3vw, 2.9rem); line-height: 1.02; letter-spacing: -.036em; }
.service-caption p { color: var(--muted); }
.service-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

.price-section { padding: clamp(60px, 7vw, 100px) 0; background: var(--sand); }
.price-layout { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 1.9fr); gap: clamp(30px, 7vw, 110px); }
.price-intro p, .studio-heading p { max-width: 345px; margin-top: 19px; }
.price-list { display: grid; gap: 30px; }
.price-group h3 { margin-bottom: 11px; }
.price-group ul { padding: 0; margin: 0; list-style: none; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) 77px 105px; align-items: center; gap: 13px; min-height: 54px; border-top: 1px solid #c7c2b3; }
.price-row:last-child { border-bottom: 1px solid #c7c2b3; }
.price-service { min-height: 50px; text-align: left; padding: 6px 0; border: 0; background: transparent; color: inherit; font-weight: 700; overflow-wrap: anywhere; }
.price-service:hover { text-decoration: underline; text-underline-offset: .25em; }
.duration { color: var(--muted); font-size: .88rem; }
.price { font-size: .95rem; text-align: right; white-space: nowrap; }

.studio { display: grid; grid-template-columns: 1fr minmax(0, 1.5fr); gap: clamp(27px, 7vw, 100px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 16px 40px 16px 0; font-weight: 750; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 500; }
.faq details[open] summary::after { content: '−'; }
.faq details > p { padding: 0 32px 16px 0; color: var(--muted); }

.booking { padding-block: clamp(57px, 7vw, 100px); background: var(--forest); color: var(--cream); }
.booking-layout { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(30px, 7vw, 105px); }
.booking-intro > p { margin-top: 18px; max-width: 350px; color: #eadfcd; }
.booking-contacts { margin-top: 27px; padding-top: 21px; border-top: 1px solid #697a66; color: #eadfcd; }
.booking-contacts a { display: inline-block; margin-top: 7px; color: inherit; font-weight: 700; text-underline-offset: .25em; }
.booking-panel { padding: clamp(22px, 4vw, 45px); border-radius: 15px; background: var(--paper); color: var(--ink); }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-fields label { display: grid; min-width: 0; gap: 6px; font-size: .9rem; font-weight: 750; }
.form-fields .wide { grid-column: 1 / -1; }
.form-fields input, .form-fields select { width: 100%; min-height: 49px; min-width: 0; padding: 9px 12px; border: 1px solid #a4ab9d; border-radius: 6px; background: #fffdf8; color: var(--ink); font-size: 1rem; }
.form-fields input::placeholder { color: #626b62; }
.form-fields select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, #3d5542 50%), linear-gradient(135deg, #3d5542 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.form-consent { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; color: var(--muted); font-size: .84rem; }
.form-consent input { flex: none; margin-top: 4px; }
.form-submit { width: 100%; margin-top: 20px; }
.demo-note, .form-message { margin-top: 9px; color: var(--muted); font-size: .85rem; }
.form-message:empty { display: none; }
.form-message { padding: 9px 11px; border-radius: 6px; background: #e3ebdc; color: #253b26; }
.form-message[data-kind='error'] { background: #f8e5df; color: #733629; }

.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 107px; padding-block: 20px; }
.footer p { font-size: .84rem; color: var(--muted); }

@media (max-width: 960px) {
  .header-inner { gap: 20px; height: 76px; }
  .hero { grid-template-columns: 50% 50%; min-height: 490px; }
  .hero h1 { font-size: clamp(3.45rem, 8vw, 6rem); }
  .hero-content { padding-block: 56px; }
  .price-layout { gap: 33px; }
}

@media (max-width: 700px) {
  :root { --gutter: 22px; }
  .header-inner { height: 68px; grid-template-columns: 1fr auto; }
  .header .button { display: none; }
  .wordmark > span { font-size: 1.9rem; }
  .menu-toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
  .menu-toggle span { display: block; width: 17px; height: 1px; background: var(--forest); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 8px var(--gutter) 15px; border-top: 1px solid var(--line); background: var(--paper); }
  .nav.is-open { display: grid; gap: 0; }
  .nav a { min-height: 44px; display: flex; align-items: center; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-content { padding: 48px var(--gutter) 42px; }
  .hero h1 { font-size: clamp(3.8rem, 13vw, 6.25rem); }
  .hero-media { aspect-ratio: 1.48; }
  .section-intro, .price-layout, .studio, .booking-layout { grid-template-columns: 1fr; }
  .section-intro { gap: 12px; margin-bottom: 22px; }
  .section-intro p { max-width: 350px; }
  .service-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-card { border-radius: 100px 100px 0 0 / 70px 70px 0 0; }
  .service-card img { aspect-ratio: 1.28; }
  .service-caption { padding-top: 12px; }
}

@media (max-width: 420px) {
  .form-fields { grid-template-columns: 1fr; gap: 12px; }
  .hero-actions { gap: 15px 17px; }
  .button { padding-inline: 21px; }
  .price-row { grid-template-columns: minmax(0, 1fr) 60px 83px; gap: 8px; }
  .duration, .price { font-size: .83rem; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; }
  .footer p { grid-row: 2; grid-column: 1 / -1; }
}

@media (max-width: 360px) {
  .price-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'service amount' 'time amount'; gap: 0 12px; padding-block: 7px; }
  .price-service { grid-area: service; min-height: 34px; padding-block: 3px; }
  .duration { grid-area: time; }
  .price { grid-area: amount; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
