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

:root {
  --bg: #FAF7F2;
  --tint: #F3EEE7;
  --tile: #F1ECE4;
  --card: #FFFFFF;
  --line: #E4DCD1;
  --ink: #26272B;
  --ink-soft: #5E5F66;
  --dark: #26272B;
  --dark-2: #303136;
  --on-dark: #F4EFE8;
  --on-dark-soft: #B9B5AE;
  --copper: #B8866B;
  --copper-text: #8A5D43;
  --copper-light: #D9B8A3;
  --teal: #1F807C;
  --teal-bright: #2A9D98;
  --radius: 18px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3, p, ol, ul { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--copper-text); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--copper); }
.eyebrow--light { color: var(--copper-light); }
.split { display: grid; gap: 28px; }
.prose { display: grid; gap: 1.1em; max-width: 64ch; color: var(--ink-soft); }
.prose__lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 1.75rem); line-height: 1.35; color: var(--ink); }
.note { margin-top: 28px; font-size: 0.85rem; color: var(--ink-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 28px; border: 1px solid var(--teal); border-radius: 999px; background: var(--teal); color: #fff; font: 600 0.95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: #17635F; border-color: #17635F; }
.btn--small { min-height: 42px; padding: 8px 20px; font-size: 0.875rem; }
.btn--ghost { background: transparent; border-color: var(--copper-light); color: var(--on-dark); }
.btn--ghost:hover { background: var(--copper-light); border-color: var(--copper-light); color: var(--dark); }
.btn--outline { background: transparent; color: var(--teal); }
.btn--outline:hover { background: var(--teal); color: #fff; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo--light { color: var(--on-dark); }
.nav { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.nav a:hover { color: var(--teal); }
.nav.is-open { display: grid; position: absolute; top: 100%; left: 0; right: 0; padding: 8px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.burger { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

/* Hero */
.hero { background: var(--dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23B8866B' stroke-opacity='.22' stroke-width='1.5'%3E%3Cpath d='M-20 420C200 300 380 520 620 400S1000 240 1220 360'/%3E%3Cpath d='M-20 455C210 335 390 555 630 435S1010 275 1220 395'/%3E%3Cpath d='M-20 490C220 370 400 590 640 470S1020 310 1220 430'/%3E%3Cpath d='M-20 525C230 405 410 625 650 505S1030 345 1220 465'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat; color: var(--on-dark); padding: clamp(44px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__lead { margin-top: 22px; max-width: 34ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--on-dark-soft); }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__photo { justify-self: center; width: min(100%, 420px); aspect-ratio: 4 / 5; border-radius: 210px 210px var(--radius) var(--radius); overflow: hidden; border: 1px solid rgba(217, 184, 163, .5); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

/* Expertise */
.path { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.path li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; line-height: 1.2; }
.path span { display: block; font: 700 0.72rem/1 var(--sans); letter-spacing: 0.16em; color: var(--copper-text); margin-bottom: 12px; }
.path small { display: block; font: 500 0.8rem/1.4 var(--sans); color: var(--ink-soft); margin-top: 4px; }
.diplomas { margin-top: 40px; display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.diplomas a { display: block; border-radius: 12px; overflow: hidden; background: var(--tile); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.diplomas a:hover { transform: translateY(-3px); border-color: var(--copper); }
.diplomas img { width: 100%; mix-blend-mode: multiply; }

/* Products */
.grid { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { display: flex; flex-direction: column; text-align: left; padding: 0 0 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; font: inherit; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--copper); box-shadow: 0 18px 40px -24px rgba(38, 39, 43, .45); }
.card__img { background: var(--tile); padding: 18px; }
.card__img img { width: 100%; mix-blend-mode: multiply; }
.card__name { margin: 20px 22px 8px; font: 800 1.02rem/1.25 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.card__lead { margin: 0 22px 16px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__more { margin: auto 22px 0; font-size: 0.85rem; font-weight: 700; color: var(--teal); }
.card__more::after { content: ' →'; }

/* Dialogs */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(26, 27, 30, .72); }
.modal { width: min(940px, 100% - 24px); max-height: min(92vh, 92dvh); border-radius: var(--radius); background: var(--card); overflow: auto; }
.modal__close, .lightbox__close { position: sticky; float: right; top: 10px; margin: 10px 10px -54px 0; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tile); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.pd { display: grid; }
.pd__img { background: var(--tile); padding: 14px; display: grid; place-items: center; }
.pd__img img { width: min(100%, 170px); mix-blend-mode: multiply; }
.pd__content { padding: 26px 22px 28px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.pd__name { font: 800 1.35rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; padding-right: 44px; }
.pd__lead { color: var(--ink-soft); }
.pd__block h4 { margin: 0 0 6px; font: 700 0.72rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-text); }
.pd__block ul { padding-left: 1.1em; display: grid; gap: 4px; }
.pd__table { overflow-x: auto; }
.pd table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.pd th, .pd td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.pd th { font-weight: 700; }
.pd td:first-child { white-space: nowrap; font-weight: 600; }
.pd__note { font-size: 0.9rem; color: var(--ink-soft); }
.pd__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pd__actions .btn { flex: 1 1 200px; }
.pd__legal { font-size: 0.78rem; color: var(--ink-soft); }

.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(20, 21, 24, .9); }
.lightbox img { max-width: calc(100vw - 24px); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); border-radius: 8px; background: #fff; touch-action: pan-y; user-select: none; }
.lightbox__close { position: fixed; float: none; top: 14px; right: 14px; margin: 0; }
.lightbox__prev, .lightbox__next { position: fixed; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(250, 247, 242, .92); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }
.lightbox__count { position: fixed; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--on-dark); font-size: 0.9rem; }

/* Consultations */
.plans { margin-top: 40px; display: grid; gap: 16px; }
.plan { background: var(--dark-2); border: 1px solid rgba(217, 184, 163, .28); border-radius: var(--radius); padding: 28px 24px 30px; display: flex; flex-direction: column; gap: 14px; color: var(--on-dark-soft); }
.plan__head { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid rgba(217, 184, 163, .28); }
.plan__num { grid-column: 1 / -1; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; color: var(--copper-light); }
.plan h3 { font: 500 clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--serif); color: var(--on-dark); }
.plan__price { font: 500 clamp(2rem, 3.4vw, 2.6rem)/1 var(--serif); color: var(--copper-light); }
.plan__format { color: var(--on-dark); font-weight: 600; }
.plan__support { padding: 14px 16px; border-radius: 12px; background: rgba(42, 157, 152, .14); color: var(--on-dark); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan__support + .btn { margin-top: 10px; }
.diff { margin-top: clamp(40px, 6vw, 64px); }
.diff h3 { font: 500 1.9rem/1.1 var(--serif); margin-bottom: 18px; }
.diff__grid { display: grid; gap: 16px; color: var(--on-dark-soft); }
.diff__grid p { padding-left: 18px; border-left: 2px solid var(--copper); }
.diff__grid strong { color: var(--on-dark); }

/* Footer */
.footer { background: #1D1E21; color: var(--on-dark-soft); padding: 40px 0 96px; }
.footer__row { display: grid; gap: 28px; }
.footer__right { display: grid; gap: 14px; justify-items: start; }
.footer__note { font-size: 0.85rem; margin-top: 6px; }

@media (max-width: 639px) {
  .lightbox img { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; translate: none; }
  .lightbox__prev { left: calc(50% - 110px); }
  .lightbox__next { right: calc(50% - 110px); }
  .lightbox__count { bottom: 26px; }
  .card { display: grid; grid-template-columns: 112px 1fr; align-content: start; padding: 0; }
  .card__img { grid-row: 1 / 4; padding: 10px; display: grid; place-items: center; }
  .card__name { margin: 16px 16px 6px; font-size: 0.92rem; }
  .card__lead { margin: 0 16px 10px; font-size: 0.85rem; }
  .card__more { margin: 0 16px 16px; }
}
@media (max-width: 400px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .header__row { gap: 6px; }
  .logo { font-size: 1.35rem; }
  .header .btn--small { padding: 8px 14px; }
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .diplomas { grid-template-columns: repeat(4, 1fr); }
  .diff__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__row { grid-template-columns: 1fr auto; align-items: end; }
  .footer__right { justify-items: end; text-align: right; }
}
@media (min-width: 960px) {
  .burger { display: none; }
  .nav, .nav.is-open { display: flex; position: static; gap: 30px; padding: 0; margin-right: 18px; background: none; border: 0; }
  .nav.is-open a { padding: 0; border: 0; font-size: 0.93rem; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .hero__photo { justify-self: end; width: min(100%, 440px); }
  .split { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .diplomas { grid-template-columns: repeat(6, 1fr); }
  .plans { grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: stretch; }
  .plan { padding: 36px 34px 38px; }
  .pd { grid-template-columns: .8fr 1.2fr; }
  .pd__img { align-content: start; padding: 44px 28px; }
  .pd__img img { width: min(100%, 360px); }
  .pd__content { padding: 38px 36px 36px; }
}
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
