:root {
  --brand-red: #e3000f;
  --brand-yellow: #ffb800;
  --brand-dark: #333333;
  --brand-gray: #f5f5f5;
  --gray-800: #1f2937;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --primary-red: #e30613;
  --text-dark: #333333;
  --text-gray: #666666;
  --bg-light: #f5f5f5;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  height: -webkit-fill-available;
  /* prevent layout shift when scrollbar appears/disappears (e.g. drawer) */
  scrollbar-gutter: stable;
}

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

body {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif;
  color: var(--gray-800);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  min-height: 100svh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header — responsive, updated for actions + burger */
.header {
  background-color: var(--brand-red);
  color: #fff;
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.logo {
  gap: 0.5rem;
  color: #fff;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* Desktop nav – hidden on mobile */
.header-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-nav a {
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.15s,
    opacity 0.15s;
  opacity: 0.95;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  border-color: var(--brand-yellow);
  opacity: 1;
  outline: none;
}

/* Right side actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  transition:
    background-color 0.15s,
    opacity 0.15s,
    transform 0.15s;
  opacity: 0.96;
}

.header-icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

.header-icon-btn:active {
  transform: scale(0.96);
}

.header-icon-btn:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 2px;
}

.header-icon-btn svg,
.header-icon-btn img {
  width: 1.45rem;
  height: 1.45rem;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 0.375rem;
  color: #fff;
  transition: background-color 0.15s;
}

.menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.menu-btn:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 2px;
}

.menu-btn svg {
  width: 2rem;
  height: 2rem;
}

/* Mobile drawer & overlay (controlled by site-header component) */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
  z-index: 60;
}

.mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(84vw, 340px);
  height: 100vh; /* fallback for older browsers */
  height: -webkit-fill-available;
  height: 100dvh; /* dynamic viewport – covers exactly visible area */
  /* for browsers that support svh/dvh, keep dvh as final so drawer always fills screen */
  background: #fff;
  color: var(--gray-800);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-drawer-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-600);
}

.drawer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  color: var(--gray-600);
  transition: background-color 0.15s;
}

.drawer-close-btn:hover {
  background: var(--gray-100);
}

.drawer-close-btn:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

.drawer-close-btn svg {
  width: 1.4rem;
  height: 1.4rem;
}

.mobile-nav {
  padding: 0.5rem 0;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-50);
  transition:
    background-color 0.15s,
    color 0.15s;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  background: var(--gray-50);
  color: var(--brand-red);
  outline: none;
}

.mobile-nav a svg {
  width: 1rem;
  height: 1rem;
  opacity: 0.5;
  flex-shrink: 0;
}

.mobile-drawer-contacts {
  margin-top: auto;
  padding: 1.25rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

.mobile-drawer-contacts .contact-phone {
  color: var(--brand-red);
  font-size: 1.15rem;
}

.mobile-drawer-contacts p {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Hero Section — slideshow */
.hero {
  background-color: var(--brand-gray);
  position: relative;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-viewport {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  background-color: var(--brand-gray);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.hero-viewport.is-dragging {
  cursor: grabbing;
}

.hero-viewport.is-dragging .hero-img {
  pointer-events: none;
}

.hero-track {
  position: relative;
}

.hero-slide {
  display: none;
  position: relative;
}

.hero-slide.is-active {
  display: block;
}

.hero-slide .hero-img {
  width: 100%;
  height: 520px;
  min-height: 520px;
  max-height: calc(100vh - 72px); /* fallback */
  max-height: calc(100dvh - 72px);
  max-height: calc(100svh - 72px); /* stable small viewport – prevents layout shift when address bar hides/shows */
  object-fit: cover;
  display: block;
  margin-bottom: 0;
  border-radius: 0;
  -webkit-user-drag: none;
  user-select: none;
}

.hero-panel {
  background: transparent;
  padding: 1.5rem 1rem 1.75rem;
  text-align: center;
  border-radius: 0;
  max-width: 100%;
}

.hero-panel .hero-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--brand-dark);
  line-height: 1.25;
}

.hero-panel .hero-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
  padding: 0 0.75rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.hero-panel .hero-desc span {
  display: inline;
}

.hero-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.hero-pagination .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--gray-500);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s;
}

.hero-pagination .dot.is-active,
.hero-pagination .dot.active {
  background-color: var(--brand-red);
}

.hero-panel .hero-cta {
  display: inline-block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.stats-section .btn-outline {
  display: inline-block;
  margin-top: 4rem;
  margin-bottom: 1rem;
}

.catalog-section .btn-outline {
  display: inline-block;
  margin-top: 2rem;
}

.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

.hero-img {
  width: 100%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--brand-dark);
}

.hero-desc {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: var(--gray-600);
  line-height: 1.625;
}

