:root {
  --paper: #e7dfd6;
  --ink: #3a2f2a;
  --muted: #5c534c;
  --line: #c6b59a;
  --card: #f3ece4;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}

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

a { color: inherit; }

.page {
  width: min(1520px, calc(100% - 8rem));
  margin-inline: auto;
  padding-bottom: 3rem;
}

.section { padding-block: clamp(3rem, 5vw, 5rem); }

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 3.4vw, 3.5rem);
  line-height: 1.05;
  text-wrap: pretty;
}

h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
}

.button {
  display: inline-block;
  border: 1px solid #b8afa5;
  border-radius: 999px;
  background: #e8ded2;
  color: var(--ink);
  padding: 0.75rem 1.45rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 1.25rem;
  padding-top: 1.5rem;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.nav a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.nav-center,
.nav-end { display: flex; gap: 1.45rem; }

.nav-end { justify-self: end; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  min-height: calc(100svh - 4.5rem);
  gap: 2rem;
  padding-top: 1rem;
}

.hero-copy {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

.hero-name {
  margin: 0;
  padding-bottom: 1.15rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.16em;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(3rem, 3.6vw, 4.2rem);
  line-height: 0.78;
  letter-spacing: -0.03em;
}

.swash {
  display: inline-block;
  font-weight: 300;
  font-size: 1.72em;
  font-style: italic;
  line-height: 0.68;
  transform: rotate(-7deg);
}

.hero-word { position: relative; }

.hero-role {
  position: absolute;
  left: 0.15em;
  bottom: -1.05rem;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(11px, 0.85vw, 14px);
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.hero-text {
  max-width: 18em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.3vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
}

.hero-photo {
  justify-self: end;
  align-self: end;
  width: min(100%, 28rem);
  max-height: calc(100svh - 6.5rem);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 14rem 14rem 0 0;
}

.requests {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
  gap: clamp(2rem, 4vw, 4rem);
}

.requests-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.requests-intro h2 {
  max-width: 12em;
  font-size: 2.3rem;
  text-wrap: balance;
}

.requests-photo {
  width: min(100%, 16rem);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 1.2rem;
}

.requests-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 1.2rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.requests-list li {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.requests-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4a574;
}

.requests-own::before {
  content: "+";
  width: auto;
  height: auto;
  background: none;
  color: #c4a574;
  font-size: 1.3rem;
  line-height: 1;
}

.requests-own { border-bottom: 0; }

.consult-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 2rem;
}

.consult-title { max-width: 8em; }

.consult-lead { max-width: 36em; }

.prose p,
.consult-lead p,
.lead { margin: 0 0 0.9rem; }

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 2.2rem 0 1.4rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  white-space: nowrap;
}

.rule::before,
.rule::after {
  content: "";
  height: 1px;
  width: 4rem;
  background: var(--line);
}

.rule:not(:empty)::before,
.rule:not(:empty)::after { flex: 1; width: auto; }

.rule-plain { margin: 0.4rem 0 0.2rem; }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1rem 1.4rem;
  text-align: center;
}

.steps::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--line);
}

.step { position: relative; z-index: 1; }

.step p { margin: 0.7rem 0 0; }

.num {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #c4a574;
  color: white;
  font-size: 0.8rem;
}

.outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

.outcomes-copy h2 {
  max-width: 7em;
  border-left: 1px solid #c4a574;
  padding-left: 0.85rem;
}

.outcomes-list {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  width: min(100%, 32rem);
  aspect-ratio: 588 / 650;
  justify-self: center;
  margin: 0;
  padding: 12% 9% 12% 8%;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #efe6dc;
}

.outcomes-list li {
  position: relative;
  display: grid;
  grid-template-columns: 1.6rem 0.8rem minmax(0, 1fr);
  column-gap: 0.35rem;
  align-items: center;
}

.outcome-num {
  color: #8d847c;
  font-size: 0.82rem;
  text-align: end;
}

.rail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c4b59a;
  justify-self: center;
  position: relative;
  z-index: 1;
}

.outcomes-list li:first-child .rail-dot { background: #c4a574; }

.outcomes-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.6rem + 0.35rem + 0.4rem);
  top: 50%;
  width: 1px;
  height: calc(100% + 0.75rem);
  background: var(--line);
  transform: translateX(-50%);
}

.about-head { text-align: start; }

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.about-arch {
  width: min(100%, 26rem);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  justify-self: center;
  border-radius: 14rem 14rem 0 0;
}

.about-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.about-portrait {
  width: 8.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-left: auto;
}

.about-side .prose { max-width: 36rem; }

.approach { text-align: center; }

.approach h2,
.approach .lead { margin-inline: auto; }

.approach .lead { max-width: 36rem; }

.values {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1.6rem 1.35rem;
  max-width: 68rem;
  margin: 1.8rem auto 0;
  padding: 0;
  list-style: none;
}

