@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/pt-serif/pt-serif-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/pt-serif/pt-serif-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/pt-serif/pt-serif-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/pt-serif/pt-serif-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-main: "PT Serif", "Times New Roman", serif;
  --bg: #edf1f4;
  --panel: #ffffff;
  --panel-soft: #f4f7f9;
  --text: #1f2b34;
  --text-muted: #5c6a74;
  --line: #c9d3db;
  --accent: #1d4f70;
  --warm: #7f6947;
  --radius: 9px;
  --shadow: 0 10px 24px rgba(27, 47, 61, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(980px 360px at 8% -10%, rgba(71, 105, 128, 0.12), transparent 72%),
    linear-gradient(180deg, #f5f8fa 0%, #edf1f4 42%, #eaf0f3 100%);
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 59, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 59, 76, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(transparent 0%, black 18%, black 82%, transparent 100%);
}

a {
  color: inherit;
}

.container {
  width: min(1140px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  backdrop-filter: blur(10px);
  background: rgba(248, 251, 253, 0.94);
  border-bottom: 1px solid rgba(121, 144, 160, 0.25);
}

.header-top__wrap {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-contacts {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  justify-content: flex-end;
}

.header-contacts a {
  color: var(--text-muted);
  font-size: 0.83rem;
  text-decoration: none;
  transition: color 0.2s;
}

.header-contacts a:hover {
  color: var(--text);
}

.header-top__right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-nav {
  background: rgba(246, 250, 252, 0.95);
  border-bottom: 1px solid rgba(121, 144, 160, 0.28);
}

.header-nav__wrap {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(121, 144, 160, 0.35);
}

.brand strong {
  display: block;
  font-size: 0.93rem;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  font-size: 0.73rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav a.active,
.nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
}

.nav-close {
  display: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.search-form {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}

.search-input {
  background: #ffffff;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  color: var(--text);
  padding: 0.28rem 0.7rem;
  font-family: var(--font-main);
  font-size: 0.85rem;
  width: 160px;
  outline: none;
  transition: border-color 0.2s, width 0.2s ease;
}

.search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.search-input:focus {
  border-color: rgba(29, 79, 112, 0.55);
}

.search-btn {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 0.55rem;
  transition: background 0.22s, color 0.22s;
}

.search-btn:hover {
  background: rgba(29, 79, 112, 0.1);
  color: var(--accent);
}

.search-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  background: var(--panel);
}

.search-result a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.search-result a:hover {
  text-decoration: underline;
}

.search-result p {
  color: var(--text-muted);
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
}

.search-empty {
  color: var(--text-muted);
  padding: 0.6rem 0;
}

.lang-switch a,
.lang-switch span {
  font-size: 0.86rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--text-muted);
}

.lang-switch .active {
  color: var(--text);
}

.section {
  padding: 3.5rem 0;
}

.main-focus {
  padding-top: 5.5rem;
  padding-bottom: 2.3rem;
}

.main-focus__intro {
  margin-bottom: 1rem;
  max-width: 82ch;
}

.main-focus__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #36586d;
}

.main-focus__intro h1 {
  margin: 0;
  font-size: clamp(1.95rem, 4vw, 3.35rem);
  line-height: 1.08;
  max-width: 26ch;
  color: #1c3341;
}

.main-focus__lead {
  margin: 0.85rem 0 0;
  color: #4f6472;
  font-size: 1rem;
}

.main-focus__diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  margin: 1rem 0 0.8rem;
}

.main-focus__diagram-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(89, 118, 136, 0.4);
  background: linear-gradient(180deg, rgba(242, 248, 252, 0.92), rgba(233, 242, 248, 0.95));
  color: #223d4f;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.main-focus__diagram-way {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px dashed rgba(99, 128, 145, 0.5);
  background: rgba(240, 247, 252, 0.66);
  color: #355468;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  line-height: 1.2;
}

.main-focus__diagram-way--left {
  justify-self: end;
  text-align: right;
}

.main-focus__diagram-way--right {
  justify-self: start;
}

