:root {
  --bg: #f4f1ec;
  --bg-alt: #ece7df;
  --card: #ffffff;
  --text: #1c241f;
  --muted: #5d675f;
  --line: #ddd6cc;
  --accent: #2a5644;
  --accent-2: #3a7058;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 36, 31, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
  background: transparent;
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
}

.nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  flex-direction: column;
  gap: 4px;
  z-index: 30;
}

.nav.open {
  display: flex;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
}

.nav a:hover {
  color: var(--accent);
  background: var(--bg);
}

.hero {
  padding: 20px 0 24px;
  scroll-margin-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.hero-copy,
.hero-visual {
  min-width: 0;
  width: 100%;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 6vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-meta {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.lead {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--card);
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual,
.hero-frame,
.hero-frame img,
#hero-photo,
#hero-photo[hidden] {
  display: block;
}

.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(28, 36, 31, 0.04);
}

.hero-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.hero + .section {
  padding-top: 28px;
}

.home {
  background: #fff;
}

.home .wrap {
  width: min(1280px, calc(100% - 40px));
}

.home .site-header {
  background: #fff;
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(28, 36, 31, 0.08);
}

.home .header-inner {
  min-height: 68px;
  padding: 10px 0;
}

.home .logo img {
  height: 48px;
}

.home .hero {
  background: #fff;
  padding: 32px 0 40px;
}

.home .hero-grid {
  gap: 24px;
}

.home .hero-frame {
  border: 0;
  background: #fff;
  border-radius: 18px;
  min-height: 240px;
  box-shadow: 0 1px 2px rgba(28, 36, 31, 0.05), 0 18px 40px rgba(28, 36, 31, 0.07);
}

.home .hero h1 {
  font-weight: 700;
  font-size: clamp(2rem, 6.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}

.home .hero-meta {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 34rem;
  margin: 0 0 22px;
}

.home .hero-actions {
  gap: 12px;
}

.home .btn {
  font-weight: 600;
  padding: 13px 24px;
}

.home #yonlishlar,
.home #haqida,
.home #aloqa {
  background: #fff;
}

.home #mahsulotlar,
.home #xizmatlar {
  background: var(--bg);
}

.home #yonlishlar,
.home #mahsulotlar,
.home #haqida,
.home #xizmatlar,
.home #aloqa {
  padding: 48px 0;
}

.home .hero + .section {
  padding-top: 48px;
}

.home .section-head {
  margin: 0 0 28px;
}

.home h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  line-height: 1.2;
}

.home .lead {
  max-width: 40rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.home .about-grid p,
.home .info-grid p {
  font-size: 0.95rem;
  line-height: 1.65;
}

.home .equal-grid,
.home .home-card-grid,
.home .info-grid {
  gap: 22px;
  margin-top: 0;
}

.home .direction-card,
.home .home-card-grid .product-card,
.home .info-grid article,
.home .about-aside,
.home .contact-form {
  border: 1px solid #e6e0d6;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(28, 36, 31, 0.05), 0 1px 3px rgba(28, 36, 31, 0.06);
}

.home .direction-visual {
  aspect-ratio: 4 / 3;
  min-height: 200px;
  background: #fff;
  border-radius: 16px 16px 0 0;
}

.home .direction-body {
  padding: 16px 18px 20px;
}

.home .direction-body h3,
.home .home-card-grid .product-card .body h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home .home-card-grid .product-card-media,
.home .home-card-grid .product-main-frame {
  min-height: 200px;
}

.home .home-card-grid .product-card .body {
  padding: 16px 18px 20px;
}

.home .hero-frame,
.home .direction-visual,
.home .home-card-grid .product-card-media {
  border-radius: 16px;
}

.home .direction-visual,
.home .home-card-grid .product-card-media {
  border-radius: 16px 16px 0 0;
}

.home .catalog-more {
  margin-top: 28px;
  text-align: left;
}

.home .catalog-more .btn {
  min-width: 220px;
}

.home .site-footer {
  padding: 18px 0;
}

.section {
  padding: 64px 0;
  scroll-margin-top: 80px;
}

#yonlishlar,
#mahsulotlar,
#haqida,
#xizmatlar,
#aloqa {
  padding: 48px 0;
  scroll-margin-top: 80px;
}

.section-alt {
  background: var(--bg-alt);
}

h2,
.section h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.equal-grid,
.info-grid,
.product-grid {
  display: grid;
  gap: 20px;
}

.equal-grid,
.info-grid,
.product-grid {
  grid-template-columns: 1fr;
  margin-top: 28px;
}

.direction-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(28, 36, 31, 0.04);
  text-decoration: none;
  color: var(--text);
  overflow: visible;
  position: relative;
  z-index: 0;
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.direction-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.direction-visual .placeholder {
  width: 100%;
  margin: 0;
  background: #fff;
}

