/* =========================================================================
   ГГЦП — ДИЗАЙН-СИСТЕМА
   Акцент: #E64213 · Основной: #1A1A1A · Вторичный: #4E453A · Шрифт: Manrope
   ========================================================================= */

:root {
  --accent:        #E64213;
  --accent-600:    #C5360F;
  --accent-700:    #A82C0A;
  --accent-soft:   #FEF1EC;
  --accent-glow:   rgba(230, 66, 19, 0.28);

  --ink:        #1A1A1A;
  --ink-2:      #2C2C2C;
  --slate:      #4E453A;
  --slate-2:    #8A8076;
  --line:       #E8E3DC;
  --line-2:     #F2EEE9;
  --paper:      #FFFFFF;
  --paper-2:    #F7F5F2;
  --paper-3:    #EFEAE3;

  --shadow-sm:  0 1px 2px rgba(26,26,26,.04), 0 1px 3px rgba(26,26,26,.06);
  --shadow-md:  0 6px 24px rgba(26,26,26,.08);
  --shadow-lg:  0 20px 60px rgba(26,26,26,.12);
  --shadow-accent: 0 12px 30px rgba(230,66,19,.26);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --gallery-gutter: clamp(16px, 4vw, 60px);
  --section-y: clamp(64px, 9vw, 130px);

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --h1:   clamp(2.1rem, 1.2rem + 4.2vw, 4.4rem);
  --h2:   clamp(1.7rem, 1.1rem + 2.6vw, 3rem);
  --h3:   clamp(1.25rem, 1rem + 1vw, 1.7rem);
  --lead: clamp(1.05rem, 1rem + .4vw, 1.3rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 80px;
}
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #1A1A1A;
}
/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.no-anim, html.no-anim * { scroll-behavior: auto !important; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); letter-spacing: -.01em; }