.values li {
  flex: 0 1 calc(25% - 1.1rem);
  min-width: 11.5rem;
  max-width: 15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
}

.values li::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4a574;
}

.format { text-align: center; }

.format > h2 { margin-bottom: 1rem; }

.format-hint {
  margin: 0 auto 1.75rem;
  max-width: 36em;
}

.format-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  width: min(100%, 52rem);
  margin-inline: auto;
  text-align: initial;
}

.format-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column: 1 / -1;
  align-items: center;
}

.format-switch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: var(--line);
}

.format-switch button {
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 0.65rem 1.15rem;
  font: inherit;
  font-family: var(--serif);
  cursor: pointer;
}

.format-switch button small {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
}

.format-switch .is-active {
  background: #3a2f2a;
  color: var(--paper);
}

.format-block { display: contents; }

.format-block:not(.is-active) { display: none; }

.format-name { display: none; }

.format-lead { margin: 1rem 0 0; }

.format-lead[data-format-lead="single"] {
  text-align: end;
  padding-right: 1.35rem;
}

.format-lead[data-format-lead="package"] {
  grid-column: 2;
  text-align: start;
  padding-left: 1.35rem;
}

.format-block .cards {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 1.3rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 1.2rem;
  width: min(100%, 52rem);
  margin-inline: auto;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border-radius: 8rem 8rem 1.2rem 1.2rem;
  padding: 2rem 1.25rem 1.2rem;
  text-align: center;
}

.card h3 { margin-bottom: 0.8rem; font-size: 1.55rem; line-height: 1.15; }

.card-kicker { margin: 0 0 0.8rem; }

.card-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0;
  text-align: start;
}

.card-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-action { margin-top: auto; padding-top: 1.15rem; }

.audience {
  max-width: 46rem;
  margin: 2rem auto 0;
}

.format-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 26rem);
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: min(100%, 52rem);
  margin: 2rem auto 0;
  text-align: start;
}

