/* ===== Base / tokens ===== */
:root {
  --bg-dark: #0f1115;
  --bg-light: #ffffff;
  --tint: #f4f7fb;
  --text: #0b0c0f;
  --muted: #6b7280;
  --brand: #4f8cff; /* легкий футуристичний відтінок */
  --brand-ink: #0c1a37;
  /* Прямые углы: убираем скругления для строгого архитектурного стиля */
  --radius: 0;
  --radius-lg: 0;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  height: 100vh;
  /* Основной шрифт Rubik (широкие буквы), далее Inter и системные шрифты в качестве fallback */
  font-family:
    Rubik,
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif;
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.6;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Containers & layout */
.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}
.section {
  padding: 72px 0;
}
.section-text {
  width: 80%;
  max-width: 1120px;
  min-width: 300px;
  margin: auto;
}
@media (max-width: 768px) {
  .section-text {
    width: 90%;
  }
}
.section-text > .container {
  width: inherit;
}
.section--light {
  background: var(--bg-light);
}
.section--dark {
  background: var(--bg-dark);
  color: #e8ecf3;
  position: relative;
  overflow: hidden;
}
.section--tint {
  background: var(--tint);
}

/* Header */
.hdr {
  position: fixed;
  display: flex;
  align-items: center;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-dark);
  color: #fff;
  border-bottom: 0;
  /* box-shadow: 0 2px 18px rgba(0,0,0,.5); */
  height: 64px;
}
.hdr__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 18px 0; */
  gap: 2rem;
}
#brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand__logo {
  min-width: 120px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}
@media (max-width: 500px) {
  .brand__logo {
    min-width: 60px;
  }
}
.brand__logo--invert {
  filter: invert(1) brightness(1000%) contrast(95%);
}
.nav {
  display: flex;
  gap: 2rem;
}
.nav__link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  font-size: 1em;
  position: relative;
  padding-bottom: 2px;
}
.nav__link::before,
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
}
.nav__link::before {
  opacity: 0.3;
}
.nav__link::after {
  opacity: 0.6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
/* .nav__link:hover {
  color: #fff;
} */
.nav__link:hover::after {
  transform: scaleX(1);
}
#nav-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
}

/* Lang */
#lang-switch {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}
.lang {
  display: flex;
  padding: 0.4rem 0.6rem;
  border: 1px solid white;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
}
.lang.active {
  color: #0b0c0f;
  background-color: white;
}
/* === Menu toggle: burger + label SVG === */
#menu-toggle {
  display: none;
  color: #fff;
  appearance: none;
  background: transparent !important;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1;
  background: transparent;
}
#menu-toggle::after {
  content: none !important;
} /* remove caret */
#menu-toggle svg {
  display: block;
  height: 22px;
  width: auto;
}
@media (max-width: 1200px) {
  nav.nav {
    display: none !important;
  }
  #menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  .menu-panel {
    display: none;
  }
  #menu-toggle line {
    transition: all 0.25s ease-out;
    transform-origin: center center;
  }
  #menu-toggle.open #line1,
  #menu-toggle.open #line4 {
    stroke: transparent;
  }
  #menu-toggle.open #line2 {
    transform: rotate(45deg);
  }
  #menu-toggle.open #line3 {
    transform: rotate(-45deg);
  }
}

/* Menu button grouping 2025-09-26T22:43:27.305757 */
/* /* === Mobile dropdown under header === */
.menu-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 9998;
  background: #0b0c0fe0;
  backdrop-filter: blur(20px);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  transition: all 0.35s ease-out;
  overflow: hidden;
  height: 0;
  padding: 0 0;
  width: 100%;
  transform-origin: top center;
}
#menu-spacer {
  position: fixed;
  display: none;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.001);
  z-index: 997;
}
.menu-panel.open {
  height: fit-content;
  padding: 0.5rem 0;
  top: 64px;
}
/* .menu-panel__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: block;
  padding: 4px 16px;
} */
.menu-panel a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  font-size: 1em;
  position: relative;
  display: block;
  padding: 1rem 2rem;
  max-width: 1120px;
  width: clamp(100%, 100%, 1120px);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.menu-panel a.active {
  font-weight: 500;
}
.menu-panel a:last-child {
  border-bottom: none;
}
.menu-panel__inner > .menu-panel__link:last-of-type {
  border-bottom: none;
}

