﻿/* Site UX overrides — scroll must always work */
html,
body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100% !important;
  overscroll-behavior-y: auto !important;
  touch-action: pan-x pan-y !important;
}

#root {
  overflow: visible !important;
  min-height: 100%;
}

/* Reduce iOS input zoom (focus) without blocking page scroll */
input,
textarea,
select {
  font-size: 16px !important;
}

button,
a,
[role="button"],
input[type="submit"],
input[type="button"],
label[for],
.cursor-pointer {
  cursor: pointer !important;
}

/* Circular logo badge — full emblem, no tint plates */
header img[src*="logo"],
footer img[src*="logo"],
img[src="/images/logo.png"] {
  border-radius: 9999px !important;
  object-fit: contain !important;
  aspect-ratio: 1 / 1 !important;
  width: 3.15rem !important;
  height: 3.15rem !important;
  padding: 0 !important;
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
  transition: box-shadow 0.35s ease !important;
}
@media (min-width: 640px) {
  header img[src*="logo"],
  footer img[src*="logo"],
  img[src="/images/logo.png"] {
    width: 3.4rem !important;
    height: 3.4rem !important;
  }
}

/* Keep white plate on dark and light headers — logo already has gold/white art */
html[data-header="top"] header img[src*="logo"],
header.bg-transparent img[src*="logo"],
header[class*="bg-transparent"] img[src*="logo"],
html[data-header="scrolled"] header img[src*="logo"],
header.bg-white img[src*="logo"],
header[class*="bg-white"] img[src*="logo"],
footer img[src*="logo"] {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Cart: hidden by default; only show on catalog (prevents home flash) */
header button[aria-label*="корзин" i],
header button[aria-label*="себет" i],
header button[aria-label*="Cart" i],
header button.qonaq-cart-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

html[data-page="catalog"] header button.qonaq-cart-btn,
body[data-page="catalog"] header button.qonaq-cart-btn,
html[data-page="catalog"] header button[aria-label*="корзин" i],
html[data-page="catalog"] header button[aria-label*="себет" i],
html[data-page="catalog"] header button[aria-label*="Cart" i],
body[data-page="catalog"] header button[aria-label*="корзин" i],
body[data-page="catalog"] header button[aria-label*="себет" i],
body[data-page="catalog"] header button[aria-label*="Cart" i] {
  display: inline-flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: relative !important;
  width: auto !important;
  height: auto !important;
  min-width: 2.75rem !important;
  min-height: 2.75rem !important;
  padding: 0.5rem 0.95rem !important;
  opacity: 1 !important;
  overflow: visible !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  border-radius: 9999px !important;
  background: #065f46 !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(6, 95, 70, 0.4) !important;
}

/* Hide cart on home */
html[data-page="home"] header button.qonaq-cart-btn,
body[data-page="home"] header button.qonaq-cart-btn,
html[data-page="home"] header button[aria-label*="корзин" i],
html[data-page="home"] header button[aria-label*="себет" i],
html[data-page="home"] header button[aria-label*="Cart" i],
body[data-page="home"] header button[aria-label*="корзин" i],
body[data-page="home"] header button[aria-label*="себет" i],
body[data-page="home"] header button[aria-label*="Cart" i] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html[data-page="catalog"] header button.qonaq-cart-btn,
body[data-page="catalog"] header button.qonaq-cart-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  width: auto !important;
  min-width: 2.75rem !important;
  min-height: 2.75rem !important;
  padding: 0.5rem 0.95rem !important;
  border-radius: 9999px !important;
  background: #065f46 !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(6, 95, 70, 0.4) !important;
}
html[data-page="catalog"] header button.qonaq-cart-btn:hover,
body[data-page="catalog"] header button.qonaq-cart-btn:hover {
  background: #047857 !important;
}
html[data-page="catalog"] header button.qonaq-cart-btn .qonaq-cart-text,
body[data-page="catalog"] header button.qonaq-cart-btn .qonaq-cart-text {
  display: inline;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  html[data-page="catalog"] header button.qonaq-cart-btn .qonaq-cart-text,
  body[data-page="catalog"] header button.qonaq-cart-btn .qonaq-cart-text {
    display: none;
  }
}

