/* ==========================================================================
   31-beton.ru — общий стиль сайта (mobile-first)
   Палитра: «небо и серебро» — оттенки голубого неба + серебристо-серый,
   без красного. Дружелюбные скруглённые формы, мягкие тени, единый
   набор иконок только по теме сайта (доставка, цена, оплата, звонок).
   ========================================================================== */

:root {
  --color-bg: #f2f6fa;
  --color-bg-deep: #e7eef6;
  --color-surface: #ffffff;
  --color-text: #26313d;
  --color-text-muted: #67717e;
  --color-primary: #1f6fb4;
  --color-primary-dark: #154d80;
  --color-accent: #3b93d9;
  --color-accent-dark: #2678b8;
  --color-silver: #aab5c0;
  --color-silver-light: #e9edf1;
  --color-highlight-bg: #e8f3fc;
  --color-highlight-text: #154d80;
  --color-border: #dde3e9;
  --color-success: #1f9d55;
  --color-warning: #b5651d;
  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 26px;
  --shadow-s: 0 4px 14px rgba(31, 111, 180, 0.10);
  --shadow-m: 0 18px 44px rgba(21, 77, 128, 0.20);
  --container: 1180px;
  /* Высота залипающей шапки. Точное значение проставляет site.js:
     на десктопе в неё входит и строка меню, поэтому она «липнет» вместе с логотипом. */
  --header-h: 104px;
  --header-bar-h: 104px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--color-bg);
  background-image: linear-gradient(180deg, #ffffff 0, var(--color-bg) 340px);
  background-repeat: no-repeat;
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

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

a {
  color: inherit;
  text-decoration: none;
}

a[href^="tel:"] {
  font-weight: 800;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(27px, 6.5vw, 40px); }
h2 { font-size: clamp(23px, 5.5vw, 29px); margin-top: 42px; }
h3 { font-size: clamp(19px, 4.5vw, 22px); margin-top: 24px; }

/* Акцентная черта над заголовками разделов в контенте */
.content > h2 {
  padding-top: 14px;
  position: relative;
}
/* Первый заголовок идёт сразу за хлебными крошками — большой отступ не нужен */
.content > h2:first-child { margin-top: 0; }

.content > h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-silver));
}

p { margin: 0 0 14px; }

/* Якоря не должны прятаться под фиксированную шапку */
[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 32px 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Иконки-значки (единый стиль: круг + белая линия) ---- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-accent), var(--color-primary-dark));
  color: #fff;
  margin-bottom: 12px;
  flex: none;
  box-shadow: 0 6px 16px rgba(31, 111, 180, 0.28);
}
.icon-badge svg { width: 30px; height: 30px; }

/* Светлый вариант — для плотных списков */
.icon-badge--soft {
  background: var(--color-highlight-bg);
  color: var(--color-primary);
  box-shadow: none;
}
.icon-badge--sm {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  border-radius: var(--radius-s);
}
.icon-badge--sm svg { width: 22px; height: 22px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: var(--radius-s);
  border: 2px solid transparent;
  font-size: 17px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn svg { flex: none; width: 20px; height: 20px; }

.btn--primary {
  background: linear-gradient(160deg, var(--color-accent), var(--color-primary));
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 111, 180, 0.28);
}
.btn--primary:hover {
  background: linear-gradient(160deg, var(--color-accent-dark), var(--color-primary-dark));
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(21, 77, 128, 0.30);
}

.btn--outline {
  background: #fff;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-highlight-bg); }

.btn--light {
  background: #fff;
  color: var(--color-primary);
}

.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-s);
}

.site-header__bar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex: none;
}
/* Логотип с прозрачным фоном — ложится прямо на фон шапки */
.site-header__logo img {
  height: 60px;
  width: auto;
  max-width: 56vw;
  object-fit: contain;
}

.site-header__phones {
  display: none;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; }
.header-phone svg { flex: none; }
.header-phone:hover { color: var(--color-accent); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--color-accent), var(--color-primary));
  color: #fff;
  box-shadow: 0 6px 14px rgba(31, 111, 180, 0.28);
}

.burger {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius-s);
  background: var(--color-silver-light);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }

