/* ========== Design system — premium ========== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --white: #ffffff;
  --bg: #f4f5f7;
  --bg-card: #ffffff;
  --bg-elevated: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  --text: #0f1114;
  --text2: #3d4450;
  --text3: #6b7288;
  --border: #e8eaef;
  --border-subtle: rgba(15, 17, 20, 0.06);
  --red: #a61d32;
  --red-hover: #8a1829;
  --red-soft: rgba(166, 29, 50, 0.09);
  --red-glow: rgba(166, 29, 50, 0.22);
  --gold: #b8956a;
  --gold-soft: rgba(184, 149, 106, 0.12);
  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 17, 20, 0.04), 0 1px 3px rgba(15, 17, 20, 0.06);
  --shadow: 0 4px 6px -1px rgba(15, 17, 20, 0.05), 0 10px 28px -8px rgba(15, 17, 20, 0.1);
  --shadow-lg: 0 20px 50px -12px rgba(15, 17, 20, 0.14), 0 8px 20px -6px rgba(15, 17, 20, 0.06);
  --shadow-card-hover: 0 24px 48px -12px rgba(15, 17, 20, 0.12), 0 0 0 1px rgba(184, 149, 106, 0.08);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, .logo, .page-title, .section-title, .breadcrumb { font-family: var(--font-display); }
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, var(--shadow-sm);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, #2c3138 55%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not (background-clip: text) {
  .logo { background: none; -webkit-text-fill-color: unset; color: var(--red); }
}
.logo-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--red);
  filter: drop-shadow(0 2px 4px var(--red-glow));
}
.logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.header .nav { display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; min-width: 0; }
.header .nav a { padding: 10px 14px; font-size: 13px; color: var(--text2); font-weight: 600; letter-spacing: 0.01em; border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition); }
.header .nav a, .nav-catalog-btn { white-space: nowrap; }
.header .nav a:hover { color: var(--red); background: var(--red-soft); }
.nav-catalog-wrap { position: relative; }
.nav-catalog-btn { display: inline-flex; align-items: center; padding: 10px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--text2); background: none; border: none; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-display); transition: color var(--transition), background var(--transition); }
.nav-catalog-btn:hover { color: var(--red); background: var(--red-soft); }
.nav-catalog-wrap:hover .nav-catalog-dropdown { opacity: 1; visibility: visible; }
.nav-catalog-dropdown { position: absolute; top: 100%; left: 0; margin-top: 8px; min-width: 216px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 8px 0; opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition); z-index: 150; }
.nav-catalog-dropdown.open { opacity: 1; visibility: visible; }
.nav-catalog-dropdown a { display: block; padding: 12px 18px; font-size: 14px; color: var(--text); white-space: nowrap; }
.nav-catalog-dropdown a:hover { background: var(--red-soft); color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-actions .icon-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--border-subtle);
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text2);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.header-actions .icon-btn:hover { background: var(--red-soft); color: var(--red); border-color: rgba(166, 29, 50, 0.15); box-shadow: var(--shadow); transform: translateY(-1px); }
.header-actions .icon-btn:focus-visible { outline: none; border-color: rgba(166, 29, 50, 0.35); box-shadow: 0 0 0 3px var(--red-soft), var(--shadow); }
.header-actions .icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-actions .icon-btn#favBtn svg { fill: currentColor; stroke: none; }
.header-actions .icon-btn .count {
  position: absolute; top: 4px; right: 4px;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--red); color: var(--white);
  font-size: 11px; font-weight: 600; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.header-phone { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--text); display: inline-flex; align-items: center; font-family: var(--font-display); }
.header-phone:hover { color: var(--red); }
.header-phone-icon { display: none; }
.header-phone-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-search { position: relative; flex-shrink: 0; }
.header-search-toggle { width: 44px; height: 44px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--white); color: var(--text2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.header-search-toggle:hover { background: var(--red-soft); color: var(--red); border-color: rgba(166, 29, 50, 0.15); box-shadow: var(--shadow); transform: translateY(-1px); }
.header-search-toggle:focus-visible { outline: none; border-color: rgba(166, 29, 50, 0.35); box-shadow: 0 0 0 3px var(--red-soft), var(--shadow); }
.header-search-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.header-search-panel { position: absolute; top: calc(100% + 10px); right: 0; width: min(520px, calc(100vw - 32px)); background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; z-index: 170; }
.header-search-form { display: flex; align-items: center; gap: 8px; }
.header-search-input { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255,255,255,0.82); color: var(--text); font-size: 14px; }
.header-search-input:focus { outline: none; border-color: rgba(166, 29, 50, 0.3); box-shadow: 0 0 0 3px var(--red-soft); background: var(--white); }
.header-search-btn { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); color: var(--text2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.header-search-btn:hover { color: var(--red); background: var(--red-soft); border-color: rgba(166, 29, 50, 0.18); }
.header-search-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.header-search-list { margin-top: 8px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius); overflow: hidden; }
.header-search-list a { display: block; padding: 10px 12px; font-size: 14px; color: var(--text2); border-bottom: 1px solid var(--border-subtle); }
.header-search-list a:last-child { border-bottom: none; }
.header-search-list a:hover { background: var(--red-soft); color: var(--red); }

/* Burger (mobile) */
.burger-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border-subtle);
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  align-items: center; justify-content: center;
  font-size: 0; color: var(--text2);
  transition: background var(--transition), color var(--transition);
}
.burger-btn:hover { background: var(--red-soft); color: var(--red); }
.burger-icon, .burger-icon-close { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 20px; }
.burger-icon span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px; }
.burger-icon-close { display: none; position: relative; width: 20px; height: 20px; gap: 0; }
.burger-icon-close span { position: absolute; width: 20px; height: 2px; background: currentColor; border-radius: 1px; top: 9px; left: 0; }
.burger-icon-close span:first-child { transform: rotate(45deg); }
.burger-icon-close span:last-child { transform: rotate(-45deg); }
.burger-btn.open .burger-icon { display: none; }
.burger-btn.open .burger-icon-close { display: flex; }

