:root {
  --mint: #b8d8c0;
  --ink: #01313f;
  --line: #8fb39b;
  --paper: #e6f0e8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mint);
  font: 16px Arial, Helvetica, sans-serif;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #186b4f;
  outline-offset: 4px;
}

/* Yuqori aloqa qatori */

.topline {
  padding: 11px 5%;
  display: flex;
  justify-content: space-between;
  background: var(--ink);
  color: #e3efe5;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.topline > div {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.topline a:hover {
  text-decoration: underline;
}

.phone-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.topline .phone-label {
  color: var(--mint);
  align-self: center;
}

/* Navigatsiya */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #b8d8c0f5;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  padding: 17px 5%;
  border-bottom: 1px solid var(--line);
  gap: 25px;
}

.logo {
  width: 170px;
  height: 50px;
  overflow: hidden;
  position: relative;
  display: block;
  flex-shrink: 0;
}

.logo img {
  width: 185px;
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
}

nav {
  display: flex;
  gap: 25px;
  margin: auto;
  font-size: 12px;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.lang {
  display: flex;
  border: 1px solid #88ac94;
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
}

.lang a {
  display: inline-block;
  line-height: 1;
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 7px 9px;
  font-size: 11px;
  border-radius: 4px;
}

.lang a.active {
  background: var(--ink);
  color: #e9f2eb;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 20px;
  border-radius: 6px;
  background: var(--ink);
  color: #f4f7ef;
  font-size: 12px;
  font-weight: 600;
}

.button:hover {
  background: #175063;
}

.button.light {
  background: #d7ecdc;
  color: var(--ink);
}

/* Umumiy sahifa */

main {
  max-width: 1480px;
  margin: auto;
  padding: 28px 5% 0;
}

h2 {
  font-size: 36px;
  line-height: 1.14;
  letter-spacing: -1px;
  white-space: pre-line;
  margin: 0 0 18px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.section {
  padding-top: 60px;
  scroll-margin-top: 25px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 25px;
}

.section-head .eyebrow {
  color: #416d51;
  margin-bottom: 11px;
}

.section-head h2 {
  margin-bottom: 10px;
}

.sub {
  font-size: 13px;
  color: #3f644c;
  line-height: 1.8;
  margin: 0;
}

.text-link {
  font-weight: bold;
  font-size: 12px;
  border-bottom: 1px solid #6b987b;
  padding-bottom: 5px;
  display: inline-block;
}

.hero-phone .phone-label,
.text-link .phone-label,
.mobile-contact .phone-label {
  display: block;
  margin: 0 0 7px;
  line-height: 1.3;
}

/* Bosh banner */

.hero {
  min-height: 460px;
  position: relative;
  isolation: isolate;
  border-radius: 13px;
  background: var(--ink);
  color: #f4f7ef;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  width: 75%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #01313f 2%,
    #01313ff5 26%,
    #01313f95 50%,
    transparent 85%
  );
  z-index: -1;
}

.hero-copy {
  padding: 48px;
  width: 67%;
}

.hero .eyebrow {
  color: #a4c8b0;
}
.hero h1 {
  font-size: 54px;
  letter-spacing: -2px;
  line-height: 1.08;
  white-space: pre-line;
  margin: 0 0 22px;
}

.hero p {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.85;
  color: #c6ded0;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.hero-phone {
  font-size: 18px;
  font-weight: bold;
}

.hero-phone .phone-label {
  color: #c6ded0;
}

.image-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 10px;
  color: #d0e4d5;
  background: #01313fa8;
  padding: 5px 8px;
  border-radius: 3px;
}

/* Brendlar va kompaniya haqida */

.brand-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 31px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #315840;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.intro-grid p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.9;
  color: #365c45;
  margin: 0 0 15px;
}

/* Filtr va qidiruv */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.filters > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.filters button {
  border: 1px solid #8aad94;
  border-radius: 24px;
  background: #cbe2d1;
  padding: 9px 13px;
  color: var(--ink);
  font-size: 12px;
}

.filters button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.filters input {
  min-width: 220px;
  flex: 1;
  max-width: 350px;
  padding: 12px 15px;
  border: 1px solid #88ad94;
  border-radius: 6px;
  background: #dfede3;
  color: var(--ink);
  font-size: 14px;
}

