/* ---------- Base ---------- */


*{ 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: var(--bg);
}

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

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

.i{
  width: 18px;
  height: 18px;
}

/* ---------- Animations (как ты просил: аним. заголовок + плавное появление) ---------- */
@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes slideDown{
  from{ opacity: 0; transform: translateY(-10px); }
  to{ opacity: 1; transform: translateY(0); }
}

.header-animated{
  animation: slideDown 0.55s ease both;
}
.page-animated{
  animation: fadeUp 0.6s ease both;
}

/* ---------- Topbar ---------- */
.topbar{
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 0;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.topbar-left, .topbar-right{
  display:flex;
  align-items:center;
  gap: 8px;
}
.topbar-link{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31,41,55,0.04);
  border: 1px solid rgba(31,41,55,0.06);
  transition: transform .15s ease, background .15s ease;
}
.topbar-link:hover{ transform: translateY(-1px); background: rgba(31,41,55,0.06); }

/* ---------- Header ---------- */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo{
  display:flex;
  align-items:center;
  gap: 12px;
}
.logo img{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 6px;
}
.logo-text{ line-height: 1.1; }
.logo-title{ font-size: 12px; color: var(--muted); }
.logo-subtitle{ font-size: 18px; font-weight: 800; letter-spacing: 0.2px; }

.nav{
  display:flex;
  align-items:center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(31,41,55,0.04);
  border: 1px solid rgba(31,41,55,0.06);
}
.nav-link{
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.nav-link:hover{
  background: rgba(31,41,55,0.06);
  color: var(--text);
  transform: translateY(-1px);
}
.nav-link.active{
  background: var(--card);
  border: 1px solid rgba(31,41,55,0.08);
  box-shadow: 0 8px 18px rgba(31,41,55,0.06);
  color: var(--text);
}

.header-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

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

.btn-primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b1b1b;
  border-color: rgba(0,0,0,0.04);
  box-shadow: 0 12px 24px rgba(244,200,74,0.25);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 14px 28px rgba(244,200,74,0.28); }

.btn-outline{
  background: rgba(255,255,255,0.7);
  border-color: rgba(31,41,55,0.14);
  color: var(--text);
}
.btn-outline:hover{ transform: translateY(-1px); box-shadow: 0 10px 20px rgba(31,41,55,0.08); }

/* ---------- Main / Footer ---------- */
.main{
  padding: 28px 0 56px;
}

.footer{
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 20px;
  padding: 22px 0;
  flex-wrap: wrap;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.footer-brand img{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 6px;
  background: #fff;
}

.footer-subtitle{ color: var(--muted); font-size: 13px; margin-top: 2px; }
.footer-note{ color: var(--muted); font-size: 13px; margin-top: 10px; }

.footer-right{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-link{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(31,41,55,0.10);
  transition: transform .15s ease, background .15s ease;
}
.footer-link:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.95); }

/* ---------- Burger + Mobile nav ---------- */

.burger span{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform .15s ease, opacity .15s ease;
}
.burger.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.mobile-nav{
  display:none;
  border-top: 1px solid var(--border);
  padding: 12px 0 14px;
  background: rgba(255,255,255,0.95);
}
.mobile-nav.open{ display:block; animation: fadeUp .25s ease both; }



/* ---------- Floating action button ---------- */
.fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.04);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 30px rgba(244,200,74,0.28);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index: 60;
  transition: transform .15s ease, box-shadow .15s ease;
}
.fab:hover{ transform: translateY(-2px); box-shadow: 0 18px 34px rgba(244,200,74,0.32); }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .nav{ display:none; }
  .burger{ display:flex; }
  .header-actions .btn{ display:none; }
  .header-actions .burger{ display:flex; }
  .fab{ bottom: 16px; right: 16px; }
}


/* ===== Better Branch Modal (override) ===== */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 16px;
}

.modal-backdrop.open{ display:flex; animation: fadeUp .22s ease both; }



.modal-header{
  padding: 18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(31,41,55,0.10);
  background: linear-gradient(180deg, rgba(246,247,251,0.9), rgba(255,255,255,0.65));
}

.modal-kicker{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 6px;
}
.dot{
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(31,41,55,0.35);
}
.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31,41,55,0.05);
  border: 1px solid rgba(31,41,55,0.08);
  font-size: 13px;
  font-weight: 800;
}

.modal-title h3{
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.modal-close{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,0.14);
  background: rgba(255,255,255,0.7);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease;
}
.modal-close:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.95); }





.branches-toolbar{
  display:flex;
  gap: 10px;
  align-items:center;
}

.search{
  flex: 1;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,41,55,0.12);
  box-shadow: 0 10px 22px rgba(31,41,55,0.06);
}
.search input{
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: var(--text);
}

.btn-soft{
  background: rgba(31,41,55,0.05);
  border: 1px solid rgba(31,41,55,0.10);
  color: var(--text);
}
.btn-soft:hover{ transform: translateY(-1px); box-shadow: 0 12px 24px rgba(31,41,55,0.10); }



.branch-card{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 16px;
  padding: 14px;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
}
.branch-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(31,41,55,0.10);
}
.branch-card.active{
  border-color: rgba(244,200,74,0.9);
  box-shadow: 0 0 0 3px rgba(244,200,74,0.25), 0 18px 40px rgba(31,41,55,0.10);
}


.branch-title{
  font-weight: 900;
  margin: 0;
  font-size: 15px;
}
.branch-badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(244,200,74,0.18);
  border: 1px solid rgba(244,200,74,0.35);
  font-weight: 900;
  font-size: 12px;
}
.branch-address{
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.branch-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 12px;
}
.branch-actions a{
  flex: 1;
  min-width: 120px;
  text-align:center;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(31,41,55,0.12);
  background: rgba(255,255,255,0.85);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.branch-actions a:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(31,41,55,0.10);
  background: rgba(255,255,255,0.98);
}
.branch-actions a.whatsapp{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #1b1b1b;
  box-shadow: 0 16px 30px rgba(244,200,74,0.22);
}
.branch-actions a.whatsapp:hover{ box-shadow: 0 18px 36px rgba(244,200,74,0.28); }

.branches-hint{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(31,41,55,0.04);
  border: 1px solid rgba(31,41,55,0.07);
  color: var(--muted);
  font-size: 13px;
}



.map-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(31,41,55,0.08);
  background: linear-gradient(180deg, rgba(246,247,251,0.9), rgba(255,255,255,0.65));
}
.map-title{
  font-weight: 1000;
  font-size: 15px;
}
.map-sub{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.map-actions a{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,41,55,0.12);
  font-weight: 900;
  font-size: 13px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.map-actions a:hover{ transform: translateY(-1px); box-shadow: 0 14px 26px rgba(31,41,55,0.10); }
.map-actions a.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #1b1b1b;
}




.modal-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(31,41,55,0.10);
  background: rgba(246,247,251,0.85);
}
.small{ font-size: 13px; }
.muted{ color: var(--muted); }

@media (max-width: 980px){
  .modal-body{ grid-template-columns: 1fr; }
  .branches-left, .branch-right{ min-height: auto; }
  .map-frame iframe{ min-height: 340px; }
}


