/* МКМ · v08. Контрастная шапка, различимые разделы и полноценный подвал.
   Базовая сетка, карточки и окна запросов — в styles.css.
   Этот файл подключён после styles.css; внешних зависимостей нет. */
:root {
  --accent: #bd4f1b;
  --accent-hover: #9f3e12;
  --accent-pale: #fff6ef;
  --accent-line: #e8c5af;
  --graphite: #293238;
  --graphite-deep: #222a30;
  --section-gray: #f1f3f5;
  --section-warm: #f8f4f0;
  --line: #d8dfe3;
}

/* Шапка сохраняет два уровня и прежнюю высоту. */
.site-header { border-top: 3px solid var(--accent); }
.topbar { min-height: 79px; }
.nav-bar { background: var(--graphite); border: 0; }
.main-nav { gap: 2px; }
.nav-link { padding: 0 19px; color: #eef1f3; min-height: 46px; }
.nav-link::after { display: none; }
.nav-link:hover { background: #38434b; color: #fff; }
.nav-link.is-active { color: #fff; background: var(--accent); }
.nav-bar :focus-visible { outline-color: #ffc09a; outline-offset: -4px; }
.brand__descriptor { color: #56636c; }
.header-contact a { display: inline-flex; align-items: center; min-height: 24px; }

/* Каталог остаётся первым: никакого баннера перед моделями. */
.catalog-section { background: var(--section-gray); border-bottom: 1px solid var(--line); }
.section-title { position: relative; padding-left: 18px; }
.section-title::before {
  content: ""; position: absolute; top: .09em; left: 0;
  width: 4px; height: .92em; background: var(--accent);
}
.catalog-heading .section-subtitle { margin-left: 18px; }
.product-card { border-color: #d2dade; border-radius: 3px; }
.product-card:hover { border-color: #b9c4cb; box-shadow: 0 4px 16px rgb(25 35 42 / 7%); }
.product-card__media { border-bottom-color: #e7ebee; }
.request-card { background: #fffaf5; border-color: var(--accent-line); border-left-color: var(--accent); }

/* Разделы: белый, серый, белый, тёплый фон. */
.section { padding: 44px 0; }
.compare-section { background: #fff; }
.compare-section .section-subtitle { max-width: 780px; }
.compare-scroll { border: 1px solid var(--line); border-radius: 3px; margin-top: 24px; }
.comparison { margin-top: 0; }
.compare-hint { display: none; }
.comparison thead { background: #e9edef; color: #344049; }
.comparison thead th { font-size: 13px; padding: 13px 18px; }
.comparison tbody :is(th, td) { padding: 9px 18px; }
.comparison tbody tr:last-child :is(th, td) { border-bottom: 0; }
.comparison tbody tr:nth-child(even) { background: #f8f9fa; }
.comparison tbody tr:hover { background: #fff6ef; }
.comparison .text-button { color: #363f45; text-decoration-color: #b1b9be; }
.comparison .text-button:hover { color: var(--accent); text-decoration-color: var(--accent); }

.delivery-section { background: var(--section-gray); border-block: 1px solid var(--line); }
.delivery-section .delivery-methods { gap: 18px; }
.delivery-section .delivery-method {
  position: relative; padding: 23px 24px 24px;
  border: 1px solid var(--line); border-radius: 3px; background: #fff;
}
.delivery-section .delivery-method::before {
  content: ""; position: absolute; left: 24px; top: -1px;
  width: 34px; height: 3px; background: var(--accent);
}
.delivery-section .delivery-method h3 { font-size: 18px; margin-bottom: 14px; }
.delivery-section .delivery-method p { color: #505d66; }
.delivery-section .unloading-note { margin-top: 18px; background: #e7ecef; border-left-color: #8d9ba4; color: #46535c; }

.warranty-section { border-bottom: 1px solid var(--line); background: #fff; }
.warranty-section > .container > .section-subtitle { max-width: 900px; }
.warranty-columns { gap: 20px; margin-top: 24px; }
.warranty-columns > div { padding: 24px; border: 1px solid var(--line); border-radius: 3px; background: #f6f7f8; }
.warranty-columns h3 { font-size: 18px; margin-bottom: 14px; }
.warranty-columns :is(p, li) { color: #505d66; }
.warranty-columns .text-button { color: var(--accent); }

/* Крупное реальное фото из существующего каталога — не фотография объектов МКМ. */
.about-section { background: var(--section-warm); border-top: 0; border-bottom: 1px solid #e2dbd5; }
.about-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 44px; }
.about-copy { max-width: 560px; }
.about-copy h2 { margin-bottom: 24px; }
.about-lead { font-size: 22px; line-height: 1.4; font-weight: 600; }
.about-copy > p + p { font-size: 14px; line-height: 1.75; color: #56626a; margin-top: 16px; }
.about-action { margin-top: 23px; }
.about-action .button { background: #fff9f4; }
.about-action .button:hover { background: var(--accent); }
.company-visual { margin: 0; border: 1px solid #d9d6d2; border-radius: 3px; background: #fff; overflow: hidden; min-width: 0; }
.company-visual__heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px 0; }
.company-visual__heading .eyebrow { font-size: 10px; letter-spacing: 1px; }
.company-visual__power { font-size: 13px; font-weight: 700; white-space: nowrap; padding: 4px 9px; background: #f0f3f4; border-radius: 2px; }
.company-visual__image { padding: 4px 18px; background: #fff; }
.company-visual__image img { width: 100%; height: 258px; object-fit: contain; }
.company-visual__caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-top: 1px solid #e5e8ea; background: #fafbfb; }
.company-visual__caption strong { display: block; font-size: 17px; line-height: 1.35; }
.company-visual__caption span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.company-visual__caption .text-button { flex: 0 0 auto; margin: 0; color: var(--accent); font-size: 13px; min-height: 44px; }
.about-inner:not(:has(.company-visual:not([hidden]))) { grid-template-columns: 1fr; }

/* Контакты: две различимые панели вместо сплошного текста. */
.contacts-section { background: #fff; }
.contact-columns { gap: 24px; }
.contacts-panel, .requisites-panel { border: 1px solid var(--line); border-radius: 3px; padding: 26px; }
.contacts-panel { background: #f5f7f8; border-top: 3px solid var(--accent); padding-top: 24px; }
.requisites-panel { background: #fff; }
.contacts-panel h3, .requisites-panel h3 { font-size: 18px; margin-bottom: 22px; }
.contact-details { gap: 24px 16px; }
.contact-detail__value { font-size: 15px; }
.contacts-panel .button { min-height: 44px; }

/* Полноценный подвал: бренд, навигация, контакты и нижняя строка. */
.site-footer { border-top: 3px solid var(--accent); background: var(--graphite-deep); color: #f2f4f5; }
.footer-main { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 64px; padding-block: 36px 30px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -.4px; }
.footer-brand__symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 3px; background: #fff; flex-shrink: 0; }
.footer-brand__symbol img { width: 36px; height: 36px; }
.footer-company > p { font-size: 13px; line-height: 1.6; color: #bbc4cb; margin-top: 15px; max-width: 260px; }
.footer-heading { margin-bottom: 14px; font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: #abb7bf; }
.footer-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; }
.footer-navigation a { display: inline-flex; align-items: center; min-height: 34px; font-size: 13px; line-height: 1.45; color: #e1e6e9; }
.footer-navigation a:hover, .footer-contacts a:hover, .footer-top:hover { color: #ffc09a; }
.footer-contacts a { display: inline-flex; align-items: center; min-height: 32px; }
.footer-phone { font-size: 19px; line-height: 1.4; font-weight: 700; }
.footer-email { font-size: 14px; margin-top: 2px; }
.footer-address { margin-top: 10px; font-size: 12px; line-height: 1.6; color: #bbc4cb; max-width: 300px; }
.footer-inner { border-top: 1px solid #414b52; min-height: 68px; padding-block: 12px; color: #bec8ce; }
.footer-domain { margin-left: auto; color: #bec8ce; }
.footer-top { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 40px; margin-left: 24px; font-size: 12px; color: #e1e6e9; }
.footer-top span { font-size: 17px; }
.site-footer :focus-visible { outline-color: #ffc09a; }

@media (max-width: 1100px) {
  .nav-link { padding-inline: 15px; }
  .about-inner { gap: 32px; }
  .company-visual__image img { height: 230px; }
  .company-visual__caption { align-items: flex-start; flex-direction: column; gap: 4px; }
  .footer-main { gap: 32px; grid-template-columns: .9fr 1.1fr 1fr; }
  .contact-details { grid-template-columns: 1fr; }
  .delivery-section .delivery-method { padding: 22px 20px; }
  .delivery-section .delivery-method::before { left: 20px; }
}

@media (max-width: 760px) {
  .topbar { min-height: 79px; }
  .main-nav { gap: 2px; padding-inline: 16px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-bar__inner { width: 100%; }
  .nav-link { min-height: 44px; padding-inline: 15px; }
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-copy { max-width: none; }
  .company-visual__image img { height: 270px; }
  .company-visual__caption { flex-direction: row; align-items: center; gap: 16px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .footer-contacts { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid #414b52; }
  .footer-address { max-width: 480px; }
  .footer-inner { flex-wrap: wrap; }
  .contacts-panel, .requisites-panel { padding: 24px; }
  .contacts-panel { padding-top: 22px; }
  .contact-details { grid-template-columns: 1fr 1fr; }
  .footer-top { margin-left: 0; }
}

@media (max-width: 560px) {
  .topbar { min-height: 73px; }
  .main-nav { padding-inline: 16px; }
  .nav-link { padding-inline: 14px; font-size: 13px; }
  .catalog-section { padding-top: 22px; }
  .catalog-heading h1 { font-size: 27px; }
  .catalog-heading .section-subtitle { margin-left: 0; }
  .section-title { padding-left: 15px; }
  .section-title::before { width: 3px; }
  .section, .about-inner { padding-block: 32px; }
  .section-heading { margin-bottom: 22px; }
  .compare-scroll { margin-top: 20px; }
  .comparison { min-width: 510px; }
  .compare-hint { display: block; margin-top: 14px; font-size: 11px; color: var(--muted); }
  .compare-hint + .compare-scroll { margin-top: 10px; }
  .comparison thead th { padding: 11px 12px; font-size: 12px; }
  .comparison tbody :is(th, td) { padding: 8px 12px; }
  .comparison .text-button { font-size: 13px; }
  .delivery-section .delivery-methods { gap: 14px; }
  .delivery-section .delivery-method { padding: 21px 20px; }
  .delivery-section .delivery-method h3 { margin-bottom: 12px; }
  .warranty-columns { gap: 14px; margin-top: 20px; }
  .warranty-columns > div { padding: 20px; }
  .about-copy h2 { margin-bottom: 20px; }
  .about-lead { font-size: 20px; line-height: 1.45; }
  .about-copy > p + p { font-size: 14px; }
  .about-action { margin-top: 20px; }
  .about-action .button { width: 100%; font-size: 13px; }
  .company-visual__heading { padding: 12px 15px 0; gap: 8px; }
  .company-visual__heading .eyebrow { font-size: 9px; letter-spacing: .5px; }
  .company-visual__power { font-size: 12px; }
  .company-visual__image { padding: 0 10px; }
  .company-visual__image img { height: 218px; }
  .company-visual__caption { padding: 14px 15px; gap: 8px; }
  .company-visual__caption strong { font-size: 16px; }
  .company-visual__caption span { font-size: 11px; }
  .company-visual__caption .text-button { font-size: 12px; gap: 4px; }
  .contacts-panel, .requisites-panel { padding: 20px; }
  .contacts-panel { padding-top: 18px; }
  .contact-columns { gap: 16px; }
  .contact-details { grid-template-columns: 1fr; gap: 18px; }
  .requisites-list .spec-row { gap: 12px; }
  .requisites-list dd { max-width: 60%; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; padding-block: 30px 22px; }
  .footer-company > p { max-width: 320px; font-size: 13px; margin-top: 12px; }
  .footer-heading { margin-bottom: 10px; }
  .footer-navigation { gap: 0 20px; }
  .footer-navigation a { min-height: 44px; }
  .footer-contacts { grid-column: auto; padding-top: 22px; }
  .footer-contacts a { min-height: 40px; }
  .footer-phone { font-size: 20px; }
  .footer-email { margin-top: 0; }
  .footer-address { margin-top: 8px; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding-block: 18px; }
  .footer-inner #copyright { grid-column: 1; }
  .footer-domain { margin-left: 0; grid-column: 1; }
  .footer-top { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; gap: 8px; }
}

@media (max-width: 359px) {
  .catalog-heading h1 { font-size: 24px; }
  .company-visual__caption { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .site-footer, .about-action, .company-visual__caption .text-button { display: none !important; }
  .catalog-section, .delivery-section, .about-section { background: #fff; }
  .section, .about-inner { padding-block: 20px; }
  .company-visual, .delivery-method, .contacts-panel, .requisites-panel { break-inside: avoid; }
}

/* На невысоком ноутбуке все четыре кнопки остаются в первом экране. */
@media (min-width: 1101px) and (max-height: 800px) {
  .catalog-section { padding-top: 20px; }
  .product-card__media { height: 148px; flex-basis: 148px; }
}