@media (max-width: 900px) {
  .burger-btn { display: flex; position: relative; z-index: 101; }
  .header .nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-card);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 80px 24px 32px;
    gap: 0;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: 99;
    overflow-y: auto;
    box-shadow: none;
  }
  .header.nav-open .nav { transform: translateX(0); visibility: visible; }
  .header .nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-catalog-wrap { border-bottom: 1px solid var(--border); }
  .nav-catalog-btn { padding: 14px 0; width: 100%; justify-content: space-between; font-size: 16px; }
  .nav-catalog-dropdown {
    position: static; margin-top: 0; margin-bottom: 8px;
    box-shadow: none; border: none; border-radius: 0;
    padding: 0 0 0 16px; min-width: 0;
    max-height: 0; overflow: hidden; opacity: 1; visibility: visible;
    transition: max-height 0.25s ease;
  }
  .nav-catalog-wrap.open .nav-catalog-dropdown { max-height: 400px; }
  .nav-catalog-dropdown a { padding: 10px 0; font-size: 15px; border-radius: 0; }
  .header-phone-text { display: none; }
  .header-phone-icon { display: inline-flex; font-size: 20px; }
  .header-phone {
    width: 44px; height: 44px;
    padding: 0; border-radius: var(--radius-sm);
    background: var(--bg);
    align-items: center; justify-content: center;
    font-size: 0;
    transition: background var(--transition), color var(--transition);
  }
  .header-phone:hover { background: var(--red-soft); color: var(--red); }
}
@media (max-width: 1280px) {
  .header .nav a { padding: 9px 10px; font-size: 12px; }
  .nav-catalog-btn { padding: 9px 10px; font-size: 12px; }
}
@media (max-width: 1100px) {
  .header-inner { gap: 12px; }
}
.header .nav a:focus-visible,
.nav-catalog-btn:focus-visible,
.header-phone:focus-visible,
.btn-hero:focus-visible,
.block-about-text .btn-about:focus-visible,
.btn-help:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--red-soft);
  border-radius: var(--radius-sm);
}

