@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/cormorant-600-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/cormorant-600-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-italic-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-italic-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC;
}

:root {
  --paper: #f6f1ea;
  --paper-deep: #efe6dc;
  --surface: #fffcf7;
  --ink: #3a3348;
  --ink-soft: #5c5468;
  --muted: #7a7188;
  --primary: #5e4e7a;
  --primary-fg: #f6f1ea;
  --lilac: #e9e0f0;
  --lilac-deep: #d4c6e0;
  --wheat: #b8956a;
  --border: rgba(58, 51, 72, 0.12);
  --shadow:
    0 0 0 1px rgba(58, 51, 72, 0.06), 0 1px 2px -1px rgba(58, 51, 72, 0.06),
    0 10px 28px -8px rgba(58, 51, 72, 0.1);
  --shadow-hover:
    0 0 0 1px rgba(58, 51, 72, 0.08), 0 16px 36px -10px rgba(58, 51, 72, 0.14);
  --shadow-soft: 0 18px 50px -20px rgba(58, 51, 72, 0.28);
  --display: clamp(2.6rem, 1.4rem + 5vw, 5.25rem);
  --title: clamp(1.85rem, 1.2rem + 2.2vw, 3rem);
  --font: "Manrope", system-ui, sans-serif;
  --display-font: "Cormorant Garamond", "Times New Roman", serif;
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
}
img { max-width: 100%; display: block; outline: 1px solid rgba(58, 51, 72, 0.1); outline-offset: -1px; }
a { color: inherit; }
button, [role="button"] { cursor: pointer; font-family: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }

.wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
@media (min-width: 640px) { .wrap { width: min(72rem, calc(100% - 4rem)); } }