/* --- Strong menu styles (override anything) --- */
/* .menu-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--hdr-h, 64px);
  z-index: 9998;
  background: rgba(12, 16, 24, 0.98);
}
.menu-panel__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 6px 16px;
} */
/* .menu-panel__link {
  display: block !important;
  padding: 14px 0 !important;
  font-weight: 700;
  color: #e8ecf3 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: normal !important;
} */
/* .menu-panel__inner > .menu-panel__link:last-of-type {
  border-bottom: none !important;
} */

/* menu-trim fix 2025-09-26T22:39:19.732640 */
/* .menu-panel {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: var(--hdr-h, 64px) !important;
  bottom: auto !important;
  height: auto !important;
  max-height: none !important;
  background: rgba(12, 16, 24, 0.98) !important;
  z-index: 9998 !important;
}
.menu-panel__inner > .menu-panel__link:last-of-type {
  border-bottom: none !important;
}

/* remove divider under last link */
.menu-panel__link:last-child {
  border-bottom: none !important;
}

/* Reliable removal of last divider */
/*.menu-panel__link:last-child,
.menu-panel__link:last-of-type,
.menu-panel__inner .menu-panel__link:nth-last-child(1) {
  border-bottom: none !important;
} */

/* ===== FINAL BURGER-ONLY MENU 2025-09-27 ===== */
/* .menu-toggle {
  appearance: none;
  background: transparent !important;
  border: 0 !important;
  color: #fff;
  padding: 8px 10px !important;
  line-height: 1;
}
.menu-toggle .ico-burger {
  display: block;
  height: 20px;
  width: auto;
}
.menu-chip,
.menu-label {
  display: none !important;
} */

/* Menu list dividers */
/* .menu-panel .menu-panel__link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.24) !important;
}
.menu-panel__inner > .menu-panel__link:last-of-type {
  border-bottom: none !important;
}

/* Neutralize global inline-link pseudo underlines for menu */
/*.menu-panel__link::before,
.menu-panel__link::after {
  content: none !important;
} */

/* Text links */
a {
  color: var(--text);
  text-decoration: none;
}
/* a:visited {
  color: inherit;
} */
/* a:not(.btn):not(.nav__link):not(.brand) {
  position: relative;
  padding-bottom: 2px;
  cursor: pointer;
} */
a.nav__link {
  position: relative;
  padding-bottom: 2px;
  cursor: pointer;
  display: inline;
}
a.nav__link:focus-visible {
  outline: none;
}
a.nav__link::before,
a.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
}
a.nav__link::before {
  opacity: 0.4;
}
a.nav__link::after {
  opacity: 0.65;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
a.nav__link:hover::after,
a.nav__link:focus::after {
  transform: scaleX(1);
}
a.nav__link:hover {
  color: #fff;
}
@media (hover: none) {
  a:not(.btn):not(.nav__link):not(.brand)::after {
    transform: none;
  }
}
.section--light a:not(.btn):not(.nav__link):not(.brand):focus-visible {
  outline-color: rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 140, 255, 0.25);
}
.btn--primary:hover {
  transform: translateY(-1px);
}
.btn--white {
  background: #fff;
  color: #0b0c0f;
}
.btn--ghost {
  justify-content: center;
  width: 100%;
  padding: 12px 2rem;
  background: var(--text);
  color: white;
  border-color: var(--text);
}
a:hover .btn--ghost {
  background: transparent;
  color: var(--text);
}
main {
  display: block;
  margin-top: 64px;
  flex: 1;
  /*overflow-y: scroll; */
}
/* Hero note */
.hero__note {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 10px 14px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e8ecf3;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  backdrop-filter: saturate(120%) blur(2px);
}

/* Hero */
.hero {
  padding-top: 64px;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
}
@media (max-width: 1023px) {
  .hero {
    min-height: 800px;
    padding: 6rem 0;
  }
}
@media (max-width: 500px) {
  .hero {
    /* min-height: 90vh; */
    min-height: fit-content;
    padding: 6rem 0;
  }
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(
    180deg,
    rgba(15, 17, 21, 0) 0%,
    rgba(15, 17, 21, 1) 80%
  );
  z-index: 0;
  pointer-events: none;
}
h1 {
  margin: 0;
}
.hero__title {
  /* Заголовок в хедере делаем более жирным для лучшего акцента */
  font-weight: 400;
  font-size: 4.5em;
  line-height: 1.1;
  margin-bottom: 60px;
  /* letter-spacing:0.003em; */
  /* margin:14px 0 14px; */
  /* Делаем заголовок чисто белым и усиливаем свечение для лучшей читаемости */
  color: #ffffff;
  /* text-shadow:0 0 8px rgba(255,255,255,.45); */
}