/* Hero (index) */
.hero {
  padding: 64px 0 56px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(166, 29, 50, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, #f0f1f4 0%, var(--white) 42%, var(--white) 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.hero h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.2;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero p { font-size: 16px; color: var(--text2); max-width: 520px; margin: 0 auto; font-weight: 500; line-height: 1.7; }
.hero-kicker { display: inline-block; margin-bottom: 14px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(166, 29, 50, 0.16); background: rgba(255, 255, 255, 0.82); color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.hero-actions { margin-top: 22px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-hero { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 20px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition); }
.btn-hero-primary { color: var(--white); background: linear-gradient(165deg, #b82a40 0%, var(--red) 50%, #7a1526 100%); box-shadow: 0 6px 20px var(--red-glow); }
.btn-hero-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px var(--red-glow); }
.btn-hero-secondary { color: var(--text); background: var(--white); border: 1px solid var(--border); }
.btn-hero-secondary:hover { background: #f9fafb; border-color: rgba(166, 29, 50, 0.22); color: var(--red); }
.hero-stats { margin: 20px auto 0; max-width: 780px; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-stats li { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border-subtle); background: rgba(255, 255, 255, 0.75); box-shadow: var(--shadow-sm); text-align: center; display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-size: 14px; font-weight: 800; color: var(--text); line-height: 1.2; }
.hero-stats span { font-size: 12px; color: var(--text3); font-weight: 600; }

/* Section & titles */
.section { padding: 64px 0 80px; background: var(--white); }
.section-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--text);
  letter-spacing: -0.03em;
  position: relative;
  padding-bottom: 14px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--red) 100%);
}

/* Category grid (index) */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.trust-strip { margin-bottom: 20px; padding: 14px 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--bg-elevated); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.trust-label { color: var(--text3); font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.trust-logos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trust-logos span { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--white); color: var(--text2); font-size: 12px; font-weight: 700; }
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-slow), border-color var(--transition), transform var(--transition);
}
.cat-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(184, 149, 106, 0.25);
  transform: translateY(-4px);
}
.cat-card__img { aspect-ratio: 4/3; background: var(--bg); overflow: hidden; }
.cat-card__img picture { display: block; width: 100%; height: 100%; }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.cat-card:hover .cat-card__img img { transform: scale(1.03); }
.cat-card__body { padding: 20px; }
.cat-card__title { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); letter-spacing: -0.02em; font-family: var(--font-display); }
.cat-card__count { font-size: 12px; color: var(--text3); font-weight: 500; letter-spacing: 0.02em; }
.cat-card__arrow { font-size: 12px; font-weight: 700; color: var(--red); margin-top: 12px; display: inline-block; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 500px) { .cat-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 26px; } }

