/* ==========================================================================
   NaumovLabs Flash — новая тема (по макету от 26.09.2026)
   Подключается ПОСЛЕ style.css и переопределяет оформление главной.
   Префикс nx- — чтобы не пересекаться со старыми классами.
   ========================================================================== */

:root {
  --amber:        #EFC15F;
  --amber-deep:   #DFA53C;
  --amber-dark:   #B8791C;
  --amber-soft:   #FFEAB4;
  --amber-glow:   rgba(239, 193, 95, .38);

  --ink:          #1A2130;
  --ink-soft:     #59616F;
  --ink-dim:      #8A93A3;

  --paper:        #FAF9F7;
  --paper-2:      #F3F1EE;

  --card-1: linear-gradient(165deg, #F4F4F4 0%, #F0E6D6 62%, #EADCC4 100%);
  --card-2: linear-gradient(165deg, #F9F3F6 0%, #F2DCE4 62%, #EBCBD8 100%);
  --card-3: linear-gradient(165deg, #F4F4F2 0%, #E2EAE2 62%, #D3E0D6 100%);

  --shell-nx: 1360px;
  --ease-nx: cubic-bezier(.22, .68, .34, 1);
}

/* --------------------------------------------------------------------------
   ШАПКА
   -------------------------------------------------------------------------- */
.nx-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-block: .85rem;
  transition: background .3s var(--ease-nx), backdrop-filter .3s;
}
.nx-header.is-stuck {
  background: rgba(10, 15, 24, .82);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.nx-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nx-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;
}
.nx-brand img { width: 36px; height: 36px; display: block; }
.nx-brand b {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
}
.nx-brand__sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, .22);
  margin-inline: .35rem;
}
.nx-brand__sub {
  font-size: 1.02rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
}
.nx-nav {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 2.1vw, 1.9rem);
  margin-inline: auto;
}
.nx-nav a {
  font-size: .93rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .80);
  white-space: nowrap;
  transition: color .18s var(--ease-nx);
}
.nx-nav a:hover, .nx-nav a.is-active { color: #fff; }
.nx-actions { display: flex; align-items: center; gap: .55rem; flex: 0 0 auto; }

.nx-lang {
  position: relative;
}
.nx-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .78rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
}
.nx-lang__menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  z-index: 90;
  min-width: 205px;
  max-height: min(62vh, 430px);
  overflow-y: auto;
  padding: .4rem;
  border-radius: 16px;
  display: grid;
  gap: .1rem;
  background: linear-gradient(180deg, rgba(16, 22, 34, .98), rgba(9, 13, 22, .99));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 28px 60px -26px rgba(0, 0, 0, .95);
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s var(--ease-nx), visibility 0s linear .2s;
}
.nx-lang__menu.is-open { visibility: visible; opacity: 1; transition: opacity .2s, visibility 0s; }
.nx-lang__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  width: 100%;
  padding: .5rem .6rem;
  border-radius: 9px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .74);
  text-align: start;
}
.nx-lang__item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nx-lang__item.is-active { color: #1A2130; background: var(--amber); }
.nx-lang__item span { font-size: .68rem; opacity: .7; }

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .68rem 1.25rem;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .18s var(--ease-nx), box-shadow .18s var(--ease-nx), background .18s;
}
.nx-btn--amber {
  color: #22190A;
  background: linear-gradient(180deg, #F7D076, var(--amber-deep));
  box-shadow: 0 10px 24px -10px var(--amber-glow);
}
.nx-btn--amber:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px var(--amber-glow); }
.nx-btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .20);
}
.nx-btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.nx-btn--dark { color: #22190A; background: linear-gradient(180deg, #F7D076, var(--amber-deep)); }
.nx-btn--sm { padding: .55rem 1rem; font-size: .86rem; }
.nx-burger {
  display: none;
  width: 42px; height: 42px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .10);
}
.nx-burger i { display: block; width: 17px; height: 2px; background: #fff; border-radius: 2px; margin: 3px auto; }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.nx-hero {
  position: relative;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem);
  background-image: url("../img/bg-mountains.webp");
  background-size: cover;
  background-position: center 32%;
}
.nx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,9,16,.62) 0%, rgba(6,9,16,.30) 38%, rgba(250,249,247,0) 88%);
  pointer-events: none;
}
.nx-hero__in { position: relative; z-index: 2; }

.nx-eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  margin-bottom: .85rem;
}
.nx-title {
  font-size: clamp(2.3rem, 6.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.028em;
  color: #fff;
  max-width: 15ch;
}
.nx-title em {
  font-style: normal;
  background: linear-gradient(100deg, #FFD87A 10%, var(--amber-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nx-sub {
  margin-top: 1.05rem;
  max-width: 46ch;
  font-size: clamp(.95rem, 1.25vw, 1.08rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .84);
}

.nx-perks {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.7rem, 1.7vw, 1.5rem);
  /* строка не заходит под группу флешек справа */
  max-width: min(46%, 640px);
  margin-top: clamp(1.6rem, 3.4vw, 2.6rem);
  padding: 0;
  list-style: none;
}
.nx-perks li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
}
.nx-perks svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--amber); }