/* Lead form before footer (home only) */
.qonaq-lead {
  background: linear-gradient(135deg, #022c22 0%, #065f46 55%, #047857 100%);
  color: #fff;
  padding: 2.5rem 1rem;
}
.qonaq-lead__wrap {
  max-width: 720px;
  margin: 0 auto;
}
.qonaq-lead h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #fff;
}
.qonaq-lead p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}
.qonaq-lead__form {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .qonaq-lead__form {
    grid-template-columns: 1fr 1fr auto;
    align-items: stretch;
  }
}
.qonaq-lead__form input {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: #1c1917;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  font-weight: 600;
  font-size: 16px !important;
  width: 100%;
}
.qonaq-lead__form input::placeholder {
  color: #78716c;
  font-weight: 600;
}
.qonaq-lead__form button {
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  background: #fff;
  color: #065f46;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  min-height: 48px;
}
.qonaq-lead__form button:hover {
  background: #ecfdf5;
}
.qonaq-lead__form button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.qonaq-lead__status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.qonaq-lead__status.is-ok {
  color: #a7f3d0;
}
.qonaq-lead__status.is-err {
  color: #fecaca;
}

/* ========== Hero first block ========== */
/* Desktop = original look; mobile tweaks only below */

section#about [class*="max-w-2xl"],
section#about [class*="max-w-xl"] {
  max-width: 30rem !important;
}

/* Title — desktop */
section#about h1 {
  max-width: 16.5em !important;
  line-height: 1.18 !important;
}
section#about h1 > span {
  display: block !important;
  white-space: nowrap !important;
}

/* Stats — desktop: light transparent cards (original) */
section#about [class*="bg-white/5"],
section#about [class*="backdrop-blur"] {
  padding: 0.55rem 0.7rem !important;
  width: auto !important;
  max-width: 100%;
}
@media (min-width: 640px) {
  section#about [class*="bg-white/5"],
  section#about [class*="backdrop-blur"] {
    padding: 0.65rem 0.75rem !important;
  }
}

/* CTAs — desktop: one row (original) */
section#about a.qonaq-hero-cta,
section#about a[href="#contact"],
section#about a[href="#who-we-are"],
section#about a[href="/catalog"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 0.85rem !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  font-size: clamp(10px, 2.2vw, 13px) !important;
  line-height: 1.1 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  border-radius: 10px !important;
}
section#about a.qonaq-hero-cta[href="/catalog"],
section#about a[href="/catalog"],
section#about a[href="#who-we-are"] {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid #10b981 !important;
  box-shadow: none !important;
}
section#about a.qonaq-hero-cta[href="/catalog"]:hover,
section#about a[href="/catalog"]:hover,
section#about a[href="#who-we-are"]:hover {
  background: rgba(16, 185, 129, 0.15) !important;
}
section#about [class*="flex-row"][class*="gap-2"],
section#about [class*="flex-row"][class*="gap-3"] {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.5rem !important;
  max-width: none !important;
  width: auto !important;
}
@media (min-width: 640px) {
  section#about a.qonaq-hero-cta,
  section#about a[href="#contact"],
  section#about a[href="#who-we-are"],
  section#about a[href="/catalog"] {
    flex: 0 1 auto !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 1.15rem !important;
    font-size: 13px !important;
  }
}

