/* ===== SAFINA — storefront styles ===== */
:root {
  --bg:        #faf7f2;
  --bg-2:      #f1ebe2;
  --surface:   #ffffff;
  --ink:       #2b2724;
  --ink-soft:  #6f655d;
  --muted:     #9a8f85;
  --line:      #e8e0d6;
  --accent:    #b08968;
  --accent-d:  #97704f;
  --accent-soft:#f4ebe1;
  --wa:        #25d366;
  --wa-d:      #1da851;
  --danger:    #c0563f;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 10px 30px -12px rgba(60, 45, 33, .18);
  --shadow-sm: 0 4px 14px -8px rgba(60, 45, 33, .25);
  --container: 1200px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

.eyebrow {
  display: inline-block;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-d);
  margin-bottom: 14px;
}
.eyebrow--light { color: rgba(255,255,255,.8); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-d); box-shadow: var(--shadow); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-d); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  color: var(--ink); transition: background .18s, color .18s, transform .18s;
}
.icon-btn:hover { background: var(--bg-2); transform: translateY(-1px); }
.icon-btn--wa:hover { background: var(--wa); color: #fff; }

/* ===== Announcement ===== */
.announce {
  background: var(--ink); color: #f3ece2;
  font-size: .82rem; overflow: hidden;
}
.announce__track {
  display: flex; gap: 22px; align-items: center; justify-content: center;
  padding: 9px 20px; flex-wrap: wrap;
}
.announce__track span:nth-child(even) { color: var(--accent); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.header__inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.header__burger { display: none; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.logo__word { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: .14em; }
.logo--light .logo__word { color: #fff; }

.nav { display: flex; gap: 6px; margin-left: 14px; margin-right: auto; }
.nav__link {
  padding: 9px 14px; border-radius: 999px;
  font-weight: 500; font-size: .94rem; color: var(--ink-soft);
  transition: background .18s, color .18s;
}
.nav__link:hover, .nav__link.is-active { background: var(--bg-2); color: var(--ink); }

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

/* ===== Hero ===== */
.hero { padding: clamp(40px, 7vw, 96px) 0; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero__text p { color: var(--ink-soft); font-size: 1.08rem; max-width: 30em; margin: 22px 0 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__art { position: relative; height: 440px; }
.hero__card {
  position: absolute; border-radius: 24px; box-shadow: var(--shadow);
  background-size: cover; background-position: center;
}
.hero__card--1 {
  inset: 0 28% 22% 0;
  background: linear-gradient(135deg, #d8c3ad, #b08968);
}
.hero__card--2 {
  right: 0; bottom: 0; width: 58%; height: 64%;
  background: linear-gradient(135deg, #efe6d9, #cdb7a0);
  border: 6px solid var(--bg);
}
.hero__art::after {
  content: "🏡"; position: absolute; left: 14%; top: 32%;
  font-size: 4.5rem; filter: drop-shadow(0 8px 16px rgba(0,0,0,.2));
}
.hero__badge {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-30%);
  background: #fff; border-radius: 16px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
  z-index: 2;
}
.hero__badge strong { font-family: var(--serif); font-size: 1.7rem; color: var(--accent-d); }
.hero__badge span { font-size: .76rem; color: var(--ink-soft); line-height: 1.25; }

/* ===== Categories ===== */
.cats { padding: 8px 0 8px; }
.cats__row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  text-align: center;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card__ic { font-size: 1.8rem; }
.cat-card__t { font-weight: 600; font-size: .95rem; }

/* ===== Section head ===== */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin: clamp(36px, 6vw, 64px) 0 26px;
}
.catalog__search {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 11px 16px; border-radius: 999px; min-width: 260px;
  color: var(--muted);
}
.catalog__search input { border: none; outline: none; background: none; font-size: .95rem; width: 100%; color: var(--ink); }

/* ===== Filters ===== */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  transition: all .18s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-d); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ===== Product grid ===== */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__media {
  position: relative; aspect-ratio: 1 / 1; background: var(--bg-2);
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  padding: 5px 11px; border-radius: 999px;
}
.card__badge--sale { background: var(--danger); }
.card__fav {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink-soft);
  display: grid; place-items: center; transition: color .18s, transform .18s;
}
.card__fav:hover { color: var(--danger); transform: scale(1.08); }
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.card__cat { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.card__name { font-weight: 600; font-size: 1rem; line-height: 1.35; color: var(--ink); }
.card__name a:hover { color: var(--accent-d); }
.card__price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.card__price-now { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--ink); }
.card__price-old { font-size: .95rem; color: var(--muted); text-decoration: line-through; }
.card__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 4px; }
.card__buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: .9rem;
  padding: 11px 14px; border-radius: 12px; transition: background .18s, transform .18s;
}
.card__buy:hover { background: var(--accent-d); }
.card__wa {
  width: 44px; border-radius: 12px; background: var(--bg-2); color: var(--wa-d);
  display: grid; place-items: center; transition: background .18s, color .18s;
}
.card__wa:hover { background: var(--wa); color: #fff; }
.kaspi-ico { font-weight: 800; font-size: .8rem; letter-spacing: .02em; }

.empty { text-align: center; padding: 60px 0; color: var(--ink-soft); display: grid; gap: 16px; justify-items: center; }

/* ===== Benefits ===== */
.benefits { padding: clamp(50px, 8vw, 90px) 0; }
.benefits__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; text-align: center;
}
.benefit__ic { font-size: 2rem; margin-bottom: 12px; }
.benefit h3 { font-size: 1.25rem; margin-bottom: 8px; }
.benefit p { color: var(--ink-soft); font-size: .92rem; }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(120deg, var(--accent-d), var(--accent));
  color: #fff; padding: clamp(44px, 6vw, 72px) 0; margin: 0 0 0;
}
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: #fff; }
.cta h2 span { opacity: .85; }
.cta p { color: rgba(255,255,255,.85); margin-top: 10px; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #cdc3b8; padding: 56px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer__brand p { margin-top: 16px; max-width: 28em; font-size: .92rem; }
.footer__col h4 { color: #fff; font-family: var(--sans); font-size: .95rem; font-weight: 700; margin-bottom: 14px; letter-spacing: .02em; }
.footer__col a { display: block; padding: 5px 0; color: #cdc3b8; font-size: .92rem; transition: color .18s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #948a80; }

/* ===== Floating WhatsApp ===== */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6);
  transition: transform .2s;
}
.fab:hover { transform: scale(1.08); }
.fab__pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ===== Mobile menu ===== */
.backdrop {
  position: fixed; inset: 0; background: rgba(20,16,12,.45); z-index: 45;
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.backdrop.is-open { opacity: 1; visibility: visible; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .cats__row { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .benefits__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .header__burger { display: inline-flex; }
  .nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: 78%; max-width: 320px;
    background: var(--bg); z-index: 55; flex-direction: column; gap: 4px;
    padding: 90px 22px 22px; margin: 0;
    transform: translateX(-100%); transition: transform .28s ease;
    box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { width: 100%; font-size: 1.05rem; padding: 12px 14px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { height: 320px; order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cats__row { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: stretch; }
  .catalog__search { min-width: 0; }
  .card__body { padding: 12px 12px 14px; }
  .card__price-now { font-size: 1.25rem; }
  .card__buy { padding: 10px 10px; font-size: .84rem; }
  .announce__track { font-size: .74rem; gap: 14px; }
  .footer__bottom .container { justify-content: center; text-align: center; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}
