/* =========================================================
   1. O'ZGARUVCHILAR (ranglar, o'lchamlar)
   ========================================================= */
:root {
  --bg: #0b1020;
  --bg-alt: #0e1530;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf8;
  --muted: #9aa4c3;

  --primary: #6c5cff;
  --primary-2: #3b82f6;
  --accent: #22d3ee;
  --danger: #f87171;
  --gradient: linear-gradient(135deg, #6c5cff 0%, #3b82f6 55%, #22d3ee 100%);

  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;
  --container: 1180px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   2. ASOS
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(108, 92, 255, 0.45);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 820px;
}

/* =========================================================
   3. TUGMALAR
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-position 0.4s var(--ease), border-color 0.25s;
}

.btn--primary {
  background: var(--gradient);
  background-size: 200% 100%;
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(108, 92, 255, 0.7);
}

.btn--primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(59, 130, 246, 0.8);
}

.btn--ghost {
  border: 1px solid var(--border);
  background: var(--surface);
}

.btn--ghost:hover {
  border-color: rgba(34, 211, 238, 0.5);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.92rem;
}

.btn--block {
  width: 100%;
}

/* =========================================================
   4. HEADER — qotgan, shaffof, blur
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 16, 32, 0.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(11, 16, 32, 0.78);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.6);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  position: relative;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}

.nav__link.is-active::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.lang__btn {
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.lang__btn.is-active {
  background: var(--gradient);
  color: #fff;
}

/* Burger (faqat mobilda ko'rinadi) */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}

.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }

.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   5. HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: blobFloat 14s ease-in-out infinite alternate;
}

.blob--1 {
  width: 520px;
  height: 520px;
  top: -140px;
  left: -120px;
  background: #6c5cff;
}

