/* ═══════════════════════════════════════════════════════════════
   GOS21 — Городская Оконная Служба | Shared Stylesheet
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; color: #222; background: #fff; line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; word-break: break-word; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

:root {
  --red:    #e62a22;
  --red-dk: #c01e17;
  --dark:   #1a1a1a;
  --mid:    #555;
  --gray:   #f5f5f5;
  --border: #e6e6e6;
  --white:  #ffffff;
  --radius: 12px;
  --trans:  .25s ease;
  --shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.container { max-width: 1260px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; transition: all var(--trans); white-space: nowrap;
}
.btn-red   { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(230,42,34,.3); }
.btn-dark  { background: var(--dark); color: #fff; }
.btn-dark:hover  { background: #333; }
.btn-white { background: #fff; color: var(--dark); }
.btn-white:hover { background: #f0f0f0; }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline-red { background: transparent; border-color: var(--red); color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ─── SECTIONS ─── */
.section { padding: 80px 0; overflow-x: clip; }
.section-gray { background: var(--gray); }
.section-dark { background: var(--dark); color: #fff; }

.section-head { text-align: center; margin-bottom: 52px; }
.section-head .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); border-bottom: 2px solid var(--red);
  padding-bottom: 3px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 900; line-height: 1.15; margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--mid); max-width: 580px; margin: 0 auto; }

/* ─── BREADCRUMB ─── */
.breadcrumb { background: var(--gray); padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--mid); }
.breadcrumb ol { display: flex; gap: 4px 8px; align-items: center; flex-wrap: wrap; line-height: 1.6; }
.breadcrumb li { display: flex; align-items: center; white-space: nowrap; }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; opacity: .4; }
.breadcrumb a { color: var(--mid); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current] { color: var(--dark); font-weight: 600; white-space: normal; word-break: break-word; }