.direction-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.direction-body {
  padding: 14px 16px 18px;
}

.direction-body h3 {
  margin: 0;
}

@media (hover: hover) and (pointer: fine) {
  .direction-card:hover,
  .home-card-grid a.product-card:hover,
  .info-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(28, 36, 31, 0.12);
    border-color: #c5d4cb;
    z-index: 2;
  }

  .hero-actions .btn:hover,
  .catalog-more .btn:hover,
  .contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(42, 86, 68, 0.18);
  }
}

.category-block {
  margin-top: 40px;
  scroll-margin-top: 92px;
}

.category-block + .category-block {
  margin-top: 48px;
}

.category-block > h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.catalog-more {
  margin: 28px 0 0;
  text-align: center;
}

.home-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
  max-width: 100%;
}

.home-card-grid .product-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(28, 36, 31, 0.04);
  overflow: visible;
  position: relative;
  z-index: 0;
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-card-grid .product-card-media {
  padding: 0;
  background: #fff;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.home-card-grid .product-main-frame,
.home-card-grid .placeholder {
  width: 100%;
  margin: 0;
  background: #fff;
}

.home-card-grid .product-main-image {
  background: #fff;
  object-fit: contain;
  object-position: center;
}

.home-card-grid .product-card .body {
  padding: 14px 16px 18px;
}

.home-card-grid .product-card .body h3 {
  margin: 0;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 8px;
  max-width: 100%;
}

.catalog-filters a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.catalog-filters a.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .catalog-filters a:not(.is-active):hover {
    color: var(--accent);
    border-color: #c5d4cb;
  }
}

.catalog-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.catalog-crumb[hidden],
#catalog-title[hidden],
#catalog-lead[hidden],
#catalog-back[hidden],
#catalog-desc[hidden],
#catalog-filters[hidden] {
  display: none;
}

.catalog-crumb a {
  text-decoration: none;
  color: var(--accent);
}

.catalog-crumb-sep {
  color: var(--line);
}

.section:has(.model-page),
.section:has(.type-page),
.section:has(.category-page) {
  padding-top: 32px;
  padding-bottom: 40px;
}

.section:has(.type-page) #catalog-title,
.section:has(.category-page) #catalog-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.section:has(.type-page) #catalog-back {
  margin: 0 0 8px;
  color: var(--muted);
}

.section:has(.type-page) #catalog-desc,
.section:has(.category-page) #catalog-desc {
  margin: 0 0 8px;
  color: var(--text);
}

.section:has(.type-page) #catalog-lead,
.section:has(.category-page) #catalog-lead {
  margin: 0 0 12px;
}

.section:has(.type-page) .catalog-filters,
.section:has(.category-page) .catalog-filters {
  margin: 12px 0 4px;
}

.type-page-grid,
.category-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
  max-width: 100%;
}

.type-page-grid .catalog-empty,
.type-page .catalog-empty,
.category-page-grid .catalog-empty,
.category-page .catalog-empty {
  grid-column: 1 / -1;
  margin: 8px 0 0;
}

.type-page-grid .product-card,
.category-page-grid .product-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(28, 36, 31, 0.04);
  overflow: visible;
  position: relative;
  z-index: 0;
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .type-page-grid a.product-card:hover,
  .category-page-grid a.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(28, 36, 31, 0.12);
    border-color: #c5d4cb;
    z-index: 2;
  }
}

.type-page-grid .product-card-media,
.category-page-grid .product-card-media {
  padding: 0;
  background: #fff;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.type-page-grid .product-main-frame,
.type-page-grid .placeholder,
.category-page-grid .product-main-frame,
.category-page-grid .placeholder {
  width: 100%;
  margin: 0;
  background: #fff;
}

.type-page-grid .product-main-image,
.category-page-grid .product-main-image {
  background: #fff;
  object-fit: contain;
  object-position: center;
}

.type-page-grid .product-card .body,
.category-page-grid .product-card .body {
  padding: 14px 16px 18px;
}

.type-page-grid .product-card .body h3,
.category-page-grid .product-card .body h3 {
  margin: 0;
}

.type-page-grid .product-card .body p,
.category-page-grid .product-card .body p {
  margin: 8px 0 0;
  color: var(--muted);
}

.model-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 8px;
  max-width: 100%;
}

.model-gallery,
.model-info {
  min-width: 0;
}

.model-gallery {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px 16px;
  box-shadow: 0 8px 24px rgba(28, 36, 31, 0.04);
}

.model-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 20px 24px;
  box-shadow: 0 8px 24px rgba(28, 36, 31, 0.04);
}

