/* ==================================================
   Global UX rule: disable text selection sitewide
   (per project requirement)
   ================================================== */
*,
*::before,
*::after{
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Prevent iOS callout / text-size auto adjustments */
html{
  -webkit-text-size-adjust: 100%;
}

/* ==================================================
   End global UX rules
   ================================================== */

/* ==================================================
   Build / Maintainability helpers
   ================================================== */
/* Disable iOS tap highlight */
a, button, .btn { -webkit-tap-highlight-color: transparent; }

/* ==================================================
   Design Tokens
   ================================================== */
:root{
  --bg:#0b0f1a;
  --card:#0f1626;
  --muted:#9aa4b2;
  --text:#e7eef8;
  --line:rgba(231,238,248,.12);
  --accent:#5dd6ff;
  --accent2:#b5ff7d;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius:18px;
  --radius2:26px;
  --container: 1120px;
}

/* ==================================================
   Base / Reset
   ================================================== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 700px at 20% 0%, rgba(93,214,255,.18), transparent 60%),
              radial-gradient(900px 600px at 80% 10%, rgba(181,255,125,.12), transparent 55%),
              var(--bg);
  line-height:1.45;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}
.container{max-width:var(--container); margin:0 auto; padding:0 20px}

/* ==================================================
   Header / Navigation
   ================================================== */
.header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,26,.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display:flex; align-items:center; gap:18px;
  padding:14px 0;
}
.logo{display:flex; align-items:center; gap:12px}
.logo__mark{
  width:40px; height:40px; border-radius:12px;
  background: linear-gradient(135deg, rgba(93,214,255,.95), rgba(181,255,125,.8));
  color:#08101e; font-weight:800; display:flex; align-items:center; justify-content:center;
  letter-spacing:.5px;
}
.logo__text{display:flex; flex-direction:column; line-height:1.05}
.logo__title{font-size:12px; color:var(--muted)}
.logo__name{font-size:14px; font-weight:700}

.nav{display:flex; gap:14px; margin-left:auto}
.nav a{color:var(--muted); font-size:14px; padding:8px 10px; border-radius:12px}
.nav a:hover{color:var(--text); background:rgba(231,238,248,.06)}

.header__cta{display:flex; gap:10px}

/* ==================================================
   Buttons
   ================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:14px;
  background: linear-gradient(135deg, rgba(93,214,255,.95), rgba(181,255,125,.75));
  color:#07101f; font-weight:800;
  border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 30px rgba(93,214,255,.12);
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px)}
.btn--ghost{
  background: rgba(231,238,248,.06);
  color:var(--text);
  border:1px solid var(--line);
  box-shadow:none;
}
.btn--xl{padding:14px 18px; border-radius:16px; font-size:15px}
.btn--wide{width:100%}

/* ==================================================
   Hero
   ================================================== */
.hero{padding:46px 0 10px}
.hero__grid{
  display:grid;
  grid-template-columns: 1.35fr .85fr;
  gap:22px;
  align-items:start;
}
.badge{
  display:inline-flex; gap:10px; align-items:center;
  padding:8px 12px; border-radius:999px;
  background: rgba(231,238,248,.06);
  border:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}
h1{font-size:46px; line-height:1.06; margin:14px 0 12px; letter-spacing:-.5px}
.lead{font-size:16px; color:rgba(231,238,248,.86); max-width:64ch; margin:0}

.trustline{
  display:flex; flex-wrap:wrap; gap:10px;
  margin:14px 0 18px;
  color:var(--muted); font-size:13px;
}
.trustline span{
  padding:6px 10px; border-radius:999px;
  background: rgba(231,238,248,.05);
  border:1px solid var(--line);
}
.cta{display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:16px}
.link{color:var(--accent); font-weight:700; padding:8px 0}
.micro{margin-top:12px; color:var(--muted); font-size:13px}
.kbd{
  display:inline-block;
  padding:2px 8px;
  border-radius:10px;
  border:1px solid var(--line);
  background: rgba(231,238,248,.05);
  color: rgba(231,238,248,.9);
}

/* ==================================================
   Surfaces / Cards / Forms
   ================================================== */
.card{
  background: linear-gradient(180deg, rgba(15,22,38,.92), rgba(15,22,38,.72));
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:18px;
}
.card__title{margin:0 0 6px; font-size:18px}
.card__text{margin:0 0 14px; color:var(--muted)}

