/* ============================================================
   Голубинский кирпичный завод — стили сайта
   Шрифты: Russo One (заголовки), Manrope (текст)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ---------- База ---------- */
:root {
  --bg: #131110;
  --bg-2: #1A1512;
  --bg-3: #100D0B;
  --panel: #221B17;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #E4572E;
  --accent-hover: #F06A3E;
  --accent-soft: #F08A63;
  --text: #F5EDE4;
  --muted: #C9BFB2;
  --dim: #A69C90;
  --faint: #6E6459;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

::selection { background: var(--accent); color: #fff; }

.wrap {width: 85%; margin: 0 auto; padding: 0 20px; }

.font-display { font-family: 'Russo One', 'Manrope', sans-serif; letter-spacing: 0.01em; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: #fff;
  font-family: 'Russo One', sans-serif;
  padding: 16px 32px; border-radius: 8px;
  box-shadow: 0 14px 34px rgba(228, 87, 46, 0.28);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  font-size: 16px;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 18px 44px rgba(228, 87, 46, 0.45); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 20px 0;
  transition: background 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(19, 17, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {width: 80px; height: auto;}

.brand-name { line-height: 1.2; }
.brand-name b { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 15px; display: block; color: var(--text); }
.brand-name span { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--dim); }

.main-nav { display: none; gap: 28px; font-size: 14px; color: var(--muted); }
.main-nav a { transition: color 0.2s; }
.main-nav a:hover { color: var(--accent); }

.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 8px;
  box-shadow: 0 10px 24px rgba(228, 87, 46, 0.25);
  transition: background 0.25s;
}
.header-phone:hover { background: var(--accent-hover); }
.header-phone svg { width: 16px; height: 16px; }
.header-phone .phone-full { display: none; }


/* ---------- Герой ---------- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(19,17,16,1) 0%, rgba(19,17,16,0.85) 45%, rgba(19,17,16,0.35) 100%),
    linear-gradient(to top, var(--bg) 2%, transparent 35%, rgba(19,17,16,0.55) 100%);
}
.hero-inner { position: relative; padding: 130px 0 80px; }

.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(228, 87, 46, 0.5);
  background: rgba(228, 87, 46, 0.12);
  color: var(--accent-soft);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  padding: 7px 16px; border-radius: 999px;
}
.badge svg { width: 16px; height: 16px; animation: ember 3.2s ease-in-out infinite; }
.hero-geo { color: var(--dim); font-size: 14px; }

.hero h1 { font-family: 'Russo One', sans-serif; font-weight: 400; line-height: 0.98; font-size: clamp(44px, 9vw, 110px); }
.hero h1 .l2 { display: block; color: transparent; -webkit-text-stroke: 1.5px rgba(245, 237, 228, 0.3); }
.hero h1 .l3 { display: block; color: var(--accent); }

.hero-text { margin-top: 26px; max-width: 560px; color: var(--muted); font-size: 17px; }

.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.hero-price { display: flex; align-items: baseline; gap: 8px; }
.hero-price .num { font-family: 'Russo One', sans-serif; font-size: 56px; color: var(--text); }
.hero-price .per { font-family: 'Russo One', sans-serif; font-size: 24px; color: var(--accent); }

.hero-down { position: relative; margin: 0 auto 24px; color: var(--dim); transition: color 0.2s; }
.hero-down:hover { color: var(--accent); }
.hero-down svg { width: 26px; height: 26px; animation: bounce 1.8s ease-in-out infinite; }

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes ember { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ---------- Бегущая строка ---------- */
.marquee {
  border-top: 1px solid rgba(228, 87, 46, 0.25);
  border-bottom: 1px solid rgba(228, 87, 46, 0.25);
  background: var(--bg-2);
  padding: 16px 0; overflow: hidden;
}
.marquee-track { display: flex; width: max-content; white-space: nowrap; animation: marquee 28s linear infinite; }
.marquee-track span.item {
  display: flex; align-items: center;
  font-family: 'Russo One', sans-serif; font-size: 15px; color: var(--muted); letter-spacing: 0.02em;
}
.marquee-track span.item::after {
  content: ''; width: 8px; height: 8px; background: var(--accent);
  transform: rotate(45deg); margin: 0 26px; flex: none;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Цифры ---------- */
.stats { border-bottom: 1px solid var(--line); background: transparent; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { text-align: center; padding: 36px 12px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat-num { font-family: 'Russo One', sans-serif; font-size: clamp(34px, 4.5vw, 58px); color: var(--text); }
.stat-num .sfx { color: var(--accent); }
.stat-label { margin-top: 10px; color: var(--dim); font-size: 14px; }

/* ---------- Секции: общее ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.kicker {
  font-family: 'Russo One', sans-serif; font-size: 13px; color: var(--accent);
  letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 16px;
}
.section-title { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: clamp(30px, 5vw, 56px); line-height: 1.12; color: var(--text); }

/* Появление при скролле */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Товар ---------- */
#product {overflow: hidden;}
.product-glow { position: absolute; right: -160px; top: 80px; width: 500px; height: 500px; border-radius: 50%; background: rgba(228, 87, 46, 0.1); filter: blur(120px); pointer-events: none; }
.product-grid { margin-top: 56px; display: grid; gap: 48px; align-items: center; }

.product-visual { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }
.product-visual::before {
  content: ''; position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(228, 87, 46, 0.16) 0%, transparent 62%);
}
.brick-img {
  position: relative; width: 100%;
  filter: drop-shadow(0 30px 60px rgba(228, 87, 46, 0.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(-2deg); } }

.price-tag {
  position: absolute; top: 16px; right: 4px; transform: rotate(6deg);
  background: var(--text); color: var(--bg-2);
  border-radius: 10px; padding: 12px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  z-index: 2; text-align: center;
}
.price-tag .p1 { font-family: 'Russo One', sans-serif; font-size: 32px; line-height: 1; }
.price-tag .p2 { font-size: 11px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: #C7431F; margin-top: 4px; }

.brick-size {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  color: var(--dim); font-size: 12px; letter-spacing: 0.15em; white-space: nowrap;
}
.brick-size::before, .brick-size::after { content: ''; height: 1px; width: 90px; background: currentColor; }

.spec-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.spec-head {
  padding: 16px 24px; background: var(--accent);
  display: flex; align-items: center; gap: 12px;
  font-family: 'Russo One', sans-serif; color: #fff; letter-spacing: 0.02em;
}
.spec-head svg { width: 20px; height: 20px; }
.spec-list li {
  padding: 14px 24px; display: flex; flex-direction: column; gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 14px;
}
.spec-name { color: var(--dim); font-size: 13px; }
.spec-value { color: var(--text); font-weight: 600; }

.chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; border: 1px solid rgba(228, 87, 46, 0.4);
  color: var(--accent-soft); padding: 7px 15px; border-radius: 999px;
}
.product-cta { margin-top: 32px; }

/* ---------- О заводе ---------- */
.about-grid { margin-top: 56px; display: grid; gap: 24px; }
.about-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.about-photo img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.7s; }
.about-photo:hover img { transform: scale(1.05); }
.about-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(19, 17, 16, 0.95) 0%, transparent 55%); }
.about-photo-caption { position: absolute; bottom: 0; left: 0; padding: 24px; z-index: 2; }
.about-photo-caption .step { font-family: 'Russo One', sans-serif; color: var(--accent); font-size: 17px; }
.about-photo-caption .cap { font-family: 'Russo One', sans-serif; color: var(--text); font-size: 24px; margin-top: 4px; }

.about-points { margin-top: 56px; display: grid; gap: 32px; }
.about-point { border-left: 2px solid var(--accent); padding-left: 24px; }
.about-point h3 { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 19px; color: var(--text); }
.about-point p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------- Преимущества ---------- */
.brick-bg {background: url(../img/brick-bg.jpg);  background-size: cover; position:relative;}
.brick-bg .wrap {position:relative; z-index:20;}
.brick-bg:after {content: "";display: block;top: 0;left: 0;background: #000000ba;position: absolute;z-index: 10;width: 100%;height: 100%; pointer-events: none;}
.adv-grid { margin-top: 56px; display: grid; gap: 20px; }
.adv-card {
  height: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(26, 21, 18, 0.85); padding: 28px;
  transition: transform 0.3s, border-color 0.3s;
}
.adv-card:hover { transform: translateY(-6px); border-color: rgba(228, 87, 46, 0.6); }
.adv-icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: rgba(228, 87, 46, 0.15); display: grid; place-items: center;
  transition: background 0.3s;
}
.adv-card:hover .adv-icon { background: var(--accent); }
.adv-icon svg { width: 24px; height: 24px; color: var(--accent); transition: color 0.3s; }
.adv-card:hover .adv-icon svg { color: #fff; }
.adv-card h3 { margin-top: 20px; font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 17px; color: var(--text); }
.adv-card p { margin-top: 10px; font-size: 14px; color: var(--dim); }

/* ---------- Отзывы ---------- */
.reviews-head { display: flex; flex-direction: column; gap: 28px; }
.rating-card {
  display: inline-flex; align-items: center; gap: 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); padding: 20px 28px;
}
.rating-num { font-family: 'Russo One', sans-serif; font-size: 48px; color: var(--text); }
.stars { display: flex; gap: 4px; }
.stars svg { width: 20px; height: 20px; fill: var(--accent); color: var(--accent); }

.rating-note { margin-top: 6px; font-size: 12px; color: var(--dim); }

.reviews-grid { margin-top: 56px; display: grid; gap: 20px; }
.review-card {
  height: 100%; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); padding: 28px;
  transition: border-color 0.25s;
}
.review-card:hover { border-color: rgba(228, 87, 46, 0.5); }
.review-quote { width: 32px; height: 32px; color: var(--accent); margin-bottom: 20px; }
.review-card blockquote { flex: 1; color: var(--muted); font-size: 15px; }
.review-author { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.review-author b { display: block; font-weight: 600; color: var(--text); font-size: 14px; }
.review-author span { font-size: 12px; color: var(--dim); }

/* ---------- Контакты ---------- */
.contacts-grid { margin-top: 56px; display: grid; gap: 24px; }
.contacts-cards { display: flex; flex-direction: column; gap: 20px; }

.contact-phone {
  display: block; border-radius: var(--radius); padding: 28px;
  background: var(--accent);
  box-shadow: 0 20px 44px rgba(228, 87, 46, 0.25);
  transition: background 0.25s, transform 0.25s;
}
.contact-phone:hover { background: var(--accent-hover); transform: translateY(-4px); }
.contact-phone .cp-label { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.8); font-size: 14px; font-weight: 600; }
.contact-phone .cp-label svg { width: 20px; height: 20px; }
.contact-phone .cp-num { margin-top: 12px; font-family: 'Russo One', sans-serif; font-size: clamp(26px, 3vw, 36px); color: #fff; }
.contact-phone .cp-hint { margin-top: 6px; color: rgba(255, 255, 255, 0.7); font-size: 13px; }

.contact-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 28px; }
.contact-card .cc-label { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 14px; font-weight: 600; }
.contact-card .cc-label svg { width: 20px; height: 20px; color: var(--accent); }
.contact-card .cc-body { margin-top: 16px; }

.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: 15px; }
.hours-row dt { color: var(--dim); }
.hours-row dd { color: var(--text); font-weight: 600; }

