*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #D91A1A;
  --red-glow: rgba(217,26,26,0.12);
  --bg: #F7F5F2;
  --surface: #FFFFFF;
  --surface2: #F0EDE8;
  --text: #111010;
  --text2: #5A5754;
  --text3: #9B9896;
  --border: rgba(0,0,0,0.08);
  --border2: rgba(0,0,0,0.13);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.09);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.13);
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Manrope', sans-serif; font-weight: 400; overflow-x: hidden; }

/* PROGRESS */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--red); z-index: 500; width: 0; border-radius: 0 2px 2px 0; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 66px; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(247,245,242,0.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-left { display: flex; align-items: center; gap: 14px; text-decoration: none; }
@keyframes fmaSpringPop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 80% { transform: scale(0.92); } 100% { transform: scale(1); } }
@keyframes fmaFadeSlide { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.nav-logo-mark { width: 36px; height: 36px; background: var(--red); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 13px; animation: fmaSpringPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
.nav-logo-text { font-weight: 700; font-size: 17px; letter-spacing: -0.03em; color: var(--text); animation: fmaFadeSlide 0.4s 0.15s ease both; }
.nav-center { display: flex; gap: 4px; }
.nav-center a { font-size: 12.5px; color: var(--text2); text-decoration: none; font-weight: 500; padding: 5px 10px; border-radius: 8px; transition: all 0.2s; }
.nav-center a:hover, .nav-center a.active { color: var(--text); background: var(--surface2); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-phone { font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; }
.nav-hours { font-size: 12px; font-weight: 600; color: var(--text2); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 1240px) { .nav-hours { display: none; } }
.nav-btn { background: var(--red); color: white; border: none; padding: 9px 22px; border-radius: 100px; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.nav-btn:hover { background: #bf1515; transform: translateY(-1px); }

/* CHIPS & HEADINGS */
.chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(217,26,26,0.08); color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 18px; }
.sh { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; }
.sh em { font-style: normal; color: var(--text2); font-weight: 300; }

/* BUTTONS */
.btn-red { background: var(--red); color: white; border: none; padding: 14px 32px; border-radius: 100px; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.25s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 6px 20px rgba(217,26,26,0.3); letter-spacing: -0.02em; }
.btn-red:hover { background: #bf1515; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(217,26,26,0.4); }
.btn-border { background: transparent; color: var(--text); border: 1.5px solid var(--border2); padding: 13px 28px; border-radius: 100px; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; letter-spacing: -0.02em; }
.btn-border:hover { border-color: var(--text); background: var(--surface2); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.on { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* FOOTER */
footer { background: var(--text); padding: 72px 48px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.f-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; text-decoration: none; }
.f-logo-mark { width: 36px; height: 36px; background: var(--red); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 13px; animation: fmaSpringPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
.f-logo-text { font-weight: 700; font-size: 17px; letter-spacing: -0.03em; color: white; animation: fmaFadeSlide 0.4s 0.15s ease both; }
.f-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 280px; }
.f-socials { margin-top: 24px; display: flex; gap: 10px; }
.f-social { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); text-decoration: none; font-size: 18px; transition: all 0.2s; }
.f-social:hover { background: rgba(255,255,255,0.15); }
.f-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 20px; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.f-col ul a { font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.f-col ul a:hover { color: white; }
.f-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: rgba(255,255,255,0.25); flex-wrap: wrap; gap: 10px; }

/* FLOAT */
.float { display: none !important; }
.float { position: fixed; bottom: 28px; right: 28px; z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.f-btn { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; transition: all 0.2s; text-decoration: none; box-shadow: var(--shadow-md); }
.f-btn:hover { transform: scale(1.1); }
.f-btn-main { width: 58px; height: 58px; background: var(--red); border: none; font-size: 22px; box-shadow: 0 6px 24px rgba(217,26,26,0.4); }
.f-btn-main:hover { background: #bf1515; }

/* PRICES (shared) */
.prices-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 24px; }
.ptab { padding: 9px 22px; border-radius: 100px; border: 1.5px solid var(--border2); background: var(--surface); font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; color: var(--text2); }
.ptab.active { background: var(--red); color: white; border-color: var(--red); }
.ptab:hover:not(.active) { border-color: var(--text); color: var(--text); }
div.price-table { display: none; }
div.price-table.active { display: block; }
.price-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px; transition: background 0.2s; }
.price-row:hover { background: var(--surface); }
.price-row + .price-row { border-top: 1px solid var(--border); }
.pr-name { font-size: 15px; font-weight: 600; }
.pr-time { font-size: 13px; color: var(--text3); white-space: nowrap; }
.pr-price { font-size: 16px; font-weight: 800; color: var(--red); text-align: right; white-space: nowrap; }

/* WHY GRID */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border: 1px solid var(--border2); border-radius: 28px; overflow: hidden; margin-top: 48px; }
.why-card { background: var(--surface); padding: 48px; position: relative; overflow: hidden; transition: background 0.3s; }
.why-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.why-card:hover { background: #FAFAF9; }
.why-card:hover::before { transform: scaleX(1); }
.why-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--red-glow); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.why-num { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; color: var(--red); margin-bottom: 10px; opacity: 0.7; text-transform: uppercase; }
.why-title { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.why-text { font-size: 14px; color: var(--text2); line-height: 1.75; }
.why-proof { margin-top: 14px; padding: 12px 16px; background: rgba(217,26,26,0.05); border-radius: 12px; border-left: 3px solid var(--red); font-size: 13px; color: var(--text2); font-style: italic; line-height: 1.5; }

/* HOW STEPS */
.how-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 48px; position: relative; }
.how-steps::before { content: ''; position: absolute; top: 32px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--border2) 20%, var(--border2) 80%, transparent); }
.how-step { padding: 0 24px; text-align: center; }
.how-num { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; color: var(--red); margin: 0 auto 24px; position: relative; z-index: 1; transition: all 0.3s; }
.how-step:hover .how-num { background: var(--red); color: white; border-color: var(--red); }
.how-step h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
.how-step p { font-size: 13.5px; color: var(--text2); line-height: 1.7; }
.how-badge { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; color: var(--red); background: rgba(217,26,26,0.08); padding: 4px 12px; border-radius: 100px; }

/* REVIEWS */
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.rev-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 32px; transition: all 0.3s; }
.rev-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.rev-stars { color: var(--red); font-size: 13px; letter-spacing: 2px; margin-bottom: 14px; }
.rev-text { font-size: 14px; color: var(--text2); line-height: 1.75; margin-bottom: 24px; font-style: italic; }
.rev-author { display: flex; align-items: center; gap: 12px; }
.rev-av { width: 40px; height: 40px; border-radius: 50%; background: rgba(217,26,26,0.1); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--red); }
.rev-name { font-size: 14px; font-weight: 700; color: var(--text); }
.rev-date { font-size: 12px; color: var(--text3); margin-top: 2px; }

/* CONTACT FORM */
.contact-section { padding: 100px 48px; background: var(--text); position: relative; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 80% at 20% 50%, rgba(217,26,26,0.1), transparent 60%); pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; position: relative; }
.contact-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 20px; }
.contact-h { font-size: clamp(28px,4vw,48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.07; color: white; margin-bottom: 24px; }
.contact-h em { font-style: italic; font-weight: 300; color: rgba(255,255,255,0.4); }
.contact-sub { font-size: 15px; color: rgba(255,255,255,0.5); line-height: 1.75; margin-bottom: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.cinfo-item { display: flex; align-items: center; gap: 14px; }
.cinfo-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.cinfo-item a { color: white; text-decoration: none; font-size: 15px; font-weight: 600; }
.cinfo-item span { display: block; font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 2px; }
.contact-form { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 28px; padding: 40px; }
.form-title { font-size: 22px; font-weight: 800; color: white; letter-spacing: -0.03em; margin-bottom: 6px; }
.form-sub { font-size: 14px; color: rgba(255,255,255,0.4); margin-bottom: 28px; }
.cf-group { margin-bottom: 14px; }
.cf-label { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); margin-bottom: 7px; }
.cf-input, .cf-select, .cf-textarea { width: 100%; padding: 13px 18px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; color: white; font-family: 'Manrope', sans-serif; font-size: 14px; outline: none; transition: border-color 0.2s; -webkit-appearance: none; }
.cf-input::placeholder, .cf-textarea::placeholder { color: rgba(255,255,255,0.25); }
.cf-input:focus, .cf-select:focus, .cf-textarea:focus { border-color: var(--red); }
.cf-select option { background: #1a1a1a; color: white; }
.cf-textarea { resize: vertical; min-height: 90px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-submit { width: 100%; margin-top: 6px; background: var(--red); color: white; border: none; padding: 15px 32px; border-radius: 100px; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.25s; box-shadow: 0 6px 24px rgba(217,26,26,0.35); }
.cf-submit:hover { background: #bf1515; transform: translateY(-2px); }
.cf-note { font-size: 12px; color: rgba(255,255,255,0.25); margin-top: 12px; text-align: center; line-height: 1.6; }

/* STATS ROW */
.stats-row { display: flex; gap: 0; padding-top: 48px; border-top: 1px solid var(--border2); flex-wrap: wrap; }
.st { flex: 1; min-width: 120px; padding-right: 40px; border-right: 1px solid var(--border2); margin-right: 40px; }
.st:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.st-n { font-size: 38px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.st-n em { font-style: normal; color: var(--red); font-size: 22px; }
.st-l { font-size: 13px; color: var(--text3); margin-top: 6px; line-height: 1.4; font-weight: 500; }

/* PROMISE */
.promise-section { padding: 100px 48px; background: var(--text); position: relative; overflow: hidden; }
.promise-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(217,26,26,0.12), transparent 70%); pointer-events: none; }
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.promise-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.promise-h { font-size: clamp(32px,4vw,54px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.07; color: white; margin-bottom: 32px; }
.promise-h em { font-style: italic; font-weight: 300; color: rgba(255,255,255,0.45); }
.promise-sub { font-size: 16px; color: rgba(255,255,255,0.5); line-height: 1.75; margin-bottom: 40px; }
.promise-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.promise-right { display: flex; flex-direction: column; gap: 16px; }
.promise-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 24px 28px; display: flex; align-items: flex-start; gap: 16px; transition: background 0.3s; }
.promise-item:hover { background: rgba(255,255,255,0.08); }
.promise-icon { width: 44px; height: 44px; flex-shrink: 0; background: rgba(217,26,26,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.promise-item-title { font-size: 15px; font-weight: 700; color: white; margin-bottom: 5px; }
.promise-item-text { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* HAMBURGER MENU */
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border: none; background: none; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-menu {
  display: none; position: fixed; top: 66px; left: 0; right: 0; z-index: 190;
  background: rgba(247,245,242,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 16px 24px 24px;
  flex-direction: column; gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a, .nav-mobile-menu button {
  display: block; padding: 12px 16px; border-radius: 12px; font-size: 16px;
  font-weight: 600; color: var(--text); text-decoration: none;
  border: none; background: none; font-family: 'Manrope',sans-serif; cursor: pointer;
  text-align: left; transition: background 0.15s;
}
.nav-mobile-menu a:hover, .nav-mobile-menu button:hover { background: var(--surface2); }
.nav-mobile-menu .mob-cta {
  margin-top: 12px; background: var(--red); color: white; border-radius: 100px;
  text-align: center; padding: 14px; font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(217,26,26,0.3);
}
.nav-mobile-menu .mob-cta:hover { background: #bf1515; }

/* RESPONSIVE — TABLET */
/* SITE-WIDE NAV OVERFLOW FIX: laptop-width nav-center overflow (added after Android/Ноутбуки split) */
@media (max-width: 1700px) { .nav-hours { display: none; } }
@media (max-width: 1700px) and (min-width: 1440px) {
  nav { padding: 0 28px; }
  .nav-center { gap: 2px; }
  .nav-center a, .nav-pill, .nav-dd-trigger { padding: 4px 8px; font-size: 12px; }
}
@media (max-width: 1439px) and (min-width: 1221px) {
  nav { padding: 0 28px; }
  .nav-center { gap: 2px; }
  .nav-center a, .nav-pill, .nav-dd-trigger { padding: 4px 8px; font-size: 12px; }
  .nav-btn[onclick*="openFeedback"] { display: none; }
}
@media (max-width: 1220px) {
  nav { padding: 0 24px; }
  .nav-center, .nav-phone { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-center, .nav-phone { display: none; }
  .nav-burger { display: flex; }
  footer { padding: 60px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .why-grid { grid-template-columns: 1fr; }
  .promise-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .how-steps::before { display: none; }
  .cf-row { grid-template-columns: 1fr; }
  .contact-section { padding: 60px 24px; }
  .contact-form { padding: 28px 20px; }
  .promise-section { padding: 60px 24px; }
  .why-card { padding: 32px 28px; }
}

/* RESPONSIVE — MOBILE */
@media (max-width: 600px) {
  nav { height: 60px; }
  .nav-mobile-menu { top: 60px; }
  .scroll-progress { top: 0; }

  /* Stats */
  .stats-row { gap: 16px; padding-top: 32px; }
  .st { border-right: none; padding-right: 0; margin-right: 0; min-width: 40%; }
  .st-n { font-size: 28px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 48px 20px 28px; }
  .f-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Steps */
  .how-steps { grid-template-columns: 1fr; gap: 24px; }

  /* Reviews */
  .rev-card { padding: 24px 20px; }

  /* Device grid on index */
  .devices-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .device-card-visual { height: 130px !important; }

  /* Price/popup modals */
  #price-modal, #popup-overlay, #model-price-modal { padding: 12px !important; }
  #price-modal > div, #popup-overlay > div { border-radius: 20px !important; }
  #popup-overlay > div { padding: 28px 20px !important; }

  /* Float buttons */
  .float { bottom: 16px; right: 16px; gap: 6px; }
  .f-btn { width: 44px; height: 44px; font-size: 18px; }
  .f-btn-main { width: 52px; height: 52px; font-size: 20px; }

  /* Services section */
  .services-section, .models-section { padding: 48px 20px !important; }
  .srv-row { grid-template-columns: 1fr auto !important; padding: 16px 16px !important; }
  .srv-time { display: none !important; }

  /* Headings */
  .sh { font-size: clamp(24px, 7vw, 36px); }

  /* Hero on inner pages */
  .page-hero { padding: 90px 20px 48px !important; min-height: auto !important; }

  /* Why grid */
  .why-grid { border-radius: 20px; }
  .why-card { padding: 28px 20px; }

  /* Model cards */
  .models-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important; gap: 8px !important; }
  .model-card { padding: 14px 10px !important; font-size: 12px !important; }

  /* Contact */
  .contact-section { padding: 48px 20px !important; }
  .contact-grid { gap: 32px !important; }

  /* Nav: на телефоне оставляем только лого + поиск + бургер (кнопка «Оставить заявку» есть в меню) */
  .nav-btn { display: none !important; }
  .nav-tg-icon, .nav-wa-icon { display: none !important; }
  .nav-mobile-cta { display: inline-flex !important; }
  nav .nav-right { gap: 6px; }

  /* Бейджи в шапке героя не вылезают за экран */
  .hero-badges { max-width: calc(100vw - 44px) !important; flex-shrink: 1 !important; gap: 8px; }
  .hero-badges > * { flex: 0 1 auto; }
  .hero-h { font-size: clamp(24px, 7.5vw, 34px) !important; }
  .hero { overflow-x: hidden; }

  /* Прайс-таблица: 2 колонки, прячем «Время», цена не уходит под плавающие кнопки */
  .prices-hero { padding: 96px 20px 32px !important; }
  .prices-section { padding: 0 20px 90px !important; }
  .pt-header { grid-template-columns: 1fr auto !important; gap: 12px !important; padding: 12px 16px !important; }
  .pt-header span:nth-child(2) { display: none; }
  .price-row { grid-template-columns: 1fr auto !important; gap: 14px !important; padding: 16px !important; }
  .pr-name { font-size: 14px; }

  /* Любые инлайн-сетки 2–3 колонки на телефоне сворачиваем в 1 колонку
     (блок «Почему мы», акции и т.п. — чтобы не вылезали за экран) */
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 400px) {
  .devices-grid { grid-template-columns: 1fr !important; }
  .dc-price-list { display: none; }
}

/* Защита от горизонтальной прокрутки на мобильных */
html, body { overflow-x: hidden; max-width: 100%; }

/* Compact device illustration in page heroes — keeps hero short so services/models stay visible */
.page-hero-visual svg { max-width: 100%; height: auto; }

/* Deep-links from search: clear the fixed nav and gently highlight the target section */
:target { scroll-margin-top: 90px; }
section:target { animation: fmaTargetFlash 1.8s ease 1; }
@keyframes fmaTargetFlash {
  0%   { box-shadow: inset 0 0 0 3px rgba(217,26,26,0.45); }
  100% { box-shadow: inset 0 0 0 3px rgba(217,26,26,0); }
}

/* === Cookie consent banner === */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  max-width: 640px; margin: 0 auto;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 13px; line-height: 1.5;
  transform: translateY(140%); opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner p { margin: 0; flex: 1 1 260px; color: var(--text2); }
.cookie-banner a { color: var(--red); text-decoration: underline; }
.cookie-banner__btn {
  flex: 0 0 auto; border: none; cursor: pointer;
  background: var(--red); color: #fff; font-weight: 700; font-size: 13px;
  padding: 11px 22px; border-radius: 100px; transition: opacity 0.2s;
}
.cookie-banner__btn:hover { opacity: 0.85; }
@media (max-width: 480px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .cookie-banner__btn { width: 100%; }
}

/* nav dropdown fix (site-wide, added because most pages never had this CSS inline) */
.nav-has-dd{position:relative;display:inline-block;}.nav-dd{display:none;position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);background:#0d0d1a;border:1px solid rgba(255,255,255,0.12);border-radius:14px;padding:8px;min-width:210px;z-index:200;box-shadow:0 20px 60px rgba(0,0,0,0.5);}.nav-has-dd:hover .nav-dd{display:block;}.nav-dd a{display:block;padding:9px 14px;font-size:13px;color:rgba(255,255,255,0.65);text-decoration:none;border-radius:8px;white-space:nowrap;font-weight:500;}.nav-dd a:hover{background:rgba(255,255,255,0.08);color:#fff;}.nav-dd-sep{height:1px;background:rgba(255,255,255,0.08);margin:6px 0;}

/* mf-forms (added for 678-page migration) */
.mf-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:1000;align-items:center;justify-content:center;padding:24px;}
.mf-modal{background:white;border-radius:20px;max-width:440px;width:100%;padding:32px;position:relative;max-height:90vh;overflow-y:auto;}
.mf-close{position:absolute;top:16px;right:16px;background:var(--surface2);border:none;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:16px;color:var(--text2);}
.mf-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;padding:4px 12px;border-radius:100px;margin-bottom:12px;letter-spacing:.05em;}
.mf-input{padding:13px 16px;border:1.5px solid var(--border2);border-radius:12px;font-family:'Manrope',sans-serif;font-size:14px;outline:none;transition:border-color .2s;width:100%;box-sizing:border-box;display:block;background:white;color:var(--text);}
.mf-drop{border:1.5px dashed var(--border2);border-radius:12px;padding:14px;text-align:center;cursor:pointer;font-size:12px;color:var(--text3);}
.mf-submit{border:none;padding:15px;border-radius:12px;font-family:'Manrope',sans-serif;font-size:15px;font-weight:700;cursor:pointer;color:white;width:100%;}
.mf-thumbs{display:flex;gap:8px;flex-wrap:wrap;}
.mf-field-label{font-size:11px;font-weight:700;color:var(--text3);text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px;}
.mf-consent{margin-top:12px;display:flex;align-items:flex-start;gap:8px;}
.mf-consent label{font-size:11px;color:var(--text3);line-height:1.5;cursor:pointer;}
#feedback-form-overlay .mf-input:focus{border-color:#2AABEE;}

/* Trust / quality-of-repair block */
.trust-section { padding:80px 48px; background:var(--bg); }
.trust-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; max-width:1160px; margin:32px auto 0; }
.trust-card { background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:28px 24px; }
.trust-card .trust-icon { width:44px; height:44px; border-radius:12px; background:var(--red-glow); color:var(--red); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.trust-card h3 { font-size:16px; font-weight:700; margin:0 0 8px; color:var(--text); line-height:1.35; }
.trust-card p { font-size:14px; line-height:1.65; color:var(--text2); margin:0; }
.trust-card .trust-gift { display:inline-block; margin-top:12px; font-size:11px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:var(--red); background:var(--red-glow); padding:4px 10px; border-radius:100px; }
@media (max-width:600px) { .trust-section { padding:48px 20px; } }
