/* =========================================================
   Типография «Процвет» — pro-color.ru | prototype v3-2
   ========================================================= */

/* ---------- Шрифты DINPro ---------- */
@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- CSS-переменные ---------- */
:root {
  --pc-dark:        #0A1628;
  --pc-dark-soft:   #0D1F3C;
  --pc-light:       #FFFFFF;
  --pc-light-gray:  #F5F5F5;
  --pc-cta:         #FF6B1A;
  --pc-cta-hover:   #E55A0F;
  --pc-text:        #2D2D2D;
  --pc-text-light:  #666666;
  --pc-border:      #E0E0E0;

  /* фирменные CMYK-акценты из логотипа */
  --pc-cyan:        #00A0E3;
  --pc-yellow:      #FFED00;
  --pc-magenta:     #E5097F;
  --pc-gray:        #4F4F4E;

  --pc-shadow:      0 8px 30px rgba(10, 22, 40, .08);
  --pc-shadow-lg:   0 20px 50px rgba(10, 22, 40, .14);
  --pc-radius:      8px;
  --pc-radius-lg:   16px;
  --pc-section-pad: 80px;
  --bs-body-font-family: "DINPro", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- База ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--bs-body-font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--pc-text);
  background: var(--pc-light);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

img { max-width: 100%; height: auto; }

a { color: var(--pc-cyan); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--pc-cta); }

.container { max-width: 1200px; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--pc-dark);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.5px; }
h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.3px; }
h3 { font-size: clamp(20px, 2.6vw, 26px); }
h4 { font-size: 20px; }

p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--pc-text-light); line-height: 1.55; }

.text-muted-pc { color: var(--pc-text-light); }

/* Заголовок секции */
.section-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pc-cta);
  margin-bottom: 14px;
}