/* ---------- Layout ---------- */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
:where(section[id]) { scroll-margin-top: 84px; }
.section--paper { background: var(--paper-2); }
.section--dark  { background: var(--ink); color: #DDE3DF; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-700);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.section--dark .eyebrow { color: var(--accent); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 18px; font-size: var(--lead); color: var(--slate); }
.section--dark .section-head .lead { color: #A9A29B; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; font-size: .875rem; border-radius: var(--r-pill);
  font-weight: 700; letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary   { background: var(--accent); color: var(--paper); box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--accent-600); transform: translateY(-2px);
                      box-shadow: 0 16px 36px rgba(230,66,19,.34); }
.btn--dark      { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--ghost     { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light     { background: #fff; color: var(--ink); }
.btn--on-dark   { border: 1.5px solid rgba(255,255,255,.22); color: #fff; }
.btn--on-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--block     { width: 100%; }
.btn--lg        { padding: 18px 36px; font-size: 1.05rem; }

/* =========================================================================
   HEADER
   ========================================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, height .3s;
}
.header__inner { display: flex; align-items: center; gap: 28px; width: 100%; }
.header.is-scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: var(--shadow-sm); height: 68px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 42px; width: auto; transition: height .3s; }
.header.is-scrolled .logo img { height: 36px; }
.logo .logo--dark { display: none; }
.header.is-scrolled .logo .logo--light { display: none; }
.header.is-scrolled .logo .logo--dark  { display: block; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a {
  position: relative; padding: 10px 12px;
  font-size: .9rem; font-weight: 600; color: #fff;
  border-radius: var(--r-sm); transition: color .2s, background .2s;
  white-space: nowrap;
}
.header.is-scrolled .nav a { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.burger {
  display: none; width: 46px; height: 46px; border-radius: var(--r-sm);
  place-items: center; background: rgba(255,255,255,.14);
}
.header.is-scrolled .burger { background: var(--paper-2); }
.burger span {
  display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px; position: relative;
  color: #fff; transition: .3s;
}
.header.is-scrolled .burger span { color: var(--ink); }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 2px; background: currentColor;
  border-radius: 2px; transition: .3s;
}
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after  { top: 0; transform: rotate(-45deg); }
/* ============ DOCUMENTS ============ */
.documents-section {
    background: var(--paper, #F7F5F2);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 56px;
}

.doc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 26px 22px;
    background: #fff;
    border: 1px solid var(--line, #E8E3DC);
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    transition: transform .35s cubic-bezier(.2,.8,.2,1),
                box-shadow .35s ease,
                border-color .35s ease;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--accent, #E64213);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
}

.doc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -20px rgba(26,26,26,.18);
    border-color: transparent;
}

.doc-card:hover::before {
    transform: scaleX(1);
}

.doc-card__icon {
    position: relative;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--accent, #E64213);
    background: var(--accent-soft, #FEF1EC);
    border-radius: 14px;
    flex-shrink: 0;
}

.doc-card__icon svg {
    width: 26px;
    height: 26px;
}

.doc-card__ext {
    position: absolute;
    bottom: -8px;
    right: -8px;
    padding: 2px 7px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .05em;
    color: #fff;
    background: var(--slate, #4E453A);
    border-radius: 6px;
    border: 2px solid #fff;
}

.doc-card__body {
    flex: 1;
}

.doc-card__body h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink, #1A1A1A);
}

.doc-card__body p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.55;
    color: var(--slate-2, #8A8076);
}

.doc-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px dashed var(--line, #E8E3DC);
}

.doc-card__size {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--slate-2, #8A8076);
}

.doc-card__download {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--slate, #4E453A);
    background: var(--paper, #F7F5F2);
    border-radius: 50%;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}

.doc-card__download svg {
    width: 16px;
    height: 16px;
}

.doc-card:hover .doc-card__download {
    color: #fff;
    background: var(--accent, #E64213);
    transform: translateY(2px);
}

/* Тёмная тема (если секция внутри .section--dark) */
.section--dark .doc-card {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.1);
}

.section--dark .doc-card__body h3 { color: #fff; }
.section--dark .doc-card__body p  { color: rgba(255,255,255,.55); }
.section--dark .doc-card__foot    { border-color: rgba(255,255,255,.12); }
.section--dark .doc-card__download {
    color: #fff;
    background: rgba(255,255,255,.08);
}

@media (max-width: 640px) {
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 36px;
    }
    .doc-card { padding: 22px 20px 18px; }
}
/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  padding-top: var(--header-h);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img, .hero__bg video { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,12,10,.62) 0%, rgba(15,12,10,.46) 40%, rgba(15,12,10,.82) 100%),
    radial-gradient(120% 90% at 80% 10%, rgba(230,66,19,.22), transparent 55%);
}
.hero__inner { padding-block: clamp(48px, 8vw, 110px); max-width: 880px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  font-size: .85rem; font-weight: 600; margin-bottom: 26px;
}
.hero__badge b {
  background: var(--accent); color: #fff;
  padding: 4px 11px; border-radius: var(--r-pill); font-weight: 800;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: 24px; font-size: var(--lead); max-width: 56ch; color: rgba(255,255,255,.86); }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; max-width: 760px;
}
.hero__stat .num {
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.4rem);
  font-weight: 800; letter-spacing: -.03em;
  color: #fff; white-space: nowrap;
}
.hero__stat .cap { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: 4px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: grid; place-items: center; gap: 6px; opacity: .7;
}
.scroll-hint .mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.6);
  border-radius: 14px; position: relative;
}
.scroll-hint .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; background: #fff; border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  40%  { opacity: 1; }
  80%  { opacity: 0; transform: translate(-50%, 10px); }
  100% { opacity: 0; }
}

/* =========================================================================
   ABOUT / HISTORY
   ========================================================================= */
