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

:root {
  --primary: #91BE97;
  --secondary: #006725;
  --accent: #227F46;
  --bg: #FFFFFF;
  --text: #333333;
  --text-green: #227F46;
  --border-radius: 5px;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.header-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --brand-transition-start: calc(50% - 150px);
  --brand-transition-end: calc(50% + 145px);
  --brand-patch-x: calc(50% - 178px);
  --brand-patch-y: 18px;
  --brand-patch-width: 182px;
  --brand-patch-height: 60px;
  background: linear-gradient(90deg,
    #573329 0%,
    #654137 31%,
    #725249 37%,
    #8e817b 40.5%,
    #b9b9b7 43%,
    #dedfdd 45.5%,
    #dedfdd 50.5%,
    #c4c9c5 51.5%,
    #8eaa99 52.7%,
    #4b9668 54%,
    #168044 55.2%,
    #006f2d 56.5%,
    #006725 58%,
    #006725 100%
  );
}
.header-top::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  left: var(--brand-patch-x);
  top: var(--brand-patch-y);
  width: var(--brand-patch-width);
  height: var(--brand-patch-height);
  background: #e2e3e2;
  border-radius: 18px;
  filter: blur(7px);
}
.header-top__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 0;
  min-height: 100px;
}
.header-spacer { min-width: 1px; }
.header-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
}
.header-contact__phone { color: #fff; font-weight: 700; text-decoration: none; letter-spacing: .2px; }
.header-contact__phone:hover { text-decoration: underline; }
.header-contact__city { color: rgba(255,255,255,.8); font-size: 12px; }
.logo-combo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 54px;
  text-decoration: none;
  justify-self: center;
}
.logo-okw {
  height: 56px;
  width: auto;
  display: block;
  /* OKW svg is dark — lighten for dark gradient bar */
  filter: brightness(0) invert(1);
}
.logo-x {
  color: #fff;
  text-shadow: -1.5px 0 #4f5553, 1.5px 0 #4f5553, 0 -1.5px #4f5553, 0 1.5px #4f5553, -1px -1px #4f5553, 1px -1px #4f5553, -1px 1px #4f5553, 1px 1px #4f5553;
  font-size: 23.8px;
  font-weight: 300;
  line-height: 1;
  opacity: 1;
  user-select: none;
}
.logo-korpusa {
  height: 40px;
  width: auto;
  display: block;
  /* keep brand look of korpusa logo */
  filter: none;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  justify-self: end;
}
.header-top .search-toggle,
.header-top .cart-link {
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.header-top .search-toggle:hover,
.header-top .cart-link:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.search-toggle { display: flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; color: var(--accent); font-size: 14px; }
.cart-link { color: var(--accent); font-size: 14px; }

/* NAV */
.nav { background: var(--accent); }
.nav__list { display: flex; list-style: none; gap: 0; justify-content: center; }
.nav__list li a { display: block; padding: 14px 20px; color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .2s; }
.nav__list li a:hover,
.nav__list li a.is-active { background: var(--secondary); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 10px; }

/* SEARCH PANEL */
.search-panel { display: none; background: #f5f5f5; padding: 16px 0; border-bottom: 1px solid #ddd; }
.search-panel.open { display: block; }
.search-form { display: flex; gap: 10px; }
.search-form input { flex: 1; padding: 10px 16px; border: 1px solid #ccc; border-radius: var(--border-radius); font-size: 15px; }
.search-form button { padding: 10px 24px; background: var(--accent); color: #fff; border: none; border-radius: 7px; cursor: pointer; font-size: 15px; }

/* HERO SLIDER */
.hero { position: relative; overflow: hidden; height: 480px; }
.hero-slider { height: 100%; position: relative; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide__content { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,103,37,.85)); color: #fff; padding: 40px 60px 30px; }
.hero-slide__content h2 { font-size: 28px; font-weight: 700; margin-bottom: 10px; max-width: 800px; }
.hero-slide__content p { font-size: 16px; opacity: .9; max-width: 700px; }
.hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; cursor: pointer; }
.hero-dot.active { background: #fff; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.3); border: none; color: #fff; font-size: 36px; width: 48px; height: 48px; cursor: pointer; border-radius: 50%; transition: background .2s; }
.hero-arrow:hover { background: rgba(255,255,255,.6); }
.hero-arrow--prev { left: 16px; }
.hero-arrow--next { right: 16px; }

/* INTRO */
.intro { padding: 40px 0; background: #f9f9f9; text-align: center; }
.intro p { max-width: 900px; margin: 0 auto; font-size: 17px; }

/* SECTIONS */
.section-title { font-size: 33px; color: var(--text-green); text-align: center; margin-bottom: 12px; }
.section-desc { text-align: center; max-width: 700px; margin: 0 auto 30px; color: #666; }

/* PRODUCTS */
.products { padding: 60px 0; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 30px; }
.product-card { display: block; text-align: center; border: 1px solid #e0e0e0; border-radius: var(--border-radius); overflow: hidden; transition: box-shadow .3s, transform .3s; text-decoration: none; color: inherit; }
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-4px); text-decoration: none; }
.product-card__img { height: 180px; overflow: hidden; background: #f0f0f0; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { font-size: 14px; font-weight: 700; color: var(--accent); padding: 16px 12px 8px; text-transform: uppercase; }
.product-card__link { display: block; padding-bottom: 16px; font-size: 13px; color: var(--accent); }
.products-cta { text-align: center; margin-top: 40px; }

.btn { display: inline-block; padding: 14px 28px; border-radius: 7px; font-size: 15px; font-weight: 500; text-decoration: none; transition: background .2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--secondary); text-decoration: none; }

/* SERVICES */
.services { padding: 60px 0; background: #f5f5f5; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.service-card { background: #fff; padding: 24px; border-radius: var(--border-radius); border-left: 4px solid var(--accent); }
.service-card h4 { color: var(--accent); margin-bottom: 8px; font-size: 16px; }
.service-card p { font-size: 14px; color: #666; }

/* NEWS */
.news { padding: 60px 0; background: #f9f9f9; }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 30px; }
.news-card { display: flex; background: #fff; border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.news-card img { width: 200px; min-height: 160px; object-fit: cover; flex-shrink: 0; background: #eee; }
.news-card__body { padding: 20px; }
.news-card__body h3 { font-size: 16px; color: var(--accent); margin-bottom: 8px; }
.news-card__body p { font-size: 14px; color: #666; margin-bottom: 12px; }
.news-card__body a { font-size: 13px; }

/* ABOUT */
.about { padding: 60px 0; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.about-card { padding: 24px; border: 1px solid #e0e0e0; border-radius: var(--border-radius); }
.about-card h3 { color: var(--accent); margin-bottom: 12px; font-size: 18px; }
.about-card p { font-size: 14px; color: #666; }

/* FOOTER */
.footer { background: var(--secondary); color: #ccc; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; margin-bottom: 12px; font-size: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: #ccc; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; text-align: center; font-size: 13px; }

/* RESPONSIVE */
@media (max-width: 992px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav__list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--accent); z-index: 99; }
  .nav__list.open { display: flex; }
  .hero { height: 320px; }
  .hero-slide__content { padding: 20px; }
  .hero-slide__content h2 { font-size: 20px; }
  .products-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { flex-direction: column; }
  .news-card img { width: 100%; height: 180px; }
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

/* Плейсхолдеры вместо фото */
.img-ph {
  background: #e8ece9; border: 2px dashed #91BE97;
  display: flex; align-items: center; justify-content: center;
  color: #227F46; font-size: 12px; text-transform: uppercase;
  overflow: hidden; text-align: center; padding: 10px;
}
.img-ph--logo { width: 140px; height: 50px; }
.img-ph--hero { width: 100%; height: 100%; min-height: 480px; }
.img-ph--card { width: 100%; height: 180px; }
.img-ph--news { width: 200px; min-height: 160px; flex-shrink: 0; }
.img-ph--series { width: 100%; height: 320px; margin-bottom: 20px; }

/* Хлебные крошки */
.breadcrumb { padding: 16px 0; font-size: 13px; color: #666; }
.breadcrumb a { color: #227F46; }

/* Страница категории */
.page-section { padding: 40px 0 60px; }
.page-intro { max-width: 900px; margin: 0 auto 30px; text-align: center; font-size: 17px; color: #555; }

/* Серия — детальная */
.series-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.series-detail__info h3 { color: #227F46; margin: 16px 0 8px; }
.series-detail__info ul { padding-left: 20px; color: #666; font-size: 14px; }
.series-specs { background: #f5f5f5; padding: 20px; border-radius: 5px; margin-top: 20px; }
.series-specs dt { font-weight: 700; color: #006725; margin-top: 8px; }
.series-specs dd { color: #666; font-size: 14px; }

/* Подкатегории */
.subcat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.subcat-list a {
  display: block; padding: 14px 18px; border: 1px solid #e0e0e0;
  border-left: 4px solid #227F46; border-radius: 5px;
  color: #227F46; font-weight: 500; font-size: 14px; transition: .2s;
}
.subcat-list a:hover { background: #f0f7f2; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Таблица артикулов на странице серии */
.articles-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  margin-bottom: 40px;
  font-size: 14px;
}
.articles-table th {
  background: #f5f5f5;
  color: #006725;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  font-weight: 600;
}
.articles-table td {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  color: #333;
  vertical-align: top;
}
.articles-table tr:nth-child(even) td {
  background: #fafafa;
}
.articles-table td:first-child {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  color: #227F46;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .series-detail { grid-template-columns: 1fr; }
  .subcat-list { grid-template-columns: 1fr; }
  .img-ph--hero { min-height: 280px; }
  .articles-table { font-size: 12px; }
  .articles-table th, .articles-table td { padding: 8px 10px; }
}

/* ── Артикулы / Аксессуары (карточки в стиле okw.com) ── */
.articles-section { margin-top: 40px; scroll-margin-top: 90px; }
.articles-section__title {
  font-size: 22px; color: var(--secondary); margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 2px solid #e0e0e0;
}
.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.article-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid #e0e0e0; border-radius: var(--border-radius);
  overflow: hidden; background: #fff; transition: box-shadow .25s, transform .25s;
}
.article-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.1); transform: translateY(-3px); text-decoration: none; }
.article-card__media { position: relative; }
.article-card__img { width: 100%; height: 160px; }
.article-card__cart-btn {
  position: absolute; right: 10px; bottom: 10px;
  min-height: 36px; padding: 0 14px; border-radius: 18px;
  border: none; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.22);
  transition: background .2s, transform .2s;
}
.article-card__cart-btn:hover { background: var(--secondary); transform: scale(1.08); }
.article-card__cart-btn--added { background: var(--secondary); }
.article-card__body { padding: 14px 16px 16px; }
.article-card__code {
  font-family: 'Roboto Mono', monospace; font-size: 15px;
  color: var(--accent); font-weight: 700; margin-bottom: 4px;
}
.article-card__name { font-size: 13px; color: #444; margin-bottom: 10px; line-height: 1.4; }
.article-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.article-card__tag {
  font-size: 11px; color: #555; background: #f0f2f0;
  border: 1px solid #e0e0e0; border-radius: 20px; padding: 3px 10px;
}

@media (max-width: 768px) {
  .articles-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .article-card__img { height: 130px; }
}

/* ── Страница отдельного артикула (напр. /article/B1604107) ── */
.article-page { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 10px; margin-bottom: 20px; }
.article-page__img { width: 100%; height: 320px; }
.article-page__info h3 { color: var(--accent); font-size: 20px; margin-bottom: 16px; }
.article-page__specs { background: #f5f5f5; padding: 20px; border-radius: 5px; }
.article-page__specs dt { font-weight: 700; color: #006725; margin-top: 8px; }
.article-page__specs dd { color: #666; font-size: 14px; }

/* ── Кнопки на странице артикула ── */
.article-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.article-page__order-btn,
.article-page__cart-btn {
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-secondary {
  background: #e8e8e8;
  color: #222;
}
.btn-secondary:hover {
  background: #d4d4d4;
  text-decoration: none;
}

@media (max-width: 768px) {
  .article-page { grid-template-columns: 1fr; }
}

/* Customising services: icons before titles + banners */
.custom-banners { background: #0f172a; }
.custom-banners__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px 0 8px;
}
.custom-banners img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--border-radius, 8px);
  display: block;
}
.service-card__title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 16px;
}
.service-card__title span { flex: 1; }
.service-card__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.service-card__icon--lg {
  width: 80px;
  height: 80px;
}
.service-heading {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.service-heading span { display: inline-block; }
@media (max-width: 768px) {
  .custom-banners__track { grid-template-columns: 1fr; }
  .custom-banners img { height: 100px; }
}

.service-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.service-card--link:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.service-card--link .service-card__title { margin-bottom: 0; }
.service-body { max-width: 820px; line-height: 1.65; color: #333; }
.service-body h3 {
  margin: 1.4em 0 .6em;
  font-size: 1.15rem;
  color: var(--accent, #0b5cab);
}
.service-body h3:first-child { margin-top: 0; }
.service-body p { margin: 0 0 0.9em; }
.service-body ul { margin: 0 0 1em 1.2em; padding: 0; }
.service-body li { margin-bottom: 0.35em; }

.custom-banners__track--5 {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1100px) {
  .custom-banners__track--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .custom-banners__track--5 { grid-template-columns: 1fr; }
}
.service-examples-title {
  margin: 28px 0 14px;
  font-size: 1.1rem;
  color: var(--accent, #0b5cab);
}

.news-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.news-card--link:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.about-body { max-width: 900px; }
.about-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.about-figure { margin: 0; }
.about-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius, 8px);
  object-fit: cover;
}
@media (max-width: 768px) {
  .about-media { grid-template-columns: 1fr; }
}

/* Information page media sizes */
.info-media {
  max-width: 420px;
  margin: 0 0 16px;
}
.info-media--icon {
  max-width: 140px;
  margin: 0 0 20px;
  background: transparent;
}
.img-ph--info-cover {
  width: 100%;
  max-width: 420px;
  height: 220px;
  margin: 0;
  padding: 0;
  border: 1px solid #d0d7d2;
  border-radius: var(--border-radius, 8px);
  background-color: transparent !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow: none;
}
.info-icon {
  display: block;
  width: 120px;
  height: 120px;
  max-width: 100%;
  object-fit: contain;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0;
  box-shadow: none;
}
/* Real photos: no dashed placeholder border */
.img-ph[style*="background-image"] {
  border: 1px solid #d0d7d2;
  background-color: transparent;
}
.img-ph.img-ph--info-cover[style*="background-image"] {
  border: 1px solid #d0d7d2;
  background-color: transparent !important;
}
@media (max-width: 768px) {
  .header-top__inner {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
  .header-spacer { display: none; }
  .header-contact { align-items: center; order: -1; }
  .header-actions { justify-content: center; justify-self: center; }
  .logo-okw { height: 36px; }
  .logo-korpusa { height: 35px; }
  .logo-x { font-size: 22px; }
}

/* ORDER MODAL — открывается по кнопке "Заказать"/🛒 вместо реальной корзины */
.order-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 22, .55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.order-modal-overlay.open { display: flex; }
.order-modal {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.order-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #888;
  cursor: pointer;
}
.order-modal__close:hover { color: var(--secondary); }
.order-modal__heading { color: var(--secondary); font-size: 19px; margin-bottom: 6px; }
.order-modal__title { color: var(--text); font-size: 14px; margin-bottom: 14px; }
.order-modal__note { font-size: 13px; color: #666; margin-bottom: 18px; line-height: 1.5; }
.order-modal__contacts {
  background: #f5f8f6;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.order-modal__row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.order-modal__row a, .order-modal__row span#orderModalEmail { color: var(--secondary); font-weight: 600; text-decoration: none; }
.order-modal__row a:hover { text-decoration: underline; }
.order-modal__label { color: #777; }
.order-modal__mail-btn { display: block; text-align: center; width: 100%; }
.order-modal__image { width: 100%; max-height: 210px; object-fit: cover; object-position: center; display: block; border-radius: 8px; margin-bottom: 16px; }


/* v7: полный каталог и компактное изображение на странице контактов */
.products-grid--catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.products-grid--catalog .img-ph--card {
  background-size: contain !important;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f7f7f7 !important;
}
.contacts-page .container { text-align: left; }
.contacts-order-image {
  display: block;
  width: min(100%, 560px);
  height: auto;
  max-width: 560px;
  margin: 0 auto 22px;
  border-radius: 8px;
}
.order-modal__image {
  width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
@media (max-width: 992px) {
  .products-grid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .products-grid--catalog { grid-template-columns: 1fr; }
  .contacts-order-image { max-width: 100%; }
}


/* v8: одна фотография выбранного артикула в окне заказа */
.order-modal__image--article {
  width: 100%;
  height: 260px;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid #e3e8e5;
  padding: 8px;
}
.contacts-order-image[src$="order-flow-okw.svg"] {
  background: #f4f8f6;
}


/* ── Корзина-заявка ── */
.cart-link--basket {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 600;
}
.cart-link__icon { font-size: 17px; line-height: 1; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.cart-count--empty { opacity: .75; }
.cart-intro { max-width: 760px; margin-bottom: 22px; color: #555; line-height: 1.55; }
.cart-list { border-top: 1px solid #e2e6e3; }
.cart-item {
  display: grid;
  grid-template-columns: 110px minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #e2e6e3;
}
.cart-item__image-link { display: block; }
.cart-item__image {
  width: 110px;
  height: 86px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e3e8e5;
  border-radius: 7px;
  overflow: hidden;
}
.cart-item__image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item__image--empty { background: #f4f5f4; }
.cart-item__code {
  display: inline-block;
  font-family: 'Roboto Mono', monospace;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 5px;
}
.cart-item__title { color: #555; font-size: 14px; line-height: 1.4; }
.cart-item__qty { display: inline-flex; align-items: center; border: 1px solid #cfd7d1; border-radius: 7px; overflow: hidden; background: #fff; }
.cart-item__qty button {
  width: 36px; height: 36px; border: 0; background: #f3f5f3; color: #1f5c39;
  font-size: 20px; cursor: pointer;
}
.cart-item__qty button:hover { background: #e7eee9; }
.cart-item__qty input {
  width: 54px; height: 36px; border: 0; border-left: 1px solid #dbe0dc; border-right: 1px solid #dbe0dc;
  text-align: center; font-size: 14px; outline: none;
}
.cart-item__remove { border: 0; background: transparent; color: #777; cursor: pointer; text-decoration: underline; font-size: 13px; }
.cart-item__remove:hover { color: #b21d1d; }
.cart-summary {
  margin-top: 24px;
  padding: 22px;
  background: #f4f7f5;
  border-radius: 9px;
  border: 1px solid #e0e7e2;
}
.cart-summary__total { font-size: 16px; margin-bottom: 18px; }
.cart-summary__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cart-summary__note { margin-top: 18px; color: #454545; font-size: 13px; }
.cart-empty { text-align: center; padding: 45px 20px; background: #f7f8f7; border-radius: 9px; }
.cart-empty__icon { font-size: 42px; margin-bottom: 12px; }
.cart-empty h3 { color: var(--accent); margin-bottom: 8px; }
.cart-empty p { color: #666; margin-bottom: 20px; }

@media (max-width: 760px) {
  .cart-item { grid-template-columns: 82px 1fr; gap: 12px; }
  .cart-item__image { width: 82px; height: 70px; }
  .cart-item__qty { grid-column: 2; justify-self: start; }
  .cart-item__remove { grid-column: 2; justify-self: start; }
  .cart-summary__actions .btn { width: 100%; text-align: center; }
}

/* Home: center the existing three product cards as one group without changing their size or gaps */
.home-products-grid {
  grid-template-columns: repeat(3, calc((100% - 72px) / 4));
  justify-content: center;
}
@media (max-width: 900px) {
  .home-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .home-products-grid { grid-template-columns: 1fr; }
}

/* About page collage */
.about-body { margin-left: auto; margin-right: auto; }

/* Info page: align CTA with the 900px text column */
.info-page-actions { max-width: 900px; margin: 24px auto 0; }

/* v26: direct article lookup above the home catalogue cards. */
.article-lookup { max-width:720px; margin:0 auto 32px; color:#333; }
.article-lookup__form { display:flex; align-items:center; justify-content:center; gap:18px; padding:10px 0; }
.article-lookup__form label { font-size:14px; font-weight:500; white-space:nowrap; }
.article-lookup__controls { display:flex; gap:8px; width:min(100%,480px); min-width:0; }
.article-lookup__controls input { flex:1; min-width:0; height:40px; border:1px solid #a5b6aa; border-radius:5px; padding:8px 12px; font:inherit; font-size:16px; color:#333; background:#fff; }
.article-lookup__controls .btn { min-height:40px; padding:8px 20px; font-size:14px; }
.article-lookup__controls input:focus-visible,.article-lookup__controls button:focus-visible { outline:2px solid #006725; outline-offset:2px; }
.article-lookup__controls input[aria-invalid="true"] { border-color:#a23a2a; }
.article-lookup__status { font-size:14px; text-align:center; padding:0 0 10px; color:#8d3024; }
.article-lookup__status:empty { display:none; }
@media(max-width:600px) {
  .article-lookup__form { flex-direction:column; align-items:stretch; gap:5px; padding:8px 0; }
  .article-lookup__controls { width:100%; }
  .article-lookup__status { text-align:left; }
}

/* Semantic images preserve the existing media boxes. */
img.img-ph {display:block;object-fit:cover;padding:0;border:1px solid #d0d7d2;background:#f0f0f0;}
.products-grid--catalog img.img-ph--card, img.article-card__img, img.article-page__img, img.cart-item__image {object-fit:contain;background:#fff;}
img.img-ph--hero {border:0;}
.visually-hidden {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.hero-slide__content h2 {line-height:inherit;}
/* The brand link covers the upper header; phone and basket stay independent. */
.logo-combo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}
.logo-combo:hover, .logo-combo:focus { text-decoration: none; }
.header-contact__phone { position: relative; z-index: 2; align-self: flex-start; }
.header-top .cart-link { position: relative; z-index: 2; }
.logo-combo:focus-visible::after { outline: 2px solid #fff; outline-offset: -3px; }
@media (max-width: 768px) {
  .header-contact__phone { align-self: center; }
}
/* v50: supplier actions use the coffee colour from the brand header. */
:root { --supplier: #8A503F; --supplier-hover: #705042; }
.nav__list a:is([href*="/info"],[href*="/contacts"]):is(.is-active,:hover) {
  background: var(--supplier); color: #fff;
}
.btn:is([href^="mailto:"],[href^="tel:"],[href*="/contacts"]),
.article-page__cart-btn,
.order-modal__mail-btn {
  background: var(--supplier); color: #fff;
}
.btn:is([href^="mailto:"],[href^="tel:"],[href*="/contacts"]):hover,
.article-page__cart-btn:hover,
.order-modal__mail-btn:hover {
  background: var(--supplier-hover); color: #fff;
}

/* Remaining custom services retain the original green request buttons. */
.btn.service-request--green { background: var(--accent); color: #fff; }
.btn.service-request--green:hover { background: var(--secondary); }
.header-basket-mark { display: block; width: 26px; height: 26px; }

.header-top .cart-count { color: var(--supplier); }

/* Selected custom services: brown titles and icons on white cards. */
.service-card--link:is([href$="/mech"],[href$="/mech/"],[href$="/laser"],[href$="/laser/"],[href$="/nakl"],[href$="/nakl/"]) .service-card__title { color: var(--supplier); }