.nx-hero__drives {
  position: absolute;
  right: 6%;
  bottom: -18%;
  width: min(50vw, 720px);
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 50px 70px rgba(0, 0, 0, .55));
}
.nx-quote {
  position: absolute;
  right: 2.5%;
  top: 13%;
  z-index: 3;
  max-width: 15ch;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  font-weight: 600;
  line-height: 1.28;
  color: #fff;
  text-align: right;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .75);
}
.nx-quote em { font-style: normal; color: var(--amber); }

/* --------------------------------------------------------------------------
   СВЕТЛАЯ СЕКЦИЯ
   -------------------------------------------------------------------------- */
.nx-light { background: var(--paper); }
.nx-wrap {
  width: 94%;
  max-width: var(--shell-nx);
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.2vw, 1.6rem);
}
.nx-sect { padding-block: clamp(2.2rem, 5vw, 4rem); }

.nx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.06fr);
  gap: clamp(.9rem, 1.5vw, 1.35rem);
  align-items: stretch;
}

.nx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 22px;
  padding: clamp(1.1rem, 1.9vw, 1.6rem);
  overflow: hidden;
  box-shadow: 0 20px 44px -30px rgba(23, 20, 12, .5);
  transition: transform .22s var(--ease-nx), box-shadow .22s var(--ease-nx);
}
.nx-card:hover { transform: translateY(-4px); box-shadow: 0 30px 54px -30px rgba(23,20,12,.55); }
.nx-card--1 { background: var(--card-1); }
.nx-card--2 { background: var(--card-2); }
.nx-card--3 { background: var(--card-3); }