/* Hero photo — desktop: visible on right, never covers left copy */
section#about img[src*="hero-slippers"],
section#about img.qonaq-hero-photo {
  background: transparent !important;
  mix-blend-mode: normal;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.45));
  width: 100% !important;
  max-width: min(100%, 420px) !important;
  max-height: none !important;
  height: auto !important;
  object-fit: contain !important;
  margin-inline: auto !important;
  display: block !important;
}
@media (min-width: 1024px) {
  section#about [class*="lg:flex-1"][class*="lg:max-w"],
  section#about [class*="lg:max-w-xl"],
  section#about [class*="xl:max-w-2xl"] {
    position: relative !important;
    z-index: 20 !important;
    max-width: 34rem !important;
  }
  section#about [class*="lg:absolute"][class*="lg:right-0"] {
    width: 50% !important;
    max-width: 46rem !important;
    padding-bottom: 2rem !important;
    align-items: center !important;
    justify-content: flex-end !important;
    z-index: 5 !important;
    pointer-events: none !important;
  }
  section#about img[src*="hero-slippers"],
  section#about img.qonaq-hero-photo {
    margin-top: -0.75rem !important;
    width: min(50vw, 640px) !important;
    max-width: 640px !important;
    max-height: min(74vh, 640px) !important;
  }
}
@media (min-width: 1280px) {
  section#about [class*="lg:absolute"][class*="lg:right-0"] {
    width: 52% !important;
  }
  section#about img[src*="hero-slippers"],
  section#about img.qonaq-hero-photo {
    width: min(48vw, 700px) !important;
    max-width: 700px !important;
    max-height: min(76vh, 700px) !important;
  }
}
@media (min-width: 1536px) {
  section#about img[src*="hero-slippers"],
  section#about img.qonaq-hero-photo {
    width: min(44vw, 760px) !important;
    max-width: 760px !important;
  }
}

section#advantages img[src*="hero-slippers"] {
  width: min(100%, 250px) !important;
  max-width: 250px !important;
  margin-top: 0 !important;
  filter: none !important;
}

