/*
 * FSEng Layout Styles
 * Header, Footer, News Grid, Team, Forms, Buttons, Article
 * Reference: firepoint.agency structure + fseng.pdf palette
 */

/* ── Page-level resets (override parent theme width constraints) ── */

.fs-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.fs-section-products,
.fs-catalog {
  width: 100%;
  max-width: none;
}

/* ── Buttons ─────────────────────────────────────────── */

.fs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fs-font-mono);
  font-size: var(--fs-text-label);
  letter-spacing: var(--fs-tracking-label);
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 999px;           /* pill shape — reference: firepoint */
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}

.fs-btn--primary {
  background: var(--fs-text);
  color: var(--fs-bg);
  border-color: var(--fs-text);
}

.fs-btn--primary:hover {
  background: transparent;
  color: var(--fs-text);
}

.fs-btn--outline {
  background: transparent;
  color: var(--fs-text);
  border-color: var(--fs-border-light);
}

.fs-btn--outline:hover {
  border-color: var(--fs-text);
}

/* ── Site Header ─────────────────────────────────────── */

.fs-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fs-bg);
  border-bottom: 1px solid var(--fs-border);
}

.fs-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--fs-header-height);
}

.fs-site-header__logo,
.fs-site-header__logo-text {
  font-family: var(--fs-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--fs-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.fs-site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fs-site-header__logo-img {
  display: block;
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.fs-site-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fs-site-nav__list a {
  font-family: var(--fs-font-mono);
  font-size: var(--fs-text-label);
  letter-spacing: var(--fs-tracking-label);
  text-transform: uppercase;
  color: var(--fs-text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.fs-site-nav__list a:hover,
.fs-site-nav__list a.current {
  color: var(--fs-text);
}

.fs-site-header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.fs-site-header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fs-text);
}

@media (max-width: 768px) {
  .fs-site-header__burger { display: flex; }
  .fs-site-nav { display: none; }
  .fs-site-nav.is-open { display: block; position: absolute; top: var(--fs-header-height); left: 0; right: 0; background: var(--fs-bg); border-top: 1px solid var(--fs-border); padding: 24px; }
  .fs-site-nav__list { flex-direction: column; gap: 20px; align-items: flex-start; }
  .fs-site-nav__list a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ── Header right cluster ────────────────────────────── */

.fs-site-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Language Switcher ───────────────────────────────── */

.fs-lang-switcher {
  position: relative;
}

.fs-lang-switcher__toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--fs-border);
  color: var(--fs-text-secondary);
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  border-radius: 2px;
}

.fs-lang-switcher__toggle:hover {
  border-color: var(--fs-text-secondary);
  color: var(--fs-text);
}

.fs-lang-switcher__caret {
  transition: transform 0.15s;
}

.fs-lang-switcher__toggle[aria-expanded="true"] .fs-lang-switcher__caret {
  transform: rotate(180deg);
}

.fs-lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--fs-bg-card);
  border: 1px solid var(--fs-border);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 120px;
  z-index: 200;
}

.fs-lang-switcher__dropdown.is-open {
  display: block;
}

.fs-lang-switcher__dropdown li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--fs-text-secondary);
  text-decoration: none;
  font-family: var(--fs-font-mono);
  font-size: var(--fs-text-label);
  letter-spacing: var(--fs-tracking-label);
  transition: color 0.15s, background 0.15s;
}

.fs-lang-switcher__dropdown li a:hover,
.fs-lang-switcher__dropdown li.is-active a {
  color: var(--fs-text);
  background: var(--fs-bg-card-alt);
}

.fs-lang-switcher__name {
  font-family: var(--fs-font-body);
  letter-spacing: 0;
  color: var(--fs-text-secondary);
  font-size: 11px;
}

/* ── Site Footer ─────────────────────────────────────── */

.fs-site-footer {
  border-top: 1px solid var(--fs-border);
  margin-top: auto;
}

.fs-site-footer__inner { padding: var(--fs-gap-lg) 0 var(--fs-gap-md); }

.fs-site-footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--fs-gap-lg);
  padding-bottom: var(--fs-gap-md);
  border-bottom: 1px solid var(--fs-border);
  margin-bottom: var(--fs-gap-md);
}

@media (max-width: 768px) {
  .fs-site-footer__top { grid-template-columns: 1fr; gap: var(--fs-gap-md); }
}

.fs-site-footer__nav {
  display: flex;
  gap: var(--fs-gap-lg);
}

.fs-site-footer__nav-col { display: flex; flex-direction: column; gap: 12px; }

.fs-site-footer__nav-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.fs-site-footer__nav-col a {
  font-size: var(--fs-text-body);
  color: var(--fs-text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.fs-site-footer__nav-col a:hover { color: var(--fs-text); }

.fs-site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fs-site-footer__bottom a {
  color: var(--fs-text-label);
  text-decoration: none;
  margin-left: 16px;
  transition: color 0.15s;
}

.fs-site-footer__bottom a:hover { color: var(--fs-text); }

/* ── News Grid (4-col — firepoint reference) ─────────── */

.fs-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--fs-gap-md);
}

@media (max-width: 1024px) { .fs-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .fs-news-grid { grid-template-columns: 1fr; } }

.fs-news-card { display: flex; flex-direction: column; gap: 12px; }

.fs-news-card__image-wrap { display: block; overflow: hidden; border-radius: 4px; }

.fs-news-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.fs-news-card__image-wrap:hover .fs-news-card__image { transform: scale(1.03); }

.fs-news-card__body { display: flex; flex-direction: column; gap: 6px; }

.fs-news-card__title {
  font-family: var(--fs-font-heading);
  font-size: var(--fs-text-h2);
  line-height: 1.1;
  text-transform: uppercase;
}

.fs-news-card__title a {
  color: var(--fs-text);
  text-decoration: none;
  transition: color 0.15s;
}

.fs-news-card__title a:hover { color: var(--fs-text-secondary); }

/* ── Team Grid ───────────────────────────────────────── */

.fs-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--fs-gap-md);
}

@media (max-width: 768px) { .fs-team-grid { grid-template-columns: 1fr; } }

.fs-team-card {
  background: var(--fs-bg-card);
  border: 1px solid var(--fs-border);
  overflow: hidden;
}

.fs-team-card__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
}

.fs-team-card__body { padding: 20px; }

.fs-team-card__quote {
  margin: 12px 0 0;
  font-style: italic;
  color: var(--fs-text-secondary);
  border-left: 2px solid var(--fs-accent);
  padding-left: 12px;
  font-size: var(--fs-text-body);
  line-height: 1.6;
}

