/* Olmacha.Uz — Apple do'kon landing */
:root {
  --bg: #f5f5f7;
  --bg-dark: #1d1d1f;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --white: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fbfbfd;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.logo__apple {
  height: 1.35rem;
  width: auto;
  flex-shrink: 0;
}

.logo__apple--footer {
  height: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 400;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.45rem 1rem;
  border-radius: 980px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: #fbfbfd;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1rem;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 3rem;
  margin-top: 52px;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  color: var(--white);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem;
}

.section--dark {
  background: var(--bg-dark);
  color: #f5f5f7;
}

.section--dark .section__eyebrow,
.section--dark .section__title {
  color: #f5f5f7;
}

.section--dark .section__lead {
  color: #a1a1a6;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section__lead {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 2.5rem;
}

.section--products {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 55%, #ffffff 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__eyebrow--left,
.section__title--left,
.section__lead--left {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.section__lead--left {
  max-width: 58ch;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.product-grid--editorial {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.125rem;
}

@media (max-width: 1100px) {
  .product-grid--editorial {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .product-grid--editorial {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-grid--editorial {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.35s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card--editorial {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  transition: border-color 0.25s ease, transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.product-card--editorial:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 113, 227, 0.22);
}

.section--dark .product-card {
  background: #2d2d2f;
}

.product-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #e8e8ed 0%, #d2d2d7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.product-card__media--a {
  background: linear-gradient(160deg, #f0f0f3 0%, #e5e5ea 100%);
}

.product-card__media--b {
  background: linear-gradient(160deg, #ebebf0 0%, #dedee3 100%);
}

.product-card__media--c {
  background: linear-gradient(160deg, #e8ecf2 0%, #d8dce4 100%);
}

.section--dark .product-card__media {
  background: linear-gradient(145deg, #3a3a3c 0%, #2d2d2f 100%);
}

.product-card__media img {
  max-height: 220px;
  width: auto;
  object-fit: contain;
}

.product-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.product-card--editorial .product-card__body {
  padding: 1rem 1.15rem 1.2rem;
}

.product-card__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.product-card__name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card--editorial .product-card__name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-card__name i {
  color: var(--accent);
  font-size: 1rem;
  opacity: 0.85;
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-card--editorial .product-card__desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.section--dark .product-card__desc {
  color: #a1a1a6;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card--editorial .product-card__footer {
  border-top-color: rgba(0, 0, 0, 0.06);
  justify-content: flex-end;
}

.product-card__price {
  font-size: 1.125rem;
  font-weight: 600;
}

.product-card--editorial .product-card__price {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

.section--dark .link-arrow {
  color: #2997ff;
}

/* Video showcase */
.video-showcase {
  margin-top: 2rem;
}

.video-embed-hint {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #f5f5f7;
  background: rgba(255, 204, 0, 0.12);
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 12px;
}

.video-embed-hint a {
  color: #7ac8ff;
  font-weight: 500;
}

.video-embed-hint a:hover {
  color: #a8d9ff;
}

.video-yt-fallback {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.video-yt-fallback a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #f5f5f7;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.9;
}

.video-yt-fallback a:hover {
  opacity: 1;
  text-decoration: underline;
}

.video-showcase__box {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  max-height: 70vh;
}

/* iframe: absolute fill — ba’zi brauzerlarda aspect-ratio + foiz balandlik ishlamaydi */
.video-showcase__box iframe,
.video-showcase__box video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
  display: block;
}

.video-code {
  font-size: 0.8125rem;
  font-family: ui-monospace, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.section:not(.section--dark) .video-code {
  background: rgba(0, 0, 0, 0.06);
}

.video-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.section--dark .video-caption {
  color: #86868b;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature {
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s;
}

.feature:hover {
  transform: translateY(-4px);
}

.feature__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0071e3, #00a8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.35rem;
}

.feature h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, #1d1d1f 0%, #3a3a3c 100%);
  color: #f5f5f7;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  text-align: center;
}

.cta-strip h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cta-strip p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-strip__link {
  color: #a8d9ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-strip__link:hover {
  color: #e8f4ff;
  text-decoration: none;
}

.cta-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn--secondary {
  background: transparent;
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

/* Aloqa sahifasi */
.page-contact .contact-main {
  padding-top: 52px;
}

.contact-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) 1.5rem 1.5rem;
}

.contact-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.contact-hero__lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 52ch;
}

.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem clamp(3rem, 6vw, 4rem);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.contact-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.12), rgba(0, 168, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.contact-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-card__value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

.contact-card__value--text {
  line-height: 1.45;
}

.contact-card__sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-split {
    grid-template-columns: 1fr;
  }
}

.contact-split__heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.contact-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e8e8ed;
  aspect-ratio: 16 / 11;
  min-height: 280px;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-map__caption {
  margin-top: 0.65rem;
  font-size: 0.875rem;
}

.contact-form .form-field {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn--submit {
  background: var(--accent);
  color: var(--white);
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.2s;
}

.btn--submit:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: scale(1.01);
}

.btn--submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Natija modali (aloqa formasi) — ekran markazida */
.result-modal {
  border: none;
  padding: 0;
  margin: auto;
  max-width: min(420px, calc(100vw - 2rem));
  width: min(420px, calc(100vw - 2rem));
  height: fit-content;
  max-height: min(90vh, 100%);
  background: transparent;
  color: var(--text);
  position: fixed;
  inset: 0;
  overflow: visible;
}

.result-modal::backdrop {
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.result-modal__inner {
  background: var(--white);
  border-radius: 22px;
  padding: 2rem 1.75rem 1.6rem;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
}

.result-modal__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.15rem;
}

.result-modal:not(.result-modal--error) .result-modal__icon {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.18), rgba(22, 163, 74, 0.1));
  color: #15803d;
}

.result-modal--error .result-modal__icon {
  background: linear-gradient(145deg, rgba(220, 38, 38, 0.14), rgba(185, 28, 28, 0.08));
  color: #b91c1c;
}

.result-modal__title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.result-modal__text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.result-modal__btn {
  width: 100%;
  padding: 0.8rem 1.25rem;
  border-radius: 980px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.result-modal:not(.result-modal--error) .result-modal__btn {
  background: var(--accent);
  color: var(--white);
}

.result-modal:not(.result-modal--error) .result-modal__btn:hover {
  background: var(--accent-hover);
}

.result-modal--error .result-modal__btn {
  background: var(--text);
  color: var(--white);
}

.result-modal--error .result-modal__btn:hover {
  opacity: 0.92;
}

.result-modal__btn:active {
  transform: scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
  .result-modal__btn {
    transition: none;
  }
}

/* Footer */
.site-footer {
  background: #f5f5f7;
  padding: 2.5rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer__social a {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: color 0.2s;
}

.footer__social a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer__meta {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__meta a {
  color: var(--text-muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .product-card,
  .feature,
  .btn {
    transition: none;
  }

  .product-card:hover,
  .feature:hover {
    transform: none;
  }
}