/* Home page: about company block */
.block-about { padding: 56px 0; border-bottom: 1px solid var(--border-subtle); background: var(--white); }
.block-about-inner { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.block-about-text h2 { font-size: 24px; font-weight: 800; margin-bottom: 16px; color: var(--text); letter-spacing: -0.03em; }
.block-about-text p { font-size: 15px; color: var(--text2); margin: 0 0 14px; line-height: 1.75; }
.block-about-text .btn-about {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 28px;
  background: linear-gradient(165deg, #b82a40 0%, var(--red) 45%, #7a1526 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px var(--red-glow);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  font-family: var(--font-display);
}
.block-about-text .btn-about:hover { filter: brightness(1.06); box-shadow: 0 8px 24px var(--red-glow); transform: translateY(-1px); }
.block-about-photo { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: var(--bg); border: 1px solid var(--border-subtle); }
.block-about-photo picture { display: block; width: 100%; height: 100%; }
.block-about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) { .block-about-inner { grid-template-columns: 1fr; gap: 24px; } .block-about-photo { max-width: 400px; margin: 0 auto; } }

/* Home page: help form block */
.block-help { padding: 56px 0; border-bottom: 1px solid var(--border-subtle); background: linear-gradient(180deg, var(--bg) 0%, #eef0f3 100%); }
.block-help-inner { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.block-help-form {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow);
}
.block-help-form h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; color: var(--text); letter-spacing: -0.03em; }
.help-response-time { margin: -8px 0 14px; color: var(--red); font-size: 13px; font-weight: 700; }
.help-benefits { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.help-benefits li { position: relative; padding-left: 20px; color: var(--text2); font-size: 13px; }
.help-benefits li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 800; }
.block-help-form .form-row { margin-bottom: 14px; }
.block-help-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text2); }
.block-help-form input { width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; background: #fafbfc; transition: border-color var(--transition), box-shadow var(--transition), background var(--transition); }
.block-help-form input:focus { outline: none; border-color: rgba(166, 29, 50, 0.35); background: var(--white); box-shadow: 0 0 0 3px var(--red-soft); }
.block-help-form .btn-help {
  width: 100%;
  margin-top: 10px;
  padding: 15px;
  background: linear-gradient(165deg, #b82a40 0%, var(--red) 45%, #7a1526 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: var(--font-display);
  box-shadow: 0 4px 16px var(--red-glow);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.block-help-form .btn-help:hover { filter: brightness(1.06); box-shadow: 0 8px 28px var(--red-glow); transform: translateY(-1px); }
.block-help-form .form-note { font-size: 12px; color: var(--text3); margin-top: 12px; }
.block-help-side { text-align: center; }
.block-help-phone { font-size: 22px; font-weight: 800; color: var(--red); margin-bottom: 16px; letter-spacing: -0.02em; font-family: var(--font-display); }
.block-help-phone a { color: inherit; }
.block-help-phone a:hover { text-decoration: underline; }
.block-help-operator { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; background: var(--gold-soft); border: 3px solid var(--white); box-shadow: var(--shadow), 0 0 0 1px var(--gold-soft); display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--red); }
.block-help-operator picture { display: block; width: 100%; height: 100%; }
.block-help-operator img { width: 100%; height: 100%; object-fit: cover; display: block; }
.block-help-side p { font-size: 14px; color: var(--text2); margin: 0; }
@media (max-width: 768px) { .block-help-inner { grid-template-columns: 1fr; } .block-help-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; text-align: left; } .block-help-operator { margin: 0; } }
@media (max-width: 768px) { .hero-stats { grid-template-columns: 1fr; max-width: 420px; } .hero-actions { gap: 10px; } .btn-hero { width: 100%; max-width: 340px; } .trust-strip { margin-bottom: 16px; } }

/* Home page: legal entities block */
.block-legal { padding: 56px 0; border-bottom: 1px solid var(--border-subtle); background: var(--white); }
.block-legal h2 { font-size: 24px; font-weight: 800; margin-bottom: 18px; color: var(--text); letter-spacing: -0.03em; }
.block-legal p { font-size: 15px; color: var(--text2); margin: 0 0 12px; line-height: 1.65; width: 100%; }
.block-legal ul { margin: 12px 0 0; padding-left: 24px; color: var(--text2); font-size: 15px; line-height: 1.7; }
.block-legal a { color: var(--red); font-weight: 600; }
.block-legal a:hover { text-decoration: underline; }

/* Home page: guarantees block */
.block-guarantee { padding: 56px 0; border-bottom: 1px solid var(--border-subtle); background: linear-gradient(180deg, #f7f8fa 0%, var(--bg) 100%); }
.block-guarantee h2 { font-size: 24px; font-weight: 800; margin-bottom: 18px; color: var(--text); letter-spacing: -0.03em; }
.block-guarantee p { font-size: 15px; color: var(--text2); margin: 0 0 12px; line-height: 1.65; width: 100%; }
.block-guarantee ul { margin: 12px 0 0; padding-left: 24px; color: var(--text2); font-size: 15px; line-height: 1.7; }

/* Page head (catalog & info pages) */
.page-head { padding: 28px 0 22px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 28px; }
.page-title { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin-bottom: 8px; color: var(--text); letter-spacing: -0.035em; }
.breadcrumb { font-size: 12px; color: var(--text3); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.breadcrumb a { color: var(--red); }
.breadcrumb a:hover { text-decoration: underline; }

/* Category description under products — full width of container */
.category-desc { width: 100%; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--border-subtle); }
.category-desc h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; color: var(--text); letter-spacing: -0.02em; }
.category-desc p { font-size: 14px; line-height: 1.65; color: var(--text2); margin: 0 0 12px; }
.category-desc p:last-child { margin-bottom: 0; }
.catalog-tools { margin: -6px 0 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.catalog-tools-search, .catalog-tools-sort { height: 40px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); color: var(--text); font-size: 14px; padding: 0 12px; }
.catalog-tools-search { min-width: 240px; flex: 1; }
.catalog-tools-sort { min-width: 220px; }
.catalog-tools-search:focus, .catalog-tools-sort:focus { outline: none; border-color: rgba(166, 29, 50, 0.3); box-shadow: 0 0 0 3px var(--red-soft); }
@media (max-width: 640px) { .catalog-tools-search, .catalog-tools-sort { width: 100%; min-width: 0; } }

/* Каталог: воздух между текстом категории (main) и блоком «Помощь в подборе» */
main + .block-help {
  margin-top: 56px;
}

/* Footer */
.footer {
  padding: 44px 24px 48px;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, #1a1d24 0%, #12141a 100%);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  letter-spacing: 0.02em;
}
.footer .wrap { max-width: 1200px; margin: 0 auto; color: rgba(255, 255, 255, 0.62); }

/* Catalog grid (kolesa) */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-slow), border-color var(--transition), transform var(--transition);
}
.catalog-card:hover { box-shadow: var(--shadow-card-hover); border-color: rgba(184, 149, 106, 0.22); transform: translateY(-2px); }
.catalog-card .p-thumb { display: block; width: 100%; max-height: 220px; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--bg); flex-shrink: 0; }
.catalog-card .p-thumb picture { display: block; width: 100%; height: 100%; }
.catalog-card .p-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; vertical-align: top; transition: transform var(--transition-slow); }
.catalog-card:hover .p-thumb img { transform: scale(1.02); }
.catalog-card .p-name { font-size: 16px; font-weight: 600; margin: 12px 0 4px; color: var(--text); }
.catalog-card .p-art { font-size: 13px; color: var(--text3); }
.catalog-card .p-specs { font-size: 12px; color: var(--text3); margin: 6px 0 4px; }
.catalog-card .p-specs span { display: block; }
.catalog-card .p-price { color: var(--red); font-weight: 700; font-size: 18px; margin: 8px 0 12px; }
.catalog-card .actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn-fav, .btn-buy {
  border: none; cursor: pointer;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; font-family: var(--font-display);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), filter var(--transition), transform var(--transition);
}
.btn-fav { background: var(--bg); color: var(--text2); display: inline-flex; align-items: center; gap: 6px; }
.btn-fav:hover { background: var(--red-soft); color: var(--red); }
.btn-fav:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--red-soft); }
.btn-fav .fav-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn-fav .fav-label { line-height: 1; }
.btn-fav.in-fav { color: var(--red); }
.btn-fav.in-fav .fav-icon { fill: currentColor; stroke: none; }
.btn-buy {
  background: linear-gradient(165deg, #b82a40 0%, var(--red) 50%, #7a1526 100%);
  color: var(--white);
  box-shadow: 0 2px 10px var(--red-glow);
}
.btn-buy:hover { filter: brightness(1.08); box-shadow: 0 6px 20px var(--red-glow); transform: translateY(-1px); }
@media (max-width: 900px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 600px) { .catalog-grid { grid-template-columns: 1fr; } }

/* Catalog table (filtry, masla, etc.) */
.catalog-table { width: 100%; border-collapse: collapse; font-size: 14px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border-subtle); }
.catalog-table th { text-align: left; padding: 16px 18px; background: linear-gradient(180deg, #f8f9fb 0%, #f0f2f5 100%); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); border-bottom: 1px solid var(--border-subtle); font-family: var(--font-display); }
.catalog-table td { padding: 16px 18px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; background: var(--bg-card); }
.catalog-table tbody tr:hover td { background: linear-gradient(90deg, var(--red-soft) 0%, rgba(255,255,255,0.5) 100%); }
.catalog-table tbody tr:last-child td { border-bottom: none; }
.cat-cell-img { width: 88px; }
.cat-cell-img .p-thumb { width: 80px; height: 48px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); cursor: pointer; display: block; }
.cat-cell-img .p-thumb picture { display: block; width: 100%; height: 100%; }
.cat-cell-img .p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-cell-name { min-width: 200px; }
.cat-cell-name .p-name { font-weight: 600; color: var(--text); }
.cat-cell-name .p-art { font-size: 12px; color: var(--text3); }
.cat-cell-specs { font-size: 12px; color: var(--text3); max-width: 180px; }
.cat-cell-specs .p-specs-line { display: block; }
.cat-cell-price { font-weight: 600; color: var(--red); white-space: nowrap; }
.cat-cell-actions { white-space: nowrap; text-align: right; width: 1%; }
@media (max-width: 768px) {
  .catalog-table th:nth-child(3), .catalog-table td:nth-child(3) { display: none; }
  .cat-cell-name { min-width: 120px; }
}

/* Content (about, contacts, how-we-work, payment-delivery) — full width of container */
.content { padding: 32px 0 56px; width: 100%; }
.content h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; color: var(--text); }
.content h2:first-child { margin-top: 0; }
.content p { margin: 0 0 16px; color: var(--text2); }
.content p > img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 8px; }
.content ul { margin: 0 0 16px; padding-left: 24px; color: var(--text2); }
.content li { margin-bottom: 8px; }
.contact-block { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; width: 100%; max-width: none; }
.contact-block h2 { font-size: 16px; font-weight: 700; margin: 0 0 12px; color: var(--text); }
.contact-block p { margin: 0 0 8px; color: var(--text2); }
.contact-block a { color: var(--red); font-weight: 600; }
.contact-block a:hover { text-decoration: underline; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 36px; align-items: start; }
.about-main { min-width: 0; }
.about-side { position: sticky; top: 96px; }
.about-photo { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-lg); background: var(--bg-card); }
.about-photo img { width: 100%; height: auto; display: block; }
.about-note { margin-top: 14px; padding: 16px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); }
.about-note h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; color: var(--text); }
.about-note p { margin: 0; font-size: 14px; color: var(--text2); }
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; gap: 22px; }
  .about-side { position: static; }
}
.steps { list-style: none; padding: 0; margin: 24px 0; }
.steps li { position: relative; padding-left: 40px; margin-bottom: 20px; color: var(--text2); }
.steps li::before { content: attr(data-step); position: absolute; left: 0; width: 28px; height: 28px; background: var(--red); color: var(--white); font-size: 13px; font-weight: 700; border-radius: 50%; text-align: center; line-height: 28px; }