@media (500px < width <= 1023px) {
  .hero__title {
    font-size: 3.5em;
    margin-bottom: 3rem;
  }
}
@media (max-width: 500px) {
  .hero__title {
    font-size: 2em;
    margin-bottom: 3rem;
  }
}
/* .hero__image {
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
} */
.hero--bg {
  position: relative;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
}
.hero--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Затемняем только левую часть: тёмное слева для текста и плавное исчезновение к правому краю. */
  /* background: linear-gradient(
    90deg,
    Больше затемнения слева и плавное снижение прозрачности к правому краю
      rgba(15, 17, 21, 0.98) 0%,
    rgba(15, 17, 21, 0.9) 25%,
    rgba(15, 17, 21, 0.55) 50%,
    rgba(15, 17, 21, 0.2) 80%,
    rgba(15, 17, 21, 0) 100%
  ); */
  /* background: linear-gradient(
    90deg,
    rgba(15, 17, 21, 0.98) 0%,
    rgba(15, 17, 21, 0.93) 40%,
    rgba(15, 17, 21, 0.76) 60%,
    rgba(15, 17, 21, 0.2) 70%,
    rgba(15, 17, 21, 0) 100%
  ); */
  background: linear-gradient(
    90deg,
    rgba(15, 17, 21, 0.98) 0%,
    rgba(15, 17, 21, 0.92) 28%,
    rgba(15, 17, 21, 0.65) 56%,
    rgba(15, 17, 21, 0.28) 78%,
    rgba(15, 17, 21, 0) 100%
  );
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 2;
}
.hero--bg .hero__media {
  display: none;
}

/* ===== Hero stacked list with icons ===== */
.hero__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: flex-start;
  gap: 2rem;
}
.hero__item {
  text-decoration: none;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: start;
  gap: 0.5rem;
  max-width: calc((100% - 2rem) / 2);
  /* box-shadow: 0px 0px 0px 1px white; */
  border: 1px solid white;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background-color: #0b171b00;
  padding: 2rem 2.2rem;
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  position: relative;
  margin-top: 10px;
}
@media (max-width: 1023px) {
  .hero__item {
    max-width: 80%;
  }
}
@media (max-width: 500px) {
  .hero__item {
    max-width: 100%;
    width: 100%;
    padding: 0.3rem 0;
    align-items: center;
    box-shadow: 0px 0px 0px 0px white;
    border: none;
  }
  .hero__list {
    gap: 0.6rem;
  }
  .hero--bg::before {
    background: linear-gradient(
      90deg,
      rgba(15, 17, 21, 0.8) 0%,
      rgba(15, 17, 21, 0.8) 100%
    );
  }
}
@media (min-width: 501px) {
  .hero__item:hover {
    margin-top: 0;
    margin-bottom: 10px;
    /* background-color: #0B171Bb3; */
    background-color: white;
    /* box-shadow: 0px 20px 30px -5px #0b0c0f5d; */
  }
  .hero__item:hover .hero__lead {
    color: var(--text);
  }
  .hero__item:hover .hero__icon {
    color: var(--text);
  }
  .hero__item:hover .hero-arrow {
    right: 10px;
  }
}
a.hero__item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 1);
  outline-offset: 2px;
}
.hero__icon {
  /* display: inline-flex;
  height: 28px;
  width: 28px;
  color: #cfd6e7;
  opacity: 0.9;
  margin-top: 2px;
   */
  display: block;
  min-width: 40px;
  min-height: 40px;
  box-shadow: none;
  position: relative;
  color: white;
}
.hero-arrow {
  position: absolute;
  display: block;
  color: var(--text);
  transition: all 0.25s ease-out;
  bottom: 10px;
  right: -30px;
  max-height: 24px;
}

/* .hero__item::after {
  content: "->";
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;
  transition: all 0.25s ease-out;
  color: #0b0c0f;
} */
.hero__lead {
  display: inline;
  width: 100%;
  font-size: 1.125em; /*18px */
  color: white;
  /* text-shadow: 0 0 6px rgba(255, 255, 255, 0.35); */
  font-weight: 400;
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 500px) {
  .hero__lead-additional {
    display: none;
  }
  .hero__icon {
    height: 40px;
  }
}