.address-text { color: var(--text); font-weight: 600; font-size: 15px; line-height: 1.7; }
.map-link {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--accent-soft);
  transition: color 0.2s;
}
.map-link:hover { color: var(--accent); }
.map-link svg { width: 16px; height: 16px; }

.contacts-map {
  min-height: 420px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(35%) contrast(1.05);
}
.contacts-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.05); background: var(--bg-3); }
.footer-cta {
  padding: 64px 0;
  display: flex; flex-direction: column; gap: 32px;
}
.footer-cta h2 { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: clamp(26px, 3.5vw, 40px); line-height: 1.15; color: var(--text); }
.footer-cta h2 em { font-style: normal; color: var(--accent); }
.footer-cta p { margin-top: 12px; color: var(--dim); font-size: 15px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 28px 0 0; }
.footer-requisites {
  display: flex; flex-direction: column; gap: 12px;
  font-size: 12px; color: var(--faint);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 18px 0 32px; }
.legal-link {
  font-size: 12px; color: #8A7F72;
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: rgba(138, 127, 114, 0.4);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.legal-link:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- Попап документов ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative; width: 100%; max-width: 760px; max-height: 85vh;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.is-open .modal-dialog { transform: none; }

.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line); background: var(--panel);
}
.modal-head h3 { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: clamp(17px, 2.4vw, 24px); color: var(--text); line-height: 1.3; }
.modal-close {
  flex: none; width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05); color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--accent); color: #fff; }