.site-header__strip {
  background: var(--color-highlight-bg);
  color: var(--color-highlight-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  text-align: center;
  padding: 6px 10px;
}

/* ---- Nav (off-canvas on mobile) ---- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 35, 55, 0.45);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-nav {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(300px, 84vw);
  background: var(--color-surface);
  color: var(--color-primary);
  z-index: 700;
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
  padding: 18px 0 30px;
  box-shadow: var(--shadow-m);
}
.site-nav.is-open {
  transform: translateX(0);
}

.site-nav__close {
  width: 40px;
  height: 40px;
  margin: 0 12px 8px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: none;
  color: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
}

.site-nav__list a {
  display: block;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
}
.site-nav__list a.is-active {
  color: var(--color-accent);
}

.site-nav__phones {
  margin-top: 18px;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-nav__phones a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
  font-size: 14px;
  color: var(--color-text-muted);
  padding: 14px 0 0;
  margin-bottom: 4px;
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-accent); }

/* ==========================================================================
   Hero / banner
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #e8f2fb 0%, #ffffff 100%);
  color: var(--color-text);
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--color-border);
}
.hero__grid {
  position: relative;
  display: grid;
  gap: 22px;
}
.hero__media {
  position: relative;
}
.hero__media::before {
  content: "";
  position: absolute;
  top: -18px; left: -18px; right: -18px; bottom: -18px;
  background: radial-gradient(circle at 30% 20%, rgba(59,147,217,0.18), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(170,181,192,0.28), transparent 55%);
  border-radius: var(--radius-l);
  z-index: 0;
}
.hero__media img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-m);
  width: 100%;
  object-fit: cover;
  max-height: 260px;
  box-shadow: var(--shadow-s);
}
/* Инфографика в первом экране показывается целиком, без обрезки по высоте */
.hero .hero__media--fit img {
  max-height: none;
  height: auto;
  object-fit: contain;
}

/* Клик по инфографике открывает её в полном размере */
.hero__zoom-link {
  position: relative;
  display: block;
  z-index: 1;
}
.hero__zoom {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(21, 77, 128, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-s);
  transition: background-color .15s ease;
}
.hero__zoom svg { width: 15px; height: 15px; flex: none; }
.hero__zoom-link:hover .hero__zoom { background: var(--color-accent); }

/* На телефоне подпись выносим под картинку, чтобы не перекрывать её */
@media (max-width: 600px) {
  .hero__zoom {
    position: static;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    padding: 0;
    background: none;
    box-shadow: none;
    color: var(--color-primary);
    font-size: 14px;
  }
}

.hero h1 { color: var(--color-primary-dark); }
.hero p { color: var(--color-text-muted); }
.hero__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 20px;
}
.hero__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}
.hero__list li::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
  flex: none;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Чипы доверия (ГОСТ / доставка / оплата) ---- */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}
.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-s);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.trust-chips svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--color-accent);
}

/* ==========================================================================
   Cards / advantages
   ========================================================================== */
.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.card {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 20px;
  box-shadow: var(--shadow-s);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-silver));
  opacity: 0;
  transition: opacity .15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  border-color: #cfe0ef;
}
.card:hover::before { opacity: 1; }
.card img { width: 64px; height: 64px; margin-bottom: 12px; }
/* Фото марок бетона в карточках «Назначение марок» */
.card .marka-photo {
  width: 100%;
  height: auto;
  margin: -4px 0 14px;
  border-radius: var(--radius-s);
  background: #fff;
}
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--color-text-muted); font-size: 15.5px; }
.card p a[href^="tel:"] { color: var(--color-primary); }
.card p a[href^="mailto:"] { color: var(--color-primary); font-weight: 700; }

/* ==========================================================================
   Price tables
   ========================================================================== */
.price-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 16px;
  margin-bottom: 20px;
}
.price-block__title {
  margin: 0 0 4px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-block__title svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--color-accent);
}
.price-block__note {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-s);
  border: 1px solid var(--color-border);
}
.table-hint {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 8px 2px 0;
  text-align: center;
}
/* Подсказку о горизонтальной прокрутке показываем, только если она нужна */
.table-hint.is-hidden { display: none; }

table.price-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 15.5px;
}
/* Узкие таблицы «марка — цена» помещаются на телефон без прокрутки */
table.price-table--compact { min-width: 0; }

