/* =============================================
   MEMORIAL — CSS
   Fonts: Cormorant Garamond (serif) + Jost (sans)
   Palette: near-black, warm white, gold accent
   ============================================= */

:root {
  --black:   #111010;
  --dark:    #1c1b1b;
  --mid:     #3a3838;
  --grey:    #8a8585;
  --light:   #f5f3f0;
  --white:   #fdfcfb;
  --gold:    #b89a5e;
  --gold-lt: #d4b87a;
  --radius:  6px;
  --shadow:  0 4px 24px rgba(0,0,0,.10);
  --trans:   .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--white);
  color: var(--dark);
  min-height: 100vh;
}

/* ── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background var(--trans), color var(--trans), transform var(--trans);
  text-decoration: none;
}

.btn--dark {
  background: var(--black);
  color: var(--white);
}
.btn--dark:hover { background: var(--mid); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn--outline:hover { background: var(--black); color: var(--white); }

.btn--gold {
  background: var(--gold);
  color: var(--white);
}
.btn--gold:hover { background: var(--gold-lt); }

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

/* ── INPUTS ─────────────────────────────────── */
.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd8d2;
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: .95rem;
  font-weight: 300;
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: border-color var(--trans);
}
.input:focus { border-color: var(--gold); }
.input::placeholder { color: var(--grey); }

/* ── LOGO ───────────────────────────────────── */
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--black);
  text-decoration: none;
}
.logo--light { color: var(--white); }

/* ── HEADER ─────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e8e3dc;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.nav__link {
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color var(--trans);
}
.nav__link:hover { color: var(--gold); }

.nav__phone {
  font-size: .9rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition: color var(--trans);
}
.nav__phone:hover { color: var(--gold); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}

/* ── CATALOG LAYOUT ─────────────────────────── */
.catalog {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.catalog__container {}

.catalog__title {
  font-size: 2.6rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: .04em;
  margin-bottom: 36px;
  color: var(--black);
}

.catalog__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

/* ── SIDEBAR ────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 84px;
  background: var(--white);
  border: 1px solid #e8e3dc;
  border-radius: var(--radius);
  padding: 24px 20px;
}

.sidebar__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e3dc;
}

.sidebar__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px 12px;
  border-radius: 4px;
  font-family: 'Jost', sans-serif;
  font-size: .9rem;
  font-weight: 300;
  color: var(--mid);
  transition: background var(--trans), color var(--trans);
}
.sidebar__btn:hover { background: var(--light); color: var(--black); }
.sidebar__btn.active {
  background: var(--black);
  color: var(--white);
  font-weight: 400;
}

.sidebar__select {
  display: none;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd8d2;
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: .95rem;
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
}

/* ── GRID ───────────────────────────────────── */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── CARD ───────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid #e8e3dc;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--trans), transform var(--trans);
  animation: fadeIn .35s ease both;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card__img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--light);
  cursor: pointer;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card__img-wrap:hover .card__img { transform: scale(1.04); }

.card__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity var(--trans);
  color: var(--white);
  font-size: 2rem;
}
.card__img-wrap:hover .card__zoom { opacity: 1; }

/* placeholder when no real image */
.card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e3dc 0%, #d5cfc6 100%);
  color: var(--grey);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  text-align: center;
  padding: 20px;
}

.card__body {
  padding: 16px;
}

.card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
  text-align: center;
}

.card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card__btn-consult {
  width: 100%;
  padding: 9px;
  background: transparent;
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
}
.card__btn-consult:hover { background: var(--black); color: var(--white); }

.card__btn-price {
  width: 100%;
  padding: 9px;
  background: var(--black);
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  transition: background var(--trans);
}
.card__btn-price:hover { background: var(--mid); border-color: var(--mid); }

/* ── LOAD MORE ──────────────────────────────── */
.catalog__more {
  text-align: center;
  margin-top: 40px;
}

/* ── BOTTOM FORM ────────────────────────────── */
.bottom-form {
  margin-top: 64px;
  padding: 48px 40px;
  background: var(--light);
  border-radius: var(--radius);
  text-align: center;
}

