/* ============================================
   GRINDERFLOOR — единая таблица стилей
   С навигацией и бургером в шапке
   ============================================ */

:root {
  --primary: #1F2937;
  --primary-dark: #111827;
  --primary-light: #374151;
  --accent: #B45309;
  --accent-dark: #92400E;
  --accent-light: #F59E0B;
  --accent-soft: rgba(180, 83, 9, 0.08);
  --text: #1F2937;
  --text-light: #6B7280;
  --text-muted: #9CA3AF;
  --bg: #F9FAFB;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --border: #E5E7EB;
  --success: #059669;
  --success-bg: #D1FAE5;
  --danger: #DC2626;
  --danger-bg: #FEE2E2;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, 0.10);
  --container: 1200px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); overflow-x: hidden; padding-bottom: 70px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ===== Прогресс-бар ===== */
.progress-container { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: transparent; z-index: 9999; }
.progress-bar { height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); width: 0%; transition: width 0.1s ease; }

/* ===== Шапка ===== */
header { background: var(--white); box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 0; }

.logo { font-size: 1.15rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; flex-shrink: 0; }
.logo img { width: 32px; height: 32px; }
.logo span { color: var(--accent); }

.nav { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.nav a { font-size: 0.95rem; font-weight: 600; color: var(--primary); transition: color var(--transition); white-space: nowrap; }
.nav a:hover { color: var(--accent); }

.header-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.phone { font-size: 1.05rem; font-weight: 700; color: var(--primary); transition: color var(--transition); white-space: nowrap; }
.phone:hover { color: var(--accent); }
.work-hours { font-size: 0.75rem; color: var(--text-light); }

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--white);
  padding: 72px 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Лёгкое затемнение слева (где текст), прозрачное справа (где форма) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(17, 24, 39, 0.78) 0%,
    rgba(17, 24, 39, 0.55) 40%,
    rgba(17, 24, 39, 0.22) 100%);
  z-index: 1;
}

/* Текст читается на любой картинке за счёт тени */
.hero-text h1,
.hero-subtitle,
.hero-badges .hero-badge {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero .container { position: relative; z-index: 2; }

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-text h1 span { color: var(--accent-light); }

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.hero-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-form {
  background: var(--white);
  color: var(--text);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-form h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: var(--primary);
  font-weight: 700;
}

/* Мобильный вид: на узком экране форма уходит под текст,
   картинка видна меньше — поэтому выравниваем затемнение */
@media (max-width: 1024px) {
  .hero::before {
    background: linear-gradient(180deg,
      rgba(17, 24, 39, 0.85) 0%,
      rgba(17, 24, 39, 0.62) 60%,
      rgba(17, 24, 39, 0.45) 100%);
  }
}

/* ===== Формы ===== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--primary); }
.form-group select, .form-group input, .form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--gray-300); border-radius: 8px; font-size: 0.95rem; font-family: inherit; background: var(--white); transition: border-color var(--transition), box-shadow var(--transition); }
.form-group select:focus, .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; font-size: 0.8rem; color: var(--text-light); margin: 14px 0; line-height: 1.45; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.checkbox-group a { color: var(--accent); text-decoration: underline; }

/* ===== Кнопки ===== */
.btn-submit, .btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 14px 24px; background: var(--accent); border: none; border-radius: var(--radius); font-weight: 700; font-size: 1rem; color: var(--white); cursor: pointer; transition: background var(--transition), transform var(--transition), box-shadow var(--transition); text-align: center; font-family: inherit; }
.btn-submit:hover, .btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(180, 83, 9, 0.3); }
.btn-white { display: inline-flex; align-items: center; justify-content: center; background: var(--white); color: var(--accent); padding: 14px 36px; font-size: 1rem; border: none; border-radius: var(--radius); cursor: pointer; font-weight: 700; width: auto; font-family: inherit; transition: background var(--transition), color var(--transition), transform var(--transition); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-1px); }
.btn-outline-dark { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--primary); border: 1.5px solid var(--gray-300); padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); cursor: pointer; font-weight: 700; font-family: inherit; transition: border-color var(--transition), color var(--transition); }
.btn-outline-dark:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Trust Bar ===== */
.trust-bar { background: var(--white); padding: 28px 0; border-bottom: 1px solid var(--border); }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-item { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--text-light); }
.trust-number { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; }