.form{display:flex; flex-direction:column; gap:10px}
.field span{display:block; font-size:12px; color:var(--muted); margin:0 0 6px}
input,select,textarea{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(231,238,248,.04);
  color:var(--text);
  outline:none;
}
textarea{resize:vertical}
input:focus,select:focus,textarea:focus{
  border-color: rgba(93,214,255,.55);
  box-shadow: 0 0 0 4px rgba(93,214,255,.12);
}
.check{display:flex; gap:10px; align-items:flex-start; color:var(--muted); font-size:12px}
.check input{width:18px; height:18px; margin-top:2px}
.form__hint{color:var(--muted); font-size:12px; margin-top:4px}
.form__hint a{color:var(--accent)}
.hp{display:none!important}

/* ==================================================
   Sections / Typography
   ================================================== */
.section{padding:54px 0}
.section--alt{
  background: linear-gradient(180deg, rgba(231,238,248,.03), rgba(231,238,248,.01));
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
h2{font-size:30px; margin:0 0 12px; letter-spacing:-.3px}
.text{color:rgba(231,238,248,.82); max-width:78ch}

/* ==================================================
   Layout Grids
   ================================================== */
.grid3{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:14px;
  margin-top:18px;
}
.tile,.case{
  border:1px solid var(--line);
  background: rgba(231,238,248,.04);
  border-radius: var(--radius);
  padding:16px;
}
.tile h3,.case h3{margin:0 0 8px; font-size:16px}
.tile p,.case p{margin:0 0 8px; color:var(--muted)}
.tile__cta{display:inline-block; margin-top:6px; color:var(--accent); font-weight:800}

.checklist{
  margin-top:18px;
  border:1px solid var(--line);
  background: rgba(231,238,248,.04);
  border-radius: var(--radius2);
  padding:18px;
}
.checklist h3{margin:0 0 10px}
.checklist ul{margin:0; padding-left:18px; color:rgba(231,238,248,.84)}
.checklist li{margin:8px 0}
.cta-row{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}

.pricing{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:14px;
  margin-top:18px;
}
.pricecard{
  border:1px solid var(--line);
  background: rgba(231,238,248,.04);
  border-radius: var(--radius2);
  padding:18px;
}
.pricecard--focus{
  background: linear-gradient(180deg, rgba(93,214,255,.12), rgba(231,238,248,.04));
  border-color: rgba(93,214,255,.3);
}
.pricecard__top{display:flex; justify-content:space-between; align-items:baseline; gap:12px}
.price{font-size:20px; font-weight:900}
.pricecard ul{margin:12px 0 14px; padding-left:18px; color:rgba(231,238,248,.84)}
.pricecard li{margin:8px 0}

.fineprint{margin-top:14px; color:var(--muted); font-size:12px}

.case__tag{
  display:inline-flex;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(231,238,248,.05);
  color:var(--muted);
  font-size:12px;
  margin-bottom:10px;
}

.chips{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top:14px;
}
.chip{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(231,238,248,.04);
  color:rgba(231,238,248,.9);
  font-weight:800;
}
.chip--ghost{background: rgba(231,238,248,.02); color:var(--muted)}
.chip:hover{border-color: rgba(93,214,255,.4)}

/* ==================================================
   FAQ / Details
   ================================================== */
.faq{margin-top:16px; display:flex; flex-direction:column; gap:10px}
details{
  border:1px solid var(--line);
  background: rgba(231,238,248,.04);
  border-radius: var(--radius);
  padding:14px 14px;
}
summary{cursor:pointer; font-weight:900}
.faq__body{margin-top:10px; color:rgba(231,238,248,.84)}

/* ==================================================
   Contacts / Map
   ================================================== */
.contacts{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
  align-items:start;
}

/* Contacts (2 columns + map) */
.contacts-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:18px;
  align-items:stretch;
}

.contacts-left.card,
.contacts-right.card{ height:100%; }

.contacts-right.card{
  display:flex;
  flex-direction:column;
}

.contacts-cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.contacts-meta{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
  display:grid;
  gap:10px;
}

.contacts-row{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap:12px;
}

.contacts-label{
  opacity:.7;
  color: var(--muted);
  font-size:13px;
  line-height:1.3;
}

.contacts-value{
  font-size:14px;
  line-height:1.35;
}

.contacts-note{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(255,255,255,.03);
}

.contacts-note__title{ font-weight:900; margin-bottom:4px; }
.contacts-note__text{ opacity:.85; font-size:14px; line-height:1.35; }

.map-embed{
  overflow:hidden;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.15);
  flex: 1 1 auto;
  min-height: 320px;
}

.map-embed iframe{
  display:block;
  width:100%;
  height:100%;
  border:0;
}

.contacts-right .fineprint{ margin-top:10px; }