/* ── Product Catalog (archive) — fseng-02.png ─────────
 * Full-width strips; last 2 products are a side-by-side pair
 * ──────────────────────────────────────────────────── */

.fs-catalog {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--fs-border);
  max-width: none;
  margin-inline: 0;
}

/* Last 2 side-by-side */
.fs-catalog__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

@media (max-width: 768px) {
  .fs-catalog__pair { grid-template-columns: 1fr; }
}

/* Последние 2 карточки рядом — выше, название крупнее (как в референсе) */
.fs-catalog__pair .fs-product-card {
  height: 200px;
}

.fs-catalog__pair .fs-product-card__name,
.fs-catalog__pair .fs-product-card__link {
  font-size: clamp(22px, 2.8vw, 38px);
  max-width: 45%;
}

/* ── Archive Header ──────────────────────────────────── */

.fs-archive-header {
  background: var(--fs-bg-deep);
  border-bottom: 1px solid var(--fs-border);
  padding: var(--fs-gap-lg) 0 var(--fs-gap-md);
  position: relative;
  overflow: hidden;
}

.fs-archive-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--fs-texture-carbon);
  pointer-events: none;
}

.fs-archive-header__inner { position: relative; z-index: 1; }
.fs-archive-header__desc { margin-top: 14px; max-width: 540px; }

/* Filter tabs on archive */
.fs-archive__tabs {
  background: var(--fs-bg-secondary);
  border-bottom: 1px solid var(--fs-border);
}

/* ── Contact Section ─────────────────────────────────── */

.fs-contact-section {
  padding: var(--fs-gap-xl) 0;
  border-top: 1px solid var(--fs-border);
}

.fs-contact-section__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--fs-gap-lg);
  align-items: start;
}

@media (max-width: 768px) {
  .fs-contact-section__inner { grid-template-columns: 1fr; }
}

.fs-contact-section__desc {
  color: var(--fs-text-secondary);
  font-size: var(--fs-text-body);
  line-height: 1.6;
  margin-top: 16px;
}

.fs-contact-section__content {
  display: flex;
  flex-direction: column;
  gap: var(--fs-gap-md);
}

.fs-contact-section__direct {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--fs-gap-lg);
  padding-top: var(--fs-gap-md);
  border-top: 1px solid var(--fs-border);
}

.fs-contact-section__email {
  font-family: var(--fs-font-heading);
  font-size: var(--fs-text-h2);
  color: var(--fs-text);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s;
  word-break: break-all;
}

.fs-contact-section__email:hover { color: var(--fs-accent); }

/* ── Form Styles ─────────────────────────────────────── */

.fs-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--fs-bg-card);
  border: 1px solid var(--fs-border);
  padding: 24px;
}

/* Split row: 2 fields side by side */
.fs-form__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch; /* both columns same height */
}

@media (max-width: 540px) {
  .fs-form__row--split { grid-template-columns: 1fr; }
}

.fs-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Inside split: label floats top, input anchors to bottom */
.fs-form__row--split .fs-form__field {
  justify-content: space-between;
}

/* Input in split row fills full remaining height */
.fs-form__row--split .fs-form__input {
  flex: 1;
  min-height: 44px;
}

.fs-form__label {
  font-family: var(--fs-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fs-text-secondary);
}

.fs-form__required {
  color: var(--fs-accent);
  margin-left: 2px;
}

.fs-form__input {
  background: var(--fs-bg);
  border: 1px solid var(--fs-border);
  border-bottom-width: 2px;
  color: var(--fs-text);
  font-family: var(--fs-font-body);
  font-size: var(--fs-text-body);
  padding: 12px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.fs-form__input::placeholder {
  color: var(--fs-text-muted);
}

.fs-form__input:focus {
  border-color: rgba(255,255,255,0.5);
  border-bottom-color: var(--fs-text);
  background: var(--fs-bg-card);
}

.fs-form__input:valid:not(:placeholder-shown) {
  border-bottom-color: rgba(255,255,255,0.4);
}

.fs-form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.fs-form__footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.fs-form__submit {
  flex-shrink: 0;
}

.fs-form__privacy {
  font-size: 11px;
  color: var(--fs-text-muted);
  line-height: 1.4;
  flex: 1;
  min-width: 140px;
}

/* ── Form notice (success / error) ───────────────────── */

.fs-form-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-left: 3px solid;
  background: var(--fs-bg-card);
}

.fs-form-notice--success {
  border-color: #4ade80;
}

.fs-form-notice--error {
  border-color: var(--fs-accent);
}

.fs-form-notice__icon {
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.fs-form-notice--success .fs-form-notice__icon { color: #4ade80; }
.fs-form-notice--error   .fs-form-notice__icon { color: var(--fs-accent); }

.fs-form-notice strong {
  display: block;
  font-family: var(--fs-font-heading);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.fs-form-notice p {
  font-size: 13px;
  color: var(--fs-text-secondary);
  margin: 0;
}

/* ── Article styles ──────────────────────────────────── */

.fs-article__header {
  background: var(--fs-bg-deep);
  border-bottom: 2px solid var(--fs-accent);
  position: relative;
  overflow: hidden;
  padding: var(--fs-gap-xl) 0 var(--fs-gap-lg);
}

.fs-article__header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--fs-texture-carbon);
  pointer-events: none;
}

.fs-article__header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--fs-container-max);
  margin-inline: auto;
  padding-inline: var(--fs-container-pad);
}

.fs-article__header-accent {
  width: 28px;
  height: 2px;
  background: var(--fs-accent);
  margin-bottom: 12px;
  margin-top: var(--fs-gap-sm);
  display: block;
}

.fs-article__header-img {
  float: right;
  width: 320px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--fs-border);
  margin-left: var(--fs-gap-lg);
  margin-bottom: var(--fs-gap-md);
  display: block;
}

@media (max-width: 768px) {
  .fs-article__header-img {
    float: none;
    width: 100%;
    aspect-ratio: 16/9;
    margin-left: 0;
    margin-bottom: var(--fs-gap-md);
  }
}

.fs-article__title {
  font-family: var(--fs-font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--fs-text);
  margin: 8px 0 0;
  clear: none;
}

.fs-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-family: var(--fs-font-mono);
  font-size: var(--fs-text-small);
  color: var(--fs-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  clear: both;
}

.fs-article__meta a {
  color: var(--fs-accent);
  text-decoration: none;
}