/* ===== Секции ===== */
section { padding: 64px 0; }
.section--gray { background: var(--gray-100); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-header h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 14px; color: var(--primary); font-weight: 800; letter-spacing: -0.01em; }
.section-header p { font-size: 1rem; color: var(--text-light); line-height: 1.6; }

/* ===== Преимущества ===== */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.benefit-card { background: var(--white); padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); transition: border-color var(--transition), box-shadow var(--transition); }
.benefit-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.benefit-icon { width: 48px; height: 48px; background: var(--accent-soft); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.4rem; }
.benefit-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--primary); font-weight: 700; }
.benefit-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.55; }

/* ===== Калькулятор ===== */
.calculator-section { background: var(--gray-100); }
.accordion { background: var(--white); color: var(--primary); cursor: pointer; padding: 18px 22px; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); text-align: left; font-size: 1.05rem; font-weight: 700; margin: 0 0 16px; transition: border-color var(--transition); display: flex; justify-content: space-between; align-items: center; }
.accordion:hover { border-color: var(--accent); }
.accordion::after { content: '+'; font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.accordion.active::after { content: '−'; }
.panel { max-height: 0; overflow: hidden; transition: max-height 0.35s ease-out; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 20px; }
.panel.show { border-color: var(--accent); }
.grinding-calculator { padding: 28px; }
.input-group { margin-bottom: 18px; }
.input-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.input-row label { font-size: 0.9rem; font-weight: 600; color: var(--primary); }
.input-group input, .input-group select { width: 100%; padding: 11px 14px; border: 1px solid var(--gray-300); border-radius: 8px; font-family: inherit; font-size: 0.95rem; transition: border-color var(--transition), box-shadow var(--transition); }
.input-group input:focus, .input-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.radio-group { display: flex; gap: 16px; margin-top: 6px; }
.radio-group label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; cursor: pointer; }
.radio-group input[type="radio"] { accent-color: var(--accent); }
.result-card { background: var(--primary); color: var(--white); padding: 26px; border-radius: var(--radius); text-align: center; }
.total-label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 8px; }
.total-price { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.small-note { font-size: 0.72rem; margin-top: 12px; color: rgba(255, 255, 255, 0.6); line-height: 1.4; }

/* ===== Этапы ===== */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { text-align: center; }
.step-number { width: 56px; height: 56px; background: var(--white); border: 2px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; color: var(--accent); margin: 0 auto 14px; }
.step-term { background: var(--accent-soft); color: var(--accent); padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; display: inline-block; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.process-step h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 8px; font-weight: 700; }
.process-step p { font-size: 0.88rem; color: var(--text-light); line-height: 1.5; }

/* ===== Портфолио ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.portfolio-item { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: border-color var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; height: 100%; }
.portfolio-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.portfolio-images { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--gray-100); position: relative; }
.portfolio-images::after { content: 'до · после'; position: absolute; bottom: 8px; right: 8px; background: rgba(17, 24, 39, 0.75); color: var(--white); font-size: 0.7rem; padding: 3px 8px; border-radius: 10px; }
.portfolio-images img { width: 100%; height: 160px; object-fit: cover; display: block; }
.portfolio-content { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
.portfolio-meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--text-light); margin-bottom: 10px; flex-wrap: wrap; }
.portfolio-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--primary); font-weight: 700; }
.portfolio-short { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; line-height: 1.5; }
.portfolio-detail { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }
.btn-toggle-detail { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.85rem; margin-top: auto; transition: background var(--transition), color var(--transition); align-self: flex-start; font-family: inherit; }
.btn-toggle-detail:hover { background: var(--accent); color: var(--white); }

/* ===== Сегменты ===== */
.segments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 32px 0; }
.segment-card { background: var(--white); padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); border-left: 3px solid var(--accent); display: flex; flex-direction: column; height: 100%; }
.segment-card p { flex-grow: 1; font-size: 0.88rem; line-height: 1.55; color: var(--text-light); }
.segment-icon { font-size: 1.7rem; margin-bottom: 12px; }
.segment-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--primary); font-weight: 700; }