.about__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; object-fit: cover;
}
.about__badge {
  position: absolute; left: -22px; bottom: -22px;
  background: var(--accent); color: #fff;
  padding: 22px 26px; border-radius: var(--r-md);
  box-shadow: var(--shadow-accent); max-width: 230px;
}
.about__badge .big { font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.about__badge .small { font-size: .9rem; font-weight: 600; margin-top: 6px; }
.about p { color: var(--slate); margin-top: 18px; }
.about p strong { color: var(--ink); font-weight: 700; }
.about__values { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-700);
  font-weight: 700; font-size: .9rem;
}
.chip svg { width: 15px; height: 15px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 5vw, 64px);
}
.stat-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 26px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.stat-card .num {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 800; letter-spacing: -.03em;
  color: var(--accent-700);
}
.stat-card .cap { color: var(--slate); margin-top: 6px; font-size: .95rem; }

/* =========================================================================
   HELP — попап открывается по кнопке
   ========================================================================= */
.help-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.help-step-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
  overflow: hidden;
}
.help-step-card::before {
  content: "";
  position: absolute; inset: auto -40px -40px auto;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(230,66,19,.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.help-step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.help-step-card__num {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-700);
  letter-spacing: -.03em;
  margin-bottom: 16px;
  opacity: .9;
}
.help-step-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.help-step-card p { color: var(--slate); font-size: .92rem; }

.help-cta {
  margin-top: clamp(40px, 5vw, 60px);
  display: flex; justify-content: center;
}
.help-cta__btn {
  padding: 20px 44px;
  font-size: 1rem;
  gap: 12px;
}
.help-cta__btn svg { transition: transform .4s var(--ease); }

.popup--help { max-width: 560px; }

/* =========================================================================
   PROGRAMS
   ========================================================================= */
.products__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.pcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard__media {
  aspect-ratio: 4/3; background: linear-gradient(160deg, var(--paper-3), var(--paper-2));
  display: grid; place-items: center; padding: 22px; overflow: hidden;
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.07); }
.pcard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pcard__tag {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-700);
}
.pcard h3 { font-size: 1.18rem; margin-top: 8px; }
.pcard p { font-size: .92rem; color: var(--slate); margin-top: 10px; flex: 1; }
.pcard__foot { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.pcard__arrow {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2);
  transition: background .25s, transform .25s;
}
.pcard__arrow svg { width: 16px; height: 16px; transition: transform .25s; }
.pcard:hover .pcard__arrow { background: var(--accent); color: #fff; }
.pcard:hover .pcard__arrow svg { transform: translateX(2px); }

/* =========================================================================
   SUPPORT
   ========================================================================= */
.support { background: var(--ink); color: #DDE3DF; }
.support__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
  align-items: stretch;
}
.support-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: background .3s, transform .3s var(--ease);
  min-height: 320px;
}
.support-card:hover { background: rgba(230,66,19,.08); transform: translateY(-4px); }
.support-card.is-accent { background: var(--accent); border-color: var(--accent); }
.support-card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: rgba(230,66,19,.14);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.support-card.is-accent .support-card__icon { background: rgba(255,255,255,.2); }
.support-card__icon svg { width: 26px; height: 26px; stroke: var(--accent); }
.support-card.is-accent .support-card__icon svg { stroke: #fff; }
.support-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.support-card p { color: #A9A29B; font-size: .95rem; margin-bottom: 22px; }
.support-card.is-accent p { color: rgba(255,255,255,.9); }
.support-card__btn { margin-top: auto; align-self: flex-start; }

.support__req {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; padding: 28px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.support__req-item span { display: block; font-size: .8rem; opacity: .6; margin-bottom: 4px; }
.support__req-item strong { font-size: .98rem;}

/* =========================================================================
   TEAM — премиум-карточки
   ========================================================================= */
.team-swiper { overflow: hidden; padding: 20px 4px 20px; }
.team-swiper .swiper-slide { height: auto; display: flex; }
.team-swiper .swiper-slide > .team-card { width: 100%; }

.team-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 40px 24px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
  overflow: hidden;
}
.team-card::before {
  content: "";
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(230,66,19,.1), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.team-card:hover::before { opacity: 1; }

/* Бейдж роли */
.team-card__badge {
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-accent);
  white-space: nowrap;
}

/* Фото с обводкой */
.team-photo-ring {
  position: relative;
  width: 170px; height: 170px;
  margin: 20px auto 20px;
  flex-shrink: 0;
}
.team-photo-ring__inner {
  position: relative;
  width: 100%; height: 100%;
  padding: 5px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1.5px var(--line) inset;
  transition: all .4s var(--ease);
  z-index: 1;
}
.team-photo-ring__inner::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-700) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.team-card:hover .team-photo-ring__inner::before { opacity: 1; }
.team-card:hover .team-photo-ring__inner {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(230,66,19,.22);
}
.team-photo-ring__glow {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,66,19,.3), transparent 70%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: 0;
}
.team-card:hover .team-photo-ring__glow { opacity: 1; }

