/* ══════════════════════════════════════════════════════════════
   BuildLand.ru — "Строим Дом"
   Единый CSS-файл дизайн-системы
   ══════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --green: #3A7D44;
  --green-light: #4A9D56;
  --green-dark: #2C5F34;
  --green-pale: #E8F5E9;
  --green-bg: #F0F7F1;

  --brown: #8B6914;
  --brown-light: #C49A2A;
  --brown-warm: #D4A842;
  --brown-pale: #FFF8E7;

  --dark: #1A2E1A;
  --text: #2D3B2D;
  --text-secondary: #5A6B5A;
  --gray: #8A9A8A;
  --border: #D4DDD4;
  --bg-light: #F8FAF8;
  --white: #FFFFFF;

  --danger: #D32F2F;
  --warning: #F9A825;
  --success: #388E3C;
  --info: #1976D2;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --gap: 24px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.05);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-light); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--dark); line-height: 1.2; font-weight: 700; }
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.section-subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 640px; margin: 0 auto 2.5rem; }

/* ── Container & Layout ── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--green { background: var(--green-bg); }
.section--pale { background: var(--bg-light); }
.section--brown { background: var(--brown-pale); }
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; align-items: center; gap: var(--gap); }
.flex--between { justify-content: space-between; }
.flex--center { justify-content: center; }
.flex--wrap { flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm); font-family: var(--font-heading);
  font-weight: 600; font-size: 0.95rem; transition: all var(--transition);
  white-space: nowrap; text-decoration: none; border: 2px solid transparent;
}
.btn--primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn--primary:hover { background: var(--green-light); border-color: var(--green-light); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--secondary { background: var(--white); color: var(--green); border-color: var(--green); }
.btn--secondary:hover { background: var(--green-pale); transform: translateY(-2px); color: var(--green); }
.btn--accent { background: var(--brown-light); color: var(--white); border-color: var(--brown-light); }
.btn--accent:hover { background: var(--brown-warm); border-color: var(--brown-warm); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--green-dark); }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn--full { width: 100%; }
.btn--ghost { background: transparent; color: var(--green); padding: 10px 16px; border: 1px solid var(--green-pale); }
.btn--ghost:hover { background: var(--green-pale); border-color: var(--green); }

/* ── Forms & Inputs ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.9rem; color: var(--text); }
.form-input {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(58,125,68,0.12); }
.form-input::placeholder { color: var(--gray); }
textarea.form-input { resize: vertical; min-height: 120px; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6B5A' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-range { display: flex; gap: 12px; align-items: center; }
.form-range input { flex: 1; }
.form-range span { font-size: 0.85rem; color: var(--text-secondary); white-space: nowrap; }

/* ── Checkbox & Radio custom ── */
.checkbox-group, .radio-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-label, .radio-label {
  display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem;
}
.checkbox-label input, .radio-label input { display: none; }
.checkbox-label .checkmark, .radio-label .checkmark {
  width: 20px; height: 20px; border: 1.5px solid var(--border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
  flex-shrink: 0;
}
.radio-label .checkmark { border-radius: 50%; }
.checkbox-label input:checked + .checkmark, .radio-label input:checked + .checkmark {
  background: var(--green); border-color: var(--green);
}
.checkbox-label input:checked + .checkmark::after { content: ''; display: block; width: 6px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.radio-label input:checked + .checkmark::after { content: ''; display: block; width: 10px; height: 10px; background: var(--white); border-radius: 50%; }

/* ── Topbar ── */
.topbar { background: var(--dark); color: rgba(255,255,255,0.8); font-size: 0.8rem; padding: 6px 0; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; }
.topbar a { color: rgba(255,255,255,0.8); font-weight: 500; }
.topbar a:hover { color: var(--white); }
.topbar__phone { display: flex; align-items: center; gap: 6px; }
.topbar__phone svg { width: 14px; height: 14px; fill: var(--green-light); }
.topbar__auth { display: flex; align-items: center; gap: 16px; }
.topbar__auth a { padding: 2px 0; }
.topbar__sep { color: rgba(255,255,255,0.3); }

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  transition: box-shadow var(--transition);
}
.header--scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.header__logo svg { width: 38px; height: 38px; }
.header__logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--dark); }
.header__logo-text span { color: var(--green); }
.header__nav { display: flex; align-items: center; gap: 28px; }
.header__nav a { font-weight: 500; color: var(--text); font-size: 0.9rem; position: relative; white-space: nowrap; padding: 4px 0; }
.header__nav a:hover { color: var(--green); }
.header__nav a.active { color: var(--green); }
.header__nav a.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--green); border-radius: 1px; }
.header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* ── Burger Menu ── */
.burger { display: none; width: 32px; height: 24px; position: relative; cursor: pointer; z-index: 1001; }
.burger span { display: block; position: absolute; height: 2.5px; width: 100%; background: var(--dark); border-radius: 2px; transition: all var(--transition); left: 0; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 20px; }
.burger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--white); padding: 100px 24px 40px; flex-direction: column; gap: 0;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { display: block; padding: 16px 0; font-size: 1.2rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--green); }
.mobile-nav a.btn { margin-top: 24px; color: var(--white); border-bottom: none; }