/* ===== CTA пробного участка ===== */
.free-sample-cta { background: var(--primary); padding: 36px 32px; border-radius: var(--radius-xl); text-align: center; color: var(--white); margin-top: 32px; }
.free-sample-text { font-size: 1.1rem; margin-bottom: 24px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.free-sample-text strong { color: var(--white); }
.free-sample-text p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.7); margin-top: 8px; }
.highlight-number { background: var(--accent-light); color: var(--primary); padding: 2px 10px; border-radius: 20px; font-weight: 800; display: inline-block; }

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--white); margin-bottom: 10px; border-radius: var(--radius); border: 1px solid var(--border); transition: border-color var(--transition); }
.faq-item.active { border-color: var(--accent); }
.faq-question { width: 100%; padding: 20px 22px; background: none; border: none; text-align: left; font-size: 1rem; font-weight: 600; color: var(--primary); display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-family: inherit; }
.faq-question svg { width: 18px; flex-shrink: 0; color: var(--accent); transition: transform var(--transition); }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 22px; color: var(--text-light); font-size: 0.92rem; line-height: 1.6; }
.faq-item.active .faq-answer { max-height: 400px; padding: 0 22px 20px; }

/* ===== Нормативы ===== */
.sp-norm-block { background: var(--white); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); max-width: 820px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; }
.sp-norm-block .norm-item { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--primary); }

/* ===== CTA ===== */
.cta { background: var(--primary); color: var(--white); text-align: center; padding: 72px 0; }
.cta h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; margin-bottom: 18px; color: var(--white); font-weight: 800; }
.cta p { font-size: 1rem; color: rgba(255, 255, 255, 0.8); max-width: 640px; margin: 0 auto 28px; line-height: 1.6; }
.cta p a { color: var(--accent-light); text-decoration: underline; }

/* ===== SEO-блок ===== */
.seo-block details { background: var(--white); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; }
.seo-block summary { font-weight: 700; font-size: 1.05rem; color: var(--primary); list-style: none; position: relative; padding-right: 32px; }
.seo-block summary::-webkit-details-marker { display: none; }
.seo-block summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.seo-block details[open] summary::after { content: '−'; }
.seo-content { margin-top: 20px; font-size: 0.92rem; color: var(--text-light); line-height: 1.65; }
.seo-content p { margin-bottom: 12px; }
.seo-content ul { padding-left: 22px; margin-bottom: 12px; }

/* ===== Футер ===== */
footer { background: var(--primary-dark); color: rgba(255, 255, 255, 0.65); padding: 56px 0 24px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand h3 { font-size: 1.15rem; margin-bottom: 14px; color: var(--white); font-weight: 800; }
.footer-brand p { line-height: 1.6; margin-bottom: 14px; color: rgba(255, 255, 255, 0.6); }
.footer-section h4 { font-size: 0.85rem; margin-bottom: 14px; color: var(--white); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section li { margin-bottom: 8px; }
.footer-section a { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; transition: color var(--transition); }
.footer-section a:hover { color: var(--accent-light); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 24px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }

/* ===== Sticky CTA ===== */
.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); padding: 10px 12px; box-shadow: 0 -2px 12px rgba(17, 24, 39, 0.08); border-top: 1px solid var(--border); z-index: 1000; gap: 10px; align-items: center; }
.sticky-cta .sticky-phone { background: var(--success); color: var(--white); border-radius: 50%; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.3rem; }
.sticky-cta .btn { flex: 1; margin: 0; padding: 12px 16px; font-size: 0.92rem; }

