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

:root {
  --ivory: #faf6f1;
  --white: #ffffff;
  --blush: #f5e6e0;
  --powder: #e8d5cc;
  --rose: #c9a0a0;
  --gold: #c9a96e;
  --gold-light: #e8d5a8;
  --dark: #2c2320;
  --text: #4a3b38;
  --text-light: #8a7470;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--text);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.centered { text-align: center; max-width: 680px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  color: var(--dark);
  line-height: 1.2;
}
.section-title em { font-style: italic; color: var(--rose); }
.section-sub {
  margin-top: 18px;
  color: var(--text-light);
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 300;
}
.divider {
  width: 64px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 22px auto;
}

section { padding: 110px 0; }
@media (max-width: 768px) { section { padding: 72px 0; } }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 36px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 40px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.35s cubic-bezier(.2,.7,.3,1);
  font-family: var(--sans);
}
.btn-primary { background: var(--dark); color: var(--white); }
.btn-primary:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201,169,110,.35); }
.btn-outline { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn-outline:hover { background: var(--dark); color: var(--white); transform: translateY(-2px); }
.btn-light { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn-light:hover { background: var(--white); color: var(--dark); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0;
  transition: all .4s ease;
}
nav .nav-inner { display: flex; align-items: center; justify-content: space-between; }
nav.scrolled { background: rgba(250,246,241,.93); backdrop-filter: blur(14px); padding: 14px 0; box-shadow: 0 1px 30px rgba(201,169,110,.12); }
.nav-logo { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .08em; text-decoration: none; color: var(--white); transition: color .4s; }
nav.scrolled .nav-logo { color: var(--dark); }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.85); transition: color .3s; }
nav.scrolled .nav-links a { color: var(--text-light); }
.nav-links a:hover { color: var(--gold); }
.nav-cta { padding: 10px 24px; border: 1px solid rgba(255,255,255,.6); border-radius: 30px; color: var(--white); font-size: .73rem !important; transition: all .3s !important; }
nav.scrolled .nav-cta { border-color: var(--gold); color: var(--gold); }
.nav-cta:hover { background: var(--gold); color: var(--white) !important; border-color: var(--gold); }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.burger span { width: 24px; height: 1.5px; background: var(--white); display: block; transition: all .3s; }
nav.scrolled .burger span { background: var(--dark); }
.mobile-menu {
  position: fixed; inset: 0; background: var(--ivory); z-index: 1100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transform: translateY(-100%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; color: var(--dark); }
.mobile-close { position: absolute; top: 26px; right: 28px; background: none; border: none; font-size: 1.6rem; color: var(--dark); cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}

/* ── HERO ── */
#hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(circle at 22% 24%, rgba(232,213,168,.5) 0%, rgba(232,213,168,0) 42%),
    radial-gradient(circle at 80% 78%, rgba(201,160,160,.32) 0%, rgba(201,160,160,0) 46%),
    linear-gradient(160deg, var(--ivory) 0%, var(--blush) 52%, var(--powder) 100%);
}
.hero-bg::before, .hero-bg::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
}
.hero-bg::before { width: 360px; height: 360px; top: -90px; left: -90px; background: var(--gold-light); }
.hero-bg::after { width: 420px; height: 420px; bottom: -130px; right: -110px; background: var(--rose); opacity: .25; }
.hero-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(1180px, 145vw); max-width: none; height: auto;
  opacity: .09; filter: blur(3px) grayscale(.25);
  pointer-events: none; user-select: none; mix-blend-mode: multiply;
}
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(250,246,241,.32) 0%, rgba(250,246,241,.62) 72%, rgba(250,246,241,.74) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 0 24px; }
.hero-badge { display: inline-block; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(201,169,110,.45); padding: 8px 22px; border-radius: 30px; margin-bottom: 28px; animation: fadeUp .8s ease both; }
.hero-title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 6vw, 4.6rem); color: var(--dark); line-height: 1.18; margin-bottom: 20px; animation: fadeUp .8s .15s ease both; }
.hero-title em { font-style: italic; color: var(--rose); }
.hero-sub { color: var(--text-light); font-size: 1.02rem; line-height: 1.7; font-weight: 300; margin-bottom: 42px; animation: fadeUp .8s .3s ease both; }
.hero-btns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; animation: fadeUp .8s .45s ease both; }
.hero-btns .btn-light { background: var(--white); color: var(--dark); border-color: var(--blush); }
.hero-btns .btn-light:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); color: var(--text-light); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; animation: bounce 2.4s infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── ABOUT ── */
#about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 76px; align-items: center; }
.about-visual { position: relative; }
.about-img { border-radius: 6px; overflow: hidden; box-shadow: 0 30px 70px rgba(76,55,50,.18); }
.about-badge-float {
  position: absolute; bottom: -28px; right: -22px; background: var(--white);
  border-radius: 6px; padding: 22px 28px; box-shadow: 0 20px 50px rgba(76,55,50,.16);
  display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--blush);
}
.about-badge-float .num { font-family: var(--serif); font-size: 2.1rem; color: var(--gold); }
.about-badge-float .lbl { font-size: .74rem; letter-spacing: .08em; color: var(--text-light); text-transform: uppercase; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 40px; }
.fact-icon { font-size: 1.5rem; margin-bottom: 10px; }
.fact-title { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; }
.fact-desc { font-size: .9rem; color: var(--text-light); line-height: 1.5; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .about-facts { grid-template-columns: 1fr; } }