.main-focus__diagram-way--left::before,
.main-focus__diagram-way--right::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 0.1rem);
  height: 1.55rem;
  border-left: 2px dashed rgba(82, 113, 131, 0.65);
  transform: translateX(-50%);
  pointer-events: none;
}

.main-focus__diagram-way--left::after,
.main-focus__diagram-way--right::before {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  content: "";
}

.main-focus__diagram-way--left::after {
  right: -1.05rem;
}

.main-focus__diagram-way--right::before {
  left: -1.05rem;
}

.main-focus__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.main-focus__card {
  position: relative;
  border-radius: 14px;
  padding: clamp(1.1rem, 2.3vw, 1.65rem);
  border: 1px solid rgba(146, 171, 189, 0.58);
  box-shadow: 0 15px 32px rgba(18, 44, 61, 0.14);
  overflow: hidden;
}

.main-focus__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 40%);
}

.main-focus__card--vacuum {
  background:
    radial-gradient(640px 270px at 8% -24%, rgba(157, 207, 243, 0.38), transparent 70%),
    linear-gradient(140deg, #163349 0%, #1f4b66 64%, #285f80 100%);
  color: #eef7fb;
}

.main-focus__card--engineering {
  background:
    radial-gradient(600px 260px at 96% -30%, rgba(255, 230, 185, 0.42), transparent 70%),
    linear-gradient(145deg, #423220 0%, #5a4428 56%, #6f5330 100%);
  color: #fcf8f1;
}

.main-focus__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(233, 245, 251, 0.54);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.main-focus__card h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  line-height: 1.18;
  max-width: 20ch;
}

.main-focus__card p {
  margin: 0.75rem 0 1rem;
  max-width: 56ch;
  color: rgba(250, 254, 255, 0.9);
}

.main-focus__card--engineering p {
  color: rgba(255, 250, 243, 0.9);
}

.main-focus__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.main-focus__card .btn-primary {
  border-color: rgba(219, 236, 247, 0.58);
  background: rgba(232, 245, 251, 0.16);
  color: #f6fbff;
}

.main-focus__card .btn-primary:hover {
  background: rgba(232, 245, 251, 0.26);
}

.main-focus__card .btn-secondary {
  border-color: rgba(218, 233, 243, 0.42);
  background: rgba(8, 22, 32, 0.18);
  color: #f8fcff;
}

.main-focus__card .btn-secondary:hover {
  background: rgba(8, 22, 32, 0.3);
}

.page-title,
h1,
h2 {
  font-family: var(--font-main);
  letter-spacing: 0.01em;
}

.page-title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.breadcrumbs {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.93rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.slider {
  padding-top: 5.4rem;
  padding-bottom: 2.2rem;
}

.slider-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.slider-frame::before {
  content: "";
  position: absolute;
  top: 0;
  right: 1.2rem;
  width: 82px;
  height: 2px;
  border-radius: 999px;
  background: rgba(29, 79, 112, 0.45);
  pointer-events: none;
}

.slide {
  display: none;
  padding: clamp(1.3rem, 3vw, 2.3rem);
  min-height: 300px;
  align-content: center;
}

.slide.is-active {
  display: grid;
}

.slide h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 16ch;
}

.slide p {
  margin: 1rem 0 1.4rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.section-testimonials .slide p {
  max-width: none;
}

.section-projects .slide p {
  max-width: none;
}

.slider-dots {
  position: absolute;
  left: 50%;
  top: 0.95rem;
  bottom: auto;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 9;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(29, 79, 112, 0.26);
  cursor: pointer;
}

.slider-dots button.is-active {
  background: var(--accent);
}

.slider-nav {
  position: absolute;
  top: 0.35rem;
  transform: none;
  z-index: 10;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  line-height: 0;
}

.slider-nav:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.slider-nav--prev {
  left: 0.35rem;
}

.slider-nav--next {
  right: 0.35rem;
}

.slider-nav svg {
  width: 24px;
  height: 24px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider-nav:focus,
.slider-nav:focus-visible {
  outline: none;
}

.slider-nav::-moz-focus-inner {
  border: 0;
}

.slider-frame.has-nav {
  padding-top: 2.8rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: start;
}

.two-col h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
}

.two-col p,
.card p,
.note-card p {
  color: var(--text-muted);
}

.section-head {
  margin-bottom: 0.7rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.1vw, 2.2rem);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.cards-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partners-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.note-card,
.accordion-item,
.cta-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.card {
  padding: 1.2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 79, 112, 0.45);
  box-shadow: 0 12px 24px rgba(24, 52, 69, 0.12);
}

.card h3 {
  margin-top: 0;
  font-size: 1.07rem;
}

.card a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(29, 79, 112, 0), rgba(29, 79, 112, 0.28), rgba(29, 79, 112, 0));
}