.team-photo-ring .team-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
}
.team-photo--placeholder {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--paper-3));
  color: var(--accent);
  font-size: 4rem; font-weight: 800;
}

/* Тело карточки */
.team-card__body {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.team-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -.01em;
}
.team-position {
  color: var(--slate);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 28ch;
  margin: 0 auto;
}

/* Плашка «В команде с» */
.team-since {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-700);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.team-since svg {
  width: 12px; height: 12px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* Соцсети */
.team-socials {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  width: 100%;
}
.team-socials__link {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2);
  color: var(--ink);
  transition: all .25s var(--ease);
}
.team-socials__link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(230,66,19,.35);
}
.team-socials__link svg { width: 16px; height: 16px; }

/* Навигация слайдера */
.team-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px auto 0;
  width: fit-content;
  max-width: 100%;
}
.team-nav__btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  transition: all .25s var(--ease);
  flex-shrink: 0;
}
.team-nav__btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.team-nav__btn.swiper-button-disabled { opacity: .35; cursor: not-allowed; }
.team-pagination {
  display: flex; gap: 8px; align-items: center;
  justify-content: center;
}
.team-pagination .swiper-pagination-bullet {
  width: 10px; height: 10px; background: var(--line); opacity: 1;
  border-radius: 50%; transition: all .25s var(--ease);
}
.team-pagination .swiper-pagination-bullet-active {
  width: 32px; border-radius: 100px; background: var(--accent);
}

/* =========================================================================
   FRIENDS
   ========================================================================= */
.friends-swiper { padding: 10px 0 20px; overflow: hidden; }
.friends-swiper .swiper-slide { height: auto; }
.friend-item {
  display: flex; align-items: center; justify-content: center;
  height: 160px;
  padding: 32px 28px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: all .3s var(--ease);
  filter: grayscale(1); opacity: .6;
  width: 100%;
}
.friend-item:hover {
  filter: none; opacity: 1;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.friend-item img {
  max-height: 90px;
  max-width: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.friend-item__placeholder {
  display: grid; place-items: center;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--paper-3));
  color: var(--accent-700);
  font-weight: 800; font-size: 1.6rem;
  letter-spacing: .02em;
}

/* =========================================================================
   GALLERY — 2 на десктопе, 1 на мобилке
   ========================================================================= */
.gallery-section { overflow: hidden; }
.gallery-swiper {
  padding: 40px 0 20px;
  overflow: hidden;
}
.gallery-swiper .swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
  padding: 0 8px;
}
.gallery-swiper .swiper-slide:first-child { padding-left: var(--gallery-gutter); }
.gallery-swiper .swiper-slide:last-child  { padding-right: var(--gallery-gutter); }