.fs-article__back {
  font-family: var(--fs-font-mono);
  font-size: var(--fs-text-small);
  color: var(--fs-text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
  margin-bottom: 4px;
}

.fs-article__back:hover { color: var(--fs-text); }

.fs-article__body {
  color: var(--fs-text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.fs-article__body h2,
.fs-article__body h3 {
  font-family: var(--fs-font-heading);
  color: var(--fs-text);
  text-transform: uppercase;
  margin: var(--fs-gap-md) 0 12px;
}

.fs-article__body p { margin-bottom: 16px; }

.fs-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.fs-article__body blockquote {
  border-left: 3px solid var(--fs-accent);
  padding-left: 20px;
  margin: var(--fs-gap-md) 0;
  font-style: italic;
  color: var(--fs-text-secondary);
}

.fs-article__body blockquote p { margin-bottom: 0; }

.fs-article__body a {
  color: var(--fs-accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s;
}

.fs-article__body a:hover { text-decoration-color: var(--fs-accent); }

.fs-article__tags {
  margin-top: var(--fs-gap-md);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fs-article__tags a {
  font-family: var(--fs-font-mono);
  font-size: var(--fs-text-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fs-text-secondary);
  border: 1px solid var(--fs-border);
  padding: 3px 10px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.fs-article__tags a:hover {
  border-color: var(--fs-accent);
  color: var(--fs-accent);
}

.fs-article__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--fs-border);
  padding-top: var(--fs-gap-md);
  margin-top: var(--fs-gap-lg);
}

.fs-article__nav a {
  font-family: var(--fs-font-mono);
  font-size: var(--fs-text-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fs-text-secondary);
  text-decoration: none;
  max-width: 45%;
  transition: color 0.15s;
}

.fs-article__nav a:hover { color: var(--fs-text); }

.fs-article__nav a:last-child { text-align: right; margin-left: auto; }

.fs-article__related {
  background: var(--fs-bg-secondary);
  border-top: 1px solid var(--fs-border);
  padding: var(--fs-gap-lg) 0;
}

.fs-article__related-label {
  font-family: var(--fs-font-mono);
  font-size: var(--fs-text-small);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fs-text-secondary);
  margin-bottom: var(--fs-gap-md);
}

.fs-article__content {
  max-width: 720px;
  margin-inline: auto;
  padding-top: var(--fs-gap-lg);
  padding-bottom: var(--fs-gap-xl);
}

.fs-article__nav-wrap {
  max-width: 720px;
  margin-inline: auto;
}

.fs-article__breadcrumb-sep {
  color: var(--fs-text-muted);
  margin: 0 6px;
}

/* .fs-products-list replaced by .fs-catalog (shared with archive) */

/* ── About Section ───────────────────────────────────── */

.fs-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /*height: 460px;             !* фиксируем высоту — фото обрезается overflow:hidden *!*/
  background: var(--fs-bg-secondary);
  border-top: 1px solid var(--fs-border);
}

@media (max-width: 768px) {
  .fs-about { grid-template-columns: 1fr; }
  .fs-about__image-col { order: -1; height: 300px; }
}

.fs-about__image-col {
  position: relative;
  overflow: hidden;
  height: 100%;              /* тянется до высоты секции (460px) */
}

.fs-about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.85) contrast(1.05);
}

.fs-about__content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--fs-gap-lg);
  padding-bottom: var(--fs-gap-lg);
}

.fs-about__stats {
  display: flex;
  gap: var(--fs-gap-lg);
  margin-top: var(--fs-gap-lg);
  padding-top: var(--fs-gap-md);
  border-top: 1px solid var(--fs-border);
}

@media (max-width: 480px) {
  .fs-about__stats {
    flex-wrap: wrap;
    gap: var(--fs-gap-md);
  }
  .fs-about__stat {
    flex: 1 1 40%;
  }
}

.fs-about__stat { display: flex; flex-direction: column; gap: 4px; }

.fs-about__stat-value {
  font-family: var(--fs-font-heading);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--fs-text);
  text-transform: uppercase;
  line-height: 1;
}

.fs-about__stat-value span {
  font-size: 0.5em;
  color: var(--fs-text-secondary);
  margin-left: 2px;
}

/* ── Feature Cards with Photo Background ─────────────── */

.fs-feature-card--photo {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;  /* reset default padding — overlay handles spacing */
}

.fs-feature-card--photo::before {
  /* accent bar — hide default, keep for non-photo variant */
  display: none;
}

/* The photo is the card background */
.fs-feature-card--photo {
  background: var(--card-bg, var(--fs-bg-card)) center/cover no-repeat;
}

/* Dark gradient from bottom so text is readable */
.fs-feature-card--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.10) 100%
  );
  z-index: 0;
}

.fs-feature-card--photo .fs-feature-card__title,
.fs-feature-card--photo .fs-feature-card__desc {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.fs-feature-card--photo .fs-feature-card__title {
  padding-top: 0;
  padding-bottom: 8px;
}

.fs-feature-card--photo .fs-feature-card__desc {
  padding-bottom: 24px;
}

/* White accent bar at bottom-left for photo cards */
.fs-feature-card--photo .fs-feature-card__title::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

/* ── Photo Strip (2-col image bar between about and products) ── */

.fs-photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--fs-border);
  height: clamp(220px, 30vw, 420px);
  overflow: hidden;
}

@media (max-width: 640px) {
  .fs-photo-strip { grid-template-columns: 1fr; height: auto; }
  .fs-photo-strip__item { height: 260px; }
}

.fs-photo-strip__item {
  overflow: hidden;
  background: var(--fs-bg-card);
}

.fs-photo-strip__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.8) contrast(1.1) grayscale(0.15);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.fs-photo-strip__item:hover .fs-photo-strip__img {
  transform: scale(1.04);
  filter: brightness(0.9) contrast(1.05) grayscale(0);
}

/* ── Relay Carrier Section ───────────────────────────── */

/* Model/variant subtitle inside section title — "[FPV 15"]" */
.fs-title-model {
  color: var(--fs-text-secondary);
  font-size: 0.6em;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.fs-relay-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /*height: 560px;             !* фіксована висота секції *!*/
  overflow: hidden;          /* обрізає і фото, і контент */
  background: var(--fs-bg);
  border-top: 1px solid var(--fs-border);
}

@media (max-width: 768px) {
  .fs-relay-section { grid-template-columns: 1fr; height: auto; }
  .fs-relay-section__image-col { height: 280px; }
}

.fs-relay-section__image-col {
  position: relative;
  overflow: hidden;
}

