*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:    #E8321A;
  --accent-dk: #C4260F;
  --text:      #1A1A1A;
  --muted:     #6B6B6B;
  --border:    #E2E2E2;
  --bg:        #FFFFFF;
  --bg-alt:    #F6F6F6;
  --radius:    6px;
  --shadow-hover: 0 4px 16px rgba(0,0,0,.12);
}

body { font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.5; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── Кнопки ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: background .15s; }
.btn--primary  { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); }
.btn--outline  { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn--outline:hover { background: #FFF0EE; }
.btn--cart { background: var(--accent); color: #fff; padding: 8px 14px; font-size: 13px; }
.btn--cart:hover { background: var(--accent-dk); }
.btn--sm { padding: 6px 10px; font-size: 12px; }

/* ── Шапка ── */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; gap: 32px; padding: 16px 0; }

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo__img { height: 190px; width: auto; max-width: 300px; object-fit: contain; display: block; transition: transform .18s ease; }
.logo:hover .logo__img { transform: scale(1.08); }
.logo__icon { font-size: 26px; font-weight: 900; color: var(--accent); line-height: 1; }
.logo__text { font-size: 18px; font-weight: 700; }

/* центральный блок: меню в строку сверху, поиск снизу */
.header__main { flex: 1; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

.nav { display: flex; flex-direction: row; gap: 4px; align-items: center; }
.nav__link { padding: 6px 14px; border-radius: var(--radius); font-size: 15px; color: var(--muted); transition: color .15s, background .15s; }
.nav__link:hover, .nav__link--active { color: var(--text); background: var(--bg-alt); }

.search-box { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; width: 100%; }
.search-box__input { border: none; outline: none; padding: 10px 14px; font-size: 14px; width: 100%; }
.search-box__btn { border: none; background: var(--accent); color: #fff; padding: 10px 14px; cursor: pointer; display: flex; align-items: center; }
.search-box__btn:hover { background: var(--accent-dk); }

/* правый блок: патент + корзина */
.header__right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header__patent { font-size: 16px; font-weight: 700; letter-spacing: .5px; color: var(--muted); white-space: nowrap; }
.cart-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid var(--border); color: var(--text); flex-shrink: 0; }
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-btn__count { position: absolute; top: -5px; right: -5px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ── Hero ── */
.hero { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 48px 0 40px; }
.hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero__eyebrow { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
.hero__title { font-size: 36px; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.hero__sub { font-size: 15px; color: var(--muted); max-width: 420px; margin-bottom: 24px; }
.hero__badges { display: flex; gap: 16px; flex-shrink: 0; }
.badge { display: flex; flex-direction: column; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; min-width: 88px; }
.badge__num { font-size: 22px; font-weight: 800; color: var(--accent); }
.badge__label { font-size: 11px; color: var(--muted); margin-top: 2px; text-align: center; }

/* ── Секции ── */
.section-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.section-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* ── Марки ── */
.brands-section { padding: 48px 0; }
.brands-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.brands-tab { padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px; background: #fff; font-size: 13px; color: var(--muted); cursor: pointer; transition: all .15s; }
.brands-tab:hover { border-color: var(--accent); color: var(--accent); }
.brands-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.brands-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.brand-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; transition: box-shadow .15s, border-color .15s, transform .15s; min-height: 150px; }
.brand-card:hover { box-shadow: var(--shadow-hover); border-color: var(--accent); transform: translateY(-2px); }
.brand-card__img { width: 96px; height: 64px; object-fit: contain; margin-bottom: 16px; }
.brand-card__name { font-size: 15px; font-weight: 600; }
.brand-card__count { font-size: 11px; color: var(--muted); }

/* ── Карточки товаров ── */
.products-section { padding: 48px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 28px; }
.products-section__more { text-align: center; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.product-card__img-wrap { position: relative; height: 150px; background: #F0F0F0; display: flex; align-items: center; justify-content: center; }
.product-card__img-placeholder { font-size: 56px; color: #CCCCCC; font-weight: 900; line-height: 1; }
.product-card__badge { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.product-card__badge--hit { background: var(--accent); color: #fff; }
.product-card__badge--new { background: #1A8C3A; color: #fff; }
.product-card__body { padding: 14px 16px 16px; }
.product-card__art { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.product-card__name { font-size: 13px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.product-card__compat { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.product-card__spec { font-size: 11px; color: var(--muted); padding: 4px 8px; background: var(--bg-alt); border-radius: 4px; margin-bottom: 12px; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; }
.product-card__price { font-size: 18px; font-weight: 700; }

/* ── Преимущества ── */
.features-section { padding: 48px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.feature__icon { font-size: 28px; margin-bottom: 12px; }
.feature__title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature__text { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── Подвал ── */
.footer { background: #1A1A1A; color: #ccc; }
.footer__inner { display: flex; align-items: flex-start; gap: 48px; padding: 36px 20px; flex-wrap: wrap; }
.footer__tagline { font-size: 12px; color: #888; margin-top: 6px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: 13px; color: #aaa; }
.footer__links a:hover { color: #fff; }
.footer__contacts { font-size: 13px; line-height: 1.8; color: #aaa; }
.footer__copy { border-top: 1px solid #333; padding: 14px 20px; font-size: 12px; color: #666; }

/* ── Каталог ── */
.catalogue-hero { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 28px 0; }
.catalogue-hero h1 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.catalogue-hero p { font-size: 14px; color: var(--muted); }
.catalogue-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0 48px; align-items: start; }
.sidebar { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.sidebar__section { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.sidebar__section:last-child { border-bottom: none; }
.sidebar__title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 10px; }
.filter-list { list-style: none; display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.filter-list__item label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 2px 0; width: 100%; }
.filter-list__item input[type=checkbox] { accent-color: var(--accent); width: 14px; height: 14px; flex-shrink: 0; cursor: pointer; }
.filter-count { margin-left: auto; font-size: 11px; color: var(--muted); }
.price-range { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-range input { width: 68px; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; outline: none; }
.price-range input:focus { border-color: var(--accent); }
.catalogue-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.catalogue-toolbar__total { font-size: 13px; color: var(--muted); }
.sort-select { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; cursor: pointer; outline: none; background: #fff; }
.sort-select:focus { border-color: var(--accent); }
.catalogue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination__btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; cursor: pointer; background: #fff; transition: all .15s; }
.pagination__btn:hover, .pagination__btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Адаптив ── */
@media (max-width: 900px) {
  .hero__inner { flex-direction: column; align-items: flex-start; }
  .catalogue-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .search-box__input { width: 100%; }
  .hero__title { font-size: 26px; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Страница доставки ── */
.delivery-page { padding: 32px 0 48px; }
.delivery-h2 { font-size: 20px; font-weight: 700; margin: 32px 0 16px; }
.delivery-h2:first-child { margin-top: 0; }
.delivery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.delivery-card { padding: 24px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.delivery-card__icon { font-size: 32px; margin-bottom: 12px; }
.delivery-card__title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.delivery-card__desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.delivery-card__meta { font-size: 12px; font-weight: 600; color: var(--accent); }
.delivery-info { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.delivery-info__row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.delivery-info__row:last-child { border-bottom: none; }
.delivery-info__label { font-size: 14px; font-weight: 600; }
.delivery-info__value { font-size: 14px; color: var(--muted); line-height: 1.6; }
.delivery-cta { text-align: center; margin-top: 40px; padding: 32px; background: var(--bg-alt); border-radius: var(--radius); }
.delivery-cta p { font-size: 15px; margin-bottom: 16px; }

@media (max-width: 900px) {
  .delivery-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-info__row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 600px) {
  .delivery-grid { grid-template-columns: 1fr; }
}

/* ── Страница контактов ── */
.contacts-page { padding: 32px 0 48px; }
.contacts-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contacts-info { display: flex; flex-direction: column; gap: 8px; }
.contact-block { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.contact-block__icon { font-size: 26px; flex-shrink: 0; line-height: 1.2; }
.contact-block__label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.contact-block__value { font-size: 16px; font-weight: 600; color: var(--text); display: block; }
a.contact-block__value:hover { color: var(--accent); }
.contact-block__note { font-size: 12px; color: var(--muted); margin-top: 2px; }

.contacts-form-wrap { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 28px; }
.contacts-form-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.contacts-form-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.contacts-form { display: flex; flex-direction: column; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; }
.form-input { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s; }
.form-input:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: 11px; color: var(--muted); margin-top: 2px; }

@media (max-width: 900px) {
  .contacts-layout { grid-template-columns: 1fr; }
}

/* ── Страница "О нас" ── */
.about-page { padding: 32px 0 48px; }
.about-intro { max-width: 820px; margin-bottom: 36px; }
.about-intro p { font-size: 16px; line-height: 1.7; color: var(--text); margin-bottom: 16px; }
.about-intro p:last-child { margin-bottom: 0; }

.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 44px; }
.about-stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 16px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); }
.about-stat__num { font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1; }
.about-stat__label { font-size: 13px; color: var(--muted); margin-top: 8px; }

.about-h2 { font-size: 22px; font-weight: 700; margin: 0 0 20px; }
.about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 44px; }
.about-feature { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.about-feature__icon { font-size: 30px; margin-bottom: 12px; }
.about-feature__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.about-feature__text { font-size: 14px; color: var(--muted); line-height: 1.6; }

.about-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.about-step { display: flex; gap: 18px; align-items: flex-start; padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.about-step__num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.about-step__title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.about-step__text { font-size: 14px; color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-features { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .about-stats { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header__inner { gap: 16px; }
  .logo__img { height: 44px; }
}


@media (max-width: 760px) {
  .header__inner { gap: 16px; }
  .logo__img { height: 56px; max-width: 90px; }
  .header__topline { flex-direction: column; align-items: flex-start; gap: 8px; }
  .search-box { max-width: 100%; }
}

/* ── Адаптив шапки ── */
@media (max-width: 900px) {
  .logo__img { height: 120px; max-width: 200px; }
  .header__inner { gap: 20px; }
  .header__patent { display: none; }
}
@media (max-width: 600px) {
  .logo__img { height: 80px; max-width: 130px; }
  .nav { flex-wrap: wrap; }
  .search-box__input { width: 100%; }
}