/* ── Hero Section ── */
.hero {
  padding: 100px 0 80px; position: relative; overflow: hidden;
  background: url('') center/cover no-repeat;
  min-height: 520px; display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}
.hero__inner { display: flex; align-items: center; position: relative; z-index: 2; }
.hero__content {
  position: relative; z-index: 2; max-width: 640px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-radius: var(--radius-lg); padding: 40px 44px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.hero h1 { font-size: 2.75rem; margin-bottom: 16px; line-height: 1.15; color: var(--dark); }
.hero h1 span { color: var(--green); }
.hero__text { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 28px; max-width: 520px; }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 32px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.hero__stat { text-align: center; }
.hero__stat-value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--green); }
.hero__stat-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.hero__image { display: none; }

/* ── Audio presentation button ── */
.audio-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 10px; margin-bottom: 20px;
  background: var(--white); border: 1.5px solid var(--green);
  border-radius: 100px; cursor: pointer; transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(58,125,68,0.15);
}
.audio-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(58,125,68,0.25); background: var(--green-pale); }
.audio-btn__icon {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.audio-btn__icon::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--green); opacity: 0; animation: audio-pulse 2s infinite;
}
.audio-btn.playing .audio-btn__icon::before { animation: none; }
@keyframes audio-pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}
.audio-btn__text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.2; }
.audio-btn__label { font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; color: var(--dark); }
.audio-btn__sub { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

.audio-progress {
  display: none; height: 3px; background: var(--border);
  border-radius: 2px; margin: -10px 0 20px; overflow: hidden; max-width: 320px;
}
.audio-progress.active { display: block; }
.audio-progress__bar { height: 100%; background: var(--green); width: 0%; transition: width 0.1s linear; }

@media (max-width: 480px) {
  .audio-btn { padding: 8px 16px 8px 8px; gap: 10px; }
  .audio-btn__icon { width: 36px; height: 36px; }
  .audio-btn__label { font-size: 0.85rem; }
  .audio-btn__sub { font-size: 0.7rem; }
}

/* ── Pipeline (Как это работает) ── */
.pipeline { padding: 80px 0; }
.pipeline__steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; position: relative; margin-top: 48px; }
.pipeline__step { flex: 1; text-align: center; position: relative; max-width: 200px; }
.pipeline__icon {
  width: 80px; height: 80px; border-radius: 50%; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  transition: all var(--transition); position: relative; z-index: 2;
}
.pipeline__icon svg { width: 36px; height: 36px; }
.pipeline__icon { color: var(--green); }
.pipeline__step:hover .pipeline__icon { background: var(--green); transform: scale(1.1); color: var(--white); }
.pipeline__step h4 { font-size: 1rem; margin-bottom: 6px; }
.pipeline__step p { font-size: 0.85rem; color: var(--text-secondary); }
.pipeline__arrow { flex-shrink: 0; width: 40px; display: flex; align-items: center; justify-content: center; padding-top: 28px; color: var(--border); }
.pipeline__arrow svg { width: 24px; height: 24px; }

