/* Public site theme. The editor retains its own styles and readable light surfaces. */
.theme-forest {
  --ink: #202b26;
  --muted: #62695e;
  --paper: #f2eee4;
  --surface: #fcf9f2;
  --line: #d9d5c9;
  --teal: #225d48;
  --teal-dark: #163d2e;
  --brick: #a72c2c;
  --gold: #d4bc90;
  --sky: #e4e9dc;
  --forest: #0b2019;
  --cream: #eee7d8;
  --shadow: 0 18px 48px #00000018;
  color: var(--ink);
  background: #081710;
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.theme-forest ::selection { background: #a72c2c; color: #fff9ee; }
.theme-forest :is(section,main)[id] { scroll-margin-top: 100px; }
.theme-forest .skip-link { position: fixed; top: 10px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--cream); color: var(--forest); transform: translateY(-200%); }
.theme-forest .skip-link:focus { transform: none; }
.theme-forest .site-header {
  min-height: 88px;
  padding: 17px max(28px, calc((100vw - 1360px) / 2));
  color: var(--cream);
  background: #07130ff5;
  border-bottom: 1px solid #e5ddc821;
  backdrop-filter: blur(18px);
}
.theme-forest .brand { gap: 13px; }
.theme-forest .brand-mark {
  width: 46px; height: 46px;
  border: 1px solid #bbab8b80;
  border-radius: 2px;
  background: transparent;
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}
.theme-forest .brand strong { font-size: 18px; font-weight: 650; letter-spacing: .015em; }
.theme-forest .brand small { margin-top: 3px; color: #a8b3a5; font-size: 11px; letter-spacing: .06em; }
.theme-forest .main-nav { gap: 2px; }
.theme-forest .main-nav a { color: #d8ddcf; font-size: 13px; padding: 11px 13px; font-weight: 500; border-radius: 2px; }
.theme-forest .main-nav a:is(:hover,:focus-visible) { color: #fff7e7; background: #f1e8ce10; }
.theme-forest .nav-toggle { color: var(--cream); background: transparent; border-color: #f1e8ce44; border-radius: 3px; }
.theme-forest .nav-toggle span { background: var(--cream); }
.theme-forest .hero {
  isolation: isolate;
  min-height: 690px;
  background: #050e0a;
  border-bottom: 1px solid #e5ddc828;
}
.theme-forest .hero-media {
  inset: 0 0 0 auto;
  width: 65%;
  max-width: 1100px;
  background: url("assets/fon.jpg") center / contain no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 93%, #000b);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 93%, #000b);
}
.theme-forest .hero-content {
  width: 53%;
  max-width: 790px;
  padding: 70px 24px 76px max(28px, calc((100vw - 1360px) / 2));
  color: var(--cream);
}
.theme-forest .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; line-height: 1.6; }
.theme-forest .hero .eyebrow { color: #c2c9b6; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.theme-forest .hero .eyebrow::before { content: ""; display: inline-block; width: 24px; height: 2px; background: #bd3d37; flex: none; }
.theme-forest h1, .theme-forest h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; }
.theme-forest .hero h1 { font-size: clamp(58px, 5.8vw, 88px); line-height: 1.01; max-width: 560px; }
.theme-forest .hero h1 em { color: #d0bd98; font-weight: 400; }
.theme-forest .hero-copy { max-width: 440px; margin-top: 26px; color: #b9c4b6; font-size: 15px; line-height: 1.85; }
.theme-forest .hero-actions { margin-top: 30px; gap: 12px; }
.theme-forest .button { min-height: 48px; padding: 13px 21px; border-radius: 3px; font-size: 13px; font-weight: 600; gap: 24px; }
.theme-forest .button.primary { background: #a32b2c; color: #fff8eb; border-color: #bc4540; }
.theme-forest .button.primary:is(:hover,:focus-visible) { background: #bf3835; }
.theme-forest .button.ghost { background: #07160e7a; border-color: #dfd4bd55; color: #ebe6d7; }
.theme-forest .button.ghost:hover { background: #ede5d410; border-color: #dfd4bdbb; }
.theme-forest .hero-panel {
  width: auto; right: max(28px, calc((100vw - 1360px) / 2)); bottom: 28px;
  display: flex; align-items: center; gap: 22px;
  padding: 12px 0; border: 0; border-top: 1px solid #e1d4b64d; border-radius: 0;
  background: none; backdrop-filter: none;
}
.theme-forest .hero-panel span { color: #b8c1ad; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.theme-forest .stats { background: #273a2e; border-bottom: 0; padding: 0 max(28px, calc((100vw - 1360px) / 2)); gap: 0; }
.theme-forest .stats div { background: #10271c; min-height: 112px; padding: 27px 34px; border-right: 1px solid #e8e0ca1f; }
.theme-forest .stats div:first-child { padding-left: 0; }
.theme-forest .stats div:last-child { border-right: 0; }
.theme-forest .stats { background: #10271c; }
.theme-forest .stats strong { color: #e7ddc5; font-size: 26px; font-family: Georgia, serif; font-weight: 400; }
.theme-forest .stats span { color: #a9b7a4; font-size: 12px; max-width: 310px; line-height: 1.7; }
.theme-forest .section { padding: 86px max(28px, calc((100vw - 1360px) / 2)); }
.theme-forest .section-head { max-width: 760px; margin-bottom: 34px; }
.theme-forest h2 { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.14; }
.theme-forest h3 { font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }
.theme-forest .news-section { background: var(--paper); }
.theme-forest .news-toolbar { gap: 8px; padding-bottom: 24px; border-bottom: 1px solid #20362721; margin-bottom: 30px; }
.theme-forest .chip { min-height: 36px; padding: 7px 17px; border-radius: 3px; border-color: #cfcbbb; color: #505d50; background: transparent; font-size: 12px; font-weight: 600; }
.theme-forest .chip.active { background: #163d2e; border-color: #163d2e; color: #f2ecdf; }
.theme-forest .chip:hover:not(.active) { border-color: #385c46; background: #17392308; }
.theme-forest .news-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.theme-forest .news-card { background: #fbf8f0; border: 1px solid #d9d5c8; border-radius: 4px; box-shadow: none; transition: border-color .2s, box-shadow .2s; }
.theme-forest .news-card:hover { border-color: #a3ad96; box-shadow: 0 12px 28px #1027190a; }
.theme-forest .news-card div { padding: 25px; }
.theme-forest .news-card img { border-bottom: 1px solid #d9d5c8; }
.theme-forest .news-card .document-cover { background: #e2e3d8; padding: 12px; }
.theme-forest .news-card time { color: #8b3930; font-size: 11px; font-weight: 600; letter-spacing: .025em; }
.theme-forest .news-card h3 { font-family: Georgia, serif; font-size: 25px; font-weight: 400; line-height: 1.25; margin: 14px 0; }
.theme-forest .news-card p { font-size: 14px; line-height: 1.8; }
.theme-forest .read-more { font-size: 12px; font-weight: 650; margin-top: 24px; gap: 24px; }
.theme-forest #culture { background: #0e251b; color: #eee7d7; }
.theme-forest #culture .eyebrow, .theme-forest #contact .eyebrow, .theme-forest #about .eyebrow { color: #c7ae81; }
.theme-forest .service-grid { gap: 0; border-top: 1px solid #c8d3bb33; border-bottom: 1px solid #c8d3bb33; }
.theme-forest .service-card { border: 0; border-right: 1px solid #c8d3bb33; border-radius: 0; padding: 30px 27px; background: transparent; box-shadow: none; }
.theme-forest .service-card:last-child { border-right: 0; }
.theme-forest .service-icon { color: #dcc7a0; background: transparent; width: auto; height: 36px; display: flex; justify-content: flex-start; font-size: 25px; margin-bottom: 24px; font-family: Georgia, serif; }
.theme-forest .service-card p { color: #aebda9; font-size: 14px; line-height: 1.8; }
.theme-forest .split { background: #e9e5d9; gap: 64px; }
.theme-forest .calendar-grid { gap: 16px; }
.theme-forest .date-card { border-radius: 3px; border-color: #cfcdbf; box-shadow: none; background: #f5f1e7; padding: 25px; }
.theme-forest .date-card time { padding: 0 0 12px; background: none; color: #964036; border-radius: 0; font-size: 12px; border-bottom: 1px solid #cfb6a5; font-weight: 650; }
.theme-forest .date-card p { font-size: 14px; line-height: 1.75; }
.theme-forest .contact-section { color: #eee7d7; background: #142b20; }
.theme-forest .form-layout { gap: 30px; grid-template-columns: 1.1fr .9fr; }
.theme-forest .form-box { color: var(--ink); border: 0; border-radius: 4px; background: #f3efe3; box-shadow: none; padding: 34px; gap: 19px; }
.theme-forest label { color: #38473a; font-size: 13px; font-weight: 600; }
.theme-forest input, .theme-forest select, .theme-forest textarea { color: #283d30; background: #fffcf4; border-color: #d3cfbf; border-radius: 3px; font-size: 15px; }
.theme-forest input::placeholder, .theme-forest textarea::placeholder { color: #727c6e; }
.theme-forest .contact-info { background: #0b2016; border: 1px solid #c8d3bb26; box-shadow: none; border-radius: 4px; padding: 34px; gap: 18px; }
.theme-forest .contact-info h3 { font-family: Georgia, serif; font-size: 32px; font-weight: 400; }
.theme-forest .contact-info p { font-size: 14px; color: #b2c0ac; }
.theme-forest .qr-card { display: none; } /* The old decorative pattern was not a functional QR code. */
.theme-forest .contact-info::before { content: "ТБ"; width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid #cdb78a66; color: #e6dcc4; font: 30px Georgia, serif; margin-bottom: 14px; }
.theme-forest .office-hours { background: #f5ebd309; border-color: #d3dab526; border-radius: 3px; font-size: 13px; margin-top: 22px; }
.theme-forest .account-section { background: #091b12; color: #eee7d7; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; border-top: 1px solid #c8d3bb26; }
.theme-forest .about-text { background: none; box-shadow: none; border: none; border-left: 1px solid #c8d3bb33; border-radius: 0; padding: 0 0 0 36px; }
.theme-forest .about-text p { color: #b2c0ac; font-size: 15px; line-height: 1.85; }
.theme-forest .site-footer { min-height: 100px; padding: 30px max(28px, calc((100vw - 1360px) / 2)); background: #06100b; border-top: 1px solid #c8d3bb24; color: #9ba994; font-size: 12px; }
.theme-forest .site-footer a { color: #e6dcc4; font-size: 12px; font-weight: 500; }
.theme-forest .site-footer a:first-of-type { margin-left: auto; }
.theme-forest.article-theme { background: radial-gradient(ellipse at 50% 0, #214431, #07170f 65%); }
.theme-forest.article-theme .site-header .read-more { color: #e8ddc6; margin: 0; }
.theme-forest.article-theme .article-page { background: #f4f0e5; max-width: 960px; margin: 46px auto 70px; padding: 65px 68px; border-top: 3px solid #9a302d; box-shadow: 0 20px 80px #0002; }
.theme-forest.article-theme h1 { font-size: clamp(38px, 5vw, 62px); }
.theme-forest.article-theme .article-body { color: #364136; font-size: 18px; line-height: 1.95; }
.theme-forest.article-theme .article-figure img { border-radius: 0; }
.theme-forest.article-theme .article-figure figcaption { line-height: 1.7; }
.theme-forest :is(a,button,input,select,textarea):focus-visible { outline: 3px solid #ba9856; outline-offset: 4px; }
@media(min-width:1600px) { .theme-forest .hero-media { right: calc((100vw - 1540px) / 2); } }
@media(max-width:1100px) {
  .theme-forest .site-header { padding-inline: 24px; }
  .theme-forest .main-nav a { padding-inline: 8px; font-size: 12px; }
  .theme-forest .hero-content { padding-left: 28px; width: 53%; }
  .theme-forest .hero-media { width: 64%; background-position: center; }
  .theme-forest .hero-actions { flex-direction: column; align-items: flex-start; }
  .theme-forest .hero-actions .button { width: auto; }
  .theme-forest .hero { min-height: 710px; }
  .theme-forest .news-grid { gap: 16px; }
  .theme-forest .news-card div { padding: 20px; }
}
@media(max-width:980px) {
  .theme-forest .main-nav { top: 87px; background: #10271d; border-color: #e8dfc62e; border-radius: 3px; padding: 14px; }
  .theme-forest .main-nav a { padding: 12px; font-size: 14px; }
  .theme-forest .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .theme-forest .split, .theme-forest .account-section { grid-template-columns: 1fr; gap: 30px; }
  .theme-forest .calendar-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .theme-forest .service-card:nth-child(2) { border-right: 0; }
  .theme-forest .service-card:nth-child(-n+2) { border-bottom: 1px solid #c8d3bb33; }
  .theme-forest .about-text { padding-left: 24px; }
  .theme-forest .section { padding-block: 64px; }
}
@media(max-width:760px) {
  .theme-forest .site-header { min-height: 76px; padding: 14px 20px; }
  .theme-forest .brand strong { font-size: 17px; }
  .theme-forest .brand-mark { width: 40px; height: 40px; }
  .theme-forest .main-nav { top: 75px; }
  .theme-forest .hero { display: flex; flex-direction: column; min-height: 0; }
  .theme-forest .hero-media { position: relative; inset: auto; width: 100%; max-width: none; aspect-ratio: 1024 / 683; background: url("assets/fon.jpg") center / contain no-repeat; mask-image: linear-gradient(#000 82%, transparent); -webkit-mask-image: linear-gradient(#000 82%, transparent); }
  .theme-forest .hero-content { width: 100%; padding: 8px 24px 38px; max-width: none; }
  .theme-forest .hero h1 { font-size: clamp(46px, 9vw, 68px); max-width: 560px; }
  .theme-forest .hero h1 br { display: none; }
  .theme-forest .hero h1 em::before { content: " "; }
  .theme-forest .hero-copy { max-width: 520px; font-size: 14px; line-height: 1.8; margin-top: 22px; }
  .theme-forest .hero .eyebrow { font-size: 10px; letter-spacing: .12em; margin-bottom: 18px; }
  .theme-forest .hero-actions { flex-direction: row; gap: 10px; margin-top: 24px; }
  .theme-forest .hero-actions .button { width: auto; }
  .theme-forest .hero-panel { position: static; margin: 0 24px; padding: 17px 0 23px; justify-content: space-between; }
  .theme-forest .stats { grid-template-columns: 1fr; padding-inline: 24px; }
  .theme-forest .stats div, .theme-forest .stats div:first-child { min-height: 0; padding: 21px 0; border-right: 0; border-bottom: 1px solid #e8e0ca1f; display: grid; grid-template-columns: 115px 1fr; gap: 12px; align-items: center; }
  .theme-forest .stats div:last-child { border-bottom: 0; }
  .theme-forest .stats strong { font-size: 21px; }
  .theme-forest .stats span { margin: 0; font-size: 11px; }
  .theme-forest .section { padding: 54px 24px; }
  .theme-forest .form-layout { grid-template-columns: 1fr; gap: 20px; }
  .theme-forest .form-box, .theme-forest .contact-info { padding: 24px; }
  .theme-forest .site-footer { padding: 28px 24px; flex-wrap: wrap; gap: 18px; flex-direction: row; align-items: center; }
  .theme-forest .site-footer p { flex-basis: 100%; }
  .theme-forest .site-footer a:first-of-type { margin-left: 0; }
  .theme-forest .site-footer a:last-child { margin-left: auto; }
  .theme-forest.article-theme .article-page { margin: 24px 16px 40px; padding: 35px 25px; }
  .theme-forest.article-theme .article-body { font-size: 17px; line-height: 1.8; }
  .theme-forest.article-theme .brand small { display: none; }
  .theme-forest.article-theme .site-header .read-more { font-size: 11px; }
}
@media(max-width:540px) {
  .theme-forest .news-grid, .theme-forest .calendar-grid, .theme-forest .service-grid { grid-template-columns: 1fr; }
  .theme-forest .service-card { border-right: 0; border-bottom: 1px solid #c8d3bb33; padding-inline: 0; }
  .theme-forest .service-card:last-child { border-bottom: 0; }
  .theme-forest .hero-actions { flex-direction: column; }
  .theme-forest .hero-actions .button { width: 100%; }
  .theme-forest .hero h1 { font-size: 49px; }
  .theme-forest .news-card h3 { font-size: 26px; }
}
@media(prefers-reduced-motion:reduce) {
  html:has(.theme-forest) { scroll-behavior: auto; }
  .theme-forest *, .theme-forest *::before, .theme-forest *::after { transition: none !important; }
}
