/* =========================================================
   SERPENTINE — рокли под наем
   Цветове, шрифтове и стил по дизайна от Lovable
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Jost:wght@300;400;500&display=swap");

:root {
  --background: oklch(95% .02 85);          /* бежово */
  --foreground: oklch(25% .03 110);
  --card: oklch(97% .015 85);
  --muted: oklch(90% .025 82);
  --muted-foreground: oklch(48% .03 95);
  --border: oklch(82% .04 82);
  --primary: oklch(38% .06 115);            /* маслинено */
  --primary-foreground: oklch(95% .02 85);
  --secondary: oklch(89% .03 80);
  --olive: oklch(30% .05 115);              /* тъмно маслинено */
  --olive-foreground: oklch(90% .04 85);
  --gold: oklch(74% .11 80);                /* златисто */
  --gold-foreground: oklch(22% .03 110);
  --busy: oklch(60% .1 40);
  --destructive: oklch(55% .17 35);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}
p { margin: 0; }
main { flex: 1; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Header ---------- */
.site-header { background: var(--olive); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand { display: flex; align-items: center; gap: .5rem; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .12em;
  color: var(--gold);
}
.nav { display: flex; gap: 1.25rem; }
.nav a {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: color-mix(in oklch, var(--olive-foreground) 80%, transparent);
  transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive); color: color-mix(in oklch, var(--olive-foreground) 70%, transparent); }
.site-footer .container {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding-top: 2.5rem; padding-bottom: 2.5rem; font-size: .875rem;
}
.site-footer .logo-text {
  font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .15em; color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  transition: background .2s, opacity .2s;
}
.btn-gold { background: var(--gold); color: var(--gold-foreground); }
.btn-gold:hover { background: color-mix(in oklch, var(--gold) 90%, white); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); width: 100%; }
.btn-primary:hover { background: color-mix(in oklch, var(--primary) 90%, black); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--olive); overflow: hidden; }
.hero img {
  width: 100%; height: 78vh; min-height: 480px;
  object-fit: cover; object-position: 30% center; opacity: .9;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--olive), color-mix(in oklch, var(--olive) 30%, transparent), transparent);
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding-bottom: 3.5rem;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1.05;
  color: var(--olive-foreground);
  max-width: 36rem;
  margin-top: .75rem;
}
.hero p.lead {
  color: color-mix(in oklch, var(--olive-foreground) 80%, transparent);
  max-width: 28rem; margin-top: 1rem;
}
.hero .btn { margin-top: 1.75rem; }

/* split hero: text left, photo right */
.hero-split { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 78vh; }
.hero-split::after { display: none; }
.hero-text { display: flex; align-items: center; justify-content: flex-end; padding: 3rem 1.25rem; }
.hero-inner { width: 100%; max-width: 34rem; }
.hero-split .hero-photo { display: block; position: relative; overflow: hidden; }
.hero-split .hero-photo img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center top; opacity: 1; position: absolute; inset: 0; }
.hero-split .hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, var(--olive), transparent 25%);
}

.hero-sub {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.25;
  color: var(--gold); margin-top: .75rem;
}

/* ---------- Sections ---------- */
.section { padding-top: 4rem; padding-bottom: 4rem; }
.section-title { font-size: 2.25rem; }

.occasions {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; margin-top: 1.25rem;
}
.occasions a {
  border: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding-left: .5rem; padding-right: .5rem;
  transition: background .2s, color .2s;
}
.occasions a:hover { background: var(--primary); color: var(--primary-foreground); }

/* ---------- Dress cards ---------- */
.dress-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 1.25rem; margin-top: 2rem;
}
.dress-card { display: block; }
.dress-card .img-wrap { overflow: hidden; background: var(--secondary); aspect-ratio: 3 / 4; }
.dress-card img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .7s ease;
}
.dress-card:hover img { transform: scale(1.05); }
.dress-card .info { padding-top: .75rem; }
.dress-card h3 { font-size: 1.5rem; margin-top: .25rem; }
.dress-card .price { font-size: .875rem; color: var(--muted-foreground); }