/* Motor kartochkalari */

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

.product {
  border: 1px solid #96bba1;
  border-radius: 10px;
  overflow: hidden;
  background: #e5efe7;
  display: flex;
  flex-direction: column;
}

.product-image {
  height: 235px;
  background: #01313f;
  position: relative;
  isolation: isolate;
  padding: 0;
}

.product-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image > span {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 9px;
  color: #d9ebdf;
  background: #01313fe8;
  padding: 5px;
  border-radius: 3px;
  max-width: calc(100% - 20px);
}

.product-body {
  padding: 23px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #5f7c65;
  font-size: 10px;
  font-weight: bold;
  margin-bottom: 10px;
}

.product h3 {
  font-size: 25px;
  margin: 0 0 14px;
  letter-spacing: -0.6px;
  line-height: 1.2;
}

.product h3 span {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
}

.fuel {
  font-size: 12px;
  background: #cde3d3;
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 4px;
}

.product-note {
  font-size: 12px;
  color: #52715b;
  line-height: 1.6;
  min-height: 18px;
}

.product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #b7d0bf;
  margin-top: auto;
  padding-top: 15px;
  font-size: 12px;
  font-weight: bold;
}

.product-actions a:hover {
  text-decoration: underline;
}

.source {
  font-size: 10px;
  color: #50715b;
  display: block;
  margin-top: 15px;
  line-height: 1.6;
}

.photo-await {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
  background: #d7e8dc;
  border: 1px dashed #9dbca7;
  border-radius: 7px;
  padding: 20px;
}

.photo-await strong {
  font-size: 25px;
  letter-spacing: 2px;
}

.photo-await span {
  font-size: 12px;
  color: #587662;
  max-width: 190px;
  line-height: 1.8;
}
.catalog-note {
  font-size: 12px;
  line-height: 1.8;
  color: #456a51;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.empty {
  padding: 30px;
  grid-column: 1 / -1;
  background: #dcece1;
  border-radius: 8px;
  font-size: 14px;
}

/* Korobkalar va mostlar */

.parts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.parts-grid article {
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #94b69d;
  background: #d3e6d8;
}

.part-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 2px;
  color: #497056;
  margin-bottom: 23px;
}

.part-icon {
  font-size: 27px;
  color: var(--ink);
}

.parts-grid h3 {
  font-size: 23px;
  line-height: 1.3;
  margin: 0 0 25px;
  letter-spacing: -0.5px;
}

.speed-tags {
  display: flex;
  gap: 10px;
}

.speed-tags span {
  font-size: 25px;
  background: #01313f;
  color: #cce3d3;
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  border-radius: 7px;
}

.parts-grid p {
  font-size: 13px;
  line-height: 1.9;
}

.parts-grid .text-link {
  margin-top: 20px;
}

.parts-grid .axle {
  background: var(--ink);
  color: #e5efe5;
}

.axle .sub,
.axle .part-top,
.axle .part-icon {
  color: #a8c8b3;
}

.axle .text-link {
  color: #d4e8da;
}

/* Servis */

.service-banner {
  min-height: 420px;
  position: relative;
  isolation: isolate;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.service-banner > img {
  position: absolute;
  right: 0;
  top: 0;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 25%;
  z-index: -2;
}

.service-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #01313f,
    #01313fec 26%,
    #01313f45 66%,
    transparent
  );
  z-index: -1;
}

.service-banner > div {
  padding: 45px;
  width: 53%;
}

.service-banner h2 {
  font-size: 42px;
}

.service-banner p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.9;
  color: #c4ddcd;
  max-width: 350px;
  margin-bottom: 25px;
}

.service-banner .eyebrow {
  color: #a7c9b3;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #95b89e;
  border: 1px solid #95b89e;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 24px;
}

.service-grid article {
  background: #cce2d2;
  padding: 27px;
  display: flex;
  flex-direction: column;
}

.service-grid h3 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}

.service-grid p {
  font-size: 13px;
  color: #41674e;
  line-height: 1.9;
  margin: 0 0 23px;
}

.service-grid a {
  font-size: 12px;
  font-weight: bold;
  margin-top: auto;
}

/* Tanlash bo‘yicha ma’lumot */

.steps {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 70px;
}