.blog-card {
  cursor: pointer;
}

.blog-card:focus-visible {
  outline: 2px solid rgba(29, 79, 112, 0.55);
  outline-offset: 2px;
}

.blog-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.blog-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 0.8rem;
  background: var(--panel-soft);
}

.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Sources / Projects cards -------------------------------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

.topic-grid.two {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.topic-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.4rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  height: 100%;
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 79, 112, 0.42);
  box-shadow: 0 12px 24px rgba(24, 52, 69, 0.11);
}

.topic-card:focus-visible {
  outline: 2px solid rgba(29, 79, 112, 0.55);
  outline-offset: 2px;
}

.topic-card__icon {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}

.topic-card__icon svg {
  width: 100%;
  height: 100%;
  padding: 14px;
  display: block;
}

.topic-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.topic-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.topic-card__title a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.topic-card__title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.topic-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Service image cards --------------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

.svc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.4rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  cursor: pointer;
}

.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 79, 112, 0.4);
  box-shadow: 0 12px 24px rgba(24, 52, 69, 0.1);
}

.svc-card:focus-visible {
  outline: 2px solid rgba(29, 79, 112, 0.55);
  outline-offset: 2px;
}

.svc-card__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  background: var(--panel-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  overflow: hidden;
}

.svc-card__img {
  width: 100%;
  height: 100%;
  padding: 14px;
  object-fit: contain;
}

.svc-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
}

.svc-card__title:hover {
  color: var(--accent);
  text-decoration: underline;
}

.svc-card__desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.article-content p {
  margin: 0 0 0.95rem;
}

.article-content .article-inline-image-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(24, 52, 69, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.article-content .article-inline-image-link:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 79, 112, 0.45);
  box-shadow: 0 14px 26px rgba(24, 52, 69, 0.14);
}

.article-content .article-inline-image-link:focus-visible {
  outline: 2px solid rgba(29, 79, 112, 0.55);
  outline-offset: 2px;
}

.article-content .article-inline-image {
  display: block;
  width: auto;
  max-width: min(100%, 760px);
  height: auto;
  margin: 0 auto;
}

.article-content .table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.article-content .table-scroll table {
  margin: 0;
  min-width: 560px;
}

.article-gallery-title {
  margin: 1.35rem 0 0.7rem;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.2;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.article-gallery a {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  box-shadow: 0 8px 18px rgba(24, 52, 69, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.article-gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(9, 31, 45, 0.32), rgba(9, 31, 45, 0) 45%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.article-gallery a:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 79, 112, 0.45);
  box-shadow: 0 14px 28px rgba(24, 52, 69, 0.14);
}

.article-gallery a:hover::after {
  opacity: 1;
}

.article-gallery a:focus-visible {
  outline: 2px solid rgba(29, 79, 112, 0.55);
  outline-offset: 2px;
}

.article-gallery img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.article-gallery a:hover img {
  transform: scale(1.05);
}

@media (max-width: 700px) {
  .article-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .article-gallery img {
    height: 130px;
  }
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 18, 28, 0.86);
  padding: 1.2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: min(92vw, 1280px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(212, 224, 232, 0.35);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
  background: #0c1218;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 0;
  border-radius: 10px;
  color: #eef5f8;
  background: rgba(20, 42, 57, 0.8);
  cursor: pointer;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(27, 61, 84, 0.95);
}

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 2px solid rgba(163, 202, 226, 0.85);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .lightbox__nav {
    width: 38px;
    height: 44px;
    font-size: 1.6rem;
  }

  .lightbox__img {
    max-width: 94vw;
    max-height: 82vh;
  }
}