/* ===== Fade-up ===== */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== Хлебные крошки ===== */
.breadcrumbs { padding: 16px 0; font-size: 0.85rem; color: var(--text-light); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--gray-300); }
.breadcrumbs a { color: var(--accent); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs [aria-current="page"] { color: var(--text-light); }

/* ===== Page hero ===== */
.page-hero { background: var(--white); padding: 24px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero__title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--primary); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 12px; }
.page-hero__subtitle { font-size: 1rem; color: var(--text-light); max-width: 720px; line-height: 1.6; }
.page-hero__subtitle + .page-hero__subtitle { margin-top: 12px; }
.page-hero .page-hero__subtitle:last-of-type { margin-bottom: 0; }
.page-hero__lead { font-size: 1.15rem; font-weight: 600; color: var(--accent); margin: 8px 0 20px; line-height: 1.4; }
.page-hero__bullets { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.page-hero__bullets li { position: relative; padding-left: 28px; font-size: 0.95rem; color: var(--text); line-height: 1.5; }
.page-hero__bullets li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; }
.page-hero__bullets li strong { color: var(--primary); }
.page-hero__trust { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; margin: 0; }
.page-hero__trust strong { color: var(--primary); font-weight: 700; }

/* ===== Service hero ===== */
.service-hero { background: var(--white); padding: 16px 0 48px; border-bottom: 1px solid var(--border); }
.service-hero__title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--primary); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 16px; max-width: 820px; }
.service-hero__lead { font-size: 1.05rem; color: var(--text-light); max-width: 720px; line-height: 1.6; margin-bottom: 24px; }
.service-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.service-hero__badge { background: var(--accent-soft); color: var(--accent); padding: 8px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; }
.service-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.service-hero__actions .btn, .service-hero__actions .btn-outline-dark { width: auto; }

/* ===== Quick facts ===== */
.quick-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 0; }
.quick-facts--mt { margin-top: 24px; }
.quick-fact { background: var(--white); padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; }
.quick-fact__value { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1.2; margin-bottom: 6px; }
.quick-fact__label { font-size: 0.8rem; color: var(--text-light); line-height: 1.4; }

/* ===== Чек-лист ===== */
.check-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-size: 0.95rem; color: var(--text); line-height: 1.55; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }

/* ===== Таблица цен ===== */
.price-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--white); margin: 24px 0; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table th { background: var(--gray-100); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-light); font-weight: 700; }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--primary); white-space: nowrap; }
.price-table tr:last-child td { border-bottom: 0; }

/* ===== Похожие услуги ===== */
.related-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.related-card { background: var(--white); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); transition: border-color var(--transition), box-shadow var(--transition); display: block; }
.related-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.related-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--primary); font-weight: 700; }
.related-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.5; margin: 0; }