.fs-relay-section__image {
  position: absolute;        /* виходить з flow — не тягне висоту */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* обрізає, не розтягує */
  object-position: center;
  display: block;
  filter: brightness(0.8) contrast(1.1);
}

.fs-relay-section__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--fs-gap-lg);
  padding-bottom: var(--fs-gap-lg);
}

.fs-relay-section__specs {
  display: flex;
  gap: var(--fs-gap-lg);
  margin-top: var(--fs-gap-lg);
  padding-top: var(--fs-gap-md);
  border-top: 1px solid var(--fs-border);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .fs-relay-section__specs {
    flex-direction: column;
    gap: var(--fs-gap-md);
  }
}

.fs-relay-section__spec { display: flex; flex-direction: column; gap: 6px; }

.fs-relay-section__transmitter {
  margin-top: var(--fs-gap-md);
  padding-top: var(--fs-gap-md);
  border-top: 1px solid var(--fs-border);
}

/* ── Operation Scheme ────────────────────────────────── */

.fs-scheme-grid {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: var(--fs-gap-lg);
}

.fs-scheme-node {
  flex: 1;
  min-width: 140px;
  max-width: 100%;
  background: var(--fs-bg-card);
  border: 1px solid var(--fs-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 640px) {
  .fs-scheme-node {
    min-width: 0;
    flex: 1 1 calc(50% - 8px);
  }
  .fs-scheme-grid {
    gap: 8px;
  }
}

.fs-scheme-node--relay { border-color: var(--fs-accent); }

.fs-scheme-node__icon { font-size: 24px; }
.fs-scheme-node__detail { color: var(--fs-text-secondary); font-size: 12px; }

.fs-scheme-arrow {
  font-size: 24px;
  color: var(--fs-accent);
  flex-shrink: 0;
}

.fs-scheme-freqs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--fs-border);
  border: 1px solid var(--fs-border);
}

@media (max-width: 768px) { .fs-scheme-freqs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .fs-scheme-freqs { grid-template-columns: 1fr; } }

.fs-scheme-freq {
  background: var(--fs-bg-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fs-scheme-freq strong {
  font-family: var(--fs-font-heading);
  font-size: 18px;
  color: var(--fs-text);
  text-transform: uppercase;
}

/* ── System Advantages (with photo bg) ───────────────── */

.fs-sys-adv {
  position: relative;
  background: var(--fs-bg) center/cover no-repeat;
  padding: var(--fs-gap-xl) 0;
  border-top: 1px solid var(--fs-border);
  overflow: hidden;
}

.fs-sys-adv__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 0;
}

.fs-sys-adv__content {
  position: relative;
  z-index: 1;
}

/* ── Ground Stations Grid ────────────────────────────── */

.fs-stations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--fs-border);
  border: 1px solid var(--fs-border);
}

@media (max-width: 900px) { .fs-stations-grid { grid-template-columns: 1fr; } }

.fs-station-card {
  background: var(--fs-bg-card);
  display: flex;
  flex-direction: column;
}

.fs-station-card__image-wrap { overflow: hidden; }

.fs-station-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) contrast(1.05);
  transition: transform 0.4s ease;
}

.fs-station-card:hover .fs-station-card__image { transform: scale(1.04); }

.fs-station-card__body { padding: 20px 24px 24px; flex: 1; }

.fs-station-card__specs {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--fs-border);
}

/* ── VELES Section ───────────────────────────────────── */

.fs-veles-section {
  position: relative;
  background: var(--fs-bg) center/cover no-repeat;
  padding: var(--fs-gap-xl) 0;
  border-top: 1px solid var(--fs-border);
  overflow: hidden;
}

.fs-veles-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 0;
}

.fs-veles-section__content {
  position: relative;
  z-index: 1;
}

.fs-section-title__sub {
  font-size: 0.55em;
  color: var(--fs-text-secondary);
  font-weight: 400;
}

.fs-veles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--fs-grid-gap);
  margin-bottom: var(--fs-gap-xl);
}

@media (max-width: 1024px) { .fs-veles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .fs-veles-grid { grid-template-columns: 1fr; } }

.fs-feature-card--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.20);  /* visible on dark overlay bg */
}

.fs-veles-capabilities {
  border-top: 1px solid var(--fs-border);
  padding-top: var(--fs-gap-lg);
}

.fs-veles-caps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.20);   /* visible grid dividers on dark overlay */
  border: 1px solid rgba(255,255,255,0.20);
}

@media (max-width: 768px) { .fs-veles-caps-grid { grid-template-columns: 1fr; } }

.fs-veles-cap {
  background: rgba(10,10,10,0.90);
  padding: 20px 24px;
  font-family: var(--fs-font-display);  /* Bebas Neue — matches reference */
  font-size: clamp(14px, 2vw, 20px);
  color: var(--fs-text);
  text-transform: uppercase;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* White accent dash — референс part1: білий, не червоний */
.fs-veles-cap::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.65);
  flex-shrink: 0;
}

.fs-veles-cap--wide {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.20);
}

/* ── Operations Banner ───────────────────────────────── */

.fs-ops-banner {
  position: relative;
  background: var(--fs-bg) center/cover no-repeat;
  padding: clamp(64px, 10vh, 120px) 0;
  border-top: 1px solid var(--fs-border);
  overflow: hidden;
}

.fs-ops-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.90) 0%,
    rgba(0,0,0,0.70) 40%,
    rgba(0,0,0,0.30) 100%
  );
  z-index: 0;
}

.fs-ops-banner__content {
  position: relative;
  z-index: 1;
}

/* ── Equipment Strip ─────────────────────────────────── */

.fs-equipment-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--fs-border);
  border-top: 1px solid var(--fs-border);
}

@media (max-width: 768px) {
  .fs-equipment-strip { grid-template-columns: 1fr; }
}

.fs-equipment-strip__item {
  position: relative;
  background: var(--fs-bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fs-equipment-strip__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) contrast(1.05);
  transition: transform 0.4s ease;
}

.fs-equipment-strip__item:hover .fs-equipment-strip__img {
  transform: scale(1.04);
}

.fs-equipment-strip__caption {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--fs-border);
  background: var(--fs-bg-card);
}

/* ── Hero extras ─────────────────────────────────────── */

.fs-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--fs-text-secondary);
  font-size: 24px;
  animation: fs-bounce 2s infinite;
  z-index: 3;
}

@keyframes fs-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Pagination ──────────────────────────────────────── */

.fs-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: var(--fs-gap-md) 0;
}