/* Header nav dropdown responsive */
@media (max-width: 900px) {
  .nav-catalog-dropdown { min-width: 160px; }
}
@media (max-width: 600px) {
  .header .nav a { padding: 6px 10px; font-size: 13px; }
  .nav-catalog-btn { padding: 6px 10px; font-size: 13px; }
}

/* Cart & Favorites panel */
.cart-panel { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.cart-panel[data-open="true"] { pointer-events: auto; }
.cart-panel-overlay { position: fixed; inset: 0; background: rgba(10, 12, 18, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity var(--transition-slow); }
.cart-panel[data-open="true"] .cart-panel-overlay { opacity: 1; }
.cart-panel-inner { position: fixed; top: 0; right: 0; width: 100%; max-width: 400px; height: 100vh; background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%); box-shadow: -12px 0 48px rgba(15, 17, 20, 0.12); border-left: 1px solid var(--border-subtle); transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; display: flex; flex-direction: column; }
.cart-panel[data-open="true"] .cart-panel-inner { transform: translateX(0); }
.cart-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cart-panel-head h3 { font-size: 17px; font-weight: 800; margin: 0; color: var(--text); letter-spacing: -0.02em; }
.cart-close { width: 40px; height: 40px; border: none; background: var(--bg); border-radius: var(--radius-sm); font-size: 22px; line-height: 1; cursor: pointer; color: var(--text2); transition: background var(--transition), color var(--transition); }
.cart-close:hover { background: var(--red-soft); color: var(--red); }
.cart-panel-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty { color: var(--text3); font-size: 14px; text-align: center; padding: 28px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cart-empty-icon { width: 28px; height: 28px; color: var(--text3); opacity: 0.8; }
.cart-empty-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-empty:nth-child(1) .cart-empty-icon svg path:first-child { fill: none; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.cart-item-art { font-size: 12px; color: var(--text3); }
.cart-item-price { font-size: 14px; font-weight: 600; color: var(--red); }
.cart-item-remove { align-self: flex-start; border: 1px solid var(--border-subtle); background: var(--white); color: var(--text3); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; transition: color var(--transition), background var(--transition), border-color var(--transition); }
.cart-item-remove svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-item-remove:hover { color: var(--red); background: var(--red-soft); border-color: rgba(166, 29, 50, 0.18); }
.cart-panel-footer { padding: 18px 20px; border-top: 1px solid var(--border); }
.cart-total { font-size: 16px; margin-bottom: 12px; color: var(--text); }
.btn-cart-order { width: 100%; padding: 15px; background: linear-gradient(165deg, #b82a40 0%, var(--red) 50%, #7a1526 100%); color: var(--white); border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; font-family: var(--font-display); box-shadow: 0 4px 16px var(--red-glow); transition: filter var(--transition), box-shadow var(--transition), transform var(--transition); }
.btn-cart-order:hover { filter: brightness(1.06); box-shadow: 0 8px 24px var(--red-glow); transform: translateY(-1px); }

/* Order form modal */
.order-form-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.5); }
.order-form-modal-inner { background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%); border-radius: var(--radius-xl); padding: 32px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-subtle); }
.order-form-modal-inner h3 { font-size: 20px; font-weight: 700; margin: 0 0 20px; color: var(--text); }
.order-form-modal-inner .form-group { margin-bottom: 16px; }
.order-form-modal-inner label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text2); }
.order-form-modal-inner input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; }
.order-form-modal-inner input:focus { outline: none; border-color: var(--red); }
.order-form-modal-inner input::placeholder { color: var(--text3); }
.order-form-modal-inner .form-err { font-size: 12px; color: var(--red); margin-top: 4px; }
.order-form-modal-inner .form-actions { display: flex; gap: 10px; margin-top: 24px; }
.order-form-modal-inner .btn-submit { flex: 1; padding: 12px; background: var(--red); color: var(--white); border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background var(--transition); }
.order-form-modal-inner .btn-submit:hover { background: var(--red-hover); }
.order-form-modal-inner .btn-cancel { padding: 12px 18px; background: var(--bg); color: var(--text2); border: none; border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; font-family: inherit; transition: background var(--transition); }
.order-form-modal-inner .btn-cancel:hover { background: var(--border); }

/* Image zoom modal */
.img-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.img-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.88); cursor: pointer; }
.img-modal-inner { position: relative; max-width: 90vw; max-height: 90vh; z-index: 2001; }
.img-modal-inner img { max-width: 100%; max-height: 85vh; width: auto; height: auto; display: block; border-radius: var(--radius); }
.img-modal-close { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; border: none; background: var(--bg-card); color: var(--text); font-size: 24px; line-height: 1; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition); }
.img-modal-close:hover { background: var(--bg); }