/* ===== Сетка услуг ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { display: flex; flex-direction: column; background: var(--white); padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); height: 100%; }
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card__icon { width: 52px; height: 52px; background: var(--accent-soft); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px; }
.service-card__title { font-size: 1.15rem; margin-bottom: 10px; color: var(--primary); font-weight: 700; }
.service-card__desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.55; margin-bottom: 16px; flex-grow: 1; }
.service-card__price { font-size: 0.85rem; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.service-card__link { font-size: 0.88rem; color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.service-card:hover .service-card__link { color: var(--accent-dark); }
.service-card--soon { opacity: 0.75; cursor: default; }
.service-card--soon:hover { border-color: var(--border); box-shadow: none; transform: none; }
.service-card--soon .service-card__link { color: var(--text-muted); }

/* ===== Кейсы ===== */
.case-hero { background: var(--white); padding: 16px 0 48px; border-bottom: 1px solid var(--border); }
.case-hero__badge { display: inline-block; padding: 6px 14px; border-radius: 30px; background: var(--accent-soft); color: var(--accent); font-size: 0.82rem; font-weight: 700; margin-bottom: 16px; }
.case-hero__title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--primary); font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 16px; max-width: 860px; }
.case-hero__lead { font-size: 1.05rem; color: var(--text-light); max-width: 720px; line-height: 1.6; margin-bottom: 24px; }
.case-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.case-hero__meta span { background: var(--gray-100); color: var(--primary); padding: 8px 14px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; }
.case-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0; }
.case-fact { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.case-fact__value { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1.2; margin-bottom: 6px; }
.case-fact__label { font-size: 0.8rem; color: var(--text-light); line-height: 1.4; }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.case-gallery__item { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-100); }
.case-gallery__item img { width: 100%; height: 320px; object-fit: cover; display: block; }
.case-gallery__label { position: absolute; top: 12px; left: 12px; background: rgba(17, 24, 39, 0.8); color: var(--white); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; }
.case-gallery__item--after .case-gallery__label { background: var(--accent); }
.case-result-list { display: grid; gap: 12px; margin: 20px 0; list-style: none; padding: 0; }
.case-result-list li { position: relative; padding-left: 34px; font-size: 0.95rem; color: var(--text); line-height: 1.55; }
.case-result-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--success-bg); color: var(--success); font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.case-review { background: var(--gray-100); border-left: 3px solid var(--accent); padding: 24px 28px; border-radius: var(--radius); margin: 32px 0; }
.case-review__text { font-size: 1rem; line-height: 1.65; color: var(--text); margin-bottom: 14px; font-style: italic; }
.case-review__author { font-size: 0.88rem; color: var(--text-light); font-weight: 600; }
.case-review__author strong { color: var(--primary); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); height: 100%; }
.case-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.case-card__img { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--gray-100); position: relative; }
.case-card__img::after { content: 'до · после'; position: absolute; bottom: 8px; right: 8px; background: rgba(17,24,39,0.75); color: var(--white); font-size: 0.7rem; padding: 3px 8px; border-radius: 10px; letter-spacing: 0.03em; }
.case-card__img img { width: 100%; height: 140px; object-fit: cover; display: block; }
.case-card__body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.case-card__meta { display: flex; gap: 12px; font-size: 0.78rem; color: var(--text-light); margin-bottom: 10px; flex-wrap: wrap; }
.case-card__title { font-size: 1.05rem; color: var(--primary); font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.case-card__desc { font-size: 0.88rem; color: var(--text-light); line-height: 1.5; margin-bottom: 14px; flex-grow: 1; }
.case-card__link { font-size: 0.88rem; color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.case-card:hover .case-card__link { color: var(--accent-dark); }
.case-card--soon { opacity: 0.7; cursor: default; }
.case-card--soon:hover { border-color: var(--border); box-shadow: none; transform: none; }
.case-card--soon .case-card__link { color: var(--text-muted); }
.case-card--soon .case-card__img::after { display: none; }

/* ===== Команда ===== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.team-card__photo { width: 100px; height: 100px; border-radius: 50%; background: var(--gray-100); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--text-muted); overflow: hidden; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { font-size: 1.05rem; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.team-card__role { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.team-card__bio { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }

/* ===== Техника ===== */
.equipment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.equipment-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.equipment-card__icon { width: 48px; height: 48px; background: var(--accent-soft); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px; }
.equipment-card__title { font-size: 1rem; color: var(--primary); font-weight: 700; margin-bottom: 6px; }
.equipment-card__desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }

/* ===== Документы ===== */
.doc-list { display: grid; gap: 16px; margin: 32px 0; }
.doc-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; transition: border-color var(--transition); }
.doc-item:hover { border-color: var(--accent); }
.doc-item__info { flex: 1; }
.doc-item__name { font-size: 1rem; color: var(--primary); font-weight: 700; margin-bottom: 6px; }
.doc-item__desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }
.doc-item__btn { flex-shrink: 0; background: var(--accent); color: var(--white); padding: 10px 20px; border-radius: var(--radius); font-size: 0.85rem; font-weight: 700; border: 0; cursor: pointer; transition: background var(--transition); text-decoration: none; display: inline-block; text-align: center; }
.doc-item__btn:hover { background: var(--accent-dark); }

/* ===== Контакты ===== */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-top: 32px; }
.contact-info-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.contact-info-block h2 { font-size: 1.3rem; color: var(--primary); margin-bottom: 22px; font-weight: 700; }
.contact-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-list strong { font-size: 0.78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.contact-list a, .contact-list span { font-size: 1.05rem; color: var(--primary); font-weight: 700; }
.contact-list a { color: var(--accent); transition: color var(--transition); }
.contact-list a:hover { color: var(--accent-dark); }
.contact-form-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.contact-form-block h2 { font-size: 1.3rem; color: var(--primary); margin-bottom: 22px; font-weight: 700; }
.contact-form-block .form-group { margin-bottom: 14px; }
.map-block { margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.map-block iframe { width: 100%; height: 400px; border: 0; display: block; }
.map-placeholder { height: 320px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.9rem; text-align: center; padding: 20px; }
.contact-socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.contact-socials a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); font-size: 0.88rem; font-weight: 600; transition: background var(--transition); }
.contact-socials a:hover { background: var(--accent); color: var(--white); }