.gallery-item {
  display: block; position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  padding: 0; border: 0;
}
.gallery-item:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(26,26,26,.75) 100%),
    radial-gradient(120% 100% at 50% 50%, transparent 40%, rgba(230,66,19,.15) 100%);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 22px; color: #fff;
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__zoom {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(230,66,19,.5);
  transform: translateY(8px);
  transition: transform .3s var(--ease);
}
.gallery-item:hover .gallery-item__zoom { transform: translateY(0); }
.gallery-item__zoom svg { width: 20px; height: 20px; color: #fff; }
.gallery-item__counter {
  font-weight: 800; font-size: 1.4rem;
  letter-spacing: -.02em; line-height: 1;
}
.gallery-item__counter small {
  font-size: .65em; opacity: .55; font-weight: 600; margin-left: 4px;
}

.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 26px auto 0;
  width: fit-content;
  max-width: 100%;
}
.gallery-nav__btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  transition: all .25s var(--ease);
  flex-shrink: 0;
}
.gallery-nav__btn:hover {
  background: var(--accent); border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(230,66,19,.4);
}
.gallery-nav__btn.swiper-button-disabled { opacity: .35; cursor: not-allowed; }
.gallery-pagination {
  display: flex; gap: 8px; align-items: center;
  justify-content: center;
}
.gallery-pagination .swiper-pagination-bullet {
  width: 10px; height: 10px;
  background: rgba(255,255,255,.25);
  opacity: 1; border-radius: 50%;
  transition: all .25s var(--ease);
}
.gallery-pagination .swiper-pagination-bullet-active {
  width: 32px; border-radius: 100px; background: var(--accent);
}

/* =========================================================================
   FULLSCREEN LIGHTBOX
   ========================================================================= */
.grush-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.grush-lightbox.is-open { opacity: 1; visibility: visible; }

.grush-lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(10,8,7,.96);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}
.grush-lightbox__header {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 48px);
  color: #fff;
}
.grush-lightbox__counter {
  font-weight: 800; font-size: 1.05rem;
  letter-spacing: -.01em;
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}
.grush-lightbox__counter small { opacity: .5; font-size: .8em; font-weight: 600; }
.grush-lightbox__close {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  transition: all .25s var(--ease);
}
.grush-lightbox__close:hover {
  background: var(--accent); border-color: var(--accent);
  transform: rotate(90deg);
}
.grush-lightbox__close svg { width: 22px; height: 22px; }