.article-content p:last-child {
  margin-bottom: 0;
}

.article-content strong {
  color: var(--text);
}

.note-card {
  padding: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  padding: 0 1rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.24s ease;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  border: 1px solid #1a4865;
  background: linear-gradient(120deg, #234e6c, #2d5f82);
  color: #f7fbfc;
}

.btn-secondary {
  border: 1px solid rgba(121, 144, 160, 0.55);
  background: rgba(246, 250, 253, 0.9);
  color: #324a58;
}

.btn-secondary:hover {
  background: rgba(232, 241, 247, 0.95);
}

.btn-lg {
  min-height: 54px;
  padding: 0 2rem;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.about-card {
  background: linear-gradient(135deg, rgba(244, 247, 249, 0.8), rgba(237, 241, 244, 0.6));
  border: 1px solid rgba(201, 211, 219, 0.6);
  border-radius: 12px;
  padding: 1.4rem;
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 79, 112, 0.35);
  box-shadow: 0 12px 28px rgba(24, 52, 69, 0.1);
}

.about-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.about-card__number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 60px;
}

.about-card__icon {
  color: var(--text);
  min-width: 60px;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about-card__icon svg {
  width: 2rem;
  height: 2rem;
}

.about-card__icon img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: block;
}

.testimonial-lightbox-link {
  display: inline-block;
  border-radius: 8px;
  line-height: 0;
}

.testimonial-lightbox-link img {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-lightbox-link:hover img,
.testimonial-lightbox-link:focus-visible img {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24, 52, 69, 0.18);
}

.testimonial-lightbox-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.section-benefits .topic-card__icon {
  color: #4f616d;
}

.section-benefits .topic-card__icon svg {
  padding: 15px;
}

.section-benefits .topic-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15px;
  display: block;
}

.about-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.about-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contacts-page .container {
  position: relative;
}

.contacts-hero {
  border: 1px solid rgba(201, 211, 219, 0.8);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  margin-bottom: 1rem;
  background:
    radial-gradient(520px 180px at 90% -35%, rgba(29, 79, 112, 0.14), transparent 72%),
    linear-gradient(135deg, rgba(250, 252, 254, 0.95) 0%, rgba(242, 247, 251, 0.88) 100%);
}

.contacts-hero__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
}

.contacts-hero .page-title {
  margin-bottom: 0.55rem;
}

.contacts-hero__lead {
  margin: 0;
  color: var(--text-muted);
}

.contacts-hero__chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.contacts-hero__chips span {
  font-size: 0.82rem;
  color: #435766;
  border: 1px solid rgba(121, 144, 160, 0.32);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: rgba(246, 251, 255, 0.8);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.contacts-card {
  padding: 1.25rem;
}

.contacts-card h2 {
  margin: 0 0 0.95rem;
  font-size: 1.22rem;
}

.contacts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contacts-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.contacts-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contacts-list p {
  margin: 0;
  color: var(--text-muted);
}

.contacts-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contacts-list a:hover {
  text-decoration: underline;
}

.contacts-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(121, 144, 160, 0.34);
  background: rgba(246, 250, 253, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #496173;
}

.contacts-icon svg {
  width: 19px;
  height: 19px;
}

.contacts-card--cta {
  background:
    radial-gradient(340px 160px at 90% -30%, rgba(127, 105, 71, 0.12), transparent 74%),
    var(--panel);
}

.contacts-card--cta p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.contacts-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.contacts-btn-muted {
  border: 1px solid rgba(121, 144, 160, 0.45);
  background: rgba(246, 250, 253, 0.95);
  color: #304654;
}

.contacts-btn-call {
  display: none;
}

.contacts-note {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(121, 144, 160, 0.45);
  display: grid;
  gap: 0.2rem;
}

.contacts-note strong {
  font-size: 0.9rem;
}

.contacts-note span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contacts-map-card {
  margin-top: 1rem;
  padding: 1rem;
}

.contacts-map-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}