/* ── CATALOG ── */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 56px; }
.dress-card {
  position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; text-decoration: none; color: inherit;
  background: var(--white); box-shadow: 0 18px 50px rgba(76,55,50,.08); transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s;
  display: block;
}
.dress-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(76,55,50,.18); }
.dress-card-img-wrap { aspect-ratio: 3/4; overflow: hidden; background: var(--blush); }
.dress-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.dress-card:hover .dress-card-img-wrap img { transform: scale(1.08); }
.dress-card-body { padding: 26px 26px 30px; }
.dress-card-name { font-family: var(--serif); font-size: 1.5rem; color: var(--dark); margin-bottom: 8px; }
.dress-card-desc { font-size: .9rem; color: var(--text-light); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dress-card-link { margin-top: 16px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.empty-note { text-align: center; color: var(--text-light); padding: 40px; font-style: italic; }

/* Image-only catalog cards (no name / description / price) */
.dress-card-plain { background: var(--blush); }
.dress-card-plain .dress-card-img-wrap { aspect-ratio: 3/4; position: relative; }
.dress-card-hover {
  position: absolute; inset: auto 0 0 0; padding: 18px 0 20px;
  text-align: center; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--white);
  background: linear-gradient(to top, rgba(44,35,32,.55) 0%, rgba(44,35,32,0) 100%);
  opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease;
}
.dress-card-plain:hover .dress-card-hover { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .dress-card-hover { font-size: .62rem; letter-spacing: .16em; padding: 12px 0 14px; } }
@media (max-width: 380px) { .catalog-grid { grid-template-columns: 1fr; gap: 22px; } }

/* ── WHY US ── */
#why { background: linear-gradient(180deg, var(--white) 0%, var(--blush) 100%); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 56px; }
.why-card { background: var(--white); border-radius: 8px; padding: 38px 28px; text-align: center; box-shadow: 0 16px 40px rgba(76,55,50,.07); transition: transform .4s, box-shadow .4s; }
.why-card:hover { transform: translateY(-8px); box-shadow: 0 26px 60px rgba(76,55,50,.14); }
.why-icon { font-size: 2.1rem; display: block; margin-bottom: 18px; }
.why-title { font-family: var(--serif); font-size: 1.28rem; margin-bottom: 10px; }
.why-desc { font-size: .88rem; color: var(--text-light); line-height: 1.6; }

@media (max-width: 980px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ── REVIEWS ── */
#reviews { background: var(--white); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.review-card { background: var(--ivory); border-radius: 8px; padding: 34px 30px; border: 1px solid var(--blush); }
.stars { color: var(--gold); letter-spacing: 4px; margin-bottom: 16px; font-size: .95rem; }
.review-text { font-size: .96rem; line-height: 1.7; color: var(--text); font-style: italic; margin-bottom: 22px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.1rem; flex-shrink: 0; }
.author-name { font-size: .92rem; font-weight: 500; color: var(--dark); }

@media (max-width: 980px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ── CONTACTS ── */
#contacts { background: var(--dark); color: var(--white); }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
#contacts .section-label { color: var(--gold-light); }
#contacts .section-title { color: var(--white); }
#contacts .section-sub { color: rgba(255,255,255,.65); }
.contact-list { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.contact-row { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--white); font-size: 1rem; }
.contact-row .ic { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; transition: all .3s; }
.contact-row:hover .ic { background: var(--gold); border-color: var(--gold); }
.contact-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.form-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 40px; backdrop-filter: blur(6px); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.form-group input, .form-group textarea {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 6px;
  padding: 14px 16px; color: var(--white); font-family: var(--sans); font-size: .94rem; transition: border-color .3s, background .3s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.35); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.1); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-msg { margin-top: 16px; font-size: .88rem; }
.form-msg.ok { color: #b7e0c4; }
.form-msg.err { color: #e0b3b3; }

@media (max-width: 900px) { .contacts-grid { grid-template-columns: 1fr; gap: 46px; } }

/* ── FOOTER ── */
footer { background: var(--dark); color: rgba(255,255,255,.5); padding: 30px 0; text-align: center; font-size: .82rem; border-top: 1px solid rgba(255,255,255,.08); }
footer a { color: var(--gold-light); text-decoration: none; }

/* ── MODAL (lightbox) ── */
.lightbox { position: fixed; inset: 0; background: rgba(28,21,19,.92); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: var(--white);
  border-radius: 50%; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 1.3rem; transition: all .3s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); border-color: var(--gold); }
.lightbox-close { top: 26px; right: 26px; }
.lightbox-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 26px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.05rem; } }

/* ── DRESS PAGE ── */
.dress-hero { padding: 150px 0 0; background: var(--white); }
.dress-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.dress-layout-gallery-only { grid-template-columns: minmax(0, 640px); justify-content: center; max-width: 640px; margin: 0 auto; }
.dress-layout-gallery-only .dress-info { text-align: center; }
.dress-layout-gallery-only .dress-info .back-link { justify-content: center; }
.dress-layout-gallery-only .dress-info .btn { margin-top: 6px; }
.dress-gallery-main { border-radius: 8px; overflow: hidden; cursor: zoom-in; aspect-ratio: 3/4; background: var(--blush); }
.dress-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dress-gallery-main:hover img { transform: scale(1.05); }
.dress-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.dress-thumb { width: 78px; height: 96px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: .6; transition: all .25s; flex-shrink: 0; }
.dress-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dress-thumb.active, .dress-thumb:hover { opacity: 1; border-color: var(--gold); }
.dress-info .back-link { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; margin-bottom: 26px; transition: color .3s; }
.dress-info .back-link:hover { color: var(--gold); }
.dress-info h1 { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--dark); margin-bottom: 22px; }
.dress-info .desc { color: var(--text-light); line-height: 1.85; font-size: 1.02rem; font-weight: 300; white-space: pre-line; }
.dress-info .btn { margin-top: 36px; }

@media (max-width: 900px) {
  .dress-layout { grid-template-columns: 1fr; gap: 34px; }
  .dress-hero { padding-top: 120px; }
}

/* ── LOADER / EMPTY ── */
.loading-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin: 0 3px; animation: pulse 1.2s infinite ease-in-out; }
.loading-dot:nth-child(2) { animation-delay: .15s; }
.loading-dot:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