/* ===== Fix: modal fits screen height ===== */
.modal-branches{
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: 1040px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 40px 120px rgba(0,0,0,0.35);
  overflow: hidden;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

/* чтобы контент внутри мог ужиматься */
.modal-body{
  display:grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 16px;
  padding: 16px;
  flex: 1;
  min-height: 0;
}

/* убираем огромную высоту */
.branches-left{
  display:flex;
  flex-direction:column;
  gap: 12px;
  min-height: 520px;
  min-height: 0 !important;
}
.branch-right{
  min-height: 520px;
  min-height: 0 !important;
}

/* скролл только у списка */


/* карта тоже не должна раздувать модалку */


.map-frame{
  flex: 1;
  min-height: 0;
}

/* вместо min-height:420 делаем адаптив по экрану */
.map-frame iframe{
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  background: var(--bg-soft);
  max-height: 56vh;
}

/* на ноутбуках/маленьких экранах уменьшаем ещё */
@media (max-height: 780px){
  .map-frame iframe{
    max-height: 48vh;
    min-height: 220px;
  }
}


/* ===== Home page blocks ===== */
.hero{
  padding: 26px 0 10px;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.hero-badges{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31,41,55,0.05);
  border: 1px solid rgba(31,41,55,0.08);
  font-size: 13px;
  font-weight: 800;
}
.badge.ghost{ background: rgba(255,255,255,0.8); }

.hero-title{
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.accent{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 0 10px;
  border-radius: 12px;
}

.hero-subtitle{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 56ch;
}

.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat{
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(31,41,55,0.10);
  box-shadow: 0 14px 28px rgba(31,41,55,0.06);
}
.stat-num{
  font-weight: 1000;
  font-size: 18px;
}
.stat-text{
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.3;
}

.hero-card{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(31,41,55,0.10);
  overflow: hidden;
}
.hero-card-top{
  padding: 16px;
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(31,41,55,0.08);
  background: linear-gradient(180deg, rgba(246,247,251,0.9), rgba(255,255,255,0.65));
}
.hero-card-title{ font-weight: 1000; }
.hero-card-sub{ color: var(--muted); font-size: 13px; margin-top: 4px; }
.pill-soft{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(244,200,74,0.18);
  border: 1px solid rgba(244,200,74,0.35);
  font-weight: 900;
  font-size: 12px;
}

.steps{
  padding: 14px 16px 8px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.step{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(31,41,55,0.03);
  border: 1px solid rgba(31,41,55,0.06);
}
.step-ico{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(244,200,74,0.18);
  border: 1px solid rgba(244,200,74,0.32);
}
.step-title{ font-weight: 900; }
.step-sub{ color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.35; }

.hero-card-actions{
  padding: 14px 16px 16px;
}

.section{
  padding: 32px 0 8px;
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.section-head h2{
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.2px;
}
.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.5;
}



.feature{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(31,41,55,0.08);
}
.feature-ico{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(244,200,74,0.18);
  border: 1px solid rgba(244,200,74,0.32);
  margin-bottom: 10px;
}
.feature-title{ font-weight: 1000; }
.feature-text{ color: var(--muted); margin-top: 6px; line-height: 1.45; }

.price-card{
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(31,41,55,0.08);
}
.price-card.highlight{
  border-color: rgba(244,200,74,0.9);
  box-shadow: 0 0 0 3px rgba(244,200,74,0.20), 0 22px 50px rgba(31,41,55,0.10);
}
.price-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.price-name{ font-weight: 1000; }
.price-tag{
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31,41,55,0.05);
  border: 1px solid rgba(31,41,55,0.08);
}

.price-list{
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display:flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
}
.price-list li{
  display:flex;
  align-items:center;
  gap: 10px;
}



.faq-item summary{
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
  list-style: none;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-body{
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.cta{
  padding: 26px 0 8px;
}

.cta-inner h2{ margin: 0; font-size: 22px; }
.cta-inner p{ margin: 6px 0 0; color: var(--muted); }

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-title{ font-size: 36px; }
  .hero-stats{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
}




/* ===== Minimal home ===== */


.hero-min-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}









.mini{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31,41,55,0.04);
  border: 1px solid rgba(31,41,55,0.06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}



.glass-title{
  font-weight: 1000;
  margin-bottom: 10px;
}



.glass-step{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(31,41,55,0.03);
  border: 1px solid rgba(31,41,55,0.06);
}

.glass-dot{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 1000;
  background: rgba(244,200,74,0.20);
  border: 1px solid rgba(244,200,74,0.35);
}

.glass-step-title{ font-weight: 900; }
.glass-step-sub{ margin-top: 3px; font-size: 13px; color: var(--muted); }




.section-head-min h2{
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.2px;
}
.section-head-min p{ margin: 0; }



@media (max-width: 980px){
  .hero-min-grid{ grid-template-columns: 1fr; }
  .hero-min-title{ font-size: 36px; }
}


/* ===== Vertical rhythm (make page breathe) ===== */

/* Общие секции */
.section-min{
  padding: 42px 0 18px;
}

/* Hero */
.hero-min{
  padding: 48px 0 32px;
}

.hero-min-title{
  margin: 10px 0 10px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}

.hero-min-subtitle{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 52ch;
  margin-bottom: 22px;
}

/* Кнопки под hero */
.hero-min-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Мини-фичи под кнопками */
.hero-min-mini{
  display:flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

/* Правая карточка (glass) */
.glass-card{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(31,41,55,0.10);
  padding: 20px;
}

.glass-steps{
  display:flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

/* Блок "Почему удобно" */
.section-head-min{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

/* Сетка карточек */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Карточки */
.feature,
.price-card{
  padding: 20px;
}

/* Цена */
.price-value{
  margin: 18px 0 18px;
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: -0.4px;
}

/* CTA */
.cta-min{
  padding: 54px 0 24px;
}

.cta-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(244,200,74,0.22), rgba(246,247,251,0.75));
  border: 1px solid rgba(31,41,55,0.10);
  box-shadow: 0 18px 50px rgba(31,41,55,0.08);
}


/* ===== Training page ===== */
.page-head{
  padding: 26px 0 8px;
}
.page-head-inner{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.crumbs{
  display:flex;
  align-items:center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}
.crumbs a{ color: var(--muted); }
.page-title{
  margin: 0 0 10px;
  font-size: 38px;
  letter-spacing: -0.4px;
}
.page-subtitle{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 62ch;
}
.page-head-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.info-card{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(31,41,55,0.08);
}
.info-row{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.info-ico{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(244,200,74,0.18);
  border: 1px solid rgba(244,200,74,0.32);
}
.info-title{ font-weight: 1000; }
.info-text{ margin-top: 6px; color: var(--muted); line-height: 1.45; }

.split{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.split-card{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(31,41,55,0.08);
}
.split-title{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 1000;
  margin-bottom: 12px;
}

.clean-list{
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display:flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
}
.clean-list li{
  display:flex;
  align-items:center;
  gap: 10px;
}

.small-faq{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.small-faq-item{
  padding: 12px;
  border-radius: 16px;
  background: rgba(31,41,55,0.03);
  border: 1px solid rgba(31,41,55,0.06);
}
.small-faq-item .q{ font-weight: 900; }
.small-faq-item .a{ margin-top: 6px; color: var(--muted); line-height: 1.45; }

.price-mini{
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 980px){
  .page-title{ font-size: 32px; }
  .split{ grid-template-columns: 1fr; }
}


/* ===== About + Contacts ===== */
.about-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: start;
}

.about-card, .contact-card{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(31,41,55,0.08);
  padding: 20px;
}

.about-title{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 1000;
  margin-bottom: 12px;
}

.about-text{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.about-points{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.mini-dark{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(31,41,55,0.10);
}

.contact-item{
  display:flex;
  align-items:flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(31,41,55,0.03);
  border: 1px solid rgba(31,41,55,0.06);
  margin-top: 10px;
}

.contact-ico{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(244,200,74,0.18);
  border: 1px solid rgba(244,200,74,0.32);
}

.contact-title{ font-weight: 1000; }
.contact-sub{ margin-top: 6px; color: var(--muted); line-height: 1.45; font-size: 13px; }

.contact-divider{
  height: 1px;
  background: rgba(31,41,55,0.10);
  margin: 16px 0;
}

.branches-preview{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.branch-preview-card{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(31,41,55,0.08);
  padding: 16px;
}

.bp-title{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 1000;
}
.bp-sub{
  margin-top: 8px;
  line-height: 1.45;
  font-size: 13px;
}

.branches-cta{
  margin-top: 18px;
  display:flex;
  justify-content:center;
}

@media (max-width: 980px){
  .about-grid{ grid-template-columns: 1fr; }
  .branches-preview{ grid-template-columns: 1fr; }
}


/* ===== Instructors ===== */
.filter-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(31,41,55,0.12);
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.chip:hover{ transform: translateY(-1px); box-shadow: 0 14px 26px rgba(31,41,55,0.10); }
.chip.active{
  background: rgba(244,200,74,0.22);
  border-color: rgba(244,200,74,0.55);
}

.instructors-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.inst-card{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(31,41,55,0.08);
  padding: 18px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.inst-top{
  display:flex;
  align-items:flex-start;
  gap: 12px;
}

.avatar{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 1000;
  font-size: 18px;
  background: rgba(244,200,74,0.18);
  border: 1px solid rgba(244,200,74,0.32);
}

.inst-info{ flex: 1; }
.inst-name{ font-weight: 1000; }
.inst-sub{ margin-top: 6px; font-size: 13px; line-height: 1.35; }

.inst-branch{
  font-size: 12px;
  font-weight: 1000;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31,41,55,0.05);
  border: 1px solid rgba(31,41,55,0.08);
}

.inst-tags{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag{
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31,41,55,0.04);
  border: 1px solid rgba(31,41,55,0.06);
  color: var(--muted);
}

.inst-actions{ margin-top: 4px; }

@media (max-width: 980px){
  .instructors-grid{ grid-template-columns: 1fr; }
}


/* ===== Admin UI ===== */
.admin-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: start;
}

.admin-card{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(31,41,55,0.08);
  padding: 18px;
}

.admin-card-title{
  font-weight: 1000;
  margin-bottom: 12px;
}

.admin-item{
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 18px;
  padding: 14px;
  background: rgba(31,41,55,0.02);
  margin-bottom: 12px;
}

.form{ display:flex; flex-direction:column; gap: 10px; }
.form label{ font-size: 13px; color: var(--muted); font-weight: 800; }

.form input, .form textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(31,41,55,0.12);
  background: rgba(255,255,255,0.9);
  outline: none;
  font-size: 14px;
}
.form input:focus, .form textarea:focus{
  box-shadow: 0 0 0 3px rgba(244,200,74,0.22);
  border-color: rgba(244,200,74,0.6);
}

.form.compact{ gap: 8px; }

.row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.row-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.check{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(31,41,55,0.03);
  border: 1px solid rgba(31,41,55,0.08);
}

@media (max-width: 980px){
  .admin-grid{ grid-template-columns: 1fr; }
  .row2{ grid-template-columns: 1fr; }
}


.admin-select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(31,41,55,0.12);
  background: rgba(255,255,255,0.9);
  font-size: 14px;
  outline: none;
}
.admin-select:focus{
  box-shadow: 0 0 0 3px rgba(244,200,74,0.22);
  border-color: rgba(244,200,74,0.6);
}


/* photo support */
.inst-photo{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(31,41,55,0.10);
}

/* empty state */
.empty-state{
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(31,41,55,0.08);
  padding: 20px;
}
.empty-title{ font-weight: 1000; font-size: 16px; }
.empty-sub{ margin-top: 8px; line-height: 1.45; }


/* ===== Choice bar in branch modal ===== */
.choice-bar{
  grid-column: 1 / -1;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(244,200,74,0.18);
  border: 1px solid rgba(244,200,74,0.35);
  box-shadow: 0 14px 30px rgba(31,41,55,0.08);
}

.choice-pill{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 1000;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.3;
}

.choice-clear{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,0.12);
  background: rgba(255,255,255,0.8);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.choice-clear:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(31,41,55,0.10);
}


/* categories */
.cat-section{ background:#fff; padding: 26px 0; }
.cat-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  align-items:center;
  gap: 18px;
}
.cat-inner-rev{
  grid-template-columns: 1fr 1fr;
}
.cat-title{
  display:flex;
  align-items:baseline;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 1000;
}
.cat-title.right{ justify-content:flex-end; padding-right: 420px; /* ← подбирай значение */}
.cat-title-text{ font-size: 16px; letter-spacing:.3px; color:#111827; }
.cat-title-letter{ font-size: 18px; color:#b58a43; }

.cat-info{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items:start;
  margin-bottom: 14px;
}
.cat-info.one{ grid-template-columns: 1fr; }
.cat-col-title{
  font-weight:1000;
  color:#111827;
  margin-bottom: 8px;
}
.cat-col-item{ color:#111827; font-size: 13px; margin: 4px 0; opacity:.92; }
.cat-price{ margin-top: 10px; font-weight:1000; }
.cat-col.sep{
  width: 1px;
  height: 100%;
  background: rgba(17,24,39,.12);
}

.cat-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f4c84a;
  color:#111827;
  font-weight: 1000;
  border: none;
  cursor:pointer;
}
.cat-btn .arrow{ font-weight:1000; }
.cat-btn:hover{ filter: brightness(.97); }

.cat-right{
  position: relative;
  min-height: 220px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.big-letter{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 180px;
  font-weight: 1000;
  color: rgba(17,24,39,.18);
  pointer-events:none;
}
.cat-car{
  width: 100%;
  max-width: 999px;
  height:auto;
  position: relative;
  z-index: 1;
  transform: translateX(30px);
}
.cat-bike{
  width: 100%;
  max-width: 700px;
  height:auto;
  position: relative;
  z-index: 1;
  transform: translateX(-30px);
}

/* ===== FAQ Premium (override) ===== */
.faq{
  display:flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(135deg, #b58a43, #9f7a3c);
  padding: 54px 0 64px;
  color:#fff;
  position: relative;
  overflow: hidden;
}

/* лёгкий “блик” */
.faq::before{
  content:"";
  position:absolute;
  inset:-120px -120px auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.20), transparent 60%);
  transform: rotate(12deg);
  pointer-events:none;
}

/* контейнер */
.faq-inner{
  max-width: 920px;
  margin: 0 auto;
  padding: 0 18px;
}

/* заголовок */
.faq-title{
  margin:0 0 18px;
  font-size: 44px;
  letter-spacing: -0.6px;
  font-weight: 1000;
}

/* подзаголовок (если захочешь добавить <p class="faq-sub">) */
.faq-sub{
  margin: 0 0 22px;
  color: rgba(255,255,255,.88);
  line-height: 1.5;
  max-width: 60ch;
}

/* список */


/* hover */
.faq-item:hover{
  transform: translateY(-2px);
  border-color: rgba(244,200,74,.55);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
  background: rgba(255,255,255,.12);
}

/* вопрос-кнопка */


/* фокус для клавиатуры */
.faq-q:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(244,200,74,.35);
}

/* левая “полоска-акцент” */
.faq-q::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(244,200,74,.95);
  box-shadow: 0 10px 24px rgba(244,200,74,.25);
  flex: 0 0 auto;
}

/* правая иконка */
.faq-ico{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 1000;
  color: #1f2937;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 30px rgba(244,200,74,.22);
  transition: transform .25s ease, filter .15s ease;
}

/* ответ (аккордеон) */
.faq-a{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 18px;
  color: rgba(255,255,255,.90);
  line-height: 1.6;
  transition: max-height .35s ease, opacity .25s ease, padding .25s ease;
}

/* открыто */
.faq-item.open{
  border-color: rgba(244,200,74,.65);
  background: rgba(0,0,0,.10);
}

.faq-item.open .faq-a{
  max-height: 240px;       /* увеличь если ответы длинные */
  opacity: 1;
  padding: 0 18px 18px;
}

.faq-item.open .faq-ico{
  transform: rotate(45deg);
}

/* адаптив */
@media (max-width: 980px){
  .faq{ padding: 44px 0 54px; }
  .faq-title{ font-size: 34px; }
  .faq-q{ padding: 16px 16px; font-size: 15px; }
  .faq-a{ padding: 0 16px; }
  .faq-item.open .faq-a{ padding: 0 16px 16px; }
}


/* ===== Home Hero Premium (override) ===== */
.home-hero{
  background: linear-gradient(135deg, #b58a43 0%, #a57d3d 35%, #966f35 100%);
  color: #fff;
  padding: 56px 0 62px;
  position: relative;
  overflow: hidden;
}

/* мягкие “блики” */
.home-hero::before{
  content:"";
  position:absolute;
  inset: -160px -140px auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 60%);
  transform: rotate(10deg);
  pointer-events:none;
}
.home-hero::after{
  content:"";
  position:absolute;
  left:-220px;
  bottom:-260px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 50% 50%, rgba(244,200,74,.22), transparent 60%);
  pointer-events:none;
}

.home-hero-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items:center;
}

/* левый блок */
.home-hero-left{
  position: relative;
  z-index: 2;
}

.home-hero-top{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 1000;
  letter-spacing: .6px;
  opacity: .95;
}

.home-hero-brand{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.20);
}

.home-hero-name{
  font-size: 14px;
  opacity: .95;
}

.home-hero-title{
  margin: 16px 0 12px;
  font-size: 44px;
  line-height: 1.04;
  font-weight: 1000;
  letter-spacing: -0.8px;
  text-wrap: balance;
}



.home-hero-sub{
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.92);
  max-width: 52ch;
}

/* chips под текстом (используем твои .mini, но делаем “hero-версию”) */
.home-hero .hero-min-mini{
  margin-top: 14px !important;
  gap: 10px;
}

.home-hero .mini{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.20);
  color: rgba(255,255,255,.95);
}

.home-hero .mini .i{
  color: rgba(255,255,255,.95);
}

/* кнопка */
.home-btn{
  margin-top: 16px;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#1f2937;
  font-weight: 1000;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 18px 36px rgba(244,200,74,.28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.home-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(244,200,74,.34);
}
.home-btn:active{ transform: translateY(0); }

/* правый блок с машиной */
.home-hero-right{
  position: relative;
  z-index: 1;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-height: 320px;
}

/* “пьедестал” под машиной */
.home-hero-right::before{
  content:"";
  position:absolute;
  right: 10px;
  bottom: 10px;
  width: min(520px, 100%);
  height: 260px;
  border-radius: 28px;
  background: rgba(0,0,0,.12);
  filter: blur(0px);
  transform: skewX(-6deg);
  opacity: .65;
}

/* главное: машина видна целиком */
.home-hero-car{
  width: 100%;
  max-width: 760px;
  height: auto;
  display:block;
  margin-left:auto;
  transform: translateX(28px) scale(1.25);
  transform-origin: right center;
  filter: drop-shadow(0 26px 46px rgba(0,0,0,.28));
}

/* адаптив */
@media (max-width: 980px){
  .home-hero{ padding: 44px 0 54px; }
  .home-hero-inner{ grid-template-columns: 1fr; gap: 18px; }
  .home-hero-title{ font-size: 34px; }
  .home-hero-right{ justify-content:center; min-height: 220px; }
  .home-hero-right::before{ right: 0; left: 0; margin: 0 auto; }
  .home-hero-car{
    max-width: 520px;
    transform: none; /* на телефоне не сдвигаем */
  }
}


/* ===== Stats strip Premium (override) ===== */
.stats-strip{
  background: #fff;
  padding: 26px 0;
  position: relative;
}

/* общий контейнер-плашка */
.stats-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 18px 44px rgba(17,24,39,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  backdrop-filter: blur(10px);
}

/* один блок */

.stats-inner .stat:hover{
  transform: translateY(-2px);
  background: rgba(244,200,74,.14);
}

/* большое значение */
.stats-inner .stat-big{
  font-size: 34px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.6px;
  color: #111827;
}

/* подпись */
.stats-inner .stat-small{
  margin-top: 8px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(17,24,39,.70);
}

/* разделители */


/* адаптив */
@media (max-width: 980px){
  .stats-inner{
    border-radius: 18px;
    padding: 12px 12px;
    gap: 10px;
  }
  .stats-inner .stat-big{ font-size: 26px; }
  .stats-inner .stat-small{ font-size: 11px; letter-spacing: .16em; }
  .stats-inner .stat-line{ height: 38px; }
}

  .stats-inner .stat{
  flex: 1 1 140px;
  min-width: 0;
  text-align:center;
  padding: 10px 6px;
  border-radius: 16px;
  transition: transform .15s ease, background .15s ease;
}
  .stats-inner .stat-line{
  width: 1px;
  height: 44px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(17,24,39,.18),
    transparent
  );
  flex: 0 0 auto;
  display:none;
}
}


/* ===========================
   Responsive: categories only
   =========================== */

/* responsive (categories only) */
@media (max-width: 980px){
  .cat-inner{ grid-template-columns: 1fr; }
  .big-letter{ font-size: 140px; }

  /* картинки категорий не “уезжают” на телефоне */
  .cat-b .cat-car,
  .cat-a .cat-bike{
    transform: none;
    max-width: 100%;
  }
}


/* ===========================
   CTA60 Premium (override)
   =========================== */

.cta60{
  background: var(--bg);
  padding: 54px 0 26px;
}

