/* Токены, типографика, каркас, шапка, подвал, кнопки */
:root {
  --paper: #fbf6f0;
  --paper-2: #f5ece2;
  --card: #fffdfa;
  --ink: #2f2a29;
  --ink-soft: #5d5350;
  --line: #e8dbcd;
  --rose: #c26a55;
  --rose-ink: #9c4a37;
  --rose-soft: #f4d9cf;
  --sage: #6f8f78;
  --sage-ink: #4d6b56;
  --sage-soft: #dfe9df;
  --honey: #d9a441;
  --honey-soft: #f7e8c6;
  --lilac: #9c8bbf;
  --lilac-soft: #ebe4f3;
  --todo-bg: #fff1a8;
  --todo-ink: #6b4f00;
  --shadow: 0 10px 30px -14px rgba(92, 60, 40, 0.28);
  --shadow-lg: 0 22px 46px -18px rgba(92, 60, 40, 0.36);
  --radius: 22px;
  --radius-sm: 14px;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Segoe Print", cursive;
  --wrap: 1240px;
  --narrow: 760px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; color: var(--ink); margin: 0 0 0.6em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.hand { font-family: var(--font-hand); font-size: 1.5rem; line-height: 1.2; color: var(--rose-ink); }
.hand.big { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.kicker { font-family: var(--font-hand); font-size: 1.45rem; color: var(--sage-ink); margin: 0 0 0.2em; line-height: 1.2; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }
.section { padding: clamp(44px, 7vw, 84px) 0; position: relative; }
.tinted { background: var(--paper-2); }
.tinted-sage { background: linear-gradient(180deg, var(--sage-soft), var(--paper)); }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 240, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; background: var(--rose); -webkit-mask: url(/assets/decor/puzzle-solid.svg) center / contain no-repeat; mask: url(/assets/decor/puzzle-solid.svg) center / contain no-repeat; transform: rotate(-12deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.brand-role { font-family: var(--font-hand); color: var(--sage-ink); font-size: 1.1rem; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav a { display: block; white-space: nowrap; padding: 8px 11px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; transition: background 0.2s; }
.main-nav a:hover { background: var(--rose-soft); }
.main-nav a[aria-current="page"] { background: var(--sage-soft); color: var(--sage-ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 14px; width: 48px; height: 48px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline; }

@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px var(--gutter) 20px; }
  .main-nav a { padding: 14px 16px; font-size: 1.08rem; }
}
@media (max-width: 640px) { .site-header .header-cta { display: none; } .brand-role { font-size: 1rem; } }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary { background: var(--rose-ink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: #873e2d; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--card); color: var(--ink); }
.btn-light { background: var(--card); color: var(--rose-ink); border-color: var(--line); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.header-cta { min-height: 44px; padding: 10px 18px; white-space: nowrap; }
.more-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.more-link:hover span { text-decoration: underline; }

/* Плавающая кнопка MAX на мобильных */
.float-cta { display: none; }
@media (max-width: 760px) {
  .float-cta { display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--rose-ink); color: #fff; padding: 14px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-lg); }
  .float-cta:hover { color: #fff; }
  .float-cta.is-hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }
  .float-cta { transition: opacity 0.2s, transform 0.2s; }
  body { padding-bottom: 76px; }
}

/* Подвал */
.site-footer { background: var(--ink); color: #efe6dc; padding: 56px 0 40px; margin-top: 0; }
.site-footer a { color: #f6d3c7; }
.footer-inner { display: grid; gap: 32px; grid-template-columns: 1.3fr 1fr 1fr; }
.footer-name { font-family: var(--font-head); font-size: 1.3rem; color: #fff; margin-bottom: 6px; }
.site-footer .hand { color: #f0b9a6; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-meta { display: grid; gap: 4px; align-content: start; justify-items: start; }
.footer-meta .btn { margin-bottom: 12px; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }

/* Плейсхолдер незаполненных данных */
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 2px 8px; border-radius: 8px; font-weight: 700; font-size: 0.92em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Карточки, чипы, галереи, лайтбокс, CTA, текст статей, упражнения */
.page-head { padding: clamp(40px, 7vw, 76px) 0 clamp(20px, 3vw, 32px); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; background: url(/assets/decor/blob-rose.svg) center / contain no-repeat; opacity: 0.8; pointer-events: none; }
.page-head::after { content: ""; position: absolute; width: 260px; height: 260px; left: -110px; bottom: -150px; background: url(/assets/decor/blob-sage.svg) center / contain no-repeat; opacity: 0.7; pointer-events: none; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { max-width: 22ch; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 700; text-decoration: none; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0.2em; }
.section-lead { color: var(--ink-soft); margin: 0; max-width: 60ch; }

/* Карточки */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cards-wide { grid-template-columns: 1fr; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card[hidden] { display: none; }
.card-cover { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover-empty { display: grid; place-items: center; background: url(/assets/decor/blob-honey.svg) center / 120% no-repeat, var(--paper-2); }
.card:nth-child(3n+2) .card-cover-empty { background-image: url(/assets/decor/blob-sage.svg); }
.card:nth-child(3n) .card-cover-empty { background-image: url(/assets/decor/blob-lilac.svg); }
.cover-mark { width: 64px; height: 64px; background: url(/assets/decor/puzzle.svg) center / contain no-repeat; transform: rotate(-10deg); opacity: 0.9; }
.photo-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(47, 42, 41, 0.78); color: #fff; font-size: 0.85rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage-ink); margin-bottom: 8px; }
.card-title { font-size: 1.2rem; margin-bottom: 10px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-title a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--sage); outline-offset: 3px; }
.card-text { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }
.cards-text .card { border-top: 6px solid var(--rose-soft); }
.cards-text .card:nth-child(4n+2) { border-top-color: var(--sage-soft); }
.cards-text .card:nth-child(4n+3) { border-top-color: var(--honey-soft); }
.cards-text .card:nth-child(4n) { border-top-color: var(--lilac-soft); }

/* Чипы и фильтр */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.97rem; text-decoration: none; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.chip:hover { border-color: var(--rose); transform: translateY(-1px); color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-lg { font-size: 1.02rem; padding: 12px 20px; background: var(--card); }
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }

/* Галерея и лайтбокс */
.gallery { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.gallery-large { grid-template-columns: 1fr; gap: 18px; }
.gallery-link { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.gallery:not(.gallery-large) .gallery-link img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform 0.3s; }
.gallery-link:hover img { transform: scale(1.03); }
.gallery-large .gallery-link img { width: 100%; }
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(28, 24, 23, 0.94); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: rgba(28, 24, 23, 0.94); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 16px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lb-bottom { display: flex; justify-content: center; gap: 16px; padding: 12px 16px 20px; }
.lb-btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-btn[disabled] { opacity: 0.3; cursor: default; }
.lb-count { font-weight: 700; }

/* CTA */
.cta-box { position: relative; margin: 48px 0 8px; padding: 34px 30px; border-radius: var(--radius); background: linear-gradient(135deg, var(--rose-soft), var(--honey-soft)); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.cta-box h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); max-width: 22ch; }
.cta-box p { max-width: 48ch; color: var(--ink-soft); }
.cta-yarn { position: absolute; right: 18px; top: 16px; width: 110px; height: 80px; background: url(/assets/decor/yarn.svg) center / contain no-repeat; opacity: 0.85; }
@media (max-width: 560px) { .cta-yarn { width: 74px; height: 54px; opacity: 0.5; } }

/* Текст статей */
.prose { font-size: 1.1rem; line-height: 1.78; }
.prose > * { max-width: 68ch; }
.prose h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--rose); font-weight: 700; }
.prose li > ul { margin: 0.5em 0 0.2em; }
.step-title { display: flex; gap: 12px; align-items: baseline; color: var(--rose-ink); }
.visual-note { display: flex; gap: 10px; align-items: center; background: var(--honey-soft); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; }

/* Упражнение: цель → шаги → что даёт */
.ex-part { margin-bottom: 34px; }
.ex-label { font-family: var(--font-hand); font-size: 1.9rem; font-weight: 700; color: var(--sage-ink); margin: 0 0 8px; }
.ex-goal { background: var(--sage-soft); border-radius: var(--radius); padding: 22px 26px 8px; }
.ex-result { background: var(--honey-soft); border-radius: var(--radius); padding: 22px 26px 8px; border-left: 6px solid var(--honey); }
.steps-cards { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 16px; }
.steps-cards > li { counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 18px 74px; box-shadow: var(--shadow); max-width: none; }
.steps-cards > li::before { content: counter(step); position: absolute; left: 20px; top: 18px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--rose-ink); color: #fff; font-weight: 700; font-family: var(--font-head); }
@media (max-width: 560px) {
  .steps-cards > li { padding: 16px 16px 14px 56px; }
  .steps-cards > li::before { left: 12px; top: 14px; width: 32px; height: 32px; font-size: 0.95rem; }
  .ex-goal, .ex-result { padding: 18px 18px 4px; }
  .prose { font-size: 1.05rem; }
}
.worksheet { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; }

/* Список с пазлами вместо маркеров */
.puzzle-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 14px; }
.puzzle-list li { position: relative; padding: 14px 18px 14px 58px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 1.08rem; }
.puzzle-list li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; background: var(--rose); -webkit-mask: url(/assets/decor/puzzle-solid.svg) center / contain no-repeat; mask: url(/assets/decor/puzzle-solid.svg) center / contain no-repeat; }
.puzzle-list li:nth-child(4n+2)::before { background: var(--sage); transform: rotate(90deg); }
.puzzle-list li:nth-child(4n+3)::before { background: var(--honey); transform: rotate(180deg); }
.puzzle-list li:nth-child(4n)::before { background: var(--lilac); transform: rotate(270deg); }

/* Пред./след. */
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.pn { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 600; transition: border-color 0.2s; }
.pn:hover { border-color: var(--rose); color: var(--ink); }
.pn span { display: block; font-family: var(--font-body); font-size: 0.85rem; color: var(--sage-ink); font-weight: 700; margin-bottom: 4px; }
.pn-next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .prev-next { grid-template-columns: 1fr; } .pn-next { grid-column: 1; text-align: left; } }

/* Главная, «Обо мне», запросы, материалы, контакты */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); margin-bottom: 0.3em; }
.hero-tagline { font-family: var(--font-head); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.5; color: var(--ink-soft); max-width: 34ch; margin-bottom: 1.4em; position: relative; padding-bottom: 22px; }
.hero-tagline::after { content: ""; position: absolute; left: 0; bottom: 0; width: 170px; height: 16px; background: url(/assets/decor/squiggle.svg) left center / contain no-repeat; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 22px; }
.hero-photo { position: relative; margin: 0; justify-self: center; width: min(100%, 420px); }
/* Портрет в форме арки + рисованная рамка со смещением (вместо овала) */
.hero-photo .portrait, .about-photo .portrait { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 24%; border-radius: 999px 999px 28px 28px; box-shadow: var(--shadow-lg); border: 6px solid var(--card); }
.hero-photo::after, .about-photo::after { content: ""; position: absolute; z-index: 0; inset: 22px -22px -22px 22px; border: 2px solid var(--sage); border-radius: 999px 999px 32px 32px; pointer-events: none; }
.blob { position: absolute; z-index: 0; pointer-events: none; background: center / contain no-repeat; }
.blob-rose { width: 125%; aspect-ratio: 1; left: -22%; top: -14%; background-image: url(/assets/decor/blob-rose.svg); }
.blob-sage { width: 70%; aspect-ratio: 1; right: -24%; bottom: -16%; background-image: url(/assets/decor/blob-sage.svg); }
.blob-honey { width: 120%; aspect-ratio: 1; left: -12%; top: -10%; background-image: url(/assets/decor/blob-honey.svg); }
.doodle { position: absolute; z-index: 2; background: center / contain no-repeat; pointer-events: none; }
.doodle-yarn { width: 130px; height: 94px; left: -40px; bottom: 8%; background-image: url(/assets/decor/yarn.svg); }
.doodle-puzzle { width: 64px; height: 64px; right: -6px; top: 4%; background-image: url(/assets/decor/puzzle.svg); transform: rotate(14deg); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; width: min(66%, 320px); }
  .doodle-yarn { width: 96px; height: 70px; left: -26px; }
}

.values h2 { margin-bottom: 1.1em; }
.closing { overflow: hidden; }
.closing-mark { display: block; width: 120px; height: 86px; margin: 0 auto 16px; background: url(/assets/decor/yarn.svg) center / contain no-repeat; }
.quote { font-family: var(--font-head); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.5; }
.closing .btn { margin-top: 14px; }

/* Материалы на главной */
.material-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); }
.material-tile { display: block; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.35; }
.material-tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 12px; transition: transform 0.2s, box-shadow 0.2s; }
.material-tile:hover img { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--shadow-lg); }