.fs-pagination .page-numbers {
  font-family: var(--fs-font-mono);
  font-size: var(--fs-text-label);
  letter-spacing: var(--fs-tracking-label);
  padding: 8px 14px;
  border: 1px solid var(--fs-border);
  color: var(--fs-text-secondary);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.fs-pagination .page-numbers.current,
.fs-pagination .page-numbers:hover {
  color: var(--fs-text);
  border-color: var(--fs-text-secondary);
}

/* ── FPV Products Grid — homepage catalog ────────────── */
/* Reference: fseng.pdf page 10 — stripe header + image card */

.fpv-products-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--fs-border);
  width: 100%;
}

/* Last 2 cards (Enterprise + Relay) sit side-by-side */
.fpv-products-grid__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 640px) {
  .fpv-products-grid__pair { grid-template-columns: 1fr; }
}

.fpv-product-card {
  display: flex;
  flex-direction: column;
  background: var(--fs-bg);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* ── Stripe header row ── */
.fpv-product-header {
  position: relative;
  height: 42px;
  overflow: hidden;
  background: var(--fs-bg);   /* #0c0c0c — darker base = stripes pop more */
  flex-shrink: 0;
}

/* Diagonal stripe texture — more pronounced, matches PDF header */
.fpv-carbon-texture {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.13) 0px,
    rgba(255,255,255,0.13) 1px,
    transparent                1px,
    transparent                6px
  );
  /* no opacity — full strength so stripes are clearly visible */
}

/* Dark gradient left→fade — strong enough to read text against any texture */
.fpv-diagonal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.40) 38%,
    transparent       68%
  );
  pointer-events: none;
}

.fpv-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 14px;
}

/* ⊞ ⊞ icon — two small squares like the PDF catalog label */
.fpv-product-number {
  font-size: 0;          /* hide raw number text */
  letter-spacing: 0;
  flex-shrink: 0;
  line-height: 1;
}

.fpv-product-number::before {
  content: '⊞⊞';
  display: inline-block;
  font-size: 28px;
  letter-spacing: 3px;
  font-family: var(--fs-font-mono);
  line-height: 1;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(160,170,180,0.65) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: rgba(200,200,200,0.55);
}

.fpv-product-subtitle {
  font-family: var(--fs-font-mono);
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
  line-height: 1;
  /* gradient text — референс fseng-02.png */
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(160,170,180,0.65) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: rgba(220,220,220,0.8); /* fallback */
}

/* ── Image body ── */
.fpv-product-body {
  position: relative;
  height: clamp(140px, 18vw, 240px);
  overflow: hidden;
  background: var(--fs-bg-card);
}

/* Inside the pair, cards are shorter — fits the 2-col design */
.fpv-products-grid__pair .fpv-product-body {
  height: clamp(140px, 22vw, 280px);
}

.fpv-product-image {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.fpv-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.75) contrast(1.08);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.fpv-product-card:hover .fpv-product-image img {
  transform: scale(1.04);
  filter: brightness(0.75) contrast(1.05);
}

/* Gradient overlay — product title readable against any photo */
.fpv-product-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.50) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.fpv-product-title {
  font-family: var(--fs-font-display);
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(160,170,180,0.65) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--fs-text); /* fallback */
}

.fpv-product-title a {
  color: inherit;
  text-decoration: none;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Ground Stations — PDF 2+1 layout (no images) ───────── */
/* Reference: fseng.pdf page 4 */

.fs-stations-grid--pdf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--fs-border);
  border: 1px solid var(--fs-border);
}

@media (max-width: 900px) {
  .fs-stations-grid--pdf { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .fs-stations-grid--pdf { grid-template-columns: 1fr; }

  .fs-site-footer { padding: 0 20px}

}

.fs-station-card--bordered {
  background: var(--fs-bg-card);
  padding: 28px 32px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* White dash — референс part3-2: тонка біла риска, не червона */
.fs-station-card--bordered::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.65);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.fs-station-card--wide {
  grid-column: 1 / -1;
}

/* Two-column inner layout for wide (Enterprise) card */
.fs-station-card--wide .fs-station-card__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--fs-gap-lg);
}

@media (max-width: 640px) {
  .fs-station-card--wide .fs-station-card__inner { grid-template-columns: 1fr; }
}

.fs-station-card__accessories {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--fs-border);
  font-family: var(--fs-font-mono);
  font-size: var(--fs-text-small);
  color: var(--fs-text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Relay Carrier — two spec panels side-by-side ───────── */
/* Reference: fseng.pdf page 5 */

.fs-relay-specs-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--fs-border);
  margin-top: var(--fs-gap-lg);
  border: 1px solid var(--fs-border);
}

@media (max-width: 640px) {
  .fs-relay-specs-panels { grid-template-columns: 1fr; }
}

/* ── VELES mini section modifier ─────────────────────────── */

.fs-veles-section--mini .fs-veles-section__overlay {
  background: rgba(0,0,0,0.88);
}

/* ═══════════════════════════════════════════════════════════
   PDF REFERENCE MATCH — refinements pass 2
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Products section: clip hover animation at boundaries ─
   overflow:hidden prevents scale() from bleeding into
   adjacent sections (About above, Why Choose Us below)        */
.fs-section-products {
  overflow: hidden;
}

/* Centring wrapper — controls the 80% width column            */
/* NO max-width cap — purely 80% of viewport on any screen     */
.fpv-products-wrapper {
  width: 80%;
  margin: 0 auto;
  padding: var(--fs-gap-xl) 0;
}

/* Grid: full-width of its wrapper, stack vertically           */
.fs-section-products .fpv-products-grid,
.fpv-products-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;          /* компактний зазор як у референсі */
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;         /* прибираємо side padding з style.css */
  box-sizing: border-box;
  background: transparent;
}

/* Card: clip the scale() transform at the card edge           */
/* NO contain:paint — it breaks position:absolute children     */
.fpv-product-card {
  width: 100%;
  box-sizing: border-box;
  outline: 1px solid var(--fs-border);
  overflow: hidden;
  isolation: isolate;
  border-radius: 4px;
}

/* Full-width cards: компактна висота як у референсі           */
.fpv-product-body {
  height: clamp(150px, 14vw, 240px);
}

/* Pair (last 2): side-by-side → трохи вищі                   */
.fpv-products-grid__pair .fpv-product-body {
  height: clamp(180px, 18vw, 280px);
}

/* Pair title: slightly smaller to fit narrower cards         */
.fpv-products-grid__pair .fpv-product-title {
  font-size: clamp(20px, 2.6vw, 34px);
}