.blob--2 {
  width: 460px;
  height: 460px;
  bottom: -160px;
  right: -100px;
  background: #0ea5e9;
  animation-delay: -6s;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.typed {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.typed-cursor {
  display: inline-block;
  margin-left: 2px;
  font-weight: 400;
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__text {
  max-width: 540px;
  font-size: 1.12rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.stats li {
  display: flex;
  flex-direction: column;
  max-width: 150px;
}

.stats strong {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats li > span {
  font-size: 0.88rem;
  color: var(--muted);
}

.hero__visual {
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  50% { transform: translateY(-14px); }
}

/* =========================================================
   6. RASM SLOTLARI (placeholder → rasm)
   ========================================================= */
.img-slot {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1.5px dashed rgba(154, 164, 195, 0.35);
  background:
    linear-gradient(135deg, rgba(108, 92, 255, 0.10), rgba(34, 211, 238, 0.06));
  overflow: hidden;
}

.img-slot::after {
  content: attr(data-label);
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(11, 16, 32, 0.7);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.img-slot.is-loaded {
  border: none;
  background: none;
}

.img-slot.is-loaded::after {
  display: none;
}

.img-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeIn 0.5s var(--ease);
}

.img-slot--hero   { aspect-ratio: 6 / 5; }
.img-slot--wide   { aspect-ratio: 16 / 10; border-radius: 0; }
.img-slot--phone  { aspect-ratio: 1 / 2; border-radius: 0; }
.img-slot--square { aspect-ratio: 1 / 1; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================================================
   7. BO'LIMLAR (umumiy)
   ========================================================= */
.section {
  padding: 110px 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section__title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section__text {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Scroll'da paydo bo'lish (html.js klassi main.js'da qo'shiladi) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   8. KARTALAR VA XIZMATLAR
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: rgba(108, 92, 255, 0.45);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.service h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.service__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(108, 92, 255, 0.25), rgba(34, 211, 238, 0.15));
  border: 1px solid rgba(108, 92, 255, 0.35);
  color: var(--accent);
}

.service__icon svg {
  width: 26px;
  height: 26px;
}

.services__extra {
  margin-top: 36px;
  text-align: center;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.tags--lg li {
  padding: 7px 14px;
  font-size: 0.88rem;
  color: var(--text);
}

/* =========================================================
   9. LOYIHALAR
   ========================================================= */
.project {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 36px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.device-switch {
  display: inline-flex;
  padding: 4px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.device-switch__btn {
  padding: 7px 16px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.device-switch__btn.is-active {
  background: var(--gradient);
  color: #fff;
}

.device-view {
  display: none;
}

.device-view.is-active {
  display: block;
  animation: fadeIn 0.45s var(--ease);
}

.browser-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.browser-frame__bar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: #151c38;
}

.browser-frame__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f87171;
}

.browser-frame__bar i:nth-child(2) { background: #fbbf24; }
.browser-frame__bar i:nth-child(3) { background: #34d399; }

.browser-frame__bar span {
  margin-left: 12px;
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--muted);
}

.phone-frame {
  width: min(250px, 70%);
  margin: 0 auto;
  border: 10px solid #1a2244;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project__title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 12px 0 10px;
}

.project__body > p {
  color: var(--muted);
  margin-bottom: 20px;
}

.project__body .tags {
  margin: 22px 0 26px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}

.badge--muted {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--muted);
}

.badge--muted::before {
  animation: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0); }
}

.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.soon {
  border-style: dashed;
}

.soon h3 {
  margin: 14px 0 8px;
  font-size: 1.15rem;
}

.soon p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================================================
   10. ISH TARTIBI
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.step:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 92, 255, 0.4);
}

.step:hover::before {
  transform: scaleX(1);
}

.step__num {
  display: block;
  margin-bottom: 14px;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* =========================================================
   11. MEN HAQIMDA
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about__photo {
  position: relative;
  padding: 6px;
  border-radius: 28px;
  background: var(--gradient);
}

.about__photo .img-slot {
  border-radius: 22px;
  background-color: var(--bg-alt);
}

.about__content p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.about__content .tags {
  margin-top: 26px;
}

/* =========================================================
   12. FAQ (akkordeon)
   ========================================================= */
.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 600;
  transition: color 0.2s;
}

.faq__q:hover {
  color: var(--accent);
}

.faq__q i {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.35s var(--ease), background 0.3s;
}

.faq__q i::before,
.faq__q i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq__q i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item.is-open .faq__q i {
  transform: rotate(45deg);
  background: var(--gradient);
  border-color: transparent;
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq__a p {
  padding-bottom: 22px;
  color: var(--muted);
}

/* =========================================================
   13. ALOQA VA FORMA
   ========================================================= */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact__info > p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.contact-card:hover {
  transform: translateX(6px);
  border-color: rgba(34, 211, 238, 0.45);
}

.contact-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-card b {
  font-size: 1.05rem;
}

.form {
  display: grid;
  gap: 18px;
}

.form label {
  display: grid;
  gap: 7px;
}

.form label > span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form textarea {
  resize: vertical;
  min-height: 110px;
}

.form select option {
  background: var(--bg-alt);
  color: var(--text);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 255, 0.25);
}

.form .is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.form__hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* =========================================================
   14. FOOTER, "YUQORIGA" TUGMASI, TOAST
   ========================================================= */
.footer {
  padding: 30px 0;
}

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

.footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(108, 92, 255, 0.8);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  transform: translateY(-3px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  max-width: calc(100% - 40px);
  padding: 13px 20px;
  border-radius: 12px;
  background: #1a2244;
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   15. MOSLASHUVCHANLIK (planshet va telefon)
   ========================================================= */
@media (max-width: 960px) {
  /* Mobil menyu — header ostida ochiladigan panel */
  .burger {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(11, 16, 32, 0.97);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__link {
    padding: 12px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-top: 14px;
    padding: 13px;
  }

  .hero__inner,
  .project,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    gap: 48px;
  }

  .hero__visual {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

  .project {
    padding: 24px;
    gap: 32px;
  }

  .about {
    gap: 40px;
  }

  .about__photo {
    max-width: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }

  .section {
    padding: 80px 0;
  }

  .section__head {
    margin-bottom: 40px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 28px);
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .stats {
    gap: 22px;
  }

  .stats strong {
    font-size: 1.7rem;
  }

  .card {
    padding: 24px;
  }

  .project {
    padding: 18px;
    border-radius: 22px;
  }

  .footer__inner {
    justify-content: center;
    text-align: center;
  }
}

/* Animatsiyani yoqtirmaydigan foydalanuvchilar uchun */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
