:root {
  --ink: #302b22;
  --muted: #756b5b;
  --green: #c49020;
  --green-dark: #77530b;
  --mint: #fff1bd;
  --cream: #fffaf0;
  --peach: #f5d38a;
  --coral: #d9794f;
  --white: #fffefd;
  --line: rgba(157, 111, 16, 0.18);
  --shadow: 0 24px 70px rgba(119, 83, 11, 0.15);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 12%, rgba(245, 211, 138, 0.42), transparent 28rem),
    radial-gradient(circle at 92% 35%, rgba(255, 235, 170, 0.58), transparent 30rem),
    var(--cream);
  content: "";
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: .7rem 1rem;
  color: white;
  background: var(--green-dark);
  border-radius: 10px;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 12px 14px 12px 18px;
  background: rgba(255, 253, 250, 0.9);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 24px;
  box-shadow: 0 10px 35px rgba(27, 76, 72, .08);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.15; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; color: white; background: var(--green); border-radius: 15px 15px 15px 5px; font-family: Georgia, serif; font-size: 1.55rem; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 7px; }
.site-nav a { padding: 10px 13px; color: var(--ink); border-radius: 12px; font-size: .94rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--green-dark); background: var(--mint); outline: none; }
.site-nav .nav-cta { padding-inline: 18px; color: white; background: var(--green); }
.site-nav .nav-cta:hover, .site-nav .nav-cta:focus-visible { color: white; background: var(--green-dark); }

.menu-toggle { display: none; width: 46px; height: 46px; padding: 11px; background: transparent; border: 0; border-radius: 12px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; }

/* Страницы с коротким содержимым не растягиваем: футер следует за контентом. */
main { min-height: 0; }
main:focus { outline: none; }
.loading, .error-state { width: min(760px, calc(100% - 32px)); margin: 9rem auto; padding: 2rem; text-align: center; background: var(--white); border-radius: var(--radius); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1180px, calc(100% - 32px));
  min-height: 0;
  margin: 24px auto 0;
  padding: clamp(42px, 5vw, 76px);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,254,253,.97), rgba(255,248,224,.94));
  border-radius: 38px;
  box-shadow: var(--shadow);
}
.hero::after { position: absolute; right: -100px; bottom: -120px; width: 390px; height: 390px; background: var(--peach); border-radius: 52% 48% 28% 72% / 45% 32% 68% 55%; opacity: .6; content: ""; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--green); font-size: .84rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { width: 26px; height: 2px; background: currentColor; content: ""; }
h1, h2, h3 { margin-top: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
h1 { max-width: 740px; margin-bottom: 22px; font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 500; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 500; letter-spacing: -.025em; }
h3 { font-size: 1.45rem; }
.hero-lead { max-width: 650px; margin-bottom: 30px; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; color: white; background: var(--green); border: 1px solid var(--green); border-radius: 999px; font-weight: 750; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { background: var(--green-dark); box-shadow: 0 10px 24px rgba(35,107,103,.2); outline: none; transform: translateY(-2px); }
.button.secondary { color: var(--green-dark); background: transparent; }
.button.secondary:hover, .button.secondary:focus-visible { background: var(--mint); }

.hero-visual { position: relative; z-index: 1; min-height: 455px; }
.hero-image { width: 100%; height: 455px; object-position: center 24%; object-fit: cover; border-radius: 44% 56% 62% 38% / 42% 40% 60% 58%; filter: saturate(.9) contrast(.96); }
.experience-card { position: absolute; right: -18px; bottom: 18px; width: min(230px, 70%); padding: 20px; color: var(--ink); background: rgba(255,253,250,.94); border: 1px solid rgba(255,255,255,.75); border-radius: 22px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.experience-card strong { display: block; color: var(--green); font-family: Georgia, serif; font-size: 2.6rem; line-height: 1; }

.section { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: clamp(48px, 6vw, 72px) 0; }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: end; margin-bottom: 42px; }
.section-heading p { max-width: 650px; margin: 0; color: var(--muted); }
.home-section-heading { display: block; margin-bottom: 36px; }
.home-section-heading h2 { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.section-action { display: flex; justify-content: center; margin-top: 28px; }
.home-colleague-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; }
.card { position: relative; min-height: 270px; padding: 28px; overflow: hidden; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.card:nth-child(2n) { background: var(--mint); }
.card:hover, .card:focus-visible { box-shadow: var(--shadow); outline: none; transform: translateY(-5px); }
.card-index { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 44px; color: var(--green-dark); background: rgba(255,255,255,.68); border-radius: 50%; font-weight: 800; }
.card h3 { margin-bottom: 14px; }
.card p { margin: 0; color: var(--muted); }
.card-arrow { position: absolute; right: 24px; bottom: 18px; color: var(--green); font-size: 1.8rem; }

.quote-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; background: var(--green-dark); border-radius: 36px; box-shadow: var(--shadow); }
.quote-panel img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; opacity: .84; }
.quote-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 7vw, 78px); color: white; }
.quote-copy blockquote { margin: 0 0 20px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.15; }
.quote-copy p { margin: 0; color: rgba(255,255,255,.72); }

