:root {
  --ivory: #f5f1ea;
  --paper: #fbf9f5;
  --ink: #16181d;
  --graphite: #2a2d34;
  --muted: #6d6a64;
  --line: rgba(22, 24, 29, 0.12);
  --garnet: #8c2f2b;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; color: var(--garnet); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.hidden { position: absolute; left: -9999px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 2000; }
.skip:focus { left: 10px; top: 10px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--garnet); }
.eyebrow--light { color: rgba(245, 241, 234, .6); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.section-title--light { color: var(--ivory); }
.section-title--light em { color: #d49a8d; }
.section-head { margin-bottom: 64px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 30px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent; border-radius: 0;
  cursor: pointer; transition: background .3s var(--ease), color .3s, transform .3s var(--ease);
}
.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { background: var(--garnet); }
.btn--sm { padding: 12px 20px; font-size: 13px; }
.btn--full { width: 100%; justify-content: center; }
.link-arrow {
  font-size: 14px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .3s;
}
.link-arrow:hover { border-color: var(--garnet); }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: rgba(245, 241, 234, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.is-scrolled { border-color: var(--line); background: rgba(245, 241, 234, .96); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 30px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: .01em; }
.brand__sub { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 36px; }
.nav a { font-size: 14px; text-decoration: none; color: var(--graphite); position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--garnet); transition: width .3s var(--ease); }
.nav a:hover::after { width: 100%; }
.nav__phone { display: none; }
.header__actions { display: flex; align-items: center; gap: 24px; }
.header__phone { font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--garnet); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 150px 0 90px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 9vw, 132px); line-height: .95; letter-spacing: -.02em;
  margin-bottom: 36px;
}
.hero__lead { font-size: 18px; color: var(--graphite); max-width: 520px; margin-bottom: 44px; font-weight: 300; }
.hero__cta { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); gap: 40px; margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 560px; }
.hero__facts dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hero__facts dd { font-family: var(--serif); font-size: 22px; }
.hero__photo { position: relative; }
.hero__frame { overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.hero__photo:hover .hero__frame img { transform: scale(1); }
.hero__photo figcaption {
  position: absolute; left: -40px; bottom: 40px;
  background: var(--paper); padding: 22px 28px; border-left: 2px solid var(--garnet);
  box-shadow: 0 20px 50px rgba(22, 24, 29, .12);
}
.hero__caption-name { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.hero__caption-role { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* Statement */
.statement { padding: 100px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.statement__text { font-family: var(--serif); font-size: clamp(30px, 4vw, 54px); line-height: 1.2; max-width: 980px; }

/* Values */
.values { padding: 120px 0; }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.value { padding: 40px 40px 10px 0; }
.value + .value { padding-left: 40px; border-left: 1px solid var(--line); }
.value__num { font-family: var(--serif); font-size: 18px; color: var(--garnet); }
.value h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 18px 0 14px; }
.value p { color: var(--muted); font-size: 15px; }

/* Practices accordion */
.practices { padding: 120px 0; background: var(--paper); }
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 70px 1fr 1.1fr 40px; align-items: center; gap: 24px;
  padding: 30px 0; transition: padding .3s var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { padding-left: 12px; }
.acc__num { font-family: var(--serif); font-size: 18px; color: var(--garnet); }
.acc__title { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
.acc__teaser { font-size: 14px; color: var(--muted); }
.acc__icon { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; position: relative; justify-self: end; transition: background .3s, border-color .3s; }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .3s var(--ease), background .3s; }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] .acc__icon { background: var(--ink); border-color: var(--ink); }
.acc[open] .acc__icon::before, .acc[open] .acc__icon::after { background: var(--ivory); }
.acc[open] .acc__icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc__body { padding: 0 64px 34px 94px; max-width: 900px; color: var(--graphite); font-weight: 300; animation: accIn .45s var(--ease); }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* About */
.about { background: var(--ink); color: var(--ivory); padding: 130px 0; }
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.about__media { aspect-ratio: 3 / 4; overflow: hidden; }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); }
.about__text .section-title { margin-bottom: 36px; }
.about__text > p:not(.eyebrow) { color: rgba(245, 241, 234, .75); font-weight: 300; font-size: 17px; margin-bottom: 18px; max-width: 580px; }
.about__quote { margin-top: 44px; padding-left: 28px; border-left: 2px solid var(--garnet); font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.35; max-width: 600px; }
.about__quote cite { display: block; margin-top: 14px; font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(245, 241, 234, .55); }