/* ---------- Секции и фоны ---------- */
.section { padding: var(--pc-section-pad) 0; }
.section-sm { padding: 56px 0; }
.bg-dark-pc { background: var(--pc-dark); color: #fff; }
.bg-dark-soft-pc { background: var(--pc-dark-soft); color: #fff; }
.bg-gray-pc { background: var(--pc-light-gray); }
.bg-light-pc { background: var(--pc-light); }

.bg-dark-pc h1, .bg-dark-pc h2, .bg-dark-pc h3, .bg-dark-pc h4,
.bg-dark-soft-pc h1, .bg-dark-soft-pc h2, .bg-dark-soft-pc h3, .bg-dark-soft-pc h4 { color: #fff; }
.bg-dark-pc .lead, .bg-dark-soft-pc .lead { color: rgba(255,255,255,.72); }

/* декоративная CMYK-полоса */
.cmyk-bar { height: 4px; width: 100%; display: flex; }
.cmyk-bar span { flex: 1; }
.cmyk-bar span:nth-child(1) { background: var(--pc-cyan); }
.cmyk-bar span:nth-child(2) { background: var(--pc-magenta); }
.cmyk-bar span:nth-child(3) { background: var(--pc-yellow); }
.cmyk-bar span:nth-child(4) { background: var(--pc-gray); }

/* ---------- Кнопки ---------- */
.btn {
  font-weight: 500;
  font-size: 17px;
  min-height: 44px;
  border-radius: var(--pc-radius);
  padding: 11px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all .2s ease;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn-cta {
  background: var(--pc-cta);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 107, 26, .32);
}
.btn-cta:hover { background: var(--pc-cta-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 107, 26, .4); }
.btn-outline-pc {
  background: transparent;
  color: var(--pc-dark);
  border-color: var(--pc-dark);
}
.btn-outline-pc:hover { background: var(--pc-dark); color: #fff; }
/* на тёмном фоне */
.bg-dark-pc .btn-outline-pc, .bg-dark-soft-pc .btn-outline-pc,
.hero-dark .btn-outline-pc {
  color: #fff; border-color: rgba(255,255,255,.4);
}
.bg-dark-pc .btn-outline-pc:hover, .bg-dark-soft-pc .btn-outline-pc:hover,
.hero-dark .btn-outline-pc:hover { background: #fff; color: var(--pc-dark); border-color: #fff; }
.btn-lg { font-size: 18px; padding: 14px 34px; min-height: 52px; }
.btn-ghost {
  background: transparent; color: var(--pc-text); border-color: var(--pc-border);
}
.btn-ghost:hover { border-color: var(--pc-dark); color: var(--pc-dark); }

/* ---------- Плейсхолдеры изображений ---------- */
.ph {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #F2F2F2, #E8E8E8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #BDBDBD;
  overflow: hidden;
  border-radius: var(--pc-radius);
}
.ph i { font-size: clamp(30px, 9%, 60px); line-height: 1; }
.ph-4-3 { aspect-ratio: 4 / 3; }
.ph-16-9 { aspect-ratio: 16 / 9; }
.ph-1-1 { aspect-ratio: 1 / 1; }
.ph-3-2 { aspect-ratio: 3 / 2; }
.ph-21-9 { aspect-ratio: 21 / 9; }
/* затемнённый плейсхолдер для тёмных секций */
.ph-dark { background: linear-gradient(135deg, #13243F, #0E1C33); color: #33496E; }
/* плейсхолдер с подписью */
.ph-label {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(10,22,40,.78); color: #fff;
  font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 100px;
}

/* =========================================================
   ШАПКА
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 1030; }

/* 1. Топ-бар */
.topbar {
  background: var(--pc-dark-soft);
  color: #fff;
  font-size: 13.5px;
  letter-spacing: .5px;
}
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 38px; position: relative; }
.topbar-text { font-weight: 500; text-transform: uppercase; text-align: center; }
.topbar-text b { color: var(--pc-yellow); }
.topbar-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px;
}
.topbar-close:hover { color: #fff; }
.topbar.is-hidden { display: none; }

/* 2. Зона логотипа */
.header-main { background: var(--pc-dark); color: #fff; }
.header-main .container { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 38px; width: auto; display: block; }
.brand .brand-sub { font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: .5px; line-height: 1.25; }

.header-contacts { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.city-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: none; color: #fff; cursor: pointer; font-size: 15px; font-weight: 500; padding: 0;
}
.city-btn i:first-child { color: var(--pc-cta); }
.city-btn .bi-chevron-down { font-size: 11px; opacity: .6; }
.city-btn:hover { color: var(--pc-cta); }
.header-phone { display: flex; flex-direction: column; line-height: 1.15; }
.header-phone a { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .3px; }
.header-phone a:hover { color: var(--pc-cta); }
.header-phone small { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 400; }
.header-email { color: rgba(255,255,255,.7); font-size: 14px; }
.header-email:hover { color: var(--pc-cta); }
.callback-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff; font-size: 14.5px; font-weight: 500; cursor: pointer;
  border-bottom: 1px dashed rgba(255,255,255,.4); padding-bottom: 1px;
}
.callback-link:hover { color: var(--pc-cta); border-color: var(--pc-cta); }

/* 3. Строка меню */
.header-nav { background: #fff; border-bottom: 1px solid var(--pc-border); box-shadow: 0 2px 14px rgba(10,22,40,.05); }
.header-nav .container { display: flex; align-items: stretch; gap: 0; min-height: 60px; }

.catalog-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--pc-cta); color: #fff; border: none; cursor: pointer;
  font-size: 17px; font-weight: 500; padding: 0 26px; border-radius: var(--pc-radius);
  margin: 9px 18px 9px 0; transition: background .2s;
}
.catalog-btn:hover { background: var(--pc-cta-hover); color: #fff; }
.catalog-btn i { font-size: 19px; }

.nav-search { display: flex; align-items: center; flex: 0 1 250px; position: relative; }
.nav-search input {
  width: 100%; height: 40px; border: 1px solid var(--pc-border); border-radius: var(--pc-radius);
  padding: 0 14px 0 38px; font-size: 15px; font-family: inherit; background: var(--pc-light-gray);
}
.nav-search input:focus { outline: none; border-color: var(--pc-cta); background: #fff; }
.nav-search .bi-search { position: absolute; left: 13px; color: var(--pc-text-light); font-size: 15px; pointer-events: none; }

.main-menu { display: flex; align-items: stretch; margin-left: auto; gap: 2px; }
.main-menu > li { position: relative; display: flex; align-items: center; }
.main-menu > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 15px; height: 100%; color: var(--pc-text); font-size: 16px; font-weight: 500;
}
.main-menu > li > a .bi-chevron-down { font-size: 10px; opacity: .55; transition: transform .2s; }
.main-menu > li:hover > a { color: var(--pc-cta); }
.main-menu > li:hover > a .bi-chevron-down { transform: rotate(180deg); }

/* выпадающее подменю */
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: #fff; border-radius: 0 0 var(--pc-radius-lg) var(--pc-radius-lg);
  box-shadow: var(--pc-shadow-lg); border-top: 3px solid var(--pc-cta);
  padding: 12px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .22s ease; z-index: 1040;
}
.main-menu > li:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu.submenu-right { left: auto; right: 0; }
.submenu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; color: var(--pc-text); font-size: 15px; font-weight: 400; border-radius: 6px;
}
.submenu a i { color: var(--pc-cyan); font-size: 17px; width: 20px; text-align: center; }
.submenu a:hover { background: var(--pc-light-gray); color: var(--pc-cta); }
.submenu a:hover i { color: var(--pc-cta); }

/* двухколоночное подменю (Услуги) */
.submenu-2col {
  min-width: 600px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px;
  padding: 22px;
}
.submenu-2col .submenu-col-title {
  grid-column: span 1; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--pc-text-light); padding: 0 14px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--pc-border);
}
.submenu-2col ul { list-style: none; margin: 0; padding: 0; }

/* мегаменю «Продукция» */
.megamenu-wrap { position: relative; }
.megamenu {
  position: absolute; top: calc(100% + 9px); left: 0; width: min(1140px, calc(100vw - 32px));
  background: #fff; border-radius: var(--pc-radius-lg); box-shadow: var(--pc-shadow-lg);
  border-top: 4px solid var(--pc-cta); padding: 30px; z-index: 1050;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .25s ease;
}
.megamenu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.megamenu-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.mega-cat {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 14px;
  border-radius: var(--pc-radius); border: 1px solid var(--pc-border); background: #fff;
  color: var(--pc-text); transition: all .2s; text-align: center; align-items: center;
}
.mega-cat i { font-size: 30px; color: var(--pc-cyan); transition: color .2s; }
.mega-cat span { font-size: 15px; font-weight: 500; line-height: 1.3; }
.mega-cat:hover { border-color: var(--pc-cta); box-shadow: var(--pc-shadow); transform: translateY(-3px); color: var(--pc-dark); }
.mega-cat:hover i { color: var(--pc-cta); }
.megamenu-footer { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--pc-border); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.megamenu-footer .mm-note { color: var(--pc-text-light); font-size: 15px; margin: 0; }
.megamenu-backdrop {
  position: fixed; inset: 0; background: rgba(10,22,40,.4); z-index: 1029;
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.megamenu-backdrop.is-open { opacity: 1; visibility: visible; }

/* бургер + мобильная панель */
.burger {
  display: none; background: none; border: none; color: var(--pc-text);
  font-size: 28px; cursor: pointer; padding: 6px; line-height: 1;
}
.mobile-call-fab {
  display: none; position: fixed; right: 18px; bottom: 18px; z-index: 1035;
  width: 58px; height: 58px; border-radius: 50%; background: var(--pc-cta); color: #fff;
  align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 8px 24px rgba(255,107,26,.5);
}
.mobile-call-fab:hover { color: #fff; }

.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  background: #fff; z-index: 1060; transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column; overflow-y: auto; box-shadow: -10px 0 40px rgba(10,22,40,.25);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--pc-dark); color: #fff; }
.mobile-nav-head img { height: 30px; }
.mobile-nav-close { background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }
.mobile-nav-body { padding: 8px 0; flex: 1; }
.m-acc-item { border-bottom: 1px solid var(--pc-border); }
.m-acc-head {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; padding: 15px 18px; font-size: 16px; font-weight: 500; color: var(--pc-text);
  font-family: inherit; cursor: pointer; text-align: left;
}
.m-acc-head .bi { transition: transform .2s; font-size: 13px; color: var(--pc-text-light); }
.m-acc-item.is-open .m-acc-head .bi { transform: rotate(180deg); }
.m-acc-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; background: var(--pc-light-gray); }
.m-acc-item.is-open .m-acc-panel { max-height: 1200px; }
.m-acc-panel a { display: block; padding: 11px 30px; color: var(--pc-text); font-size: 15px; }
.m-acc-panel a:hover { color: var(--pc-cta); }
.m-acc-link { display: block; padding: 15px 18px; font-size: 16px; font-weight: 500; color: var(--pc-text); }
.mobile-nav-foot { padding: 18px; border-top: 1px solid var(--pc-border); display: flex; flex-direction: column; gap: 12px; }
.mobile-nav-foot .header-phone a { color: var(--pc-dark); }
.mobile-backdrop { position: fixed; inset: 0; background: rgba(10,22,40,.5); z-index: 1055; opacity: 0; visibility: hidden; transition: opacity .3s; }
.mobile-backdrop.is-open { opacity: 1; visibility: visible; }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.site-footer { background: var(--pc-dark); color: rgba(255,255,255,.7); padding-top: 64px; }
.site-footer h4 { color: #fff; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: 15px; }
.footer-col a:hover { color: var(--pc-cta); }
.footer-brand img { height: 40px; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; line-height: 1.6; max-width: 280px; }
.footer-contacts a { color: #fff; }
.footer-phone { font-size: 20px; font-weight: 700; color: #fff !important; display: block; margin-bottom: 6px; }
.footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.footer-socials a {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 19px;
}
.footer-socials a:hover { background: var(--pc-cta); }
.footer-bottom {
  margin-top: 56px; border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 14px;
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.7); }
.footer-bottom-links a:hover { color: var(--pc-cta); }

/* кнопка наверх */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 1020;
  width: 48px; height: 48px; border-radius: var(--pc-radius); background: var(--pc-dark);
  color: #fff; border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer; opacity: 0; visibility: hidden; transition: all .3s; box-shadow: var(--pc-shadow);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--pc-cta); color: #fff; }

/* =========================================================
   ОБЩИЕ КОМПОНЕНТЫ
   ========================================================= */
/* Breadcrumbs */
.pc-breadcrumbs { font-size: 14px; padding: 16px 0; }
.pc-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; align-items: center; }
.pc-breadcrumbs li { display: flex; align-items: center; gap: 8px; color: var(--pc-text-light); }
.pc-breadcrumbs li:not(:last-child)::after { content: "\F285"; font-family: "bootstrap-icons"; font-size: 11px; opacity: .5; }
.pc-breadcrumbs a { color: var(--pc-text-light); }
.pc-breadcrumbs a:hover { color: var(--pc-cta); }
.pc-breadcrumbs .current { color: var(--pc-text); font-weight: 500; }
.bg-dark-pc .pc-breadcrumbs li, .hero-dark .pc-breadcrumbs li,
.bg-dark-pc .pc-breadcrumbs a, .hero-dark .pc-breadcrumbs a { color: rgba(255,255,255,.6); }
.bg-dark-pc .pc-breadcrumbs .current, .hero-dark .pc-breadcrumbs .current { color: #fff; }

/* Карточка */
.card-pc {
  background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius-lg);
  overflow: hidden; height: 100%; transition: all .25s ease; display: flex; flex-direction: column;
}
.card-pc:hover { box-shadow: var(--pc-shadow-lg); transform: translateY(-4px); border-color: transparent; }
.card-pc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-pc-body h3 { font-size: 20px; margin-bottom: 8px; }
.card-pc-body p { color: var(--pc-text-light); font-size: 15.5px; margin-bottom: 16px; }
.card-pc-body .btn { margin-top: auto; align-self: flex-start; }

/* Hero */
.hero-dark {
  background: var(--pc-dark);
  background-image:
    radial-gradient(circle at 85% 15%, rgba(0,160,227,.16), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(229,9,127,.12), transparent 45%);
  color: #fff; position: relative; overflow: hidden;
}
.hero-home { padding: 84px 0 90px; }
.hero-inner { padding: 60px 0 64px; }
.hero-dark h1 { color: #fff; }
.hero-dark .lead { color: rgba(255,255,255,.74); }
.hero-quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-quick-links a {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 100px; color: #fff; font-size: 14.5px; background: rgba(255,255,255,.05);
}
.hero-quick-links a:hover { background: var(--pc-cta); border-color: var(--pc-cta); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Сетка категорий (главная) */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-tile {
  display: flex; flex-direction: column; gap: 12px; padding: 26px 18px; text-align: center; align-items: center;
  background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius-lg); color: var(--pc-text);
  transition: all .25s; height: 100%;
}
.cat-tile .cat-ico {
  width: 64px; height: 64px; border-radius: var(--pc-radius); background: var(--pc-light-gray);
  display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--pc-cyan); transition: all .25s;
}
.cat-tile h3 { font-size: 17px; margin: 0; }
.cat-tile p { font-size: 13.5px; color: var(--pc-text-light); margin: 0; }
.cat-tile:hover { border-color: transparent; box-shadow: var(--pc-shadow-lg); transform: translateY(-5px); color: var(--pc-dark); }
.cat-tile:hover .cat-ico { background: var(--pc-cta); color: #fff; }

/* Преимущества */
.feature-card { text-align: center; padding: 16px; }
.feature-card .feature-ico { font-size: 46px; color: var(--pc-cta); margin-bottom: 16px; line-height: 1; }
.feature-card h3 { font-size: 20px; margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--pc-text-light); margin: 0; }

/* Ниши */
.niche-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.niche-tile {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--pc-dark-soft); border: 1px solid rgba(255,255,255,.08); border-radius: var(--pc-radius);
  color: #fff; transition: all .2s;
}
.niche-tile i { font-size: 26px; color: var(--pc-cyan); flex-shrink: 0; }
.niche-tile span { font-size: 15.5px; font-weight: 500; }
.niche-tile:hover { background: var(--pc-cta); border-color: var(--pc-cta); color: #fff; transform: translateY(-3px); }
.niche-tile:hover i { color: #fff; }

/* Как мы работаем */
.step-card { padding: 8px; }
.step-num { font-size: 56px; font-weight: 700; color: var(--pc-border); line-height: 1; margin-bottom: 8px; }
.step-card .step-ico { font-size: 30px; color: var(--pc-cta); margin-bottom: 14px; }
.step-card h3 { font-size: 19px; margin-bottom: 8px; }
.step-card p { font-size: 15px; color: var(--pc-text-light); margin: 0; }
.bg-dark-pc .step-num { color: rgba(255,255,255,.18); }
.bg-dark-pc .step-card p { color: rgba(255,255,255,.65); }

/* Звёзды рейтинга (CSS) */
.stars { display: inline-flex; gap: 2px; color: #FFB400; font-size: 16px; }
.stars .bi { line-height: 1; }
.rating-big { display: inline-flex; align-items: center; gap: 14px; }
.rating-big .rating-num { font-size: 42px; font-weight: 700; color: var(--pc-dark); line-height: 1; }
.bg-dark-pc .rating-big .rating-num, .bg-gray-pc .rating-big .rating-num { }

/* Отзыв */
.review-card { background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius-lg); padding: 26px; height: 100%; }
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.review-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--pc-dark); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px; flex-shrink: 0;
}
.review-meta strong { display: block; font-size: 16px; color: var(--pc-dark); }
.review-meta span { font-size: 13.5px; color: var(--pc-text-light); }
.review-card p { font-size: 15.5px; line-height: 1.6; color: var(--pc-text); }
.review-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 13px; color: var(--pc-text-light); }
.review-source { display: inline-flex; align-items: center; gap: 6px; }

/* Карточка офиса */
.office-card { background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius-lg); padding: 26px; height: 100%; }
.office-card h3 { font-size: 21px; margin-bottom: 14px; }
.office-card .office-row { display: flex; gap: 11px; margin-bottom: 11px; font-size: 15px; color: var(--pc-text); }
.office-card .office-row i { color: var(--pc-cta); font-size: 17px; flex-shrink: 0; margin-top: 3px; }
.office-card a { font-weight: 500; }

/* Формы */
.form-control, .form-select {
  border: 1px solid var(--pc-border); border-radius: var(--pc-radius); padding: 12px 15px;
  font-size: 16px; font-family: inherit; min-height: 48px;
}
.form-control:focus, .form-select:focus { border-color: var(--pc-cta); box-shadow: 0 0 0 3px rgba(255,107,26,.15); }
.form-label { font-weight: 500; font-size: 15px; margin-bottom: 6px; color: var(--pc-text); }
.form-card {
  background: #fff; border-radius: var(--pc-radius-lg); padding: 36px; box-shadow: var(--pc-shadow-lg); color: var(--pc-text);
}
.form-card label, .form-card .form-label { color: var(--pc-text); }
.form-note { font-size: 13px; color: var(--pc-text-light); }
.file-drop {
  border: 2px dashed var(--pc-border); border-radius: var(--pc-radius); padding: 18px; text-align: center;
  color: var(--pc-text-light); font-size: 14.5px; cursor: pointer; transition: all .2s;
}
.file-drop:hover { border-color: var(--pc-cta); color: var(--pc-cta); }

/* Состояние "успех" формы */
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.is-shown { display: block; }
.form-success .bi { font-size: 54px; color: #28a745; margin-bottom: 14px; }
.is-submitted .form-fields { display: none; }
.is-submitted .form-success { display: block; }

/* Chip-фильтры */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 18px; border-radius: 100px; border: 1px solid var(--pc-border); background: #fff;
  font-size: 14.5px; font-weight: 500; color: var(--pc-text); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--pc-dark); }