/* ===== Блог ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.blog-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); height: 100%; }
.blog-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card__img { height: 180px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.85rem; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card__meta { display: flex; gap: 12px; font-size: 0.78rem; color: var(--text-light); margin-bottom: 10px; }
.blog-card__title { font-size: 1.05rem; color: var(--primary); font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.blog-card__excerpt { font-size: 0.88rem; color: var(--text-light); line-height: 1.55; margin-bottom: 14px; flex-grow: 1; }
.blog-card__link { font-size: 0.88rem; color: var(--accent); font-weight: 700; }

/* ===== Статья ===== */
.article { max-width: 820px; margin: 0 auto; }
.article__meta { display: flex; gap: 16px; font-size: 0.85rem; color: var(--text-light); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.article h2 { font-size: 1.5rem; color: var(--primary); margin: 40px 0 16px; font-weight: 800; }
.article h3 { font-size: 1.15rem; color: var(--primary); margin: 28px 0 12px; font-weight: 700; }
.article p { color: var(--text-light); line-height: 1.75; margin-bottom: 16px; font-size: 1rem; }
.article ul, .article ol { color: var(--text-light); line-height: 1.75; margin: 16px 0; padding-left: 24px; font-size: 1rem; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--text); font-weight: 700; }
.article a { color: var(--accent); text-decoration: underline; }
.article img { border-radius: var(--radius-lg); margin: 24px 0; }
.article table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.92rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.article table th, .article table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.article table th { background: var(--gray-100); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-light); font-weight: 700; }
.article table td:last-child { font-weight: 700; color: var(--primary); white-space: nowrap; }
.article blockquote { background: var(--gray-100); border-left: 3px solid var(--accent); padding: 20px 24px; border-radius: var(--radius); margin: 24px 0; color: var(--text); font-style: italic; line-height: 1.65; }