.contactrow{display:grid; grid-template-columns: 120px 1fr; gap:12px; padding:10px 0; border-bottom:1px solid var(--line)}
.contactlabel{color:var(--muted); font-size:13px}
.contactval a{color:var(--accent); font-weight:900}
.sub{color:var(--muted); font-size:12px; margin-top:6px}

.links{display:flex; flex-wrap:wrap; gap:12px; margin-top:10px}
.links a{color:var(--muted); font-size:12px; text-decoration:underline; text-underline-offset:3px}

/* ==================================================
   Footer
   ================================================== */
.footer{
  border-top:1px solid var(--line);
  padding:18px 0;
  color:var(--muted);
  font-size:13px;
}
.footer__inner{display:flex; justify-content:space-between; gap:12px; align-items:center}
.footer__right{display:flex; gap:14px}
.footer__right a{color:rgba(231,238,248,.75)}

/* --- Hero profile block (avatar + name) --- */

/* ==================================================
   Profile Widget
   ================================================== */
.hero-profile{
  margin-top: 14px;
  max-width: 520px;
  padding: 10px 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(231,238,248,.02);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
a.hero-profile{ text-decoration:none; }
.hero-profile:hover{ border-color: rgba(93,214,255,.35); background: rgba(231,238,248,.03); }

.hero-profile__img{
  width: 92px;
  height: 92px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 20%;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.hero-profile__name{
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.hero-profile__meta{
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.35;
  opacity: .75;
}

/* ==================================================
   Responsive (existing)
   ================================================== */

/* =========================
   Global background v2
   Two light spots (top + bottom) + alternating section backgrounds
   ========================= */

/* Main page background (glows follow viewport). */
html, body{
  background-color: #070b12;
}
body{
  background-image:
    radial-gradient(900px 520px at 18% 8%, rgba(93,214,255,.16), rgba(93,214,255,0) 60%),
    radial-gradient(980px 560px at 82% 14%, rgba(181,255,125,.12), rgba(181,255,125,0) 62%),
    radial-gradient(1100px 640px at 50% 96%, rgba(93,214,255,.12), rgba(93,214,255,0) 62%),
    linear-gradient(180deg, #060a11 0%, #070b12 38%, #070b12 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* iOS/Safari: fixed backgrounds can be janky */

/* Let hero/sections be transparent so the global background is continuous (no seams). */
.hero{ background: transparent !important; }
.section{ background: transparent !important; }

/* Alternation: use .section--alt for every second section */
.section--alt{
  background: rgba(255,255,255,.02) !important;
  border-top: 1px solid rgba(231,238,248,.06);
  border-bottom: 1px solid rgba(231,238,248,.06);
}

/* If there is an extra "dark" variant needed */
.section--deep{
  background: rgba(10,14,22,.55) !important;
  border-top: 1px solid rgba(231,238,248,.06);
  border-bottom: 1px solid rgba(231,238,248,.06);
}

/* Cards already have their own background; keep them consistent on the new global bg */
.card, .tile, .case, .pricecard, .checklist, .faq details{
  backdrop-filter: blur(12px);
}

/* Footer should sit on the global background cleanly */
.footer, footer{
  background: transparent !important;
}

/* =========================
   Bottom glow (always visible above footer)
   Uses a fixed pseudo-layer so it follows viewport and can't be "covered" by section backgrounds
   ========================= */

body{ position: relative; }

/* Fixed glow layer at the bottom of the viewport */
body::after{
  content:"";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55vh; /* how high the glow rises */
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      60% 45% at 50% 100%,
      rgba(110, 210, 190, .22) 0%,
      rgba(110, 210, 190, .10) 28%,
      rgba(0,0,0,0) 68%
    );
}

/* Ensure page content is above the glow layer */
body > *{ position: relative; z-index: 1; }

/* Fallback если backdrop-filter не поддерживается */

/* Fallback если CSS Grid не поддерживается */

/* Footer (extended) */
.footer{ margin-top: 40px; } /* чтобы футер не прилипал к последнему блоку */

.footer__left{ display:flex; flex-direction:column; gap:6px; }
.footer__meta{ opacity:.7; font-size:12px; }

.footer__note{
  margin-top:10px;
  opacity:.6;
  font-size:12px;
  line-height:1.35;
}

/* мобайл: футер в колонку */

.breadcrumbs{ margin-bottom:12px; }
.breadcrumbs ol{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0;
  margin:0;
  font-size:13px;
  opacity:.85;
}
.breadcrumbs li{ display:flex; align-items:center; gap:8px; }
.breadcrumbs li+li:before{
  content:"/";
  opacity:.55;
}
.breadcrumbs a{ color: inherit; text-decoration:none; }
.breadcrumbs a:hover{ opacity:.9; text-decoration:underline; }

/* ==================================================
   Articles (Stati)
   ================================================== */
/* ===== Stati: search + suggestions + category grouping ===== */
.stati-search__row{ display:flex; gap:12px; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; }
.stati-search__left{ min-width:260px; flex:1; }
.stati-search__label{ display:block; margin-bottom:8px; opacity:.85; }
.stati-search__right{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

.searchbox{ position:relative; }
.searchbox input{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: inherit;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
.searchbox input:focus{ border-color: rgba(120, 240, 255, .35); }

.suggest{
  position:absolute;
  left:0; right:0;
  top: calc(100% + 8px);
  background: rgba(10, 15, 26, .96);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  overflow:hidden;
  z-index: 30;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.suggest__item{
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  padding: 10px 12px;
  cursor:pointer;
}
.suggest__item:hover{ background: rgba(255,255,255,.05); }
.suggest__left{ display:flex; flex-direction:column; gap:2px; }
.suggest__title{ font-size:14px; line-height:1.2; }
.suggest__meta{ font-size:12px; opacity:.75; }
.suggest__badge{
  font-size:12px;
  opacity:.9;
  border:1px solid rgba(255,255,255,.14);
  padding: 4px 8px;
  border-radius: 999px;
  white-space:nowrap;
}

.category-block{ margin-top: 18px; }
.category-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 8px 0 12px;
}
.category-head__title{ margin:0; }

.is-hidden{ display:none !important; }

/* ===== Breadcrumbs (for /stati/* pages) ===== */
.breadcrumbs{ margin-bottom:12px; }
.breadcrumbs ol{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0;
  margin:0;
  font-size:13px;
  opacity:.85;
}
.breadcrumbs li{ display:flex; align-items:center; gap:8px; }
.breadcrumbs li+li:before{ content:"/"; opacity:.55; }
.breadcrumbs a{ color: inherit; text-decoration:none; }
.breadcrumbs a:hover{ opacity:.9; text-decoration:underline; }

/* ==================================================
   Services Page
   ================================================== */
/* =========================
   Services page (/services/)
   ========================= */

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(231,238,248,.04);
  color: var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.2px;
}

.services-hero__top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
}

.services-hero__cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.contact-mini{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display:grid;
  gap:8px;
  color: rgba(231,238,248,.86);
  font-size:14px;
  line-height:1.35;
}
.contact-mini__line strong{ color: rgba(231,238,248,.92); }

/* Make pricing cards look consistent when .tile is also .card */
.tile.card{
  background: linear-gradient(180deg, rgba(15,22,38,.92), rgba(15,22,38,.72));
  border-radius: var(--radius2);
}

/* FAQ summary marker spacing */
details > summary{
  list-style: none;
}
details > summary::-webkit-details-marker{ display:none; }
details > summary:after{
  content:"+";
  float:right;
  opacity:.7;
  font-weight:900;
}
details[open] > summary:after{ content:"—"; }

/* Mobile tweaks */

/* ==================================================
   Responsive: extended breakpoints
   ================================================== */

/* Small phones (≤360px) */

/* iPhone 14 Pro / modern phones (≤430px) */

/* Large phones (≤600px) */

/* Tablets portrait (≤768px) */

/* Tablets landscape / small laptops (≤1024px) */

/* Desktops (≥1200px) */

/* Wide desktops (≥1440px) */

/* Ultra-wide / QHD (≥1920px) */

/* 4K monitors (≥2560px) */

/* 4K / Smart TV (≥3840px) — increased readability from distance */

/* Notches / safe areas (iOS) */

/* Reduced motion */

/* ==================================================
   Responsive / Feature Queries (consolidated)
   ================================================== */

@media (max-width: 1024px){
  .container{ padding: 0 14px; }
  .hero__grid{ gap: 16px; }
  .grid3, .pricing{ gap: 12px; }
}

@media (max-width: 980px){
h1{font-size:38px}
  .hero__grid{grid-template-columns: 1fr}
  .nav{display:none}
  .pricing,.grid3{grid-template-columns: 1fr}
  .contacts{grid-template-columns: 1fr}
  .contacts-grid{grid-template-columns: 1fr}
  .contacts-row{grid-template-columns: 1fr; gap:6px}

body{ background-attachment: scroll; }

.services-hero__cta{ width:100%; }
  .services-hero__cta .btn{ flex:1 1 auto; }
}

@media (max-width: 860px){
  .footer__inner{ flex-direction:column; align-items:flex-start; }
  .footer__right{ flex-wrap:wrap; justify-content:flex-start; }
}

@media (max-width: 768px){
  h2{ font-size: 26px; }
  .header__cta{ width:100%; }
  .header__cta .btn{ flex:1 1 auto; }
  .tile,.case,.pricecard,.checklist{ padding: 14px; }
}

@media (max-width: 600px){
  .footer__right a{ font-size: 12px; }
  .trustline span{ font-size: 12px; }
}

@media (max-width: 430px){
  h1{ font-size: 32px; line-height: 1.08; }
  .header__inner{ padding: 12px 0; }
  .hero{ padding: 36px 0 10px; }
  .card{ padding: 16px; }
  .cta{ gap: 8px; }
  .btn{ width:100%; }
  .btn--ghost{ width:100%; }
  .hero-profile__img{ width: 78px; height: 78px; }
  .map-embed{ min-height: 280px; }
}

@media (max-width: 360px){
  h1{ font-size: 30px; }
  .btn--xl{ padding: 12px 14px; font-size: 14px; }
  .logo__mark{ width:34px; height:34px; border-radius:11px; }
}

@media (min-width: 1200px){
  h1{ font-size: 50px; }
  .container{ max-width: var(--container); }
}

@media (min-width: 1440px){
  :root{ --container: 1240px; }
  h1{ font-size: 54px; }
  h2{ font-size: 32px; }
}

@media (min-width: 1920px){
  :root{ --container: 1320px; }
  body{ font-size: 17px; }
  h1{ font-size: 58px; }
  .section{ padding: 64px 0; }
}

@media (min-width: 2560px){
  :root{ --container: 1560px; }
  body{ font-size: 18px; }
  h1{ font-size: 64px; }
  h2{ font-size: 36px; }
  .section{ padding: 72px 0; }
}

@media (min-width: 3840px){
  :root{ --container: 1900px; }
  body{ font-size: 20px; }
  h1{ font-size: 78px; }
  h2{ font-size: 44px; }
  .btn{ padding: 14px 18px; border-radius: 16px; }
  .btn--xl{ padding: 18px 22px; border-radius: 18px; font-size: 18px; }
  .section{ padding: 86px 0; }
}

@media (prefers-reduced-motion: reduce){
  *{
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header{ background: rgba(11,15,26,.92); }
  .hero-profile{ background: rgba(15,22,38,.92); }
}

@supports not (display: grid) {
  .hero__grid,
  .grid3,
  .pricing,
  .contacts,
  .contacts-grid,
  .contacts-meta,
  .contacts-row,
  .contactrow {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* чтобы не было странных ширин в фолбэке */
  .contacts-row,
  .contactrow {
    padding: 10px 0;
  }
}

@supports (padding: max(0px)){
  body{
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* =========================
   Mobile Bottom Bar (Telegram-like)
   ========================= */
.mobile-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(18, 20, 26, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.mobile-bottom-bar__inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mobile-bottom-bar__item {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.05;
  letter-spacing: 0.2px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-bar__item:hover {
  color: rgba(255, 255, 255, 0.92);
}

.mobile-bottom-bar__item:active {
  transform: translateY(1px);
}

.mobile-bottom-bar__icon {
  width: 24px;
  height: 24px;
  display: block;
}

.mobile-bottom-bar__item.is-active {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

/* show only on mobile */
@media (hover: hover) and (pointer: fine) {
  .mobile-bottom-bar { display: none; }
}

/* add space so content isn't covered by bar */
@media (max-width: 768px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .site-main { padding-bottom: 16px; }
}

/* =========================
   Mobile Menu Sheet
   ========================= */
.mobile-menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}

.mobile-menu-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity .18s ease;
}

.mobile-menu-sheet__panel {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(74px + env(safe-area-inset-bottom) + 10px);
  background: rgba(20, 22, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  transform: translateY(16px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  overflow: hidden;
}

.mobile-menu-sheet.is-open { pointer-events: auto; }
.mobile-menu-sheet.is-open .mobile-menu-sheet__backdrop { opacity: 1; }
.mobile-menu-sheet.is-open .mobile-menu-sheet__panel { transform: translateY(0); opacity: 1; }

.mobile-menu-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu-sheet__title {
  font-size: 14px;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.mobile-menu-sheet__close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mobile-menu-sheet__list {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.mobile-menu-sheet__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-size: 15px;
}

.mobile-menu-sheet__link:active {
  transform: translateY(1px);
}

@media (hover: hover) and (pointer: fine) {
  .mobile-menu-sheet { display: none; }
}

/* prevent page scroll when sheet is open */
.is-mobile-menu-open {
  overflow: hidden;
}



/* Bottom bar hard reset (protect from page-level link/button styles) */
.mobile-bottom-bar a,
.mobile-bottom-bar a:visited,
.mobile-bottom-bar a:hover,
.mobile-bottom-bar a:active,
.mobile-bottom-bar button {
  color: inherit;
  opacity: 1;
  text-decoration: none;
}

.mobile-bottom-bar button.mobile-bottom-bar__item {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.mobile-bottom-bar__item span {
  color: inherit;
}

.mobile-bottom-bar__icon {
  color: inherit;
}


/* Bottom bar size normalization */
.mobile-bottom-bar__item,
.mobile-bottom-bar__item--menu {
  min-height: 56px;
  box-sizing: border-box;
}

.mobile-bottom-bar__item span {
  font-size: 12px;
  line-height: 1.05;
}

.mobile-bottom-bar button.mobile-bottom-bar__item {
  padding: 8px 6px;   /* ensure same as links */
  margin: 0;
  outline: none;
}

.mobile-bottom-bar button.mobile-bottom-bar__item:focus-visible {
  outline: 2px solid rgba(255,255,255,0.25);
  outline-offset: 2px;
}


/* ===== FIX: force bottom bar visible on iOS / touch devices ===== */
@media (pointer: coarse) {
  .mobile-bottom-bar {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
  }
  .mobile-bottom-bar * {
    visibility: visible !important;
  }
}
/* Optional debug (uncomment to verify bar exists)
@media (pointer: coarse) {
  .mobile-bottom-bar { outline: 2px solid red !important; }
}
*/
/* ==================================================
   Services / Pricing pages (new semantic classes)
   Added to support: /ceny-ugolovnyj-advokat/ and other service pages
   ================================================== */

/* Page wrappers */
.page{min-height:60vh}
.page-service{}

/* Breadcrumbs (generic, supports both <ol> and inline spans) */
.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-size:13px;
  opacity:.85;
}
.breadcrumbs a{color:inherit; text-decoration:none}
.breadcrumbs a:hover{opacity:.92; text-decoration:underline; text-underline-offset:3px}
.breadcrumbs .sep{opacity:.55}

/* Buttons: aliases for new markup */
.btn--primary{ /* keep .btn default look */
  background: linear-gradient(135deg, rgba(93,214,255,.95), rgba(181,255,125,.75));
  color:#07101f;
  border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 30px rgba(93,214,255,.12);
}
.btn--block{width:100%}
.btn--wide{width:100%}

/* Hero additions for service pages */
.hero--service{padding:46px 0 18px}
.hero__content{}
.hero__actions{display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:16px}
.hero__bullets{
  display:flex; flex-wrap:wrap; gap:10px;
  margin:16px 0 0;
  padding:0;
  list-style:none;
  color:var(--muted);
  font-size:13px;
}
.hero__bullets li{
  padding:6px 10px;
  border-radius:999px;
  background: rgba(231,238,248,.05);
  border:1px solid var(--line);
}
.hero__card{}

/* Card rows (quick summary card) */
.card__row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(231,238,248,.10);
}
.card__row:last-of-type{border-bottom:none}
.card__label{color:var(--muted); font-size:13px}
.card__value{font-weight:900}
.card__note{
  margin:12px 0 14px;
  color:rgba(231,238,248,.82);
  font-size:13px;
  line-height:1.45;
}

/* Generic grid helpers (new naming) */
.grid{display:grid; gap:14px}
.grid--3{grid-template-columns: repeat(3, 1fr)}
.grid--2{grid-template-columns: repeat(2, 1fr)}

/* Info tiles */
.info{
  border:1px solid var(--line);
  background: rgba(231,238,248,.04);
  border-radius: var(--radius);
  padding:16px;
}
.info h3{margin:0 0 8px; font-size:16px}
.info p{margin:0; color:var(--muted)}

/* Notes */
.note{
  margin-top:16px;
  border:1px solid rgba(231,238,248,.10);
  background: rgba(231,238,248,.03);
  border-radius: 16px;
  padding:14px 16px;
  color:rgba(231,238,248,.86);
}
.note strong{color:rgba(231,238,248,.94)}

/* Pricing (new markup) */
.pricing{ /* keep existing .pricing grid but ensure consistency */
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:18px;
}
.pricing__item{
  border:1px solid var(--line);
  background: rgba(231,238,248,.04);
  border-radius: var(--radius2);
  padding:18px;
  backdrop-filter: blur(12px);
}
.pricing__head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  margin-bottom:12px;
}
.pricing__head h3{margin:0; font-size:16px}
.pricing__price{font-size:20px; font-weight:900}
.pricing__list{margin:0; padding-left:18px; color:rgba(231,238,248,.84)}
.pricing__list li{margin:8px 0}
.pricing__actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}

/* Steps list */
.steps{
  margin:14px 0 0;
  padding-left:18px;
  color:rgba(231,238,248,.86);
}
.steps li{margin:10px 0}

/* CTA section (avoid conflict with .cta used in hero) */
.section--cta{padding:54px 0}
.section--cta .cta{
  display:flex;
  gap:18px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  border:1px solid rgba(93,214,255,.22);
  background: linear-gradient(180deg, rgba(93,214,255,.10), rgba(231,238,248,.03));
  border-radius: var(--radius2);
  padding:18px;
}
.section--cta .cta__content{flex:1 1 520px}
.section--cta .cta__content h2{margin:0 0 8px}
.section--cta .cta__content p{margin:0; color:rgba(231,238,248,.82); max-width:80ch}
.section--cta .cta__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  flex: 0 1 360px;
}

/* FAQ (new markup wrappers) */
.faq__item{}
.faq__content{margin-top:10px; color:rgba(231,238,248,.84)}
.faq__content p{margin:0}

/* Link cards */
.link-card{
  display:block;
  border:1px solid var(--line);
  background: rgba(231,238,248,.04);
  border-radius: var(--radius);
  padding:16px;
}
.link-card:hover{border-color: rgba(93,214,255,.35); background: rgba(231,238,248,.05)}
.link-card__title{display:block; font-weight:900; margin:0 0 6px}
.link-card__desc{display:block; color:var(--muted); font-size:13px; line-height:1.35}

/* Section alternate already exists; ensure lead works inside any section */
.section .lead{margin-top:0}

/* Responsive tweaks for new grids/components */
@media (max-width: 980px){
  .grid--3{grid-template-columns: 1fr}
  .pricing{grid-template-columns: 1fr}
  .section--cta .cta__actions{flex:1 1 auto; justify-content:stretch}
  .section--cta .cta__actions .btn{flex:1 1 auto}
}

@media (max-width: 430px){
  .hero__actions .btn{width:100%}
  .pricing__item{padding:16px}
  .section--cta .cta{padding:16px}
}

/* =========================
   404 PAGE
   ========================= */

.page-404 {
  min-height: calc(100vh - 160px);
  padding: 56px 0 96px;
  display: flex;
  align-items: flex-start;
}

.page-404 .inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-404 {
  max-width: 920px;
  padding: 32px 0 24px;
}

.hero-404 h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-404 p {
  margin: 0 0 28px;
  max-width: 820px;
  font-size: 20px;
  line-height: 1.7;
  color: rgba(231, 238, 248, 0.72);
}

.hero-404__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-404__actions .btn,
.hero-404__actions a {
  min-height: 56px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.page-404 .breadcrumbs {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(231, 238, 248, 0.68);
}

.page-404 .breadcrumbs a {
  color: rgba(231, 238, 248, 0.78);
  text-decoration: none;
}

.page-404 .breadcrumbs a:hover {
  color: #ffffff;
}

.section-404-links {
  padding-top: 24px;
}

.section-404-links .section-head {
  max-width: 820px;
  margin-bottom: 20px;
}

.section-404-links .section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 800;
}

.section-404-links .section-head p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(231, 238, 248, 0.72);
}

.grid-404-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.link-card {
  display: block;
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(231, 238, 248, 0.1);
  background: rgba(231, 238, 248, 0.04);
  border-radius: 18px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(93, 214, 255, 0.35);
  background: rgba(231, 238, 248, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.link-card__title {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  color: #ffffff;
}

.link-card__desc {
  display: block;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(231, 238, 248, 0.72);
}

.page-404 + footer,
.page-404 ~ footer {
  margin-top: 0;
}

/* =========================
   LARGE DESKTOP / 4K
   ========================= */

@media (min-width: 1921px) {
  .page-404 {
    min-height: calc(100vh - 180px);
    padding: 72px 0 120px;
  }

  .page-404 .inner {
    max-width: 1560px;
    padding: 0 40px;
  }

  .hero-404 {
    max-width: 980px;
    padding: 40px 0 32px;
  }

  .hero-404 h1 {
    font-size: clamp(64px, 4.2vw, 92px);
    margin-bottom: 22px;
  }

  .hero-404 p {
    max-width: 920px;
    font-size: 24px;
    line-height: 1.75;
    margin-bottom: 34px;
  }

  .hero-404__actions {
    gap: 16px;
  }

  .hero-404__actions .btn,
  .hero-404__actions a {
    min-height: 62px;
    padding: 0 30px;
    border-radius: 18px;
    font-size: 18px;
  }

  .page-404 .breadcrumbs {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .grid-404-links {
    gap: 20px;
  }

  .link-card {
    min-height: 190px;
    padding: 26px;
    border-radius: 20px;
  }

  .link-card__title {
    font-size: 22px;
  }

  .link-card__desc {
    font-size: 16px;
  }
}

/* =========================
   DESKTOP / LAPTOP
   ========================= */

@media (max-width: 1440px) {
  .page-404 {
    padding: 48px 0 88px;
  }

  .page-404 .inner {
    padding: 0 22px;
  }

  .hero-404 {
    max-width: 760px;
    padding: 24px 0 16px;
  }

  .hero-404 h1 {
    font-size: clamp(38px, 4.6vw, 60px);
  }

  .hero-404 p {
    font-size: 19px;
    line-height: 1.65;
  }
}

/* =========================
   TABLET LANDSCAPE / SMALL NOTEBOOK
   ========================= */

@media (max-width: 1024px) {
  .page-404 {
    min-height: auto;
    padding: 40px 0 72px;
  }

  .page-404 .inner {
    padding: 0 20px;
  }

  .hero-404 {
    max-width: 100%;
    padding: 20px 0 12px;
  }

  .hero-404 h1 {
    font-size: clamp(34px, 6vw, 52px);
    line-height: 1.08;
    margin-bottom: 16px;
  }

  .hero-404 p {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-404__actions .btn,
  .hero-404__actions a {
    min-height: 52px;
    padding: 0 20px;
    border-radius: 14px;
    font-size: 16px;
  }

  .page-404 .breadcrumbs {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .grid-404-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================
   TABLET PORTRAIT
   ========================= */

@media (max-width: 768px) {
  .page-404 {
    padding: 28px 0 56px;
  }

  .page-404 .inner {
    padding: 0 16px;
  }

  .hero-404 {
    padding: 16px 0 8px;
  }

  .hero-404 h1 {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.1;
    margin-bottom: 14px;
  }

  .hero-404 p {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .hero-404__actions {
    gap: 12px;
  }

  .hero-404__actions .btn,
  .hero-404__actions a {
    min-height: 50px;
    padding: 0 18px;
    font-size: 15px;
  }

  .section-404-links {
    padding-top: 18px;
  }

  .section-404-links .section-head {
    margin-bottom: 16px;
  }

  .section-404-links .section-head p {
    font-size: 16px;
  }

  .grid-404-links {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .link-card {
    min-height: auto;
    padding: 18px;
    border-radius: 16px;
  }

  .link-card__title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .link-card__desc {
    font-size: 14px;
    line-height: 1.55;
  }

  .page-404 + footer,
  .page-404 ~ footer {
    padding-top: 24px;
  }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 576px) {
  .page-404 {
    padding: 20px 0 44px;
  }

  .page-404 .inner {
    padding: 0 14px;
  }

  .page-404 .breadcrumbs {
    gap: 6px;
    font-size: 12px;
    margin-bottom: 12px;
  }

  .hero-404 {
    padding: 12px 0 4px;
  }

  .hero-404 h1 {
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
  }

  .hero-404 p {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .hero-404__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .hero-404__actions .btn,
  .hero-404__actions a {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    font-size: 15px;
    border-radius: 14px;
  }

  .section-404-links .section-head h2 {
    font-size: 24px;
  }

  .section-404-links .section-head p {
    font-size: 15px;
    line-height: 1.55;
  }
}

/* =========================
   VERY SMALL MOBILE
   ========================= */

@media (max-width: 390px) {
  .page-404 {
    padding: 18px 0 38px;
  }

  .page-404 .inner {
    padding: 0 12px;
  }

  .hero-404 h1 {
    font-size: 30px;
    margin-bottom: 10px;
  }

  .hero-404 p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .hero-404__actions .btn,
  .hero-404__actions a {
    min-height: 46px;
    font-size: 14px;
    padding: 0 14px;
  }

  .page-404 .breadcrumbs {
    font-size: 11px;
  }

  .link-card {
    padding: 16px;
  }

  .link-card__title {
    font-size: 17px;
  }

  .link-card__desc {
    font-size: 13px;
  }
}

/* =========================
   HEIGHT-BASED TWEAKS
   ========================= */

@media (max-height: 760px) and (min-width: 992px) {
  .page-404 {
    min-height: auto;
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .hero-404 {
    padding-top: 16px;
  }

  .hero-404 h1 {
    margin-bottom: 12px;
  }

  .hero-404 p {
    margin-bottom: 20px;
  }
}