.cta60-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;

  /* премиум контейнер */
  background:
    radial-gradient(900px 300px at 20% 15%, rgba(244,200,74,.35), transparent 60%),
    radial-gradient(700px 260px at 85% 20%, rgba(31,41,55,.08), transparent 62%),
    linear-gradient(135deg, rgba(246,247,251,1), rgba(255,255,255,1));
  border-radius: 28px;
  border: 1px solid rgba(31,41,55,.12);
  box-shadow: 0 22px 70px rgba(31,41,55,.12);
  overflow: hidden;

  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items:center;
  gap: 18px;

  min-height: 320px;
  position: relative;
}

/* мягкий блик */
.cta60-inner::before{
  content:"";
  position:absolute;
  inset:-180px -180px auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%);
  transform: rotate(12deg);
  pointer-events:none;
}

/* левая часть */
.cta60-left{
  padding: 26px 26px 26px 28px;
  position: relative;
  z-index: 2;
}

.cta60-title{
  margin:0 0 12px;
  font-size: clamp(26px, 3.1vw, 40px);
  line-height: 1.05;
  font-weight: 1000;
  letter-spacing: -0.6px;
  color: #111827;
  text-wrap: balance;
}

.cta60-sub{
  margin:0 0 18px;
  color: rgba(17,24,39,.70);
  font-weight: 900;
  letter-spacing:.12em;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.4;
}

/* форма */


/* инпут — как в твоих формах, но красивее */
.cta60-input{
  width: min(360px, 100%);
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,.14);
  outline: none;
  background: rgba(255,255,255,.92);
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(31,41,55,.08);
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.cta60-input::placeholder{
  color: rgba(31,41,55,.45);
  font-weight: 800;
}

.cta60-input:focus{
  border-color: rgba(244,200,74,.75);
  box-shadow: 0 0 0 4px rgba(244,200,74,.22), 0 14px 30px rgba(31,41,55,.10);
}

/* кнопка — в стиле твоих .btn-primary */


.cta60-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(244,200,74,.32);
}

.cta60-btn:active{ transform: translateY(0); }

/* правая часть */
.cta60-right{
  position: relative;
  z-index: 1;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding: 0 18px 0 0;
  min-height: 320px;
}

/* “пьедестал” под картинкой */
.cta60-right::before{
  content:"";
  position:absolute;
  right: 26px;
  bottom: 18px;
  width: min(520px, 95%);
  height: 230px;
  border-radius: 26px;
  background: rgba(17,24,39,.06);
  transform: skewX(-8deg);
  pointer-events:none;
}

.cta60-laptop{
  width: 100%;
  max-width: 540px;
  height:auto;
  display:block;
  transform: translateY(14px);
  filter: drop-shadow(0 24px 42px rgba(0,0,0,.22));
}

/* адаптив */
@media (max-width: 980px){
  .cta60{ padding: 44px 0 20px; }
  .cta60-inner{
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: unset;
  }
  .cta60-right{
    min-height: 220px;
    padding: 0 18px 18px;
  }
  .cta60-right::before{
    left: 18px;
    right: 18px;
    margin: 0 auto;
    width: auto;
  }
  .cta60-laptop{
    max-width: 520px;
    transform: translateY(6px);
  }
}

  .cta60-form{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}
  .cta60-btn{
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.04);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1f2937;
  font-weight: 1000;
  cursor:pointer;
  box-shadow: 0 16px 30px rgba(244,200,74,.26);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  width: 100%;
}
}


/* ===== Map + Reviews ===== */
.map-wrap{
  display: grid;
  gap: 14px;
}



.map-embed iframe{
  width: 100%;
  height: 360px;
  display: block;
}

.review-card{
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.review-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.review-name{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 700;
}

.review-stars{
  letter-spacing: 1px;
  opacity: .95;
}

.review-text{
  opacity: .95;
  line-height: 1.5;
}

.review-meta{
  margin-top: 12px;
  display:flex;
  align-items:center;
  gap: 8px;
  opacity: .85;
  font-size: 14px;
}

.reviews-cta{
  margin-top: 14px;
  display:flex;
  justify-content:center;
}


/* ===== Reviews marquee ===== */
.reviews-marquee{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  padding: 14px 0;
}

.reviews-track{
  display: flex;
  gap: 12px;
  will-change: transform;
  animation: reviewsScroll var(--reviewsDur, 38s) linear infinite;
}

.reviews-marquee:hover .reviews-track{
  animation-play-state: paused;
}

.review-pill{
  min-width: 320px;
  max-width: 320px;
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.rp-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 8px;
}

.rp-name{ font-weight: 800; }
.rp-stars{ letter-spacing: 1px; opacity:.95; }
.rp-text{ opacity:.92; line-height:1.45; }
.rp-meta{ margin-top:10px; font-size:13px; opacity:.8; }

@keyframes reviewsScroll{
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--reviewsHalf, 1000px))); }
}


/* ===== Map (only branches) ===== */
.map-card{
  height: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  display:flex;
  flex-direction:column;
  min-height: 0;
}

.map-viewport{
  width: 100%;
  height: 380px;
}

.map-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px;
}



/* ===== Branches: map + list ===== */
.branches-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
  align-items: stretch;
}

.map-embed{
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  min-height: 320px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.map-embed--small iframe{
  width: 100%;
  height: 320px; /* уменьшили */
  display: block;
}

.branches-card{
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.branches-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.branches-card-title{
  font-weight: 900;
  font-size: 16px;
}

.branches-list{
  display: grid;
  flex-direction:column;
  gap: 10px;
  overflow: auto;
  padding-right: 6px;
  flex: 1;
  min-height: 0;
  max-height: 320px;
}

/* красивый скролл (не обяз) */
.branches-list::-webkit-scrollbar{ width: 8px; }
.branches-list::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.18);
  border-radius: 10px;
}

.branch-item{
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}

.branch-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.branch-name{
  font-weight: 900;
}

.branch-tag{
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  opacity: .9;
}

.branch-addr{
  opacity: .9;
  line-height: 1.35;
  margin-bottom: 8px;
}

.branch-phone{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  opacity: .95;
}

.branch-phone:hover{
  text-decoration: underline;
}

/* mobile */
@media (max-width: 900px){
  .branches-grid{
    grid-template-columns: 1fr;
  }
  .branches-list{
    max-height: none;
  }
  .map-embed--small iframe{
    height: 300px;
  }
}


/* ===== Footer (макет: black + gold bar + 4 cols) ===== */
.footer-new{
  background: #0b0b0b;
  color: #fff;
  margin-top: 40px;
}

.footer-new-bar{
  height: 26px;           /* золотая полоска */
  background: #b58a43;
}

.footer-new-inner{
  padding: 26px 0 18px;
}

.footer-new-grid{
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.footer-brand-row{
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo{
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  padding: 6px;
}

.footer-brand-top{
  font-weight: 900;
  letter-spacing: .18em;
  font-size: 12px;
  opacity: .95;
  text-transform: uppercase;
}

.footer-brand-bottom{
  font-weight: 1000;
  letter-spacing: .08em;
  font-size: 18px;
  text-transform: uppercase;
  margin-top: 4px;
}

.footer-title{
  font-weight: 1000;
  letter-spacing: .18em;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-list{
  display: grid;
  gap: 8px;
}

.footer-item{
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,.78);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,.25);
}

.footer-linkline{
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,.78);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,.25);
  transition: color .15s ease, text-decoration-color .15s ease;
}

.footer-linkline:hover{
  color: rgba(255,255,255,.95);
  text-decoration-color: rgba(244,200,74,.75);
}

.footer-new-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

/* responsive */
@media (max-width: 980px){
  .footer-new-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-new-bar{ height: 18px; }
}


.policy-text{
  max-width: 860px;
  line-height: 1.7;
  color: rgba(17,24,39,.9);
}

.policy-text h3{
  margin-top: 22px;
  font-weight: 900;
}

.policy-text ul{
  margin-left: 18px;
  margin-top: 8px;
}

.policy-text li{
  margin-bottom: 6px;
}


/* =========================
   TRAINING (Figma merge)
   ========================= */

:root{
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: rgba(31,41,55,0.12);
  --shadow: 0 10px 30px rgba(31,41,55,0.08);
  --accent: #f4c84a;
  --accent-2: #f7d56b;
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1180px;
  --figma-gold: #b58a43;
  --figma-yellow: #ffd400;
  --figma-black: #0b0b0b;
}

/* HERO */






.tr-btn:active{ transform: translateY(0); }






/* PROGRAM */












/* BLOCKS */
.tr-block{
  background:#fff;
  padding: 26px 0 38px;
}
.tr-block-inner{
  text-align:center;
  max-width: 980px;
}

.tr-block-text{
  margin: 12px auto 22px;
  max-width: 74ch;
  color: rgba(17,24,39,.68);
  line-height: 1.6;
  font-weight: 700;
  font-size: 13px;
}

/* icon line (theory) */
.tr-icon-line{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.tr-icon-pack{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 28px rgba(17,24,39,.08);
}
.tr-icon-pack .i{ width: 26px; height: 26px; }
.tr-icon-arrow{
  font-size: 34px;
  font-weight: 1000;
  color: rgba(17,24,39,.55);
}
.tr-icon-badge{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--figma-yellow);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 16px 30px rgba(0,0,0,.16);
}
.tr-icon-badge .i{ width: 26px; height: 26px; }

/* cards (practice/exam) */
.tr-card{
  margin: 18px auto 0;
  border-radius: 22px;
  background: var(--figma-gold);
  color: #fff;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items:center;
  padding: 18px;
  max-width: 900px;
  box-shadow: 0 22px 70px rgba(17,24,39,.18);
}
.tr-card-list{
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 10px;
  text-align:left;
  font-weight: 800;
  font-size: 13px;
  opacity: .95;
}
.tr-card-list li{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  line-height: 1.35;
}
.tr-card-list .i{ width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }


.tr-card-img{
  width: 100%;
  max-width: 420px;
  height: auto;
  display:block;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}

.tr-down{
  margin-top: 18px;
  font-size: 54px;
  font-weight: 1000;
  color: rgba(17,24,39,.35);
  line-height: 1;
}

.tr-card-exam{
  background: var(--figma-gold);
  grid-template-columns: .95fr 1.05fr;
}
.tr-exam-text{
  text-align:left;
  font-weight: 800;
  line-height: 1.55;
}
.tr-exam-text p{ margin: 0 0 10px; }

.tr-block-last{ padding-bottom: 12px; }

/* Responsive */
@media (max-width: 980px){
  .tr-hero-inner{ grid-template-columns: 1fr; }
  .tr-hero-title{ font-size: 34px; }
  .tr-hero-right{ order: 2; }
  .tr-hero-left{ order: 1; }
  .tr-flow{ gap: 12px; flex-wrap: wrap; }
  .tr-flow-arrow{ display:none; }
  .tr-card{ grid-template-columns: 1fr; text-align:left; }
  .tr-card-right{ order: 2; }
  .tr-card-left{ order: 1; }
  .tr-card-img{ max-width: 520px; }
}


  .tr-block-title{
  margin: 0;
  font-weight: 1000;
  font-size: 28px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
}


/* =========================
   TRAINING HERO (premium)
   ========================= */

.tr-hero{
  /* премиум фон */
  background: linear-gradient(135deg, #b58a43 0%, #a57d3d 45%, #8f672f 100%);
  color: #fff;
  padding: 64px 0 68px;
  position: relative;
  overflow: hidden;
}

/* мягкие блики */
.tr-hero::before{
  content:"";
  position:absolute;
  right:-200px;
  top:-240px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 62%);
  transform: rotate(10deg);
  pointer-events:none;
}
.tr-hero::after{
  content:"";
  position:absolute;
  left:-260px;
  bottom:-320px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 50% 50%, rgba(255,212,0,.20), transparent 60%);
  pointer-events:none;
}



/* левый блок */
.tr-hero-left{ max-width: 640px; }



.tr-hero-title-strong{
  font-weight: 1000;
  display:inline-block;
  padding: 4px 12px 7px;
  border-radius: 18px;
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
}

/* подзаголовок */


/* кнопка */
.tr-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(0,0,0,.06);
  cursor:pointer;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 14px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  gap: 10px;
  user-select:none;
}

.tr-btn-primary{
  background: linear-gradient(135deg, #ffd400, #ffe45a);
  color: #111827;
  box-shadow: 0 18px 38px rgba(0,0,0,.22);
}

.tr-btn-primary:hover{
  transform: translateY(-2px);
  filter: brightness(.99);
  box-shadow: 0 22px 50px rgba(0,0,0,.26);
}

.tr-btn-primary:active{
  transform: translateY(0);
}

/* правый блок */
.tr-hero-right{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  position: relative;
  min-height: 320px;
}

/* “пьедестал” под картинкой */
.tr-hero-right::before{
  content:"";
  position:absolute;
  right: 12px;
  bottom: 8px;
  width: min(520px, 100%);
  height: 260px;
  border-radius: 30px;
  background: rgba(0,0,0,.12);
  transform: skewX(-7deg);
  opacity: .6;
  pointer-events:none;
}

/* картинка */


/* микро-анимация появления */
@keyframes trHeroUp{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}
.tr-hero-left,
.tr-hero-right{
  animation: trHeroUp .55s ease both;
}

/* accessibility */
@media (prefers-reduced-motion: reduce){
  .tr-hero-left, .tr-hero-right{ animation: none; }
  .tr-btn{ transition:none; }
}

/* адаптив */
@media (max-width: 980px){
  .tr-hero{ padding: 46px 0 54px; }
  .tr-hero-inner{ grid-template-columns: 1fr; gap: 18px; }
  .tr-hero-right{ justify-content:center; min-height: 220px; }
  .tr-hero-right::before{
    left: 0; right: 0;
    margin: 0 auto;
    width: min(520px, 100%);
  }
  .tr-hero-img{
    max-width: 520px;
    transform: none;
  }
}


/* ================================
   INSTRUCTORS (FIGMA STYLE)
   Paste at very end of style.css
================================ */

/* HERO */
.inst-hero{
  background:#b58a43;
  color:#fff;
  padding: 22px 0 26px;           /* уменьшили высоту */
}
.inst-hero-inner{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items:center;
}
.inst-hero-title{
  margin:0 0 10px;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 1000;
  letter-spacing: .2px;
}
.inst-hero-strong{ font-weight: 1000; }
.inst-hero-sub{
  margin: 0 0 16px;
  opacity:.9;
  max-width: 520px;
}
.inst-hero-btn{
  background:#f3c11a;
  color:#141414;
  border:none;
  border-radius: 0;
  padding: 10px 18px;
  font-weight: 900;
  letter-spacing: .6px;
  cursor:pointer;
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
}
.inst-hero-btn:hover{ filter: brightness(.98); }

.inst-hero-right{
  display:flex;
  justify-content:flex-end;
}
.inst-hero-img{
  width: min(320px, 40vw);
  height: auto;
  transform: translateY(8px);
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.25));
}

