:root {
  --navy: #1B3D72;
  --navy-dark: #12294f;
  --blue: #3574D4;
  --blue-dark: #2A5FC0;
  --ink: #1c2530;
  --muted: #5b6572;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-muted: #f5f7fb;
  --accent: #F2A93B;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(18, 41, 79, 0.08);
  --container: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Topbar */
.topbar { background: var(--navy-dark); color: #cfe0ff; font-size: 13px; }
.topbar__row { display: flex; align-items: center; gap: 20px; height: 36px; overflow-x: auto; white-space: nowrap; }
.topbar__item { color: #cfe0ff; }
.topbar__whatsapp { margin-left: auto; color: #6bd08a; font-weight: 600; }
.topbar__hours { color: #93a9d1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-header__row { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--navy); }
.logo__mark { width: 30px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, var(--blue), var(--navy)); display: inline-block; }
.logo__image { height: 36px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.logo--footer { margin-bottom: 10px; color: #fff; }
.logo--footer .logo__image { height: 40px; }

.main-nav { display: none; gap: 22px; margin-left: 10px; }
.main-nav a { font-weight: 600; font-size: 14px; color: var(--ink); }
.main-nav a:hover { color: var(--blue); }
.btn.nav-cta { margin-left: auto; display: none; }
.burger { margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { width: 18px; height: 2px; background: var(--ink); display: block; }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .btn.nav-cta { display: inline-flex; }
  .burger { display: none; }
}

.main-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 16px 20px; box-shadow: var(--shadow); gap: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn--outline:hover { background: var(--bg-muted); }
.btn--outline-dark { border-color: var(--ink); color: var(--ink); }
.btn--accent { background: var(--accent); color: #3a2600; }
.btn--accent:hover { background: #e09a26; }
.btn--lg { padding: 14px 28px; font-size: 16px; }
.main-nav__accent { color: var(--blue-dark); }

/* Hero */
.hero { background: radial-gradient(circle at 80% 0%, #244a86, var(--navy) 60%); color: #fff; padding: 56px 0 64px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: 32px; }
.hero__subtitle { color: #cfe0ff; font-size: 16px; max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.hero .btn--outline { border-color: #fff; color: #fff; background: transparent; }
.hero .btn--outline:hover { background: rgba(255,255,255,.1); }
.hero__stats { display: flex; gap: 28px; margin-top: 20px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 20px; }
.hero__stats span { color: #93a9d1; font-size: 13px; }
.hero__art { display: none; }
.hero__art--photo { display: block; height: 220px; border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.hero__image { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.2fr 1fr; }
  .hero__art { display: block; height: 260px; position: relative; }
  .hero__art--photo { margin-top: 0; }
  .hero__block { position: absolute; left: 20%; width: 60%; height: 22%; border-radius: 4px; }
  .hero__block--1 { top: 20%; background: var(--blue); }
  .hero__block--2 { top: 42%; background: var(--blue-dark); }
  .hero__block--3 { top: 64%; background: #1F4A8A; }
}

/* Sections */
.section { padding: 56px 0; }
.section--muted { background: var(--bg-muted); }
.section__title { font-size: 26px; }
.section__title--sm { font-size: 20px; margin-top: 40px; }
.section__lead { color: var(--muted); max-width: 700px; margin-bottom: 28px; }

.cards-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { font-size: 17px; color: var(--navy); }
.card p { color: var(--muted); font-size: 14px; margin: 0; }

.about__text { color: var(--muted); max-width: 760px; margin-bottom: 22px; white-space: pre-line; }

/* Catalog */
.catalog-group { margin-bottom: 44px; }
.catalog-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.catalog-group__link {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: var(--bg-muted); color: var(--blue-dark); font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  transition: background .15s ease, border-color .15s ease;
}
.catalog-group__link:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.catalog-group__desc { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }

.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.product-grid--wide { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .15s ease; }
.product-card:hover { transform: translateY(-3px); }
.product-card img, .product-card__placeholder { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: linear-gradient(135deg, #d7e3fb, #eef2fb); }
.product-card__body { padding: 14px 16px; min-width: 0; }
.product-card__body h4 { font-size: 15px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card__meta { color: var(--muted); font-size: 12px; margin: 0 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.product-card__price { font-weight: 800; color: var(--navy); white-space: nowrap; flex-shrink: 0; }
.product-card__avail { color: #2c8a4b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; text-align: right; }

/* Price table */
.price-table-wrap { overflow-x: auto; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.price-table th, .price-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.price-table th { background: var(--bg-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.price-table td:first-child, .price-table th:first-child { white-space: normal; min-width: 220px; }

/* Filter chips */
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.chip--active { background: var(--navy); border-color: var(--navy); color: #fff; }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--blue); }

/* Product detail */
.product-detail { display: grid; gap: 30px; margin-bottom: 30px; }
.product-detail__media img, .product-detail__placeholder { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.product-detail__meta { color: var(--muted); font-size: 14px; margin: 2px 0; }
.product-detail__price-row { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.product-detail__price { font-size: 26px; font-weight: 800; color: var(--navy); }
.product-detail__desc { color: var(--muted); margin-bottom: 20px; }
@media (min-width: 760px) { .product-detail { grid-template-columns: 1fr 1fr; } }

/* Lead form */
.lead__grid { display: grid; gap: 34px; }
@media (min-width: 860px) { .lead__grid { grid-template-columns: 1fr 1fr; } }
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.lead-form label { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.lead-form label[hidden] { display: none; }
.lead-form input, .lead-form textarea { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--blue); }
.lead-form__consent { font-size: 12px; color: var(--muted); margin: 0; }
.lead-form__consent a { color: var(--blue); }
.lead-form__status { margin: 0; font-size: 14px; font-weight: 600; min-height: 1.2em; }
.lead-form__status.is-success { color: #2c8a4b; }
.lead-form__status.is-error { color: #c0392b; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.page-content { color: var(--muted); }
.page-content h2 { color: var(--navy); font-size: 20px; margin-top: 32px; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { color: var(--navy); font-size: 16px; margin-top: 20px; }
.page-content p { margin: 0 0 14px; }
.page-content ul { list-style: disc; padding-left: 22px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #cfe0ff; padding: 48px 0 0; }
.footer__grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding-bottom: 34px; }
.footer__title { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer__list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer__list a:hover { color: #fff; }
.footer__tagline { font-size: 13px; color: #93a9d1; max-width: 260px; }
.footer__social { color: #fff; font-weight: 600; font-size: 13px; }
.footer__requisites { font-size: 12px; color: #93a9d1; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 12px; color: #7f96c2; }

.fab-call {
  position: fixed; bottom: 90px; right: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 6px 18px rgba(53,116,212,.5); z-index: 90;
}
@media (min-width: 900px) { .fab-call { display: none; } }

.fab-whatsapp {
  position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(37,211,102,.5); z-index: 91;
  animation: fab-whatsapp-pulse 2.2s ease-out infinite;
}
.fab-whatsapp .icon-whatsapp { width: 28px; height: 28px; }
@keyframes fab-whatsapp-pulse {
  0% { box-shadow: 0 6px 18px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.6); }
  70% { box-shadow: 0 6px 18px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 6px 18px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) { .fab-whatsapp { animation: none; } }

/* Inline WhatsApp icon used next to "WhatsApp" text links */
.icon-whatsapp { width: 16px; height: 16px; flex-shrink: 0; }
.whatsapp-link { display: inline-flex; align-items: center; gap: 6px; }
.topbar__whatsapp { color: #6bd08a; }
.footer__list .whatsapp-link .icon-whatsapp { color: #6bd08a; }

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

/* Concrete promo block (homepage) */
.concrete-promo { background: linear-gradient(135deg, #2b2116, #4a3417); color: #fff; padding: 48px 0; }
.concrete-promo__grid { display: grid; gap: 32px; align-items: start; }
.concrete-promo__eyebrow { display: inline-block; background: var(--accent); color: #3a2600; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.concrete-promo h2 { font-size: 28px; }
.concrete-promo__content p { color: #e8d9c4; max-width: 540px; }
.concrete-promo__points { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; color: #f3e9da; font-size: 14px; }
.concrete-promo__points li { padding-left: 22px; position: relative; }
.concrete-promo__points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.concrete-promo__from { color: #f3e9da; font-size: 13px; margin-top: 10px; }
.concrete-promo .btn--outline { border-color: #fff; color: #fff; background: transparent; }
.concrete-promo .btn--outline:hover { background: rgba(255,255,255,.1); }
.concrete-promo__form-wrap .lead-form { max-width: 420px; }
@media (min-width: 900px) { .concrete-promo__grid { grid-template-columns: 1.1fr 1fr; } }

/* Beton landing hero variant */
.hero--beton { background: radial-gradient(circle at 80% 0%, #4a3417, #2b2116 60%); }
.breadcrumbs--on-dark { color: #cbb896; margin-bottom: 14px; }
.breadcrumbs--on-dark a { color: #f3e9da; }

/* Icon cards (beton advantages) */
.icon-cards-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.icon-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.icon-card__icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 14px; }
.icon-card__icon svg { width: 100%; height: 100%; }
.icon-card h3 { font-size: 16px; color: var(--navy); }
.icon-card p { color: var(--muted); font-size: 14px; margin: 0; }

.beton-delivery-terms { color: var(--muted); font-size: 14px; max-width: 720px; }

/* Calculator */
.calculator__grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .calculator__grid { grid-template-columns: 1fr 1fr; } }
.calculator-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.calculator-box label { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.calculator-box input, .calculator-box select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.calculator-box__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calculator-box__result { background: var(--bg-muted); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.calculator-box__result[hidden] { display: none; }
.calculator-box__result p { margin: 0; font-size: 14px; }
.calculator-box__result strong { color: var(--navy); font-size: 16px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.faq-item summary { font-weight: 700; cursor: pointer; font-size: 15px; }
.faq-item p { color: var(--muted); margin: 10px 0 0; font-size: 14px; }