table.price-table th,
table.price-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  vertical-align: middle;
}
table.price-table tbody tr:last-child td { border-bottom: none; }
table.price-table th {
  background: linear-gradient(180deg, #f4f7fa, var(--color-silver-light));
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
  border-bottom: 2px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 2;
}
table.price-table td:first-child,
table.price-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  white-space: normal;
  min-width: 180px;
  font-weight: 600;
}
table.price-table th:first-child {
  background: var(--color-silver-light);
  z-index: 3;
}
table.price-table tbody tr:nth-child(even) td { background: #fbfcfd; }
table.price-table tbody tr:nth-child(even) td:first-child { background: #fafbfc; }
table.price-table tbody tr:hover td { background: #eef7ff; }
table.price-table tbody tr:hover td:first-child { background: #e6f2fd; }
table.price-table td.price,
table.price-table th.price-col {
  font-weight: 800;
  color: var(--color-primary);
  text-align: center;
}
table.price-table td.price { min-width: 118px; }
table.price-table td.dash {
  color: var(--color-silver);
  text-align: center;
}
.price__value {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ---- Маленькая кнопка «Заказать» в ячейке с ценой ---- */
.order-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  max-width: 168px;
  margin-top: 7px;
  padding: 6px 10px;
  min-height: 32px;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  background: var(--color-highlight-bg);
  color: var(--color-primary-dark);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
  touch-action: manipulation;
}
.order-mini::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--icon-cart) center / contain no-repeat;
  mask: var(--icon-cart) center / contain no-repeat;
}
.order-mini:hover {
  background: linear-gradient(160deg, var(--color-accent), var(--color-primary));
  color: #fff;
  box-shadow: 0 6px 14px rgba(31, 111, 180, 0.28);
}
.order-mini:active { transform: scale(0.97); }

/* Иконка корзины для .order-mini (инлайн-SVG в data URI, без внешних запросов) */
:root {
  --icon-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h2.2l2.4 12.2a2 2 0 0 0 2 1.6h8.8a2 2 0 0 0 2-1.6L21 7H5.2'/%3E%3Ccircle cx='9.5' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3C/svg%3E");
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}
.services-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  box-shadow: var(--shadow-s);
  font-size: 15.5px;
  transition: border-color .15s ease, transform .15s ease;
}
.services-list li:hover { border-color: #cfe0ef; transform: translateY(-2px); }
.services-list li b { color: var(--color-primary); }

/* ==========================================================================
   Contacts block
   ========================================================================== */
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 20px;
  margin-bottom: 20px;
}
.contact-card dl {
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
/* Реквизиты слева, карточка мессенджеров — в свободной части справа */
@media (min-width: 801px) {
  .contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
  }
}

/* Статичная карточка «Мы на связи в мессенджерах» на странице контактов */
.messenger-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 18px;
  margin-top: 20px;
}
.messenger-card__title {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--color-primary-dark);
}
.messenger-card__subtitle {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--color-text-muted);
}
.messenger-card .widget-qr {
  background: #fff;
  margin-bottom: 12px;
}
.messenger-card .widget-btn {
  justify-content: center;
  min-height: 50px;
  font-size: 16px;
}
.messenger-card .widget-btn--max {
  background: linear-gradient(160deg, var(--color-accent), var(--color-primary));
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-s);
}
.messenger-card .widget-btn--max:hover {
  background: linear-gradient(160deg, var(--color-accent-dark), var(--color-primary-dark));
}
@media (min-width: 801px) {
  .messenger-card { margin-top: 0; }
}
.contact-card dt {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.contact-card dt svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--color-accent);
}
.contact-card dd {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
}
.contact-card dd a[href^="mailto:"] { font-size: 18px; }
.contact-card dd a[href^="tel:"] {
  color: var(--color-primary);
  font-size: 20px;
  line-height: 1.7;
}
.contact-card dd a[href^="mailto:"] { color: var(--color-primary); font-weight: 700; }
.map-embed {
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  border: 1px solid var(--color-border);
}
.map-embed img { width: 100%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  background-image: linear-gradient(180deg, #1a5a94 0, var(--color-primary-dark) 100%);
  color: rgba(255,255,255,0.85);
  padding: 34px 0 18px;
  margin-top: 40px;
  font-size: 15px;
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
/* Полный логотип с девизом — в подвале, где ему хватает места */
.footer-brand {
  margin-bottom: 26px;
}
.footer-brand img {
  width: 100%;
  max-width: 280px;
}

.footer-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
.footer-grid a { color: rgba(255,255,255,0.75); }
.footer-grid a:hover { color: #a9d6f7; }
.footer-grid a[href^="tel:"] {
  color: #fff;
  font-size: 18px;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 26px;
  padding-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }

/* ==========================================================================
   Floating messenger widget
   ========================================================================== */
.widget-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--color-accent), var(--color-primary));
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-m);
  cursor: pointer;
  z-index: 800;
}
.widget-fab svg { width: 28px; height: 28px; }
.widget-fab .icon-close { display: none; }
.widget-fab.is-open .icon-chat { display: none; }
.widget-fab.is-open .icon-close { display: block; }