.chair {
  width: 18rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.faq {
  display: grid;
  grid-template-columns: minmax(9rem, 0.4fr) 1fr;
  align-items: start;
  gap: 2rem;
}

.faq-list { display: flex; flex-direction: column; gap: 0.7rem; }

.faq-item {
  background: var(--card);
  border-radius: 2rem;
}

.faq-item summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.75rem 1.35rem;
  cursor: pointer;
  list-style: none;
  text-align: start;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.faq-item[open] summary::after { content: "×"; }

.faq-item p {
  margin: 0;
  padding: 0 3.4rem 1.05rem 1.35rem;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

.cta p { max-width: 36rem; margin: 0; }

.footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-links { display: contents; }

.footer h2 { font-size: 2.2rem; max-width: 10em; }

.footer-brand,
.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer a { text-decoration: underline; text-underline-offset: 3px; }

.avatar-row { display: flex; align-items: center; gap: 0.45rem; }

.avatar {
  width: 5.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.mark {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: #3a2f2a;
  color: var(--paper);
  display: grid;
  place-items: center;
  text-decoration: none;
}

.mark svg { width: 1.7rem; height: 1.7rem; fill: currentColor; }

/* Обычный десктоп: 1440 и 1280 */
@media (max-width: 1679px) {
  .page { width: min(1360px, calc(100% - 5rem)); }
  .hero-photo { width: min(100%, 24rem); }
  .nav { font-size: 1.12rem; }
  .nav-center, .nav-end { gap: 1.15rem; }
}

@media (max-width: 1439px) {
  .page { width: min(1180px, calc(100% - 3.5rem)); }
  .hero-name { font-size: 3.1rem; }
  .hero-photo { width: min(100%, 21rem); max-height: calc(100svh - 6rem); }
  h2 { font-size: 2.6rem; }
  .requests-intro h2 { font-size: 2.15rem; }
}

/* Альбомный планшет: широкая схема, чуть плотнее */
@media (max-width: 1279px) {
  .page { width: min(1040px, calc(100% - 2.5rem)); }
  .nav-brand { display: none; }
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.05rem;
  }
  .nav-center { flex: 1; justify-content: center; }
  .hero { min-height: calc(100svh - 4rem); }
  .hero-name { font-size: 2.7rem; }
  .hero-photo { width: min(100%, 18rem); }
  .steps::before { left: 4%; right: 4%; }
  .chair { width: 14rem; }
}

/* Портретный планшет */
@media (max-width: 979px) {
  .page { width: auto; padding-inline: 1.35rem; }
  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    gap: 0.55rem 0.4rem;
    font-size: 1.05rem;
  }
  .nav-center, .nav-end { display: contents; }
  .hero,
  .requests,
  .consult-top,
  .outcomes,
  .about-body,
  .faq,
  .footer {
    grid-template-columns: 1fr;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 0;
    padding-bottom: 1rem;
  }
  .hero-copy { display: contents; }
  .hero-name { order: 1; }
  .hero-text { order: 2; }
  .hero-photo {
    order: 3;
    align-self: center;
    justify-self: center;
    width: min(78%, 22rem);
    max-height: none;
  }
  .hero .button { order: 4; }
  .requests-intro { text-align: center; }
  .requests-intro h2 { font-size: 2.2rem; }
  .requests-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .outcomes-list { width: min(100%, 28rem); }
  .outcomes-copy h2 { border-left: 0; padding-left: 0; max-width: none; }
  .about-portrait { display: none; }
  .about-arch { width: min(70%, 22rem); }
  .about-side { align-items: stretch; }
  .values { flex-direction: column; align-items: center; gap: 1.15rem; max-width: none; }
  .values li { flex: 0 0 auto; width: min(100%, 18rem); max-width: 18rem; min-width: 0; }
  .format-switch { gap: 0.4rem; }
  .format-switch button { padding: 0.55rem 0.7rem; font-size: 0.95rem; }
  .format-foot {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer { justify-items: center; text-align: center; }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    text-align: start;
  }
  .footer-brand { align-items: center; }
  .footer-links .footer-nav,
  .footer-links .footer-contact { align-items: flex-start; }
  .faq h2 { text-align: center; }
}

/* Портретный телефон */
@media (max-width: 560px) {
  .page { padding-inline: 1rem; }
  .nav { font-size: 0.95rem; }
  h2, .requests-intro h2 { font-size: 1.9rem; }
  .hero-name { font-size: 2.35rem; }
  .hero-text { font-size: 1.05rem; }
  .hero-photo { width: min(92%, 20rem); }
  .requests-list { gap: 1rem 0.8rem; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .format > h2 { margin-bottom: 2rem; }
  .format-hint,
  .format-switch { display: none; }
  .format-board {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
  }
  .format-block,
  .format-block:not(.is-active) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  .format-name {
    display: block;
    font-size: 1.6rem;
  }
  .format-lead,
  .format-lead[data-format-lead="single"],
  .format-lead[data-format-lead="package"] {
    margin: 0;
    padding: 0;
    text-align: center;
  }
  .rule { font-size: 1.25rem; white-space: normal; }
  .outcomes-list {
    width: min(100%, 22rem);
    padding: 18% 16% 18% 11%;
    font-size: 0.92rem;
    gap: 0.5rem;
  }
  .faq-item p { padding-right: 1.35rem; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .chair { width: min(78%, 16rem); }
}

/* Альбомный телефон: короткий первый экран, не уменьшенный портрет */
@media (orientation: landscape) and (max-height: 500px) {
  .page { padding-inline: 1.2rem; }
  .nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    gap: 0.4rem 0.7rem;
    padding-top: 0.45rem;
    font-size: 0.92rem;
  }
  .nav-brand { display: none; }
  .nav-center, .nav-end { display: contents; }
  .hero {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    min-height: 0;
    height: calc(100svh - 2.6rem);
    max-height: calc(100svh - 2.6rem);
    padding-top: 0.2rem;
    gap: 0.8rem;
    overflow: hidden;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
  }
  .hero-name,
  .hero-text,
  .hero-photo,
  .hero .button { order: 0; }
  .hero-name { font-size: 1.7rem; padding-bottom: 0.55rem; }
  .hero-role { font-size: 9px; bottom: -0.45rem; }
  .hero-text { font-size: 0.92rem; }
  .hero .button { font-size: 0.95rem; padding: 0.35rem 0.9rem; }
  .hero-photo {
    order: 0;
    width: auto;
    height: 100%;
    max-height: 100%;
    aspect-ratio: auto;
    justify-self: end;
    border-radius: 8rem 8rem 0 0;
  }
  .section { padding-block: 1.6rem; }
  .requests,
  .consult-top,
  .about-body,
  .faq {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 1rem;
  }
  .requests-intro h2 { font-size: 1.7rem; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps::before { display: block; left: 6%; right: 6%; }
  .outcomes {
    grid-template-columns: 0.55fr 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
  }
  .outcomes-list {
    width: min(100%, 26rem);
    height: 19rem;
    aspect-ratio: auto;
    justify-self: center;
    padding: 2.35rem 2.1rem;
    font-size: 0.78rem;
    line-height: 1.25;
    gap: 0.22rem;
    border-radius: 50%;
  }
  .footer {
    grid-template-columns: 1.1fr 1fr 1fr;
    justify-items: start;
    text-align: start;
  }
  .footer-links { display: contents; }
  .footer h2 { font-size: 1.6rem; }
  .requests-photo,
  .about-arch,
  .chair { width: min(100%, 11rem); }
  .values {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    max-width: none;
  }
  .values li {
    flex: 0 1 calc(25% - 1.1rem);
    width: auto;
    min-width: 0;
    max-width: none;
  }
}