/* ── Section Header ── */
.section__header { text-align: center; margin-bottom: 48px; }
.section__header h2 { margin-bottom: 12px; }

/* ── Cards (Universal) ── */
.card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); transition: all var(--transition); border: 1px solid transparent;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-pale); }
.card__image {
  position: relative; overflow: hidden; background: linear-gradient(135deg, var(--green-pale), var(--bg-light));
}
.card__image-placeholder {
  width: 100%; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-pale) 0%, #dcedc8 100%);
}
.card__image-placeholder svg { width: 48px; height: 48px; fill: var(--green); opacity: 0.4; }
.card__badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}
.card__badge--hot { background: var(--danger); color: var(--white); }
.card__badge--new { background: var(--info); color: var(--white); }
.card__badge--featured { background: var(--brown-light); color: var(--white); }
.card__body { padding: 20px; flex: 1 1 auto; }
.card__title { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.3; }
.card__title a { color: var(--dark); }
.card__title a:hover { color: var(--green); }
.card__text { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }
.card__meta-item { display: flex; align-items: center; gap: 4px; }
.card__meta-item svg { width: 16px; height: 16px; fill: var(--gray); }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.card__tag { padding: 3px 10px; background: var(--green-pale); color: var(--green-dark); border-radius: 20px; font-size: 0.75rem; font-weight: 500; }
.card__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 16px 20px; border-top: 1px solid var(--border); }
.card__price { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--dark); white-space: nowrap; }
.card__price small { font-size: 0.8rem; font-weight: 400; color: var(--text-secondary); }