/* Обо мне */
.about-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-photo { position: sticky; top: 100px; margin: 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-photo { position: relative; top: 0; width: min(80%, 340px); justify-self: center; } }
.qual-list { list-style: none; padding: 0; margin: 0 0 2em; display: grid; gap: 12px; }
.qual-list li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* С чем я работаю */
.req-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.req-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.req-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.req-card p { font-family: var(--font-head); font-size: 1.22rem; line-height: 1.4; margin: 0; flex: 1; }
.req-card a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; font-size: 0.95rem; }
.req-piece { width: 44px; height: 44px; -webkit-mask: url(/assets/decor/puzzle-solid.svg) center / contain no-repeat; mask: url(/assets/decor/puzzle-solid.svg) center / contain no-repeat; background: var(--rose); }
.req-1 .req-piece { background: var(--sage); transform: rotate(90deg); }
.req-2 .req-piece { background: var(--honey); transform: rotate(180deg); }
.req-3 .req-piece { background: var(--lilac); transform: rotate(270deg); }

/* Материалы */
.materials { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.material { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 28px; align-items: center; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.material-cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--radius-sm); border: 1px solid var(--line); transition: transform 0.2s; }
.material-cover:hover img { transform: rotate(-1.5deg) scale(1.02); }
.material h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.material-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; }
.file-meta { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 640px) { .material { grid-template-columns: 1fr; } .material-cover { width: min(70%, 240px); } }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.doc-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.doc-row a:not(.btn) { font-weight: 700; font-family: var(--font-head); font-size: 1.1rem; }
.doc-row p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.93rem; }
.doc-icon { color: var(--rose); }
@media (max-width: 640px) { .doc-row { grid-template-columns: auto 1fr; } .doc-row .btn { grid-column: 1 / -1; justify-self: start; } }