/* STATS */
.inst-stats{
  background:#fff;
  padding: 18px 0;
}
.inst-stats-inner{
  display:grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items:center;
  gap: 18px;
}
.inst-stat{ text-align:center; }
.inst-stat-big{
  font-size: 56px;
  font-weight: 1000;
  line-height: 1;
  color:#0f0f0f;
}
.inst-stat-small{
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 1px;
  color:#616161;
  font-weight: 800;
}
.inst-stat-line{
  width: 2px;
  height: 54px;
  background:#dedede;
}

/* FILTER */
.inst-filter{
  padding: 18px 0 6px;
  background:#fff;
}
.inst-filter-inner{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  flex-wrap:wrap;
}
.inst-filter-title{
  font-weight: 1000;
  font-size: 16px;
  color:#0f0f0f;
}
.inst-filter-sub{
  margin-top: 6px;
  color:#777;
  font-size: 13px;
}
.inst-filter-chips{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.inst-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e7e7e7;
  background:#fff;
  color:#151515;
  font-weight: 800;
  text-decoration:none;
  font-size: 13px;
}
.inst-chip:hover{ background:#fafafa; }
.inst-chip.is-active{
  background:#f3c11a;
  border-color:#f3c11a;
}

/* CATEGORIES */
.inst-cats{ padding: 14px 0 34px; background:#fff; }
.inst-cats-head{ margin: 8px 0 16px; }
.inst-cats-title{
  font-size: 28px;
  font-weight: 1000;
  color:#0f0f0f;
}
.inst-cats-sub{ margin-top: 6px; color:#777; font-size: 13px; }

.inst-cats-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items:start;
}

.inst-cat-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin: 10px 0 12px;
}
.inst-cat-label{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 1000;
  letter-spacing: .6px;
  color:#0f0f0f;
}


/* CARD */
.inst-cards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.inst-card-figma{
  background:#fff;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid #ececec;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
.inst-card-photo{
  position:relative;
  height: 150px;
  background:#f4f4f4;
}
.inst-card-photo img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.inst-card-avatar{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 44px;
  font-weight: 1000;
  color:#111;
}

.inst-badge{
  position:absolute;
  left: 14px;
  bottom: 12px;
  background:#f3c11a;
  color:#141414;
  font-weight: 1000;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  letter-spacing: .4px;
}

.inst-card-body{ padding: 12px 14px 14px; }
.inst-card-name{
  font-weight: 1000;
  font-size: 14px;
  letter-spacing: .3px;
  color:#0f0f0f;
  text-transform: uppercase;
}

.inst-card-rating{
  display:flex;
  align-items:center;
  gap: 8px;
  margin: 8px 0 10px;
}
.inst-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 26px;
  height: 22px;
  border-radius: 999px;
  background:#d7b06a;
  color:#111;
  font-weight: 1000;
  font-size: 12px;
}
.inst-stars{
  letter-spacing: 1px;
  color:#f3c11a;
  font-size: 14px;
}
.inst-rate{
  font-weight: 1000;
  color:#111;
}

.inst-card-desc{
  font-size: 12px;
  color:#4b4b4b;
  min-height: 34px;
}
.inst-muted{ color:#7a7a7a; }

.inst-cta-btn{
  width:100%;
  margin-top: 12px;
  border:none;
  cursor:pointer;
  background:#f2bf53;
  color:#111;
  font-weight: 1000;
  padding: 12px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(0,0,0,.10);
}
.inst-cta-btn:hover{ filter: brightness(.98); }

.inst-empty{
  padding: 14px;
  border: 1px dashed #d8d8d8;
  border-radius: 14px;
  color:#666;
  grid-column: 1 / -1;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .inst-hero-inner{ grid-template-columns: 1fr; }
  .inst-hero-right{ justify-content:center; }
  .inst-hero-title{ font-size: 38px; }
  .inst-stats-inner{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .inst-stat-line{ display:none; }
  .inst-cats-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .inst-hero-title{ font-size: 32px; }
  .inst-cards{ grid-template-columns: 1fr; }
  .inst-card-photo{ height: 170px; }
}


/* ===== TRAINING HERO FIX ===== */




/* текст */
.tr-hero-title{
  margin: 0 0 16px;
  font-weight: 1000;
  line-height: 1.1;
  letter-spacing: -0.9px;
  font-size: 40px;
  text-wrap: balance;
}

.tr-hero-sub{
  margin: 0 0 22px;
  opacity: .85;
  line-height: 1.65;
  max-width: 52ch;
  font-size: 16px;
  color: rgba(255,255,255,.90);
  margin-top: 12px;
}

/* картинка справа */






/* фиксируем hero */
.tr-hero{
  background: var(--figma-gold);
  color: #fff;
  padding: 56px 0 64px;
  min-height: auto;
  height: 420px;
  overflow: hidden;
}

/* центрируем контент */
.tr-hero-inner{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
  height: 100%;
}

/* увеличиваем картинку */
.tr-hero-img{
  width: auto;
  max-width: 560px;
  height: 520px;
  display:block;
  filter: drop-shadow(0 28px 54px rgba(0,0,0,.28));
  transform: translateX(-60px);
  transform-origin: right center;
  max-height: none;
  object-fit: contain;
}


/* FIX: опустить желтую плашку "за 2 месяца", чтобы не цепляла букву */



/* GAP между двумя плашками в training hero */
.tr-hero-title .tr-hero-title-strong + br + .tr-hero-title-strong{
  margin-top: 10px; /* 6–12px */
  display: inline-block; /* на всякий случай */
}


/* ================== TRAINING: PROGRAM (3 steps) — PREMIUM LOOK ================== */

.tr-program{
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 206, 96, .22), transparent 55%),
    radial-gradient(circle at 82% 35%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(180deg, #f7f8fb, #ffffff);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(15, 23, 42, .06);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}



.tr-title{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, .7);
}



/* flow layout */
.tr-flow{
  display: grid;
  align-items: center;
  justify-content:center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 22px;
  background: radial-gradient(520px 160px at 50% 50%, rgba(181,138,67,.45), rgba(181,138,67,.12), transparent 70%);
  grid-template-columns: 1fr auto 1fr auto 1fr;
  margin-top: 18px;
}

/* step card */


.tr-flow-item:hover{
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, .14);
  box-shadow:
    0 16px 40px rgba(15, 23, 42, .10),
    inset 0 1px 0 rgba(255,255,255,.9);
}

/* icon circle */
.tr-flow-ico{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 206, 96, .35);
  border: 1px solid rgba(255, 206, 96, .55);
  display: grid;
  align-items:center;
  justify-content:center;
  box-shadow: 0 8px 18px rgba(255, 206, 96, .18);
  place-items: center;
  flex: 0 0 46px;
}

.tr-flow-ico .i{
  width: 22px;
  height: 22px;
}

/* label */


/* arrows: сделать аккуратные "переходы" */
.tr-flow-arrow{
  font-size: 34px;
  font-weight: 900;
  color: rgba(15, 23, 42, .6);
  transform: translateY(-6px);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .04);
  border: 1px solid rgba(15, 23, 42, .08);
  line-height: 1;
  user-select: none;
}

/* big line pill */
.tr-bigline{
  margin: 36px 0 0;
  font-weight: 1000;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  color: rgba(15, 23, 42, .9);
  background: rgba(255, 206, 96, .45);
  border: 1px solid rgba(255, 206, 96, .7);
  box-shadow: 0 14px 34px rgba(255, 206, 96, .16);
}

/* маленький "блик" у bigline */
.tr-bigline::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .9);
  opacity: .12;
}

/* Mobile: в колонку + стрелки вниз */
@media (max-width: 820px){
  .tr-program{ padding: 52px 0; }

  .tr-sub{ margin-bottom: 18px; }

  .tr-flow{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tr-flow-arrow{
    width: 38px;
    height: 38px;
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .tr-flow-item{
    padding: 16px 14px;
    border-radius: 16px;
  }

  .tr-flow-ico{
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}

/* Optional: если хочешь чуть плавнее появление (не обязательно) */
@media (prefers-reduced-motion: no-preference){
  .tr-flow-item{
    animation: trPop .45s ease both;
  }
  .tr-flow-item:nth-child(1){ animation-delay: .02s; }
  .tr-flow-item:nth-child(3){ animation-delay: .07s; }
  .tr-flow-item:nth-child(5){ animation-delay: .12s; }

  @keyframes trPop{
    from{ opacity: 0; transform: translateY(8px); }
    to{ opacity: 1; transform: translateY(0); }
  }
}


/* Center text in program section */
.tr-program-inner{
  text-align: center;
  max-width: 980px;
  position: relative;
}

.tr-sub{
  margin: 0 0 24px;
  color: rgba(15, 23, 42, .72);
  max-width: 720px;
  line-height: 1.55;
  font-weight: 700;
  font-size: 16px;
  margin-left: auto;
  margin-right: auto;
}

/* Center content inside each step card */
.tr-flow-item{
  display: flex;
  flex-direction:column;
  align-items: center;
  gap: 12px;
  min-width: 140px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, .06),
    inset 0 1px 0 rgba(255,255,255,.9);
  border-radius: 18px;
  padding: 18px 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  backdrop-filter: blur(8px);
  justify-content: center;
  text-align: center;
}

/* Label ровно по центру */
.tr-flow-label{
  font-weight: 1000;
  letter-spacing: .08em;
  font-size: 13px;
  color: rgba(15, 23, 42, .9);
  line-height: 1.1;
}


/* ================= PRACTICE: FINAL FIX ================= */

/* Плашка — СТОИТ */


/* МАШИНА — ЖИВЁТ ОТДЕЛЬНО */
.tr-card-right .tr-card-img{
  position: absolute;      /* ВАЖНО */
  top: 56%;
  left: -56px;

  width: 500px;            /* ← ТОЛЬКО ТУТ увеличиваем */
  max-width: none;
  height: auto;

  transform: translateY(-50%);

  border-radius: 0;
  box-shadow: none;
  background: none;
  pointer-events: none;
}

/* Мобилка */
@media (max-width: 900px){
  .tr-card-right{
    display:flex;
    justify-content:center;
  }

  .tr-card-right .tr-card-img{
    width: 180%;
    max-width: none;
    transform: translateX(30px);
    position: static; /* оставляем, чтобы не ломать верстку */
  }
}



.tr-card-right{
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.14),
    rgba(255,255,255,.04)
  );
  border-radius: 28px;
  padding: 40px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 18px 50px rgba(0,0,0,.18);
  min-height: 260px;
}


/* ================== TRAINING: EXAM — PREMIUM LOOK (only .tr-card-exam) ================== */

/* общий контейнер карточки экзамена */
.tr-card.tr-card-exam{
  border-radius: 28px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.72));
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .10);
  overflow: hidden;
}

/* правая часть (с фото) — отдельная "плашка" */
.tr-card-exam .tr-card-right{
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 206, 96, .22), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, .06), rgba(15, 23, 42, .02));
  border: 1px solid rgba(15, 23, 42, .10);
}

/* фото экзамена — как постер, без влияния на машину */
.tr-card-exam .tr-card-right .tr-card-img{
  position: static;        /* важно: чтобы не подхватило absolute от PRACTICE */
  transform: none;
  left: auto;
  top: auto;

  width: 100%;
  max-width: 100%;
  height: 340px;           /* можно 300–380 */
  object-fit: cover;
  display: block;

  border-radius: 0;
  box-shadow: none;
  filter: contrast(1.02) saturate(1.05);
}

/* лёгкий затемняющий градиент поверх фото (для "киношности") */
.tr-card-exam .tr-card-right::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.00) 0%,
    rgba(0,0,0,.10) 55%,
    rgba(0,0,0,.18) 100%
  );
  pointer-events:none;
}

/* левая часть с текстом */
.tr-card-exam .tr-card-left{
  padding: 14px 18px;
}

/* текст: красиво и читабельно */
.tr-card-exam .tr-exam-text p{
  margin: 0 0 10px;
  line-height: 1.55;
  color: rgba(15, 23, 42, .86);
}

.tr-card-exam .tr-exam-text .muted{
  margin-top: 6px;
  color: rgba(15, 23, 42, .62);
}

/* кнопка — чуть "дороже" (если у тебя уже стиль есть, это просто мягкий апгрейд) */
.tr-card-exam .tr-btn.tr-btn-primary{
  margin-top: 10px;
  box-shadow: 0 16px 34px rgba(255, 206, 96, .22);
}

/* адаптив */
@media (max-width: 900px){
  .tr-card.tr-card-exam{
    padding: 14px;
    border-radius: 22px;
  }

  .tr-card-exam .tr-card-right{
    border-radius: 18px;
  }

  .tr-card-exam .tr-card-right .tr-card-img{
    height: 240px;
  }

  .tr-card-exam .tr-card-left{
    padding: 12px 10px 6px;
  }
}


/* Instructors: category icon chip */


.inst-cat-icon .i{
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}


/* Instructors: PNG icons */
.inst-cat-icon{
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 206, 96, .25);
  border: 1px solid rgba(255, 206, 96, .55);
  box-shadow: 0 10px 22px rgba(255, 206, 96, .14);
  flex: 0 0 40px;
}