/* ── 2. Ground Stations section: photo bg + dark overlay ──── */

.fs-ground-stations {
  position: relative;
  padding: var(--fs-gap-xl) 0;
  border-top: 1px solid var(--fs-border);
  background-color: #080808;
  background-image:
    linear-gradient(rgba(4,4,6,0.45), rgba(4,4,6,0.45)),
    url('/wp-content/themes/fseng/img/bg_h_part_2.webp');
  background-attachment: scroll, fixed;
  background-position: 0 0, center center;
  background-size: auto, cover;
  background-repeat: no-repeat;
}

.fs-ground-stations__overlay {
  display: none;
}

.fs-ground-stations > .fs-container {
  position: relative;
  z-index: 1;
}

/* Grid lines visible on dark bg */
.fs-ground-stations .fs-stations-grid--pdf {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.14);
}

/* Card: visible white border + top-right corner notch         */
/* (matches distinctive card shape in PDF page 4)             */
.fs-ground-stations .fs-station-card--bordered {
  background: rgba(8,8,8,0.65);
  border-color: rgba(255,255,255,0.18);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.fs-ground-stations .fs-station-card__accessories {
  border-top-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.38);
}

/* ── 3. System Advantages: white borders on dark photo bg ─── */

.fs-sys-adv .fs-feature-card {
  background: rgba(8,8,8,0.55);
  border-color: rgba(255,255,255,0.20);
}

.fs-sys-adv .fs-feature-card::before {
  background: rgba(255,255,255,0.70); /* референс: білий акцент, не червоний */
}

/* ── 4. VELES ⑨A: gradient overlay — show photo at top ─────
   Transport case photo visible in upper half, dark below      */
.fs-veles-section {
  background-position: top center;
  background-size: cover;
}

.fs-veles-section__overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.52) 22%,
    rgba(0,0,0,0.88) 48%,
    rgba(0,0,0,0.97) 100%
  );
}

/* Caps grid: bright separator lines to match PDF p.1         */
.fs-veles-caps-grid {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.18);
}

.fs-veles-cap {
  background: rgba(8,8,8,0.78);
}

.fs-veles-cap--wide {
  border-top-color: rgba(255,255,255,0.18);
}

/* ── 5. VELES mini ⑨B: gradient + white card borders ────────*/
.fs-veles-section--mini {
  background-position: top center;
}

.fs-veles-section--mini .fs-veles-section__overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.22) 0%,
    rgba(0,0,0,0.60) 28%,
    rgba(0,0,0,0.90) 52%,
    rgba(0,0,0,0.97) 100%
  );
}

/* Feature cards inside both VELES sections: white borders    */
.fs-veles-section .fs-feature-card--dark {
  background: rgba(8,8,8,0.62);
  border-color: rgba(255,255,255,0.20);
}

/* White dash — референс part2: білий акцент, не червоний */
.fs-veles-section .fs-feature-card--dark::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.65);
  margin-bottom: 12px;
  flex-shrink: 0;
}

/* ── 6. Operation Scheme section layout ──────────────────── */

.fs-op-scheme {
  position: relative;
  padding: var(--fs-gap-xl) 0;
  border-top: 1px solid var(--fs-border);
  background-color: #080808;
  background-image:
          linear-gradient(rgba(4,4,6,0.45), rgba(4,4,6,0.45)),
          url('/wp-content/themes/fseng/img/bg_h_part_2.webp');
  background-attachment: scroll, fixed;
  background-position: 0 0, center center;
  background-size: auto, cover;
  background-repeat: no-repeat;
}

/* Тёмный оверлей — текстура чуть проступает, текст читается    */
.fs-op-scheme::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.15);
  pointer-events: none;
  z-index: 0;
}

/* ::before больше не используется — заменён scroll-indicator   */

/* Контент поверх оверлея                                       */
.fs-op-scheme > * {
  position: relative;
  z-index: 2;
}


.fs-op-scheme .fs-section-title {
  margin: 8px 0 var(--fs-gap-sm);
}

.fs-op-scheme .fs-body {
  color: var(--fs-text-secondary);
  max-width: 680px;
  margin: 0 0 var(--fs-gap-lg);
}

/* ── 6. Repeater Scheme: diagram image container ─────────── */

.fs-scheme-diagram {
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  max-width: 680px;
  margin-left: auto;                 /* центрируем в контейнере          */
  margin-right: auto;
}

.fs-scheme-diagram img {
  display: block;
  width: 100%;
  height: auto;                      /* полная высота portrait-схемы    */
  filter: invert(1);                 /* белый рисунок на тёмном фоне    */
}

/* ═══════════════════════════════════════════════════════════
   PDF REFERENCE MATCH — refinements pass 3
   UI/UX audit fixes: typography, accents, proportions
   ═══════════════════════════════════════════════════════════ */

/* ── #2: Header — decorative ▪▪ mark instead of number ────── */


/* ── #3: Product title — larger, more presence ────────────── */

.fpv-product-title {
  font-size: clamp(28px, 3.6vw, 52px);
}

/* ── #5: Ground Stations — тільки тонка суцільна рамка (референс part3-2) */
/* Червоний border-left прибрано — у референсі його немає */
.fs-ground-stations .fs-station-card--bordered::before {
  display: block;  /* показуємо білий dash */
}

/* ── #6: Spec row values — mono font for technical data ──── */

.fs-spec-row__value {
  font-family: var(--fs-font-mono);
  font-size: 12px;
  letter-spacing: 0.07em;
}

/* ── #7: VELES caps — equal-height cells, vertically centred */

.fs-veles-cap {
  min-height: 88px;
}

/* ── #8: VELES mini section — explicit bottom padding ──────  */

.fs-veles-section--mini .fs-veles-section__content {
  padding-bottom: var(--fs-gap-xl);
}

/* ── #9: fs-card-title — bolder weight, wider tracking ────── */

.fs-card-title {
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ── #10: Section headings use display font tracking ────────  */

.fs-section-title {
  letter-spacing: var(--fs-tracking-hero);
}

/* ═══════════════════════════════════════════════════════════
   SCROLL PROGRESS INDICATOR
   Тонкая вертикальная полоса left:0, фиксированная на весь
   viewport. Заполнение управляется из JS через height%.
   Цвет — акцент (красный) сверху → прозрачный снизу,
   чтобы не отвлекать, но давать ощущение прогресса.
   ═══════════════════════════════════════════════════════════ */

.fs-scroll-indicator {
  position: fixed;
  left: 0;
  top: 0;
  width: 3px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.04); /* трек — почти невидимый      */
  z-index: 9999;
  pointer-events: none;
}

