/* Лидер-Бетон — rbu-medvedkovo.ru */
:root {
  --bg: #FFF4E6;
  --surface: #FFFFFF;
  --ink: #3E2723;
  --muted: #7A5C50;
  --accent: #FF8C00;
  --accent-strong: #FF4500;
  --highlight: #FFD166;
  --line: #F0DEC8;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(62, 39, 35, .10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(30px, 4.5vw, 50px); }
h2 { font-size: clamp(24px, 3.2vw, 36px); margin-bottom: 12px; }
h3 { font-size: 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--white { background: var(--surface); }
.section-title { max-width: 720px; margin-bottom: 36px; }
.section-title p { color: var(--muted); font-size: 17px; }
.kicker {
  display: inline-block;
  background: var(--highlight);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Шапка */
.topbar {
  background: var(--ink);
  color: #F7E9DC;
  font-size: 14px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap;
}
.topbar a { text-decoration: none; color: #F7E9DC; }
.topbar a:hover { color: var(--highlight); }
.topbar__group { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar__phone { font-weight: 700; font-size: 15px; color: var(--highlight) !important; }
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 244, 230, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 12px; padding-bottom: 12px;
}
.logo img { height: 52px; width: auto; }
.nav { display: flex; gap: 26px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink);
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.nav a:hover, .nav a.active { color: var(--accent-strong); border-color: var(--accent-strong); }
.nav-toggle { display: none; }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 800; font-size: 17px; text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--accent-strong); }

/* Кнопки */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font-size: 15px; font-weight: 700; padding: 15px 30px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff; box-shadow: 0 8px 20px rgba(255, 69, 0, .28);
  transition: transform .15s ease, box-shadow .15s ease; text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 69, 0, .36); }
.btn--ghost {
  background: transparent; color: var(--accent-strong);
  border: 2px solid var(--accent-strong); box-shadow: none;
}
.btn--ghost:hover { background: var(--accent-strong); color: #fff; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero .container {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--muted); margin-bottom: 20px;
}
.hero__badge::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: #2EAD4E; box-shadow: 0 0 0 4px rgba(46, 173, 78, .18);
}
.hero h1 span { color: var(--accent-strong); }
.hero__sub { color: var(--muted); font-size: 18px; margin: 18px 0 28px; max-width: 540px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__points { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.hero__point { font-size: 14px; font-weight: 600; color: var(--ink); padding-left: 18px; position: relative; }
.hero__point::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--accent);
}
.hero__media { position: relative; }
.hero__media img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; height: 460px; object-fit: cover;
}
.hero__card {
  position: absolute; left: -18px; bottom: 26px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
  padding: 16px 20px; display: flex; gap: 14px; align-items: center;
}
.hero__card b { font-size: 24px; color: var(--accent-strong); display: block; line-height: 1.1; }
.hero__card span { font-size: 13px; color: var(--muted); }