.contacts-map-card__head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.contacts-map-card__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contacts-map-frame {
  border: 1px solid rgba(201, 211, 219, 0.7);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel-soft);
}

.contacts-map-frame iframe {
  width: 100%;
  height: 390px;
  border: 0;
  display: block;
}

.accordion {
  display: grid;
  gap: 0.85rem;
}

.accordion-header {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 1rem 1.1rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.accordion-content {
  display: none;
  padding: 0 1.1rem 1rem;
}

.accordion-item.is-open .accordion-content {
  display: block;
}

.cta-box {
  padding: 2.4rem 2rem;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(29, 79, 112, 0.08) 0%, rgba(127, 105, 71, 0.04) 100%);
  border: 1px solid rgba(201, 211, 219, 0.5);
  border-radius: 14px;
}

.cta-content {
  flex: 1;
}

.cta-box h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
}

.cta-box p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.footer {
  border-top: 1px solid rgba(121, 144, 160, 0.32);
  background: rgba(241, 246, 249, 0.96);
  margin-top: 0;
  font-family: var(--font-main);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 2rem 0 1rem;
}

.footer h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  color: #2a4150;
  font-family: inherit;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-brand__logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(121, 144, 160, 0.35);
}

.footer p,
.footer a,
.footer li {
  color: var(--text-muted);
  text-decoration: none;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col p {
  margin: 0 0 0.4rem;
}

.footer-col li {
  margin-bottom: 0.3rem;
}

.footer-col a {
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-col--brand p {
  max-width: 42ch;
  font-size: 0.875rem;
}

.footer-col--contacts a {
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(121, 144, 160, 0.32);
  padding: 1rem 0;
}

.footer-bottom p {
  margin: 0;
  color: #617581;
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.home-expressive-reveal .reveal {
  opacity: 0;
  transform: translate3d(0, 58px, 0) scale(0.975);
  filter: blur(2px);
  transition:
    opacity 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.88s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.62s ease;
  will-change: transform, opacity, filter;
}

body.home-expressive-reveal .reveal[data-reveal-style="left"] {
  transform: translate3d(-72px, 34px, 0) rotate(-1.2deg) scale(0.97);
}

body.home-expressive-reveal .reveal[data-reveal-style="right"] {
  transform: translate3d(72px, 34px, 0) rotate(1.2deg) scale(0.97);
}

body.home-expressive-reveal .reveal[data-reveal-style="zoom-up"] {
  transform: translate3d(0, 70px, 0) scale(0.935);
}

body.home-expressive-reveal .reveal[data-reveal-style="up-strong"] {
  transform: translate3d(0, 82px, 0) scale(0.955);
}

body.home-expressive-reveal .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
  filter: blur(0);
}

@media (max-width: 980px) {
  .main-focus {
    padding-top: 4.8rem;
  }

  .main-focus__diagram {
    display: flex;
    justify-content: flex-start;
    padding-left: 1.1rem;
    margin: 0.8rem 0 0.65rem;
  }

  .main-focus__diagram-center {
    position: relative;
  }

  .main-focus__diagram-center::before {
    content: "";
    position: absolute;
    left: -0.65rem;
    top: 50%;
    width: 0.65rem;
    border-top: 2px dashed rgba(82, 113, 131, 0.72);
    transform: translateY(-50%);
    pointer-events: none;
  }

  .main-focus__diagram-center::after {
    content: "";
    position: absolute;
    left: -0.65rem;
    top: 50%;
    height: 3.3rem;
    border-left: 2px dashed rgba(82, 113, 131, 0.72);
    transform: translateY(0);
    pointer-events: none;
  }

  .main-focus__diagram-way {
    display: none;
  }

  .main-focus__grid {
    position: relative;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding-left: 1.1rem;
  }

  .main-focus__card {
    overflow: visible;
  }

  .main-focus__card::after {
    content: "";
    position: absolute;
    left: -0.65rem;
    top: 1.45rem;
    width: 0.65rem;
    border-top: 2px dashed rgba(82, 113, 131, 0.72);
    pointer-events: none;
  }

  .main-focus__card:first-child::after {
    height: calc(100% + 1.2rem);
    border-left: 2px dashed rgba(82, 113, 131, 0.72);
  }

  .two-col,
  .cards-grid,
  .cards-grid.two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cta-box .btn-lg {
    width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-grid,
  .topic-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .main-focus {
    padding-top: 4.2rem;
    padding-bottom: 1.8rem;
  }

  .main-focus__card {
    padding: 1rem;
  }

  .main-focus__num {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
    margin-bottom: 0.65rem;
  }

  .contacts-hero {
    padding: 1.1rem;
  }

  .contacts-card {
    padding: 1rem;
  }

  .contacts-actions .btn {
    width: 100%;
  }

  .contacts-btn-call {
    display: inline-flex;
  }

  .contacts-map-frame iframe {
    height: 300px;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }

  .topic-grid,
  .topic-grid.two {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.45rem;
    -webkit-overflow-scrolling: touch;
  }

  .partners-grid .card {
    min-width: min(72vw, 260px);
    scroll-snap-align: start;
    min-height: 140px !important;
  }

  .partners-grid .card img {
    max-height: 84px !important;
  }

  .svc-card {
    padding: 1.1rem;
  }

  .topic-card {
    padding: 1.1rem;
  }
}

.header.is-compact .nav-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  order: 1;
}

.header.is-compact .nav-toggle span {
  width: 18px;
  height: 2px;
  background: #2b4958;
}

.header.is-compact .header-nav__wrap {
  flex-wrap: wrap;
  padding: 0.25rem 0;
}

.header.is-compact .nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  order: 3;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  visibility: hidden;
  pointer-events: none;
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.28s ease,
    visibility 0s linear 0.28s;
  padding-bottom: 0.5rem;
}

.header.is-compact .nav.open {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: 100vw;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 5.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  overflow: auto;
  background: rgba(245, 249, 252, 0.98);
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.22s ease,
    transform 0.32s ease,
    visibility 0s;
  animation: navOverlayIn 0.24s ease-out;
}

.header.is-compact .nav.open a {
  font-size: 1.08rem;
  text-align: center;
  animation: navItemIn 0.22s ease-out;
}

.header.is-compact .search-form {
  margin-left: auto;
  order: 2;
}

.header.is-compact .search-input {
  width: clamp(110px, 28vw, 300px);
}

body.nav-overlay-open {
  overflow: hidden;
}

body.nav-overlay-open .nav.open {
  animation: navOverlayIn 0.24s ease-out;
}

body.nav-overlay-open .nav.open .nav-close {
  display: inline-flex;
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(250, 252, 254, 0.98);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@keyframes navOverlayIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navItemIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 868px) {
  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .header {
    position: static;
  }

  .header-top__wrap {
    min-height: auto;
    flex-wrap: wrap;
    padding: 0.35rem 0;
  }

  .header-top__right {
    margin-left: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
  }

  .lang-switch {
    justify-content: flex-end;
  }

  .header-contacts {
    display: flex;
    order: 4;
    width: auto;
    margin-left: auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.2rem;
    padding-bottom: 0;
  }

  .header-contacts a {
    font-size: 0.78rem;
  }

  .header-nav__wrap {
    min-height: auto;
    flex-wrap: wrap;
    padding: 0.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Modal Contacts Styles */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s;
  z-index: 10;
  padding: 0.5rem;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 2.5rem 2rem;
}

.modal-body h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  color: var(--text);
}

.modal-subtitle {
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
}

.contacts-options {
  display: grid;
  gap: 1.2rem;
  margin: 1.5rem 0 2rem 0;
}

.contact-option {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.contact-option:hover {
  border-color: var(--accent);
  background: var(--panel-soft);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.contact-desc {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-block;
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.contact-info address {
  font-style: normal;
  display: inline;
}

.modal-footer {
  padding: 1rem 2rem 2rem 2rem;
  border-top: 1px solid var(--line);
}

.modal-info {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.modal-info strong {
  color: var(--text);
}

@media (max-width: 640px) {
  .modal-body {
    padding: 2rem 1.5rem;
  }

  .modal-body h2 {
    font-size: 1.5rem;
  }

  .contact-option {
    padding: 0.8rem;
    gap: 0.8rem;
  }

  .contact-icon {
    width: 36px;
    height: 36px;
  }

  .modal-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }
}

.cms-feed {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(121, 144, 160, 0.3);
}

.cms-feed__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--accent);
}

.cms-dynamic-card {
  min-height: 100%;
}

.cms-dynamic-card__thumb {
  background: #eef3f6;
}

.cms-dynamic-card__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(29, 79, 112, 0.08), rgba(127, 105, 71, 0.08)),
    repeating-linear-gradient(
      45deg,
      rgba(29, 79, 112, 0.08) 0,
      rgba(29, 79, 112, 0.08) 10px,
      rgba(255, 255, 255, 0.65) 10px,
      rgba(255, 255, 255, 0.65) 20px
    );
}