.btn-primary {
  display: inline-block;
  background-color: var(--brand-red);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.btn-primary {
  margin-top: 1.5rem;
}

.btn-primary:hover {
  background-color: #b91c1c;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 0.5rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--gray-300);
}

.dot.active {
  background-color: var(--brand-red);
}

/* About Section */
.about-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.about-lead {
  max-width: 48rem;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.about-lead strong {
  color: var(--text-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.card-icon {
  color: var(--brand-red);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
}

.card-icon img {
  height: 5rem;
}

.card-title {
  color: var(--brand-yellow);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Stats Section */
.stats-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: #fff;
}

.stat-item {
  margin-bottom: 1.5rem;
}

.stat-number {
  color: var(--brand-red);
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--gray-800);
}

.stat-text-lg {
  font-size: 1.125rem;
  font-weight: 700;
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--gray-300);
  color: var(--brand-dark);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.btn-outline:hover {
  background-color: var(--gray-50);
}

.text-center {
  text-align: center;
}

.mt-8 {
  margin-top: 2rem;
}

/* Catalog Section */
.catalog-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  background-color: var(--gray-50);
  width: 100%;
}

.catalog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.catalog-item {
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  flex: 0 1 100%;
  max-width: 100%;
}

.catalog-img {
  width: 100%;
  height: 8rem;
  object-fit: cover;
}

.catalog-title {
  padding: 0.75rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
}

/* Contact Form Section */
.contact-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  background-color: var(--brand-gray);
}

.form-group {
  margin-bottom: 1rem;
}

.form-input {
  width: 100%;
  border-radius: 0.25rem;
  border: 1px solid var(--gray-300);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 1px var(--brand-red);
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  height: 1.25rem;
}

.form-checkbox {
  width: 1rem;
  height: 1rem;
  color: var(--brand-red);
  background-color: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 0.25rem;
}

.form-checkbox-label {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.form-checkbox-label a {
  color: var(--brand-red);
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--brand-red);
  color: #fff;
  padding-top: 2rem;
  padding-bottom: 3rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  font-size: 0.875rem;
}

.footer-title {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--brand-yellow);
}

