/* /assets/css/main.css */
:root{
  --bg:#0f172a;          /* тёмный сланцевый фон */
  --text:#e5e7eb;        /* светлый текст */
  --muted:#94a3b8;
  --brand-start:#8b5cf6; /* фиолетовый */
  --brand-end:#22d3ee;   /* бирюзовый */
  --brand: linear-gradient(90deg,var(--brand-start),var(--brand-end));
  --container: 1200px;
  --radius: 16px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial;
  color:var(--text); background:var(--bg);
}

.container{
  width:100%; max-width:var(--container); margin-inline:auto; padding:0 16px;
}

.section{padding:72px 0}
.section--hero{padding:0}

.header{
  position:sticky; top:0; z-index:1000;
  backdrop-filter:saturate(180%) blur(10px);
  background:rgba(15,23,42,.6);
  border-bottom:1px solid rgba(148,163,184,.15);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between; height:64px;
}

.logo img{display:block; height:28px}

.nav{display:flex}
.nav__list{
  display:flex; align-items:center; gap:18px; list-style:none; margin:0; padding:0;
}
.nav__link{
  text-decoration:none; color:var(--text); opacity:.9;
  padding:8px 10px; border-radius:10px;
}
.nav__link:hover{opacity:1; background:rgba(148,163,184,.12)}
.nav__cta .btn{margin-left:6px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 16px; border-radius:999px; text-decoration:none; font-weight:600;
}
.btn--primary{
  color:#0b1020; background:var(--brand);
  box-shadow:0 6px 22px rgba(34,211,238,.25), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn--primary:hover{filter:brightness(1.05)}

/* Burger */
.burger{
  display:none; width:44px; height:44px; background:transparent; border:0; cursor:pointer;
}
.burger__bar{
  display:block; width:24px; height:2px; background:#e5e7eb; margin:5px auto; transition:.2s;
}

/* Mobile */
@media (max-width: 960px){
  .burger{display:block}
  .nav{
    position:fixed; inset:64px 0 auto 0; height:auto;
    background:rgba(15,23,42,.98); transform:translateY(-16px);
  }
  .nav[hidden]{display:none}
  .nav__list{
    flex-direction:column; align-items:stretch; gap:0; padding:8px 12px 16px;
  }
  .nav__link{padding:14px 12px; font-size:16px}
  .nav__cta .btn{width:100%; margin:4px 0 0}
}

/* Компенсация фиксированной шапки при скролле к якорям */
.section{scroll-margin-top:84px;}

/* === HERO === */
.hero{
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(34,211,238,.25), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(139,92,246,.20), transparent 60%),
    linear-gradient(180deg, #f8fafc, #eef6fb);
  color:#0b1020;
  padding:72px 0 64px;
}
.hero__wrap{
  display:grid; gap:32px; align-items:center;
  grid-template-columns: 1.1fr .9fr;
}
.hero__title{
  font-size: clamp(28px, 4vw, 44px);
  line-height:1.1; margin:0 0 12px; font-weight:800;
}
.hero__brand{
  background:var(--brand); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero__subtitle{
  margin:0 0 20px;
  font-size: clamp(16px, 2.2vw, 18px);
  color:#243041;
  max-width:560px;
}

.hero__formcard textarea{
  border-radius:12px;
  border:1px solid #cfd9e3;
  padding:8px 12px;
  resize:vertical;
  font-size:15px;
  font-family:inherit;
  color:#0b1020;
}
.hero__formcard textarea:focus{
  border-color:#8b5cf6;
  box-shadow:0 0 0 3px rgba(139,92,246,.18);
}
.hero__ctas{display:flex; gap:12px; flex-wrap:wrap; margin: 10px 0 16px}
.hero__cta{font-size:16px; padding:12px 18px}
.hero__cta--wa{
  background:#e8f5ed; border:1px solid #cce7d6;
}
.hero__cta--wa:hover{filter:brightness(1.03)}
.hero__bullets{margin:8px 0 0; padding:0; list-style:none; color:#3b495d}
.hero__bullets li{margin:6px 0; padding-left:20px; position:relative}
.hero__bullets li::before{
  content:""; position:absolute; left:0; top:.55em; width:8px; height:8px; border-radius:50%;
  background:var(--brand);
}

.hero__formcard{
  background:#fff; border:1px solid #e5edf4; border-radius:18px; padding:20px;
  box-shadow: 0 10px 30px rgba(16,24,40,.08);
}
.hero__formtitle{margin:0 0 10px; font-size:20px}
.leadform{display:grid; gap:12px}
.field{display:flex; flex-direction:column; gap:6px}
.field label{font-size:14px; color:#213047}
.field input[type="text"],
.field input[type="tel"]{
  height:44px; border-radius:12px; border:1px solid #cfd9e3; padding:0 12px; font-size:16px;
  outline:none; background:#fff; color:#0b1020;
}
.field input:focus{border-color:#8b5cf6; box-shadow:0 0 0 3px rgba(139,92,246,.18)}
.hint{color:#66768a; font-size:12px}

.btn--submit{width:100%; height:48px; font-size:16px}
.policy{margin:0; color:#66768a; font-size:12px}
.policy a{color:#385a9d}

.form-status{min-height:18px; font-size:14px; color:#1a3b2f}

.hp{display:none !important}

/* Адаптив */
@media (max-width: 960px){
  .hero__wrap{grid-template-columns:1fr}
  .hero{padding:56px 0 40px}
}

/* === BENEFITS === */
.section__header{text-align:center; margin-bottom:48px}
.section__title{
  font-size:clamp(26px,3vw,36px);
  font-weight:700;
  margin:0 0 10px;
}
.text-gradient{
  background:var(--brand);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.section__subtitle{
  color:var(--muted);
  font-size:16px;
  margin:0 auto;
  max-width:600px;
}

.benefits__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:32px;
}
.benefit{
  text-align:center;
  padding:24px 16px;
  border-radius:20px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  transition:.25s ease;
}
.benefit:hover{
  background:rgba(255,255,255,.06);
  transform:translateY(-4px);
}
.benefit__icon img{
  width:64px;
  height:64px;
  margin-bottom:16px;
}
.benefit__title{
  font-size:18px;
  font-weight:600;
  margin:0 0 8px;
}
.benefit__text{
  font-size:15px;
  color:var(--muted);
  line-height:1.4;
  margin:0 auto;
  max-width:260px;
}

/* адаптив */
@media(max-width:1024px){
  .benefits__grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .benefits__grid{grid-template-columns:1fr}
  .benefit{padding:20px 12px}
}
/* === MARKETPLACES === */
.marketplaces .section__header{margin-bottom:32px}

/* контейнер-свайдер */
.marketplaces__scroller{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:20px;
  overflow:visible; /* на десктопе без скролла */
}

/* карточка */
.mp-card{
  display:flex; align-items:center; gap:14px;
  padding:16px; border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  text-decoration:none; color:inherit;
  transition:transform .2s ease, background .2s ease, border-color .2s ease;
  min-height:88px;
}
.mp-card:hover{
  transform:translateY(-3px);
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.16);
}
.mp-card__logo img{display:block; height:32px; width:auto}
.mp-card__body{display:flex; flex-direction:column; gap:2px}
.mp-card__title{margin:0; font-size:16px; font-weight:700}
.mp-card__text{margin:0; font-size:14px; color:var(--muted)}
.mp-card__cta{
  margin-top:6px; font-size:13px; font-weight:600;
  padding:6px 10px; border-radius:999px; border:1px dashed rgba(255,255,255,.25);
  align-self:flex-start;
}

/* мобайл: горизонтальный свайп + снап */
@media (max-width: 960px){
  .marketplaces__scroller{
    display:flex; gap:12px;
    overflow-x:auto; overflow-y:hidden;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom:6px; /* небольшой отступ под скроллбар */
  }
  .mp-card{
    flex: 0 0 78%;
    scroll-snap-align:start;
  }
}
@media (max-width: 520px){
  .mp-card{flex-basis: 86%}
}
/* === CERTIFICATES === */
.certs__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:24px;
}
.cert{
  display:flex; flex-direction:column;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px; overflow:hidden;
}
.cert__thumb{
  background:#0b1020; aspect-ratio: 7 / 10; /* стабильно для превью */
  display:flex; align-items:center; justify-content:center;
}
.cert__thumb img{width:100%; height:100%; object-fit:cover}
.cert__body{padding:14px}
.cert__title{margin:0 0 6px; font-size:16px; font-weight:700}
.cert__meta{margin:0 0 12px; color:var(--muted); font-size:13px}
.cert__actions{display:flex; gap:8px; flex-wrap:wrap}
.cert__open{border:1px dashed rgba(255,255,255,.25)}

/* Модалка */
.cert-modal{
  border:0; padding:0; background:transparent;
}
.cert-modal::backdrop{
  background:rgba(0,0,0,.6);
}
.cert-modal__inner{
  width:min(920px, 92vw);
  background:#fff; color:#0b1020;
  border-radius:14px; overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}
.cert-modal__close{
  position:absolute; margin:10px; right:0; top:0;
  width:36px; height:36px; border:0; border-radius:50%;
  background:#0b1020; color:#fff; font-size:22px; cursor:pointer;
}
.cert-modal__title{
  margin:0; padding:14px 16px; font-size:16px; font-weight:700;
  border-bottom:1px solid #e8edf3;
}
.cert-modal__img{
  display:block; width:100%; height:auto; max-height:70vh; object-fit:contain; background:#f5f7fa;
}
.cert-modal__bar{
  display:flex; justify-content:flex-end; gap:10px; padding:12px 14px; border-top:1px solid #e8edf3;
}

/* адаптив */
@media (max-width: 1024px){
  .certs__grid{grid-template-columns: repeat(2, minmax(0,1fr))}
}
@media (max-width: 600px){
  .certs__grid{grid-template-columns: 1fr}
}
/* === CONTACTS === */
.contacts__wrap{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:32px;
  align-items:start;
}
.section__header--left{text-align:left}
.contacts__list{
  list-style:none; margin:16px 0 0; padding:0;
  display:grid; gap:10px;
}
.contacts__item{
  display:grid; grid-template-columns: 160px 1fr; gap:12px;
  padding:10px 0; border-bottom:1px solid rgba(255,255,255,.06);
}
.contacts__item:last-child{border-bottom:0}
.contacts__label{color:var(--muted); font-size:14px}
.contacts__value a{color:inherit; text-decoration:none; border-bottom:1px dashed rgba(255,255,255,.25)}
.contacts__value a:hover{border-bottom-color:transparent}
.contacts__actions{display:flex; gap:12px; margin:16px 0 8px; flex-wrap:wrap}
.contacts__legal{margin-top:8px; font-size:13px; color:var(--muted)}
.contacts__legal a{color:var(--text); opacity:.85; text-decoration:none}
.contacts__legal a:hover{opacity:1}
.contacts__legal .dot{margin:0 8px; opacity:.5}

.contacts__map{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px; overflow:hidden;
}
.contacts__map iframe{
  display:block; width:100%; height:340px; border:0;
  filter:saturate(1.05) contrast(1.02);
}
.contacts__maphint{
  margin:0; padding:8px 10px; font-size:12px; color:var(--muted); background:rgba(255,255,255,.02); border-top:1px solid rgba(255,255,255,.06);
}

/* адаптив */
@media (max-width: 960px){
  .contacts__wrap{grid-template-columns:1fr; gap:24px}
  .contacts__item{grid-template-columns: 130px 1fr}
}
@media (max-width: 560px){
  .contacts__item{grid-template-columns: 1fr; gap:4px}
}
/* === PRIVACY / POLICY PAGE === */
.page-policy{
  background:var(--bg);
  color:var(--text);
  padding-top:60px;
  padding-bottom:80px;
}
.policy__wrap{
  max-width:800px;
}
.btn--back{
  display:inline-block;
  margin-bottom:24px;
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  border:1px solid rgba(255,255,255,.25);
  padding:8px 14px;
  border-radius:999px;
  transition:.2s;
}
.btn--back:hover{
  background:rgba(255,255,255,.1);
}
.policy__header h1{
  margin:0 0 8px;
  font-size:clamp(28px,4vw,36px);
  font-weight:700;
}
.policy__header p{
  margin:0 0 24px;
  color:var(--muted);
  max-width:600px;
}
.policy__content h2{
  font-size:20px;
  margin:32px 0 10px;
  color:#cbd5e1;
}
.policy__content p, .policy__content li{
  line-height:1.6;
  font-size:16px;
  color:#e5e7eb;
}
.policy__content ul{
  margin:0 0 16px 20px;
  padding:0;
}
.policy__date{
  margin-top:24px;
  font-size:14px;
  color:var(--muted);
  text-align:right;
}