/* Grid cards */
.grid {
  display: grid;
  gap: 24px;
}
.grid--cards {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px) {
  .grid--cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .grid--cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.card__media img {
  aspect-ratio: 16/10;
  object-fit: contain;
  transition: all .3s ease-out;
}
.card__media.onyx img {
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: all .3s ease-out;
}
.card__media{
  overflow: hidden;
}
.card.reveal:hover .card__media img {
  transform: scale(1.05);
}
.card__body {
  padding: 18px;
}
.card__title {
  margin: 0 0 8px 0;
  font-size: 18px;
}
.spec {
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0;
  color: #4b5563;
}
.spec li {
  margin: 2px 0;
}
.card__cta {
  display: flex;
  justify-content: flex-start;
}

/* Features */
.grid--features {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px) {
  .grid--features {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .grid--features {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: #fff;
  border: 1px solid #e8ecf3;
  padding: 20px;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.feature__icon {
  font-size: 24px;
}
.feature__title {
  margin: 0.4rem 0;
}

/* Saving demo box */
.demo-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: #fff;
  border: 1px solid #e8ecf3;
  padding: 22px;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
@media (max-width: 800px) {
  .demo-box {
    grid-template-columns: 1fr;
  }
}
.bullets {
  margin: 0;
  padding-left: 18px;
}

/* Section head */
.section__head {
  margin-bottom: 18px;
}
.section__head h2 {
  margin: 8px 0 6px;
}
.muted {
  color: var(--muted);
}

/* Accordion */
.accordion {
  display: grid;
  gap: 12px;
}
.accordion__item {
  border: 1px solid #e8ecf3;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}
.accordion__btn {
  all: unset;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
}
.accordion__btn::after {
  content: "+";
  font-weight: 700;
  color: #6b7280;
  transition: transform 0.2s ease;
}
.accordion__btn[aria-expanded="true"]::after {
  transform: rotate(45deg);
}
.accordion__panel {
  padding: 0 18px 16px;
  color: #4b5563;
}

/* Notice */
.notice {
  background-color: #f5c800;
  color: #0b0c0f;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 16px 0;
}

/* Contacts */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.contact__list {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px 0;
}
.contact__media img {
  border-radius: 0;
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
}
.feature__header{
  font-weight: 700;
}

/* Footer */
.ftr {
  background: #0d0f13;
  color: #c9d1e4;
  padding: 28px 0;
  position: relative;
}
/* .ftr__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
} */
/* Mike: feb-26 Remake it in two rows */
.ftr__inner {
  display: flex;
  flex-direction: row;
}
#ftr__col1 {
  display: flex;
  flex-direction: column;
}
#ftr__col2 {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-end;
}
.ftr__meta {
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ftr__brand {
  font-weight: 800;
  letter-spacing: 0.14em;
}
#ftr__logo {
  height: 1rem;
  padding-right: 2rem;
  filter: invert(1) brightness(100%);
}
.ftr__link {
  color: #c9d1e4;
  text-decoration: none;
  margin-left: 16px;
}
.ftr__link:hover {
  color: #fff;
}
.ftr__copy {
  text-align: right;
  font-size: 0.75rem;
  opacity: 0.5;
}
@media (max-width: 780px) {
  .ftr__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ftr__copy {
    text-align: center;
  }
}

/* Reveal on scroll */
.has-js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.has-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* === Hero pair layout 2025-09-27 === */
.hero__copy {
  text-align: left;
}
.hero__copy p {
  margin: 0 0 14px 0;
}

.hero__pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 28px;
  margin: 10px 0 14px 0;
}
@media (min-width: 1024px) {
  .hero > .container {
    width: min(1500px, 96vw);
  }
  .hero--bg .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__copy {
    max-width: none;
    padding-inline: clamp(24px, 4vw, 64px);
  }
  /* .hero__title{ font-size: clamp(48px, 6vw, 96px); line-height:1.06; margin-bottom: 18px; } */
  .hero__pair {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Safe side paddings on small screens */
@media (max-width: 1023px) {
  .hero__copy {
    padding-inline: clamp(18px, 5vw, 28px);
  }
}

/* === Hero pair FIX 2025-09-27E (strong overrides) === */
.hero__copy {
  text-align: left;
}
.hero__copy p {
  margin: 0 0 14px 0;
}

.hero__pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 28px;
  margin: 10px 0 14px;
}
.hero__pair p {
  max-width: none;
}

@media (min-width: 1024px) {
  .hero > .container {
    width: min(1500px, 96vw);
  }
  .hero--bg .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__copy {
    max-width: none;
    padding-inline: clamp(24px, 4vw, 64px);
  }
  .hero__pair {
    display: grid !important;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr) !important;
    gap: clamp(24px, 6vw, 80px) !important;
    align-items: start;
  }
}

/* === Hero title single-line tuning — 2025-09-27 === */
@media (min-width: 1024px) {
  /* чуть шире контейнер внутри hero, чтобы заголовок помещался */
  .hero > .container {
    width: min(1600px, 96vw);
  }
  /* .hero__title{
    было до 96px — делаем умеренно
    font-size: clamp(36px, 3.4vw, 60px);
    line-height: 1.08;
    letter-spacing: 0.01em;
  } */
}
/* На очень широких экранах фиксируем без переносов */
@media (min-width: 1440px) {
  .hero__title {
    white-space: nowrap;
  }
}

/* === HYBRO 9.5 — HERO CANON (do not move above) === */
.hero > .container {
  width: min(1500px, 96vw);
}

/* Base hero text spacing */
.hero__copy {
  text-align: left;
  padding-inline: clamp(18px, 4vw, 64px);
}
.hero__copy p {
  margin: 0 0 14px 0;
}

/* Pair: stacked by default (mobile/tablet) */
.hero__pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 32px;
  margin: 10px 0 14px 0;
}

/* Desktop ≥1024px: two columns left/right */
@media (min-width: 1024px) {
  .hero--bg .hero__grid {
    grid-template-columns: 1fr;
  }
  /* .hero__title{ font-size: clamp(36px, 3.4vw, 60px); line-height:1.08; letter-spacing:.01em; } */
  .hero__pair {
    grid-template-columns: minmax(380px, 1fr) minmax(380px, 1fr);
    align-items: start;
    gap: clamp(24px, 6vw, 88px);
  }
  /* Hide burger on desktop & show inline nav (safety) */
}

/* === HERO two-column centering (2025-09-28, minimal) === */
.hero__center {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero__pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 56px;
  align-items: start;
}
.hero__pair .hero__col p {
  margin: 0;
}
@media (min-width: 1024px) {
  .hero__pair {
    grid-template-columns: 1fr 1fr;
  }
}

/* === HERO alignment hard lock === */
.hero > .container.hero__center {
  width: min(1120px, 92vw) !important;
  margin-inline: auto;
}
.hero__pair {
  max-width: min(1120px, 92vw);
  margin-inline: auto;
  justify-items: start;
}
@media (min-width: 1024px) {
  .hero__pair {
    grid-template-columns: 1fr 1fr;
    gap: 20px 56px;
  }
}

/* ===== Header: centered nav on desktop ===== */

/* Active nav underline accent */
.active {
  font-weight: 500;
}
.nav__link.active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* ===== Hero typography to match reference ===== */
/* .hero{ padding: 88px 0 110px; } */

/* tighten container width to align with reference */
.hero > .container.hero__center {
  width: min(1200px, 92vw) !important;
}

/* remove previous two-column rules for hero__pair on desktop */
@media (min-width: 1024px) {
  .hero__pair {
    grid-template-columns: 1fr !important;
  }
}

section#contacts {
  .contact__ctas {
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }
  .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: white;
  }
  .btn--whatsapp {
    background-color: #25d366;
  }
  .btn--whatsapp:hover {
    background-color: lch(from #25d366 calc(l - 10) c h);
  }
  .btn--telegram {
    background-color: #1d98dc;
  }
  .btn--telegram:hover {
    background-color: lch(from #1d98dc calc(l - 10) c h);
  }
}

/* In-text links — subtle underline by default */
.text-page a {
  position: relative;
  color: #2a64ab;
  text-decoration: none;
}

.text-page a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  opacity: 0.35; /* полупрозрачная по умолчанию */
  transform: scaleX(1); /* линия уже есть */
  transform-origin: left;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-page a:hover::after {
  opacity: 1; /* становится плотной */
}