.header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.header.is-scrolled, .header.is-open {
  background: color-mix(in oklab, var(--paper) 90%, white);
  border-color: var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.mark {
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--primary); color: var(--primary-fg);
}
.brand-name { font-family: var(--display-font); font-size: 1.125rem; font-weight: 600; line-height: 1; }
.brand-sub { display: block; margin-top: 0.2rem; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.nav { display: none; gap: 1.75rem; }
.nav a { text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.header-cta { display: none; gap: 0.75rem; }
.menu-btn {
  width: 2.75rem; height: 2.75rem; border: 0; background: transparent; color: var(--ink);
  display: grid; place-items: center; border-radius: 999px;
}
.mobile-nav {
  display: none; border-top: 1px solid var(--border); background: var(--paper);
  padding: 1.25rem 1.25rem 1.5rem;
}
.header.is-open .mobile-nav { display: block; }
.mobile-nav a {
  display: block; padding: 0.75rem 0.75rem; text-decoration: none; font-weight: 500; border-radius: 8px;
}
.mobile-nav .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1rem; }

@media (min-width: 1024px) {
  .nav, .header-cta { display: flex; align-items: center; }
  .menu-btn, .mobile-nav { display: none !important; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; border: 0;
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.btn svg { width: 1rem; height: 1rem; }
.btn:active { transform: scale(0.96); }
.btn-lg { height: 3rem; padding: 0 1.5rem; }
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--ink); }
.btn-outline { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn-outline:hover { background: var(--lilac); }
.btn-sm { height: 2.5rem; padding: 0 1rem; }

.hero { padding: 2rem 0 4rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.eyebrow { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; color: var(--primary); margin: 0; }
.hero h1 {
  margin: 1rem 0 0;
  font-family: var(--display-font);
  font-size: var(--display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.hero h1 span { color: var(--primary); }
.tagline {
  margin: 1.25rem 0 0;
  font-family: var(--display-font);
  font-size: clamp(1.4rem, 1rem + 1.4vw, 1.875rem);
  font-style: italic; font-weight: 600;
  color: var(--primary); line-height: 1.25;
}
.lead { margin: 1.5rem 0 0; max-width: 36rem; color: var(--ink-soft); font-size: 1.05rem; }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.phones { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2rem; font-size: 0.9rem; color: var(--muted); }
.phones a { font-weight: 500; color: var(--ink); text-decoration: none; }
.phones a:hover { color: var(--primary); }
.phones span { font-weight: 400; color: var(--muted); margin-left: 0.5rem; }
.portrait { position: relative; max-width: 28rem; margin: 0 auto; }
.badge {
  display: none; position: absolute; right: -0.25rem; top: 1rem; z-index: 2;
  background: var(--wheat); color: var(--ink); border-radius: 999px;
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; box-shadow: var(--shadow);
}
.frame { overflow: hidden; border-radius: 28px; box-shadow: var(--shadow-soft); }
.frame > img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 12%; outline: none; }
.desk-card {
  display: none; position: absolute; left: 0.85rem; bottom: 0.85rem; width: 8.5rem;
  overflow: hidden; border-radius: 12px; box-shadow: var(--shadow);
}
.desk-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.more { display: flex; justify-content: center; gap: 0.5rem; color: var(--muted); font-size: 0.9rem; font-weight: 500; text-decoration: none; padding-bottom: 1.5rem; }

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; align-items: center; }
  .badge, .desk-card { display: block; }
}
@media (min-width: 1024px) {
  .hero { padding: 3rem 0 5rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .portrait { max-width: none; }
  .desk-card { left: 0.85rem; width: 9rem; }
}

.section { padding: 4rem 0; }
.section-head { max-width: 40rem; }
.section-head h2, .faq-intro h2, .contact-copy h2, .about-copy h2 {
  margin-top: 0.75rem;
  font-family: var(--display-font);
  font-size: var(--title);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section-head p, .faq-intro p { margin-top: 0.75rem; color: var(--ink-soft); }
.cards { display: grid; gap: 1rem; margin-top: 2.5rem; }
.card {
  background: var(--surface); border-radius: 20px; padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow); transition: transform 200ms ease, box-shadow 200ms ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.icon {
  width: 2.75rem; height: 2.75rem; border-radius: 12px;
  display: grid; place-items: center; background: var(--lilac); color: var(--primary);
}
.icon svg { width: 1.25rem; height: 1.25rem; }
.card h3, .subject h3, .step h3, .adv h3 {
  font-family: var(--display-font); font-size: 1.5rem; font-weight: 600; margin: 1.15rem 0 0;
}
.card p, .step p, .adv p { margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.warn {
  margin-top: 1.5rem; display: flex; gap: 1rem;
  border: 1px solid color-mix(in oklab, var(--wheat) 40%, transparent);
  background: color-mix(in oklab, var(--wheat) 15%, transparent);
  border-radius: 20px; padding: 1.25rem 1.5rem;
}
.warn strong { display: block; }
.warn p { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.warn svg { flex: none; margin-top: 0.15rem; color: var(--wheat); width: 1.25rem; height: 1.25rem; }

.subjects { background: color-mix(in oklab, var(--lilac) 55%, var(--paper)); }
.subject-grid { display: grid; gap: 1rem; margin-top: 2.5rem; }
.subject { background: color-mix(in oklab, var(--surface) 80%, white); border-radius: 20px; padding: 1.5rem 1.75rem; box-shadow: var(--shadow); }
.subject ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.subject li { display: flex; gap: 0.75rem; font-size: 0.9rem; color: var(--ink-soft); }
.dot { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--primary); margin-top: 0.45rem; flex: none; }

.steps { display: grid; gap: 2.5rem; margin-top: 3rem; list-style: none; padding: 0; margin-left: 0; }
.step-n { font-family: var(--display-font); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--lilac-deep); }

.adv-grid { display: grid; gap: 1rem; }
.adv { background: var(--surface); border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow); }
.adv h3 { font-family: var(--font); font-size: 1rem; font-weight: 500; margin-top: 1rem; }
.adv p { color: var(--muted); }

.about {
  display: grid; overflow: hidden; border-radius: 28px; background: var(--primary); color: var(--primary-fg);
  align-items: center;
}
.about-photo { background: var(--primary); }
.about-photo img { width: 100%; height: auto; display: block; outline: none; }
.about-copy { padding: 2.5rem 1.5rem; }
.about-copy .eyebrow { color: var(--lilac-deep); }
.about-copy p { color: var(--lilac); }
.quote { margin-top: 1.25rem; font-family: var(--display-font); font-size: 1.5rem; font-style: italic; color: var(--paper); line-height: 1.3; }

.faq-grid { display: grid; gap: 2.5rem; }
.faq-list { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-item button {
  width: 100%; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  background: none; border: 0; text-align: left; padding: 1.25rem 1.5rem;
  font-family: var(--display-font); font-size: 1.25rem; font-weight: 600; color: var(--ink);
}
.faq-item button svg { flex: none; color: var(--muted); transition: transform 200ms ease; }
.faq-item.is-open button svg { transform: rotate(180deg); }
.faq-item .answer { display: none; padding: 0 1.5rem 1.25rem; color: var(--ink-soft); font-size: 0.95rem; }
.faq-item.is-open .answer { display: block; }

.contact-box {
  display: grid; overflow: hidden; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow);
  margin-bottom: 6rem;
}
.contact-copy { padding: 2.5rem 1.5rem; }
.form { display: grid; gap: 1rem; margin-top: 2rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; height: 2.75rem; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--ink); padding: 0 0.9rem; font: inherit; font-size: 0.9rem;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7188' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.4rem;
}
.field textarea { height: auto; min-height: 7rem; padding: 0.75rem 0.9rem; border-radius: 16px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid color-mix(in oklab, var(--primary) 25%, transparent);
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
}
.form-actions { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.5rem; }
.form-hint { margin: 0; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.contact-side {
  position: relative; min-height: 20rem; background: var(--paper-deep);
}
.contact-side > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; outline: none; }
.contact-side-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 1.5rem; }
.phone-card { background: color-mix(in oklab, var(--surface) 95%, white); border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow); }
.phone-card h3 { font-family: var(--display-font); font-size: 1.5rem; margin: 0; }
.phone-card .sub { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.875rem; }
.phone-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.phone-row a { font-weight: 500; text-decoration: none; }
.phone-row small { display: block; color: var(--muted); font-size: 0.75rem; }
.copy {
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: 999px;
  background: var(--lilac); color: var(--primary); display: grid; place-items: center;
}
.side-quote { font-family: var(--display-font); font-size: 1.5rem; font-style: italic; max-width: 18rem; margin: 0; }

