:root {
  /* Bazaar palette — Mangystau steppe + morning market crates */
  --green: #2f4b3c;       /* dominant dark: header, footer, headings */
  --green-soft: #3d6350;
  --gold: #d9a441;        /* primary accent: CTAs, awning stripe */
  --gold-soft: #ecd7a8;
  --rust: #b5502c;        /* secondary accent: prices, hover states */
  --ink-stamp: #453a72;   /* signature seal ink — violet, like a real mör */
  --sand: #f5efe1;        /* neutral background */
  --sand-deep: #ece2c9;
  --ink: #24261f;         /* body text */
  --muted: #6b6a5c;
  --surface: #fffdf8;
  --border: rgba(36, 38, 31, 0.1);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 10px rgba(36, 38, 31, 0.06);
  --shadow: 0 14px 34px rgba(47, 75, 60, 0.14);
  --shadow-lg: 0 26px 60px rgba(36, 38, 31, 0.16);

  --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Awning stripe — signature bookend at top of page */
.awning-bar {
  height: 9px;
  background: repeating-linear-gradient(
    -45deg,
    var(--gold) 0 18px,
    var(--green) 18px 36px
  );
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(217, 164, 65, 0.4);
}
.btn--primary:hover { background: var(--rust); color: #fff; transform: translateY(-3px); box-shadow: 0 14px 28px rgba(181, 80, 44, 0.35); }
.btn--outline {
  background: var(--surface);
  color: var(--green);
  border: 2px solid var(--border);
}
.btn--outline:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.btn--small {
  padding: 9px 18px;
  font-size: 0.85rem;
  background: var(--sand-deep);
  color: var(--green);
  width: 100%;
  justify-content: center;
}
.btn--small:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 225, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--green); }
.logo__icon {
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  transform: rotate(-6deg);
  background: var(--surface);
}

.nav { display: flex; gap: 30px; flex: 1; justify-content: center; }
.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--green); }
.nav a:hover::after { width: 100%; }

.header__cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span { width: 24px; height: 3px; background: var(--green); border-radius: 3px; }

/* Hero */
.hero { padding: 80px 0 70px; overflow: hidden; position: relative; }
.hero__inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero__text { flex: 1.15; }
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  background: var(--sand-deep);
  color: var(--green);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 20px;
  color: var(--green);
}
.hero p { color: var(--muted); font-size: 1.06rem; margin-bottom: 30px; max-width: 500px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--rust); font-weight: 800; }
.hero__stats span { color: var(--muted); font-size: 0.85rem; }

.hero__image { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; padding: 20px; min-height: 300px; }

/* Signature element: the ЖК's official seal/stamp */
.stamp-seal {
  --seal-size: 250px;
  position: relative;
  width: var(--seal-size);
  height: var(--seal-size);
  border-radius: 50%;
  border: 3px solid var(--ink-stamp);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--ink-stamp);
  transform: rotate(-8deg);
  animation: stamp-press 0.7s cubic-bezier(.2,.9,.25,1.15) both;
}
.stamp-seal::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 2px dashed var(--ink-stamp);
  border-radius: 50%;
  opacity: 0.55;
}
.stamp-seal::after {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 58, 114, 0.08), transparent 70%);
  z-index: -1;
}
.stamp-seal__line {
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.stamp-seal__line--sm {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  max-width: 150px;
  font-weight: 600;
}
.stamp-seal__line--lg {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
@keyframes stamp-press {
  0% { opacity: 0; transform: rotate(-24deg) scale(1.5); }
  70% { opacity: 1; transform: rotate(-6deg) scale(0.96); }
  100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}

/* Section titles */
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--green);
  margin-bottom: 10px;
}
.section-subtitle { text-align: center; color: var(--muted); margin-bottom: 46px; font-size: 1.02rem; }

/* About */
.about { padding: 85px 0; background: var(--surface); }
.about__inner { display: flex; align-items: center; gap: 70px; }
.about__image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 3rem;
  background: linear-gradient(160deg, var(--sand-deep), var(--sand));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 20px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.about__image span:nth-child(2) { transform: translateY(-14px); }