.modal-close svg { width: 20px; height: 20px; }

.modal-body { overflow-y: auto; padding: 24px 28px 32px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.modal-body h4 { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 16px; color: var(--accent); margin: 26px 0 10px; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { font-size: 14.5px; color: var(--muted); margin: 10px 0; }


/* ---------- Сетка товаров ---------- */
.products-grid {
  margin-top: 56px;
  display: grid;
  gap: 24px;
}
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(228, 87, 46, 0.6);
}
.product-card-img {
  position: relative;
  padding: 28px 28px 8px;
  background: radial-gradient(circle at 50% 60%, rgba(228, 87, 46, 0.14) 0%, transparent 65%);
}
.product-card-img img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(228, 87, 46, 0.25));
}
.product-card-img .price-tag {
  top: 14px;
  right: 14px;
  padding: 10px 16px;
}
.product-card-img .price-tag .p1 { font-size: 24px; }
.product-card-img .price-tag .p2 { font-size: 10px; }
.product-card-body { display: flex; flex-direction: column; flex: 1; }
.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--accent);
}
.product-card-head h3 {
  font-family: 'Russo One', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #fff;
}
.product-pack {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.product-card-foot { padding: 16px 24px 22px; margin-top: auto; }
.product-note {
  display: inline-block;
  font-size: 13px;
  color: var(--accent-soft);
  border: 1px solid rgba(228, 87, 46, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Доп. контакты ---------- */
.contact-line {
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  transition: color 0.2s;
}
a.contact-line:hover, .contact-card-link:hover .contact-line { color: var(--accent); }
.contact-card-link {
  display: block;
  transition: border-color 0.25s, transform 0.25s;
}
.contact-card-link:hover {
  border-color: rgba(228, 87, 46, 0.6);
  transform: translateY(-3px);
}

/* Карточки номенклатуры: характеристики всегда в столбик */
.product-card .spec-list li { flex-direction: column; align-items: flex-start; gap: 2px; }
.product-card .spec-list .spec-name { width: auto; flex: none; }

/* Заметка товара — наверху карточки, перед фото */
.product-card .product-card-foot { padding: 18px 24px; margin-top: 0; }
.product-card .product-card-foot .product-note { width: 100%; text-align: center; }

/* Карточка товара: фото слева, описание справа */
.product-card-main { display: flex; flex-direction: column; flex: 1; }
.product-card .product-card-body { border-top: 1px solid rgba(255, 255, 255, 0.06); }