/* Контакты */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-list h2 { font-size: 1.15rem; margin: 0 0 4px; }
.contact-list p { margin: 0; }
.contact-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose-ink); }

/* Квалификация: ключевые факты и лента документов */
.credentials { padding: 0 0 clamp(36px, 5vw, 56px); }
.highlights { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.highlights li { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--rose-soft); }
.highlights li:nth-child(4n+2) { border-top-color: var(--sage-soft); }
.highlights li:nth-child(4n+3) { border-top-color: var(--honey-soft); }
.highlights li:nth-child(4n) { border-top-color: var(--lilac-soft); }
.hl-value { font-family: var(--font-head); font-size: 1.35rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; font-weight: 600; line-height: 1.2; color: var(--rose-ink); }
.hl-label { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.45; }
.hl-more { margin: 0; text-align: right; }
.edu-list { list-style: none; margin: 28px 0 24px; padding: 0 0 0 22px; border-left: 2px dashed var(--line); display: grid; gap: 18px; }
.edu-item { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.edu-item::before { content: ""; position: absolute; left: -33px; top: 26px; width: 20px; height: 20px; background: var(--rose); -webkit-mask: url(/assets/decor/puzzle-solid.svg) center / contain no-repeat; mask: url(/assets/decor/puzzle-solid.svg) center / contain no-repeat; }
.edu-item:nth-child(even)::before { background: var(--sage); }
.edu-year { font-family: var(--font-hand); font-size: 1.6rem; line-height: 1.1; color: var(--sage-ink); font-weight: 700; }
.edu-kind { margin: 0 0 4px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sage-ink); }
.edu-item h3 { font-size: 1.15rem; margin: 0 0 6px; }
.edu-org { margin: 0 0 6px; color: var(--ink-soft); font-size: 0.95rem; }
.edu-details { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }
@media (max-width: 560px) { .edu-item { grid-template-columns: 1fr; gap: 6px; padding: 18px; } .edu-list { padding-left: 18px; } .edu-item::before { left: -29px; } }
@media (max-width: 560px) { .hl-value { font-size: 1.18rem; } .highlights li { padding: 16px; } }
@media (max-width: 860px) { .hero-photo::after, .about-photo::after { inset: 14px -14px -14px 14px; } }