.inst-cat-img{
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

/* ===================================================================
   Mobile fine-tuning (pixel-perfect)
   Breakpoints requested: 768 / 576 / 480 / 360
   =================================================================== */

/* Tablets + small laptops */
@media (max-width: 768px){
  :root{ --container: 100%; }

  .container{ width: calc(100% - 28px); }

  /* Topbar */
  .topbar-inner{
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }
  .topbar-left, .topbar-right{ flex-wrap: wrap; justify-content:center; }

  /* Header */
  .header-inner{ padding: 12px 0; }
  .logo img{ width: 40px; height: 40px; }
  .logo-subtitle{ font-size: 17px; }
  .burger{ width: 42px; height: 42px; }
  .mobile-nav{ padding: 10px 0 12px; }
  .mobile-link{ padding: 12px 0; }

  /* General rhythm */
  .main{ padding: 22px 0 44px; }
  .section-min{ padding: 34px 0 14px; }
  .cta-min{ padding: 40px 0 18px; }

  /* Typography scale */
  .home-hero-title,
  .hero-title,
  .hero-min-title{ font-size: 34px; }
  .page-title{ font-size: 30px; }

  /* Grids */
  .hero-stats{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .branches-preview{ grid-template-columns: 1fr; }
  .instructors-grid{ grid-template-columns: 1fr; }

  /* Cards spacing */
  .feature, .price-card, .info-card, .split-card, .about-card, .contact-card, .inst-card, .admin-card{
    padding: 16px;
    border-radius: 16px;
  }

  /* Footer */
  .footer-inner{ gap: 14px; padding: 18px 0; }
  .footer-right{ width: 100%; justify-content:flex-start; }
}

/* Big phones */
@media (max-width: 576px){
  .container{ width: calc(100% - 24px); }

  /* Make tap targets comfy */
  .btn, .footer-link, .topbar-link, .branch-actions a, .map-actions a{
    min-height: 44px;
  }

  /* Hero */
  .home-hero{ padding: 42px 0 48px; }
  .home-hero-title,
  .hero-title,
  .hero-min-title{ font-size: 30px; }
  .home-hero-sub{ font-size: 14px; }
  .home-btn{ width: 100%; justify-content:center; }

  /* Stats strip */
  .stats-strip{ padding: 18px 0; }
  .stats-inner{ padding: 10px 10px; border-radius: 18px; }

  /* Chips + filters */
  .filter-row{ gap: 8px; }
  .chip{ padding: 9px 11px; font-size: 13px; }

  /* Modal (branches) */
  .modal-backdrop{ padding: 12px; }
  .modal-branches{ border-radius: 18px; max-height: 94vh; }
  .modal-header{ padding: 14px 14px; }
  .modal-title h3{ font-size: 18px; }
  .modal-body{ padding: 12px; gap: 12px; }
  .search{ padding: 10px 10px; border-radius: 14px; }
  .branch-card{ padding: 12px; border-radius: 14px; }
  .branch-actions{ gap: 8px; }
  .branch-actions a{ min-width: 0; flex: 1 1 100%; }

  /* CTA60 */
  .cta60{ padding: 38px 0 18px; }
  .cta60-inner{ border-radius: 22px; }
  .cta60-left{ padding: 18px; }
  .cta60-form{ gap: 10px; }
  .cta60-input{ width: 100%; }
  .cta60-btn{ width: 100%; }

  /* FAQ */
  .faq-title{ font-size: 30px; }
  .faq-q{ font-size: 14px; }
}

/* Main mobile */
@media (max-width: 480px){
  .container{ width: calc(100% - 22px);

  /* Very small devices (used to be 520px rules) */
  .stats-inner{
    flex-wrap: wrap;
    justify-content:center;
  }
  .stats-inner .stat{
    flex: 1 1 140px;
  }
  .stats-inner .stat-line{
    display:none;
  }

  /* Training / pages typography */
  .tr-title{ font-size: 26px; }
  .tr-bigline{ font-size: 22px; }
  .tr-block-title{ font-size: 28px; }
}
/* Slightly denser UI */
  .badge, .mini{ font-size: 12px; }
  .hero-subtitle, .hero-min-subtitle{ font-size: 14px; }
  .section-head h2, .section-head-min h2{ font-size: 22px; }

  /* Header */
  .logo-title{ font-size: 11px; }
  .logo-subtitle{ font-size: 16px; }
  .burger{ width: 40px; height: 40px; }

  /* Home hero car: keep visible */
  .home-hero-right{ min-height: 200px; }
  .home-hero-car{ max-width: 440px; }

  /* Category blocks */
  .cat-section{ padding: 20px 0; }
  .cat-inner{ padding: 0 14px; gap: 14px; }
  .big-letter{ font-size: 120px; }
  .cat-title{ justify-content:flex-start !important; padding-right: 0 !important; }
  .cat-info{ grid-template-columns: 1fr; gap: 10px; }
  .cat-col.sep{ display:none; }
  .cat-btn{ width: 100%; border-radius: 14px; padding: 14px 16px; }

  /* Map embeds */
  .map-embed iframe{ height: 300px; }

  /* Footer */
  .footer-link{ width: 100%; justify-content:center; }
}

/* Small phones */
@media (max-width: 360px){
  .container{ width: calc(100% - 18px); }

  .home-hero-title,
  .hero-title,
  .hero-min-title{ font-size: 26px; }
  .page-title{ font-size: 26px; }

  .btn{ padding: 10px 12px; font-size: 13px; }
  .chip{ padding: 8px 10px; }
  .stats-inner .stat-big{ font-size: 22px; }
  .home-hero-car{ max-width: 380px; }

  .modal-title h3{ font-size: 16px; }
  .faq-title{ font-size: 26px; }
}











.faq-item {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 18px 46px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  margin-top: 12px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.faq-answer {
  margin-top: 10px;            /* отступ от вопроса */
  padding-bottom: 8px;         /* чтобы не липло к низу */
  line-height: 1.45;
}




.faq-question {
  padding: 16px 22px;   /* меньше высота */
  transition: padding 0.25s ease;
}

.faq-item.open .faq-question {
  padding: 22px 22px;   /* больше воздуха */
}
/* FAQ: компактнее в закрытом состоянии (не влияет на ответ) */
.faq-item:not(.open) .faq-q{
  padding: 0px 18px;           /* было 18px 18px */
}

/* когда открыто — возвращаем прежнюю (или чуть больше) высоту */
.faq-item.open .faq-q{
  padding: 18px 18px;
}

/* чтобы выглядело плавно */
.faq-q{
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  padding: 18px 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  cursor:pointer;
  text-align:left;
  font-weight: 1000;
  font-size: 16px;
  letter-spacing: .1px;
  transition: padding .25s ease;
}

/* мобилка */
@media (max-width: 980px){
  .faq-item:not(.open) .faq-q{ padding: 12px 16px; }
  .faq-item.open .faq-q{ padding: 16px 16px; }
}











/* ===== ABOUT (Figma-style) ===== */
.about-fg{
  background: #f7f3ec;
  padding: 46px 0 60px;
}

.about-fg-inner{
  max-width: 1120px;
}

.about-fg-head{
  text-align: center;
  margin-bottom: 26px;
}

.about-fg-title{
  font-size: 56px;
  letter-spacing: 0.08em;
  font-weight: 1000;
  margin: 0 0 10px;
  color: #111;
}

.about-fg-sub{
  max-width: 760px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.45;
  opacity: .75;
}

.about-fg-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 26px;
}

.about-fg-row--reverse{
  grid-template-columns: 1fr 1fr;
}

.about-fg-media{
  display:flex;
  align-items:center;
  justify-content:center;
}

.about-fg-img{
  width: 100%;
  max-width: 520px;
  height: 280px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(0,0,0,.12);
}

.about-fg-card{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  padding: 22px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.about-fg-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.about-fg-list li{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  font-size: 14px;
  line-height: 1.35;
  color: #1c1c1c;
}

.about-fg-ico{
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #ffcc55;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.about-fg-ico .i{
  width: 18px;
  height: 18px;
  color: #111;
}

.about-fg-actions{
  display:flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* responsive */
@media (max-width: 980px){
  .about-fg-title{ font-size: 42px; }
  .about-fg-row{
    grid-template-columns: 1fr;
  }
  .about-fg-img{
    height: 240px;
    max-width: 100%;
  }
}










/* ===== ABOUT HERO (Figma) ===== */
.about-hero{
  background:#b58a43;          /* твой золотой */
  color:#fff;
  position:relative;
  overflow:hidden;
}

.about-hero-inner{
  position:relative;
  min-height: 360px;
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items:center;
  gap: 18px;
  padding: 34px 18px 90px;     /* снизу место под “дорогу” */
}

.about-hero-title{
  margin:0 0 10px;
  font-weight: 1000;
  line-height: 1.05;
  font-size: 42px;
  letter-spacing: -0.02em;
}

.about-hero-strong{
  color:#111;                  /* как на макете: черная строка */
  background: rgba(255,255,255,0.0);
}

.about-hero-sub{
  margin: 10px 0 16px;
  opacity: .9;
  font-size: 14px;
  max-width: 420px;
}

.about-hero-btn{
  padding: 10px 16px;
  border-radius: 12px;
}

/* знак */
.about-hero-right{
  position:relative;
  height: 100%;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.about-hero-sign{
  width: min(360px, 46vw);
  height:auto;
  transform: translateX(18px);
  filter: drop-shadow(0 24px 50px rgba(0,0,0,.25));
  z-index: 2;
}

/* дорога снизу */
.about-hero-road{
  position:absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: min(980px, 140%);
  height: auto;
  z-index: 1;
  pointer-events:none;
}

/* адаптив */
@media (max-width: 980px){
  .about-hero-inner{
    grid-template-columns: 1fr;
    min-height: 420px;
    padding-bottom: 110px;
  }
  .about-hero-right{
    justify-content:center;
  }
  .about-hero-sign{
    width: min(320px, 70vw);
    transform: none;
  }
  .about-hero-title{ font-size: 36px; }
}













/* =========================
   FIX: Обучение (PROGRAM) mobile
   ========================= */

/* Tablets */
@media (max-width: 768px){
  .tr-program{ padding: 40px 0 10px; }
  .tr-program-inner{ max-width: 100%; }

  .tr-title{ font-size: 28px; }
  .tr-sub{
    font-size: 13px;
    margin: 10px auto 18px;
    padding: 0 6px;
  }

  /* Было горизонтально/в ряд -> делаем колонкой */
  .tr-flow{
    flex-direction: column;
    gap: 12px;
    padding: 14px 12px;
  }
  .tr-flow-item{
    min-width: 0;              /* важно! ломает "узкие" лимиты */
    width: 100%;
    max-width: 520px;
  }

  /* стрелку между блоками разворачиваем вниз */
  .tr-flow-arrow{
    transform: rotate(90deg);
    font-size: 28px;
    line-height: 1;
    margin: 0;
  }

  /* карточки ниже (если есть на странице обучения) */
  .tr-card{
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .tr-card-right{ justify-content: center; }
  .tr-card-img{ max-width: 520px; }
}

/* Big phones */
@media (max-width: 576px){
  .tr-title{ font-size: 24px; letter-spacing: .06em; }
  .tr-sub{ font-size: 12.5px; }

  .tr-flow{ border-radius: 18px; }
  .tr-flow-ico{ width: 58px; height: 58px; border-radius: 14px; }
  .tr-flow-label{ font-size: 11px; }

  .tr-card{ border-radius: 18px; }
}

/* Main mobile */
@media (max-width: 480px){
  .tr-program{ padding: 34px 0 8px; }
  .tr-title{ font-size: 22px; }
  .tr-sub{ margin-bottom: 16px; }

  .tr-flow{
    padding: 12px 10px;
    gap: 10px;
  }
  .tr-flow-item{ max-width: 420px; }

  .tr-flow-arrow{ font-size: 26px; }

  .tr-card{ padding: 14px; }
  .tr-card-list{ font-size: 12.5px; }
}

/* Small phones */
@media (max-width: 360px){
  .tr-title{ font-size: 20px; }
  .tr-flow-ico{ width: 54px; height: 54px; }
  .tr-flow-arrow{ font-size: 24px; }
}







/* =========================
   HERO image — hide on mobile
   ========================= */

/* Планшеты и ниже */
@media (max-width: 768px){
  .tr-hero-img,
  .inst-hero-img{
    display: none;
  }

  /* чтобы текст красиво центрировался */
  .tr-hero-inner,
  .inst-hero-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tr-hero-left,
  .inst-hero-left{
    align-items: center;
  }
}

/* Основная мобильная версия */
@media (max-width: 480px){
  .tr-hero{ padding: 36px 0 28px; }
  .inst-hero{ padding: 36px 0 28px; }

  .tr-hero-title,
  .inst-hero-title{
    font-size: 26px;
    line-height: 1.15;
  }
}






/* =========================
   FIX: mobile overflow (Обучение)
   ========================= */

/* 1) базовая защита от вылезаний */
*, *::before, *::after { box-sizing: border-box; }

/* 2) если где-то есть 100vw — оно часто даёт лишнюю ширину из-за скроллбара */
.tr-hero, .tr-program, .tr-cards, .tr-wrap, .tr-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip; /* modern */
}

/* запасной вариант, если clip не поддерживается */
@supports not (overflow-x: clip) {
  .tr-hero, .tr-program, .tr-cards, .tr-wrap, .tr-page { overflow-x: hidden; }
}

/* 3) контейнер на мобилке не должен быть шире экрана */
@media (max-width: 768px){
  .container{
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  /* если где-то стоит width:100vw — убиваем */
  .tr-hero-inner, .tr-program-inner, .tr-card, .tr-flow {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* частая причина вылезаний — фиксированные min-width */
  .tr-flow-item, .tr-card, .tr-card-img, .tr-hero-img{
    min-width: 0 !important;
  }

  /* если картинки/иконки могут расширять блок */
  img, svg { max-width: 100%; height: auto; }
}

/* 4) “жёсткий” финальный стоппер (включай, если всё равно есть горизонталка) */
@media (max-width: 768px){
  html, body{ overflow-x: hidden; }
}









/* ===== TRAINING HERO: mobile height fix ===== */
@media (max-width: 768px){

  /* сам hero */
  .tr-hero{
    padding: 28px 0 24px;   /* ↓ уменьшаем высоту */
    min-height: auto;
  }

  /* сетка */
  .tr-hero-inner{
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  /* заголовок */
  .tr-hero-title{
    font-size: 26px;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  /* подзаголовок */
  .tr-hero-sub{
    font-size: 14px;
    margin-bottom: 14px;
  }

  /* картинку на мобиле скрываем */
  .tr-hero-img{
    display: none;
  }
}
























/* Burger */

.burger-lines{
  width:18px; height:2px;
  background:#1f1f1f;
  border-radius:999px;
  position:relative;
}
.burger-lines::before,
.burger-lines::after{
  content:"";
  position:absolute; left:0;
  width:18px; height:2px;
  background:#1f1f1f;
  border-radius:999px;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}
.burger-lines::before{ top:-6px; }
.burger-lines::after{ top:6px; }

body.menu-open .burger-lines{ background:transparent; }
body.menu-open .burger-lines::before{ top:0; transform:rotate(45deg); }
body.menu-open .burger-lines::after{ top:0; transform:rotate(-45deg); }

/* Overlay */
.mobile-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.38);
  z-index:999;
}

/* Drawer */
.mobile-drawer{
  position:fixed;
  top:10px; right:10px; bottom:10px;
  width:min(360px, calc(100% - 20px));
  background:#fff;
  border-radius:22px;
  box-shadow:0 18px 50px rgba(0,0,0,.18);
  z-index:1000;
  transform:translateX(110%);
  transition:transform .25s ease;
  display:flex; flex-direction:column;
  overflow:hidden;
}
body.menu-open .mobile-drawer{ transform:translateX(0); }

.mobile-drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.mobile-brand-top{ font-size:10px; letter-spacing:.24em; opacity:.75; }
.mobile-brand-name{ font-size:16px; font-weight:900; }

.mobile-close{
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  cursor:pointer;
}

.mobile-drawer-body{
  padding:14px;
  display:flex; flex-direction:column;
  gap:10px;
}
.mobile-link{
  display:flex;
  padding:12px;
  color:#1f1f1f;
  font-weight:700;
  align-items:center;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.06);
  text-decoration:none;
  background:#fafafa;
}
.mobile-divider{ height:1px; background:rgba(0,0,0,.06); margin:6px 0; }

.mobile-cta{
  width: 100%;
  margin-top: 10px;
  padding:12px 14px;
  border-radius:16px;
  border:none;
  cursor:pointer;
  font-weight:900;
  background:#f1d06a;
}
.mobile-note{ margin:0; font-size:12px; opacity:.7; }

@media (min-width: 769px){
  .mobile-drawer, .mobile-overlay{ display:none !important; }
}













/* ===== Training HERO: remove image completely on mobile ===== */
@media (max-width: 768px){

  /* убираем правую колонку целиком */
  .tr-hero-right{
    display: none !important;
  }

  /* hero становится одноколоночным */
  .tr-hero-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* укорачиваем золотой фон */
  .tr-hero{
    padding: 28px 0 20px;
    overflow: hidden;
  }

  /* декоративные блики тоже убираем */
  .tr-hero::before,
  .tr-hero::after{
    display: none;
  }

  /* уплотняем текст */
  .tr-hero-title{
    font-size: 26px;
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .tr-hero-sub{
    font-size: 14px;
    margin-bottom: 12px;
  }
}







/* ===== Training Program: center on mobile ===== */
@media (max-width: 768px){

  /* весь блок по центру */
  .tr-program-inner{
    text-align: center;
  }

  /* flow — строго колонкой */
  .tr-flow{
    display: flex;              /* важно: не grid */
    flex-direction: column;
    align-items: center;        /* ⬅️ центр по горизонтали */
    gap: 12px;
    padding: 0;
  }

  /* карточки */
  .tr-flow-item{
    width: 100%;
    max-width: 320px;           /* визуально как на макете */
    justify-content: center;
    text-align: center;
  }

  /* иконка внутри карточки */
  .tr-flow-ico{
    margin: 0 auto;
  }

  /* стрелки между карточками */
  .tr-flow-arrow{
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(90deg);   /* вниз */
    font-size: 24px;
    margin: 2px 0;
  }

  /* линия "ВСЕ ЗА 2 МЕСЯЦА" */
  .tr-bigline{
    margin: 18px auto 0;
    text-align: center;
  }
}





html{
  scroll-behavior: smooth;
}






/* ===== Footer: center everything on mobile ===== */
@media (max-width: 768px){

  footer,
  .footer{
    text-align: center;
  }

  /* внутренние колонки футера */
  .footer-inner,
  .footer-grid,
  .footer-cols{
    display: flex;
    flex-direction: column;
    align-items: center;   /* ⬅️ ключ */
    gap: 16px;
  }



  /* списки (меню, ссылки) */
  footer ul,
  .footer ul{
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
  }

  footer li{
    margin: 6px 0;
  }

  /* контакты */
  .footer-contacts,
  .footer-contacts a{
    text-align: center;
    justify-content: center;
  }

  /* соцсети */
  .footer-socials,
  .footer-social{
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  /* копирайт */
  .footer-copy,
  .footer-bottom{
    text-align: center;
    margin-top: 10px;
  }
}













.home-hero-accent{
  display:inline-block;
  padding: 2px 10px 4px;
  border-radius: 14px;
  color: #1f2937;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(244,200,74,.25);
  position: relative;
  top: 10px;
}








.tr-hero-top-word{
  font-size: 54px;
  font-weight: 800;
  display: inline-block;
  transform: translateY(-8px); /* поднимаем вверх */
}




/* Планшеты */
@media (max-width: 768px){

  .tr-icon-pack{
    padding: 10px 14px;
  }

  .tr-icon-pack .i{
    width: 18px;
    height: 18px;
  }

  .tr-icon-arrow{
    font-size: 16px;
  }
}


/* Большие телефоны */
@media (max-width: 576px){

  .tr-icon-pack{
    padding: 9px 12px;
  }

  .tr-icon-pack .i{
    width: 16px;
    height: 16px;
  }

  .tr-icon-arrow{
    font-size: 15px;
  }
}


/* Обычные телефоны (основной mobile) */
@media (max-width: 480px){

  .tr-icon-pack{
    padding: 8px 10px;
  }

  .tr-icon-pack .i{
    width: 15px;
    height: 15px;
  }

  .tr-icon-arrow{
    font-size: 14px;
  }
}


/* Маленькие телефоны */
@media (max-width: 360px){

  .tr-icon-pack{
    padding: 6px 8px;
  }

  .tr-icon-pack .i{
    width: 14px;
    height: 14px;
  }

  .tr-icon-arrow{
    font-size: 13px;
  }
}



@media (max-width: 768px){

  .tr-card-left{
    text-align: center;
  }

  .tr-card-left .tr-btn{
    margin: 20px auto 0;
    display: block;
  }


}




/* =========================
   PRACTICE: responsive (768 / 576 / 480 / 360)
   ========================= */

/* 768px (планшеты и ниже) */
@media (max-width: 768px){

  /* контейнер справа */
  .tr-card-right{
    position: relative;
    overflow: visible;         /* машине можно выходить */
    display: flex;
    justify-content: center;
  }

  /* машина */
  .tr-card-right .tr-card-img{
    position: absolute;
    max-width: none;
    width: 450px;              /* базовый размер */
    left: 65%;
    top: 7%;
    transform: translateX(-50%);
  }
}

/* 576px (большие телефоны) */
@media (max-width: 576px){

  .tr-card-right .tr-card-img{
    width: 400px;
    left: 62%;
    top: 10%;
  }
}

/* 480px (основной mobile) */
@media (max-width: 480px){

  .tr-card-right .tr-card-img{
    width: 300px;
    left: 58%;
    top: 12%;
  }
}

/* 360px (маленькие телефоны) */
@media (max-width: 360px){

  .tr-card-right .tr-card-img{
    width: 260px;
    left: 56%;
    top: 14%;
  }
}









.home-hero-city{
  white-space: nowrap;
}







/* ===== Burger: show only on mobile ===== */

/* ПК: бургер скрыт */
.burger{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background:#fff;
  cursor:pointer;
  display: none;
  align-items:center;
  justify-content:center;
  gap: 4px;
  place-items:center;
}

/* Мобилка: бургер виден, а обычное меню можно скрыть */
@media (max-width: 900px){
  .burger{
    display: inline-flex;
  }

  /* если хочешь, чтобы на мобилке не показывались ссылки меню */
  .nav{
    display: none;
  }
}













@media (max-width: 396px){
  .home-hero-city{
    display: block;      /* переносим на новую строку */
    margin-top: 6px;     /* опускаем ниже */
  }
}





@media (max-width: 900px){

  .about-fg-row{
    display: flex;
    flex-direction: column;
  }

  .about-fg-row--reverse{
    flex-direction: column;
  }

  /* ВАЖНО: меняем порядок */
  .about-fg-row--reverse .about-fg-media{
    order: -1;   /* фото становится первым */
  }

}










/* ===== Reviews (rv) ===== */
.rv{ padding: 28px 0 10px; }
.rv .section-head-min h2{ margin:0; }
.rv-sub{ margin: 6px 0 14px; opacity:.8; }

.rv-tabs{
  display:flex;
  gap: 10px;
  padding: 10px;
  background:#f3f4f6;
  border-radius: 18px;
  align-items:center;
}

.rv-tab.is-active{
  background:#fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.rv-ico{ width:18px; height:18px; display:inline-block; border-radius:5px; }
.rv-ico-2gis{ background: linear-gradient(135deg,#00c853,#9cff57); }
.rv-ico-gmap{ background: linear-gradient(135deg,#4285f4,#ea4335); }

.rv-shell{
  position: relative;
  margin-top: 16px;
}
.rv-viewport{
  overflow:hidden;
  border-radius: 22px;
}
.rv-track{
  display:flex;
  gap: 18px;
  transition: transform .35s ease;
  will-change: transform;
  padding: 6px 4px 18px;
}

.rv-card{
  flex: 0 0 calc((100% - 36px) / 3); /* 3 карточки на ПК */
  background:#fff;
  border-radius: 22px;
  padding: 18px 18px 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  min-height: 200px;
}
.rv-card-top{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 12px;
}
.rv-avatar{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow:hidden;
  flex: 0 0 46px;
  border: 2px solid rgba(255,193,7,.35);
}
.rv-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.rv-who{ min-width: 0; }
.rv-name{ font-weight: 900; line-height:1.1; }
.rv-date{ opacity:.65; font-size: 13px; margin-top:2px; }

.rv-badges{ margin-left:auto; display:flex; align-items:center; gap:10px; }
.rv-stars{ color:#f5b301; letter-spacing:2px; font-size: 14px; white-space:nowrap; }
.rv-src{
  font-weight: 800;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background:#f3f4f6;
}
.rv-src--2gis{ background: rgba(0,200,83,.12); }
.rv-src--gmap{ background: rgba(66,133,244,.12); }

.rv-text{
  opacity:.92;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow:hidden;
  min-height: 92px;
}
.rv-more{
  margin-top: 10px;
  border:0;
  background: transparent;
  color:#f59e0b;
  font-weight: 800;
  cursor:pointer;
}

.rv-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background:#fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 28px;
  z-index: 2;
}
.rv-arrow--prev{ left: -18px; }
.rv-arrow--next{ right: -18px; }

.rv-dots{
  display:flex;
  gap: 8px;
  justify-content:center;
  margin: 12px 0 10px;
}
.rv-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  border: 0;
  cursor:pointer;
}
.rv-dot.is-active{ background: #f5b301; width: 18px; }

.rv-footer{ display:flex; justify-content:center; }
.rv-all{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 16px;
  border-radius: 999px;
  background:#fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  font-weight: 800;
}

/* ===== responsive ===== */
@media (max-width: 980px){
  .rv-card{ flex-basis: calc((100% - 18px) / 2); } /* 2 карточки */
  .rv-arrow--prev{ left: -10px; }
  .rv-arrow--next{ right: -10px; }
}
@media (max-width: 560px){
  .rv-card{ flex-basis: 100%; } /* 1 карточка */
  .rv-arrow{ display:none; }    /* на мобилке можно свайпом */
}












.rv-tab{
  border:0;
  background:transparent;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap: 10px;
}

.rv-tab-img{
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 20px;
  border-radius: 6px; /* если png с белым фоном — можно убрать */
}












/* ===== Social links (mobile drawer) ===== */
.mobile-social{ margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.mobile-social-title{ font-weight: 800; opacity: .9; margin-bottom: 10px; }
.mobile-social-row{ display:flex; gap: 10px; flex-wrap: wrap; }

.ms-link{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  text-decoration:none;
}
.ms-link .i{ width: 20px; height: 20px; }
.ms-tiktok{ font-weight: 900; font-size: 12px; letter-spacing: .2px; }

/* ===== Social links (footer) ===== */
.footer-social{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.fs-link{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  text-decoration:none;
}
.fs-link .i{ width: 20px; height: 20px; }
.fs-tiktok{ font-weight: 900; font-size: 12px; }












/* ===== Mobile social black icons ===== */
.mobile-drawer .ms-link{
  background: rgba(0,0,0,0.06);   /* светлый фон кнопки */
  border: 1px solid rgba(0,0,0,0.12);
  color: #000;                   /* ЧЕРНЫЙ цвет */
}

.mobile-drawer .ms-link svg{
  stroke: #000 !important;       /* иконки Lucide черные */
  width: 22px;
  height: 22px;
}









/* ================================
   BRANCH MODAL — MOBILE ADAPTATION
   paste at the END of your CSS
================================ */

/* 768px */
@media (max-width: 768px){
  .modal-backdrop{
    padding: 10px;              /* меньше отступов вокруг модалки */
    align-items: flex-end;      /* удобнее большим пальцем */
  }

  .modal-branches{
    max-width: 100%;
    max-height: 96vh;
    border-radius: 18px;
  }

  .modal-header{
    padding: 14px 14px;
    gap: 10px;
  }

  .modal-title h3{
    font-size: 18px;
    line-height: 1.15;
  }

  .modal-kicker{
    gap: 8px;
    flex-wrap: wrap;
  }

  .modal-body{
    grid-template-columns: 1fr; /* 1 колонка */
    padding: 12px;
    gap: 12px;
    overflow: hidden;          /* скролл будет в нужных местах */
  }

  .branches-toolbar{
    gap: 10px;
    flex-wrap: wrap;
  }

  .branches-toolbar .search{
    flex: 1 1 100%;
  }

  .branches-toolbar .btn{
    width: 100%;
    justify-content: center;
  }

  .branches-left{
    min-height: 0 !important;
  }

  .branches-list{
    max-height: 34vh;           /* список не раздувает модалку */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .branch-right{
    min-height: 0 !important;
  }

  .map-frame iframe{
    min-height: 260px;
    max-height: 40vh;
  }

  .modal-footer{
    flex-wrap: wrap;
    gap: 10px;
  }

  .modal-footer .btn{
    width: 100%;
    justify-content: center;
  }
}


/* 576px */
@media (max-width: 576px){
  .modal-backdrop{
    padding: 0;                 /* делаем “full screen” ощущение */
    align-items: stretch;
  }

  .modal-branches{
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  /* шапка/футер “прилипают”, а скролл — внутри контента */
  .modal-header{
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .modal-footer{
    position: sticky;
    bottom: 0;
    z-index: 2;
  }

  .modal-body{
    padding: 12px;
  }

  .branches-list{
    max-height: 32vh;
  }

  .map-frame iframe{
    min-height: 240px;
    max-height: 38vh;
  }
}


/* 480px */
@media (max-width: 480px){
  .modal-title h3{
    font-size: 17px;
  }

  .modal-close{
    width: 38px;
    height: 38px;
  }

  .modal-kicker .dot{
    display: none;              /* чтобы не ломало строки */
  }

  .branches-list{
    max-height: 30vh;
  }

  .map-frame iframe{
    min-height: 220px;
    max-height: 36vh;
  }
}


/* 360px */
@media (max-width: 360px){
  .modal-header{
    padding: 12px;
  }

  .modal-body{
    padding: 10px;
  }

  .modal-title h3{
    font-size: 16px;
  }

  .branches-list{
    max-height: 28vh;
  }

  .map-frame iframe{
    min-height: 200px;
    max-height: 34vh;
  }
}








/* =========================================
   BRANCH MODAL — 2 COLUMNS ON MOBILE/TABLET
   карта слева, филиалы справа
   (вставь в конец CSS)
========================================= */

/* включаем 2 колонки на "нормальной" ширине мобилки/планшета */
@media (max-width: 900px) and (min-width: 600px){

  .modal-body{
    display: grid;
    grid-template-columns: 1.05fr 0.95fr; /* карта чуть шире */
    gap: 12px;
    align-items: stretch;
  }

  /* карта слева */
  .branch-right{
    order: 1;
    min-height: 0;
  }

  /* список справа */
  .branches-left{
    order: 2;
    min-height: 0;
  }

  /* чтобы список не распирал модалку */
  .branches-list{
    max-height: 52vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* карта тоже держим в рамках */
  .map-frame iframe{
    height: 52vh;     /* одинаковая высота со списком */
    min-height: 360px;
    width: 100%;
    display: block;
  }

  /* тулбар не ломаем */
  .branches-toolbar{
    flex-wrap: wrap;
    gap: 10px;
  }
  .branches-toolbar .search{
    flex: 1 1 100%;
  }
  .branches-toolbar .btn{
    width: 100%;
    justify-content: center;
  }
}

/* на узких телефонах возвращаем 1 колонку (иначе тесно) */
@media (max-width: 599px){
  .modal-body{
    grid-template-columns: 1fr;
  }
}




/* =========================================
   iPhone / узкие телефоны: tabs вместо 2 колонок
========================================= */

.modal-tabs{
  display: none;
  gap: 8px;
  margin-top: 10px;
}

.modal-tab{
  flex: 1;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.modal-tab.is-active{
  border-color: rgba(0,0,0,.22);
}

/* включаем табы и меняем логику на узких */
@media (max-width: 459px){

  .modal-tabs{ display: flex; }

  /* по умолчанию — список */
  .modal-branches[data-view="list"] .branch-right{ display: none; }
  .modal-branches[data-view="list"] .branches-left{ display: block; }

  /* карта */
  .modal-branches[data-view="map"] .branches-left{ display: none; }
  .modal-branches[data-view="map"] .branch-right{ display: block; }

  /* чтобы карта влезала красиво */
  .map-frame iframe{
    height: 58vh;
    min-height: 260px;
    width: 100%;
    display: block;
  }

  /* список делаем нормальным по высоте */
  .branches-list{
    max-height: 58vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}







/* ===== Mini list in MAP view (names only) ===== */
.map-branch-switch{
  display: none;
  gap: 8px;
  overflow: auto;
  padding: 8px 2px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.map-branch-chip{
  flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.map-branch-chip.is-active{
  border-color: rgba(0,0,0,.26);
}

/* показываем мини-список только на маленьких телефонах */
@media (max-width: 459px){
  .modal-branches[data-view="map"] #mapBranchSwitch{
    display: flex;
  }

  /* чтобы чипы и карта красиво помещались */
  .modal-branches[data-view="map"] .map-frame iframe{
    height: 54vh;
    min-height: 240px;
  }
}








/* ===== Branch modal: hide search on mobile ===== */
@media (max-width: 768px){
  .modal-branches .search{
    display: none !important;
  }

  /* если хочешь, чтобы кнопка "Все" занимала всю ширину */
  .modal-branches .branches-toolbar{
    grid-template-columns: 1fr !important;
  }

  .modal-branches #showAllBtn{
    width: 100%;
  }
}
/* ===== Убираем поисковик в мобилке полностью ===== */
@media (max-width: 768px){

  .modal-branches .branches-toolbar .search{
    display: none !important;
  }

  /* чтобы кнопка "Все" заняла всю ширину */
  .modal-branches .branches-toolbar{
    display: block !important;
  }

  .modal-branches #showAllBtn{
    width: 100%;
  }

}
/* ===== MOBILE: убрать поиск и кнопку "Все" ===== */
@media (max-width: 768px){

  /* убрать поиск */
  .modal-branches .search{
    display: none !important;
  }

  /* убрать кнопку Все */
  .modal-branches #showAllBtn{
    display: none !important;
  }

  /* убрать лишние отступы toolbar */
  .modal-branches .branches-toolbar{
    display: block !important;
    padding: 0;
    margin-bottom: 10px;
  }

}



/* ===== INSTRUCTORS: фото не обрезается, влезает целиком ===== */

/* контейнер фото (верх карточки) */
.inst-card-photo{
  position: relative;
  overflow: hidden;
  border-radius: 22px 22px 0 0;

  /* выбери одно: */
  aspect-ratio: 16 / 9;     /* одинаковая высота у всех карточек */
  /* height: 210px; */      /* если не хочешь aspect-ratio — можно фикс высоту */
  background: #f6f6f6;      /* фон для "полос" если фото узкое/высокое */
}

/* само изображение */
.inst-card-photo img{
  width: 100%;
  height: 100%;
  display: block;

  object-fit: contain;      /* ВАЖНО: не режет, а вписывает */
  object-position: center;
}

/* если где-то у тебя было cover — обязательно убери/перепиши */
.inst-card-photo img{
  /* object-fit: cover;  <-- должно быть НЕ ТАК */
}


.inst-card-photo img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: scale(1.03);
}








/* =========================================
   FOUNDER (О НАС) — clean + управляемый блок
   ========================================= */

.about-founder{
  /* Настройки (крути эти значения) */
  --left: 1.15fr;        /* ширина слева (текст) */
  --right: 0.85fr;       /* ширина справа (фото/виджет) */
  --gap: 32px;           /* расстояние между колонками */

  --text-max: 550px;     /* максимальная ширина карточки слева */
  --media-max: 700px;    /* максимальная ширина блока справа */

  --text-x: 30px;         /* сдвиг текста по X */
  --text-y: 0px;         /* сдвиг текста по Y */
  --media-x: -30px;        /* сдвиг правого блока по X */
  --media-y: 0px;        /* сдвиг правого блока по Y */

  /* Layout */
  display: grid;
  grid-template-columns: minmax(0, var(--left)) minmax(0, var(--right));
  gap: var(--gap);
  align-items: center;
}

/* ЛЕВАЯ карточка */
.about-founder .founder-text{
  max-width: var(--text-max);
  transform: translate(var(--text-x), var(--text-y));
}

/* Заголовки/текст */
.about-founder-title{
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
  margin: 0 0 6px;
}

.about-founder-name{
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 12px;
}

.about-founder-text{
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0 0 18px;
}

/* ПРАВЫЙ блок (фото/виджет) */
.about-founder .founder-media{
  width: 110%;
  max-width: var(--media-max);
  justify-self: end;
  transform: translate(var(--media-x), var(--media-y));
}

/* Если справа img */
.about-founder .founder-img,
.about-founder .about-founder-img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* не обрезает */
  border-radius: 20px;
}

/* Адаптив */
@media (max-width: 900px){
  .about-founder{
    grid-template-columns: 1fr;
    justify-items: center;
    --text-max: 100%;
    --media-max: 100%;
    --text-x: 0px;
    --media-x: 0px;
  }

  .about-founder .founder-media{
    justify-self: center;
  }
}









/* =========================================
   FOUNDER — адаптив 768 / 576 / 480 / 360
   ========================================= */

/* ===== 768px ===== */
@media (max-width: 768px){

  .about-founder{
    grid-template-columns: 1fr;
    gap: 28px;

    --text-max: 100%;
    --media-max: 100%;

    --text-x: 0px;
    --media-x: 0px;
  }

  .about-founder .founder-media{
    width: 100%;   /* убираем 110% */
    justify-self: center;
  }

  .about-founder-name{
    font-size: 24px;
  }

  .about-founder-text{
    font-size: 14px;
  }
}


/* ===== 576px ===== */
@media (max-width: 576px){

  .about-founder{
    gap: 22px;
  }

  .about-founder-name{
    font-size: 22px;
  }

  .about-founder-title{
    font-size: 13px;
  }

  .about-founder-text{
    font-size: 14px;
    line-height: 1.55;
  }
}


/* ===== 480px ===== */
@media (max-width: 480px){

  .about-founder{
    gap: 18px;
  }

  .about-founder-name{
    font-size: 20px;
  }

  .about-founder-text{
    font-size: 13.5px;
  }

  .about-founder .founder-media{
    max-width: 95%;
  }
}


/* ===== 360px ===== */
@media (max-width: 360px){

  .about-founder{
    gap: 16px;
  }

  .about-founder-name{
    font-size: 18px;
  }

  .about-founder-title{
    font-size: 12px;
  }

  .about-founder-text{
    font-size: 13px;
    line-height: 1.5;
  }

  .about-founder .founder-media{
    max-width: 92%;
  }
}





@media (max-width: 768px){

  .about-founder{
    grid-template-columns: 1fr;
  }

  /* Фото будет первым */
  .about-founder .founder-media{
    order: -1;
  }

}



.home-hero-city{
  position: relative;
  top: 8px;   /* ← меняй это значение */
}

















/* ===== Instructors + Teachers equal layout ===== */

.inst-dual-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items:start;
}
.inst-cards{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.inst-card-figma{
  display:flex;
  flex-direction:column;
  height:100%;
}
.inst-card-body{
  display:flex;
  flex-direction:column;
  flex:1;
}

.inst-cta-btn{
  margin-top:auto;
}
.inst-card-photo{
  height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.inst-card-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}
@media (max-width: 980px){
  .inst-dual-grid{
    grid-template-columns:1fr;
  }

  .inst-cards{
    grid-template-columns:1fr;
  }
}
/* одинаковая высота кнопок, даже если текст в 2 строки */
.inst-cta-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  min-height: 52px;      /* можно 48–60 подобрать */
  padding: 12px 14px;
  line-height: 1.15;
  white-space: normal;   /* разрешаем перенос */
}





.cat-title-letter--nowrap{
  white-space: nowrap;
  display: inline-block;
}













/* ===============================
   REVIEWS — Apple-ish (clean)
================================ */

.rv{
  --rv-radius: 22px;
  --rv-gap: 16px;
  --rv-card-w: 380px;         /* desktop card width */
  --rv-pad: 18px;
  --rv-border: rgba(0,0,0,.08);
  --rv-glow: rgba(0,0,0,.06);
  --rv-text: rgba(0,0,0,.78);
  --rv-muted: rgba(0,0,0,.55);
  --rv-bg: rgba(255,255,255,.85);
  --rv-bg2: rgba(255,255,255,.65);
}

.rv-head{
  max-width: 980px;
  margin: 0 auto 18px;
}

.rv-title{
  letter-spacing: -0.02em;
}

.rv-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  max-width: 980px;
  margin: 0 auto 14px;
}

.rv-tab{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--rv-border);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(0,0,0,.78);
  font-weight: 600;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  user-select:none;
}

.rv-tab:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 30px var(--rv-glow);
}

.rv-tab.is-active{
  background: rgba(0,0,0,.88);
  color: #fff;
  border-color: rgba(0,0,0,.3);
}

.rv-tab-img{
  width: 18px;
  height: 18px;
  object-fit: contain;
  display:block;
  filter: saturate(1.1);
}

.rv-shell{
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.rv-viewport{
  overflow:auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  border-radius: calc(var(--rv-radius) + 6px);
  padding: 6px;
  outline: none;
}

.rv-viewport::-webkit-scrollbar{ height: 10px; }
.rv-viewport::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.18);
  border-radius: 999px;
}
.rv-viewport::-webkit-scrollbar-track{
  background: rgba(0,0,0,.06);
  border-radius: 999px;
}

.rv-track{
  display:flex;
  gap: var(--rv-gap);
  padding: 10px;
  min-width: max-content;
}

.rv-card{
  width: var(--rv-card-w);
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: var(--rv-radius);
  border: 1px solid var(--rv-border);
  background:
    linear-gradient(180deg, var(--rv-bg), var(--rv-bg2));
  box-shadow: 0 18px 50px var(--rv-glow);
  padding: var(--rv-pad);
  position: relative;
  overflow:hidden;
  transform: translateZ(0);
}

.rv-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 120px at 30% 0%, rgba(0,0,0,.06), transparent 60%);
  pointer-events:none;
}

.rv-card-top{
  display:flex;
  align-items:flex-start;
  gap: 12px;
}

.rv-avatar{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.9);
  flex: 0 0 auto;
}

.rv-avatar img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.rv-who{ min-width: 0; flex: 1; }
.rv-name{
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(0,0,0,.88);
  line-height: 1.1;
}
.rv-date{
  margin-top: 4px;
  font-size: 13px;
  color: var(--rv-muted);
}

.rv-badges{
  display:flex;
  align-items:flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.rv-stars{
  font-size: 14px;
  line-height: 1;
  color: rgba(0,0,0,.88);
  letter-spacing: 1px;
  white-space: nowrap;
}
.rv-stars span{ display:inline-block; transform: translateY(-1px); }

.rv-src{
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.1);
  background: rgba(255,255,255,.7);
  color: rgba(0,0,0,.78);
  white-space: nowrap;
}

.rv-src--2gis{ }
.rv-src--gmap{ }

.rv-text-wrap{
  margin-top: 12px;
}

.rv-text{
  color: var(--rv-text);
  line-height: 1.55;
  font-size: 15px;
  white-space: pre-line;

  /* умная обрезка */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.rv-card.is-open .rv-text{
  -webkit-line-clamp: unset;
  overflow: visible;
}

.rv-toggle{
  margin-top: 10px;
  border: 0;
  background: transparent;
  font-weight: 800;
  cursor:pointer;
  color: rgba(0,0,0,.86);
  padding: 0;
}

.rv-toggle[hidden]{ display:none !important; }

.rv-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 16px 40px var(--rv-glow);
  transition: transform .18s ease, opacity .18s ease;
  z-index: 2;
}

.rv-arrow:hover{ transform: translateY(-50%) scale(1.03); }
.rv-arrow:active{ transform: translateY(-50%) scale(.98); }

.rv-arrow--prev{ left: -10px; }
.rv-arrow--next{ right: -10px; }

@media (max-width: 980px){
  .rv-arrow--prev{ left: 6px; }
  .rv-arrow--next{ right: 6px; }
}

.rv-dots{
  display:flex;
  justify-content:center;
  gap: 8px;
  margin-top: 14px;
}

.rv-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.20);
  border: 0;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, width .18s ease;
}

.rv-dot.is-active{
  background: rgba(0,0,0,.85);
  width: 22px;
}

@media (max-width: 768px){
  .rv{ --rv-card-w: 320px; --rv-pad: 16px; }
  .rv-arrow{ display:none; } /* как у Apple на мобилке — свайпом */
}

@media (max-width: 420px){
  .rv{ --rv-card-w: 280px; }
}






/* ===============================
   REVIEWS — Apple-ish (clean)
================================ */

.rv{
  --rv-radius: 22px;
  --rv-gap: 16px;
  --rv-card-w: 380px;         /* desktop card width */
  --rv-pad: 18px;
  --rv-border: rgba(0,0,0,.08);
  --rv-glow: rgba(0,0,0,.06);
  --rv-text: rgba(0,0,0,.78);
  --rv-muted: rgba(0,0,0,.55);
  --rv-bg: rgba(255,255,255,.85);
  --rv-bg2: rgba(255,255,255,.65);
}

.rv-head{
  max-width: 980px;
  margin: 0 auto 18px;
}

.rv-title{
  letter-spacing: -0.02em;
}

.rv-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  max-width: 980px;
  margin: 0 auto 14px;
}

.rv-tab{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--rv-border);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(0,0,0,.78);
  font-weight: 600;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  user-select:none;
}

.rv-tab:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 30px var(--rv-glow);
}

.rv-tab.is-active{
  background: rgba(0,0,0,.88);
  color: #fff;
  border-color: rgba(0,0,0,.3);
}

.rv-tab-img{
  width: 18px;
  height: 18px;
  object-fit: contain;
  display:block;
  filter: saturate(1.1);
}

.rv-shell{
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.rv-viewport{
  overflow:auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  border-radius: calc(var(--rv-radius) + 6px);
  padding: 6px;
  outline: none;
}

.rv-viewport::-webkit-scrollbar{ height: 10px; }
.rv-viewport::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.18);
  border-radius: 999px;
}
.rv-viewport::-webkit-scrollbar-track{
  background: rgba(0,0,0,.06);
  border-radius: 999px;
}

.rv-track{
  display:flex;
  gap: var(--rv-gap);
  padding: 10px;
  min-width: max-content;
}

.rv-card{
  width: var(--rv-card-w);
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: var(--rv-radius);
  border: 1px solid var(--rv-border);
  background:
    linear-gradient(180deg, var(--rv-bg), var(--rv-bg2));
  box-shadow: 0 18px 50px var(--rv-glow);
  padding: var(--rv-pad);
  position: relative;
  overflow:hidden;
  transform: translateZ(0);
}

.rv-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 120px at 30% 0%, rgba(0,0,0,.06), transparent 60%);
  pointer-events:none;
}

.rv-card-top{
  display:flex;
  align-items:flex-start;
  gap: 12px;
}

.rv-avatar{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.9);
  flex: 0 0 auto;
}

