/* ============================================================
   MobiDiler — публичный сайт
   Дизайн-система: красный #ed111c, чёрный хедер, фон #fff.
   ============================================================ */

:root{
  --red:#ed111c;
  --red-dark:#c60d16;
  --black:#050505;
  --black-soft:#0b0b0d;
  --text:#10131a;
  --muted:#6d6d6d;
  --muted-2:#8b93a3;
  --line:#e6e6e6;
  --line-2:#eef1f5;
  --bg:#f6f7fa;
  --shadow:0 8px 18px rgba(0,0,0,.07);
  --shadow-lg:0 18px 42px rgba(17,23,38,.075);
  --radius:14px;
  --radius-lg:18px;
  --container:1200px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{height:100%}
body{
  font-family:Manrope,Arial,sans-serif;
  color:var(--text);
  background:#fff;
  font-size:15px;
  line-height:1.5;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
body > main{flex:1 0 auto;display:block}
body > footer{flex-shrink:0}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer}
h1,h2,h3,h4{margin:0;font-weight:900;letter-spacing:-.5px;line-height:1.1}
ul,ol{margin:0;padding:0;list-style:none}

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

/* ----------------- Header ----------------- */
.site-header{
  height:68px;
  background:linear-gradient(180deg,#101010,#050505);
  color:#fff;
  box-shadow:0 3px 18px rgba(0,0,0,.15);
}
.header-inner{
  height:68px;
  display:flex;
  align-items:center;
  gap:38px;
}
.brand img{width:164px;height:auto;display:block}
.nav{display:flex;align-items:center;gap:36px;margin-left:78px}
.nav a{
  font-size:13px;
  font-weight:800;
  color:#fff;
  white-space:nowrap;
  transition:color .2s ease;
}
.nav a:hover,.nav a.active{color:var(--red)}
.header-phone{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  white-space:nowrap;
}
.phone-mark{width:22px;height:22px;fill:#fff}
.phone-num{display:block;font-size:17px;font-weight:900;line-height:1}
.phone-sub{display:block;font-size:10.5px;color:#c9c9c9;margin-top:4px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:0;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .15s ease, background .2s ease;
}
.btn-primary{background:var(--red);color:#fff}
.btn-primary:hover{background:var(--red-dark)}
.btn-dark{background:var(--black);color:#fff}
.btn-dark:hover{background:#1a1a1a}
.btn-outline{
  background:#fff;
  color:var(--red);
  border:1.6px solid var(--red);
}
.btn-outline:hover{background:var(--red);color:#fff}
.header-btn{
  height:44px;
  min-width:155px;
  border-radius:7px;
  font-size:13px;
  padding:0 24px;
}

/* ----------------- Hero ----------------- */
.hero{
  padding:38px 0 12px;
  background:radial-gradient(circle at 75% 50%, #fff 0, #fff 38%, #f7f7f7 100%);
}
.hero-grid{
  display:grid;
  grid-template-columns:520px 540px;
  gap:44px;
  justify-content:start;
  align-items:center;
}
.hero h1{
  font-size:43px;
  line-height:1.08;
  margin:0 0 18px;
  font-weight:900;
  letter-spacing:-2.25px;
}
.hero h1 span{color:var(--red)}
.lead{
  font-size:19px;
  line-height:1.52;
  margin:0 0 24px;
  font-weight:500;
}
.benefits-list{
  display:grid;
  gap:16px;
  margin-bottom:28px;
}
.benefit{display:flex;align-items:center;gap:19px}
.benefit-icon{
  width:52px;
  height:52px;
  border-radius:50%;
  background:var(--red);
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.benefit-icon.dark{background:var(--black)}
.benefit-icon img{
  width:30px;
  height:30px;
  object-fit:contain;
  filter:brightness(0) invert(1);
}
.benefit p{margin:0;font-size:15.7px;line-height:1.38}
.benefit b{font-size:18px;font-weight:900;display:block;margin-bottom:2px}
.hero-actions{display:flex;gap:26px;align-items:center;flex-wrap:wrap}
.big{
  height:47px;
  width:230px;
  border-radius:9px;
  font-size:15.5px;
}
.video-link{
  display:grid;
  grid-template-columns:56px 1fr;
  column-gap:16px;
  color:#111;
  align-items:center;
  text-decoration:none;
}
.video-link span{
  grid-row:1/3;
  width:56px;
  height:56px;
  border:1.5px solid var(--red);
  border-radius:50%;
  display:grid;
  place-items:center;
}
.video-link span::before{
  content:"";
  border-left:13px solid #111;
  border-top:9px solid transparent;
  border-bottom:9px solid transparent;
  margin-left:4px;
}
.video-link b{font-size:15.5px;font-weight:900}
.video-link small{font-size:13.5px;color:#777}
.hero-visual{
  display:flex;
  align-items:stretch;
  justify-content:center;
  height:100%;
}
.hero-visual img{
  width:auto;
  height:100%;
  max-width:520px;
  max-height:none;
  object-fit:contain;
}

/* ----------------- Section heads ----------------- */
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin-bottom:21px;
  gap:20px;
}
.section-head h2,
.section-title{
  font-size:31px;
  line-height:1.08;
  font-weight:900;
  letter-spacing:-1px;
}
.section-head h2 span,
.section-title span{color:var(--red)}
.section-head a{
  color:var(--red);
  font-weight:900;
  font-size:14.5px;
}

/* ----------------- Tariff cards ----------------- */
.tariffs{padding:18px 0 28px}
.cards{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
}
.card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:20px 18px 21px;
  min-height:280px;
  box-shadow:var(--shadow);
  background:#fff;
  display:flex;
  flex-direction:column;
  transition:transform .2s ease, box-shadow .2s ease;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 30px rgba(0,0,0,.10);
}
.op{
  height:43px;
  display:flex;
  align-items:center;
  gap:10px;
}
.op-logo{display:block;object-fit:contain;object-position:left center}
.op-mts{width:90px;height:36px}
.op-megafon{width:121px;height:37px}
.op-tele2{width:94px;height:34px}
.op-yota{width:106px;height:37px}
.op-beeline{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:18px;
  font-weight:900;
}
.op-beeline em{
  width:25px;height:25px;border-radius:50%;
  background:repeating-linear-gradient(135deg,#151515 0 7px,#ffd121 7px 14px);
  display:block;
}
.op label{
  margin-left:auto;
  color:#fff;
  background:var(--red);
  border-radius:3px;
  padding:5px 11px;
  font-size:11px;
  line-height:1;
  font-weight:900;
}
.op label.yellow{background:#ffc400;color:#111}
.op label.green{background:#10ad5b}
.op label.black{background:#050505}
.op label.blue{background:#22aeea}
.card h3{
  font-size:31px;
  line-height:1;
  margin:20px 0 13px;
  font-weight:900;
  letter-spacing:-1px;
}
.card h3 small{font-size:20px;letter-spacing:0}
.card-meta{
  display:flex;
  gap:12px;
  margin:0 0 17px;
  font-size:13px;
  font-weight:800;
  color:#333;
}
.card-meta span{display:flex;gap:5px;align-items:center}
.card-meta svg{width:15px;height:15px;stroke:#333;fill:none;stroke-width:2}
.card-label{
  display:block;
  font-size:13.8px;
  margin:0 0 7px;
  color:var(--muted);
}
.card-price{
  display:block;
  color:var(--red);
  font-size:28px;
  line-height:1;
  margin-bottom:8px;
  font-weight:900;
  letter-spacing:-.5px;
}
.card-price small{
  font-size:14.5px;
  color:#111;
  font-weight:500;
  letter-spacing:0;
}
.card-benefit{
  color:var(--muted);
  font-size:13px;
  margin:0 0 14px;
  flex:1;
}
.card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.card-btn{
  height:38px;
  border-radius:6px;
  font-weight:900;
  font-size:13px;
  border:0;
  cursor:pointer;
}
.card-btn.more{
  background:#fff;
  border:1.6px solid var(--red);
  color:var(--red);
}
.card-btn.more:hover{background:var(--red);color:#fff}
.card-btn.apply{background:var(--red);color:#fff}
.card-btn.apply:hover{background:var(--red-dark)}

/* ----------------- Advantages ----------------- */
.advantages{padding:22px 0 25px}
.adv-box{
  border:1px solid var(--line);
  border-radius:14px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  padding:14px 28px;
  min-height:76px;
  align-items:center;
  background:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,.03);
}
.adv-box div{
  display:flex;
  gap:15px;
  align-items:center;
  border-right:1px solid #d9d9d9;
  padding-right:18px;
  min-width:0;
}
.adv-box div:last-child{border-right:0}
.adv-icon{
  width:64px;
  height:64px;
  flex:0 0 64px;
  display:block;
  object-fit:contain;
}
.adv-box p{margin:0;font-size:12.6px;line-height:1.22}
.adv-box b{font-size:15.2px;font-weight:900;line-height:1.1;display:inline-block;margin-bottom:2px}

/* ----------------- How ----------------- */
.how{padding:8px 0 54px}
.how h2{margin-top:0}
.steps{
  display:grid;
  grid-template-columns:minmax(160px,1fr) 84px minmax(160px,1fr) 84px minmax(160px,1fr) 84px minmax(160px,1fr);
  align-items:start;
  text-align:center;
  margin-top:34px;
}
.step{position:relative;min-height:188px;padding-top:0}
.step mark{
  position:absolute;
  left:8px;
  top:34px;
  width:31px;height:31px;
  background:var(--red);
  color:#fff;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:14px;
  z-index:2;
}
.step-img{
  width:92px;
  height:92px;
  display:block;
  margin:0 auto 16px;
  object-fit:contain;
}
.step b{display:block;margin-bottom:8px;font-size:15px;font-weight:900}
.step p{
  margin:0 auto;
  font-size:13px;
  line-height:1.38;
  max-width:172px;
}
.arrow{
  font-size:34px;
  line-height:1;
  color:#9d9d9d;
  margin-top:43px;
  font-weight:400;
}

/* ----------------- Trust / Avatars ----------------- */
.trust{padding:34px 0}
.trust-box{
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:28px 30px;
  display:flex;
  align-items:center;
  gap:24px;
  background:#fff;
  box-shadow:var(--shadow);
}
.avatars{display:flex}
.avatars img{
  width:54px;height:54px;border-radius:50%;
  border:3px solid #fff;object-fit:cover;
  margin-left:-12px;box-shadow:0 6px 14px rgba(31,41,55,.12);
}
.avatars img:first-child{margin-left:0}
.trust-text b{font-size:18px;display:block;margin-bottom:4px}
.trust-text p{margin:0;color:var(--muted);font-size:14px}

/* ----------------- CTA strip ----------------- */
.cta{
  background:var(--red);
  color:#fff;
  overflow:hidden;
}
.cta-inner{
  height:126px;
  display:flex;
  align-items:center;
  gap:35px;
}
.cta img.cta-sim{
  width:151px;
  height:126px;
  align-self:stretch;
  object-fit:contain;
  object-position:center;
  background:transparent;
}
.cta h2{
  font-size:29px;
  line-height:1.07;
  margin:0 0 7px;
  font-weight:900;
  letter-spacing:-.6px;
}
.cta p{font-size:15.7px;margin:0;line-height:1.35}
.cta-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:22px;
  flex-wrap:wrap;
}
.cta-actions .btn{
  width:250px;
  height:54px;
  border-radius:8px;
  margin-bottom:0;
  font-size:18px;
  flex-shrink:0;
}
.cta-security{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin:0;
  font-size:15px;
  font-weight:700;
  white-space:nowrap;
}
.cta-copy{min-width:0}
.cta-shield{width:24px;height:24px;display:block;flex:0 0 auto;object-fit:contain}

/* ----------------- Catalog page ----------------- */
body.catalog{background:var(--bg)}
.catalog-wrap{padding:28px 0 56px}
.catalog-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin-bottom:18px;
  gap:20px;
  flex-wrap:wrap;
}
.catalog-head h1{
  font-size:38px;
  line-height:1.05;
  font-weight:900;
  letter-spacing:-1px;
  margin:0;
}
.catalog-head h1 span{color:var(--red)}
.catalog-head p{margin:6px 0 0;color:var(--muted);max-width:560px}
.catalog-grid{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:24px;
  align-items:start;
}
.filters{
  background:#fff;
  border:1px solid var(--line-2);
  border-radius:var(--radius-lg);
  padding:22px;
  box-shadow:var(--shadow);
  position:sticky;
  top:90px;
}
.filters h3{
  font-size:15px;
  margin:0 0 14px;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:var(--muted-2);
}
.filter-group{margin-bottom:18px}
.filter-group:last-child{margin-bottom:0}
.filter-group label{display:flex;align-items:center;gap:9px;padding:6px 0;font-size:14px;font-weight:700;cursor:pointer}
.filter-group label input{width:18px;height:18px;accent-color:var(--red)}
.range{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.range input{
  width:100%;
  height:42px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 12px;
  font:700 14px Manrope,Arial,sans-serif;
  color:var(--text);
}
.sort-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
  flex-wrap:wrap;
  gap:10px;
}
.sort-bar select{
  height:42px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 14px;
  font:700 14px Manrope,Arial,sans-serif;
  background:#fff;
  color:var(--text);
}
.tariff-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.tariff-card{
  background:#fff;
  border-radius:14px;
  border:1px solid var(--line-2);
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
  box-shadow:var(--shadow);
}
.tariff-card .op{margin-bottom:4px}
.tariff-card-price{
  display:flex;
  align-items:end;
  gap:10px;
}
.tariff-card-price b{font-size:32px;color:var(--red);font-weight:900;line-height:1}
.tariff-card-price s{color:var(--muted-2);font-size:14px;font-weight:700}
.tariff-card-list{margin:0;padding:0;display:grid;gap:6px}
.tariff-card-list li{
  display:flex;
  justify-content:space-between;
  font-size:13.5px;
  font-weight:700;
  border-top:1px dashed var(--line);
  padding-top:8px;
}
.tariff-card-list li:first-child{border-top:0;padding-top:0}
.tariff-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto}
.btn-sm{
  height:42px;
  border-radius:9px;
  font-size:14px;
  font-weight:800;
  border:0;
  cursor:pointer;
}
.btn-ghost{background:#fff;color:var(--red);border:1.6px solid var(--red)}
.btn-ghost:hover{background:var(--red);color:#fff}
.btn-fill{background:var(--red);color:#fff}
.btn-fill:hover{background:var(--red-dark)}

.empty-state{
  background:#fff;
  border:1px dashed var(--line);
  border-radius:var(--radius-lg);
  padding:48px 24px;
  text-align:center;
  color:var(--muted);
}

/* ----------------- Modal ----------------- */
.modal{
  position:fixed;
  inset:0;
  background:rgba(8,10,16,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:100;
  padding:20px;
}
.modal.open{display:flex}
.modal-dialog{
  background:#fff;
  border-radius:22px;
  width:min(640px, 100%);
  max-height:90vh;
  overflow:auto;
  position:relative;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
  padding:30px;
}
.modal-close{
  position:absolute;
  right:18px;top:18px;
  width:36px;height:36px;
  border-radius:50%;
  background:#f0f2f7;
  border:0;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.modal-close::before,.modal-close::after{
  content:"";
  width:14px;height:2px;
  background:#222;
  position:absolute;
}
.modal-close::before{transform:rotate(45deg)}
.modal-close::after{transform:rotate(-45deg)}
.modal h2{margin:0 0 4px;font-size:22px}
.modal .op{margin-bottom:18px}
.modal-price{font-size:32px;color:var(--red);font-weight:900;margin-bottom:18px}
.modal-price small{color:#111;font-size:16px;font-weight:500;margin-left:6px}
.modal-list{display:grid;gap:10px;margin:0 0 18px;padding:0}
.modal-list li{
  display:flex;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  font-size:14px;
  font-weight:700;
}
.modal-list li span{color:var(--muted-2)}
.modal-cta{
  display:block;
  width:100%;
  height:54px;
  border-radius:9px;
  background:var(--red);
  color:#fff;
  font-weight:900;
  font-size:15px;
  border:0;
  text-align:center;
  line-height:54px;
  text-decoration:none;
}
.modal-cta:hover{background:var(--red-dark)}

/* Шапка модалки: логотип + оператор + название + бейдж ХИТ */
.modal-head{
  display:flex;align-items:center;gap:14px;
  margin:0 0 14px;padding:0 0 14px;border-bottom:1px solid var(--line);
}
.modal-head .m-logo{width:64px;height:36px;object-fit:contain;flex:0 0 auto}
.modal-head .m-operator{display:block}

/* Описание тарифа в модалке — красочный крупный блок */
.modal-desc{
  margin:0 0 20px;padding:0;
}
.modal-desc-inner{
  position:relative;
  background:linear-gradient(135deg,#fff7e6 0%,#ffe8eb 50%,#fff3f4 100%);
  border:1px solid #ffd0d4;
  border-left:5px solid var(--cat-red);
  border-radius:12px;
  padding:18px 20px;
  font-size:16px;
  line-height:1.65;
  color:#2a2030;
  font-weight:500;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 6px 18px rgba(237,17,28,.08);
}
.modal-desc-inner::before{
  content:"❝";
  position:absolute;
  left:14px;top:-8px;
  font-size:38px;line-height:1;
  color:var(--cat-red);
  font-family:Georgia,serif;
  opacity:.85;
}
.modal-desc-inner{text-indent:18px}
.modal-desc-inner b{color:var(--cat-red);font-weight:900}
.modal-desc-inner br+br{margin-top:6px;display:block}

/* ----------------- Tariff page ----------------- */
.tariff-page{padding:34px 0 56px;background:var(--bg)}
.crumbs{
  display:flex;flex-wrap:wrap;
  gap:6px;
  align-items:center;
  font-size:13px;color:var(--muted-2);
  margin-bottom:16px;
}
.crumbs a{color:var(--red);font-weight:800}
.tariff-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:24px;
  align-items:start;
}
.tariff-card-main,
.tariff-side{
  background:#fff;
  border-radius:22px;
  border:1px solid var(--line-2);
  box-shadow:var(--shadow-lg);
}
.tariff-card-main{padding:30px}
.tariff-hero{
  display:flex;
  gap:24px;
  align-items:start;
  margin-bottom:18px;
}
.tariff-logo{width:auto;height:54px;object-fit:contain}
.tariff-hero h1{font-size:34px;line-height:1.1;margin:0 0 6px}
.tariff-hero .op-sub{color:var(--muted);font-size:14px}
.tariff-price-row{
  display:flex;align-items:end;gap:14px;
  background:#fff4f5;border-radius:14px;
  padding:18px 22px;
  margin:18px 0;
}
.tariff-price-row .price{font-size:38px;color:var(--red);font-weight:900;line-height:1}
.tariff-price-row .price small{font-size:16px;color:#111;font-weight:500}
.tariff-price-row s{color:var(--muted-2);font-weight:700;font-size:16px}
.tariff-price-row .save{margin-left:auto;color:#fff;background:var(--red);border-radius:8px;padding:8px 14px;font-weight:900;font-size:14px}
.tariff-spec{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:0}
.tariff-spec li{
  display:flex;
  justify-content:space-between;
  padding:12px 14px;
  background:#f7f8fb;
  border-radius:10px;
  font-size:14px;
  font-weight:700;
}
.tariff-spec li span{color:var(--muted-2)}
.tariff-side{padding:24px;position:sticky;top:90px;display:flex;flex-direction:column;gap:18px}
.tariff-side .apply{
  display:block;
  width:100%;
  height:54px;
  border-radius:9px;
  background:var(--red);
  color:#fff;
  font-weight:900;
  font-size:15px;
  border:0;
  text-align:center;
  line-height:54px;
}
.tariff-side .apply:hover{background:var(--red-dark)}
.benefits-list-side{display:grid;gap:10px;margin:0;padding:0}
.benefits-list-side li{display:flex;gap:9px;align-items:flex-start;font-size:13.5px;color:#2b2f38}
.benefits-list-side li svg{width:18px;height:18px;stroke:var(--red);fill:none;stroke-width:2.4;flex:0 0 auto;margin-top:2px}

/* ----------------- Application page ----------------- */
body.app{background:var(--bg)}
.application-page{padding:18px 0 34px;background:linear-gradient(180deg,#fff 0,#f6f7fa 160px,#f6f7fa 100%)}
.app-page-title{font-size:30px;line-height:1.05;margin:0 0 18px;letter-spacing:-.7px}
.app-page-title span{color:var(--red)}
.app-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:20px;
  align-items:stretch;
}
.app-form{
  background:#fff;
  border-radius:18px;
  box-shadow:var(--shadow-lg);
  border:1px solid #eef1f5;
  padding:22px 26px 24px;
}
.app-step{position:relative;padding:0 0 18px 60px;margin-bottom:18px;border-bottom:1px solid var(--line-2)}
.app-step:last-of-type{border-bottom:0;margin-bottom:12px;padding-bottom:16px}
.app-step-number{
  position:absolute;left:0;top:0;
  width:30px;height:30px;border-radius:50%;
  background:var(--red);color:#fff;
  font-size:14px;font-weight:900;
  display:grid;place-items:center;
  box-shadow:0 8px 18px rgba(237,17,28,.16);
}
.app-step h2{margin:0 0 12px;font-size:17px;line-height:1.1;font-weight:900}
.app-bot{
  position:absolute;left:0;top:48px;
  width:38px;height:38px;border-radius:50%;
  background:#fff;border:4px solid #eef2f7;
  box-shadow:0 8px 16px rgba(17,23,38,.07);
  background-image:url('/assets/bot-assistant.svg');
  background-repeat:no-repeat;background-position:center;background-size:34px 34px;
}
.app-bubble{
  display:inline-flex;
  background:#f4f5f7;
  border-radius:15px;
  padding:9px 16px;
  margin-bottom:12px;
  font-size:11px;
  line-height:1.35;
  font-weight:800;
  color:#252a35;
}
.app-field{
  width:100%;max-width:100%;
  height:42px;
  border:1px solid #dde2ea;
  border-radius:8px;
  background:#fff;
  display:flex;align-items:center;gap:10px;
  padding:0 14px;
}
.app-field input{
  width:100%;border:0;outline:0;
  font:700 13px Manrope,Arial,sans-serif;
  color:#111827;
  background:transparent;
}
.app-field input::placeholder{color:#a1a7b2;font-weight:700}
.app-field svg{width:18px;height:18px;stroke:#495160;fill:none;stroke-width:2}
.phone-field{display:grid;grid-template-columns:86px 1fr 22px;gap:10px;max-width:100%}
.phone-code{
  width:86px;border:0;border-right:1px solid #dde2ea;
  background:#fff;font:900 12px Manrope,Arial,sans-serif;
  color:#111827;outline:0;padding:0 8px;text-align:center;
}
.app-note{display:flex;align-items:center;gap:9px;margin-top:8px;font-size:10px;color:#8b93a3;font-weight:700}
.app-note svg{width:13px;height:13px;stroke:#8992a3;fill:none;stroke-width:2}
.app-confirm{
  max-width:100%;
  height:56px;
  border:1px solid #dde2ea;
  border-radius:8px;
  background:#fff;
  display:grid;
  grid-template-columns:1fr 1fr 44px;
  align-items:center;
}
.app-confirm div{padding:0 16px}
.app-confirm div+div{border-left:1px solid #e3e7ee}
.app-confirm small{display:block;margin-bottom:3px;color:#8a93a3;font-size:10px;font-weight:700}
.app-confirm b{font-size:13px}
.app-edit{
  border:0;background:transparent;display:grid;place-items:center;cursor:pointer;
}
.app-edit svg{width:19px;height:19px;stroke:#111827;fill:none;stroke-width:2.2}
.app-submit{
  margin-top:12px;
  width:100%;
  height:48px;
  border:0;
  border-radius:8px;
  background:var(--red);
  color:#fff;
  font:900 16px Manrope,Arial,sans-serif;
  display:flex;align-items:center;justify-content:center;gap:10px;
  box-shadow:0 14px 26px rgba(237,17,28,.28);
  cursor:pointer;
}
.app-submit:hover{background:var(--red-dark)}
.app-submit svg{width:19px;height:19px;stroke:#fff;fill:none;stroke-width:2}
.app-submit:disabled{opacity:.6;cursor:wait}
.app-agree{
  display:flex;align-items:center;justify-content:center;gap:8px;
  color:#8b93a3;font-size:10.5px;line-height:1.4;font-weight:700;text-align:center;
  margin-top:8px;
}
.app-agree a{color:var(--red);font-weight:900;text-decoration:none}
.app-agree svg{width:13px;height:13px;stroke:#8b93a3;fill:none;stroke-width:2;flex:0 0 13px}

.app-side{display:flex;flex-direction:column;gap:12px;height:100%}
.app-side-card{
  background:#fff;
  border-radius:18px;
  border:1px solid #eef1f5;
  box-shadow:var(--shadow);
  padding:18px;
}
.tariff-visual{
  position:relative;
  height:128px;
  margin:-4px -4px 14px;
  border-radius:14px;
  background:#fff4f5;
  overflow:hidden;
}
.tariff-visual img{width:100%;height:100%;object-fit:cover;object-position:center center}
.tariff-visual .badge-raster{
  position:absolute;left:12px;bottom:10px;
  width:104px;border-radius:9px;
}
.app-side-card h3{margin:0 0 12px;font-size:16px;font-weight:900}
.side-logo img{height:26px;width:auto}
.side-title{
  display:flex;justify-content:space-between;align-items:end;
  border-bottom:1px solid var(--line);
  padding-bottom:10px;margin-top:8px;margin-bottom:8px;
}
.side-title h2{margin:0;font-size:21px;line-height:1}
.side-title b{font-size:13px;white-space:nowrap}
.side-row{
  min-height:33px;
  border-bottom:1px solid var(--line);
  display:grid;
  grid-template-columns:18px 1fr auto;
  gap:8px;align-items:center;
  font-size:11.5px;font-weight:900;
}
.side-row svg{width:17px;height:17px;stroke:#151a25;fill:none;stroke-width:2}
.app-side-card.trust-card{margin-top:auto}
.trust-row{display:flex;align-items:center;gap:0}
.avatar-img{
  width:34px;height:34px;border-radius:50%;
  border:2px solid #fff;object-fit:cover;
  margin-left:-8px;
}
.avatar-img:first-child{margin-left:0}
.trust-row p{margin:0 0 0 10px;font-size:11.5px;line-height:1.2;font-weight:900}

.app-success{
  background:#fff;
  border-radius:18px;
  box-shadow:var(--shadow-lg);
  padding:42px 30px;
  text-align:center;
  border:1px solid #eef1f5;
}
.app-success .check{
  width:80px;height:80px;border-radius:50%;
  background:#11a55c;color:#fff;
  display:grid;place-items:center;
  margin:0 auto 16px;
}
.app-success .check svg{width:40px;height:40px;stroke:#fff;fill:none;stroke-width:3.5}
.app-success h2{margin:0 0 8px;font-size:22px}
.app-success p{margin:0 0 22px;color:var(--muted)}

/* ----------------- Pages (CMS) ----------------- */
.simple-page{padding:34px 0 56px;background:var(--bg);min-height:60vh}
.simple-page h1{font-size:36px;line-height:1.1;margin:0 0 16px;letter-spacing:-1px}
.simple-page h1 span{color:var(--red)}
.simple-page .content{
  background:#fff;
  border-radius:var(--radius-lg);
  border:1px solid var(--line-2);
  padding:32px 36px;
  box-shadow:var(--shadow);
  font-size:15.5px;
  line-height:1.7;
  color:#2b2f38;
}
.simple-page .content h2{margin:24px 0 12px;font-size:22px;color:#111}
.simple-page .content h3{margin:18px 0 10px;font-size:18px;color:#111}
.simple-page .content ul,.simple-page .content ol{padding-left:24px;margin:12px 0}
.simple-page .content li{margin-bottom:8px}
.simple-page .content a{color:var(--red);font-weight:800}
.breadcrumbs{
  font-size:13px;color:var(--muted-2);
  margin-bottom:14px;
}
.breadcrumbs a{color:var(--red);font-weight:800}

/* ----------------- Forms (admin) ----------------- */
.admin-shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}
.admin-side{
  background:#070708;color:#fff;padding:22px 18px;
  display:flex;flex-direction:column;
}
.admin-side .brand img{width:148px;height:auto;margin-bottom:24px;display:block}
.admin-nav{display:flex;flex-direction:column;gap:4px;margin-bottom:32px}
.admin-nav a{
  display:flex;align-items:center;gap:10px;
  padding:10px 14px;border-radius:9px;
  color:#cdd0d8;font-size:14px;font-weight:700;
  text-decoration:none;
  transition:background .2s ease, color .2s ease;
}
.admin-nav a:hover{background:#1a1b22;color:#fff}
.admin-nav a.active{background:var(--red);color:#fff}
.admin-nav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.admin-side .me{
  margin-top:auto;display:flex;align-items:center;gap:10px;
  padding:10px;border-radius:10px;background:#16171d;font-size:13px;color:#d8dbe4;
}
.admin-side .me b{display:block;color:#fff}
.admin-side .me a{font-size:12px;color:var(--red)}
.admin-main{padding:28px 32px;background:var(--bg);min-height:100vh}
.admin-head{
  display:flex;justify-content:space-between;align-items:center;
  margin-bottom:24px;
}
.admin-head h1{font-size:24px;margin:0}
.admin-card{
  background:#fff;border:1px solid var(--line-2);border-radius:14px;
  padding:20px;box-shadow:var(--shadow);margin-bottom:18px;
}
.admin-card h2{margin:0 0 14px;font-size:18px}
.admin-table{width:100%;border-collapse:collapse;font-size:14px}
.admin-table th,.admin-table td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.admin-table th{font-size:12px;color:var(--muted-2);text-transform:uppercase;font-weight:800;letter-spacing:.5px;background:#f9fafb;white-space:nowrap}
.admin-table tr:hover td{background:#fafbfd}

.admin-table th:last-child,
.admin-table td:last-child{
  position:sticky;right:0;background:#fff;
  box-shadow:-8px 0 12px -8px rgba(0,0,0,.18);
  z-index:2;
}
.admin-table tr:hover td:last-child{background:#fafbfd}
.admin-table th:last-child{background:#f9fafb}

/* ========== Админ-топбар (по умолчанию скрыт на десктопе) ========== */
.admin-topbar{display:none;align-items:center;gap:10px;background:#070708;color:#fff;padding:10px 14px;position:sticky;top:0;z-index:50;border-bottom:1px solid #1a1b22}
.admin-hamburger{display:none;width:40px;height:40px;border:0;background:transparent;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:0;border-radius:8px;flex-shrink:0}
.admin-hamburger span{display:block;width:22px;height:2px;background:#fff;border-radius:2px;transition:transform .2s,opacity .2s}
.admin-hamburger.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.admin-hamburger.is-open span:nth-child(2){opacity:0}
.admin-hamburger.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.admin-topbar-brand{display:none;align-items:center}
.admin-topbar-brand img{height:26px;width:auto;display:block}
.admin-topbar-title{flex:1;font-size:15px;font-weight:800;letter-spacing:-.3px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-topbar-user{display:flex;align-items:center;gap:8px;flex-shrink:0}
.admin-topbar-user .admin-avatar{width:30px;height:30px;border-radius:50%;background:var(--red);display:grid;place-items:center;color:#fff;font-weight:900;font-size:13px}
.admin-topbar-user .admin-topbar-name{display:none;font-size:13px;color:#fff;font-weight:700}
.admin-topbar-user .admin-topbar-logout{display:none;color:var(--red);font-size:12px;font-weight:700;text-decoration:none;border:1px solid var(--red);padding:5px 10px;border-radius:7px;margin-left:6px}
.admin-side-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:40;opacity:0;pointer-events:none;transition:opacity .25s}
.admin-side-backdrop.is-open{opacity:1;pointer-events:auto}
.badge-pill{display:inline-block;padding:3px 10px;border-radius:99px;font-size:11px;font-weight:800;background:#eef2f7;color:#1a3654}
.badge-pill.red{background:#ffeef0;color:#c00d1a}
.badge-pill.green{background:#e6f7ee;color:#0f7c3a}
.badge-pill.yellow{background:#fff7e0;color:#a26e00}
.badge-pill.gray{background:#eee;color:#666}
.badge-pill.blue{background:#e6f1ff;color:#1e40af}

/* Стили для perm-чекбоксов на странице пользователей */
.perm-item{transition:border-color .15s,background .15s}
.perm-item:hover{border-color:var(--red)!important;background:#fff5f6!important}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.form-row.one{grid-template-columns:1fr}
.form-row label{display:flex;flex-direction:column;font-size:13px;font-weight:700;color:var(--muted-2);text-transform:uppercase;letter-spacing:.4px;gap:6px}
.form-row input,.form-row select,.form-row textarea{
  width:100%;border:1px solid var(--line);border-radius:9px;
  padding:10px 14px;font:600 14px Manrope,Arial,sans-serif;color:var(--text);
  background:#fff;
}
.form-row input[type="checkbox"]{width:auto;padding:0;height:18px;width:18px;accent-color:var(--red)}
.form-row textarea{min-height:90px;resize:vertical}
.form-row .check-label{
  flex-direction:row;align-items:center;gap:9px;font-size:14px;text-transform:none;letter-spacing:0;color:var(--text);font-weight:700;
}
.form-actions{display:flex;gap:10px;align-items:center;margin-top:8px}
.btn-link{
  background:transparent;border:0;color:var(--red);font-weight:900;font-size:13px;cursor:pointer;
  padding:8px 6px;min-height:32px;display:inline-flex;align-items:center;
}
.admin-table .btn-link{padding:12px 14px;min-height:44px;border-radius:8px;color:var(--red);text-decoration:none;display:inline-flex;align-items:center}
.admin-table .btn-link:hover{background:#ffeef0}
.btn-danger{background:#dc2626}
.btn-danger:hover{background:#b91c1c}
.flash{padding:14px 18px;border-radius:10px;margin-bottom:18px;font-weight:700;font-size:14px}
.flash.ok{background:#e6f7ee;color:#0f7c3a;border:1px solid #b6e6c8}
.flash.err{background:#ffeef0;color:#c00d1a;border:1px solid #fbcaca}

/* ----------------- Login ----------------- */
.login-page{
  min-height:100vh;display:grid;place-items:center;
  background:linear-gradient(135deg,#0d0e12 0%,#1a1d2c 100%);
  padding:20px;
}
.login-box{
  width:100%;max-width:380px;
  background:#fff;border-radius:18px;
  padding:34px 28px;
  box-shadow:0 30px 60px rgba(0,0,0,.5);
}
.login-box h1{margin:0 0 6px;font-size:26px}
.login-box p{margin:0 0 22px;color:var(--muted);font-size:14px}
.login-box .form-row{margin-bottom:12px}
.login-box .btn-primary{width:100%;height:48px;border-radius:10px;font-size:15px;margin-top:8px}

/* ----------------- Operator page ----------------- */
.operator-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;
}
.operator-card{
  display:flex;flex-direction:column;gap:10px;
  background:#fff;border:1px solid var(--line-2);border-radius:14px;
  padding:20px;align-items:flex-start;text-decoration:none;color:inherit;
  transition:transform .2s ease, box-shadow .2s ease;
}
.operator-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,0,0,.08)}
.operator-card img{height:36px;width:auto;object-fit:contain}
.operator-card h3{margin:0;font-size:18px}
.operator-card p{margin:0;font-size:13.5px;color:var(--muted);line-height:1.4}

/* ----------------- Footer ----------------- */
footer{
  height:68px;
  background:#050505;color:#fff;
}
.footer-inner{
  height:100%;
  display:flex;align-items:center;gap:82px;
}
.footer-inner .brand img{width:174px;height:auto}
.footer-inner p,.footer-inner a{
  font-size:11.5px;color:#fff;text-decoration:none;white-space:nowrap;
}

/* ----------------- Responsive ----------------- */
@media (min-width:1500px){
  :root{--container:1460px}
  .container{width:min(92vw,1460px)}
  .hero h1{font-size:50px}
  .lead{font-size:21px}
  .hero-visual img{max-width:540px}
  .section-head h2,.how h2{font-size:36px}
  .adv-box{padding-top:15px;padding-bottom:15px}
  .adv-icon{width:68px;height:68px;flex-basis:68px}
  .big{height:48px;width:235px}
  .header-btn{height:46px;min-width:170px}
}
@media (max-width:1160px){
  .container{width:min(944px,calc(100% - 48px))}
  .nav{gap:22px;margin-left:auto}
  .header-phone{display:none}
  .hero-grid{grid-template-columns:455px 455px;gap:28px}
  .hero-visual img{max-width:455px}
  .tariff-grid{grid-template-columns:repeat(2,1fr)}
  .tariff-layout{grid-template-columns:1fr 320px}
  .app-layout{grid-template-columns:minmax(0,1fr) 320px}
  .catalog-grid{grid-template-columns:240px 1fr}
}
/* По умолчанию гамбургер скрыт (десктоп); виден только на мобильных через @media ниже */
.nav-toggle{
  display:none;
  width:42px;height:42px;
  border:0;background:transparent;
  border-radius:8px;
  padding:0;
  align-items:center;justify-content:center;
  flex-direction:column;gap:5px;
  cursor:pointer;
  margin-left:auto;
}
@media (max-width:920px){
  .nav{display:none}
  .nav-toggle{display:flex}
  .hero{padding-bottom:22px}
  .hero-grid{grid-template-columns:1fr;align-items:start}
  .hero-visual{order:-1;max-width:520px;margin:auto;height:auto}
.hero-visual img{height:auto;max-height:430px}
  .cards{grid-template-columns:repeat(2,1fr)}
  .adv-box{grid-template-columns:1fr 1fr;gap:20px;padding:18px 24px}
  .adv-box div{border-right:0}
  .adv-icon{width:58px;height:58px;flex-basis:58px}
  .steps{grid-template-columns:1fr;gap:30px}
  .arrow{display:none}
  .step mark{left:calc(50% - 76px)}
  .cta-inner{height:auto;padding:26px 0;flex-wrap:wrap}
  .cta-actions{margin-left:0;justify-content:flex-start;flex-wrap:wrap;gap:18px}
  .cta img.cta-sim{height:90px;width:130px}
  .tariff-grid{grid-template-columns:repeat(2,1fr)}
  .catalog-grid{grid-template-columns:1fr}
  .filters{position:static}
  .tariff-layout{grid-template-columns:1fr}
  .app-layout{grid-template-columns:1fr}
  .app-side{order:2}
  .admin-shell{grid-template-columns:1fr;overflow-x:hidden}
  .admin-main{min-width:0}
  /* Топбар виден на планшетах/мобильных */
  .admin-topbar{display:flex}
  .admin-hamburger{display:flex}
  .admin-topbar-brand{display:flex}
  /* Сайдбар становится выдвижной шторкой */
  .admin-side{
    position:fixed;top:0;left:0;bottom:0;width:280px;max-width:85vw;
    z-index:60;overflow-y:auto;
    transform:translateX(-100%);transition:transform .25s ease;
    box-shadow:6px 0 24px rgba(0,0,0,.25);
  }
  .admin-side.is-open{transform:translateX(0)}
  .admin-side-backdrop{display:block}
  .admin-main{padding:14px;min-height:calc(100vh - 60px)}
  .admin-head h1{font-size:20px}
  .admin-card{padding:14px;border-radius:12px}
  .admin-card h2{font-size:16px}
  .form-row{grid-template-columns:1fr}
  .operator-grid{grid-template-columns:repeat(2,1fr)}
  /* Таблицы в админке: горизонтальный скролл вместо выхода за границы */
  .admin-card{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .admin-card .admin-table{display:table;min-width:100%}
  .admin-table th,.admin-table td{padding:10px 10px;font-size:13px;white-space:nowrap}
  /* На мобиле: последняя колонка (Действия) прилипает к правому краю,
     чтобы кнопки «Редактировать/Удалить» всегда были под пальцем */
  .admin-table th:last-child,
  .admin-table td:last-child{position:sticky;right:0;background:#fff;z-index:2;box-shadow:-8px 0 14px -6px rgba(0,0,0,.18)}
  .admin-table th:last-child{background:#f9fafb}
  .admin-table tr:hover td:last-child{background:#fafbfd}
  .admin-topbar-user .admin-topbar-name,.admin-topbar-user .admin-topbar-logout{display:none}
}
@media (max-width:620px){
  .container{width:calc(100% - 32px)}
  .site-header{height:58px}
  .header-inner{height:58px;gap:16px}
  .brand img{width:138px}
  .header-btn{display:none}
  .hero{padding:30px 0 22px}
  .hero h1{font-size:32px;letter-spacing:-1.3px}
  .lead{font-size:17px}
  .hero-actions{flex-direction:column;align-items:flex-start}
  .cards{grid-template-columns:1fr}
  .adv-box{grid-template-columns:1fr}
  /* CTA на мобильных — стек по колонкам, ничего не вылезает */
  .cta-inner{flex-direction:column;align-items:flex-start;gap:14px;padding:24px 0}
  .cta img.cta-sim{height:84px;width:118px;align-self:flex-start}
  .cta h2{font-size:24px;margin-bottom:4px}
  .cta p{font-size:14.5px}
  .cta-copy{width:100%}
  .cta-actions{flex-direction:column;align-items:stretch;width:100%;gap:12px;margin-left:0}
  .cta-actions .btn{width:100%;height:48px;font-size:16px}
  .cta-security{justify-content:flex-start;font-size:13.5px}
  .footer-inner{gap:20px;flex-wrap:wrap;height:auto;padding:20px 0}
  footer{height:auto}
  .footer-inner .brand img{width:150px}
  .tariff-grid{grid-template-columns:1fr}
  .tariff-price-row{flex-wrap:wrap}
  .application-page{padding:22px 0 28px;background:#fff}
  .app-page-title{font-size:28px;margin-bottom:18px}
  .app-form{padding:24px 16px;border-radius:16px}
  .app-step{padding-left:56px;margin-bottom:24px;padding-bottom:24px}
  .app-step-number{width:32px;height:32px;font-size:15px}
  .app-bot{width:42px;height:42px;top:60px}
  .app-step h2{font-size:20px}
  .app-bubble{font-size:13px;padding:12px 16px}
  .app-field{height:52px}
  .phone-code{font-size:13px;padding-right:8px}
  .app-confirm{height:auto;grid-template-columns:1fr 42px}
  .app-confirm div{padding:13px 14px}
  .app-confirm div+div{border-left:0;border-top:1px solid #e3e7ee;grid-column:1/2}
  .app-edit{grid-column:2;grid-row:1/3}
  .app-submit{height:58px;font-size:18px}
  .tariff-visual{height:190px}
  .simple-page h1{font-size:26px}
  .simple-page .content{padding:22px 18px}
  .operator-grid{grid-template-columns:1fr}
}

/* ============================================================
   Главная — карточки ХИТ (sample design 1:1)
   ============================================================ */
.cards--hits{
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:14px;
}
.cards--hits .card{
  padding:18px 18px 18px;
  min-height:320px;
  max-width:calc(0.6 * 320px);
  margin-left:auto;
  margin-right:auto;
}
.cards--hits .card h3{
  font-size:30px;
  margin:14px 0 8px;
}
.cards--hits .card-meta-inline{
  margin:0 0 14px;
  display:flex;
  gap:18px;
  font-size:13px;
  font-weight:800;
  color:#111;
}
.cards--hits .card-meta-inline b{font-weight:900}
.cards--hits .card .card-benefit{
  font-size:13px;
  color:#6d6d6d;
  margin:0 0 16px;
}
.cards--hits .card > span:nth-of-type(1){
  font-size:13px;
  color:#6d6d6d;
  display:block;
  margin-top:auto;
}
.cards--hits .card > strong{
  display:block;
  font-size:26px;
  font-weight:900;
  color:var(--red);
  letter-spacing:-.5px;
  margin:4px 0 6px;
}
.cards--hits .card > strong small{
  font-size:13px;
  color:#111;
  font-weight:600;
  letter-spacing:0;
  margin-left:4px;
}
.cards--hits .card-btn.more{
  background:#fff;
  border:1.5px solid var(--red);
  color:var(--red);
  height:38px;
  border-radius:6px;
  font-weight:900;
  font-size:13px;
}
.cards--hits .card-btn.more:hover{background:var(--red);color:#fff}

/* На узких экранах карточки растягиваются на всю ширину ряда (auto-fit сам разрулит) */
@media(max-width:520px){
  .cards--hits .card{padding:16px 16px;max-width:100%;margin-left:0;margin-right:0}
}

/* ============================================================
   Каталог — новый дизайн (sample 1:1)
   ============================================================ */
:root{
  --cat-red:#ed111c;
  --cat-black:#070707;
  --cat-text:#111421;
  --cat-muted:#7b7e8a;
  --cat-line:#e8eaf0;
  --cat-bg:#f7f8fb;
}
body.catalog-page{background:var(--cat-bg);color:var(--cat-text)}
.catalog-main{padding:24px 0 60px}
.catalog-title{font-size:36px;line-height:1.1;margin:0 0 12px;font-weight:900;letter-spacing:-1px}
.breadcrumbs{display:flex;gap:10px;align-items:center;color:#9aa0aa;font-size:13px;margin-bottom:18px}
.breadcrumbs a{color:#9aa0aa;text-decoration:none}

.catalog-layout{
  display:grid;
  grid-template-columns:278px 1fr;
  gap:24px;
  align-items:start;
}

/* Левая панель фильтров */
.filter-panel{
  position:sticky;
  top:84px;
  background:#fff;
  border:1px solid #e6e8ee;
  border-radius:12px;
  padding:18px 18px 20px;
  box-shadow:0 14px 35px rgba(19,28,51,.06);
  max-height:calc(100vh - 96px);
  overflow:auto;
}
.range-label{font-size:14px;font-weight:900;margin:0 0 12px}
.range-slider{position:relative;height:24px;margin:8px 0}
.range-slider input[type=range]{
  position:absolute;left:0;right:0;top:7px;width:100%;
  pointer-events:none;-webkit-appearance:none;background:transparent;
}
.range-slider input::-webkit-slider-thumb{
  -webkit-appearance:none;width:16px;height:16px;border-radius:50%;
  background:#fff;border:2px solid var(--cat-red);pointer-events:auto;cursor:pointer;
}
.range-slider input::-moz-range-thumb{
  width:16px;height:16px;border-radius:50%;
  background:#fff;border:2px solid var(--cat-red);pointer-events:auto;cursor:pointer;
}
.range-track{position:absolute;left:0;right:0;top:14px;height:3px;background:#e6e8ee;border-radius:999px}
.range-fill{position:absolute;top:14px;height:3px;background:var(--cat-red);border-radius:999px}
.range-current{font-weight:900;margin:4px 0 10px;font-size:14px}
.range-values{display:flex;gap:10px;margin-bottom:18px}
.range-values label{
  height:32px;border:1px solid #e3e6ed;border-radius:5px;background:#fff;
  display:flex;align-items:center;justify-content:space-between;padding:0 10px;width:50%;
  font-size:13px;font-weight:800;
}
.range-values input{border:0;outline:none;width:70px;font:inherit;background:transparent;font-weight:900}

.filter-section{border-top:1px solid #eef0f4;padding-top:12px;margin-top:12px}
.filter-section summary{
  list-style:none;font-size:13px;font-weight:900;
  display:flex;justify-content:space-between;cursor:pointer;margin-bottom:8px;
}
.filter-section summary::-webkit-details-marker{display:none}
.filter-section summary:after{content:"⌄";font-size:16px;color:#6a7080;line-height:1}
.filter-row{
  display:flex;align-items:center;gap:9px;font-size:13px;margin:6px 0;
  color:#222935;cursor:pointer;font-weight:700;
}
.filter-row input{width:14px;height:14px;accent-color:var(--cat-red)}
.sale-badge{font-size:9px;color:#fff;background:#ff3040;border-radius:999px;padding:2px 6px;margin-left:6px;font-weight:900}

@media(min-width:921px){
  .filter-panel{max-height:calc(100vh - 96px);overflow:auto}
}

/* Контент каталога */
.catalog-content{min-width:0}

/* Табы операторов */
.operator-tabs{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:24px}

/* Кнопка "Фильтры" для мобильных (на десктопе скрыта) */
.filter-toggle{display:none}

/* ----------------- Mobile nav (гамбургер) ----------------- */
.nav-toggle-bar{
  display:block;width:22px;height:2px;
  background:#fff;border-radius:1px;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2){opacity:0}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.mobile-nav{
  position:fixed;inset:0;
  z-index:200;
  pointer-events:none;
}
.mobile-nav-backdrop{
  position:absolute;inset:0;
  background:rgba(8,10,16,.55);
  opacity:0;
  transition:opacity .25s ease;
}
.mobile-nav-panel{
  position:absolute;top:0;right:0;bottom:0;
  width:min(320px,86vw);
  background:#fff;
  box-shadow:-20px 0 60px rgba(0,0,0,.25);
  padding:22px 22px 28px;
  display:flex;flex-direction:column;gap:18px;
  transform:translateX(100%);
  transition:transform .28s ease;
  overflow:auto;
}
.mobile-nav.is-open{pointer-events:auto}
.mobile-nav.is-open .mobile-nav-backdrop{opacity:1}
.mobile-nav.is-open .mobile-nav-panel{transform:translateX(0)}
.mobile-nav-head{
  display:flex;align-items:center;justify-content:space-between;
  padding-bottom:14px;border-bottom:1px solid var(--line);
}
.mobile-nav-head .brand img{width:144px;height:auto;display:block}
.mobile-nav-close{
  width:36px;height:36px;border:0;background:#f0f2f7;border-radius:50%;
  font-size:24px;line-height:1;color:#222;cursor:pointer;
}
.mobile-nav-close:hover{background:#e6e9f1}
.mobile-nav-list{display:flex;flex-direction:column;gap:4px;padding:0;margin:0}
.mobile-nav-list a{
  display:flex;align-items:center;
  padding:14px 12px;border-radius:10px;
  font-size:15px;font-weight:800;color:#0c1220;
  text-decoration:none;
  transition:background .15s ease, color .15s ease;
}
.mobile-nav-list a:hover,.mobile-nav-list a.active{background:#f3f5fa;color:var(--red)}
.mobile-nav-list a.primary{
  background:linear-gradient(135deg,#ed111c,#ff4655);
  color:#fff;
  box-shadow:0 8px 18px rgba(237,17,28,.28);
}
.mobile-nav-list a.primary:hover{background:linear-gradient(135deg,#c40d18,#ed111c);color:#fff}
.mobile-nav-cta{
  display:flex;align-items:center;justify-content:center;
  height:54px;border-radius:10px;
  background:var(--red);color:#fff;
  font-size:15px;font-weight:900;text-decoration:none;
  box-shadow:0 10px 22px rgba(237,17,28,.28);
}
.mobile-nav-cta:hover{background:var(--red-dark);color:#fff}
.mobile-nav-phone{
  margin-top:auto;
  padding:14px;border-radius:12px;
  background:#f7f8fb;border:1px solid var(--line);
  display:flex;flex-direction:column;gap:4px;
}
.mobile-nav-phone-label{font-size:11px;color:var(--muted);font-weight:700;letter-spacing:.5px;text-transform:uppercase}
.mobile-nav-phone-num{font-size:20px;font-weight:900;color:#0c1220;text-decoration:none}
.mobile-nav-phone-num:hover{color:var(--red)}
.op-tab{
  height:40px;min-width:96px;max-width:170px;padding:0 16px;border-radius:8px;
  border:1px solid #e1e5ee;background:#fff;
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  color:#050505;text-decoration:none;font-size:13px;font-weight:900;cursor:pointer;
  box-shadow:0 8px 20px rgba(19,28,51,.05);
}
.op-tab:hover{box-shadow:0 12px 26px rgba(16,24,45,.10);transform:translateY(-1px)}
.op-tab.active{background:#f4f6f9;color:#0b1220;border-color:#d7dde8;box-shadow:inset 0 2px 7px rgba(18,26,46,.10),0 10px 22px rgba(16,24,45,.10)}
.op-tab[data-op="all"]{min-width:160px;max-width:160px}
.op-tab[data-op="all"].active{background:var(--cat-red);color:#fff;border-color:var(--cat-red);box-shadow:0 10px 24px rgba(237,17,28,.24)}
.op-tab img{display:block;object-fit:contain;object-position:center;max-height:24px;max-width:100%}
.op-tab[data-op="mts"] img{width:88px;height:22px}
.op-tab[data-op="beeline"] img{width:96px;height:22px}
.op-tab[data-op="megafon"] img{width:118px;height:22px}
.op-tab[data-op="tele2"] img{width:74px;height:22px}
.op-tab[data-op="yota"] img{width:92px;height:22px}
.op-tab[data-op="rostelecom"] img{width:114px;height:22px}
.op-tab[data-op="tinkoff"] img{width:104px;height:22px}

/* Sort row */
.sort-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 14px;color:#7b808c;font-size:12px}
.result-count b{color:var(--cat-text);font-weight:900}
.sort-select{height:36px;min-width:170px;border:1px solid #e2e5ec;background:#fff;border-radius:5px;padding:0 35px 0 12px;color:#646a76;font-size:12px;font-weight:800}

/* Сетка тарифов — максимум 4 карточки в ряд */
.tariff-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media(max-width:1100px){.tariff-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.tariff-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:500px){.tariff-grid{grid-template-columns:1fr}}
.catalog-card{
  background:#fff;border:1px solid #e5e7ee;border-radius:10px;min-height:288px;
  padding:18px 16px 14px;box-shadow:0 12px 28px rgba(23,32,58,.055);
  display:flex;flex-direction:column;
}
.catalog-card.is-hidden{display:none}
.catalog-card-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:10px;
  height:34px;margin-bottom:14px;
}
.catalog-logo{object-fit:contain;object-position:left center;display:block}
.catalog-logo.mts{width:84px;height:30px}
.catalog-logo.beeline{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:900}
.catalog-logo.beeline em{
  width:18px;height:18px;border-radius:50%;
  background:repeating-linear-gradient(135deg,#151515 0 6px,#ffd121 6px 12px);
  display:inline-block;
}
.catalog-logo.megafon{width:114px;height:30px}
.catalog-logo.tele2{width:74px;height:26px}
.catalog-logo.yota{width:84px;height:30px}
.catalog-logo.rostelecom{width:122px;height:30px}
.catalog-logo.tinkoff{width:118px;height:30px}
.hit{
  height:26px;min-width:46px;border-radius:5px;
  color:#fff;font-size:11px;font-weight:900;
  display:inline-grid;place-items:center;flex:0 0 auto;
}
.catalog-card h2{font-size:16px;line-height:1.2;margin:0 0 12px;font-weight:900;letter-spacing:-.15px}
.catalog-price{font-size:22px;font-weight:900;color:var(--cat-red);margin-bottom:14px;line-height:1}
.catalog-price small{font-size:13px;color:#575d69;font-weight:500;margin-left:4px}
.features{display:grid;gap:10px;margin-bottom:18px}
.feature{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;color:#252b36}
.feature svg{width:16px;height:16px;stroke:#4d5360;stroke-width:2;fill:none;flex:0 0 auto}
.card-actions{display:flex;gap:8px;margin-top:auto}
.card-actions a{
  height:32px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;
  text-decoration:none;font-size:12px;font-weight:800;
}
.btn-outline{border:1px solid #cfd4df;color:#232936;background:#fff;width:90px}
.btn-outline:hover{border-color:#9ea7b8}
.btn-apply{background:var(--cat-red);color:#fff;border:1px solid var(--cat-red);width:120px}
.btn-apply:hover{background:var(--red-dark);border-color:var(--red-dark)}

/* Empty state */
.empty-state{
  display:none;padding:40px;background:#fff;border-radius:10px;
  border:1px solid #e6e8ee;text-align:center;font-weight:900;color:#5b6275;
}
.empty-state.show{display:block}

/* CTA */
.catalog-cta{
  margin-top:20px;height:120px;border-radius:10px;
  background:linear-gradient(90deg,#ffe8eb 0,#fff3f4 48%,#ffdce0 100%);
  position:relative;overflow:hidden;display:flex;align-items:center;
  padding-left:180px;padding-right:180px;
  box-shadow:0 13px 30px rgba(237,17,28,.08);
}
.catalog-cta img{position:absolute;left:38px;top:13px;width:80px;transform:rotate(-16deg);filter:drop-shadow(0 14px 16px rgba(128,0,10,.2))}
.catalog-cta h3{font-size:22px;line-height:1.1;margin:0 0 6px;font-weight:900;letter-spacing:-.4px}
.catalog-cta p{font-size:14px;line-height:1.4;margin:0;color:#5a2e30}
.catalog-cta .cta-arrow{
  position:absolute;right:32px;top:50%;transform:translateY(-50%);
  height:50px;min-width:200px;padding:0 20px;border-radius:8px;
  background:var(--cat-red);color:#fff;font-size:15px;font-weight:900;
  display:inline-flex;align-items:center;justify-content:center;gap:18px;text-decoration:none;
  box-shadow:0 10px 22px rgba(237,17,28,.28);
}
.catalog-cta .cta-arrow:hover{background:var(--red-dark)}
.catalog-cta .cta-arrow:after{content:"→";font-size:26px;font-weight:400;margin-top:-2px}

@media(max-width:1200px){
  .catalog-layout{grid-template-columns:240px 1fr}
  .catalog-cta{padding:18px 30px;padding-right:30px;height:auto}
  .catalog-cta .cta-arrow{position:static;transform:none;margin-left:auto}
}
@media(max-width:920px){
  .catalog-layout{grid-template-columns:1fr}
  .filter-toggle{
    display:flex;
    align-items:center;justify-content:space-between;
    width:100%;height:50px;padding:0 18px;
    margin:0 0 12px;
    border:1px solid #e1e5ee;border-radius:10px;
    background:#fff;color:#050505;
    font-size:14px;font-weight:900;
    cursor:pointer;box-shadow:0 8px 20px rgba(19,28,51,.05);
  }
  .filter-toggle .ft-icon{display:inline-flex;align-items:center;gap:8px}
  .filter-toggle .ft-icon:before{
    content:"";display:inline-block;
    width:14px;height:14px;
    background:
      linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,
      linear-gradient(currentColor,currentColor) center/2px 100% no-repeat,
      linear-gradient(currentColor,currentColor) center/2px 100% no-repeat;
    background-position: 0 4px, 4px 0, 10px 0;
    color:#050505;
  }
  .filter-toggle .ft-arrow{font-size:18px;transition:transform .2s}
  .filter-toggle.is-open .ft-arrow{transform:rotate(180deg)}
  .filter-panel{display:none;position:static;max-height:none;margin-bottom:14px}
  .filter-panel.is-open{display:block}
  .filter-toggle-badge{
    display:inline-block;min-width:22px;height:22px;line-height:22px;
    border-radius:11px;background:var(--cat-red);color:#fff;
    font-size:12px;font-weight:900;text-align:center;padding:0 7px;
    margin-left:8px;
  }
}
@media(max-width:620px){
  .catalog-title{font-size:28px}
  .catalog-cta{padding:120px 18px 22px;display:block}
  .catalog-cta img{top:18px}
  .catalog-cta .cta-arrow{margin:18px 0 0;width:100%;position:static;transform:none}
}