.grush-lightbox__stage {
  position: relative; z-index: 2;
  overflow: hidden;
  display: grid; place-items: center;
  padding: 0 clamp(80px, 12vw, 160px);
}
.grush-lightbox.is-open .grush-lightbox__stage {
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.grush-lightbox.is-open .grush-lightbox__stage:active {
  cursor: grabbing;
}

.grush-lightbox__slide {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0;
  transform: scale(.94);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.grush-lightbox__slide.is-active {
  opacity: 1; transform: scale(1);
  pointer-events: auto;
  position: relative;
}
.grush-lightbox__slide img {
  max-width: 100%;
  max-height: calc(100vh - 260px);
  width: auto;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  object-fit: contain;
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  pointer-events: none;
}
.grush-lightbox__slide figcaption {
  margin-top: 16px;
  color: rgba(255,255,255,.85);
  font-size: .95rem; font-weight: 600;
  text-align: center; max-width: 60ch;
  pointer-events: none;
}

.grush-lightbox__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: all .3s var(--ease);
  cursor: pointer;
}
.grush-lightbox__arrow:hover {
  background: var(--accent); border-color: var(--accent);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 12px 32px rgba(230,66,19,.5);
}
.grush-lightbox__arrow svg { width: 28px; height: 28px; }
.grush-lightbox__arrow--prev { left: clamp(12px, 3vw, 40px); }
.grush-lightbox__arrow--next { right: clamp(12px, 3vw, 40px); }

.grush-lightbox__thumbs {
  position: relative; z-index: 3;
  display: flex; gap: 10px;
  justify-content: center; align-items: center;
  padding: 20px clamp(20px, 4vw, 48px) 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.grush-lightbox__thumbs::-webkit-scrollbar { display: none; }
.grush-lightbox__thumb {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: .4;
  transition: all .25s var(--ease);
  cursor: pointer;
  padding: 0; background: none;
}
.grush-lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.grush-lightbox__thumb:hover { opacity: .8; }
.grush-lightbox__thumb.is-active {
  border-color: var(--accent); opacity: 1;
  transform: scale(1.06);
}

/* =========================================================================
   NEWS
   ========================================================================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.news-thumb { display: block; aspect-ratio: 3/2; overflow: hidden; background: var(--paper-2); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-thumb:hover img { transform: scale(1.05); }
.news-thumb--placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--paper-3), var(--line));
}
.news-body { padding: 22px; }
.news-date {
  display: inline-block; font-size: .78rem; font-weight: 700;
  color: var(--accent-700); letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 10px;
}
.news-card h3 { font-size: 1.18rem; line-height: 1.3; }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { color: var(--slate); font-size: .92rem; margin-top: 10px; }
.news-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-700); font-weight: 700; font-size: .9rem;
  margin-top: 14px;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--ink); color: #98A29B; padding-top: clamp(56px, 7vw, 90px); }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand img { height: 44px; width: auto; }
.footer__brand p { margin-top: 20px; max-width: 34ch; font-size: .95rem; line-height: 1.7; }
.footer__brand .socials { display: flex; gap: 12px; margin-top: 24px; }
.footer__brand .socials a {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.06);
  display: grid; place-items: center;
  transition: background .25s, transform .25s;
}
.footer__brand .socials a:hover { background: var(--accent); transform: translateY(-3px); color: #fff; }
.footer__brand .socials svg { width: 20px; height: 20px; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; font-weight: 700; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { font-size: .94rem; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__contacts li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: .94rem; }
.footer__contacts svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; opacity: .7; }
.footer__contacts a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-block: 26px; font-size: .85rem;
}
.footer__bottom a:hover { color: var(--accent); }

/* =========================================================================
   MOBILE MENU
   ========================================================================= */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink); color: #fff;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
  visibility: hidden;
}
body.menu-open .mobile-menu { transform: translateX(0); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu nav a {
  padding: 16px 0; font-size: 1.3rem; font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu nav a svg { width: 18px; height: 18px; opacity: .5; }
.mobile-menu__foot { margin-top: auto; padding-top: 30px; }
.mobile-menu__foot .btn { margin-bottom: 12px; }
.mobile-menu__foot .row { display: flex; gap: 12px; margin-top: 16px; }

/* =========================================================================
   FORMS
   ========================================================================= */
.form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--shadow-md);
}
.form h3 { font-size: 1.4rem; }
.form p.sub { color: var(--slate); margin-top: 8px; font-size: .95rem; }
.field { margin-top: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--slate); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--paper-2);
  transition: border-color .2s, background .2s;
  font-size: 1rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.field textarea { resize: vertical; min-height: 96px; }
.form .btn { margin-top: 20px; }
.form__note { margin-top: 14px; font-size: .82rem; color: var(--slate-2); text-align: center; }
.form__status {
  margin-top: 14px; padding: 12px 16px; border-radius: var(--r-sm);
  font-weight: 600; font-size: .9rem; display: none;
}
.form__status.is-ok  { display: block; background: var(--accent-soft); color: var(--accent-700); }
.form__status.is-err { display: block; background: #FDECEC; color: #C0392B; }

/* =========================================================================
   COOKIE BANNER
   ========================================================================= */
.cookie-banner {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 20px;
  z-index: 9995; width: fit-content; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  transform: translateY(calc(100% + var(--gutter) + 10px));
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner__text { font-size: .9rem; line-height: 1.5; color: var(--slate); }
.cookie-banner__text a { color: var(--accent-700); text-decoration: underline; }
.cookie-banner__btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .9rem;
  padding: 11px 24px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-accent);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.cookie-banner__btn:hover { background: var(--accent-600); transform: translateY(-1px); }
@media (max-width: 640px) {

  .cookie-banner__text {
    font-size: 0.65rem;

}
.cookie-banner__btn {
    font-size: .65rem;
  }
}
/* =========================================================================
   POPUP
   ========================================================================= */
.popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,26,26,.7);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
  padding: 16px;
}
.popup-overlay.is-visible { opacity: 1; visibility: visible; }
.popup {
  position: relative; max-width: 520px; width: 100%;
  background: var(--paper); border-radius: var(--r-lg);
  padding: 40px 36px 36px; box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.96);
  transition: transform .4s var(--ease);
  max-height: 90vh; overflow-y: auto;
}
.popup-overlay.is-visible .popup { transform: translateY(0) scale(1); }
.popup__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--slate);
  transition: all .2s; cursor: pointer;
}
.popup__close:hover { background: var(--paper-3); color: var(--ink); transform: rotate(90deg); }
.popup__title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.popup__subtitle { font-size: .95rem; color: var(--slate); margin-bottom: 24px; line-height: 1.6; }
body.popup-open { overflow: hidden; }