.model-page .product-main-frame {
  width: 100%;
  margin: 0;
  background: #fff;
}

.model-page .product-main-image {
  background: #fff;
  object-fit: contain;
  object-position: center;
}

.model-page .placeholder {
  width: 100%;
  margin: 0;
  background: #fff;
}

.model-gallery .product-thumbs {
  justify-content: flex-start;
  padding: 12px 0 0;
}

.model-gallery .product-thumb {
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.model-gallery .product-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(28, 36, 31, 0.08);
}

.model-info h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.model-meta {
  margin: 0 0 12px;
  color: var(--muted);
}

.model-desc {
  margin: 0 0 12px;
  color: var(--text);
}

.model-info .lead {
  margin: 0 0 16px;
}

.model-info .btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.model-info .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(42, 86, 68, 0.18);
}

@media (max-width: 959px) {
  .model-info .btn {
    width: 100%;
  }
}

#featured-products:empty {
  display: none;
  margin: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 100%;
}

a.product-card {
  color: inherit;
  text-decoration: none;
}

.placeholder {
  width: 86%;
  margin: 16px auto 0;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #e7efe9, #d7e0d8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-card img {
  display: block;
  object-fit: contain;
  object-position: center;
}

.product-card-media {
  padding-top: 16px;
}

.product-main-frame {
  position: relative;
  width: 86%;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
}

.product-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 10px 12px 0;
}

.product-thumb {
  box-sizing: border-box;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.product-thumb.is-active {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.product-card .body {
  padding: 16px 18px 20px;
}

.promo {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--accent);
}

.about-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.about-grid p {
  color: var(--muted);
}

.about-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 8px 24px rgba(28, 36, 31, 0.04);
}

.about-stat {
  margin: 0 0 8px;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.about-place {
  margin-top: 16px;
}

.info-grid article {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(28, 36, 31, 0.04);
  padding: 22px 20px;
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.info-grid p {
  margin: 0;
  color: var(--muted);
}

.contact-wrap {
  display: grid;
  gap: 24px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 8px 24px rgba(28, 36, 31, 0.04);
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-form .btn {
  justify-self: start;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 18px 0;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  gap: 10px;
}

.footer-inner p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-nav a {
  text-decoration: none;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--accent);
}

@media (min-width: 640px) {
  .equal-grid,
  .home-card-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 700px) {
  .product-grid,
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .equal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .menu-btn {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nav a {
    padding: 8px 12px;
  }

  .hero {
    padding: 28px 0 32px;
    scroll-margin-top: 84px;
  }

  .home .hero {
    padding: 64px 0 80px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 32px;
  }

  .home .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 56px;
    min-height: 460px;
  }

  .home .hero h1 {
    font-size: clamp(2.5rem, 3.8vw, 3.4rem);
  }

  .home .hero-meta {
    font-size: 1.08rem;
    margin-bottom: 28px;
  }

  .home .hero-frame {
    min-height: 420px;
    aspect-ratio: 4 / 3;
  }

  .home .nav {
    gap: 2px;
  }

  .home .nav a {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 14px;
  }

  .home .direction-visual {
    min-height: 260px;
  }

  .home .home-card-grid .product-main-frame,
  .home .home-card-grid .product-card-media {
    min-height: 240px;
  }

  .hero + .section {
    padding-top: 36px;
  }

  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 40px;
  }

  .equal-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .info-grid,
  .product-grid,
  .home-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #yonlishlar,
  #mahsulotlar,
  #haqida,
  #xizmatlar,
  #aloqa {
    padding: 56px 0;
  }

  .home #yonlishlar,
  .home #mahsulotlar,
  .home #haqida,
  .home #xizmatlar,
  .home #aloqa {
    padding: 72px 0;
  }

  .home .hero + .section {
    padding-top: 72px;
  }

  .home .section-head {
    margin-bottom: 32px;
  }

  .home .equal-grid,
  .home .home-card-grid {
    gap: 24px;
  }

  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
  }

  .model-page {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 28px;
    align-items: start;
  }

  .type-page-grid,
  .category-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .type-page-grid.cols-4,
  .category-page-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section {
    padding: 80px 0;
  }

  .section:has(.model-page),
  .section:has(.type-page),
  .section:has(.category-page) {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .contact-form {
    margin-top: 0;
  }
}

@media (max-width: 959px) {
  .logo img {
    height: 44px;
  }

  .hero {
    scroll-margin-top: 68px;
  }

  .contact-form .btn {
    width: 100%;
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  .type-page-grid,
  .category-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

.error-page .error-main {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 64px;
}

.error-page .error-box {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 24px;
  max-width: 520px;
}

.error-page .error-box h1 {
  margin: 0 0 24px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
}

.error-page .error-box .btn {
  min-width: 12rem;
}
