:root {
  /* === БРЕНДОВАЯ ПАЛИТРА METAL HOUSE === */
  --brand: #1A6240;          /* основной зелёный (как фасад здания) */
  --brand-2: #2A8055;        /* светлее для hover */
  --brand-dark: #0E3F26;     /* тёмный для footer/контрастных секций */
  --brand-light: #DCEFE3;    /* светлый зелёный для тинтов */
  --accent: #F8C700;         /* жёлтый акцент (как вывеска) */
  --accent-2: #D9AD00;       /* hover жёлтого */
  --mint: #5CC4A5;           /* мятный (полосы крыши логотипа) */
  --text: #2A2D33;           /* основной текст */
  --muted: #6B7280;
  --bg: #F7F5EE;             /* тёплый молочный фон */
  --surface: #FFFFFF;
  --border: #E5E7E0;
  --success: #2E8B57;
  --danger: #C0392B;
  --hero-grad: linear-gradient(135deg, #0E3F26 0%, #1A6240 50%, #2A8055 100%);
  --r-md: 8px; --r-lg: 10px; --r-xl: 12px; --r-2xl: 16px; --r-full: 9999px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Top bar — теперь тёмно-зелёный */
.topbar {
  background: var(--brand-dark); color: rgba(255,255,255,0.9);
  font-size: 13px; padding: 8px 0;
  border-bottom: 2px solid var(--accent);
}
.topbar .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.topbar__left, .topbar__right { display: flex; gap: 18px; }
.topbar a:hover { color: var(--accent); }

/* Header */
.header { background: white; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header__inner { display: flex; align-items: center; gap: 24px; padding: 12px 24px; }
.logo--svg { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo--svg img { width: 56px; height: 48px; }
.logo__name { line-height: 1.05; font-weight: 900; color: var(--text); font-size: 22px; letter-spacing: 0.5px; text-transform: uppercase; }
.logo__name small { display: block; font-size: 10px; color: var(--brand); font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

.search { flex: 1; max-width: 540px; }
.search input {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg); font-size: 14px; font-family: inherit;
}
.search input:focus { outline: 2px solid var(--brand); border-color: var(--brand); background: white; }

.header__actions { display: flex; align-items: center; gap: 8px; }
.header__link { padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--text); border-radius: var(--r-md); }
.header__link:hover { background: var(--bg); color: var(--brand); }
.header__link--cart { position: relative; }

.cart-badge {
  position: absolute; top: -4px; right: -8px;
  min-width: 20px; height: 20px;
  background: var(--accent); color: var(--text);
  font-size: 11px; font-weight: 800; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px; border: 2px solid white;
}

.btn-call {
  background: var(--accent); color: var(--text);
  padding: 12px 20px; border-radius: var(--r-lg);
  font-weight: 700; font-size: 14px;
  box-shadow: 0 2px 8px rgba(248,199,0,0.4);
  transition: 0.2s;
}
.btn-call:hover { background: var(--accent-2); transform: translateY(-1px); }

/* Menu */
.menu { background: white; border-top: 1px solid var(--border); }
.menu .container { display: flex; gap: 4px; padding: 4px 24px; overflow-x: auto; }
.menu a {
  padding: 12px 16px; font-size: 14px; font-weight: 600;
  border-radius: var(--r-md); white-space: nowrap; color: var(--text);
}
.menu a:hover { background: var(--brand-light); color: var(--brand); }
.menu__accent { color: var(--accent-2) !important; font-weight: 700; }
.menu__accent:hover { background: rgba(248,199,0,0.12) !important; }

/* Main */
.main { min-height: 60vh; padding: 24px 0; }

/* Footer */
.footer {
  background: var(--brand-dark); color: rgba(255,255,255,0.9);
  padding: 48px 0 24px; margin-top: 64px;
  border-top: 4px solid var(--accent);
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: var(--accent); font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer ul li { list-style: none; margin-bottom: 8px; font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer__phones { margin-bottom: 12px; }
.footer__phone { display: block; font-size: 22px; font-weight: 800; color: white !important; line-height: 1.3; margin-bottom: 6px; }
.footer__phone:hover { color: var(--accent) !important; }
.footer__phone-sec { display: block; font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.footer__phone-sec:hover { color: white; }
.footer__copy { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; margin-top: 32px; font-size: 13px; color: rgba(255,255,255,0.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Buttons */
.btn-primary, .btn-accent, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border: 0; border-radius: var(--r-md);
  font-weight: 700; font-size: 14px; cursor: pointer;
  font-family: inherit; transition: 0.2s; text-align: center; gap: 6px;
}
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-2); color: white; }
.btn-accent { background: var(--accent); color: var(--text); box-shadow: 0 2px 8px rgba(248,199,0,0.3); }
.btn-accent:hover { background: var(--accent-2); }
.btn-outline { background: white; color: var(--brand); border: 2px solid var(--brand); }

/* Сетки и карточки */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card-product { background: white; border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; transition: 0.2s; cursor: pointer; }
.card-product:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,98,64,0.12); border-color: var(--brand); }
.card-product__img { aspect-ratio: 4/3; background: var(--bg); }
.card-product__body { padding: 14px; }
.card-product__title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.card-product__price { font-size: 18px; font-weight: 800; color: var(--brand); }

/* Свотчи цвета */
.color-swatches { display: flex; gap: 6px; margin: 10px 0; }
.color-swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 1px var(--border); cursor: pointer; transition: 0.15s; }
.color-swatch:hover, .color-swatch.active { box-shadow: 0 0 0 2px var(--brand); }

/* Бейджи */
.badge { display: inline-block; padding: 4px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; }
.badge--success { background: var(--brand-light); color: var(--brand-dark); }
.badge--warn    { background: #FEF3C7; color: #78350F; }
.badge--info    { background: #DBEAFE; color: #1E3A8A; }

/* Hero */
.hero {
  background: var(--hero-grad); color: white; padding: 56px 0;
  margin: -24px -24px 32px;
  border-bottom: 4px solid var(--accent);
  position: relative; overflow: hidden;
}
.hero h1 { font-size: 42px; font-weight: 900; line-height: 1.1; margin-bottom: 16px; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: 17px; opacity: 0.95; margin-bottom: 24px; max-width: 540px; }

/* Контентные страницы */
.content-page { max-width: 920px; margin: 0 auto; padding: 16px 0 32px; }
.content-page h1 { font-size: 36px; color: var(--brand); font-weight: 900; line-height: 1.15; margin: 8px 0 8px; }
.content-page .lead { font-size: 18px; color: var(--muted); margin-bottom: 32px; line-height: 1.55; }
.content-page h2 { font-size: 24px; color: var(--text); font-weight: 800; margin: 32px 0 12px; }
.content-page h3 { font-size: 18px; font-weight: 700; margin: 20px 0 8px; color: var(--text); }
.content-page p  { margin-bottom: 12px; line-height: 1.6; }
.content-page ul, .content-page ol { margin: 12px 0 16px 24px; }
.content-page li { margin-bottom: 6px; line-height: 1.55; }

.cp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.cp-card { background: white; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 20px 22px; border-left: 4px solid var(--brand); }
.cp-card.accent { border-left-color: var(--accent); }
.cp-card h3 { margin-top: 0; }
.cp-card p { color: var(--muted); font-size: 14px; margin-bottom: 0; }

.cp-table { width: 100%; border-collapse: collapse; margin: 16px 0; background: white; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); }
.cp-table th, .cp-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.cp-table th { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; }
.cp-table tr:last-child td { border-bottom: 0; }

.cp-steps { counter-reset: cp; margin: 16px 0; }
.cp-steps li { counter-increment: cp; list-style: none; position: relative; padding-left: 48px; margin-bottom: 14px; min-height: 36px; padding-top: 4px; }
.cp-steps li::before { content: counter(cp); position: absolute; left: 0; top: 0; width: 32px; height: 32px; background: var(--brand); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }

.cp-highlight { background: var(--brand-light); border-left: 4px solid var(--accent); padding: 16px 20px; margin: 20px 0; border-radius: 0 var(--r-md) var(--r-md) 0; }
.cp-highlight strong { color: var(--brand-dark); }

.cp-cta { background: var(--hero-grad); color: white; border-radius: var(--r-2xl); padding: 32px; margin: 32px 0; text-align: center; border: 2px solid var(--accent); }
.cp-cta h2 { color: white; margin-top: 0; }
.cp-cta p { color: rgba(255,255,255,0.95); }
.cp-cta a { background: var(--accent); color: var(--text); padding: 14px 28px; border-radius: var(--r-md); font-weight: 800; text-decoration: none; display: inline-block; margin-top: 16px; }
.cp-cta a:hover { background: var(--accent-2); }
/* ============= METAL HOUSE — section tiles ============= */
.section-tiles{padding:24px 0 48px}
.section-tiles__title{font-size:32px;font-weight:800;margin:0 0 8px;color:var(--brand-dark,#0E3F26);letter-spacing:-0.5px}
.section-tiles__lead{font-size:15px;color:#475569;max-width:780px;margin:0 0 24px;line-height:1.55}
.section-tiles__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width:900px){.section-tiles__grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.section-tiles__grid{grid-template-columns:1fr}}
.tile{
  position:relative;
  display:flex;align-items:flex-end;
  min-height:220px;border-radius:14px;overflow:hidden;
  background:var(--tile-bg,linear-gradient(135deg,var(--brand,#1A6240),var(--brand-2,#2A8055)));
  background-size:cover;background-position:center;
  text-decoration:none;color:#fff;
  box-shadow:0 4px 16px rgba(14,63,38,.10);
  transition:transform .25s ease,box-shadow .25s ease;
  isolation:isolate;
}
.tile:hover{transform:translateY(-3px);box-shadow:0 10px 28px rgba(14,63,38,.20)}
.tile--no-pic{background:linear-gradient(135deg,var(--brand,#1A6240) 0%,var(--brand-2,#2A8055) 100%)}
.tile__overlay{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(to top,rgba(14,63,38,.75) 0%,rgba(14,63,38,.30) 50%,rgba(14,63,38,.05) 100%);
}
.tile__body{position:relative;z-index:2;padding:20px;display:flex;flex-direction:column;gap:6px;width:100%}
.tile__name{font-size:20px;font-weight:700;margin:0;line-height:1.25;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.35)}
.tile__count{font-size:13px;font-weight:500;color:rgba(255,255,255,.92);background:rgba(0,0,0,.28);padding:2px 10px;border-radius:999px;align-self:flex-start;backdrop-filter:blur(4px)}
.tile__arrow{
  position:absolute;top:16px;right:16px;z-index:3;
  width:36px;height:36px;border-radius:50%;
  background:var(--accent,#F8C700);color:var(--brand-dark,#0E3F26);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:18px;
  transition:transform .25s ease;
}
.tile:hover .tile__arrow{transform:translateX(4px) rotate(-8deg)}

/* Hide old bx_sitemap when our tile component is rendered */
.section-tiles + .bx_sitemap,.bx_sitemap:has(+ .section-tiles){display:none!important}

@import url("testbanner.css");
