:root{
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #0f172a;
  --muted: #475569;

  --sky: #1e40af;       /* “небо” */
  --sky-2: #0b2a6f;     /* глубокий */
  --cta: #f97316;       /* оранжевый */

  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 12px 35px rgba(2, 6, 23, 0.10);
  --radius: 16px;

  --container: 1120px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.skip-link:focus{ left: 12px; top: 12px; z-index: 9999; }

.container{
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.h1{ font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; margin: 0 0 12px; }
.h2{ font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; margin: 0 0 10px; }
.h3{ font-size: 18px; margin: 0 0 8px; }
.h3--small{ font-size: 16px; }
.lead{ font-size: 16px; color: var(--muted); margin: 0 0 18px; }
.muted{ color: var(--muted); margin: 0; }
.small{ font-size: 12px; }

.section{
  padding: 64px 0;
}
.section--alt{
  background: var(--bg-alt);
}
.section__head{
  margin-bottom: 22px;
}
.section__actions{
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner{
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto auto; /* brand | nav | cta (phone icon + burger hidden by default) */
  align-items: center;
  gap: 14px;
}
.brand__logo{
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav{
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav__link{
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 6px;
}
.nav__link:hover{ color: var(--text); }

.header__cta{
  display: flex;
  align-items: center;
  gap: 12px;
}
.phone{
  text-decoration: none;
  font-weight: 700;
}
.phone--big{
  font-size: 18px;
}

/* Mobile phone icon near burger (hidden on desktop) */
.header__phone-icon{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
}
.header__phone-icon svg{
  fill: var(--text);
}
.header__phone-icon:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(30,64,175,0.14);
  border-color: rgba(30,64,175,0.30);
}

/* Burger */
.burger{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}
.burger:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(30,64,175,0.14);
  border-color: rgba(30,64,175,0.30);
}
.burger__lines{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  position: relative;
}
.burger__lines::before,
.burger__lines::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}
.burger__lines::before{ top: -6px; }
.burger__lines::after{ top: 6px; }

/* Buttons */
.btn{
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: var(--cta);
  color: #000;
  box-shadow: 0 10px 22px rgba(249,115,22,0.25);
}
.btn--primary:hover{
  box-shadow: 0 14px 28px rgba(249,115,22,0.30);
}

.btn--secondary{
  background: var(--sky);
  color: #fff;
}
.btn--secondary:hover{
  background: var(--sky-2);
}

.btn--ghost{
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover{
  box-shadow: var(--shadow);
}

.btn--block{ width: 100%; }

.linklike{
  border: none;
  background: transparent;
  padding: 0;
  color: var(--sky);
  cursor: pointer;
  font-weight: 700;
}
.linklike:hover{ text-decoration: underline; }

/* Hero */
.hero{
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 48px 0;
}
.hero__bg{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.90), rgba(255,255,255,0.55)),
    url("/img/index_bass_potolok_optimized.webp") center/cover no-repeat;
}
.hero__content{
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.triggers{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.trigger{
  background: rgba(30,64,175,0.10);
  border: 1px solid rgba(30,64,175,0.18);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--sky-2);
}

/* Cards */
.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 24px rgba(2,6,23,0.06);
  overflow: hidden;
}
.card--form{ padding: 18px; }
.card__img{ width: 100%; height: auto; }
.card__body{ padding: 16px; }

.card--hover:hover{
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* Prices (simple formatting) */
.price{
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 14px;
}
.price__old{
  color: rgba(71,85,105,0.85);
  text-decoration: line-through;
}
.price__new{
  color: var(--text);
  font-weight: 900;
}

/* Forms */
.field{ margin-bottom: 12px; }
.label{ display: block; font-weight: 700; margin-bottom: 6px; }
.input{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  background: #fff;
}
.input:focus{
  border-color: rgba(30,64,175,0.35);
  box-shadow: 0 0 0 4px rgba(30,64,175,0.12);
}
.error{
  color: #b91c1c;
  font-size: 12px;
  min-height: 16px;
  margin-top: 6px;
}
.form-note{
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}

/* Grid */
.grid{
  display: grid;
  gap: 16px;
}
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--4{ grid-template-columns: repeat(4, 1fr); }

.tile{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.tile__body{ padding: 14px; }
.tile__img{ width: 100%; height: auto; }

.mini{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}
.mini__icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(30,64,175,0.10);
  color: var(--sky-2);
  font-weight: 900;
}

/* Gallery */
.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery__item{
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.gallery__item:hover{
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

/* Promo */
.promo{
  padding: 56px 0;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(249,115,22,0.20), transparent 55%),
              radial-gradient(1200px 600px at 100% 100%, rgba(30,64,175,0.22), transparent 55%),
              linear-gradient(180deg, #ffffff, #fff7ed);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.promo__inner{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}
.timer{
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
}
.timer__item span{
  font-weight: 900;
  font-size: 18px;
}
.timer__item small{
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.timer__sep{ font-weight: 900; color: var(--muted); }

/* Steps */
.steps{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.steps__item{
  margin: 10px 0;
}

/* Footer */
.footer{
  background: #0b1220;
  color: #e2e8f0;
  padding: 56px 0;
}
.footer .muted{ color: rgba(226,232,240,0.75); }
.footer__inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.footer__phone{ margin: 10px 0 16px; }
.messengers{ display: flex; gap: 10px; flex-wrap: wrap; }
.map{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(226,232,240,0.16);
}

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}
.modal.is-open{ display: block; }
.modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.62);
}
.modal__dialog{
  position: relative;
  width: min(520px, calc(100% - 28px));
  margin: 10vh auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.modal__close{
  position: absolute;
  right: 10px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.text p{ color: var(--muted); }

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2200;
}
.lightbox.is-open{ display: block; }
.lightbox__overlay{
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.70);
}
.lightbox__figure{
  position: relative;
  width: min(980px, calc(100% - 24px));
  margin: 6vh auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}
.lightbox__img{
  width: 100%;
  height: auto;
  background: #000;
}
.lightbox__close{
  position: absolute;
  right: 10px;
  top: 10px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(2,6,23,0.35);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
}

/* Pulse (vibro-CTA) for the mobile phone icon */
@keyframes phonePulse{
  0%   { transform: scale(0.85); opacity: 0; }
  25%  { opacity: 0.75; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Responsive */
@media (max-width: 1024px){
  .grid--4{ grid-template-columns: repeat(2, 1fr); }
  .grid--3{ grid-template-columns: repeat(2, 1fr); }
  .gallery{ grid-template-columns: repeat(2, 1fr); }

  .hero__content{ grid-template-columns: 1fr; }
  .promo__inner{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .header__inner{
    grid-template-columns: 1fr auto auto; /* бренд + телефон-иконка + бургер */
  }

  .header__cta{
    display: none;
  }

  .burger{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header__phone-icon{
    display: inline-flex;
  }

  /* subtle pulse ring on mobile only */
  .header__phone-icon::after{
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    border: 2px solid rgba(249,115,22,0.55);
    opacity: 0;
    animation: phonePulse 2.2s ease-out infinite;
    pointer-events: none;
  }

  .nav{
    position: fixed;
    top: var(--header-h);
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .nav.is-open{ display: flex; }
  .nav__link{ padding: 12px 10px; border-radius: 12px; }
  .nav__link:hover{ background: rgba(15,23,42,0.04); }

  .grid--3{ grid-template-columns: 1fr; }
  .grid--4{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: 1fr; }

  .section{ padding: 50px 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  .header__phone-icon::after{ animation: none !important; }
  .btn{ transition: none; }
  .card--hover:hover{ transform: none; }
  .gallery__item:hover{ transform: none; }
}


/* --- Conversion blocks (trust / CTA / process / FAQ / SEO prose) --- */
.trust{
  padding: 14px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.trust__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.trust__item{
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 20px rgba(2,6,23,0.05);
}
.trust__icon{
  width: 56px;
  min-width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  background: rgba(249,115,22,0.14);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.trust__text{
  display: grid;
  gap: 2px;
  line-height: 1.25;
}

.cta-inline{
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cta-inline--alt{ background: rgba(255,255,255,0.92); }
.cta-inline__text{ display: grid; gap: 2px; }

.process-steps{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.process-step{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: start;
}
.process-step__num{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(30,64,175,0.10);
  color: var(--sky-2);
  font-weight: 900;
  font-size: 18px;
}
.process-step__body{ display: grid; gap: 6px; }

.faq{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.faq__item{
  border-bottom: 1px solid var(--border);
}
.faq__item:last-child{ border-bottom: none; }
.faq__q{
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}
.faq__q::-webkit-details-marker{ display: none; }
.faq__q::after{
  content: "＋";
  float: right;
  color: rgba(15,23,42,0.55);
}
details[open] > .faq__q::after{ content: "−"; }
.faq__a{
  padding: 0 16px 14px;
  color: var(--muted);
}

.prose{
  max-width: 860px;
  line-height: 1.65;
  color: var(--text);
}
.prose p{ margin: 0 0 12px; }
.prose ul{ margin: 0 0 12px 18px; color: var(--muted); }
.prose li{ margin: 6px 0; }

.stickybar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: rgba(255,255,255,0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  display: none;
  gap: 10px;
  z-index: 50;
}
.stickybar__btn{
  flex: 1;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.stickybar__btn--ghost{
  background: #fff;
  color: var(--text);
}
.stickybar__btn--primary{
  background: var(--cta);
  color: #fff;
  border-color: rgba(249,115,22,0.65);
}

@media (max-width: 980px){
  .trust__grid{ grid-template-columns: repeat(2, 1fr); }
  .process-steps{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .stickybar{ display: flex; }
  body{ padding-bottom: 76px; }
  .trust__grid{ grid-template-columns: 1fr; }
  .cta-inline{ flex-direction: column; align-items: stretch; }
}

/* Privacy policy page + modal actions */
.policy-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.policy-page{
  min-height: 100vh;
  background: var(--bg-alt);
}
.policy-wrap{
  padding: 36px 0 56px;
}
.policy-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.policy-meta{
  margin: 0 0 16px;
  color: var(--muted);
}
.policy-card h2{
  margin-top: 22px;
}
.policy-card p,
.policy-card li{
  color: var(--muted);
  line-height: 1.65;
}
.policy-card ul,
.policy-card ol{
  padding-left: 20px;
}
a.linklike{
  color: var(--sky);
  font-weight: 700;
  text-decoration: none;
}
a.linklike:hover{ text-decoration: underline; }
