/* Existing styles */
*,
*:after,
*:before {
  box-sizing: border-box;
}

:root {
  --border: hsl(0 0% 80%);
  --card: hsl(0 0% 98%);
  --element: hsl(0 0% 90%);
  --accent: hsl(240 38% 60%);
  --panel: hsl(240 38% 98%);
}

html {
  color-scheme: light only;
}

body {
  min-height: 100vh;
  font-family: "SF Pro Text", "SF Pro Icons", "AOS Icons", "Helvetica Neue",
    Helvetica, Arial, sans-serif, system-ui;
  overflow-x: hidden;
}

body::before {
  --size: 60px;
  --line: hsl(0 0% 0% / 0.15);
  content: "";
  height: 100vh;
  width: 100vw;
  position: fixed;
  background: linear-gradient(
        90deg,
        var(--line) 1px,
        transparent 1px var(--size)
      )
      50% 50% / var(--size) var(--size),
    linear-gradient(var(--line) 1px, transparent 1px var(--size)) 50% 50% /
      var(--size) var(--size);
  mask: linear-gradient(-15deg, transparent 30%, white);
  top: 0;
  pointer-events: none;
  z-index: -1;
}

footer {
  padding: 1rem;
  display: grid;
  place-items: center;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 4.5vw + 1rem, 10rem);
  width: 20ch;
  max-width: 100vw;
  font-weight: 700;
  text-wrap: balance;
  text-align: center;
}

h1 span {
  font-size: 60px;
  color: hsl(260 80% 50%);
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw + 1rem, 8rem);
}

section {
  display: grid;
  place-items: center;
  min-height: 50vh;
}

nav {
  position: fixed;
  top: 0;
  padding: 0.25rem;
  width: 100%;
  backdrop-filter: blur(10px);
  z-index: 20;
}

.navbar {
  justify-content: center;
  margin: 0 auto;
  display: flex;
  width: 80ch;
  max-width: 100%;
}

.hero {
  top: 0;
  left: 0;
  right: 0;
  min-height: 100vh;
  width: 100vw;
  display: grid;
  place-items: center;
  z-index: 3;
  padding-top: 2rem;
}

.sticker {
  width: 100%;
  min-height: 100vh;
  position: sticky;
  top: 0;
  z-index: 2;
}

.scroller {
  position: relative;
  min-height: 200vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.content {
  width: 100%;
  min-height: 100vh;
  display: flex;
  place-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 75%;
  text-align: center;
  margin: 0 auto;
}

.hero a {
  color: canvas;
  background: var(--accent);
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: bold;
  position: relative;
}

.hero a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: hsl(0 0% 100% / 0);
}

.hero a:is(:hover, :focus-visible)::after {
  background: hsl(0 0% 100% / 0.15);
}

.cf:after {
  clear: both;
}

.cf {
  zoom: 1;
}

form {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1em;
  background: var(--panel);
  border-radius: 1em;
}

input,
textarea {
  margin: 0;
  border: none;
  border-radius: 0.5em;
  background: var(--element);
  font-size: 1em;
  padding: 1em;
  border: 1px solid var(--border);
  font-family: "Merriweather", sans-serif;
}

input[type="submit"] {
  background: var(--accent);
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

input[type="submit"]:hover {
  background-color: #dc5353;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
  width: 100%;
  margin-bottom: 1em;
}

.half {
  float: left;
  width: 48%;
  margin-bottom: 1em;
}

.right {
  width: 48%;
  float: right;
}

.left {
  margin-right: 4%;
}

@media (max-width: 600px) {
  .half {
    width: 100%;
    float: none;
    margin-bottom: 0;
  }
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.pushable {
  background: hsl(198, 73%, 52%);
  border-radius: 12px;
  border: none;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  display: flex;
  justify-content: center; /* Tugmani markazda chiqarish uchun */
  align-items: center; /* Tugmani markazda chiqarish uchun */
}

.front {
  display: block;
  padding: 11px 62px;
  border-radius: 12px;
  font-size: 1.25rem;
  background: hsl(184, 92%, 49%);
  color: white;
  transform: translateY(-6px);
}

.pushable:active .front {
  transform: translateY(-2px);
}

.red-line {
  margin-top: 50px;
  width: 60%;
  height: 3px;
  background-color: rgb(149, 0, 255);
  margin: 0 auto;
}

.heading {
  text-align: center;
}

#kichikRasm {
  width: 200px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 0 5px rgba(255, 227, 227, 0.5);
}

.footer {
  display: grid;
  place-items: center;
  padding: 20px;
  background: #ebebeb;
  color: #000;
}

.footer h2 {
  font-size: 1.5rem;
  margin-bottom: 1.6rem;
}

.footer-social a i {
  color: rgb(10, 26, 208);
  font-size: 25px;
  margin-left: 10px;
  text-align: center;
  line-height: 40px;
  background-color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.footer-socia a i {
  color: rgb(0, 0, 0);
  font-size: 28px;
  margin-left: 15px;
  text-align: center;
  line-height: 40px;
  background-color: hsl(190, 100%, 73%);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
}

#loader {
  width: 50px;
  height: 50px;
  border: 5px solid #ddd;
  border-top: 5px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.pushable {
  background: hsl(230 50% 50%);
  border-radius: 12px;
  border: none;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  transition: filter 250ms;
}

.pushable:hover {
  filter: brightness(110%);
}

.pushable:active {
  filter: brightness(95%);
}

.front {
  display: block;
  padding: 1em 2em;
  border-radius: 12px;
  font-size: 1.25rem;
  background: hsl(230 60% 50%);
  color: white;
  transform: translateY(-0.25em);
  transition: transform 250ms;
}

.pushable:active .front {
  transform: translateY(0);
}

.promotions {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  text-align: center;
}

.promotion {
  flex: 1 1 calc(33% - 40px);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.promotion:hover {
  transform: scale(1.05);
}

.promotion h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.promotion p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.promotions button {
  background-color: #ffcc00;
  color: black;
  padding: 10px 20px;
  border-radius: 5px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .promotion {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }

  .promotions {
    padding: 10px;
  }

  .promotion h2 {
    font-size: 1.25rem;
  }

  .promotion p {
    font-size: 0.9rem;
  }

  .promotions button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .promotion {
    flex: 1 1 100%;
    margin-bottom: 15px;
  }

  .promotions {
    padding: 5px;
  }

  .promotion h2 {
    font-size: 1rem;
  }

  .promotion p {
    font-size: 0.8rem;
  }

  .promotions button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}