.footer { border-top: 1px solid var(--border); background: var(--paper-deep); }
.footer-inner { display: flex; flex-direction: column; gap: 2rem; padding: 2.5rem 0; }
.footer p { max-width: 18rem; color: var(--muted); font-size: 0.9rem; margin: 0.75rem 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a { text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.social { display: flex; gap: 0.75rem; }
.social a {
  width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow); display: grid; place-items: center; color: var(--primary);
}
.legal { border-top: 1px solid var(--border); padding: 1rem 0; color: var(--muted); font-size: 0.75rem; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--paper) 95%, white);
  padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.dock a { height: 3rem; }

.toast {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%) translateY(-120%);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  border-radius: 999px; padding: 0.7rem 1.1rem; font-size: 0.875rem; font-weight: 500;
  z-index: 60; opacity: 0; pointer-events: none;
  transition: transform 200ms ease, opacity 200ms ease;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-actions { flex-direction: row; }
  .contact-copy, .about-copy { padding: 2.5rem; }
  .dock { display: none; }
  .contact-box { margin-bottom: 4rem; }
}
@media (min-width: 1024px) {
  .subject-grid, .steps { grid-template-columns: 1fr 1fr 1fr; }
  .adv-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .about, .contact-box, .faq-grid, .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner { display: grid; align-items: start; }
  .contact-copy, .about-copy { padding: 3rem; }
}

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