.chip.is-active { background: var(--pc-dark); color: #fff; border-color: var(--pc-dark); }

/* Бейджи / метки */
.tag-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 100px; background: rgba(0,160,227,.1); color: var(--pc-cyan); }
.date-pill { font-size: 13.5px; color: var(--pc-text-light); }

/* Внутренний hero */
.page-hero { padding: 52px 0 56px; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { max-width: 720px; }

/* Аккордеон FAQ */
.faq-item { border-bottom: 1px solid var(--pc-border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  background: none; border: none; padding: 22px 4px; font-size: 18px; font-weight: 500; color: var(--pc-dark);
  text-align: left; cursor: pointer; font-family: inherit;
}
.faq-q .bi { color: var(--pc-cta); transition: transform .25s; flex-shrink: 0; }
.faq-item.is-open .faq-q .bi { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.is-open .faq-a { max-height: 500px; }
.faq-a p { padding: 0 4px 22px; color: var(--pc-text-light); font-size: 16px; margin: 0; }

/* Иконка-список (что делаем) */
.icon-feature { display: flex; gap: 18px; }
.icon-feature .if-ico {
  width: 56px; height: 56px; border-radius: var(--pc-radius); background: rgba(0,160,227,.1); color: var(--pc-cyan);
  display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
}
.icon-feature h3 { font-size: 19px; margin-bottom: 6px; }
.icon-feature p { font-size: 15px; color: var(--pc-text-light); margin: 0; }

/* Stat / цифры */
.stat-num { font-size: clamp(36px, 5vw, 54px); font-weight: 700; color: var(--pc-cta); line-height: 1; }
.stat-label { font-size: 15px; color: var(--pc-text-light); margin-top: 6px; }
.bg-dark-pc .stat-label { color: rgba(255,255,255,.6); }

/* Timeline */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--pc-border); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item::before { content: ""; position: absolute; left: -32px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--pc-cta); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--pc-border); }
.timeline-item .tl-year { font-size: 15px; font-weight: 700; color: var(--pc-cta); }
.timeline-item h3 { font-size: 19px; margin: 4px 0 6px; }
.timeline-item p { font-size: 15px; color: var(--pc-text-light); margin: 0; }