.fs-scroll-indicator__fill {
  width: 100%;
  height: 0%;                            /* JS обновляет это значение   */
  background: linear-gradient(
    to bottom,
    rgba(204, 0, 0, 0.90)   0%,          /* ярко-красный у текущей позиции */
    rgba(204, 0, 0, 0.45)  50%,          /* мягкое затухание            */
    rgba(204, 0, 0, 0.10) 100%           /* почти прозрачный хвост      */
  );
  transition: height 80ms linear;        /* плавно, но без задержки     */
}

/* ── Blog Archive ────────────────────────────────────── */

.fs-blog-archive__title {
  font-family: var(--fs-font-display);
  font-size: var(--fs-text-h1);
  text-transform: uppercase;
  line-height: 1.0;
  color: var(--fs-text);
  margin: 12px 0 0;
  position: relative;
}

.fs-blog-archive__title::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--fs-accent);
  margin-bottom: 12px;
}

/* Hero post (sticky) */
.fs-blog-hero {
  position: relative;
  overflow: hidden;
  background: var(--fs-bg-card);
}

.fs-blog-hero__image-wrap {
  display: block;
  aspect-ratio: 21/9;
  overflow: hidden;
}

.fs-blog-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.fs-blog-hero:hover .fs-blog-hero__image { transform: scale(1.02); }

.fs-blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 40%, transparent 70%);
  pointer-events: none;
}

.fs-blog-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--fs-gap-lg) var(--fs-container-pad);
  max-width: var(--fs-container-max);
  margin: 0 auto;
}

.fs-blog-hero__label {
  font-family: var(--fs-font-mono);
  font-size: var(--fs-text-small);
  color: var(--fs-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  display: block;
}

.fs-blog-hero__title {
  font-family: var(--fs-font-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--fs-text);
  margin: 0 0 12px;
  max-width: 780px;
}

.fs-blog-hero__title a,
.fs-blog-hero__title-link {
  color: inherit;
  text-decoration: none;
}

.fs-blog-hero__excerpt {
  font-size: 15px;
  color: rgba(255,255,255,0.7); /* translucent white on photo bg — no token for this */
  max-width: 600px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.fs-blog-hero__link {
  /* Composed with .fs-btn.fs-btn--primary in archive.php — inherits button styles */
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .fs-blog-hero__image-wrap { aspect-ratio: 4/3; }
  .fs-blog-hero__title { font-size: 28px; }
  .fs-blog-hero__excerpt { display: none; }
}

/* Blog grid */
.fs-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--fs-gap-md);
}

@media (max-width: 1024px) { .fs-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .fs-blog-grid { grid-template-columns: 1fr; } }

/* Blog card */
.fs-blog-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fs-blog-card__image-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--fs-bg-card);
}

.fs-blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.fs-blog-card__image-wrap:hover .fs-blog-card__image {
  transform: scale(1.03);
  filter: brightness(0.9);
}

.fs-blog-card__body {
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.fs-blog-card__meta {
  font-family: var(--fs-font-mono);
  font-size: var(--fs-text-small);
  color: var(--fs-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.fs-blog-card__title {
  font-family: var(--fs-font-heading);
  font-size: clamp(16px, 2vw, 20px);
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--fs-text);
  margin: 0;
}

.fs-blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.fs-blog-card__title a:hover { color: var(--fs-text-secondary); }

.fs-blog-card__excerpt {
  font-size: 13px;
  color: var(--fs-text-secondary);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.fs-blog-card__link {
  font-family: var(--fs-font-mono);
  font-size: var(--fs-text-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fs-accent);
  text-decoration: none;
  margin-top: auto;
  padding-top: 4px;
  transition: opacity 0.15s;
}

/* ══════════════════════════════════════════════════════
   ПАРАЛЛАКС ФОНЫ
   ══════════════════════════════════════════════════════ */

/* Верхняя часть страницы — hero + products + mid */
.fs-hero,
.fs-section-products,
.fs-bg-mid {
  background-color: #080808;
  background-image:
    linear-gradient(rgba(4,4,6,0.45), rgba(4,4,6,0.45)),
    url('/wp-content/themes/fseng/img/image.webp');
  background-attachment: scroll, fixed;
  background-position: 0 0, center top;
  background-size: auto, cover;
  background-repeat: no-repeat;
}

/* Нижний блок: контакты + футер — общий враппер, нижняя часть картинки */
.fs-bottom-wrap {
  background-color: #080808;
  background-image:
    linear-gradient(rgba(4,4,6,0.45), rgba(4,4,6,0.45)),
    url('/wp-content/themes/fseng/img/image.webp');
  background-attachment: scroll, fixed;
  background-position: 0 0, center bottom;
  background-size: auto, cover;
  background-repeat: no-repeat;
}

/* Убрать собственные фоны у вложенных секций */
.fs-bottom-wrap .fs-contact-section,
.fs-bottom-wrap .fs-contact-section.fs-texture-carbon,
.fs-bottom-wrap .fs-site-footer {
  background: transparent;
}


.fs-blog-card__link:hover { opacity: 0.7; }

/* ══════════════════════════════════════════════════════
   SCROLL TO TOP — tactical reticle button
   ══════════════════════════════════════════════════════ */

.fs-scroll-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 52px;
  height: 52px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 200;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.35s, transform 0.35s;
  pointer-events: none;
}

.fs-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Outer dashed ring — rotates on hover */
.fs-scroll-top__reticle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed var(--fs-accent);
  transition: transform 0.6s linear;
}

/* Inner solid ring */
.fs-scroll-top::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(230, 30, 30, 0.35);
  background: rgba(5, 6, 15, 0.80);
  backdrop-filter: blur(6px);
}

/* Crosshair lines via box-shadow */
.fs-scroll-top::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(var(--fs-accent), var(--fs-accent)) center / 1px 32% no-repeat,
    linear-gradient(var(--fs-accent), var(--fs-accent)) center / 32% 1px no-repeat;
  opacity: 0.25;
}

/* Arrow icon */
.fs-scroll-top__arrow {
  position: relative;
  z-index: 1;
  color: var(--fs-accent);
  transition: transform 0.2s;
}

/* Hover: rotate reticle, lift arrow */
.fs-scroll-top:hover .fs-scroll-top__reticle {
  transform: rotate(90deg);
}

.fs-scroll-top:hover .fs-scroll-top__arrow {
  transform: translateY(-2px);
}