/* ── Card: Land ── */
.card--land .card__image-placeholder { background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 50%, #e8f5e9 100%); }
.card--land .card__comms { display: flex; gap: 8px; margin-bottom: 8px; }
.card--land .card__comm {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 600;
}
.card__comm--yes { background: var(--green-pale); color: var(--green); }
.card__comm--no { background: #f5f5f5; color: var(--gray); }

/* ── Card: House ── */
.card--house .card__image-placeholder { background: linear-gradient(135deg, var(--brown-pale) 0%, #ffe0b2 50%, #fff8e1 100%); }
.card--house .card__specs { display: flex; gap: 16px; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; }
.card--house .card__spec { display: flex; align-items: center; gap: 4px; }

/* ── Card: Contractor ── */
.card--contractor .card__body { display: flex; flex-direction: column; gap: 8px; }
.card--contractor .card__header { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.card--contractor .card__avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card--contractor .card__avatar svg { width: 28px; height: 28px; fill: var(--green); }
.card--contractor .card__info { flex: 1; }
.card--contractor .card__company { font-size: 0.85rem; color: var(--text-secondary); }

/* ── Card: Tender ── */
.tender-card {
  background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border);
  transition: all var(--transition); display: grid; grid-template-columns: 1fr auto; gap: 20px;
}
.tender-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.tender-card__content { min-width: 0; }
.tender-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.tender-card__title { font-size: 1.1rem; font-weight: 600; color: var(--dark); }
.tender-card__status { padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.tender-card__status--open { background: var(--green-pale); color: var(--green-dark); }
.tender-card__status--closed { background: #f5f5f5; color: var(--gray); }
.tender-card__desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tender-card__meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: var(--text-secondary); }
.tender-card__aside { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.tender-card__budget { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--dark); white-space: nowrap; }
.tender-card__responses { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

/* ── Card: Blog ── */
.card--blog .card__image-placeholder { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--green-pale) 0%, #c8e6c9 100%); }
.card--blog .card__category { display: inline-block; padding: 3px 10px; background: var(--green); color: var(--white); border-radius: 20px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.card--blog .card__date { font-size: 0.8rem; color: var(--gray); }
.card--blog .card__read-time { font-size: 0.8rem; color: var(--gray); }

/* ── Rating Stars ── */
.rating { display: inline-flex; align-items: center; gap: 4px; }
.rating__stars { display: flex; gap: 2px; }
.rating__star { width: 16px; height: 16px; fill: #ddd; }
.rating__star--filled { fill: var(--warning); }
.rating__value { font-weight: 600; font-size: 0.9rem; color: var(--dark); margin-left: 4px; }
.rating__count { font-size: 0.8rem; color: var(--gray); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.badge--verified { background: var(--green-pale); color: var(--green-dark); }
.badge--verified::before { content: '✓'; font-weight: 700; }
.badge--hot { background: #ffebee; color: var(--danger); }
.badge--new { background: #e3f2fd; color: var(--info); }
.badge--premium { background: var(--brown-pale); color: var(--brown); }

/* ── Filters Sidebar ── */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); position: sticky; top: 100px;
}
.filters__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.filters__close { display: none; }
.filters__reset { font-size: 0.8rem; color: var(--gray); cursor: pointer; font-weight: 400; }
.filters__reset:hover { color: var(--danger); }
.filter-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group__title { font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }

/* Mobile filter toggle */
.filters-toggle { display: none; }

/* ── Catalog Header ── */
.catalog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.catalog-header h1 { font-size: 2rem; }
.catalog-count { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Category Chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  padding: 8px 18px; border-radius: 24px; font-size: 0.875rem; font-weight: 500;
  border: 1.5px solid var(--border); color: var(--text); cursor: pointer;
  transition: all var(--transition); background: var(--white);
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.active { background: var(--green); color: var(--white); border-color: var(--green); }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination__btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-weight: 500; border: 1px solid var(--border); color: var(--text); transition: all var(--transition);
}
.pagination__btn:hover { border-color: var(--green); color: var(--green); }
.pagination__btn.active { background: var(--green); color: var(--white); border-color: var(--green); }
.pagination__dots { color: var(--gray); }

/* ── Advantages / Features ── */
.advantage {
  text-align: center; padding: 32px 24px; border-radius: var(--radius);
  background: var(--white); transition: all var(--transition);
}
.advantage:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.advantage__icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.advantage__icon svg { width: 32px; height: 32px; fill: var(--green); }
.advantage h4 { margin-bottom: 8px; }
.advantage p { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Testimonials ── */
.testimonial {
  background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border);
  transition: all var(--transition);
}
.testimonial:hover { box-shadow: var(--shadow); border-color: var(--green-pale); }
.testimonial__header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.testimonial__avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
}
.testimonial__avatar svg { width: 24px; height: 24px; fill: var(--green); }
.testimonial__name { font-weight: 600; font-size: 0.95rem; }
.testimonial__role { font-size: 0.8rem; color: var(--text-secondary); }
.testimonial__text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; font-style: italic; margin-bottom: 12px; }
.testimonial__text::before { content: '«'; }
.testimonial__text::after { content: '»'; }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  border-radius: var(--radius-lg); padding: 60px; text-align: center; color: var(--white);
}
.cta-section h2 { color: var(--white); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 28px; }
.cta-section--brown { background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%); }
.cta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.cta-card {
  background: rgba(255,255,255,0.1); border-radius: var(--radius); padding: 32px; backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15); text-align: left;
}
.cta-card h3 { color: var(--white); margin-bottom: 10px; font-size: 1.25rem; }
.cta-card p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 20px; }

/* ── Антикейс CTA (долгострой) ── */
.antikase-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 5px solid var(--danger);
}
.antikase-cta__photo { position: relative; min-height: 380px; background: #1a1a1a; overflow: hidden; }
.antikase-cta__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.antikase-cta__badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--danger); color: #fff;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 20px;
  box-shadow: 0 4px 12px rgba(211,47,47,0.4);
}
.antikase-cta__body { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.antikase-cta__label {
  align-self: flex-start;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--danger); text-transform: uppercase; margin-bottom: 14px;
}
.antikase-cta__body h2 { font-size: 1.65rem; line-height: 1.25; margin-bottom: 16px; color: var(--dark); }
.antikase-cta__body p { color: var(--text-secondary); margin-bottom: 18px; line-height: 1.6; }
.antikase-cta__body p strong { color: var(--green-dark); }
.antikase-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.antikase-cta__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; color: var(--green);
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
}
.antikase-cta__link:hover { color: var(--green-dark); }
.antikase-cta__link::after { content: '→'; transition: transform 0.2s; }
.antikase-cta__link:hover::after { transform: translateX(3px); }
@media (max-width: 800px) {
  .antikase-cta { grid-template-columns: 1fr; }
  .antikase-cta__photo { min-height: 240px; }
  .antikase-cta__body { padding: 28px 22px; }
  .antikase-cta__body h2 { font-size: 1.3rem; }
}