.footer-links {
  opacity: 0.9;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-nav {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.footer-nav li {
  margin-bottom: 0.75rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-contact {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(239, 68, 68, 0.5);
}

.contact-phone {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 1rem;
}

.contact-list {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.contact-list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.contact-icon-mt {
  margin-top: 0.125rem;
}

.footer-copyright {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 2rem;
}

/* Footer new single-row system (mobile: 2 cols top + contacts full width) */
.footer-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  font-size: 0.875rem;
}

.footer-main .footer-contacts {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-main .footer-copyright {
  grid-column: 1 / -1;
}

.footer-contacts .contact-phone {
  white-space: nowrap;
  font-size: clamp(1.1rem, 3.5vw, 1.45rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.contact-company {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.mobile-drawer-contacts .contact-company {
  margin-top: 0;
  font-size: 0.9375rem;
  color: var(--text-dark);
}

.footer-contacts .contact-list {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-contacts .contact-list-item {
  font-size: 0.875rem;
}

/* Contact inner wrapper - ensures title aligns with fields */
.contact-inner {
  padding: 0 1rem;
}

/* content section */
.content-section {
  padding: 1.5rem;
  background-color: var(--white);
  margin-bottom: 0.5rem;
}

.image-wrapper {
  text-align: center;
  margin: 1.5rem 0;
}

.image-wrapper img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 10px;
}

/* Contact Card Styles */
.contact-card {
  background-color: var(--white);
  border: 1px solid var(--primary-red);
  border-left: 4px solid var(--primary-red);
  padding: 1.5rem;
  margin: 2rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-card p {
  color: var(--text-dark);
  font-size: 0.95rem;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
  margin-bottom: 0;
}

.contact-list li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.highlight-text {
  font-weight: bold;
  color: var(--text-dark);
}

/* Container centered */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--gray-600);
  background: #fff;
  border-bottom: 1px solid var(--gray-100);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--gray-400, #9ca3af);
}

.breadcrumbs a {
  color: var(--gray-600);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand-red);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--gray-800);
  font-weight: 600;
}

/* Intro / content sections with side image — matches screenshot */
.content-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.content-section p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.content-section ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.content-section ul li {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.intro-layout {
  display: block;
}

.intro-image {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  display: block;
  max-width: 300px;
  margin: 0 auto 1.5rem;
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  padding: 0;
  border-radius: 3px;
  background: #fff;
}

/* Responsive breakpoints */
@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-item {
    flex: 0 1 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
  }

  .hero .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .header {
    padding: 0.85rem 1.5rem;
  }

  .hero-slide .hero-img {
    height: 580px;
    min-height: 580px;
    max-height: calc(100vh - 72px); /* fallback */
    max-height: calc(100dvh - 72px);
    max-height: calc(100svh - 72px); /* stable – prevents shift on scroll */
  }

  .hero-panel .hero-desc {
    font-size: 1rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  /* Headings centered on tablet as well */
  .section-title,
  .content-section h2 {
    text-align: center;
  }

  .contact-section .section-title {
    text-align: left;
  }

  .about-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .about-grid {
    gap: 1.5rem;
  }

  .stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    text-align: left;
  }

  .stats-section .text-center {
    grid-column: 1 / -1;
    margin-top: 2rem;
  }

  .stat-item {
    margin-bottom: 0;
  }

  .content-section {
    padding: 2.5rem;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0;
  }

  .content-section + .content-section {
    margin-top: 1.75rem;
  }

  .intro-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1.5rem 2rem;
    align-items: start;
  }

  .intro-image {
    margin: 0;
    max-width: none;
    width: 100%;
  }

  .intro-layout--reverse {
    margin-top: 1.25rem;
  }

  .contact-card {
    max-width: 1024px;
    width: calc(100% - 2rem);
    margin: 2rem auto;
  }

  /* Contact form: full-width background, inner centered and title aligned with fields */
  .contact-section {
    padding-left: 0;
    padding-right: 0;
  }

  .contact-section.container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .contact-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .contact-section .section-title {
    text-align: left;
    margin-bottom: 1rem;
    padding: 0;
  }

  /* Footer — tablet: single row 3 cols */
  .footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .footer-main .footer-contacts {
    grid-column: auto;
    order: -1;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    margin-right: 0.75rem;
  }

  .footer-main .footer-copyright {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 1rem;
    margin-top: 0.5rem;
  }
}

/* Tablet: larger side padding for content sections (header/hero/contact/footer remain as is) */
@media (min-width: 768px) and (max-width: 1023px) {
  .about-section.container,
  .stats-section.container,
  .catalog-section .container,
  .content-section,
  .breadcrumbs {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .contact-card {
    width: calc(100% - 4rem);
    margin: 2rem auto;
  }
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 0 clamp(2rem, 4vw, 3.5rem) 0 1.5rem;
    padding-right: clamp(0.5rem, 1.5vw, 1.25rem);
  }

  .header-actions {
    margin-left: 0;
  }

  /* Hide burger on desktop – JS will keep it hidden via CSS, but we hide visually */
  .menu-btn {
    display: none;
  }

  /* Drawer never shows on desktop */
  .mobile-drawer,
  .mobile-overlay {
    display: none !important;
  }

  /* Hero — desktop overlay */
  .hero-slide .hero-img {
    height: 680px;
    min-height: 680px;
    max-height: calc(100vh - 72px); /* fallback */
    max-height: calc(100dvh - 72px);
    max-height: calc(100svh - 72px); /* stable – prevents shift on scroll */
  }

  .hero-panel {
    position: absolute;
    right: 2.5rem;
    bottom: 2.5rem;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 1.5rem 1.75rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    border-radius: 8px;
  }

  .hero-panel .hero-title {
    font-size: 1.4rem;
    text-align: center;
  }

  .hero-panel .hero-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 32rem;
    padding: 0 0.5rem;
  }

  .hero-pagination {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .catalog-item {
    flex: 0 1 calc(33.333% - 1rem);
    max-width: 360px;
  }

  .catalog-grid {
    gap: 1.5rem;
  }

  .catalog-img {
    height: 14rem;
  }

  .content-section {
    padding: 3rem 2.5rem;
  }

  .catalog-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .contact-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .contact-inner {
    max-width: 800px;
  }

  .catalog-section .text-center,
  .stats-section .text-center {
    margin-top: 2rem;
  }

  /* Section headings centered on desktop, contact form left */
  .section-title {
    text-align: center;
  }

  .content-section h2 {
    text-align: center;
  }

  .contact-section .section-title {
    text-align: left;
  }

  .footer {
    padding-top: 2.5rem;
  }

  .footer-main {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-main .footer-contacts {
    margin-right: 1rem;
  }
}

@media (min-width: 1280px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .header-inner {
    padding: 0 0.5rem;
  }

  /* Push centered nav slightly left when ample room — dynamic right padding */
  .header-nav {
    transform: translateX(-32px);
    margin-right: clamp(2.5rem, 5vw, 4.5rem);
    padding-right: clamp(0.75rem, 2vw, 1.75rem);
  }

  .hero .section-title {
    font-size: 2rem;
  }

  .about-grid {
    gap: 1.75rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-error {
  min-height: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mobile-drawer,
  .mobile-overlay,
  .header-icon-btn,
  .btn-primary,
  .btn-outline {
    transition: none;
  }
}
