:root {
  --bg: #f3f5f7;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #0ea5e9;
  --accent-2: #2563eb;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

.page-home {
  background: linear-gradient(180deg, #f8fafc 0%, #f2f5f8 100%);
  color: var(--text);
}

.container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.premium-card {
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
}

.section-kicker,
.hero-kicker {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.home-hero {
  padding: 32px 0 24px;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.home-hero__content {
  padding: 28px 8px 0 0;
}

.home-hero__content h1 {
  margin: 12px 0 18px;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.home-hero__lead {
  margin: 0 0 22px;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.home-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.trust-pill,
.chip,
.size-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef2f7;
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
}

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
}

.btn-block {
  width: 100%;
}

.home-search-card {
  padding: 18px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.home-search-card__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.home-tab {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: #eef2f7;
  font-weight: 700;
  cursor: pointer;
}

.home-tab.is-active {
  background: #0f172a;
  color: #fff;
}

.home-tab.is-disabled {
  opacity: 0.5;
  cursor: default;
}

.home-search-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  margin-bottom: 18px;
}

.search-mode-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.search-mode-btn.is-active {
  background: #0f172a;
  color: #fff;
}

.search-mode-panel {
  display: none;
}

.search-mode-panel.is-active {
  display: block;
}

.home-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.form-field select,
.form-field input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
}

.home-search-submit,
.home-search-submit--full {
  align-self: end;
}

.home-search-submit--full {
  grid-column: 1 / -1;
}

.home-search-help,
.home-search-note {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.home-sizes,
.home-recommended,
.home-brands,
.home-benefits,
.home-seo-text,
.home-faq {
  padding: 28px 0;
}

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.size-pill:hover {
  background: #dbeafe;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
}

.product-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  text-decoration: none;
}

.product-card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card__body {
  padding: 18px;
}

.product-card__brand {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.product-card__title {
  display: block;
  min-height: 72px;
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 12px;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.product-card__price-row {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.product-card__price {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.product-card__old-price {
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 700;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.brand-tile {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
}

.brand-tile__title {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 6px;
}

.brand-tile__count {
  color: var(--muted);
  font-size: 14px;
}

.benefits-grid,
.faq-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.benefit-card,
.faq-item,
.seo-card {
  padding: 24px;
}

.benefit-card h3,
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.benefit-card p,
.faq-item p,
.seo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.seo-card h2 {
  margin: 8px 0 16px;
  font-size: clamp(28px, 3vw, 40px);
}

@media (max-width: 1100px) {
  .home-hero__grid,
  .product-row,
  .brands-grid,
  .benefits-grid,
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero__grid {
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 100%);
  }

  .home-hero {
    padding-top: 18px;
  }

  .home-hero__grid,
  .product-row,
  .brands-grid,
  .benefits-grid,
  .faq-list,
  .home-search-grid {
    grid-template-columns: 1fr;
  }

  .home-hero__content h1 {
    font-size: 40px;
    line-height: 0.98;
  }

  .home-search-card {
    padding: 14px;
    border-radius: 22px;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .product-card__title {
    min-height: auto;
    font-size: 18px;
  }

  .product-card__price {
    font-size: 26px;
  }
}