/* ===== Mobile only (do not affect desktop) ===== */
@media (max-width: 639px) {
  /* Hero: tighter, clearer first screen */
  section#about {
    min-height: auto !important;
  }
  section#about > .relative.z-10,
  section#about [class*="pt-16"] {
    padding-top: 4.25rem !important;
  }
  section#about [class*="max-w-7xl"] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  section#about [class*="pb-16"][class*="pt-6"],
  section#about [class*="lg:flex-1"][class*="justify-start"] {
    padding-top: 0.85rem !important;
    padding-bottom: 2.25rem !important;
  }

  section#about p[class*="uppercase"] {
    margin-bottom: 0.45rem !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.16em !important;
    color: #34d399 !important;
  }

  section#about h1 {
    max-width: 100% !important;
    font-size: clamp(1.55rem, 7.4vw, 2rem) !important;
    line-height: 1.14 !important;
    margin-bottom: 0.7rem !important;
    letter-spacing: 0.03em !important;
  }
  section#about h1 > span {
    white-space: normal !important;
  }

  section#about h1 + p,
  section#about p[class*="text-white/80"] {
    margin-bottom: 0.85rem !important;
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    max-width: 36rem !important;
  }

  /* Theme photo — larger, not clipped */
  section#about [class*="lg:hidden"] {
    max-height: none !important;
    overflow: visible !important;
    margin: 0.35rem 0 1rem !important;
  }
  section#about img[src*="hero-slippers"],
  section#about img.qonaq-hero-photo {
    margin-top: 0 !important;
    width: min(92vw, 420px) !important;
    max-width: 420px !important;
    max-height: none !important;
    height: auto !important;
    margin-inline: auto !important;
    display: block !important;
    filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.55));
  }

  /* CTAs full-width stack — clear tap targets */
  section#about [class*="flex-row"][class*="gap-2"],
  section#about [class*="flex-row"][class*="gap-3"] {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0.6rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0.85rem !important;
  }
  section#about a.qonaq-hero-cta,
  section#about a[href="#contact"],
  section#about a[href="/catalog"] {
    width: 100% !important;
    flex: 1 1 100% !important;
    min-height: 52px !important;
    height: auto !important;
    padding: 0.9rem 1.15rem !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    border-radius: 14px !important;
  }

  section#about p[class*="text-white/65"],
  section#about p[class*="text-[11px]"] {
    margin-bottom: 1rem !important;
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
  }

  /* Stats only — shorten full-width backgrounds (screenshot) */
  section#about [class*="grid"][class*="grid-cols"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  section#about [class*="bg-white/5"],
  section#about [class*="backdrop-blur"] {
    background: rgba(2, 44, 34, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28) !important;
    border-radius: 12px !important;
    padding: 0.55rem 0.7rem !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.55rem !important;
  }
  section#about [class*="bg-white/5"] svg,
  section#about [class*="backdrop-blur"] svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
  }
  section#about [class*="bg-white/5"] p,
  section#about [class*="backdrop-blur"] p {
    margin: 0 !important;
  }
  section#about [class*="bg-white/5"] p:first-child,
  section#about [class*="backdrop-blur"] p:first-child {
    font-size: 0.88rem !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
  }
  section#about [class*="bg-white/5"] p:last-child,
  section#about [class*="backdrop-blur"] p:last-child {
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
    margin-top: 0.1rem !important;
  }

  /* Sections below hero */
  section[id] {
    scroll-margin-top: 4.5rem;
  }
  #who-we-are,
  #advantages,
  #testimonials,
  #contact,
  section.section-pad {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #who-we-are > div,
  #advantages > div,
  #testimonials > div,
  section.section-pad > div {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Who we are — keep goal text clear of collage photos */
  #who-we-are [class*="border-l"] {
    position: relative !important;
    z-index: 5 !important;
    margin-bottom: 1.1rem !important;
    padding-right: 0.25rem !important;
  }
  #who-we-are [class*="relative"][class*="pt-"] {
    margin-top: 0.35rem !important;
  }
  #who-we-are [class*="grid"] {
    gap: 0.85rem !important;
  }
  #who-we-are article,
  #who-we-are [class*="rounded-2xl"],
  #who-we-are [class*="rounded-xl"] {
    border-radius: 14px !important;
  }
  #who-we-are [class*="absolute"][class*="top-3"],
  #who-we-are [class*="absolute"][class*="left-3"] {
    top: 0.65rem !important;
    left: 0.65rem !important;
    width: 34% !important;
    z-index: 2 !important;
  }

  /* Advantages — hide duplicate slippers; polish benefit cards */
  #advantages [class*="from-stone-50"][class*="to-emerald"] {
    display: none !important;
  }
  #advantages [class*="grid"][class*="gap-4"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }
  #advantages [class*="rounded-2xl"] {
    border-radius: 14px !important;
    padding: 0.9rem 0.95rem !important;
    box-shadow: 0 3px 14px rgba(6, 95, 70, 0.07) !important;
  }
  #advantages [class*="rounded-2xl"] [class*="items-start"] {
    gap: 0.75rem !important;
    align-items: center !important;
  }
  #advantages [class*="rounded-2xl"] p {
    font-size: 0.92rem !important;
    line-height: 1.4 !important;
    padding-top: 0 !important;
    font-weight: 600 !important;
    color: #292524 !important;
  }
  #advantages [class*="h-12"][class*="w-12"] {
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 0.75rem !important;
  }

  /* Testimonials */
  #testimonials [class*="rounded-2xl"],
  #testimonials [class*="rounded-3xl"] {
    border-radius: 18px !important;
  }
  #testimonials img {
    border-radius: 9999px !important;
  }

  /* Lead form */
  .qonaq-lead {
    padding: 2.15rem 1rem 2.35rem;
  }
  .qonaq-lead h2 {
    font-size: 1.35rem;
    line-height: 1.25;
  }
  .qonaq-lead p {
    font-size: 0.92rem;
    margin-bottom: 1.1rem;
  }
  .qonaq-lead__form {
    grid-template-columns: 1fr !important;
    gap: 0.65rem;
  }
  .qonaq-lead__form button {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
  }

  /* Header spacing on small screens */
  header {
    backdrop-filter: blur(10px);
  }
  header nav a {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 380px) {
  section#about h1 {
    font-size: 1.42rem !important;
  }
  section#about h1 > span {
    white-space: normal !important;
  }
  section#about img[src*="hero-slippers"],
  section#about img.qonaq-hero-photo {
    width: min(94vw, 360px) !important;
  }
  section#about a.qonaq-hero-cta,
  section#about a[href="#contact"],
  section#about a[href="/catalog"] {
    font-size: 12.5px !important;
    padding: 0.85rem 0.9rem !important;
  }
}