.rv-avatar img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.rv-who{ min-width: 0; flex: 1; }
.rv-name{
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(0,0,0,.88);
  line-height: 1.1;
}
.rv-date{
  margin-top: 4px;
  font-size: 13px;
  color: var(--rv-muted);
}

.rv-badges{
  display:flex;
  align-items:flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.rv-stars{
  font-size: 14px;
  line-height: 1;
  color: rgba(0,0,0,.88);
  letter-spacing: 1px;
  white-space: nowrap;
}
.rv-stars span{ display:inline-block; transform: translateY(-1px); }

.rv-src{
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.1);
  background: rgba(255,255,255,.7);
  color: rgba(0,0,0,.78);
  white-space: nowrap;
}

.rv-src--2gis{ }
.rv-src--gmap{ }

.rv-text-wrap{
  margin-top: 12px;
}

.rv-text{
  color: var(--rv-text);
  line-height: 1.55;
  font-size: 15px;
  white-space: pre-line;

  /* умная обрезка */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.rv-card.is-open .rv-text{
  -webkit-line-clamp: unset;
  overflow: visible;
}

.rv-toggle{
  margin-top: 10px;
  border: 0;
  background: transparent;
  font-weight: 800;
  cursor:pointer;
  color: rgba(0,0,0,.86);
  padding: 0;
}

.rv-toggle[hidden]{ display:none !important; }

.rv-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 16px 40px var(--rv-glow);
  transition: transform .18s ease, opacity .18s ease;
  z-index: 2;
}