.widget-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 35, 55, 0.4);
  z-index: 850;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.widget-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.widget-panel {
  position: fixed;
  right: 18px;
  bottom: 90px;
  width: 348px;
  max-width: calc(100vw - 36px);
  background: var(--color-surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  z-index: 900;
  padding: 18px;
  transform: translateY(16px) scale(.97);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}
.widget-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.widget-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.widget-panel__title {
  margin: 0 0 4px;
  font-size: 17px;
}
.widget-panel__subtitle {
  margin: 0;
  font-size: 13.5px;
  color: var(--color-text-muted);
}
.widget-panel__close {
  width: 30px; height: 30px;
  border: none;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text-muted);
  flex: none;
  cursor: pointer;
}

.widget-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: var(--color-bg);
  border-radius: var(--radius-s);
  padding: 16px;
  margin-bottom: 12px;
}
.widget-qr img {
  width: 150px; height: 150px;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  box-shadow: var(--shadow-s);
}
.widget-qr span {
  font-size: 13.5px;
  color: var(--color-text-muted);
  max-width: 260px;
}

.widget-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.widget-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
}
.widget-btn svg { flex: none; width: 20px; height: 20px; }
.widget-btn--max { background: var(--color-silver); color: #fff; border-color: var(--color-silver); }
.widget-btn--order { background: linear-gradient(160deg, var(--color-accent), var(--color-primary)); color: #fff; border-color: var(--color-accent); }

.widget-panel__call {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  text-align: center;
}
.widget-panel__call p {
  margin: 0 0 4px;
  font-size: 13.5px;
  color: var(--color-text-muted);
}
.widget-panel__call a {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
}

@media (max-width: 600px) {
  .widget-panel {
    left: 0; right: 0; bottom: 0;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    padding-bottom: 26px;
  }
  .widget-panel.is-open {
    transform: translateY(0);
  }
  .widget-fab {
    right: 14px;
    bottom: 14px;
  }
  .widget-qr img { width: 168px; height: 168px; }
}

/* ==========================================================================
   Просмотр изображения крупным планом (таблица марок бетона)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 940;
  background: rgba(10, 25, 40, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__inner {
  position: relative;
  width: min(1120px, 100%);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-s);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox__close:hover { background: #fff; }
.lightbox__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: var(--radius-m);
}
.lightbox__body img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
.lightbox__hint {
  display: none;
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.lightbox__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 560px) {
  .lightbox__actions { grid-template-columns: 1fr 1fr; }
}
/* На узких экранах показываем картинку крупнее ширины экрана и даём её двигать */
@media (max-width: 800px) {
  .lightbox__body img { width: 900px; }
  .lightbox__hint { display: block; }
}

/* ==========================================================================
   Order modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 35, 55, 0.5);
  z-index: 950;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--color-surface);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  padding: 22px 18px 26px;
  transform: translateY(40px);
  transition: transform .25s ease;
}
.modal-overlay.is-open .modal {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 20px; }
  .modal { border-radius: var(--radius-l); }
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.modal__head h2 { margin: 0; font-size: 21px; }
.modal__close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  flex: none;
}

.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-s);
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 147, 217, 0.18);
}
.form-group textarea { resize: vertical; min-height: 70px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 480px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.form-consent input { margin-top: 3px; flex: none; }
.form-consent a { color: var(--color-primary); text-decoration: underline; }

.form-status {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  display: none;
}
.form-status.is-success {
  display: block;
  background: rgba(31,157,85,0.12);
  color: var(--color-success);
}
.form-status.is-error {
  display: block;
  background: rgba(181,101,29,0.12);
  color: var(--color-warning);
}

/* ==========================================================================
   Content page basics
   ========================================================================== */
.content { padding: 24px 0 8px; }
.content strong { color: var(--color-primary); }

.working-hours {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.working-hours h4 { margin-bottom: 4px; }
.working-hours p { margin: 0; color: var(--color-text-muted); font-size: 15px; }

.legal h2 { font-size: 20px; }
.legal p, .legal li { color: var(--color-text-muted); font-size: 15.5px; }
.legal ol, .legal ul { padding-left: 20px; list-style: revert; margin-bottom: 14px; }

/* ==========================================================================
   Tablet / desktop
   ========================================================================== */
@media (min-width: 801px) {
  :root { --header-h: 206px; --header-bar-h: 156px; }

  /* В верхней части страницы логотип крупный — читаются и надписи на нём.
     После прокрутки шапка сжимается (класс is-compact ставит site.js),
     чтобы залипающая строка меню не съедала экран. */
  .site-header__bar { height: 156px; }
  .site-header { box-shadow: none; }

  .site-header__logo img { height: 132px; max-width: none; }

  .site-header.is-compact .site-header__bar { height: 76px; }
  .site-header.is-compact .site-header__logo img { height: 56px; }

  .footer-brand img { max-width: 340px; }

  .site-header__phones {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 18px;
  }

  .header-call-btn { display: none; }

  .burger { display: none; }

  /* Меню на десктопе — отдельная строка под шапкой, залипает вместе с логотипом */
  .site-nav {
    position: fixed;
    top: var(--header-bar-h);
    left: 0;
    right: 0;
    height: auto;
    width: auto;
    z-index: 490;
    background: var(--color-surface);
    color: var(--color-primary);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-s);
    transform: none;
    overflow: visible;
    padding: 0;
  }
  .site-nav__close, .site-nav__phones { display: none; }
  /* Выравниваем пункты по той же сетке, что и логотип в шапке */
  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 6px 16px;
  }
  .site-nav__list a {
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-s);
    font-size: 15px;
  }
  .site-nav__list a:hover,
  .site-nav__list a.is-active {
    background: rgba(31,111,180,0.10);
    color: var(--color-accent);
  }
  .nav-overlay { display: none; }

  .hero__grid {
    grid-template-columns: 380px 1fr;
    align-items: center;
  }
  .hero__media img { max-height: 320px; height: 100%; }
  .hero__cta { flex-direction: row; }

  /* Страница «Марки бетона»: под инфографику отдаём больше места,
     чтобы подписи на синих плашках читались без увеличения */
  .hero--banner .hero__grid { grid-template-columns: minmax(0, 520px) 1fr; }

  .cards { grid-template-columns: repeat(3, 1fr); }

  .services-list { display: grid; grid-template-columns: repeat(2, 1fr); }

  .price-block { padding: 20px; }

  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1100px) {
  .hero--banner .hero__grid { grid-template-columns: minmax(0, 700px) 1fr; }
}

@media (min-width: 1024px) {
  .content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
  }
}

/* Мелкие телефоны: ужимаем плотную таблицу цен */
@media (max-width: 400px) {
  body { font-size: 16px; }
  table.price-table { font-size: 14.5px; }
  table.price-table th,
  table.price-table td { padding: 9px 9px; }
  table.price-table td:first-child,
  table.price-table th:first-child { min-width: 150px; }
  .price__value { font-size: 16px; }
}

/* ==========================================================================
   Доступность и печать
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  body { padding-top: 0; background: #fff; }
  .site-header, .site-nav, .nav-overlay, .widget-fab, .widget-panel,
  .widget-overlay, .modal-overlay, .order-mini, .site-footer, .hero__media,
  .btn, .table-hint { display: none !important; }
  .table-scroll { overflow: visible; border: none; }
  table.price-table { min-width: 0; font-size: 12px; }
  table.price-table th { position: static; }
  table.price-table td:first-child,
  table.price-table th:first-child { position: static; }
  .price-block, .card, .services-list li { box-shadow: none; break-inside: avoid; }
}
