/* ─── STICKY FOOTER LAYOUT ────────────────────────────────────────────────── */
html {
  height: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #b8cfc0 #f2f2f2;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #b8cfc0 #f2f2f2;
}

/* Custom scrollbar — subtle, project green */
*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: #f2f2f2;
}

*::-webkit-scrollbar-thumb {
  background: #b8cfc0;
  border-radius: 99px;
  border: 2px solid #f2f2f2;
}

*::-webkit-scrollbar-thumb:hover {
  background: #3d8f63;
}

*::-webkit-scrollbar-corner {
  background: #f2f2f2;
}

.site-layout {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

.site-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* ─── PAGE LOADER ─────────────────────────────────────────────────────────── */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10000;
  pointer-events: none;
  background: transparent;
}

.page-loader-bar {
  height: 100%;
  width: 0;
  background: var(--product-green, #3d8f63);
  box-shadow: 0 0 8px rgba(61, 143, 99, 0.45);
  transition: width 0.25s ease;
}

.page-loader.is-complete .page-loader-bar {
  width: 100% !important;
  transition: width 0.15s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Sub-nav moved to header-top — legacy rules removed */

/* ─── HERO BANNER ─────────────────────────────────────────────────────────── */
.hero-section {
  padding: 24px 15px 0;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  flex-shrink: 0;
}

.hero-banner {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  height: clamp(320px, 42vw, 520px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.hero-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 48px 24px;
  color: #fff;
}

.hero-banner-content h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-banner-content h2 {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 500;
  margin-bottom: 16px;
  opacity: 0.95;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-banner-content p {
  font-size: clamp(14px, 1.5vw, 18px);
  margin-bottom: 28px;
  max-width: 520px;
  opacity: 0.9;
}

.hero-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-banner-actions .btn-primary {
  background: #1a5c3a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-banner-actions .btn-primary:hover {
  background: #144a2e;
}

.hero-banner-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.hero-banner-actions .btn-outline:hover {
  background: #fff;
  color: #1a5c3a;
  border-color: #fff;
}

@media (max-width: 767px) {
  .hero-section {
    padding: 16px 10px 0;
  }

  .hero-banner {
    border-radius: 20px;
  }
}

.hero-banner--1 {
  background-image: linear-gradient(135deg, #2d6a4f 0%, #40916c 40%, #74c69d 100%);
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 14px;
  background: #f0f0f0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 32px;
  background: #1a5c3a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn-primary:hover {
  background: #144a2e;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 32px;
  background: transparent;
  color: #1a5c3a;
  font-size: 15px;
  font-weight: 700;
  border-radius: 99px;
  border: 2px solid #1a5c3a;
  transition: all 0.15s;
}

.btn-outline:hover {
  background: #1a5c3a;
  color: #fff;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .hero-actions {
    justify-content: center;
  }
}

/* ─── SECTIONS ────────────────────────────────────────────────────────────── */
.section {
  padding: 60px 0;
}

.section-alt {
  background: #f9f9f9;
}

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: 36px;
}

/* ─── BENEFITS ────────────────────────────────────────────────────────────── */
.section-benefits {
  padding-top: 28px;
  padding-bottom: 28px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 991px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 20px;
  min-height: 168px;
  background: #f4f5f9;
  border-radius: 14px;
  border: none;
}

.benefit-icon {
  margin: 0 0 18px;
  color: #2f3542;
  line-height: 1;
}

.benefit-icon .bi {
  font-size: clamp(40px, 4vw, 52px);
  display: block;
}

.benefit-card h3 {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  line-height: 1.4;
  max-width: 220px;
}

.products-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: #888;
}

/* ─── MANUFACTURERS ───────────────────────────────────────────────────── */
.manufacturers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
}

@media (max-width: 1199px) {
  .manufacturers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .manufacturers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.manufacturer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  aspect-ratio: 3/2;
  transition: box-shadow 0.2s;
}

.manufacturer-logo:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.manufacturer-logo img {
  max-height: 68px;
  max-width: 100%;
  object-fit: contain;
}

.manufacturer-placeholder {
  font-size: 12px;
  color: #aaa;
  text-align: center;
}

.manufacturers-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  padding: 24px 0;
}

/* ─── CONTACTS BLOCK ────────────────────────────────────────────────────── */
.contacts-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 991px) {
  .contacts-block {
    grid-template-columns: 1fr;
  }
}

.contacts-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a5c3a;
}

.contacts-info p,
.contacts-info address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 12px;
}

.contacts-info strong {
  color: #111;
}

.contacts-info a {
  color: #1a5c3a;
  font-weight: 600;
}

.contacts-info a:hover {
  text-decoration: underline;
}

.contacts-social,
.footer-social,
.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contacts-social {
  margin-top: 24px;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: transform 0.15s, opacity 0.15s;
}

.social-icon-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-icon-link--vk {
  background: #0077ff;
}

.social-icon-link--vk img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.social-icon-link--max {
  background: linear-gradient(135deg, #3d5afe 0%, #7c4dff 100%);
}

.social-icon-link--max img {
  width: 26px;
  height: 26px;
}

.social-icon-link:hover {
  transform: scale(1.08);
}

.contacts-map {
  border-radius: 12px;
  overflow: hidden;
  min-height: 320px;
  background: #e8e8e8;
}

.contacts-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.contacts-map--page {
  margin-top: 32px;
}

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 48px 0 24px;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand img {
  height: 50px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 14px;
  color: #aaa;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* ─── PAGE CONTENT ───────────────────────────────────────────────────────── */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 15px 60px;
}

.page-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.page-content p,
.page-content li {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 12px;
}

.messages-list {
  list-style: none;
  margin-bottom: 20px;
}

.messages-list li {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.messages-list .success {
  background: #e8f5e9;
  color: #1a5c3a;
}

.messages-list .error {
  background: #ffebee;
  color: #c62828;
}

.messages-list .warning {
  background: #fff8e1;
  color: #f57f17;
}

.breadcrum {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 15px 0;
}

.breadcrum h1 {
  font-size: 28px;
  font-weight: 700;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

.catalog-filters select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.checkout-layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 15px 60px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

@media (max-width: 991px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.order-summary {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
}

.order-summary h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.order-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1a5c3a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 90;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

.participant-note {
  font-size: 12px;
  color: #666;
  text-align: center;
  padding: 4px 15px;
}