.cms-card-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 50%),
    repeating-linear-gradient(
      45deg,
      rgba(29, 79, 112, 0.12) 0,
      rgba(29, 79, 112, 0.12) 8px,
      rgba(255, 255, 255, 0.75) 8px,
      rgba(255, 255, 255, 0.75) 16px
    );
}

.cms-card-placeholder--wide {
  border-radius: 0;
}

.cms-article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.5vw, 2rem);
}

.cms-article__top {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.cms-article__hero {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(121, 144, 160, 0.35);
  background: #f3f7fa;
}

.cms-article__hero img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  display: block;
}

.cms-article__hero.is-empty {
  display: none;
}

.cms-article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cms-article__date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cms-article__content {
  color: var(--text);
  line-height: 1.58;
}

.cms-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.cms-article__content .article-gallery a {
  height: 170px;
}

.cms-article__content .article-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

@media (max-width: 700px) {
  .cms-article__content .article-gallery a {
    height: 130px;
  }
}

.cms-article__content table {
  width: 100%;
  border-collapse: collapse;
}

.cms-article__content td,
.cms-article__content th {
  border: 1px solid var(--line);
  padding: 0.5rem;
}

/* ===== Lazy Loading Styles ===== */

/* Стили для изображений с lazy loading */
img[loading="lazy"] {
  background-color: var(--panel-soft);
}

