/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: var(--white);
  border-bottom: 3px solid var(--accent);
}

/* Липкая шапка на десктопе */
@media (min-width: 1020px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 12px 26px -20px rgba(36, 58, 66, 0.85);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.logo { display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  border-radius: var(--radius-sm);
}
.logo-text { font-family: var(--font-display); font-size: 18px; }

.main-nav { display: flex; gap: 16px; }
.main-nav a {
  color: var(--white);
  font-size: 15px;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.22s ease;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a:hover::after { width: 100%; }

.search-page { display: flex; gap: 8px; }
.search-page input {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
}
.search-page button {
  border: 0; background: var(--accent); color: var(--ink);
  padding: 10px 14px; border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-display);
}

.lang-switch { display: flex; gap: 8px; margin-left: auto; }
.lang-switch a {
  color: var(--white); font-size: 13px; padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-sm);
}
.lang-switch a.active { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ---------- Hero ---------- */
/* Стили hero — в home.css. Здесь только кнопки и общие сетки. */

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 15px;
  border: 1px solid transparent;
}
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
/* Кнопка на светлом/акцентном фоне — тёмная, акцентный текст */
.btn-ink { background: var(--ink); color: var(--accent); }
.btn-ink:hover { background: var(--ink-deep); }
/* Ghost на тёмном фоне */
.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-ghost-light:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Blocks & grids ---------- */

.page-hero { padding: 36px 0 24px; }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 10px; }

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.material-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.material-card h2 { font-size: 17px; margin-bottom: 10px; }
.material-card ul { list-style: none; display: grid; gap: 8px; }
.material-card li { font-size: 14px; }

.block { padding: 26px 0; border-top: 1px solid var(--line); }
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: block;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card strong { font-family: var(--font-display); font-size: 16px; display: block; margin-bottom: 6px; }
.card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.card-count { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- Steps / advantages / FAQ (внутренние страницы) ----------
   Главная использует свои разметку и стили (home.css), поэтому правила
   ниже ограничены классами страниц контента и не влияют на главную. */
.page-steps { list-style: none; margin: 0; padding: 0; }
.page-steps li {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.page-steps li strong { font-family: var(--font-display); }

.advantage {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.page-faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 10px;
}
.page-faq summary { font-family: var(--font-display); cursor: pointer; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; margin: 18px 0; color: var(--muted); }
.breadcrumbs a { color: var(--ink-soft); }

/* ---------- Product ---------- */
.product { display: grid; grid-template-columns: 1fr 1.4fr; gap: 26px; }
.product-media img { border-radius: var(--radius); border: 1px solid var(--line); }
.placeholder-image {
  padding: 40px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.model { font-family: var(--font-display); color: var(--ink-soft); margin: 0 0 6px; }

.specs { width: 100%; border-collapse: collapse; margin-top: 16px; }
.specs th, .specs td {
  padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px;
}
.specs th { background: var(--paper-2); font-family: var(--font-display); font-weight: 400; }
.product-actions { margin-top: 18px; display: flex; gap: 12px; align-items: center; }

/* ---------- Contacts / form ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 26px; }.lead-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.lead-form label { display: block; margin-bottom: 12px; font-size: 14px; }
.lead-form input, .lead-form textarea {
  width: 100%; padding: 10px 12px; margin-top: 6px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body);
}
.honeypot { display: none; }
.error { color: var(--error); }
.success { color: var(--success); font-weight: 700; }

/* ---------- Яндекс.Карты ---------- */
.map-block { margin-top: 30px; }
.map-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  background: var(--paper-2);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: 320px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
}
.map-overlay strong { font-family: var(--font-display); display: block; margin-bottom: 4px; }
.map-overlay span { display: block; color: var(--ink-soft); }
.map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: underline;
}
.map-link:hover { color: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); margin-top: 40px; padding: 30px 0; }
.footer-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-col strong { font-family: var(--font-display); display: block; margin-bottom: 8px; }
.footer-col a { display: block; color: var(--white); font-size: 14px; margin-bottom: 6px; }
.footer-col p { margin: 0 0 6px; font-size: 14px; color: rgba(255,255,255,.8); }
.footer-legal { color: rgba(255,255,255,.6); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero, .product, .contacts-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .search { margin-left: 0; width: 100%; }
  .map-frame { min-height: 260px; }
  .map-overlay { max-width: none; right: 16px; }
}

/* Шапка на узких экранах: меню одной горизонтальной лентой вместо
   трёх строк переноса — иначе шапка съедает ~160 px первого экрана. */
@media (max-width: 700px) {
  .header-inner { gap: 10px; }
  .main-nav {
    flex-basis: 100%;
    order: 3;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .main-nav a { font-size: 13.5px; white-space: nowrap; }
  .lang-switch { margin-left: auto; }
  .lang-switch a { padding: 5px 8px; font-size: 12px; }
}