/* Click flash */
.fs-scroll-top:active::before {
  background: rgba(230, 30, 30, 0.20);
}

/* ══════════════════════════════════════════════════════
   MOBILE STARRY SKY — фиксы + CSS-звёзды через box-shadow
   Target: смартфоны и планшеты ≤ 768px
   ══════════════════════════════════════════════════════ */

/* Медленное атмосферное мерцание */
@keyframes fs-star-shimmer {
  from { opacity: 0.70; }
  to   { opacity: 1.00; }
}

@media (max-width: 768px) {

  /* ── 1. Фикс background-attachment: fixed (сломан на iOS Safari)
          Снижаем overlay с 0.45 до 0.25 — больше звёзд видно сквозь фото
          Позиция center 20% показывает зенит — самую звёздную зону ────── */

  .fs-hero,
  .fs-section-products,
  .fs-bg-mid,
  .fs-op-scheme {
    background-image:
      linear-gradient(rgba(4,4,6,0.25), rgba(4,4,6,0.25)),
      url('/wp-content/themes/fseng/img/image.webp');
    background-attachment: scroll, scroll;
    background-position: 0 0, center 20%;
    background-size: auto, cover;
  }

  .fs-bottom-wrap {
    background-image:
      linear-gradient(rgba(4,4,6,0.25), rgba(4,4,6,0.25)),
      url('/wp-content/themes/fseng/img/image.webp');
    background-attachment: scroll, scroll;
    background-position: 0 0, center 80%;
    background-size: auto, cover;
  }

  /* position: relative нужен для ::before контекста */
  .fs-section-products,
  .fs-bg-mid,
  .fs-op-scheme,
  .fs-bottom-wrap {
    position: relative;
  }

  /* ── 2. CSS star layer через box-shadow на ::before (1×1px)
          60 звёзд в трёх ярусах яркости:
            bright  (15) — rgba alpha 0.88–0.95
            medium  (25) — rgba alpha 0.55–0.65
            dim     (20) — rgba alpha 0.28–0.36
          Координаты: px, зона 390×900px (все портретные смартфоны) ───── */

  .fs-hero::before,
  .fs-section-products::before,
  .fs-bg-mid::before,
  .fs-op-scheme::before,
  .fs-bottom-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
    z-index: 1;

    box-shadow:
      /* BRIGHT ─────────────────────── */
       37px  82px 0 0 rgba(255,255,255,0.92),
      183px  44px 0 0 rgba(255,255,255,0.88),
      312px 130px 0 0 rgba(255,255,255,0.95),
       76px 218px 0 0 rgba(255,255,255,0.90),
      256px  67px 0 0 rgba(255,255,255,0.91),
      349px 195px 0 0 rgba(255,255,255,0.88),
      141px 302px 0 0 rgba(255,255,255,0.93),
       22px 415px 0 0 rgba(255,255,255,0.89),
      298px 378px 0 0 rgba(255,255,255,0.94),
      168px 490px 0 0 rgba(255,255,255,0.87),
       55px 554px 0 0 rgba(255,255,255,0.91),
      333px 512px 0 0 rgba(255,255,255,0.90),
      207px 628px 0 0 rgba(255,255,255,0.88),
       89px 703px 0 0 rgba(255,255,255,0.95),
      375px 675px 0 0 rgba(255,255,255,0.92),
      /* MEDIUM ─────────────────────── */
      113px  28px 0 0 rgba(255,255,255,0.60),
      228px 110px 0 0 rgba(255,255,255,0.57),
       14px 162px 0 0 rgba(255,255,255,0.62),
      340px  88px 0 0 rgba(255,255,255,0.55),
      195px 250px 0 0 rgba(255,255,255,0.63),
       68px 325px 0 0 rgba(255,255,255,0.58),
      280px 284px 0 0 rgba(255,255,255,0.61),
      147px 435px 0 0 rgba(255,255,255,0.57),
       33px 478px 0 0 rgba(255,255,255,0.64),
      315px 450px 0 0 rgba(255,255,255,0.59),
      244px 570px 0 0 rgba(255,255,255,0.62),
       97px 608px 0 0 rgba(255,255,255,0.56),
      360px 590px 0 0 rgba(255,255,255,0.60),
      175px 730px 0 0 rgba(255,255,255,0.63),
       48px 780px 0 0 rgba(255,255,255,0.58),
      305px 745px 0 0 rgba(255,255,255,0.61),
      133px 820px 0 0 rgba(255,255,255,0.57),
      269px 802px 0 0 rgba(255,255,255,0.64),
      389px 758px 0 0 rgba(255,255,255,0.59),
      222px 860px 0 0 rgba(255,255,255,0.62),
       78px 840px 0 0 rgba(255,255,255,0.55),
      /* DIM ────────────────────────── */
      157px  55px 0 0 rgba(255,255,255,0.32),
       45px 140px 0 0 rgba(255,255,255,0.29),
      275px 175px 0 0 rgba(255,255,255,0.35),
      320px 240px 0 0 rgba(255,255,255,0.30),
       92px 268px 0 0 rgba(255,255,255,0.34),
      200px 345px 0 0 rgba(255,255,255,0.28),
      355px 320px 0 0 rgba(255,255,255,0.36),
       18px 390px 0 0 rgba(255,255,255,0.31),
      240px 405px 0 0 rgba(255,255,255,0.33),
      118px 520px 0 0 rgba(255,255,255,0.30),
      370px 498px 0 0 rgba(255,255,255,0.35),
       62px 645px 0 0 rgba(255,255,255,0.29),
      293px 660px 0 0 rgba(255,255,255,0.32),
      181px 718px 0 0 rgba(255,255,255,0.36),
       27px 765px 0 0 rgba(255,255,255,0.28),
      338px 782px 0 0 rgba(255,255,255,0.31),
      105px 850px 0 0 rgba(255,255,255,0.34),
      252px 878px 0 0 rgba(255,255,255,0.30),
      384px 828px 0 0 rgba(255,255,255,0.33),
       71px 895px 0 0 rgba(255,255,255,0.29);

    animation: fs-star-shimmer 5s ease-in-out infinite alternate;
    will-change: opacity;
  }

  /* ── 3. Respect prefers-reduced-motion ──────────────── */
  @media (prefers-reduced-motion: reduce) {
    .fs-hero::before,
    .fs-section-products::before,
    .fs-bg-mid::before,
    .fs-op-scheme::before,
    .fs-bottom-wrap::before {
      animation: none;
    }
  }

} /* end @media (max-width: 768px) */