.bottom-form__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 24px;
}

.bottom-form__form {
  display: flex;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.bottom-form__form .input { flex: 1; min-width: 140px; }

/* ── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 56px 24px 32px;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer__brand { margin-bottom: 40px; }

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__heading {
  font-family: 'Jost', sans-serif;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: .9rem;
  font-weight: 300;
  color: #ccc;
  padding: 0;
  text-align: left;
  transition: color var(--trans);
  text-decoration: none;
}
.footer__link:hover { color: var(--gold-lt); }

.footer__phone {
  display: block;
  font-size: 1rem;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color var(--trans);
}
.footer__phone:hover { color: var(--gold-lt); }

.footer__msg-label {
  display: block;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 12px;
}

.footer__icons {
  display: flex;
  gap: 12px;
}

.footer__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform var(--trans), opacity var(--trans);
}
.footer__icon svg { width: 20px; height: 20px; }
.footer__icon:hover { transform: scale(1.1); opacity: .85; }
.footer__icon--tg { background: #229ED9; color: #fff; }
.footer__icon--vb { background: #7360F2; color: #fff; }
.footer__icon--wa { background: #25D366; color: #fff; }

.footer__copy {
  font-size: .8rem;
  color: var(--grey);
  border-top: 1px solid #333;
  padding-top: 24px;
  text-align: center;
}

/* ── MODAL ──────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--trans);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--grey);
  transition: color var(--trans);
}
.modal__close:hover { color: var(--black); }

.modal__title {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--black);
}

.modal__sub {
  font-size: .9rem;
  color: var(--grey);
  margin-bottom: 28px;
  font-weight: 300;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── LIGHTBOX ───────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans);
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox {
  position: relative;
  max-width: 700px;
  width: 100%;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--white);
  cursor: pointer;
  opacity: .7;
  transition: opacity var(--trans);
}
.lightbox__close:hover { opacity: 1; }

.lightbox__img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__caption {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin-top: 12px;
  font-weight: 300;
}

/* ── TOAST ──────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--black);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 40px;
  font-size: .9rem;
  z-index: 400;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── EMPTY STATE ─────────────────────────────── */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--grey);
}
.empty-state p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* Tablet: 2 columns grid */
@media (max-width: 1024px) {
  .catalog__layout {
    grid-template-columns: 180px 1fr;
    gap: 24px;
  }
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Header */
  .header__inner { padding: 0 16px; }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #e8e3dc;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    z-index: 99;
  }
  .nav.open {
    max-height: 300px;
    padding: 12px 0 16px;
  }
  .nav__link, .nav__phone {
    padding: 12px 20px;
    width: 100%;
    font-size: 1rem;
  }

  .burger { display: flex; }

  /* Catalog */
  .catalog { padding: 24px 16px 40px; }
  .catalog__title { font-size: 1.8rem; margin-bottom: 20px; }
  .catalog__layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Sidebar: hide list, show select */
  .sidebar { position: static; padding: 0; border: none; }
  .sidebar__title { display: none; }
  .sidebar__list { display: none; }
  .sidebar__select { display: block; }

  /* Grid: 2 columns on mobile */
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Card */
  .card__name { font-size: 1rem; }
  .card__body { padding: 12px; }
  .card__btn-consult, .card__btn-price { font-size: .75rem; padding: 8px; }

  /* Bottom form */
  .bottom-form { padding: 32px 20px; }
  .bottom-form__text { font-size: 1.15rem; }
  .bottom-form__form { flex-direction: column; }
  .bottom-form__form .input { min-width: unset; }

  /* Footer */
  .footer { padding: 40px 16px 24px; }
  .footer__cols { grid-template-columns: 1fr; gap: 28px; }

  /* Modal */
  .modal { padding: 28px 20px; }
  .modal__title { font-size: 1.5rem; }
}

/* Very small phones */
@media (max-width: 400px) {
  .catalog__grid {
    grid-template-columns: 1fr;
  }
}