.rv-arrow:hover{ transform: translateY(-50%) scale(1.03); }
.rv-arrow:active{ transform: translateY(-50%) scale(.98); }

.rv-arrow--prev{ left: -10px; }
.rv-arrow--next{ right: -10px; }

@media (max-width: 980px){
  .rv-arrow--prev{ left: 6px; }
  .rv-arrow--next{ right: 6px; }
}

.rv-dots{
  display:flex;
  justify-content:center;
  gap: 8px;
  margin-top: 14px;
}

.rv-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.20);
  border: 0;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, width .18s ease;
}

.rv-dot.is-active{
  background: rgba(0,0,0,.85);
  width: 22px;
}

@media (max-width: 768px){
  .rv{ --rv-card-w: 320px; --rv-pad: 16px; }
  .rv-arrow{ display:none; } /* как у Apple на мобилке — свайпом */
}

@media (max-width: 420px){
  .rv{ --rv-card-w: 280px; }
}




.rv-text{
  white-space: pre-line;
  max-height: 92px;
  overflow: hidden;
  transition: max-height .25s ease;

  /* ВАЖНО: если где-то есть -webkit-line-clamp — УДАЛИ */
  /* -webkit-line-clamp: ...; */
}

.rv-card.is-open .rv-text{
  max-height: 1200px;
}











