/* Референсы: avgvstjewelry.com (фото | текст встык, сдержанная ч/б типографика, пилюли),
   estherperel.com/about (тёплая бумага, антиква + гротеск, узкая колонка, секция с дугой).
   Фото: студийные ч/б на чёрном фоне + одно цветное плёночное. Тёмные секции красятся в цвет фона
   студийного фото (--dark-bg из style), поэтому фото «растворяется» в странице. */

:root {
  --paper: #f3f1ed;
  --paper-2: #e8e5df;
  --ink: #1b1b1a;
  --muted: #67635d;
  --line: #d9d5ce;
  --black: #121212;
  --on-dark: #ece9e3;
  --on-dark-muted: #a7a39c;

  --serif: 'Cormorant Variable', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Onest Variable', system-ui, sans-serif;

  --column: 640px;
  --header-h: 64px;
  --screen: min(100svh - var(--header-h), 960px);
}

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

html { scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem); margin-bottom: 28px; }

/* ---------- шапка ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(16px, 3vw, 32px);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.top__name { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; text-decoration: none; }

.lang { display: inline-flex; padding: 3px; border: 1px solid var(--ink); border-radius: 999px; }
.lang a {
  min-width: 56px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.lang a:hover { background: var(--paper-2); }
.lang a[aria-current='page'] { background: var(--ink); color: var(--paper); }

/* ---------- тёмные секции ---------- */

.dark { background: var(--dark-bg, var(--black)); color: var(--on-dark); }

/* ---------- фото ---------- */

.photo { margin: 0; background: var(--photo-bg, var(--black)); }
.photo img { width: 100%; }
.photo--cover img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Студийное фото: целиком, края мягко растворяются в фон секции */
.photo--contain { display: flex; justify-content: center; align-items: center; }
.photo--contain img {
  --fade: radial-gradient(closest-side, #000 68%, transparent 100%);
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
}

/* ---------- фото | текст встык ---------- */

.split { display: grid; }
.split__text { padding: 48px 16px 64px; max-width: calc(var(--column) + 32px); }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; min-height: var(--screen); }
  .split .photo img { position: sticky; top: var(--header-h); }
  .split .photo--cover img { height: var(--screen); aspect-ratio: auto; object-fit: cover; }
  .split .photo--contain { align-items: flex-start; }
  .split .photo--contain img { width: auto; max-width: 100%; max-height: var(--screen); }
  .split__text { align-self: center; padding: 96px clamp(32px, 6vw, 96px); }
  .split--reverse .photo { order: 2; }
  .split--no-photo { grid-template-columns: 1fr; min-height: 0; }
  .split--no-photo .split__text { justify-self: center; padding-inline: 16px; }
}

/* ---------- первый экран ---------- */

.hero__name { font-size: clamp(4rem, 2.4rem + 6vw, 8rem); font-weight: 400; line-height: 0.95; margin-bottom: 20px; }
.hero__tagline { margin: 0 0 32px; color: var(--on-dark-muted); }
.hero__intro { font-family: var(--serif); font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem); line-height: 1.35; }
.hero__intro p { margin: 0 0 36px; }

.button {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}
.button:hover { background: #000; }
.dark .button { background: var(--on-dark); color: var(--ink); }
.dark .button:hover { background: #fff; }

/* ---------- текстовые блоки: узкая колонка по центру ---------- */

.block {
  width: min(var(--column), 100% - 32px);
  margin-inline: auto;
  padding-block: 64px;
}
@media (min-width: 900px) { .block { padding-block: 88px; } }

.block--wide { width: min(1000px, 100% - 32px); }

.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; }
.prose--large { font-family: var(--serif); font-size: 1.5rem; line-height: 1.45; }
.prose--compact p { margin-bottom: 0.9em; }
.prose--small { font-size: 0.875rem; line-height: 1.6; color: var(--muted); }

.prose .note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Мелкий шрифт сбоку: на широком экране — в правом поле */
.aside {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}
.aside p { margin: 0 0 0.6em; }

@media (min-width: 1200px) {
  .block--aside {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr var(--column) 1fr;
    column-gap: 56px;
  }
  .block--aside h2, .block--aside .prose { grid-column: 2; }
  .block--aside .aside { grid-column: 3; grid-row: 2; align-self: start; max-width: 220px; margin-top: 6px; }
}

/* С чем приходят */
.tint { background: var(--paper-2); }
.topics { list-style: none; margin: 0 0 40px; padding: 0; display: grid; border-top: 1px solid var(--ink); }
.topics li { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.375rem; line-height: 1.3; }
@media (min-width: 720px) { .topics { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
#topics .prose { max-width: var(--column); }

/* Стоимость */
.fees { margin: 0 0 24px; border-top: 1px solid var(--ink); }
.fees__row { display: grid; gap: 2px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fees dt { font-family: var(--serif); font-size: 1.375rem; line-height: 1.3; }
.fees dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0 20px; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
  .fees__row { grid-template-columns: 1fr auto; align-items: baseline; }
  .fees dd { justify-content: flex-end; }
}

/* Отзывы */
.shots {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.shots img { width: 100%; border-radius: 12px; background: #fff; }

/* ---------- как начать: тёмная секция с дугой сверху ---------- */

.start { position: relative; margin-top: clamp(48px, 6vw, 96px); }
.start::before {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 100%;
  height: clamp(40px, 6vw, 96px);
  background: inherit;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.start h2 { font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem); font-weight: 400; }
.start .prose { margin-bottom: 48px; }

.contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px 56px; }
.contacts a { display: block; text-decoration: none; overflow-wrap: anywhere; }
.contacts span { display: block; font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--on-dark-muted); margin-bottom: 2px; }
.contacts u { font-family: var(--serif); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.contacts a:hover u { text-decoration-thickness: 2px; }
.contacts--empty { color: var(--on-dark-muted); }

.foot {
  padding: 24px clamp(16px, 3vw, 32px);
  border-top: 1px solid rgb(236 233 227 / 0.12);
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}
