/* Шрифты: Cascadia Mono (OFL), файлы взяты с Wix-сайта.
   Как на Wix, каждое начертание — отдельное семейство с weight 400;
   жирный внутри Light-текста — синтетический, как в оригинале. */
@font-face { font-family: 'cm-extralight'; src: url('/fonts/cascadia-mono-extralight.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'cm-light'; src: url('/fonts/cascadia-mono-light.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'cm-regular'; src: url('/fonts/cascadia-mono-regular-2.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'cm-regular-alt'; src: url('/fonts/cascadia-mono-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'cm-medium'; src: url('/fonts/cascadia-mono-medium.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'cm-semibold'; src: url('/fonts/cascadia-mono-semibold.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'cm-bold'; src: url('/fonts/cascadia-mono-bold.woff2') format('woff2'); font-display: swap; }

:root {
  /* Палитра сайта на Wix */
  --c-dark: rgb(47, 23, 30);        /* #2F171E — шапка, кнопки, текст */
  --c-bg: rgb(219, 218, 219);       /* #DBDADB — фон страниц */
  --c-light: rgb(214, 220, 219);    /* #D6DCDB — текст на тёмном */
  --c-muted: rgb(133, 121, 125);    /* #85797D */
  --c-muted-2: rgb(90, 72, 77);     /* #5A484D */
  --c-grey: rgb(176, 169, 172);

  --f-light: 'cm-light', 'Cascadia Mono', ui-monospace, monospace;
  --f-regular: 'cm-regular', 'Cascadia Mono', ui-monospace, monospace;
  --f-regular-alt: 'cm-regular-alt', 'Cascadia Mono', ui-monospace, monospace;
  --f-medium: 'cm-medium', 'Cascadia Mono', ui-monospace, monospace;
  --f-bold: 'cm-bold', 'Cascadia Mono', ui-monospace, monospace;

  --content: 980px;
  --texture: url('/assets/images/e58826_d5264f69115f45148337548cccd22f71.webp');
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-dark);
  font: 16px/1.5 var(--f-light);
  min-width: 320px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, ul, ol { margin: 0; }

.container { width: var(--content); max-width: calc(100% - 40px); margin: 0 auto; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--c-dark); color: var(--c-light); padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }

/* Заголовок секции: «НОВЫЕ ВИДЕО», «О СОВЕТЕ ТАТАР» — Bold 42px */
.section-title {
  font: 42px/1.2 var(--f-bold);
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--c-dark);
  text-transform: uppercase;
}

/* Кнопка-«пилюля» 191×40 с иконкой стрелки */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  width: 191px; height: 40px;
  border: 1px solid var(--c-dark); border-radius: 25px;
  font: 16px/1 var(--f-medium); text-transform: uppercase;
  transition: opacity .2s;
}
.pill svg { width: 24px; height: 24px; margin-left: 5px; }
.pill--dark { background: var(--c-dark); color: var(--c-bg); }
.pill--light { background: var(--c-bg); color: var(--c-dark); }
.pill:hover { opacity: .85; }