.about__image.in-view { opacity: 1; transform: translateY(0); }
.about__text { flex: 1.2; opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s; }
.about__text.in-view { opacity: 1; transform: translateY(0); }
.about__text h2 { font-size: 2rem; color: var(--green); margin-bottom: 18px; font-weight: 800; }
.about__text p { color: var(--muted); margin-bottom: 22px; font-size: 1.02rem; }
.about__list li { padding: 7px 0; font-weight: 600; }

/* Catalog */
.catalog { padding: 85px 0; }
.filters {
  display: inline-flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto 44px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.catalog .container { display: flex; flex-direction: column; align-items: center; }
.filter {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.78rem;
}
.filter:hover { color: var(--green); }
.filter.active {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(217, 164, 65, 0.35);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 26px;
  width: 100%;
}
.product {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 30px 22px 22px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(24px) rotate(0deg);
}
.product.in-view { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)); }
.products .product:nth-child(3n+1) { --tilt: -1.1deg; }
.products .product:nth-child(3n+2) { --tilt: 0.8deg; }
.products .product:nth-child(3n+3) { --tilt: -0.6deg; }
.product::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 50%;
}
.product:hover { transform: translateY(-8px) rotate(0deg); box-shadow: var(--shadow); border-color: transparent; z-index: 2; }
.product__img {
  font-size: 2.6rem;
  margin-bottom: 14px;
}
.product h3 { font-size: 0.98rem; margin-bottom: 8px; font-weight: 600; font-family: var(--font-body); }
.product__price {
  font-family: var(--font-mono);
  color: var(--rust);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

/* Advantages */
.advantages { padding: 85px 0; background: var(--surface); }
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.advantage {
  text-align: center;
  padding: 34px 22px;
  border-radius: var(--radius);
  background: var(--sand);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
}
.advantage.in-view { opacity: 1; transform: translateY(0); }
.advantage:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.advantage__icon {
  font-size: 1.7rem;
  margin-bottom: 16px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--green);
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}
.advantage h3 { margin-bottom: 8px; color: var(--green); font-weight: 700; font-size: 1.05rem; }
.advantage p { color: var(--muted); font-size: 0.92rem; }

/* Contact */
.contact { padding: 85px 0; }
.contact__inner { display: flex; gap: 60px; align-items: flex-start; flex-wrap: wrap; }
.contact__info { flex: 1; min-width: 280px; opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.contact__info.in-view { opacity: 1; transform: translateY(0); }
.contact__item { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.contact__item span {
  font-size: 1.15rem;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand-deep);
  border-radius: 50%;
}
.contact__item strong { display: block; margin-bottom: 2px; font-family: var(--font-display); }
.contact__item p { color: var(--muted); }
.contact__item a:hover { color: var(--rust); }

.contact__form {
  flex: 1;
  min-width: 280px;
  background: var(--surface);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}
.contact__form.in-view { opacity: 1; transform: translateY(0); }
.contact__form h3 { color: var(--green); margin-bottom: 6px; font-weight: 800; }
.contact__form input,
.contact__form textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  background: var(--sand);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact__form input:focus,
.contact__form textarea:focus { outline: none; border-color: var(--gold); background: var(--surface); }
.form__note { color: var(--rust); font-weight: 700; font-size: 0.9rem; min-height: 1.2em; }

/* Footer */
.footer { background: var(--green); color: #fff; padding: 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 32px 24px;
}
.footer .logo { color: #fff; }
.footer .logo__icon { border-color: rgba(255,255,255,0.5); background: transparent; }
.footer p { color: rgba(255,255,255,0.7); font-size: 0.9rem; font-family: var(--font-mono); }
.footer__top { font-weight: 700; }
.footer__top:hover { text-decoration: underline; }

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  z-index: 200;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}
.whatsapp-float:hover { transform: scale(1.1) rotate(6deg); }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .burger { display: flex; }

  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    box-shadow: var(--shadow);
  }

  .hero__inner { flex-direction: column; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .stamp-seal { --seal-size: 200px; }
  .stamp-seal__line--lg { font-size: 1.2rem; }

  .about__inner { flex-direction: column; }
}