.rv-open-link{
  display:inline-block;
  margin-top:12px;
  padding:10px 14px;
  border-radius:12px;
  background:#1aa260;
  color:#fff;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  transition:all .2s ease;
}

.rv-open-link:hover{
  background:#148a4f;
  transform:translateY(-2px);
}











/* ===== FIX: убираем горизонтальный скролл (training page) ===== */
html, body{
  overflow-x: hidden;
}

/* чтобы “вылезающая” машина не расширяла страницу */
.tr-card{
  overflow: hidden;
}

/* и сама правая часть тоже не должна расширять документ */
.tr-card-right{
  overflow: hidden; /* было visible */
}














/* ===== FIX: Training car image not cropped ===== */

.tr-card{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.tr-card-right{
  position: relative;
  overflow: visible;       /* ничего не обрезаем */
  display: flex;
  align-items: center;
  justify-content: center;
}

.tr-card-img{
  width: 100%;
  max-width: 600px;        /* регулируй если нужно */
  height: auto;            /* важно */
  object-fit: contain;     /* чтобы вся машина влезала */
  transform: none;         /* убираем возможные старые сдвиги */
}

/* адаптив */
@media (max-width: 980px){
  .tr-card{
    grid-template-columns: 1fr;
  }

  .tr-card-img{
    max-width: 420px;
  }
}








/* ===============================
   Branch modal: MOBILE TABS (fix)
   На телефоне показываем ЛИБО список, ЛИБО карту
   =============================== */

/* по умолчанию табы можно скрыть на десктопе */
.modal-tabs{ display: none; }

/* ВКЛЮЧАЕМ табы и раздельный режим до 980px (а не до 459px) */
@media (max-width: 980px){

  .modal-tabs{
    display: flex;
    gap: 10px;
    margin-top: 10px;
  }

  /* Список */
  .modal-branches[data-view="list"] .branch-right{ display: none !important; }
  .modal-branches[data-view="list"] .branches-left{ display: block !important; }

  /* Карта */
  .modal-branches[data-view="map"] .branches-left{ display: none !important; }
  .modal-branches[data-view="map"] .branch-right{ display: block !important; }

  /* чтобы карта красиво влезала */
  .modal-branches[data-view="map"] .map-frame iframe{
    height: 58vh;
    min-height: 260px;
    width: 100%;
    display:block;
  }

  /* список по высоте и со скроллом */
  .modal-branches[data-view="list"] .branches-list{
    max-height: 58vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}











/* ===============================
   REVIEWS: fix header wrap on mobile
   (name/date/stars don't break)
   =============================== */

@media (max-width: 560px){

  .rv-card-top{
    display: grid;
    grid-template-columns: 46px 1fr;
    grid-template-areas:
      "avatar who"
      "avatar badges";
    column-gap: 12px;
    row-gap: 8px;
    align-items: start;
  }

  .rv-avatar{ grid-area: avatar; }

  .rv-who{
    grid-area: who;
    min-width: 0; /* важно для переноса текста */
  }

  .rv-name{
    font-size: 16px;
    line-height: 1.15;
    word-break: break-word;   /* длинные имена не ломают верстку */
  }

  .rv-date{
    margin-top: 2px;
    font-size: 12px;
  }

  .rv-badges{
    grid-area: badges;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;          /* если тесно — переносим на новую строку */
    gap: 8px;
  }

  .rv-stars{
    font-size: 13px;
  }

  .rv-src{
    padding: 5px 10px;        /* чуть компактнее */
    font-size: 12px;
  }
}









/* ===== INSTRUCTORS: tags ===== */
.inst-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.inst-tag{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.08);
  color: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
}











/* ===== FIX: inst-pill подстраивается под текст ===== */
.inst-pill{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  width: auto !important;
  height: auto !important;
  min-width: 0 !important;

  padding: 6px 10px !important;   /* вот это “расширяет” плашку под текст */
  border-radius: 999px;

  line-height: 1 !important;
  white-space: nowrap;
}












.faq,
.faq * {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.faq-q {
  font-weight: 700;
}

.faq-title {
  font-weight: 800;
}















.tr-card-exam .tr-exam-note{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  padding: 18px 18px;
  line-height: 1.55;
  color: rgba(0,0,0,.78);
  box-shadow: 0 16px 40px rgba(0,0,0,.06);
}

/* чтобы на мобилке было удобно */
@media (max-width: 900px){
  .tr-card-exam .tr-exam-note{
    padding: 14px 14px;
    border-radius: 16px;
  }
}








/* EXAM — аккуратный текстовый блок (без изменения текста) */
.tr-card-exam .tr-card-right{
  display: flex;
  align-items: center;
  justify-content: center;
}

.tr-card-exam .tr-exam-note{
  max-width: 520px;
  padding: 22px 24px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.9),
    rgba(255,255,255,.75)
  );

  border-radius: 22px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow:
    0 20px 60px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.6);

  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: rgba(0,0,0,.75);

  /* аккуратное выравнивание текста */
  text-align: left;
}

/* вертикальный акцент слева — как фирменный штрих */
.tr-card-exam .tr-exam-note::before{
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: #F2C94C; /* твой жёлтый */
  opacity: .9;
}

/* смещаем текст от акцентной линии */
.tr-card-exam .tr-exam-note{
  position: relative;
  padding-left: 36px;
}

/* мобилка */
@media (max-width: 900px){
  .tr-card-exam .tr-exam-note{
    font-size: 14.5px;
    padding: 18px 20px 18px 32px;
    border-radius: 18px;
  }
}








.inst-cats-title{
  display:flex;
  align-items:baseline;
  gap:12px;
}

.inst-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 36px;
  height: 28px;
  padding: 0 10px;

  border-radius: 999px;
  background: rgba(242,201,76,.28);
  border: 1px solid rgba(242,201,76,.55);

  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: rgba(0,0,0,.78);
}








/* ===============================
   Language switch RU / KZ
================================ */
.lang-switch{
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-btn{
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  background: rgba(0,0,0,.04);
  transition: .2s;
}

.lang-btn:hover{
  background: rgba(0,0,0,.08);
}

.lang-btn.active{
  background: #000;
  color: #fff;
}



/* ===== LANG SWITCH POSITION TWEAK ===== */

/* Desktop — двигаем ВЛЕВО */
@media (min-width: 981px){
  .lang-switch{
    margin-right: 240px; /* ← уходит левее */
  }
}

/* Mobile — двигаем ВПРАВО */
@media (max-width: 980px){
  .lang-switch{
    margin-left: 140px; /* → уходит правее */
  }
}








@media (max-width: 394px) {
  .header-actions .burger{
    margin-left: -25px;  /* двигаем влево */
  }
}





/* Mobile — двигаем ВПРАВО */
@media (max-width: 394px){
  .lang-switch{
    margin-right: 13px; /* ← уходит левее */
  }
}