.steps > div > article {
  display: flex;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.steps article > span {
  font-size: 13px;
  color: #4e775b;
}

.steps h3 {
  font-size: 17px;
  margin: 0 0 10px;
}

.steps article p {
  font-size: 13px;
  color: #41654b;
  line-height: 1.8;
  margin: 0;
}

/* Savol-javob */

.faq {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 55px;
}

.faq details {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.faq summary {
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1.6;
}

.faq details p {
  font-size: 13px;
  color: #3f6349;
  line-height: 1.9;
  margin: 15px 0 0;
}

/* Aloqa */

.contact {
  margin-top: 65px;
  padding: 40px;
  background: var(--ink);
  color: #e8f2ea;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact h2 {
  font-size: 39px;
}

.contact .eyebrow {
  color: #9dc3a9;
}

.contact p {
  font-size: 13px;
  color: #bad6c4;
  line-height: 1.85;
}

.contact-phones {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-phones > span {
  font-size: 12px;
  letter-spacing: 2px;
  color: #9fc5ac;
  margin-bottom: 24px;
}

.contact-phones > a {
  font-size: 29px;
  letter-spacing: -0.5px;
  padding: 19px 0;
  border-bottom: 1px solid #456f5c;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-weight: bold;
  white-space: nowrap;
}

.contact-phones > a:hover {
  color: var(--mint);
}

.contact-phones p {
  font-size: 12px;
}

.socials {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.socials a {
  font-size: 14px;
  font-weight: bold;
}

.socials small {
  display: block;
  font-size: 12px;
  font-weight: normal;
  color: #9bbca6;
  margin-top: 8px;
}

/* Pastki qism */

footer {
  padding: 30px 5%;
  display: flex;
  gap: 15px;
  align-items: center;
  max-width: 1480px;
  margin: auto;
  color: #456c51;
  font-size: 10px;
  letter-spacing: 1.5px;
}

footer strong {
  font-size: 22px;
  color: var(--ink);
}

footer > a {
  margin-left: auto;
  letter-spacing: 0;
}

.mobile-contact {
  display: none;
  align-items: center;
}

.mobile-contact .phone-label {
  font-size: 10px;
  color: var(--mint);
  margin-bottom: 4px;
}

/* Katta ekran */

@media (min-width: 1600px) {
  .product-image {
    height: 275px;
  }
}

/* Noutbuk */

@media (max-width: 1100px) {
  nav {
    gap: 15px;
    font-size: 11px;
  }

  header {
    gap: 16px;
  }

  .header-call {
    display: none;
  }

  .hero-copy {
    width: 75%;
    padding: 35px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero {
    min-height: 420px;
  }

  .products {
    gap: 15px;
  }

  .product-body {
    padding: 19px;
  }

  .parts-grid article {
    padding: 23px;
  }

  .parts-grid h3 {
    font-size: 20px;
  }

  .contact {
    padding: 32px;
    gap: 30px;
  }

  .contact-phones > a {
    font-size: 24px;
  }

  .service-banner > div {
    width: 60%;
  }
}

/* Planshet */

@media (max-width: 800px) {
  header {
    flex-wrap: wrap;
    padding: 14px 5%;
    gap: 12px;
  }

  .logo {
    width: 145px;
    height: 43px;
  }

  .logo img {
    width: 161px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .lang {
    margin-left: auto;
  }

  .topline > span {
    display: none;
  }

  .topline > div {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy {
    width: 90%;
    padding: 30px;
  }

  .hero-photo {
    width: 100%;
    opacity: 0.6;
  }

  .brand-strip {
    font-size: 12px;
    letter-spacing: 1px;
    flex-wrap: wrap;
    padding: 25px 5px;
  }

  .intro-grid {
    gap: 30px;
  }

  .products,
  .parts-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .parts-grid .axle {
    grid-column: 1 / -1;
  }

  .steps,
  .faq {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-phones > a {
    font-size: 30px;
  }

  .contact h2 {
    font-size: 35px;
  }

  .service-banner > div {
    width: 75%;
    padding: 30px;
  }

  .service-banner > img {
    width: 100%;
    opacity: 0.65;
  }

  .service-banner h2 {
    font-size: 36px;
  }

  .section-head {
    align-items: flex-start;
  }

  .section-head > .text-link {
    font-size: 11px;
    white-space: nowrap;
  }

  h2 {
    font-size: 30px;
  }
}

/* Telefon */

@media (max-width: 520px) {
  html {
    scroll-padding-top: 125px;
  }

  main {
    padding: 18px 4% 0;
  }

  .topline {
    padding: 12px 4%;
    letter-spacing: 0;
  }

  .topline > div {
    flex-wrap: wrap;
    justify-content: flex-start;
    column-gap: 20px;
    row-gap: 8px;
    font-size: 12px;
  }

  .topline .phone-label {
    width: 100%;
    font-size: 10px;
  }

  .hero {
    min-height: 440px;
  }

  .hero-copy {
    width: 100%;
    padding: 27px;
  }

  .hero h1 {
    font-size: 37px;
    letter-spacing: -1.4px;
  }

  .hero p {
    font-size: 13px;
  }

  .hero-actions {
    gap: 20px;
  }

  .hero-phone {
    font-size: 19px;
  }
  .hero::after {
    background: linear-gradient(
      90deg,
      #01313ff0,
      #01313fa0
    );
  }

  .hero-photo {
    object-position: 65% center;
  }

  .brand-strip {
    justify-content: center;
    gap: 17px;
    font-size: 11px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 35px 0;
  }

  .intro-grid p:not(.eyebrow) {
    font-size: 13px;
  }

  .section {
    padding-top: 40px;
  }

  .section-head {
    display: block;
  }

  .section-head > .text-link {
    margin-top: 15px;
  }

  .section-head h2 {
    font-size: 30px;
  }

  .filters input {
    max-width: none;
    width: 100%;
  }

  .filters button {
    font-size: 11px;
    padding: 8px 11px;
  }

  .products {
    gap: 12px;
  }

  .product-image {
    height: 165px;
  }

  .product-body {
    padding: 14px;
  }

  .product h3 {
    font-size: 21px;
  }

  .product h3 span {
    font-size: 15px;
  }

  .product-brand {
    font-size: 9px;
  }

  .fuel {
    font-size: 10px;
    padding: 6px;
  }

  .product-note {
    font-size: 11px;
    min-height: 32px;
  }

  .product-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 11px;
  }

  .source {
    font-size: 9px;
  }

  .product-image > span {
    font-size: 8px;
    left: 5px;
    right: 5px;
    text-align: center;
    max-width: none;
  }

  .photo-await {
    padding: 10px;
    gap: 12px;
  }

  .photo-await strong {
    font-size: 15px;
  }

  .photo-await span {
    font-size: 10px;
  }

  .parts-grid {
    grid-template-columns: 1fr;
  }

  .parts-grid .axle {
    grid-column: auto;
  }

  .parts-grid article {
    padding: 26px;
  }

  .parts-grid h3 {
    font-size: 24px;
  }

  .service-banner {
    min-height: 390px;
  }

  .service-banner > div {
    width: 100%;
    padding: 26px;
  }

  .service-banner > img {
    object-position: 75% center;
    opacity: 0.45;
  }

  .service-banner h2 {
    font-size: 35px;
  }

  .service-banner p:not(.eyebrow) {
    max-width: 270px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article {
    padding: 25px;
  }

  .service-grid h3 {
    font-size: 21px;
  }

  .steps {
    gap: 10px;
  }

  .faq h2 {
    font-size: 30px;
  }

  .contact {
    padding: 27px;
    margin-top: 40px;
  }

  .contact h2 {
    font-size: 32px;
  }

  .contact-phones > a {
    font-size: 23px;
    gap: 8px;
  }

  .socials {
    gap: 18px;
  }

  .contact-phones > span {
    margin-bottom: 8px;
  }

  footer {
    padding: 27px 4% 100px;
    gap: 9px;
    font-size: 9px;
  }

  .mobile-contact {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #01313f;
    z-index: 25;
    border-top: 1px solid #729a7f;
    color: #f3f6ee;
    padding: 14px 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    gap: 12px;
    justify-content: space-between;
    box-shadow: 0 -4px 20px #01313f20;
  }

  .mobile-contact a {
    font-size: 12px;
    font-weight: bold;
  }

  .mobile-contact a:last-child {
    color: var(--mint);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