/* =========================================================================
   REVEAL
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .scroll-hint .mouse::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1100px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grush-lightbox__arrow { width: 60px; height: 60px; }
  .grush-lightbox__arrow svg { width: 24px; height: 24px; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: grid; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .support__grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; }
  .about__badge { left: 0; }
  .support__grid, .news-grid { grid-template-columns: 1fr; }
  .team-photo-ring { width: 140px; height: 140px; }

  /* Gallery: 1 слайд на мобилке */
  .gallery-swiper .swiper-slide { padding: 0 6px; }
  .gallery-swiper .swiper-slide:first-child { padding-left: 16px; }
  .gallery-swiper .swiper-slide:last-child  { padding-right: 16px; }
  .gallery-item { aspect-ratio: 4/3; border-radius: var(--r-md); }
  .gallery-item__overlay { padding: 16px; }
  .gallery-item__counter { font-size: 1.1rem; }

  /* Lightbox */
  .grush-lightbox__stage { padding: 0 16px; }
  .grush-lightbox__slide img { max-height: calc(100vh - 220px); }
  .grush-lightbox__arrow { width: 48px; height: 48px; }
  .grush-lightbox__arrow svg { width: 20px; height: 20px; }
  .grush-lightbox__arrow--prev { left: 8px; }
  .grush-lightbox__arrow--next { right: 8px; }
  .grush-lightbox__thumb { width: 48px; height: 48px; }
  .grush-lightbox__counter { padding: 8px 14px; font-size: .9rem; }
  .grush-lightbox__close { width: 44px; height: 44px; }
}

@media (max-width: 460px) {
  .products__grid, .stats { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__cta .btn { width: 100%; }
  .hero__lead {font-size:.96rem;margin-top: 10px;}
  .hero__badge{margin-bottom: 10px;font-size: .65rem;}
  .hero__cta {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}
.hero .btn--lg {
    padding: 15px 0;
    font-size: .75rem;
}
.hero__stats {
    margin-top: 20px;}
    .hero__inner{
      padding-inline:20px;
      padding-block:0;
    }
}


/* =========================================================================
   BLOG ARCHIVE
   ========================================================================= */
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(40px, 5vw, 64px);
}
.blog-pagination .page-numbers {
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  transition: all .25s var(--ease);
}
.blog-pagination .page-numbers:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.blog-pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.blog-empty {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) 0;
}
.blog-empty h2 { margin-bottom: 12px; }
.blog-empty .lead { color: var(--slate); margin-bottom: 24px; }

