:root {
  --bg: #f6f1ea;
  --bg-tint: #ede5da;
  --ink: #2b2622;
  --muted: #8a7d70;
  --line: #d9cec0;
  --accent: #a08363;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 17px 34px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.3s;
}
.btn:hover { background: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-h);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(246, 241, 234, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.logo { font-family: var(--serif); font-size: 26px; letter-spacing: 0.08em; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav a { font-size: 13px; letter-spacing: 0.06em; transition: color 0.2s; }
.nav a:hover { color: var(--accent); }
.header__right { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; gap: 4px; }
.lang button {
  padding: 6px 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.lang button.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink);
  transition: transform 0.3s, top 0.3s;
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.is-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.is-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Первый экран ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 24px) var(--pad) clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero__name {
  margin: 28px 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 7.2vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.hero__role {
  margin-bottom: 44px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--accent);
}
.hero__image { height: 100%; max-height: calc(100vh - var(--header-h) - 80px); min-height: 420px; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Секции ---------- */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(72px, 11vw, 160px) var(--pad);
}
.section--wide { max-width: 1560px; }
.section--tint {
  max-width: none;
  background: var(--bg-tint);
  padding-left: max(var(--pad), calc((100% - 1240px) / 2 + var(--pad)));
  padding-right: max(var(--pad), calc((100% - 1240px) / 2 + var(--pad)));
}
.section > .eyebrow, .section__head { margin-bottom: clamp(32px, 5vw, 64px); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; flex-wrap: wrap; }
.note { font-size: 13px; color: var(--muted); font-style: italic; }

/* ---------- Обо мне ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 32px; }
.about > .eyebrow { margin-bottom: 0; padding-top: 14px; }
.lead {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.2;
  margin-bottom: 28px;
}
.about__body > p:not(.lead):not(.about__edu) { max-width: 620px; font-size: 17px; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 24px clamp(48px, 8vw, 120px);
  margin: clamp(40px, 6vw, 72px) 0 28px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stats li { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.stats__num { font-family: var(--serif); font-size: clamp(44px, 5.5vw, 76px); line-height: 1.1; color: var(--ink); }
.about__edu { font-size: 13px; color: var(--muted); }

/* ---------- Услуги ---------- */
.services li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: clamp(24px, 3vw, 38px) 0;
  border-top: 1px solid var(--line);
}
.services li:last-child { border-bottom: 1px solid var(--line); }
.services__n { font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.services h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; }
.services p { margin-top: 8px; max-width: 560px; color: var(--muted); font-size: 15px; }
.services__price { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; text-align: right; }
.services__price--main { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 42px); color: var(--ink); letter-spacing: 0; }

/* ---------- Портфолио ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(20px, 3vw, 48px); }
.card { display: block; width: 100%; text-align: left; }
.card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-tint); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1); }
.card:hover .card__img img { transform: scale(1.04); }
.card__meta {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 18px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.card__title { display: block; margin-top: 8px; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; }
.card__desc { display: block; margin-top: 6px; max-width: 520px; font-size: 15px; color: var(--muted); }

/* ---------- Процесс ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px); }
.steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
}
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.25; }
.steps span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.reviews figure { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.reviews blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.4; }
.reviews blockquote::before {
  content: '“';
  display: block;
  height: 36px;
  font-style: normal;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
}
.reviews figcaption { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Контакты ---------- */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 8vw, 120px); }
.contact h2 { margin: 24px 0 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.1; }
.contact__info > p:not(.eyebrow) { max-width: 440px; }
.contact__list { margin-top: 44px; }
.contact__list li { padding: 16px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list small { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contact__list a { font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); transition: color 0.2s; }
.contact__list a:hover { color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 26px; }
.form__hp { position: absolute; left: -9999px; }
.form label { display: block; }
.form label > span { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 10px 0 12px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s;
}
.form select {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none' stroke='%238a7d70'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 2px center;
  padding-right: 24px;
}
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form .btn { align-self: flex-start; margin-top: 8px; }
.form__status { min-height: 1.7em; font-size: 14px; color: var(--muted); }
.form__status.is-ok { color: #5d7355; }
.form__status.is-err { color: #a2513f; }

/* ---------- Подвал ---------- */
.footer {
  padding: 28px var(--pad);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.08em; color: var(--muted);
}

/* ---------- Галерея ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: none;
  align-items: center; justify-content: center;
  padding: 72px clamp(12px, 6vw, 96px) 32px;
  background: rgba(34, 29, 25, 0.96);
  color: #f6f1ea;
}
.lightbox.is-open { display: flex; }
.lightbox > img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__bar {
  position: absolute; inset: 0 0 auto 0; height: 64px;
  padding: 0 clamp(16px, 3vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.lightbox__bar strong { font-family: var(--serif); font-weight: 400; font-size: 20px; margin-right: 16px; }
.lightbox__bar span { font-size: 12px; letter-spacing: 0.14em; opacity: 0.6; white-space: nowrap; }
#lbClose { width: 44px; height: 44px; font-size: 34px; line-height: 1; font-weight: 300; flex: none; }
.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: clamp(44px, 6vw, 88px); height: 120px;
  font-family: var(--serif); font-size: 52px; line-height: 1; opacity: 0.7; transition: opacity 0.2s;
}
.lightbox__arrow:hover { opacity: 1; }
.lightbox__arrow--prev { left: 0; }
.lightbox__arrow--next { right: 0; }
.lightbox.is-single .lightbox__arrow { display: none; }

/* ---------- Планшет ---------- */
@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    padding: 8px var(--pad) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 0; font-family: var(--serif); font-size: 26px; letter-spacing: 0; border-bottom: 1px solid var(--line); }

  .hero { grid-template-columns: 1fr; min-height: 0; gap: 36px; padding-top: calc(var(--header-h) + 36px); }
  .hero__image { min-height: 0; max-height: none; height: auto; aspect-ratio: 4 / 3; margin: 0 calc(var(--pad) * -1); }
  .about { grid-template-columns: 1fr; }
  .about > .eyebrow { padding-top: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: 1fr; max-width: 620px; }
  .contact { grid-template-columns: 1fr; }
}

/* ---------- Телефон ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero__image { aspect-ratio: 4 / 5; }
  .hero .btn { display: block; }
  .grid { grid-template-columns: 1fr; }
  .services li { grid-template-columns: 32px minmax(0, 1fr); gap: 6px 12px; }
  .services__price { grid-column: 2; text-align: left; margin-top: 6px; }
  .stats { gap: 12px; }
  .form .btn { align-self: stretch; }
  .lightbox { padding: 64px 0 72px; }
  .lightbox__arrow { top: auto; bottom: 8px; transform: none; height: 56px; width: 72px; font-size: 40px; }
  .lightbox__bar strong { display: block; font-size: 17px; line-height: 1.2; }
}

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