/* ===== Служебные ===== */
.thanks-page { padding: 80px 0; text-align: center; }
.thanks-icon { width: 88px; height: 88px; border-radius: 50%; background: var(--success-bg); color: var(--success); font-size: 3rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 24px; font-weight: 700; }
.thanks-page h1 { font-size: 1.9rem; color: var(--primary); margin-bottom: 16px; font-weight: 800; }
.thanks-page p { color: var(--text-light); font-size: 1rem; line-height: 1.6; max-width: 560px; margin: 0 auto 28px; }
.thanks-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.error-page { padding: 96px 0; text-align: center; }
.error-code { font-size: clamp(6rem, 14vw, 10rem); font-weight: 900; line-height: 1; color: var(--accent); letter-spacing: -0.03em; margin-bottom: 12px; }
.error-page h1 { font-size: 1.9rem; color: var(--primary); margin-bottom: 14px; font-weight: 800; }
.error-page p { color: var(--text-light); font-size: 1rem; line-height: 1.6; max-width: 560px; margin: 0 auto 28px; }
.error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.error-links { list-style: none; padding: 0; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.error-links a { color: var(--accent); font-weight: 700; }
.policy { max-width: 820px; margin: 0 auto; }
.policy h2 { font-size: 1.3rem; color: var(--primary); margin: 32px 0 12px; font-weight: 700; }
.policy h2:first-of-type { margin-top: 0; }
.policy p, .policy li { color: var(--text-light); line-height: 1.7; margin-bottom: 10px; }
.policy ul, .policy ol { padding-left: 24px; margin: 12px 0; }
.policy a { color: var(--accent); }
.policy .muted { color: var(--text-muted); font-size: 0.88rem; margin-top: 32px; }

/* ============================================
   АДАПТИВ
   ============================================ */

@media (max-width: 1024px) {
  .nav { display: none; }
  .header-contact { display: none; }
  .burger { display: flex; margin-left: auto; }
  .header-inner { gap: 12px; }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    gap: 16px;
    margin: 0;
    align-items: flex-start;
    margin-left: 0;
  }
  .nav.is-open a { font-size: 1rem; padding: 4px 0; }

  .hero-content { grid-template-columns: 1fr; gap: 36px; }
  .hero-text h1 { font-size: 2rem; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .segments-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .related-services { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .case-facts { grid-template-columns: repeat(2, 1fr); }
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery__item img { height: 260px; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 48px 0; }
  .sticky-cta { display: flex; }
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0; }
  .hero-text h1 { font-size: 1.6rem; }
  .hero-form { padding: 22px; }
  .form-row { flex-direction: column; gap: 0; }
  .process-steps { grid-template-columns: 1fr; }
  .segments-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 56px 0; }
  .cta h2 { font-size: 1.4rem; }
  .free-sample-cta { padding: 28px 20px; }
  .quick-facts { grid-template-columns: 1fr; }
  .service-hero__actions { flex-direction: column; align-items: stretch; }
  .service-hero__actions .btn, .service-hero__actions .btn-outline-dark { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .case-facts { grid-template-columns: 1fr; }
  .case-gallery__item img { height: 200px; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-card__img img { height: 120px; }
  .team-grid { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }
  .doc-item { flex-direction: column; align-items: flex-start; }
  .doc-item__btn { width: 100%; text-align: center; }
  .contact-info-block, .contact-form-block { padding: 24px; }
  .map-block iframe { height: 300px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article h2 { font-size: 1.3rem; }
  .thanks-page, .error-page { padding: 56px 0; }
  .thanks-actions, .error-actions { flex-direction: column; align-items: stretch; }

  /* Таблицы цен: компактный вид для узких экранов */
  .price-table th, .price-table td { padding: 10px 12px; font-size: 0.8rem; }
  .price-table td:last-child { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .fade-up { opacity: 1; transform: none; }
}

/* ============================================
   Валидация форм — подсветка ошибок
   ============================================ */
.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid,
.input-group input.is-invalid,
.input-group select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-group input.is-invalid:focus,
.form-group select.is-invalid:focus,
.form-group textarea.is-invalid:focus,
.input-group input.is-invalid:focus,
.input-group select.is-invalid:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22);
}

.checkbox-group input[type="checkbox"].is-invalid {
  outline: 2px solid var(--danger);
  outline-offset: 2px;
  border-radius: 3px;
}

.btn-submit:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   Компактные отступы между секциями
   ============================================ */
section + section:not(.calculator-section):not(.cta):not(.service-hero):not(.page-hero):not(.case-hero) {
  padding-top: 0;
}
/* ============================================
   Блог: стили карточек «Скоро» и emoji-обложек
   ============================================ */
.blog-card--soon {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}
.blog-card--soon:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}
.blog-card--soon .blog-card__link {
  color: var(--text-muted);
}
.blog-card__img--emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  background: var(--gray-100);
}
.blog-card__img--cover {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Планшетный вид «свежей» карточки */
@media (max-width: 900px) {
  .blog-card[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .blog-card[style*="grid-template-columns"] .blog-card__img {
    height: 220px !important;
  }
}/* ============================================
   Главная: Hero с навигационными кнопками
   ============================================ */
.hero--nav {
  padding: 48px 0 64px;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero--nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,24,39,0.92) 0%, rgba(17,24,39,0.78) 60%, rgba(180,83,9,0.55) 100%);
  z-index: 1;
}
.hero--nav .container {
  position: relative;
  z-index: 2;
}
.hero-nav-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}
.hero-nav-text h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-nav-text h1 span {
  color: var(--accent-light);
}
.hero-nav-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 560px;
}
.hero-nav-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-nav-badges .hero-badge {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-nav-badges .hero-badge:first-child {
  background: var(--accent-light);
  color: var(--primary-dark);
  border-color: var(--accent-light);
  font-weight: 800;
}

/* CTA в hero: калькулятор + телефон */
.hero-nav-actions {
  display: grid;
  gap: 12px;
}
.hero-nav-cta {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 14px;
  align-items: center;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  transition: all 0.2s ease;
}
.hero-nav-cta:hover {
  background: rgba(255,255,255,0.18);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}
.hero-nav-cta__icon {
  grid-row: span 2;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
}
.hero-nav-cta__label {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}
.hero-nav-cta__hint {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}
.hero-nav-cta--primary {
  background: var(--accent);
  border-color: var(--accent);
}
.hero-nav-cta--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.hero-nav-cta--primary .hero-nav-cta__icon {
  background: rgba(255,255,255,0.18);
}
.hero-nav-cta--phone {
  background: rgba(255,255,255,0.06);
}

/* Большие кнопки меню */
.hero-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hero-menu__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  color: var(--white);
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-menu__card:hover {
  background: rgba(255,255,255,0.16);
  border-color: var(--accent-light);
  transform: translateY(-3px);
}
.hero-menu__icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.hero-menu__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}
.hero-menu__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}
.hero-menu__arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 1.2rem;
  color: var(--accent-light);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}