/* Анимация при загрузке изображения */
img.lazy-loaded {
  animation: fadeInImage 0.3s ease-in-out;
}

@keyframes fadeInImage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Стиль для изображений с ошибкой загрузки */
img.image-error {
  background-color: #f5f5f5;
  border: 1px dashed var(--line);
  opacity: 0.6;
}

/* ===== Fallback UI Styles ===== */

/* Skeleton Loaders */
.skeleton-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--panel-soft) 0%,
    #f0f4f8 50%,
    var(--panel-soft) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.skeleton-title {
  width: 100%;
  height: 1.2rem;
}

.skeleton-text {
  width: 100%;
  height: 0.9rem;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.95;
  }
}

/* Error State */
.error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.8) 0%, rgba(254, 248, 245, 0.8) 100%);
  border: 1px dashed #e8b4b4;
  border-radius: var(--radius);
  color: #6b4a4a;
}

.error-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #d63a2a;
}

.error-text {
  margin: 0 0 1.2rem;
  color: #7a5a5a;
  font-size: 0.95rem;
}

.error-retry-btn {
  padding: 0.6rem 1.4rem;
  border: 1px solid #d63a2a;
  border-radius: 8px;
  background: #d63a2a;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.error-retry-btn:hover {
  background: #b52920;
  border-color: #b52920;
  transform: translateY(-2px);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 2rem;
  text-align: center;
  background: var(--panel-soft);
  border: 1px solid rgba(121, 144, 160, 0.2);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.empty-title {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.empty-text {
  margin: 0;
  font-size: 0.95rem;
}

/* Noscript Fallback */
noscript {
  display: block;
}

.noscript-warning {
  background: #fef3f3;
  border: 1px solid #d63a2a;
  border-radius: 8px;
  padding: 1.2rem;
  margin: 1rem 0;
  color: #6b4a4a;
  text-align: center;
}

.noscript-warning strong {
  color: #d63a2a;
  display: block;
  margin-bottom: 0.4rem;
}