/* Featured post в архиве — на всю ширину */
.news-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  margin-bottom: clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
}
.news-card--featured .news-thumb {
  aspect-ratio: auto;
  height: 100%;
  min-height: 320px;
}
.news-card--featured .news-body {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-card--featured h3 {
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  margin: 12px 0;
}
.news-card--featured p { font-size: 1rem; margin-bottom: 18px; }

@media (max-width: 720px) {
  .news-card--featured {
    grid-template-columns: 1fr;
  }
  .news-card--featured .news-thumb {
    min-height: 220px;
  }
}

/* =========================================================================
   POST SINGLE
   ========================================================================= */
.post-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.post-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
}
.post-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.post-hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,12,10,.55) 0%, rgba(15,12,10,.75) 60%, rgba(15,12,10,.92) 100%),
    radial-gradient(120% 90% at 80% 10%, rgba(230,66,19,.22), transparent 55%);
}
.post-hero__inner { position: relative; z-index: 2;}
.post-breadcrumbs {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.post-breadcrumbs a { color: rgba(255,255,255,.85); }
.post-breadcrumbs a:hover { color: var(--accent); }
.post-breadcrumbs span[aria-hidden] { opacity: .5; }

.post-hero h1 { color: #fff; margin-top: 14px; max-width: 24ch; }

.post-hero__lead {
  margin-top: 18px;
  font-size: var(--lead);
  color: rgba(255,255,255,.85);
  max-width: 56ch;
  line-height: 1.55;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
}
.post-meta__dot { opacity: .5; }

/* Layout контента + сайдбар */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* Стили контента WYSIWYG */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.8em;
  color: var(--ink);
  letter-spacing: -.02em;
}
.entry-content h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.entry-content h3 { font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); }
.entry-content a {
  color: var(--accent-700);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color .2s;
}
.entry-content a:hover { color: var(--accent); }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content ul li { list-style: disc; }
.entry-content ol li { list-style: decimal; }
.entry-content ul li + li,
.entry-content ol li + li { margin-top: .4em; }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 22px;
  margin: 1.6em 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--slate);
}
.entry-content img,
.entry-content figure img {
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.entry-content figcaption {
  font-size: .85rem;
  color: var(--slate-2);
  text-align: center;
  margin-top: 10px;
}
.entry-content code {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: .9em;
}
.entry-content pre {
  background: var(--ink);
  color: #EFEAE3;
  padding: 20px 22px;
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: .9rem;
  line-height: 1.55;
}
.entry-content pre code {
  background: none; border: none; padding: 0; color: inherit;
}
.entry-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.entry-content th { background: var(--paper-2); font-weight: 700; }

.post-pages {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-pages a,
.post-pages > span {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 600;
}

/* Сайдбар */
.post-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 20px;
}
.post-sidebar__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.post-sidebar__card h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.post-sidebar__card p {
  font-size: .92rem;
  color: var(--slate);
  margin-bottom: 16px;
}
.post-sidebar__card--accent {
  background: var(--ink);
  border-color: var(--ink);
  color: #DDE3DF;
}
.post-sidebar__card--accent h3 { color: #fff; }
.post-sidebar__card--accent p { color: #A9A29B; }

/* Share */
.post-share { display: flex; gap: 10px; }
.post-share a {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2);
  color: var(--ink);
  transition: all .25s var(--ease);
}
.post-share a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(230,66,19,.32);
}

/* Related list в сайдбаре */
.post-related { display: grid; gap: 14px; }
.post-related li a {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
  transition: color .2s;
}
.post-related li:last-child a { border-bottom: none; padding-bottom: 0; }
.post-related li a:hover .post-related__title { color: var(--accent-700); }
.post-related__date {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-700);
}
.post-related__title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  transition: color .2s;
}

.post-related-section { margin-top: 0; }

/* Responsive */
@media (max-width: 980px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .post-hero { min-height: 50vh; }
}

/* Цветовые обёртки из редактора */
.entry-content .accent {
  color: var(--accent);
  font-weight: 600;
}
.entry-content .muted {
  color: var(--slate-2);
}
.entry-content .mark {
  background: var(--accent-soft);
  color: var(--accent-700);
  padding: 2px 6px;
  border-radius: 4px;
}
.entry-content .highlight {
  background: #FDE2D8;
  padding: 2px 6px;
  border-radius: 4px;
}
.entry-content .dark {
  background: var(--ink);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
}