/* Process */
.process { padding: 120px 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 36px 30px 0 0; border-top: 1px solid var(--ink); position: relative; }
.step + .step { padding-left: 30px; }
.step::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--garnet); }
.step + .step::before { left: 30px; }
.step__num { font-family: var(--serif); font-size: 64px; line-height: 1; color: rgba(22, 24, 29, .14); }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* Contacts */
.contacts { padding: 120px 0 130px; background: var(--paper); border-top: 1px solid var(--line); }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.contacts__lead { margin: 30px 0 44px; color: var(--graphite); font-size: 17px; font-weight: 300; max-width: 420px; }
.contacts__list { list-style: none; border-top: 1px solid var(--line); }
.contacts__list li { display: grid; grid-template-columns: 120px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contacts__list span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contacts__list a, .contacts__list p { font-family: var(--serif); font-size: 26px; text-decoration: none; }
.contacts__list a:hover { color: var(--garnet); }

.form { background: var(--ivory); padding: 50px; border: 1px solid var(--line); }
.field { position: relative; margin-bottom: 26px; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(22, 24, 29, .25);
  padding: 22px 0 10px; font: inherit; font-size: 16px; color: var(--ink); outline: none; border-radius: 0;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-top: 18px; color: var(--ink); }
.field--select::after { content: ''; position: absolute; right: 4px; top: 26px; width: 8px; height: 8px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--garnet); }
.field label { position: absolute; left: 0; top: 22px; color: var(--muted); font-size: 16px; pointer-events: none; transition: all .25s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.form__note { font-size: 13px; color: var(--muted); margin: 6px 0 20px; }
.check { display: flex; gap: 12px; font-size: 13px; color: var(--graphite); margin-bottom: 28px; cursor: pointer; align-items: flex-start; }
.check input { margin-top: 3px; accent-color: var(--garnet); width: 16px; height: 16px; flex-shrink: 0; }
.form__status { margin-top: 18px; font-size: 14px; min-height: 1em; }
.form__status.ok { color: #2f6b3a; }
.form__status.err { color: var(--garnet); }

/* Footer */
.footer { background: var(--ink); color: var(--ivory); padding: 60px 0 40px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 30px 60px; align-items: start; }
.footer__brand { font-family: var(--serif); font-size: 30px; }
.footer__muted { color: rgba(245, 241, 234, .55); font-size: 13px; }
.footer__links { display: flex; gap: 30px; flex-wrap: wrap; font-size: 14px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: #d49a8d; }
.footer__legal { padding-top: 26px; border-top: 1px solid rgba(245, 241, 234, .12); }
.footer__up { font-size: 13px; text-decoration: none; justify-self: end; padding-top: 26px; border-top: 1px solid rgba(245, 241, 234, .12); }

/* Floating call */
.fab { display: none; position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--garnet); color: #fff; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(140, 47, 43, .35); z-index: 900; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Simple text page */
.page { padding: 150px 0 100px; }
.page .wrap { max-width: 860px; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin-bottom: 40px; }
.page h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 36px 0 12px; }
.page p, .page li { color: var(--graphite); margin-bottom: 12px; }
.page ul { padding-left: 20px; }

/* Responsive */
@media (max-width: 1100px) {
  .header__phone { display: none; }
  .hero__grid { gap: 50px; }
  .acc summary { grid-template-columns: 50px 1fr 40px; }
  .acc__teaser { display: none; }
  .acc__body { padding: 0 50px 30px 74px; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .burger { display: block; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed; top: 80px; left: 0; right: 0; bottom: 0;
    flex-direction: column; gap: 0; padding: 20px 22px;
    background: var(--ivory);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { font-family: var(--serif); font-size: 32px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav__phone { display: block; color: var(--garnet) !important; }

  .hero { padding: 120px 0 70px; }
  .hero__grid, .about__grid, .contacts__grid { grid-template-columns: 1fr; gap: 50px; }
  .hero__photo { max-width: 460px; }
  .hero__photo figcaption { left: 16px; bottom: 16px; }
  .hero__facts { gap: 20px; margin-top: 50px; }
  .hero__facts dd { font-size: 18px; }

  .statement, .values, .practices, .about, .process, .contacts { padding: 80px 0; }
  .values__grid { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .about__media { max-width: 420px; aspect-ratio: 1; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .step:nth-child(3) { padding-left: 0; }
  .step:nth-child(3)::before { left: 0; }
  .form { padding: 32px 24px; }
  .contacts__list li { grid-template-columns: 1fr; gap: 4px; }
  .contacts__list a, .contacts__list p { font-size: 22px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__up { justify-self: start; border: 0; padding: 0; }
  .fab { display: flex; }
}

@media (max-width: 560px) {
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; }
  .step + .step::before { left: 0; }
  .acc summary { grid-template-columns: 36px 1fr 36px; gap: 14px; padding: 24px 0; }
  .acc__icon { width: 34px; height: 34px; }
  .acc__body { padding: 0 0 26px 50px; }
}