/* ─── TOP BAR ─── */
.topbar {
  background: var(--dark); color: rgba(255,255,255,.65);
  font-size: 13px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-left a { color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 5px; transition: color var(--trans); }
.topbar-left a:hover { color: #fff; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-soc { display: flex; gap: 6px; }
.topbar-soc a {
  width: 26px; height: 26px; border-radius: 5px; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  font-weight: 700; color: #fff; transition: background var(--trans);
}
.topbar-soc a:hover { background: var(--red); }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--dark); box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-svg { width: 38px; height: 38px; }
.logo-name { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: .01em; }
.logo-name em { color: var(--red); font-style: normal; }

/* ─── MEGA MENU ─── */
.main-nav { flex: 1; }
.main-nav > ul { display: flex; gap: 2px; position: relative; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 7px 11px; color: rgba(255,255,255,.75); font-size: 13.5px;
  font-weight: 500; border-radius: 6px; transition: all var(--trans); white-space: nowrap; cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-link--has-drop::after { content: '▾'; margin-left: 4px; font-size: 10px; opacity: .7; }

.mega-drop {
  position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); min-width: 680px; padding: 30px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .25s, transform .25s, visibility .25s; z-index: 999;
}
.nav-item:hover .mega-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-drop--sm { min-width: 240px; padding: 16px 0; }
.mega-drop-title { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--red); margin-bottom: 14px; }
.mega-drop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mega-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 8px; transition: background var(--trans);
}
.mega-link:hover { background: var(--gray); }
.mega-link-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(230,42,34,.08); display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 18px; flex-shrink: 0; }
.mega-link-text b { display: block; font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.mega-link-text span { font-size: 11px; color: var(--mid); }
.mega-drop--sm a { display: block; padding: 10px 20px; font-size: 14px; font-weight: 500; color: #333; transition: all var(--trans); }
.mega-drop--sm a:hover { color: var(--red); padding-left: 26px; }

.header-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { color: #fff; font-size: 16px; font-weight: 800; transition: color var(--trans); }
.header-phone:hover { color: var(--red); }
.header-phone small { display: block; font-size: 11px; font-weight: 400; color: rgba(255,255,255,.4); }
.header-cta { background: var(--red); color: #fff; border-radius: 7px; padding: 10px 20px; font-size: 14px; font-weight: 700; transition: background var(--trans); }
.header-cta:hover { background: var(--red-dk); }

/* ─── BURGER ─── */
.burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--dark); padding: 20px 24px; z-index: 899;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); flex-direction: column; gap: 4px; max-height: calc(100vh - 72px); overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav > a { color: rgba(255,255,255,.85); font-size: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-weight: 600; }
.mobile-nav .mob-sub { padding: 8px 0 8px 16px; }
.mobile-nav .mob-sub a { display: block; color: rgba(255,255,255,.6); font-size: 14px; padding: 7px 0; }
.mobile-nav .mob-sub a:hover { color: #fff; }
.mob-toggle { display: flex; justify-content: space-between; align-items: center; }
.mob-toggle svg { transition: transform .3s; }
.mob-toggle.open svg { transform: rotate(180deg); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: var(--dark); padding: 60px 0 50px; position: relative; overflow: hidden; overflow-wrap: break-word; word-break: break-word;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(230,42,34,.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1.15; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 17px; max-width: 700px; margin-bottom: 30px; }
.page-hero-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.meta-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 8px 14px;
  color: rgba(255,255,255,.8); font-size: 13px; font-weight: 600;
}
.meta-badge svg { width: 16px; height: 16px; stroke: var(--red); stroke-width: 2; fill: none; }

/* ─── CARDS GRID ─── */
.card-grid { display: grid; gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border-radius: 14px; border: 1px solid var(--border);
  overflow: hidden; transition: all var(--trans);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #ccc; }
.card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--gray); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.card-body p { font-size: 14px; color: var(--mid); margin-bottom: 18px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: 14px; font-weight: 700; }
.card-link:hover { gap: 10px; }

/* ─── SERVICE-PAGE LAYOUT ─── */
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.sp-sidebar { position: sticky; top: 90px; }
.sp-sidebar-box { background: var(--gray); border-radius: 14px; padding: 28px; margin-bottom: 20px; }
.sp-sidebar-box h4 { font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.sp-nav-links { display: flex; flex-direction: column; gap: 4px; }
.sp-nav-links a { padding: 9px 12px; border-radius: 7px; font-size: 14px; font-weight: 500; color: #333; transition: all var(--trans); }
.sp-nav-links a:hover, .sp-nav-links a.current { background: var(--red); color: #fff; }

.sp-cta-box { background: var(--red); border-radius: 14px; padding: 24px; color: #fff; }
.sp-cta-box h4 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.sp-cta-box p { font-size: 13px; opacity: .9; margin-bottom: 16px; }
.sp-cta-box .phone { font-size: 18px; font-weight: 900; display: block; margin-bottom: 12px; }
.sp-cta-box input { width: 100%; padding: 11px; border-radius: 7px; border: none; margin-bottom: 10px; font-family: inherit; font-size: 14px; }
.sp-cta-box button { width: 100%; padding: 12px; background: var(--dark); color: #fff; border-radius: 7px; font-weight: 700; font-size: 14px; transition: opacity .2s; }
.sp-cta-box button:hover { opacity: .85; }

.sp-content { min-width: 0; max-width: 100%; overflow-wrap: break-word; word-wrap: break-word; }
.sp-content > div[style*="overflow"] { max-width: 100%; }
.sp-content h2 { font-size: 26px; font-weight: 800; margin: 40px 0 16px; line-height: 1.2; }
.sp-content h2:first-child { margin-top: 0; }
.sp-content h3 { font-size: 20px; font-weight: 700; margin: 30px 0 12px; }
.sp-content p { color: #333; margin-bottom: 16px; font-size: 16px; }
.sp-content ul.bullet { padding-left: 0; margin-bottom: 20px; }
.sp-content ul.bullet li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 15px; }
.sp-content ul.bullet li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 900; }

.sp-img { border-radius: 12px; overflow: hidden; margin: 24px 0; box-shadow: var(--shadow); }
.sp-img img { width: 100%; height: 320px; object-fit: cover; }

/* ─── ADVANTAGES ─── */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv-card { text-align: center; padding: 30px 20px; }
.adv-icon { font-size: 40px; margin-bottom: 14px; color: var(--red); }
.adv-icon svg { width: 44px; height: 44px; }
.adv-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: var(--mid); }

/* ─── STATS BAR ─── */
.stats-bar { background: var(--red); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-item { padding: 10px; border-right: 1px solid rgba(255,255,255,.2); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: clamp(32px, 4vw, 52px); font-weight: 900; color: #fff; line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 6px; }

/* ─── PRICE TABLE ─── */
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left; }
.price-table th { background: var(--dark); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: var(--gray); }
.price-table .price-val { font-weight: 800; color: var(--red); white-space: nowrap; }

/* ─── FAQ (accordion) ─── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-size: 17px; font-weight: 700; cursor: pointer;
  color: var(--dark); transition: color var(--trans);
}
.faq-q:hover { color: var(--red); }
.faq-q-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--gray); display: flex; align-items: center; justify-content: center; color: var(--mid); font-size: 18px; flex-shrink: 0; transition: all .3s; }
.faq-item.open .faq-q-icon { background: var(--red); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding-bottom: 20px; color: var(--mid); }

/* ─── REVIEWS ─── */
.review-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.review-stars { color: #f59e0b; font-size: 18px; margin-bottom: 12px; }
.review-text { font-size: 15px; color: #333; margin-bottom: 14px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; }
.review-author-name b { display: block; font-size: 14px; }
.review-author-name span { font-size: 12px; color: var(--mid); }

/* ─── YANDEX REVIEWS WIDGET ─── */
.yr-widget { padding: 50px 0; }
.yr-header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.yr-logo { width: 36px; height: 36px; flex-shrink: 0; }
.yr-rating-big { font-size: 32px; font-weight: 900; color: #111; line-height: 1; }
.yr-stars-big { color: #f59e0b; font-size: 18px; }
.yr-count { font-size: 13px; color: var(--mid); }
.yr-yandex-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 8px; background: rgba(252,206,0,.1);
  border: 1px solid rgba(252,206,0,.25); font-size: 12px; font-weight: 700;
  color: #8a6d00; text-decoration: none; transition: all .2s;
}
.yr-yandex-link:hover { background: rgba(252,206,0,.2); }
.yr-yandex-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.yr-slider-wrap { position: relative; overflow: hidden; }
.yr-slider-track {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 4px 0;
}

.yr-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; scroll-snap-align: start;
  transition: box-shadow .2s, transform .2s;
}
.yr-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.yr-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.yr-card-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--red);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0; overflow: hidden;
}
.yr-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.yr-card-author b { display: block; font-size: 13px; color: #111; }
.yr-card-author span { font-size: 11px; color: var(--mid); }
.yr-card-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 6px; background: rgba(255,63,63,.08);
  font-size: 10px; font-weight: 700; color: #c62828; letter-spacing: .02em;
}
.yr-card-badge svg { width: 12px; height: 12px; }
.yr-card-stars { color: #f59e0b; font-size: 14px; margin-bottom: 8px; }
.yr-card-text { font-size: 14px; color: #444; line-height: 1.6; font-style: italic; }

.yr-slider-track {
  transition: opacity .2s ease, transform .2s ease;
}
.yr-slider-arrows { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 22px; }
.yr-page-info { font-size: 14px; font-weight: 700; color: var(--mid); min-width: 50px; text-align: center; }
.yr-arrow {
  width: 44px; height: 44px; border-radius: 50%; background: #fff;
  border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: all .2s; color: #333;
}
.yr-arrow:disabled { opacity: .35; cursor: default; }
.yr-arrow:hover { background: var(--red); color: #fff; border-color: var(--red); }
.yr-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.yr-grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.yr-grid-layout .yr-card { min-width: 0; }
.yr-list-layout { display: flex; flex-direction: column; gap: 14px; }
.yr-list-layout .yr-card { min-width: 0; }

.yr-leave-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px; background: var(--red);
  color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
  transition: all .2s; border: none; cursor: pointer;
}
.yr-leave-btn:hover { background: #c01e17; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220,38,38,.3); }
.yr-leave-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.yr-footer { display: flex; justify-content: center; margin-top: 24px; gap: 12px; flex-wrap: wrap; align-items: center; }

@media (max-width: 640px) {
  .yr-slider-track { grid-template-columns: 1fr; }
  .yr-card { padding: 18px; }
  .yr-header { gap: 10px; }
  .yr-rating-big { font-size: 26px; }
  .yr-yandex-link { font-size: 11px; padding: 5px 10px; }
  .yr-grid-layout { grid-template-columns: 1fr; }
}
@media (min-width: 641px) and (max-width: 960px) {
  .yr-slider-track { grid-template-columns: repeat(2, 1fr); }
}

/* ─── BLOG CARD ─── */
.article-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: all var(--trans); }
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.article-card-body { padding: 22px; }
.article-cat { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--red); margin-bottom: 8px; }
.article-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.article-card p { font-size: 14px; color: var(--mid); margin-bottom: 14px; }
.article-meta { font-size: 12px; color: var(--mid); display: flex; gap: 12px; }

/* ─── MODAL ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; padding: 20px; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 440px; padding: 40px; position: relative; transform: translateY(20px); transition: transform .3s; }
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--gray); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--mid); transition: .2s; }
.modal-close:hover { background: var(--red); color: #fff; }
.modal-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.modal-box p { color: var(--mid); font-size: 14px; margin-bottom: 22px; }
.form-row { margin-bottom: 14px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 15px; color: var(--dark); transition: border-color .2s; background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--red); }
.form-note { font-size: 11px; color: var(--mid); text-align: center; margin-top: 10px; }

/* ─── FOOTER ─── */
.site-footer { background: #111; color: rgba(255,255,255,.75); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 18px; font-weight: 800; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: 14px; transition: color var(--trans); }
.footer-col ul li a:hover { color: var(--red); }
.footer-about p { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 16px; line-height: 1.7; }
.footer-about .f-phones a { display: block; font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.footer-about .f-phones a:hover { color: var(--red); }
.footer-soc { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.footer-soc a { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.08); font-weight: 700; font-size: 13px; color: #fff; transition: background var(--trans); }
.footer-soc a:hover { background: var(--red); }
.footer-soc a svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 10px; }

/* ─── FLOAT CTA ─── */
.float-cta { position: fixed; bottom: 28px; right: 28px; z-index: 500; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.float-btn { width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(230,42,34,.4); transition: transform .2s; }
.float-btn:hover { transform: scale(1.1); }
.float-btn svg { width: 26px; height: 26px; stroke: #fff; stroke-width: 2; fill: none; }
.float-tg { background: #229ed9; box-shadow: 0 8px 24px rgba(34,158,217,.4); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sp-grid { grid-template-columns: 1fr; }
  .sp-sidebar { position: static; }
}
@media (max-width: 860px) {
  .main-nav, .header-right .header-cta { display: none; }
  .burger { display: flex; }
  .mega-drop { display: none; }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
}
@media (max-width: 600px) {
  .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .adv-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }
  .section-title { font-size: clamp(22px, 6vw, 32px); }
}

/* ─── MOBILE (≤ 480px) — телефоны ─── */
@media (max-width: 480px) {
  /* Глобальный контейнер — меньше боковых отступов */
  .container, .container--narrow { padding: 0 16px; }

  /* Шапка */
  .header { padding: 0 16px; }
  .logo-svg { width: 30px; height: 30px; }
  .header-logo span { font-size: 19px; }

  /* Герой-слайдер */
  .hero-slider { height: 480px; }
  .hero-title { font-size: clamp(26px, 7vw, 40px); margin-bottom: 14px; }
  .hero-desc { font-size: 15px; margin-bottom: 22px; }
  .hero-buttons, .hero-actions { flex-direction: column; gap: 10px; }
  .hero-buttons .btn, .hero-buttons .btn-outline,
  .hero-actions .btn, .hero-actions .btn-outline { width: 100%; text-align: center; justify-content: center; }
  .slider-arrow { width: 38px; height: 38px; font-size: 16px; }

  /* Статистика — 1 колонка */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); padding: 16px 8px; }
  .stat-item:last-child { border-bottom: none; }

  /* Карточки */
  .card-grid--4, .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Секции */
  .section { padding: 40px 0; }
  .section-title { font-size: clamp(20px, 6vw, 28px); margin-bottom: 10px; }
  .section-sub { font-size: 15px; }

  /* FAQ */
  .faq-q { font-size: 15px; }

  /* Отзывы */
  .review-text { font-size: 14px; }

  /* Плавающие кнопки — меньше отступ от края */
  .float-cta { bottom: 16px; right: 16px; gap: 8px; }
  .float-btn { width: 50px; height: 50px; }
  .float-btn svg { width: 22px; height: 22px; }

  /* Подвал */
  .footer { padding: 40px 0 24px; }
  .footer-logo span { font-size: 18px; }
  .footer-grid { gap: 28px; }
  .footer-cta { padding: 24px 16px; }

  /* Хлебные крошки */
  .breadcrumb { font-size: 12px; gap: 6px; flex-wrap: wrap; }

  /* Страница услуги */
  .sp-img img { height: 220px; }
  .price-table { font-size: 13px; }
  .price-table th, .price-table td { padding: 8px 10px; }

  /* Модальное окно */
  .modal-box { padding: 24px 16px; }
  .modal-box h2 { font-size: 20px; }

  /* Gallery */
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ─── REPAIR ICON (SVG inline in h3) ─── */
.repair-icon { display: inline-flex; vertical-align: middle; margin-right: 8px; flex-shrink: 0; }
.repair-icon svg { width: 20px; height: 20px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── PAGE GALLERY SLIDER ─── */
.page-gallery-section { padding: 60px 0; background: var(--gray); }
.page-gallery-section .section-sub { color: var(--mid); font-size: 15px; margin-top: 8px; }
.pg-wrap { margin-top: 32px; }

/* Viewport (overflow container) */
.pg-viewport { position: relative; border-radius: 20px; overflow: hidden; background: #ddd; aspect-ratio: 16/9; }
.pg-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.4,0,.2,1); will-change: transform; }
.pg-slide { flex: 0 0 100%; height: 100%; position: relative; overflow: hidden; }
.pg-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-slide-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #aaa; }
.pg-slide-ph svg { opacity: .4; }
.pg-slide-ph span { font-size: 14px; font-weight: 500; }
.pg-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 16px; background: linear-gradient(to top,rgba(0,0,0,.65),transparent); color: #fff; font-size: 13px; }

/* Arrow buttons */
.pg-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(255,255,255,.9); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 14px rgba(0,0,0,.2); z-index: 2; transition: background .2s, transform .25s; }
.pg-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.pg-btn--prev { left: 14px; }
.pg-btn--next { right: 14px; }

/* Counter badge */
.pg-counter { position: absolute; bottom: 14px; right: 16px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; pointer-events: none; }

/* Dot indicators */
.pg-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pg-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(0,0,0,.2); cursor: pointer; border: none; padding: 0; transition: all .25s; }
.pg-dot.active { background: var(--red); width: 30px; border-radius: 5px; }
.pg-dot:hover:not(.active) { background: rgba(0,0,0,.4); }

@media(max-width:768px) {
  .pg-viewport { aspect-ratio: 4/3; border-radius: 14px; }
  .pg-btn { width: 40px; height: 40px; }
  .pg-btn--prev { left: 8px; }
  .pg-btn--next { right: 8px; }
}
@media(max-width:480px) {
  .pg-viewport { aspect-ratio: 3/2; border-radius: 10px; }
  .pg-btn { display: none; }
}

/* ─── PHOTO GALLERY ─── */
.photo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 8px; }
.photo-gallery figure { margin: 0; overflow: hidden; border-radius: 10px; aspect-ratio: 4/3; background: var(--gray); }
.photo-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.photo-gallery figure:hover img { transform: scale(1.04); }
.gallery-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--mid); }
.gallery-placeholder svg { opacity: .35; }
.gallery-placeholder span { font-size: 12px; opacity: .7; text-align: center; line-height: 1.4; }

/* ─── SHORTS / VIDEO SECTION ─── */
.shorts-section { background: #0d0d0d; padding: 60px 0 52px; }
.shorts-section .eyebrow { color: rgba(255,255,255,.4); }
.shorts-section h2 { color: #fff; }
.shorts-head-sub { color: rgba(255,255,255,.5); font-size: 15px; margin: 8px 0 32px; }

/* Scroll row — outer handles overflow, inner centers content */
.shorts-track { overflow-x: auto; padding-bottom: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.shorts-track::-webkit-scrollbar { height: 3px; }
.shorts-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 2px; }
.shorts-row { display: flex; gap: 18px; width: max-content; margin: 0 auto; }

/* Card base */
.short-card { flex: 0 0 200px; aspect-ratio: 9/16; border-radius: 20px; overflow: hidden; position: relative; display: block; text-decoration: none; transition: transform .25s, box-shadow .25s; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.short-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 45px rgba(0,0,0,.75); }
.short-card iframe,
.short-card img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }

/* Gradient overlay — bottom 60% dark, top transparent */
.short-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.3) 45%, transparent 70%); pointer-events: none; }

/* Watermark: large semi-transparent window icon */
.short-card-wm { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -62%); opacity: .05; pointer-events: none; }
.short-card-wm svg { width: 110px; height: 110px; stroke: #fff; fill: none; }

/* Category tag (top-left red pill) */
.short-card-tag { position: absolute; top: 11px; left: 11px; background: var(--red); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; pointer-events: none; }

/* Play button */
.short-card-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 54px; height: 54px; background: rgba(255,255,255,.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 2px solid rgba(255,255,255,.35); box-shadow: 0 4px 20px rgba(0,0,0,.4); pointer-events: none; transition: background .25s, border-color .25s, transform .25s; }
.short-card:hover .short-card-play { background: rgba(230,42,34,.55); border-color: rgba(230,42,34,.7); transform: translate(-50%,-50%) scale(1.1); }

/* Bottom info */
.short-card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 12px; pointer-events: none; }
.short-card-title { color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.short-card-vkbadge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.75); background: rgba(0,119,255,.55); padding: 3px 9px; border-radius: 20px; backdrop-filter: blur(4px); }
.short-card-vkbadge svg { width: 10px; height: 10px; fill: #fff; flex-shrink: 0; }

/* Social cards row */
.shorts-soc { display: flex; gap: 14px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.soc-card { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 16px; text-decoration: none; color: #fff; transition: transform .2s, filter .2s; min-width: 190px; }
.soc-card:hover { transform: translateY(-4px); filter: brightness(1.12); }
.soc-card-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.soc-card-icon svg { width: 24px; height: 24px; }
.soc-card-label b { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; }
.soc-card-label span { font-size: 11px; opacity: .7; }
.soc-card--vk  { background: linear-gradient(135deg, #1a7de8 0%, #0057d6 100%); box-shadow: 0 6px 20px rgba(0,87,214,.4); }
.soc-card--tg  { background: linear-gradient(135deg, #35aee2 0%, #1a8fc2 100%); box-shadow: 0 6px 20px rgba(26,143,194,.4); }
.soc-card--max { background: linear-gradient(135deg, #1e63d6 0%, #003db5 100%); box-shadow: 0 6px 20px rgba(0,61,181,.4); }

/* Larger text inside bigger cards */
.short-card-tag { font-size: 9.5px; padding: 4px 11px; }
.short-card-play { width: 60px; height: 60px; }
.short-card-title { font-size: 12.5px; }
.short-card-info { padding: 16px 14px; }

@media(max-width:600px) {
  .short-card { flex: 0 0 160px; border-radius: 16px; }
  .short-card-play { width: 52px; height: 52px; }
  .short-card-title { font-size: 11px; }
  .shorts-soc { gap: 10px; }
  .soc-card { min-width: 0; padding: 12px 16px; gap: 10px; }
  .soc-card-icon { width: 40px; height: 40px; }
  .soc-card-label b { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════
   MOBILE ADAPTATION — comprehensive overrides
   ═══════════════════════════════════════════════════ */

/* ─── Header: hide phone on tablets/phones ─── */
@media (max-width: 860px) {
  .header-inner { height: 60px; }
  .mobile-nav   { top: 60px; max-height: calc(100vh - 60px); }
  .header-phone { display: none; }
  /* Burger touches */
  .burger { padding: 8px; }
  .burger span { width: 22px; }
}

/* Show compact phone in mobile nav */
@media (max-width: 860px) {
  .mobile-nav::after {
    content: '';
    display: block;
    height: 1px;
  }
  .mob-phone-row {
    display: flex; flex-direction: column; gap: 6px;
    padding: 16px 0; border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 4px;
  }
  .mob-phone-row a {
    color: #fff; font-size: 18px; font-weight: 800;
    display: flex; align-items: center; gap: 8px;
  }
  .mob-phone-row small { color: rgba(255,255,255,.5); font-size: 12px; font-weight: 400; }
  .mob-cta-row { margin-top: 10px; }
  .mob-cta-row .btn { width: 100%; justify-content: center; font-size: 15px; padding: 13px; }
}

/* ─── Inner page hero ─── */
@media (max-width: 768px) {
  .page-hero { padding: 36px 0 28px; }
  .page-hero h1 { font-size: clamp(22px, 6vw, 34px); margin-bottom: 12px; }
  .page-hero p  { font-size: 15px; margin-bottom: 18px; }
  .page-hero-meta { gap: 8px; margin-top: 12px; }
  .meta-badge { font-size: 12px; padding: 6px 10px; gap: 6px; }
}
@media (max-width: 480px) {
  .page-hero { padding: 24px 0 20px; }
  .page-hero h1 { font-size: clamp(20px, 7vw, 28px); }
  .page-hero p  { font-size: 14px; }
  .page-hero .btn { width: 100%; justify-content: center; }
}

/* ─── Service-page content ─── */
@media (max-width: 768px) {
  .sp-grid { gap: 24px; }
  .sp-sidebar-box { padding: 20px; }
  .sp-content h2 { font-size: 22px; margin: 28px 0 12px; }
  .sp-content h3 { font-size: 18px; margin: 22px 0 10px; }
  .sp-content p  { font-size: 15px; }
  .sp-img img    { height: 240px; }
  .sp-content { max-width: 100%; overflow-x: hidden; }
  .section    { overflow-x: hidden; }
}
@media (max-width: 480px) {
  .sp-content h2 { font-size: 19px; }
  .sp-content h3 { font-size: 16px; }
  .sp-img img    { height: 200px; }
}

/* ─── Price table — horizontal scroll ─── */
.price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border-radius: 10px;
  position: relative;
}
@media (max-width: 768px) {
  .price-table th, .price-table td { padding: 10px 12px; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 480px) {
  .price-table th, .price-table td { padding: 9px 10px; font-size: 12px; white-space: nowrap; }
}

/* ─── Stats bar ─── */
@media (max-width: 600px) {
  .stats-bar { padding: 28px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); padding: 14px 8px; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.15); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-num { font-size: 34px; }
  .stat-label { font-size: 12px; }
}

/* ─── Advantages grid ─── */
@media (max-width: 600px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .adv-card { padding: 20px 14px; }
  .adv-icon svg { width: 36px; height: 36px; }
  .adv-card h3 { font-size: 14px; }
  .adv-card p  { font-size: 13px; }
}
@media (max-width: 380px) {
  .adv-grid { grid-template-columns: 1fr; }
}

/* ─── FAQ ─── */
@media (max-width: 600px) {
  .faq-q { font-size: 15px; padding: 16px 0; }
  .faq-a p { font-size: 14px; }
}

/* ─── Reviews ─── */
@media (max-width: 480px) {
  .review-card { padding: 18px; }
  .review-text { font-size: 14px; }
}

/* ─── Footer ─── */
@media (max-width: 600px) {
  .site-footer { padding: 36px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-about .f-phones a { font-size: 16px; }
  .footer-soc { gap: 6px; }
  .footer-soc a { padding: 7px 12px; font-size: 12px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; font-size: 12px; }
}

/* ─── Modal ─── */
@media (max-width: 480px) {
  .modal-overlay { padding: 12px; }
  .modal-box { padding: 24px 18px; }
  .modal-box h3 { font-size: 19px; }
}

/* ─── Float CTA ─── */
@media (max-width: 480px) {
  .float-cta { bottom: 14px; right: 14px; gap: 8px; }
  .float-btn  { width: 50px; height: 50px; }
  .float-btn svg { width: 22px; height: 22px; }
}

/* ─── Shorts social cards ─── */
@media (max-width: 480px) {
  .shorts-section { padding: 44px 0 36px; }
  .shorts-soc { flex-direction: column; align-items: center; gap: 10px; }
  .soc-card { width: 100%; max-width: 300px; justify-content: center; }
}

/* ─── Section headings ─── */
@media (max-width: 600px) {
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(22px, 6vw, 30px); margin-bottom: 10px; }
  .section-head p  { font-size: 15px; }
  .section { padding: 44px 0; }
}
@media (max-width: 480px) {
  .section { padding: 36px 0; }
  .container, .container--narrow { padding: 0 16px; }
}

/* ─── Breadcrumb ─── */
@media (max-width: 480px) {
  .breadcrumb { font-size: 12px; padding: 8px 0; }
}

/* ─── Cards ─── */
@media (max-width: 480px) {
  .card-body { padding: 16px; }
  .card-body h3 { font-size: 16px; }
}

/* ─── Page gallery slider ─── */
@media (max-width: 480px) {
  .page-gallery-section { padding: 36px 0; }
  .pg-wrap { margin-top: 20px; }
}

/* ─── Topbar hide on mobile ─── */
@media (max-width: 600px) {
  .topbar { display: none; }
}