/* ── Calculator ── */
.calculator {
  background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.calculator__title { font-size: 1.3rem; margin-bottom: 24px; }
.calculator__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.calculator__result {
  background: var(--green-pale); border-radius: var(--radius-sm); padding: 20px; text-align: center;
  display: none;
}
.calculator__result.show { display: block; }
.calculator__result-label { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 4px; }
.calculator__result-value { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; color: var(--green); }

/* ── Breadcrumbs ── */
.breadcrumbs { padding: 20px 0 0; }
.breadcrumbs__list { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.breadcrumbs__item { color: var(--gray); }
.breadcrumbs__item a { color: var(--gray); }
.breadcrumbs__item a:hover { color: var(--green); }
.breadcrumbs__separator { color: var(--border); }

/* ── Page: Blog specifics ── */
.blog-grid { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.blog-sidebar { position: sticky; top: 100px; }
.blog-sidebar__section { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); margin-bottom: 20px; }
.blog-sidebar__section h4 { margin-bottom: 16px; }
.blog-sidebar__list a { display: block; padding: 8px 0; font-size: 0.9rem; color: var(--text); border-bottom: 1px solid var(--border); }
.blog-sidebar__list a:last-child { border-bottom: none; }
.blog-sidebar__list a:hover { color: var(--green); }

/* ── Page: 404 ── */
.page-404 {
  min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 120px 20px 60px;
}
.page-404__number { font-family: var(--font-heading); font-size: 8rem; font-weight: 800; color: var(--green-pale); line-height: 1; margin-bottom: 16px; }
.page-404 h1 { font-size: 2rem; margin-bottom: 12px; }
.page-404 p { color: var(--text-secondary); margin-bottom: 32px; }
.page-404__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.page-404__links a { padding: 10px 20px; border-radius: var(--radius-sm); background: var(--green-pale); color: var(--green-dark); font-weight: 500; font-size: 0.9rem; }
.page-404__links a:hover { background: var(--green); color: var(--white); }

/* ── Tender Form (modal-like) ── */
.tender-form {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--border); margin-top: 40px;
}
.tender-form__title { font-size: 1.3rem; margin-bottom: 24px; }

/* ── Footer ── */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand { }
.footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__logo svg { width: 36px; height: 36px; }
.footer__logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--white); }
.footer__logo-text span { color: var(--green-light); }
.footer__desc { font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.footer__social a:hover { background: var(--green); }
.footer__social a svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.8); }
.footer__column h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer__column a { display: block; padding: 4px 0; font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer__column a:hover { color: var(--green-light); }
.footer__contacts li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.9rem; }
.footer__contacts svg { width: 16px; height: 16px; fill: var(--green-light); flex-shrink: 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; }
.footer__bottom a { color: rgba(255,255,255,0.5); }
.footer__bottom a:hover { color: var(--green-light); }

/* ── Scroll to Top ── */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer; opacity: 0; visibility: hidden;
  transition: all var(--transition); transform: translateY(20px);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--green-light); transform: translateY(-2px); }
.scroll-top svg { width: 20px; height: 20px; fill: currentColor; }

/* ── Stats Counter ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center; }
.stats__item {}
.stats__value { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--green); }
.stats__label { font-size: 0.9rem; color: var(--text-secondary); margin-top: 4px; }

/* ── Verification Steps ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.step { text-align: center; padding: 24px; counter-increment: step; }
.step::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: var(--white);
  font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; margin: 0 auto 16px;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: var(--text-secondary); }

/* ── Material Tabs ── */
.material-tabs { margin-bottom: 32px; }
.material-tabs__nav { display: flex; gap: 4px; border-bottom: 2px solid var(--border); }
.material-tab {
  padding: 12px 24px; font-weight: 500; font-size: 0.9rem; color: var(--text-secondary);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition);
}
.material-tab:hover { color: var(--green); }
.material-tab.active { color: var(--green); border-bottom-color: var(--green); }
.material-tabs__content { padding: 24px 0; }
.material-tabs__panel { display: none; }
.material-tabs__panel.active { display: block; }