/* ---------- Catalog filters ---------- */
.page-title { font-size: 3rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.filters button {
  font-family: var(--font-body);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  padding: .55rem 1rem;
  background: transparent; color: var(--foreground);
  border: 1px solid var(--border); cursor: pointer;
  transition: background .2s, color .2s;
}
.filters button:hover { border-color: var(--primary); }
.filters button.active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.empty { margin-top: 2rem; color: var(--muted-foreground); }

/* ---------- Dress detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 5rem; }
.back {
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted-foreground); display: inline-block; margin-bottom: 1rem;
}
.back:hover { color: var(--foreground); }
.detail-img { background: var(--secondary); aspect-ratio: 3 / 4; overflow: hidden; }
.detail-img img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: .5rem; margin-top: .75rem; }
.thumb {
  width: 4.5rem; aspect-ratio: 3 / 4; padding: 0; border: 1px solid var(--border);
  background: var(--secondary); cursor: pointer; overflow: hidden; opacity: .7;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--gold); }
.model-note { margin-top: .75rem; font-size: .8rem; color: var(--muted-foreground); font-style: italic; }
.detail h1 { font-size: 3rem; margin-top: .5rem; }
.detail .desc { margin-top: 1rem; color: color-mix(in oklch, var(--foreground) 80%, transparent); }

.specs { margin: 1.75rem 0 0; border-top: 1px solid var(--border); }
.specs div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .65rem 0; border-bottom: 1px solid var(--border); font-size: .875rem;
}
.specs dt { color: var(--muted-foreground); }
.specs dd { margin: 0; text-align: right; }

.booking h2 { font-size: 2rem; margin-top: 2.5rem; }
.note { font-size: .75rem; color: var(--muted-foreground); margin-top: .5rem; }

.price-box {
  margin-top: 1rem; padding: .9rem 1rem;
  background: var(--primary); color: var(--primary-foreground);
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.price-box .label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.price-box .amount { font-family: var(--font-display); font-size: 1.6rem; }

.deposit-line {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 1rem; border: 1px solid var(--border); border-top: 0; font-size: .875rem;
}

/* ---------- Terms ---------- */
.terms { max-width: 42rem; margin: 0 auto; padding-top: 3.5rem; padding-bottom: 5rem; }
.terms h1 { font-size: 3rem; margin-top: .5rem; }
.terms-list { margin-top: 2.5rem; }
.terms-list section { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.terms-list section:last-child { border-bottom: 0; }
.terms-list h2 { font-size: 1.5rem; }
.terms-list p { margin-top: .5rem; font-size: .9rem; color: color-mix(in oklch, var(--foreground) 80%, transparent); }

/* ---------- Contact buttons ---------- */
.contact-btns { display: grid; gap: .75rem; margin-top: 1.25rem; }
.contact-btns .btn { display: flex; align-items: center; justify-content: center; gap: .6rem; text-align: center; }
.contact-btns svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.btn-outline { background: transparent; color: var(--foreground); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--primary-foreground); }
.model-note a { color: var(--primary); text-decoration: underline; }

.float-viber {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--gold-foreground);
  box-shadow: 0 6px 20px rgb(0 0 0 / .2);
  transition: transform .2s;
}
.float-viber:hover { transform: scale(1.06); }
.float-viber svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }

/* ---------- Footer extras ---------- */
.footer-grid { display: grid !important; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: start !important; }
.footer-grid p { margin-top: .5rem; }
.footer-title { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin: 0 0 .5rem !important; }
.footer-grid a:hover { color: var(--gold); }
.footer-links { display: grid; gap: .4rem; }
.social { display: flex; gap: .75rem; margin-top: .9rem; }
.social a {
  width: 2.2rem; height: 2.2rem; border: 1px solid color-mix(in oklch, var(--gold) 60%, transparent);
  border-radius: 50%; display: grid; place-items: center; color: var(--gold);
}
.social a:hover { background: var(--gold); color: var(--olive); }
.social svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

/* ---------- About the name ---------- */
.about-name { background: var(--olive); color: var(--olive-foreground); padding: 4rem 0; text-align: center; }
.about-name .container { max-width: 44rem; }
.about-name img { width: 72px; height: 72px; margin: 0 auto 1rem; }
.about-name h2 { font-size: clamp(2rem, 4vw, 2.6rem); font-style: italic; margin-top: .5rem; color: var(--olive-foreground); text-wrap: balance; }
.about-name p:not(.eyebrow) { margin-top: 1rem; color: color-mix(in oklch, var(--olive-foreground) 82%, transparent); }

/* ---------- Steps band ---------- */
.steps-band { background: var(--secondary); padding: 3.5rem 0; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps span {
  display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--primary); font-family: var(--font-display); font-size: 1.2rem;
}
.steps h3 { font-size: 1.5rem; margin-top: .75rem; }
.steps p { font-size: .9rem; color: var(--muted-foreground); margin-top: .35rem; }

/* ---------- Filters (size row) ---------- */
.filters-size { margin-top: .6rem; }
.filters-size button { font-size: .68rem; padding: .45rem .85rem; }

/* ---------- Size table & FAQ ---------- */
.size-section { margin-top: 2.5rem; }
.size-section h2, .faq-title { font-size: 1.75rem; }
.size-section > p { margin-top: .5rem; font-size: .9rem; color: color-mix(in oklch, var(--foreground) 80%, transparent); }
.table-wrap { overflow-x: auto; margin-top: 1.25rem; }
.size-table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: center; }
.size-table th { font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-foreground); background: var(--primary); padding: .65rem .5rem; }
.size-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--border); }
.size-table td:first-child { font-family: var(--font-display); font-size: 1.15rem; }
.faq { margin-top: 3rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.35rem;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--font-body); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .6rem; font-size: .9rem; color: color-mix(in oklch, var(--foreground) 80%, transparent); }
.faq .tips { margin: .75rem 0 0; padding-left: 1.1rem; display: grid; gap: .5rem; font-size: .9rem; color: color-mix(in oklch, var(--foreground) 80%, transparent); }
.faq .tips li::marker { color: var(--gold); }
.faq .tips strong { color: var(--foreground); font-weight: 500; }
.faq a { color: var(--primary); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  .site-header .container { flex-wrap: wrap; justify-content: center; row-gap: .5rem; padding-top: .75rem; padding-bottom: .75rem; }
  .nav { width: 100%; justify-content: center; gap: 1.1rem; }
  .brand img { width: 34px; height: 34px; }
}
@media (max-width: 1023px) {
  .dress-grid { grid-template-columns: repeat(2, 1fr); }
  .occasions { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-split .hero-photo { order: -1; height: 62vh; }
  .hero-split .hero-photo::before { background: linear-gradient(to top, var(--olive), transparent 30%); }
  .hero-text { justify-content: flex-start; padding-top: 1.5rem; }
  .detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .brand span { font-size: 1.125rem; }
  .nav { gap: .6rem; }
  .nav a { letter-spacing: .15em; font-size: .68rem; }
  .occasions { grid-template-columns: repeat(2, 1fr); }
  .occasions a:last-child { grid-column: 1 / -1; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .page-title, .detail h1, .terms h1 { font-size: 2.4rem; }
}

/* deploy test: Bitbucket -> Cloudflare Pages */