/* Карточки продукции */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-4px); }
.card__img {
  width: calc(100% + 52px); max-width: none; margin: -26px -26px 18px;
  height: 168px; object-fit: cover; display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card__price { margin-top: 14px; font-weight: 800; color: var(--accent-strong); font-size: 17px; }

/* Таблицы цен */
.price-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); margin-bottom: 26px; }
.price-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.price-table caption {
  text-align: left; padding: 16px 22px; font-weight: 800; font-size: 18px;
  background: var(--ink); color: var(--bg); caption-side: top;
}
.price-table th {
  text-align: left; font-size: 13px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--muted); padding: 13px 22px; border-bottom: 2px solid var(--line); background: #FFFBF4;
}
.price-table td { padding: 13px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tbody tr:nth-child(even) { background: #FFFBF4; }
.price-table .num { font-weight: 800; color: var(--accent-strong); white-space: nowrap; }
.price-note { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Преимущества / факты */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.fact {
  background: var(--surface); border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.fact b { font-size: 34px; color: var(--accent-strong); display: block; line-height: 1.1; }
.fact span { color: var(--muted); font-size: 14px; }

/* Сплит-блоки (текст + фото) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 380px; object-fit: cover; }
.split--rev > .split__media { order: 2; }
.check-list { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.check-list li { padding-left: 32px; position: relative; color: var(--muted); }
.check-list li b { color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--highlight) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%233E2723" stroke-width="3"><path d="M4 12.5l5 5L20 6.5"/></svg>') center/12px no-repeat;
}

/* О нас */
.about-band { background: var(--ink); color: #F7E9DC; border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow); }
.about-band h2 { color: #fff; }
.about-band p { color: #D8C3B4; }
.about-band .facts .fact { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.about-band .facts .fact b { color: var(--highlight); }
.about-band .facts .fact span { color: #D8C3B4; }

/* Форма */
.lead-form {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 32px;
}
.lead-form h3 { font-size: 22px; margin-bottom: 6px; }
.lead-form p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.lead-form .row { display: grid; gap: 14px; }
.lead-form input {
  width: 100%; padding: 15px 18px; font-size: 15px; font-family: inherit;
  border: 2px solid var(--line); border-radius: 12px; background: #FFFBF4; color: var(--ink);
}
.lead-form input:focus { outline: none; border-color: var(--accent); }
.lead-form .btn { width: 100%; margin-top: 6px; }
.lead-form .consent { font-size: 12px; color: var(--muted); margin-top: 12px; }
.lead-form .status { font-size: 14px; font-weight: 600; margin-top: 10px; min-height: 20px; }
.lead-form .status.ok { color: #2EAD4E; }
.lead-form .status.err { color: var(--accent-strong); }
.form-band {
  background: linear-gradient(135deg, var(--highlight), #FFC44D);
  border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow);
}
.form-band .container, .form-band { display: grid; }
.form-band__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.form-band h2 { margin-bottom: 8px; }
.form-band > p, .form-band__text p { color: rgba(62, 39, 35, .75); }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.review__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review__name { font-weight: 800; }
.review__stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; }
.review p { color: var(--muted); font-size: 14.5px; }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item svg { width: 22px; height: 22px; stroke: var(--accent-strong); fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: 3px; }
.contact-item b { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.contact-item a, .contact-item span { font-size: 17px; font-weight: 600; text-decoration: none; }
.contact-item a:hover { color: var(--accent-strong); }
.map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); height: 100%; min-height: 380px;
}
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery img { border-radius: 14px; height: 190px; width: 100%; object-fit: cover; box-shadow: var(--shadow); }

/* CTA-полоса */
.cta-strip {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-radius: var(--radius); color: #fff; padding: 40px 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  box-shadow: 0 14px 34px rgba(255, 69, 0, .30); flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; margin-bottom: 6px; }
.cta-strip p { opacity: .92; }
.cta-strip .btn { background: #fff; color: var(--accent-strong); box-shadow: none; }

/* Футер */
.footer { background: var(--ink); color: #D8C3B4; margin-top: 72px; }
.footer .container { padding-top: 48px; padding-bottom: 28px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer img { height: 46px; width: auto; margin-bottom: 14px; }
.footer__grid img { background: var(--bg); padding: 10px 14px; border-radius: 12px; height: 60px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: #D8C3B4; text-decoration: none; }
.footer a:hover { color: var(--highlight); }
.footer ul { list-style: none; display: grid; gap: 9px; font-size: 14.5px; }
.footer__phone { font-size: 20px; font-weight: 800; color: var(--highlight) !important; }
.footer__bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 22px; font-size: 13.5px; }

/* Страницы */
.page-head { padding: 52px 0 40px; }
.breadcrumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-strong); }
.page-head p { color: var(--muted); font-size: 17px; max-width: 720px; margin-top: 10px; }

/* Адаптив */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .hero .container, .split, .contacts-grid, .form-band__inner { grid-template-columns: 1fr; }
  .split--rev > .split__media { order: 0; }
  .hero__media img { height: 340px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 16px 20px; gap: 14px;
  }
  .nav.open { display: flex; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 3px; background: var(--ink); border-radius: 2px; }
  .header__cta .btn { display: none; }
  .cards, .facts, .gallery { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .about-band, .form-band { padding: 30px 24px; }
  .hero__card { left: 10px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-strip { padding: 30px 24px; }
}