.hero-menu__card:hover .hero-menu__arrow {
  opacity: 1;
  transform: translateX(0);
}
.hero-menu__card--accent {
  background: var(--accent);
  border-color: var(--accent);
}
.hero-menu__card--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.hero-menu__card--accent .hero-menu__desc {
  color: rgba(255,255,255,0.85);
}

/* ============================================
   Форма заявки — отдельная секция
   ============================================ */
.lead-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.lead-form-text h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.lead-form-text p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}
.lead-form-card {
  background: var(--bg);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* ============================================
   Адаптив: hero-nav
   ============================================ */
@media (max-width: 1024px) {
  .hero-nav-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-nav-actions { grid-template-columns: 1fr 1fr; }
  .hero-menu { grid-template-columns: repeat(2, 1fr); }
  .lead-form-wrap { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .hero--nav { padding: 32px 0 48px; }
  .hero-nav-text h1 { font-size: 1.55rem; }
  .hero-nav-actions { grid-template-columns: 1fr; }
  .hero-menu { grid-template-columns: 1fr; }
  .hero-menu__card { padding: 20px; }
  .hero-menu__card__arrow { opacity: 1; transform: none; }
  .lead-form-card { padding: 20px; }
}
/* ============================================
   404 — Стили страницы с логотипом
   ============================================ */

.error-page--fun {
  padding: 80px 0 80px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 0%, var(--accent-soft) 0%, transparent 40%),
    radial-gradient(circle at 80% 100%, var(--accent-soft) 0%, transparent 40%);
}

.error-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Обертка для логотипа */
.error-logo-wrap {
  max-width: 600px; /* Ограничиваем ширину, чтобы лого не было гигантским */
  margin: 0 auto 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.error-logo {
  width: 100%;
  height: auto;
  display: block;
  /* Опционально: можно добавить фильтр, если картинка слишком контрастная */
  /* filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05)); */
}

.error-page--fun h1 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.error-page--fun > .container > p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* Карточки выбора */
.error-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: left;
}

.error-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.error-option:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.error-option__icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.error-option__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.error-option__desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

.error-option--accent {
  background: var(--primary);
  border-color: var(--primary);
}

.error-option--accent .error-option__title { color: var(--white); }
.error-option--accent .error-option__desc { color: rgba(255, 255, 255, 0.75); }

.error-option--accent:hover {
  background: var(--primary-dark);
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .error-page--fun { padding: 56px 0 56px; }
  .error-options { grid-template-columns: 1fr; gap: 12px; }
  .error-option { padding: 18px 20px; }
  .error-logo-wrap { max-width: 80%; margin-bottom: 24px; }
}
/* A11Y: Skip-link — скрыт, пока не нажат Tab */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 8px; /* Появляется на экране при фокусе */
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
/* ============================================
   Cookie-баннер
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(17, 24, 39, 0.08);
  padding: 16px 20px;
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner--hidden {
  transform: translateY(100%);
  opacity: 0;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-banner__text {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-width: 260px;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner__btn {
  background: var(--accent);
  color: var(--white);
  border: 0;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
  white-space: nowrap;
  min-height: 44px;
}

.cookie-banner__btn:hover {
  background: var(--accent-dark);
}

.cookie-banner__btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Отступ для sticky-cta — чтобы не перекрывались */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 12px 16px;
    bottom: 70px; /* над sticky-cta */
  }
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-banner__btn {
    width: 100%;
  }
}