.page-hero { width: min(980px, calc(100% - 32px)); margin: 28px auto 0; padding: clamp(40px, 6vw, 72px) 0 18px; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { color: var(--green); text-decoration: none; }
.article-shell { display: grid; grid-template-columns: minmax(0, 980px); justify-content: center; align-items: start; width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 64px; }
.article { min-width: 0; padding: clamp(28px, 5vw, 58px); background: var(--white); border: 1px solid var(--line); border-radius: 32px; box-shadow: 0 18px 50px rgba(27, 76, 72, .08); }
.article h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.article h2 { margin-top: 2.6rem; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.article h3 { margin-top: 2rem; }
.article p { margin: 0 0 1.18rem; }
.article p:empty { display: none; }
.article h1, .article h2, .article h3 { text-transform: none; }
.about-role { margin: 0 0 20px; color: var(--green-dark); font-size: 1.05rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.about-portrait { width: min(310px, 100%); aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 16px 40px rgba(119, 83, 11, .12); }
.about-portrait-float { float: right; width: min(300px, 34%); margin: 0 0 24px 40px; }
.markdown-article h2 { margin-top: 2.2rem; margin-bottom: 1rem; font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
.markdown-article h3 { margin-top: 1.8rem; margin-bottom: .8rem; font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.markdown-article p { max-width: none; }

.article-example {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--green-dark);
  background: color-mix(in srgb, var(--mint) 62%, white);
  border-radius: 0 .75rem .75rem 0;
}

.colleagues-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.colleagues-contact p { margin: 0 auto 0 0; color: var(--muted); }

@media (max-width: 640px) {
  .colleagues-contact { align-items: stretch; flex-direction: column; }
  .colleagues-contact p { margin: 0; }
  .colleagues-contact .button { width: 100%; text-align: center; }
}
.article ul.article-list, .article ol.article-list { margin: 0 0 1.4rem; padding-left: 1.35rem; }
.article-list li { margin: 0 0 .65rem; padding-left: .35rem; }
.article-list li::marker { color: var(--green); }
.article a { overflow-wrap: anywhere; }
.article .source-quote { margin: 2rem 0; padding: 22px 26px; color: var(--green-dark); background: var(--mint); border-left: 4px solid var(--green); border-radius: 0 18px 18px 0; font-family: Georgia, serif; font-size: 1.2rem; }

.resource-list { display: grid; gap: 12px; margin-top: 30px; }
.resource-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 16px; font-weight: 750; text-decoration: none; }
.resource-link:hover, .resource-link:focus-visible { color: var(--green-dark); border-color: var(--green); outline: none; }

.parents-topic-list { display: grid; gap: 12px; }
.parents-topic { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 20px 22px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.parents-topic:hover, .parents-topic:focus-visible { box-shadow: var(--shadow); outline: none; transform: translateY(-2px); }
.parents-topic .card-index { margin: 0; }
.parents-topic-copy { display: grid; gap: 4px; }
.parents-topic-copy strong { font-family: Georgia, serif; font-size: 1.28rem; }
.parents-topic-description { color: var(--muted); }
.parents-topic .card-arrow { position: static; color: var(--green); font-size: 1.6rem; }
.parent-category + .parent-category { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.parent-category h2 { margin-bottom: 10px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.parent-category-description { max-width: 760px; margin: 0 0 22px; color: var(--muted); }
.parents-help { margin-top: 48px; padding-top: 42px; border-top: 1px solid var(--line); }
.parents-help h2 { margin-bottom: 16px; }
.parents-help p { max-width: 760px; margin: 0 0 24px; }

.parent-article-list { display: grid; gap: 12px; }
.parent-article-item { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 34px rgba(119, 83, 11, .06); }
.parent-article-item summary { display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 750; }
.parent-article-item summary::-webkit-details-marker { display: none; }
.parent-article-item summary::after { margin-left: auto; color: var(--green-dark); content: "+"; font-size: 1.4rem; }
.parent-article-item[open] summary::after { content: "−"; }
.parent-article-item summary:focus-visible { outline: 3px solid rgba(196, 144, 32, .35); outline-offset: -3px; }
.parent-article-item .card-index { flex: 0 0 auto; margin: 0; }
.parent-article-title { font-family: Georgia, serif; font-size: 1.28rem; }
.parent-article-body { padding: 0 22px 24px 82px; }
.parent-article-body p { margin: 0 0 12px; }
.parent-article-body p:last-child { margin-bottom: 0; }
.parent-article-lead { color: var(--green-dark); font-weight: 700; }

.photo-placeholders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo-placeholder { min-height: 240px; display: flex; flex-direction: column; justify-content: end; padding: 24px; background: linear-gradient(145deg, var(--mint), var(--white)); border: 1px dashed rgba(196, 144, 32, .5); border-radius: var(--radius); }
.photo-placeholder-number { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: auto; color: var(--green-dark); background: var(--peach); border-radius: 50%; font-weight: 800; }
.photo-placeholder strong { font-family: Georgia, serif; font-size: 1.35rem; }
.photo-placeholder p { margin: 5px 0 0; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { display: block; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 18px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; transition: transform .25s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.025); }
.document-category { margin-top: 48px; }
.document-category:first-of-type { margin-top: 26px; }
.document-category h2 { margin-bottom: 18px; font-size: clamp(1.6rem, 2.5vw, 2.3rem); }
.document-link { display: block; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.document-link img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--white); }
.photo-gallery-category { margin-top: 56px; }
.photo-gallery-category:first-of-type { margin-top: 0; }
.photo-gallery-page { padding-top: 34px; }
.photo-gallery-page > .section-heading { display: block; width: min(980px, calc(100% - 32px)); margin: 0 auto 30px; }
.photo-gallery-page > .section-heading h2 { max-width: 920px; margin: 0; font-size: clamp(2rem, 3.2vw, 3.2rem); }
.photo-gallery-category h2 { margin-bottom: 18px; font-size: clamp(1.55rem, 2.4vw, 2.2rem); }
.photo-gallery-category .gallery img { aspect-ratio: 4 / 3; object-position: center; }
.photo-gallery-category .gallery .gallery-photo-full img { object-fit: contain; background: var(--white); }
.gallery-photo-caption { display: block; padding: 12px 14px 15px; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.gallery-photo-full img { object-fit: contain; background: var(--white); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card h3 { margin-bottom: 12px; }
.contact-card a { color: var(--green-dark); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact-image { grid-column: 1 / -1; min-height: 300px; background: center / cover url("assets/images/25-94e433971d424916aa4877a5d97f0f5c.jpg"); border-radius: var(--radius); }
.feedback-form { margin-top: 0; padding: clamp(26px, 5vw, 48px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(27, 76, 72, .08); }
.feedback-form + .contact-grid { margin-top: 28px; }
.feedback-form h2 { margin-bottom: 22px; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.feedback-form iframe { display: block; width: 100%; height: 650px; border: 0; }
.about-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 4px 0 28px; }
.about-external-link { display: inline-flex; margin: 0; }

.site-footer { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 28px; align-items: end; width: min(1180px, calc(100% - 32px)); margin: 0 auto 18px; padding: 34px; color: rgba(255,255,255,.82); background: var(--green-dark); border-radius: 30px; }
.site-footer strong { color: white; font-family: Georgia, serif; font-size: 1.35rem; }
.site-footer p { margin: 6px 0 0; }
.footer-links { display: grid; gap: 7px; }
.footer-links a { color: white; text-decoration: none; }
.copyright { white-space: nowrap; font-size: .85rem; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: none; padding: 10px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-visual { min-height: 380px; }
  .hero-image { height: 380px; }
  .section-heading, .quote-panel, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .photo-placeholders { grid-template-columns: 1fr 1fr; }
  .article-shell { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .copyright { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-header { width: calc(100% - 20px); margin-top: 10px; }
  .brand strong { font-size: .92rem; }
  .brand small { font-size: .68rem; }
  .hero, .section, .page-hero, .article-shell, .site-footer { width: calc(100% - 20px); }
  .hero { min-height: auto; padding: 46px 24px 28px; border-radius: 28px; }
  h1 { font-size: clamp(2.7rem, 15vw, 4.4rem); }
  .hero-visual, .hero-image { min-height: 300px; height: 300px; }
  .experience-card { right: 0; }
  .cards, .gallery, .contact-grid, .site-footer { grid-template-columns: 1fr; }
  .photo-placeholders { grid-template-columns: 1fr; }
  .parent-article-body { padding-left: 22px; }
  .about-portrait-float { float: none; width: min(300px, 100%); margin: 0 auto 28px; }
  .parents-topic { grid-template-columns: auto 1fr auto; gap: 12px; padding: 18px; }
  .parents-topic-copy strong { font-size: 1.12rem; }
  .section { padding-block: 48px; }
  .page-hero { margin-top: 18px; padding-block: 38px 14px; }
  .article { padding: 26px 20px; border-radius: 24px; }
  .contact-image, .copyright { grid-column: auto; }
  .feedback-form iframe { height: 760px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