/* ══════════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet (max-width: 1024px) ── */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.85rem; }
  .section { padding: 60px 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { flex-direction: column; }
  .hero__content { max-width: 100%; }
  .hero h1 { font-size: 2.75rem; }
  .hero__stats { gap: 24px; }
  .pipeline__steps { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .pipeline__step { max-width: 160px; }
  .pipeline__arrow { display: none; }
  .catalog-layout { grid-template-columns: 240px 1fr; gap: 24px; }
  .calculator__grid { grid-template-columns: repeat(2, 1fr); }
  .cta-section { padding: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile (max-width: 768px) ── */
@media (max-width: 768px) {
  body { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  /* Topbar & Header */
  .topbar { display: none; }
  .header__nav { display: none; }
  .header__actions .btn { display: none; }
  .burger { display: block; }
  .header__inner { height: 60px; }

  /* Hero */
  .hero { padding: 48px 0 40px; min-height: 400px; }
  .hero__content { padding: 28px 24px; }
  .hero h1 { font-size: 1.75rem; }
  .hero__text { font-size: 0.95rem; }
  .hero__stats { gap: 16px; flex-wrap: wrap; }
  .hero__stat-value { font-size: 1.25rem; }
  .hero h1 { font-size: 2rem; }
  .hero__text { font-size: 1rem; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
  .hero__stats { flex-wrap: wrap; gap: 16px; }
  .hero__stat { flex: 1; min-width: 80px; }

  /* Pipeline */
  .pipeline__steps { flex-direction: column; align-items: center; gap: 20px; }
  .pipeline__step { max-width: 280px; display: flex; align-items: center; gap: 16px; text-align: left; }
  .pipeline__icon { margin: 0; flex-shrink: 0; width: 60px; height: 60px; }
  .pipeline__icon svg { width: 28px; height: 28px; }

  /* Catalog */
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 998; border-radius: 0; overflow-y: auto; padding-top: 72px; }
  .filters.open { display: block; }
  .filters__close { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 0.85rem; font-weight: 500; color: var(--danger); padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--danger); background: #fff; }
  .filters__close:hover { background: var(--danger); color: #fff; }
  .filters-toggle { display: flex; }
  .catalog-header { flex-direction: column; align-items: flex-start; }

  /* CTA */
  .cta-section { padding: 32px 20px; border-radius: var(--radius); }
  .cta-cards { grid-template-columns: 1fr; }

  /* Calculator */
  .calculator { padding: 24px; }
  .calculator__grid { grid-template-columns: 1fr; }

  /* Tender */
  .tender-card { grid-template-columns: 1fr; }
  .tender-card__aside { align-items: flex-start; flex-direction: row; gap: 12px; margin-top: 8px; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Steps */
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Breadcrumbs */
  .breadcrumbs { padding: 16px 0 0; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Material tabs scroll */
  .material-tabs__nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .material-tab { white-space: nowrap; }
}

/* ── Small Mobile (max-width: 480px) ── */
@media (max-width: 480px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.35rem; }
  .hero { padding: 48px 0 36px; }
  .hero h1 { font-size: 1.65rem; }
  .hero__stats { gap: 12px; }
  .hero__stat-value { font-size: 1.35rem; }
  .card__body { padding: 16px; }
  .card__footer { padding: 12px 16px; }
  .card__price { font-size: 1.1rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .btn--lg { padding: 14px 28px; }
  .pagination__btn { width: 36px; height: 36px; font-size: 0.85rem; }
  .page-404__number { font-size: 5rem; }
  .chips { gap: 6px; }
  .chip { padding: 6px 14px; font-size: 0.8rem; }
}

/* ── Animations ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.6s ease forwards; }