/* Текст поста (Wix Ricos): Light 18/27, подзаголовки Bold */
.prose { font: 18px/27px var(--f-light); color: var(--c-dark); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 0; }
.prose p { min-height: 27px; }
.prose h1, .prose h2 { font: 28px/39.2px var(--f-bold); margin: 24px 0 8px; }
.prose h3, .prose h4 { font: 22px/30.8px var(--f-bold); margin: 20px 0 4px; }
.prose h5, .prose h6 { font: 18px/27px var(--f-bold); margin: 16px 0 4px; }
.prose strong, .prose b { font-weight: 700; }
.prose a { color: var(--c-muted-2); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 36px; margin: 0; }
.prose li p { min-height: 0; }
.prose img { width: 100%; height: auto; margin: 12px 0; }
.prose hr { border: 0; border-top: 1px solid var(--c-dark); margin: 24px 0; opacity: .6; }
.prose blockquote { margin: 16px 0; padding-left: 20px; border-left: 3px solid var(--c-dark); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; line-height: 24px; }
.prose th, .prose td { border: 1px solid rgba(47, 23, 30, .25); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { font-weight: 700; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; margin: 12px 0; }
.prose .table-scroll { overflow-x: auto; }
@media (max-width: 760px) {
  .prose { font-size: 16px; line-height: 24px; }
  .prose h1, .prose h2 { font-size: 22px; line-height: 1.4; }
  .prose h3, .prose h4 { font-size: 19px; line-height: 1.4; }
  .prose ul, .prose ol { padding-left: 24px; }
  .prose table { display: block; overflow-x: auto; font-size: 14px; }
  .prose th, .prose td { min-width: 96px; overflow-wrap: normal; word-break: normal; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 760px) {
  .section-title { font-size: 26px; line-height: 1.2; }
}


/* components/EventGrid.astro */

  .evgrid { width: 940px; max-width: calc(100% - 40px); margin: 0 auto; }
  .evgrid__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 300px); gap: 20px; justify-content: center; align-items: stretch; }
  .evcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--c-light); background: var(--c-bg); text-align: center; }
  .evcard__front { flex: 1; display: flex; flex-direction: column; }
  .evcard[hidden] { display: none; }
  .evcard__front.is-flipped { visibility: hidden; }
  .evcard__img { height: 168px; background: var(--c-muted-2); }
  .evcard__img img { width: 100%; height: 100%; object-fit: cover; }
  .evcard__body { flex: 1; padding: 32px 32px 33px; display: flex; flex-direction: column; align-items: center; }
  .evcard__title {
    font: 19px/22.8px var(--f-regular); color: var(--c-dark);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  a.evcard__title:hover { text-decoration: underline; }
  .evcard__date { margin-top: 3px; font: 14px/17px 'cm-extralight', var(--f-light); }
  .evcard__info { margin: 16px 0 33px; font: 16px/22.4px var(--f-light); text-decoration: underline; }
  .evcard__btn {
    display: inline-flex; align-items: center; justify-content: center; min-width: 160px; height: 42px; padding: 0 22px; margin-top: auto;
    border-radius: 100px; background: var(--c-dark); color: var(--c-bg); font: 16px/22.4px var(--f-regular);
  }
  .evcard__btn:hover { opacity: .85; }
  .evcard__back { position: absolute; inset: 0; padding: 76px 32px 33px; display: flex; flex-direction: column; align-items: center; }
  .evcard__back[hidden] { display: none; }
  .evcard__close { position: absolute; top: 31px; right: 37px; color: var(--c-dark); }
  .evcard__btitle { font: 19px/22.8px var(--f-regular); }
  .evcard__full { margin-top: 5px; font: 16px/22.4px var(--f-light); }
  .evcard__desc { margin-top: 21px; font: 15px/21px var(--f-light); }
  .evcard__btn--back { margin-top: auto; }
  .evgrid__more { text-align: center; margin-top: 60px; }
  .evgrid__more button {
    height: 40px; padding: 0 22px; border: 1px solid var(--c-dark); border-radius: 100px;
    font: 16px/22.4px var(--f-regular); color: var(--c-dark);
  }

  @media (max-width: 1000px) {
    .evgrid__list { grid-template-columns: repeat(2, 300px); }
  }
  @media (max-width: 680px) {
    .evgrid__list { grid-template-columns: minmax(0, 300px); }
  }

/* components/Footer.astro */

  .help {
    height: 350px; padding-top: 54px; text-align: center; color: var(--c-bg);
    background: var(--c-dark) var(--texture) center bottom / cover no-repeat;
  }
  .help__title { font: 38px/44px var(--f-bold); }
  .help__text { width: 686px; max-width: calc(100% - 40px); margin: 16px auto 31px; font: 18px/1.8 var(--f-light); }

  @media (max-width: 760px) {
    .help { height: auto; padding: 40px 0 48px; }
    .help__title { font-size: 28px; line-height: 1.2; }
    .help__text { font-size: 16px; line-height: 1.7; }
  }

/* components/Playlist.astro */

  .pl { width: 940px; max-width: calc(100% - 40px); margin: 0 auto; padding-top: 11px; }
  .pl + .pl { margin-top: 30px; }
  .pl__title { font: 18px/32.4px var(--f-light); margin-bottom: 12px; }
  .pl__player { position: relative; aspect-ratio: 940 / 529; background: #000; }
  .pl__player img { width: 100%; height: 100%; object-fit: cover; }
  .pl__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .pl__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; }
  .pl__play {
    display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 30px;
    border-radius: 30px; background: var(--c-dark); color: var(--c-bg); font: 14px/14px var(--f-light);
  }
  .pl__strip { padding: 30px 10px 0; }
  .pl__thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pl__thumbs::-webkit-scrollbar { display: none; }
  .pl__thumbs li { flex: 0 0 calc((100% - 42px) / 4); scroll-snap-align: start; }
  .pl__thumbs button { position: relative; display: block; width: 100%; aspect-ratio: 220 / 128; background: #000; text-align: left; }
  .pl__thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .pl__tinfo {
    position: absolute; inset: 0; padding: 10px 14px; display: flex; flex-direction: column; justify-content: space-between;
    background: rgba(0, 0, 0, .55); color: #fff; font: 14px/19px var(--f-light); opacity: 0; transition: opacity .2s;
  }
  .pl__thumbs button:hover .pl__tinfo, .pl__thumbs button:focus-visible .pl__tinfo { opacity: 1; }
  .pl__ttitle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pl__tnow { display: none; }
  .pl__thumbs button.is-current .pl__tnow { display: block; }
  .pl__nav { text-align: right; padding: 26px 10px 0; }
  .pl__nav button { display: inline-flex; align-items: center; gap: 14px; font: 14px/19px var(--f-light); color: var(--c-dark); }

  @media (max-width: 760px) {
    .pl__strip { padding: 16px 0 0; }
    .pl__thumbs li { flex-basis: calc((100% - 14px) / 2); }
    .pl__tinfo { opacity: 1; font-size: 12px; line-height: 16px; padding: 8px; }
    .pl__nav { padding-top: 14px; }
  }

/* components/PostList.astro */

  .plist { list-style: none; padding: 0; margin: 0; }
  .pitem__img { display: block; background: rgba(47, 23, 30, .12); }
  .pitem__img img { width: 100%; height: 100%; object-fit: cover; }
  .pitem__title {
    font: 28px/33px var(--f-bold); color: var(--c-dark);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .pitem__title:hover { text-decoration: underline; }
  .pitem__text {
    margin-top: 11px; font: 16px/24px var(--f-light); color: var(--c-dark);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }

  /* строки, как в категориях Wix */
  .plist--rows .pitem { display: flex; height: 341px; border: 1px solid rgba(214, 220, 219, .75); }
  .plist--rows .pitem + .pitem { margin-top: 31px; }
  .plist--rows .pitem__img { flex: 0 0 454px; height: 100%; }
  .plist--rows .pitem__body { flex: 1; padding: 34px 36px 0; }
  .plist--rows .pitem__title { margin-top: 23px; }

  /* сетка в 2 колонки */
  .plist--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .plist--grid .pitem__img { aspect-ratio: 452 / 300; }
  .plist--grid .pitem__body { padding: 36px 28px 20px; }
  .plist--grid .pitem__title { margin-top: 22px; font-size: 24px; line-height: 30px; }

  @media (max-width: 760px) {
    .plist--rows .pitem { flex-direction: column; height: auto; }
    .plist--rows .pitem__img { flex: none; aspect-ratio: 318 / 240; height: auto; }
    .plist--rows .pitem__body { padding: 26px 12px 24px; }
    .plist--rows .pitem + .pitem { margin-top: 20px; }
    .plist--grid { grid-template-columns: 1fr; gap: 20px; }
    .plist--grid .pitem__body { padding: 26px 12px 20px; }
    .pitem__title, .plist--grid .pitem__title { font-size: 22px; line-height: 25px; margin-top: 22px; }
    .pitem__text { font-size: 14px; line-height: 21px; -webkit-line-clamp: 5; }
  }

/* components/PostMeta.astro */

  .pmeta { display: flex; align-items: center; font: 12px/14px var(--f-light); color: var(--c-dark); white-space: nowrap; }
  .pmeta__dot { width: 2px; height: 2px; margin: 0 8px; border-radius: 50%; background: currentColor; }

/* components/PostSlider.astro */

  .pslider { position: relative; width: 980px; max-width: 100%; margin: 0 auto; overflow: hidden; border: 1px solid transparent; }
  .pslider__track { display: flex; transition: transform .45s ease; }
  .pslide { flex: 0 0 100%; min-width: 0; }
  .pslide__img { display: block; aspect-ratio: 978 / 551; background: rgba(47, 23, 30, .1); }
  .pslide__img img { width: 100%; height: 100%; object-fit: cover; }
  .pslide__card { height: 230px; padding: 26px 16px 0; background: rgba(219, 218, 219, .5); }
  .pslide__title {
    margin-top: 23px; font: 22px/30.8px var(--f-medium); color: var(--c-dark);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .pslide__title:hover { text-decoration: underline; }
  .pslide__text {
    margin-top: 11px; font: 16px/24px var(--f-light); color: var(--c-dark);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .pslider__arrow { position: absolute; top: calc((100% - 230px) / 2 - 23px); width: 28px; height: 47px; opacity: .9; }
  .pslider__arrow svg { width: 100%; height: 100%; }
  .pslider__arrow--prev { left: 24px; }
  .pslider__arrow--next { right: 24px; }
  .pslider__arrow[hidden] { display: none; }

  @media (max-width: 760px) {
    .pslide__img { aspect-ratio: 318 / 240; }
    .pslide__card { height: 280px; padding: 26px 12px 0; background: var(--c-bg); }
    .pslide__title { margin-top: 22px; -webkit-line-clamp: 3; line-height: 25px; }
    .pslide__text { margin-top: 10px; font-size: 14px; line-height: 21px; -webkit-line-clamp: 5; }
    .pslider__arrow { top: calc((100% - 280px) / 2 - 17px); width: 20px; height: 34px; }
  }

/* components/UpcomingEvents.astro */

  .noev { padding: 52px 20px; text-align: center; font: 20px/28px var(--f-bold); color: var(--c-dark); }

/* components/VideoChannel.astro */

  .vch { width: 980px; max-width: 100%; margin: 0 auto; background: var(--c-dark); }
  .vch__ch { padding: 18px 20px; font: 22px/1.3 var(--f-bold); color: var(--c-bg); }
  .vch__stage { position: relative; overflow: hidden; aspect-ratio: 980 / 551; background: #000; }
  .vch__track { display: flex; height: 100%; transition: transform .45s ease; }
  .vch__slide { position: relative; flex: 0 0 100%; height: 100%; }
  .vch__slide img { width: 100%; height: 100%; object-fit: cover; }
  .vch__slide iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
  .vch__shade {
    position: absolute; inset: 0; background: rgba(0, 0, 0, .44);
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 106px;
  }
  .vch__title { font: 18px/27px var(--f-bold); color: #fff; text-align: center; max-width: 768px; }
  .vch__play { width: 56px; height: 56px; margin-top: 14px; }
  .vch__play svg { width: 100%; height: 100%; }
  .vch__play:hover circle { fill: rgba(255, 255, 255, .15); }
  .vch__arrow { position: absolute; top: 50%; width: 23px; height: 46px; margin-top: -25px; z-index: 2; opacity: .85; }
  .vch__arrow svg { width: 100%; height: 100%; }
  .vch__arrow--prev { left: 30px; }
  .vch__arrow--next { right: 30px; }
  .vch__arrow[hidden] { display: none; }
  .vch__dots { display: none; }
  .vch__bar { height: 40px; display: flex; align-items: center; justify-content: center; color: var(--c-bg); }
  .vch__menu { width: 60px; height: 40px; display: flex; align-items: center; justify-content: center; }

  .vch__list { list-style: none; margin: 0; padding: 0 0 8px; background: var(--c-dark); max-height: 420px; overflow-y: auto; }
  .vch__list button { display: grid; grid-template-columns: 160px 1fr auto; align-items: center; gap: 4px 20px; width: 100%; padding: 10px 20px; text-align: left; color: var(--c-bg); }
  .vch__list button:hover { background: rgba(255, 255, 255, .06); }
  .vch__lthumb { position: relative; grid-row: span 2; }
  .vch__lthumb img { width: 160px; aspect-ratio: 16 / 9; object-fit: cover; }
  .vch__now { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; background: rgba(0, 0, 0, .6); font: 12px var(--f-regular); }
  .vch__list li.is-current .vch__now { display: flex; }
  .vch__ltitle { font: 15px/1.4 var(--f-bold); }
  .vch__ldur { font: 13px var(--f-light); opacity: .8; }
  .vch__lwatch { grid-column: 2; font: 13px var(--f-regular); text-decoration: underline; opacity: .85; }

  /* Компактный вариант (страница «Плейлисты»): список всегда открыт под плеером */
  .vch--compact .vch__list { max-height: none; }

  @media (max-width: 760px) {
    .vch__stage { aspect-ratio: 320 / 250; }
    .vch__shade { background: rgba(0, 0, 0, .4); padding: 0 30px; }
    .vch__play { width: 25px; height: 25px; margin-top: 20px; }
    .vch__arrow, .vch__bar { display: none; }
    .vch__dots { display: flex; gap: 6px; position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; }
    .vch__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
    .vch__dots span.on { background: #fff; }
    .vch__list button { grid-template-columns: 120px 1fr; gap: 4px 12px; padding: 10px 12px; }
    .vch__lthumb img { width: 120px; }
    .vch__ldur { grid-column: 2; }
  }

/* pages/404.astro */

  .nf { width: 760px; max-width: calc(100% - 40px); margin: 0 auto; padding: 110px 0 140px; text-align: center; }
  .nf__code { font: 120px/1 var(--f-bold); letter-spacing: -0.05em; opacity: .15; }
  .nf h1 { margin-top: 12px; font: 42px/1.15 var(--f-bold); letter-spacing: -0.03em; }
  .nf p:not(.nf__code) { margin: 18px 0 34px; font: 18px/1.5 var(--f-light); }
  @media (max-width: 760px) {
    .nf { padding: 60px 0 80px; }
    .nf__code { font-size: 84px; }
    .nf h1 { font-size: 28px; }
    .nf p:not(.nf__code) { font-size: 16px; }
  }

/* pages/[...lang]/[legal].astro */

  .legal { width: 750px; max-width: calc(100% - 40px); margin: 0 auto; padding: 70px 0 100px; }
  .legal h1 { font: 42px/50.4px var(--f-bold); letter-spacing: -0.04em; text-align: center; }
  .legal__body { width: 604px; max-width: 100%; margin: 58px auto 0; font: 16px/24px var(--f-light); text-align: justify; }
  .legal__body h5 { margin: 24px 0 8px; font: 22px/30.8px var(--f-bold); letter-spacing: -0.03em; text-align: left; }
  .legal__body h6 { margin: 16px 0 6px; font: 18px/27px var(--f-bold); text-align: left; }
  .legal__body p + p { margin-top: 12px; }
  .legal__body ul { padding-left: 29px; margin: 8px 0; }
  .legal__body a { text-decoration: underline; }
  .legal__body b { font-weight: 700; }
  @media (max-width: 760px) {
    .legal { padding: 32px 0 48px; }
    .legal h1 { font-size: 28px; line-height: 1.25; }
    .legal__body { margin-top: 24px; font-size: 14px; line-height: 21px; text-align: left; }
    .legal__body h5 { font-size: 18px; line-height: 1.4; }
  }

/* pages/[...lang]/about.astro */

  .ab-h1 { font: 56px/61.6px var(--f-bold); letter-spacing: -0.05em; text-align: center; }
  .ab-h2 { font: 38px/44px var(--f-bold); letter-spacing: -0.05em; text-align: center; }
  .ab-h3 { font: 31px/43.4px var(--f-regular-alt); letter-spacing: -0.04em; text-align: center; margin: 30px 0 22px; }
  .ab-text { width: 629px; max-width: calc(100% - 40px); margin: 0 auto; font: 16px/24px var(--f-light); }
  .ab-text p { text-align: justify; }
  .ab-text p + p, .ab-text p + ul, .ab-text ul + p { margin-top: 24px; }
  .ab-text ul { padding-left: 29px; }
  .ab-text li p { text-align: left; }
  .ab-text b { font-weight: 700; }

  .ab-who { padding: 85px 0 100px; }
  .ab-who .ab-text { margin-top: 26px; }

  .ab-team { padding-top: 26px; }
  .ab-bar { width: 30px; height: 5px; margin: 13px auto 38px; background: var(--c-dark); }
  .ab-sub { text-align: center; font: 18px/32.4px var(--f-light); }
  .ab-members { list-style: none; padding: 0; margin: 58px auto 0; display: grid; grid-template-columns: repeat(3, 403px); gap: 60px; justify-content: center; }
  .ab-members img { width: 403px; height: 334px; object-fit: cover; }
  .ab-member__body { padding: 41px 32px 0; }
  .ab-member__role { font: 16px/24px var(--f-light); }
  .ab-member__name { margin-top: 3px; font: 20px/28px var(--f-bold); letter-spacing: -0.03em; }
  .ab-member__bio { margin-top: 30px; font: 16px/24px var(--f-light); }

  .ab-vision { padding-top: 135px; }
  .ab-vision .ab-h2 + .ab-h3 { margin-top: 29px; }
  .ab-h3--values { margin-top: 53px; }
  .ab-values { list-style: none; padding: 0; margin: 0 auto; width: 985px; max-width: calc(100% - 40px); display: grid; grid-template-columns: repeat(3, 303px); gap: 24px 38px; justify-content: center; }
  .ab-values li {
    width: 303px; min-height: 265px; padding: 82px 30px 30px; border: 2px solid var(--c-dark); border-radius: 25px;
    text-align: center;
  }
  .ab-values h4 { font: 20px/28px var(--f-regular-alt); letter-spacing: -0.03em; }
  .ab-values p { margin-top: 28px; font: 14px/21px var(--f-light); }
  .ab-text--goals { margin-top: 0; }

  .ab-why { padding: 120px 0 100px; }
  .ab-slides { width: 629px; max-width: calc(100% - 40px); margin: 0 auto; }
  .ab-slide h4 { font: 26px/30px var(--f-regular-alt); color: rgb(50, 50, 50); text-align: center; margin-bottom: 26px; }
  .ab-slide ul { padding-left: 29px; font: 16px/24px var(--f-light); min-height: 150px; }
  .ab-dots { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
  .ab-dots button { width: 8px; height: 8px; margin: 2px; border-radius: 50%; background: var(--c-dark); }
  .ab-dots button.on { width: 13px; height: 13px; margin: 0; background: transparent; border: 2px solid var(--c-dark); }
  .ab-text--response .ab-final { margin-top: 40px; font: 20px/30px var(--f-bold); text-align: left; }

  @media (max-width: 1440px) {
    .ab-members { grid-template-columns: repeat(3, minmax(0, 403px)); gap: 40px; padding: 0 20px; }
    .ab-members img { width: 100%; height: auto; aspect-ratio: 403 / 334; }
  }
  @media (max-width: 1000px) {
    .ab-members { grid-template-columns: minmax(0, 403px); }
    .ab-values { grid-template-columns: repeat(2, 303px); }
  }
  @media (max-width: 760px) {
    .ab-h1 { font-size: 34px; line-height: 1.15; }
    .ab-h2 { font-size: 26px; line-height: 1.2; }
    .ab-h3 { font-size: 22px; line-height: 1.3; margin: 24px 0 14px; }
    .ab-text { font-size: 14px; line-height: 21px; }
    .ab-who { padding: 32px 0 48px; }
    .ab-members { margin-top: 32px; gap: 32px; }
    .ab-member__body { padding: 20px 12px 0; }
    .ab-member__bio { margin-top: 14px; font-size: 14px; line-height: 21px; }
    .ab-vision { padding-top: 56px; }
    .ab-values { grid-template-columns: minmax(0, 1fr); }
    .ab-values li { width: 100%; min-height: 0; padding: 36px 24px; }
    .ab-why { padding: 56px 0 48px; }
    .ab-slide h4 { font-size: 20px; }
    .ab-slide ul { font-size: 14px; line-height: 21px; }
  }

/* pages/[...lang]/event-details/[slug].astro */

  .ev { padding-bottom: 7px; background: linear-gradient(rgba(90, 72, 77, .1) 0 564px, transparent 564px); }
  .ev__head { width: 843px; max-width: calc(100% - 40px); margin: 0 auto; padding-top: 65px; text-align: center; }
  .ev__title { font: 60px/72px var(--f-bold); margin-bottom: 24px; }
  .ev__short { font: 18px/25.2px var(--f-light); }
  .ev__sep { margin: 0 20px; }
  .ev__desc { margin-top: 20px; font: 16px/24px var(--f-light); }
  .ev__img { width: 979px; max-width: 100%; margin: 60px auto 0; aspect-ratio: 979 / 552; background: var(--c-dark); }
  .ev__img img { width: 100%; height: 100%; object-fit: cover; }
  .ev__body { width: 843px; max-width: calc(100% - 40px); margin: 0 auto; font: 16px/22.4px var(--f-light); }
  .ev__body h2 { margin: 50px 0 15px; font: 30px/39px var(--f-bold); }
  .ev__about { line-height: 24px; }
  .ev__about p + p { margin-top: 12px; }

  @media (max-width: 760px) {
    .ev { display: flex; flex-direction: column; background: none; padding-bottom: 40px; }
    .ev__img { order: -1; margin: 0; aspect-ratio: 320 / 180; }
    .ev__head { padding-top: 20px; }
    .ev__title { font-size: 28px; line-height: 36px; margin-bottom: 4px; }
    .ev__short { font-size: 14px; line-height: 16px; }
    .ev__sep { margin: 0 14px; }
    .ev__desc { margin-top: 19px; font-size: 14px; line-height: 21px; }
    .ev__body { font-size: 14px; line-height: 20px; }
    .ev__body h2 { margin: 20px 0 16px; font-size: 20px; line-height: 21px; }
    .ev__about { line-height: 25px; }
  }

/* pages/[...lang]/important-dates.astro */

  .dates { padding: 20px 0 40px; }
  .dates__title { padding: 0 30px 60px; font: 42px/63px var(--f-bold); text-align: center; }
  @media (max-width: 760px) {
    .dates__title { padding: 10px 20px 24px; font-size: 28px; line-height: 1.3; }
  }

/* pages/[...lang]/index.astro */

  .home-posts { padding-top: 47px; }
  .home-videos { padding-top: 75px; }
  .home-videos__player { margin-top: 59px; }
  .home-events { padding: 109px 0 0; }
  .home-about { padding: 74px 0 110px; text-align: center; }
  .home-about__text { width: 731px; max-width: calc(100% - 40px); margin: 59px auto 0; text-align: justify; font: 16px/24px var(--f-light); }
  .home-about__text p + p { margin-top: 24px; }
  .home-about__text b { font-weight: 700; }
  .home-about .pill { margin-top: 36px; }

  @media (max-width: 760px) {
    .home-posts { padding-top: 0; }
    .home-videos { padding-top: 19px; }
    .home-videos__player { margin-top: 10px; }
    .home-events { padding-top: 20px; }
    .home-about { padding: 40px 0 48px; }
    .home-about__text { margin-top: 24px; font-size: 14px; line-height: 21px; }
  }

/* pages/[...lang]/post/[slug].astro */

  .post-wrap { width: 980px; max-width: 100%; margin: 0 auto; padding: 20px 20px 20px; }
  .post { border: 1px solid rgba(214, 220, 219, .75); background: var(--c-bg); padding: 63px 99px 80px; }
  .post .post__meta { font-size: 14px; line-height: 21px; }
  .post__title { margin-top: 21px; font: 40px/56px var(--f-bold); color: var(--c-dark); }
  .post__body { margin-top: 34px; }

  @media (max-width: 760px) {
    .post-wrap { padding: 0; }
    .post { border: 0; padding: 32px 20px 48px; }
    .post__title { font-size: 28px; line-height: 1.35; margin-top: 14px; }
    .post__body { margin-top: 24px; }
  }

/* pages/[...lang]/posts/categories/[cat].astro */

  .cat { width: 940px; padding: 21px 0 100px; }
  .cat__title { padding: 19px 20px 0; height: 92px; margin-bottom: 20px; font: 36px/39.6px var(--f-bold); letter-spacing: -0.05em; }
  @media (max-width: 760px) {
    .cat { padding: 10px 0 48px; }
    .cat__title { height: auto; padding: 10px 0 20px; margin: 0; font-size: 28px; }
  }

/* pages/[...lang]/posts/index.astro */

  .all { width: 872px; padding: 76px 0 100px; }
  @media (max-width: 760px) { .all { padding: 20px 0 48px; } }

/* pages/[...lang]/контакты-и-формы.astro */

  .ct { padding: 68px 20px 190px; }
  .ct__title { font: 56px/61.6px var(--f-bold); letter-spacing: -0.05em; text-align: center; }
  .ct__form { width: 500px; max-width: 100%; margin: 42px auto 0; padding: 24px; }
  .ct__field { display: block; margin-bottom: 24px; }
  .ct__label { display: block; margin-bottom: 8px; font: 14px/17px var(--f-regular-alt); color: var(--c-dark); }
  .ct__label i { font-style: normal; margin-left: 4px; }
  .ct__field input, .ct__select select {
    width: 100%; height: 37px; padding: 8px 12px; border: 0; border-radius: 10px; outline: none;
    background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-dark);
    font: 16px/20px var(--f-light); color: var(--c-dark);
  }
  .ct__field input:focus, .ct__select select:focus { box-shadow: inset 0 0 0 2px var(--c-dark); }
  .ct__field input::placeholder { color: rgba(47, 23, 30, .6); }
  .ct__select { position: relative; display: block; }
  .ct__select select { appearance: none; padding-right: 36px; cursor: pointer; }
  .ct__select svg { position: absolute; right: 14px; top: 15px; pointer-events: none; color: var(--c-dark); }
  .ct__hp { position: absolute; left: -9999px; }
  .ct__info { margin: 2px 0 27px; font: 16px/24px var(--f-light); }
  .ct__send { width: 100%; height: 41px; border-radius: 10px; background: var(--c-dark); color: var(--c-bg); font: 16px/20.8px var(--f-regular); }
  .ct__send:disabled { opacity: .6; }
  .ct__msg { margin-top: 16px; font: 16px/24px var(--f-light); text-align: center; }
  @media (max-width: 760px) {
    .ct { padding: 32px 0 60px; }
    .ct__title { font-size: 30px; line-height: 1.2; }
    .ct__form { margin-top: 16px; }
  }

/* pages/[...lang]/плейлисты.astro */

  .pls { padding: 10px 0 40px; }

/* ---- PHP-версия: поиск ---- */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
.search { padding: 8px 0 72px; }
.search__title { margin: 0 0 20px; font: 36px/1.2 var(--f-bold); }
.search__sections { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.search__sections p { flex-basis: 100%; margin-bottom: 4px; font: 14px var(--f-light); opacity: .8; }
.search__sections .chip { padding: 7px 16px; font-size: 14px; }
.search__form { display: flex; gap: 8px; }
.search__form input { flex: 1; height: 45px; padding: 0 20px; border: 1px solid var(--c-dark); border-radius: 25px; background: var(--c-bg); font: 16px var(--f-light); color: var(--c-dark); outline: none; }
.search__form input:focus { box-shadow: 0 0 0 1px var(--c-dark); }
.search__form button { width: 45px; height: 45px; border-radius: 50%; background: var(--c-dark); color: var(--c-bg); display: flex; align-items: center; justify-content: center; }
.search__count { margin: 24px 0 8px; font: 14px var(--f-light); opacity: .8; }
.search__list { list-style: none; padding: 0; }
.search__list li { padding: 18px 0; border-bottom: 1px solid rgba(47, 23, 30, .2); }
.search__list a { font: 20px/1.35 var(--f-bold); }
.search__list a:hover { text-decoration: underline; }
.search__list p { margin-top: 6px; font: 15px/1.5 var(--f-light); }
.search__list mark { background: rgba(47, 23, 30, .15); color: inherit; }
.noev { padding: 52px 20px; text-align: center; font: 20px/28px var(--f-bold); color: var(--c-dark); }

/* =====================================================================
   UI-обновление: тот же бренд (цвета, шрифт, сетка), но аккуратнее —
   фокус и наведение, липкая шапка, карточки, крошки, «Поделиться», «Читайте также».
   ===================================================================== */
html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
::selection { background: var(--c-dark); color: var(--c-bg); }
:focus-visible { outline: 2px solid var(--c-dark); outline-offset: 3px; border-radius: 4px; }
.hdr :focus-visible, .help :focus-visible, .ftr :focus-visible, .vch :focus-visible { outline-color: var(--c-bg); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* --- шапка: липкая, ссылки с подчёркиванием-линией --- */

/* --- кнопки и ссылки --- */
.pill { transition: transform .2s, box-shadow .2s, opacity .2s; }
.pill:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(47, 23, 30, .25); }
.pill svg { transition: transform .2s; }
.pill:hover svg { transform: translateX(3px); }
.more-link { display: inline-flex; gap: 8px; align-items: center; font: 15px/1 var(--f-medium); color: var(--c-dark); border-bottom: 1px solid transparent; padding-bottom: 3px; transition: border-color .2s, gap .2s; }
.more-link:hover { border-color: currentColor; gap: 12px; }
.home-posts__all { width: 980px; max-width: calc(100% - 40px); margin: 18px auto 0; text-align: right; }

/* --- карточки постов --- */
.pslide__img, .pitem__img { overflow: hidden; }
.pslide__img img, .pitem__img img { transition: transform .5s ease; }
.pslide:hover .pslide__img img, .pitem:hover .pitem__img img { transform: scale(1.03); }
.plist--rows .pitem { background: var(--c-bg); transition: box-shadow .25s, border-color .25s; }
.plist--rows .pitem:hover { box-shadow: 0 10px 30px rgba(47, 23, 30, .12); border-color: transparent; }
.pitem:hover .pitem__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* вариант «cards» — три карточки в ряд («Читайте также») */
.plist--cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plist--cards .pitem { display: flex; flex-direction: column; background: rgba(255, 255, 255, .35); border-radius: 10px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.plist--cards .pitem:hover { box-shadow: 0 12px 30px rgba(47, 23, 30, .14); transform: translateY(-2px); }
.plist--cards .pitem__img { aspect-ratio: 16 / 10; }
.plist--cards .pitem__body { padding: 16px 18px 20px; }
.plist--cards .pitem__title { margin-top: 12px; font-size: 18px; line-height: 24px; }
.plist--cards .pitem__text { display: none; }
@media (max-width: 860px) {
  .plist--cards { grid-template-columns: 1fr; }
  .plist--cards .pitem { flex-direction: row; }
  .plist--cards .pitem__img { flex: 0 0 38%; aspect-ratio: auto; }
}

/* --- карточки событий --- */
.evcard { border-radius: 10px; overflow: hidden; border-color: rgba(47, 23, 30, .1); transition: box-shadow .25s, transform .25s; }
.evcard:hover { box-shadow: 0 12px 30px rgba(47, 23, 30, .14); transform: translateY(-2px); }
.evcard__img { overflow: hidden; }
.evcard__img img { transition: transform .5s; }
.evcard:hover .evcard__img img { transform: scale(1.04); }
.evcard__btn { transition: transform .2s, box-shadow .2s; }
.evcard__btn:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(47, 23, 30, .25); }
.evcard__info { transition: opacity .2s; }
.evcard__info:hover { opacity: .7; }
.evgrid__more button { transition: background-color .2s, color .2s; }
.evgrid__more button:hover { background: var(--c-dark); color: var(--c-bg); }

/* --- хлебные крошки --- */
.crumbs { width: 980px; max-width: calc(100% - 40px); margin: 18px auto 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font: 13px/1.5 var(--f-light); color: var(--c-muted-2); }
.crumbs li { display: flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: .5; }
.crumbs a { color: var(--c-dark); border-bottom: 1px solid rgba(47, 23, 30, .25); transition: border-color .2s; }
.crumbs a:hover { border-color: currentColor; }
.crumbs [aria-current] { max-width: 46ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs + .cat { padding-top: 0; }
.crumbs + .all { padding-top: 40px; }
.crumbs + .ab-who { padding-top: 48px; }
.crumbs + .dates { padding-top: 16px; }

/* --- пост --- */
.post__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(47, 23, 30, .3); font: 12px/1.4 var(--f-regular); color: var(--c-dark); transition: background-color .2s, color .2s; }
.chip:hover { background: var(--c-dark); color: var(--c-bg); border-color: var(--c-dark); }
.post__draft { margin-bottom: 16px; padding: 8px 14px; border-radius: 8px; background: #fde68a; font: 14px/1.4 var(--f-regular); }
.post__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(47, 23, 30, .15); }
.post__share span { margin-right: 6px; font: 14px/1 var(--f-regular); }
.post__share a, .post__share button {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(47, 23, 30, .08); color: var(--c-dark); transition: background-color .2s, color .2s, transform .2s;
}
.post__share a:hover, .post__share button:hover { background: var(--c-dark); color: var(--c-bg); transform: translateY(-2px); }
.post__share button.is-done { background: #2f7a4a; color: #fff; }
.prose a { transition: color .2s; }
.prose a:hover { color: var(--c-dark); }
.prose img { border-radius: 6px; }
.related { width: 980px; padding: 40px 0 90px; }
.related__title { font: 28px/1.2 var(--f-bold); letter-spacing: -0.03em; margin-bottom: 22px; }

/* --- видео и плейлисты --- */
.vch__play, .pl__play { transition: transform .2s; }
.vch__play:hover, .pl__play:hover { transform: scale(1.08); }
.pl__thumbs button { border-radius: 6px; overflow: hidden; }
.pl__thumbs button.is-current { box-shadow: 0 0 0 3px var(--c-dark); }

/* --- форма --- */
.ct__field input, .ct__select select { transition: box-shadow .15s; }
.ct__send { transition: transform .2s, box-shadow .2s; }
.ct__send:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(47, 23, 30, .25); }
.ct__msg { padding: 10px 14px; border-radius: 10px; background: rgba(47, 23, 30, .06); }

/* --- футер --- */

/* --- кнопка «наверх» --- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--c-dark); color: var(--c-bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { transform: translateY(-2px); }

@media (max-width: 760px) {
  .crumbs { margin-top: 12px; }
  .crumbs [aria-current] { max-width: 24ch; }
  .related { padding: 24px 0 48px; }
  .related__title { font-size: 22px; }
  .post__share { margin-top: 32px; }
}
.crumbs--post { width: auto; max-width: none; margin: -30px 0 34px; }
@media (max-width: 760px) { .crumbs--post { margin: -14px 0 20px; } }
.post-wrap + .related { padding-top: 8px; }
.home-events { padding-top: 75px; }
.home-events__grid { margin-top: 40px; }
.home-events__all { width: 940px; max-width: calc(100% - 40px); margin: 22px auto 0; text-align: right; }
@media (max-width: 680px) {
  .home-events { padding-top: 32px; }
  .home-events__grid { margin-top: 16px; }
  .home-events .evgrid { width: 100%; max-width: 100%; }
  .home-events .evgrid__list {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; justify-content: start;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 14px; scrollbar-width: none;
  }
  .home-events .evgrid__list::-webkit-scrollbar { display: none; }
  .home-events .evcard { scroll-snap-align: center; }
}

/* =====================================================================
   Шапка и подвал (переверстаны): бренд тот же — тёмная плашка с текстурой,
   Cascadia Mono, светлый фон, — но обычная сетка вместо абсолютных координат Wix.
   ===================================================================== */
.hdr { position: sticky; top: 0; z-index: 40; }
.hdr__bar { position: relative; z-index: 2; background: var(--c-dark) var(--texture) center top / cover no-repeat; color: var(--c-light); }
.hdr__in, .hdr__sub-in, .ftr__in, .ftr__bottom { width: min(1184px, calc(100% - 56px)); margin: 0 auto; }
.hdr__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.hdr__logo { flex: none; display: block; border-radius: 6px; }
.hdr__logo img { width: 104px; height: 48px; object-fit: cover; }
.hdr__nav { flex: 1; display: flex; justify-content: center; gap: 4px; min-width: 0; }
.hdr__link {
  padding: 10px 14px; border-radius: 999px; font: 15px/1 var(--f-regular); color: var(--c-light); white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.hdr__link:hover { background: rgba(214, 220, 219, .12); color: #fff; }
.hdr__link.is-current { background: var(--c-light); color: var(--c-dark); }
.hdr__actions { flex: none; display: flex; align-items: center; gap: 8px; }
.hdr__search, .hdr__lang summary, .hdr__burger {
  height: 40px; border: 1px solid rgba(214, 220, 219, .35); border-radius: 999px; color: var(--c-light);
  transition: background-color .2s, border-color .2s, color .2s;
}
.hdr__search { width: 40px; display: flex; align-items: center; justify-content: center; }
.hdr__search:hover, .hdr__search.is-current, .hdr__lang summary:hover, .hdr__lang[open] summary, .hdr__burger:hover {
  background: var(--c-light); border-color: var(--c-light); color: var(--c-dark);
}
.hdr__lang { position: relative; }
.hdr__lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; padding: 0 13px 0 11px; font: 14px/1 var(--f-regular); }
.hdr__lang summary::-webkit-details-marker { display: none; }
.hdr__lang-chev { transition: transform .2s; }
.hdr__lang[open] .hdr__lang-chev { transform: rotate(180deg); }
.hdr__lang-menu {
  position: absolute; z-index: 10; right: 0; top: calc(100% + 8px); min-width: 190px; list-style: none; margin: 0; padding: 6px;
  background: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(47, 23, 30, .22), 0 0 0 1px rgba(47, 23, 30, .06);
  animation: menu-in .16s ease-out;
}
.hdr__lang-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; font: 15px/1.2 var(--f-light); color: var(--c-dark); transition: background-color .15s; }
.hdr__lang-menu a b { width: 30px; font: 12px/22px var(--f-medium); text-align: center; border-radius: 6px; background: rgba(47, 23, 30, .08); }
.hdr__lang-menu a:hover { background: rgba(47, 23, 30, .06); }
.hdr__lang-menu a.is-current { background: var(--c-dark); color: var(--c-bg); }
.hdr__lang-menu a.is-current b { background: rgba(255, 255, 255, .16); }
.hdr__burger { display: none; width: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hdr__burger span { display: block; width: 18px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.hdr__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hdr__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.hdr__sub { position: relative; z-index: 1; background: rgb(219, 218, 219); border-bottom: 1px solid rgba(47, 23, 30, .12); }
.hdr__sub-in { display: flex; justify-content: safe center; align-items: center; gap: 6px; height: 44px; overflow-x: auto; scrollbar-width: none; }
.hdr__sub-in::-webkit-scrollbar { display: none; }
.hdr__sub a { flex: none; padding: 7px 13px; border-radius: 999px; font: 14px/1 var(--f-light); color: var(--c-muted-2); white-space: nowrap; transition: background-color .2s, color .2s; }
.hdr__sub a:hover { color: var(--c-dark); background: rgba(47, 23, 30, .07); }
.hdr__sub a.is-current { color: var(--c-dark); background: rgba(47, 23, 30, .11); }

.mmenu { display: none; }
html.menu-open { overflow: hidden; }

@media (max-width: 1180px) {
  .hdr__in { gap: 14px; }
  .hdr__link { padding: 10px 10px; font-size: 14px; }
}
@media (max-width: 1040px) {
  .hdr__in { height: 64px; }
  .hdr__logo img { width: 96px; height: 44px; }
  .hdr__nav, .hdr__lang { display: none; }
  .hdr__actions { margin-left: auto; }
  .hdr__burger { display: flex; }
  .mmenu {
    display: block; position: fixed; inset: 64px 0 0 0; z-index: 50; overflow-y: auto;
    background: var(--c-dark) var(--texture) center bottom / cover; color: var(--c-light);
    padding: 20px max(20px, calc((100% - 560px) / 2)) 40px;
  }
  .mmenu[hidden] { display: none; }
  .mmenu__langs { display: flex; gap: 6px; padding: 4px; border: 1px solid rgba(214, 220, 219, .3); border-radius: 999px; }
  .mmenu__langs a { flex: 1; text-align: center; padding: 9px 0; border-radius: 999px; font: 14px/1.2 var(--f-regular); color: var(--c-light); }
  .mmenu__langs a.is-current { background: var(--c-light); color: var(--c-dark); }
  .mmenu__title { margin: 26px 0 4px; font: 12px/1.4 var(--f-regular); letter-spacing: .12em; text-transform: uppercase; color: rgba(214, 220, 219, .55); }
  .mmenu ul { list-style: none; padding: 0; }
  .mmenu li { border-bottom: 1px solid rgba(214, 220, 219, .16); }
  .mmenu li a { display: flex; align-items: center; min-height: 52px; font: 16px/1.3 var(--f-light); color: var(--c-light); transition: padding-left .2s, color .2s; }
  .mmenu li a:hover { padding-left: 6px; color: #fff; }
  .mmenu li a.is-current { font-family: var(--f-regular); color: #fff; }
  .mmenu li a.is-current::before { content: ""; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: currentColor; }
  .mmenu__contact { display: flex; justify-content: center; margin-top: 30px; padding: 14px; border-radius: 999px; background: var(--c-light); color: var(--c-dark); font: 15px/1.2 var(--f-regular); }
}
@media (max-width: 760px) {
  .hdr__in, .hdr__sub-in, .ftr__in, .ftr__bottom { width: calc(100% - 40px); }
  .hdr__sub { display: none; }
}

/* --- подвал --- */
.help + .ftr .ftr__in { border-top: 1px solid rgba(214, 220, 219, .14); }
.ftr { background: var(--c-dark) var(--texture) center bottom / cover no-repeat; color: var(--c-light); }
.ftr__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 44px; }
.ftr__logo { display: inline-block; border-radius: 6px; }
.ftr__logo img { width: 104px; height: 48px; object-fit: cover; }
.ftr__tag { margin-top: 16px; max-width: 32ch; font: 14px/1.6 var(--f-light); color: rgba(214, 220, 219, .75); }
.ftr__social { list-style: none; padding: 0; margin-top: 22px; display: flex; gap: 10px; }
.ftr__social a {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(214, 220, 219, .3); color: var(--c-light); transition: background-color .2s, color .2s, transform .2s;
}
.ftr__social a:hover { background: var(--c-light); color: var(--c-dark); transform: translateY(-2px); }
.ftr__h { margin-bottom: 14px; font: 12px/1.4 var(--f-regular); letter-spacing: .12em; text-transform: uppercase; color: rgba(214, 220, 219, .55); }
.ftr__col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.ftr__col a { font: 14px/1.45 var(--f-light); color: var(--c-light); text-underline-offset: 3px; transition: color .2s; }
.ftr__col a:hover { color: #fff; text-decoration: underline; }
.ftr__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 22px; border-top: 1px solid rgba(214, 220, 219, .14); }
.ftr__copy { font: 13px/1.5 var(--f-light); color: rgba(214, 220, 219, .7); }
.ftr__langs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(214, 220, 219, .3); }
.ftr__langs a { min-width: 44px; padding: 7px 10px; text-align: center; border-radius: 999px; font: 13px/1 var(--f-regular); color: var(--c-light); transition: background-color .2s; }
.ftr__langs a:hover { background: rgba(214, 220, 219, .12); }
.ftr__langs a.is-current { background: var(--c-light); color: var(--c-dark); }
@media (max-width: 960px) {
  .ftr__in { grid-template-columns: repeat(3, 1fr); }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .ftr__in { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding: 40px 0 30px; }
  .ftr__bottom { flex-direction: column-reverse; align-items: flex-start; padding-bottom: 80px; }
}