.nx-card__tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding: .28rem .68rem;
  border-radius: 999px;
  margin-bottom: .8rem;
  align-self: flex-start;
}
.nx-card--1 .nx-card__tag { color: #8A5B12; border: 1.5px solid #C79A46; }
.nx-card--2 .nx-card__tag { color: #8E1F4C; border: 1.5px solid #C4587F; }
.nx-card--3 .nx-card__tag { color: #1D4A3A; border: 1.5px solid #4E8570; }

.nx-card__title {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.1;
}
.nx-card__for {
  margin-top: .18rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.nx-card__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .48rem;
  position: relative;
  z-index: 2;
  max-width: 62%;
}
.nx-card__list li {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  font-size: .855rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.nx-card__list svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.nx-card--1 .nx-card__list svg { color: #B8862B; }
.nx-card--2 .nx-card__list svg { color: #A83565; }
.nx-card--3 .nx-card__list svg { color: #2C6B52; }

.nx-card__drive {
  position: absolute;
  right: -13%;
  top: 8%;
  width: 58%;
  max-width: 250px;
  pointer-events: none;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .28));
}
.nx-card__foot {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.nx-price { display: flex; align-items: baseline; gap: .38rem; }
.nx-price b {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}
.nx-price small { font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.nx-card__note {
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(26, 33, 48, .12);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  z-index: 2;
}
.nx-card__note svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* правая колонка */
.nx-side { display: grid; gap: clamp(.9rem, 1.5vw, 1.35rem); align-content: start; }
.nx-side__box {
  position: relative;
  border-radius: 22px;
  padding: clamp(1.1rem, 1.9vw, 1.5rem);
  overflow: hidden;
  box-shadow: 0 20px 44px -30px rgba(23, 20, 12, .5);
}
.nx-side__box--set { background: linear-gradient(160deg, #F6D98F 0%, #EFC15F 52%, #E0A94A 100%); }
.nx-side__box--brand { background: linear-gradient(160deg, #FFFFFF 0%, #F2F2F2 100%); }

.nx-flag {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .26rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #3A2A08;
}
.nx-side__title {
  font-size: clamp(1.15rem, 1.7vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 12ch;
}
.nx-side__sub { margin-top: .3rem; font-size: .84rem; font-weight: 600; color: rgba(26,33,48,.72); }
.nx-side__old { margin-top: .7rem; font-size: .82rem; font-weight: 600; color: rgba(26,33,48,.6); }
.nx-side__old s { opacity: .75; }
.nx-side__price { display: flex; align-items: flex-end; gap: .6rem; margin-top: .1rem; }
.nx-side__price b { font-size: clamp(2rem, 3.1vw, 2.7rem); font-weight: 800; letter-spacing: -.035em; color: var(--ink); line-height: 1; }
.nx-save {
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  padding: .22rem .55rem; border-radius: 999px;
  background: #3A2A08; color: #FFE9AE; margin-bottom: .3rem;
}
.nx-side__cta { margin-top: 1rem; width: 100%; }
.nx-side__mini { position: absolute; right: -4%; top: 26%; width: 46%; max-width: 130px; pointer-events: none; }
.nx-side__brand-drive { position: absolute; right: 6%; top: 18%; width: 26%; max-width: 84px; pointer-events: none; }
.nx-side__body { max-width: 62%; position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   КАК ЭТО РАБОТАЕТ
   -------------------------------------------------------------------------- */
.nx-how {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.6fr) minmax(0, 1.35fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}
.nx-how__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.025em; color: var(--ink); line-height: 1.1; }
.nx-how__sub { margin-top: .4rem; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.nx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.4rem); }
.nx-step { position: relative; padding-top: .2rem; }
.nx-step__ico {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1.5px solid rgba(26, 33, 48, .14);
  color: var(--ink); margin-bottom: .7rem;
}
.nx-step__n {
  position: absolute; left: 30px; top: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .68rem; font-weight: 800;
  background: var(--amber); color: #2A1D06;
}
.nx-step h3 { font-size: .98rem; font-weight: 700; color: var(--ink); }
.nx-step p { margin-top: .25rem; font-size: .84rem; line-height: 1.45; color: var(--ink-soft); }

.nx-offer {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: clamp(1rem, 1.8vw, 1.4rem);
  border-radius: 20px;
  background: #fff;
  border: 1.5px solid rgba(239, 193, 95, .55);
  box-shadow: 0 18px 40px -32px rgba(23, 20, 12, .5);
}
.nx-offer__ico { flex: 0 0 auto; color: var(--amber-deep); }
.nx-offer h3 { font-size: 1rem; font-weight: 800; color: var(--ink); }
.nx-offer p { margin-top: .35rem; font-size: .84rem; line-height: 1.5; color: var(--ink-soft); }
.nx-offer a { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; font-size: .84rem; font-weight: 700; color: var(--amber-dark); }

.nx-soon {
  position: relative;
  border-radius: 20px;
  padding: clamp(1rem, 1.8vw, 1.4rem);
  /* скругление краёв: overflow обрезает и фоновую картинку */
  overflow: hidden;
  background-color: #06080C;
  background-image: url(/img/megamind.webp);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  color: #fff;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nx-soon__flag { font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.nx-soon__title { margin-top: .4rem; font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 800; letter-spacing: -.02em; max-width: 9ch; }
.nx-soon p { margin-top: .35rem; font-size: .84rem; color: rgba(255, 255, 255, .78); max-width: 22ch; }
.nx-soon__cta { margin-top: .9rem; }
.nx-soon__img { position: absolute; right: -8%; top: 12%; width: 44%; max-width: 210px; opacity: .95; pointer-events: none; }

/* --------------------------------------------------------------------------
   ПОДВАЛ
   -------------------------------------------------------------------------- */
.nx-footer { background: #0A0E15; color: #fff; padding-block: clamp(1.2rem, 2.4vw, 1.8rem); }
.nx-footer__bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nx-footer__brand { display: inline-flex; align-items: center; gap: .6rem; }
.nx-footer__brand img { width: 32px; height: 32px; }
.nx-footer__slogan { font-size: .78rem; color: rgba(255, 255, 255, .62); }
.nx-footer__perks { display: flex; gap: clamp(1rem, 3vw, 2.6rem); margin-inline: auto; list-style: none; padding: 0; }
.nx-footer__perks li { display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; color: rgba(255, 255, 255, .78); }
.nx-footer__perks svg { width: 17px; height: 17px; color: var(--amber); }

/* --------------------------------------------------------------------------
   АДАПТИВ
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-side { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-how { grid-template-columns: minmax(0, 1fr); }
  .nx-hero__drives { width: min(78vw, 760px); bottom: -8%; }
  .nx-quote { display: none; }
}
@media (max-width: 1024px) {
  .nx-nav { display: none; }
  .nx-burger { display: grid; }
  .nx-title { max-width: 20ch; }
}
@media (max-width: 760px) {
  .nx-grid, .nx-side { grid-template-columns: minmax(0, 1fr); }
  .nx-hero__drives { position: static; width: 82%; margin: 1.6rem auto 0; display: block; }
  .nx-hero { background-position: center 22%; }
  .nx-perks { gap: .6rem 1.2rem; }
  .nx-perks li { font-size: .8rem; }
  .nx-steps { grid-template-columns: minmax(0, 1fr); }
  .nx-card__drive { position: static; width: 46%; margin: 1rem auto .4rem; display: block; }
  .nx-card__list { max-width: none; }
  .nx-side__mini, .nx-side__brand-drive, .nx-soon__img { display: none; }
  .nx-side__body { max-width: none; }
  .nx-footer__perks { margin-inline: 0; flex-wrap: wrap; }
  .nx-actions .nx-btn--amber { display: none; }
}

/* страховка: атрибут hidden обязан скрывать список,
   иначе display: grid из правила выше его перебивает */
.nx-lang__menu[hidden] { display: none; }
.nx-lang__menu:not(.is-open) { pointer-events: none; }