/* Горизонтальный скролл-ряд */
.scroller { position: relative; }
.scroller-track { display: flex; gap: 24px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: thin; }
.scroller-track > * { flex: 0 0 360px; max-width: 360px; }
.scroller-track::-webkit-scrollbar { height: 6px; }
.scroller-track::-webkit-scrollbar-thumb { background: var(--pc-border); border-radius: 100px; }
.scroller-btns { display: flex; gap: 10px; }
.scroller-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--pc-border); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; color: var(--pc-dark); transition: all .2s;
}
.scroller-btn:hover { background: var(--pc-dark); color: #fff; border-color: var(--pc-dark); }

/* overlay для портфолио */
.album-card { position: relative; border-radius: var(--pc-radius-lg); overflow: hidden; display: block; }
.album-card .album-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,.85), transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff;
  opacity: 0; transition: opacity .3s;
}
.album-card:hover .album-overlay { opacity: 1; }
.album-card .album-overlay h3 { color: #fff; margin: 0 0 4px; font-size: 20px; }
.album-card .album-overlay span { font-size: 14px; opacity: .85; }

/* =========================================================
   АДАПТИВНОСТЬ
   ========================================================= */

/* Планшет и ниже: компактнее */
@media (max-width: 1199px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .megamenu { width: calc(100vw - 32px); }
}

/* Точка переключения на мобильную навигацию */
@media (max-width: 991px) {
  :root { --pc-section-pad: 56px; }
  .header-contacts .header-email,
  .callback-link span,
  .city-btn span { display: none; }
  .header-main .container { min-height: 70px; gap: 16px; }
  .main-menu, .nav-search, .catalog-btn { display: none; }
  .header-nav .container { min-height: 0; }
  .header-nav { display: none; }
  .burger { display: inline-flex; }
  .mobile-call-fab { display: inline-flex; }
  .niche-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  :root { --pc-section-pad: 48px; }
  body { font-size: 16px; }
  .topbar-text { font-size: 12px; padding: 0 30px; }
  .header-contacts { gap: 14px; }
  .header-phone a { font-size: 17px; }
  .city-btn { font-size: 0; }
  .city-btn i:first-child { font-size: 18px; }
  .city-btn .bi-chevron-down { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .niche-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-card { padding: 24px 20px; }
  .scroller-track > * { flex-basis: 280px; }
  .to-top { display: none; }
}

@media (max-width: 400px) {
  .cat-grid { grid-template-columns: 1fr; }
  .header-phone { display: none; }
}

/* печать/доступность: уважаем reduce-motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   ДАШБОРД (preview.html)
   ========================================================= */
.dash { background: var(--pc-dark); color: #fff; min-height: 100vh; }
.dash-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.1); flex-wrap: wrap;
}
.dash-header .dash-brand { display: flex; align-items: center; gap: 14px; }
.dash-header img { height: 34px; }
.dash-badge { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--pc-cta); border: 1px solid var(--pc-cta); border-radius: 100px; padding: 4px 12px; }
.dash-hero { padding: 56px 0 40px; }
.dash-hero h1 { color: #fff; }
.dash-hero .lead { color: rgba(255,255,255,.7); }
.dash-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 28px; }
.dash-stats .ds-num { font-size: 38px; font-weight: 700; color: var(--pc-cta); line-height: 1; }
.dash-stats .ds-label { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 4px; }
.dash-section-title { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 48px 0 20px; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dash-card {
  background: var(--pc-dark-soft); border: 1px solid rgba(255,255,255,.08); border-radius: var(--pc-radius-lg);
  overflow: hidden; transition: all .25s; display: flex; flex-direction: column; color: #fff;
}
.dash-card:hover { transform: translateY(-5px); border-color: var(--pc-cta); box-shadow: 0 20px 50px rgba(0,0,0,.4); color: #fff; }
.dash-card-preview { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; position: relative; }
.dash-card-preview i { font-size: 44px; color: rgba(255,255,255,.9); }
.dash-card-preview .dc-tag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; background: rgba(10,22,40,.55); color: #fff; padding: 3px 10px; border-radius: 100px; }
.dash-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.dash-card-body h3 { font-size: 17px; color: #fff; margin-bottom: 6px; }
.dash-card-body p { font-size: 13.5px; color: rgba(255,255,255,.6); margin: 0 0 14px; flex: 1; }
.dc-status { font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.dc-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.dc-status.is-done { color: #4ade80; }
.dc-status.is-done::before { background: #4ade80; }
.dc-status.is-wip { color: #fbbf24; }
.dc-status.is-wip::before { background: #fbbf24; }
/* градиенты превью */
.g-blue { background: linear-gradient(135deg, #00A0E3, #0A1628); }
.g-orange { background: linear-gradient(135deg, #FF6B1A, #B23C00); }
.g-magenta { background: linear-gradient(135deg, #E5097F, #4A0029); }
.g-green { background: linear-gradient(135deg, #18a558, #0A3D2C); }
.g-purple { background: linear-gradient(135deg, #6d5dfc, #1E1655); }
.g-teal { background: linear-gradient(135deg, #0bb4aa, #06322F); }
.g-slate { background: linear-gradient(135deg, #475569, #1E293B); }
.g-yellow { background: linear-gradient(135deg, #d4a017, #4A3800); }

@media (max-width: 991px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .dash-grid { grid-template-columns: 1fr; } }
