/*
 * Warm boutique storefront
 * Shared presentation layer for generated, home, topic and language pages.
 */
:root {
  --bg: #f7f0e8;
  --bg-deep: #efe2d6;
  --section: #fffaf5;
  --section-raised: #ffffff;
  --section-alt: #5a1832;
  --green: #7b2343;
  --green-light: #9a3153;
  --gold: #ff755f;
  --telegram: #287fa5;
  --whatsapp: #167a55;
  --text: #241d25;
  --muted: #665a62;
  --line: rgba(90, 24, 50, 0.16);
  --radius: 10px;
  --shadow: 0 18px 44px rgba(74, 37, 48, 0.12);
  --shadow-soft: 0 8px 24px rgba(74, 37, 48, 0.09);
  --plum: #5a1832;
  --plum-deep: #361020;
  --coral: #ff755f;
  --cream: #fffaf5;
  --ink: #241d25;
}

html {
  background: var(--bg);
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(90, 24, 50, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(90, 24, 50, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf5 0, var(--bg) 34rem, #f2e7dc 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 5px;
  z-index: 1100;
  background: linear-gradient(90deg, var(--plum) 0 74%, var(--coral) 74% 100%);
}

.page {
  max-width: 1080px;
  padding: 5px clamp(16px, 4vw, 44px) 120px;
}

.main-headline {
  position: relative;
  max-width: 850px;
  margin: 42px auto 30px;
  padding: 0 0 20px;
  color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 4.35rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-align: right;
  text-shadow: none;
}

.main-headline::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 84px;
  height: 7px;
  background: var(--coral);
}

.main-headline span {
  color: var(--plum);
}

.inapp-browser-notice {
  max-width: 850px;
  margin: 0 auto 24px;
  padding: 18px 22px;
  color: var(--ink);
  background: #fff3d9;
  border: 0;
  border-right: 6px solid #e7a932;
  border-radius: 0;
  box-shadow: none;
  text-align: right;
  font-size: 0.92rem;
  font-weight: 700;
}

.seo-nav-top {
  margin: 0 auto 28px;
  padding: 11px 18px;
  color: var(--muted);
  background: transparent;
  border: solid var(--line);
  border-width: 1px 0;
  border-radius: 0;
}

.seo-nav-top a,
.lang-switch a,
.seo-article a,
.seo-hub-priority a {
  color: var(--plum);
  text-decoration-color: rgba(90, 24, 50, 0.35);
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 32px;
  padding: 18px 22px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 24px 0 0;
  box-shadow: 10px 10px 0 #e8c9c0;
  text-align: center;
}

.header a {
  display: block;
  line-height: 0;
}

.header a:first-child {
  margin-inline-end: 0;
}

.logo-main {
  width: min(72%, 280px);
  height: auto;
  margin: 0 auto;
  display: block;
  filter: none;
}

.logo-secondary {
  width: 72px;
  height: auto;
  margin: 0 auto;
  opacity: 1;
  display: block;
  filter: none;
}

.badge {
  margin: 6px 0 9px;
  padding: 7px 14px;
  color: var(--plum);
  background: #fbd8cf;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-title {
  margin: 0 0 16px;
  color: var(--plum);
  font-size: clamp(1.35rem, 3vw, 2rem);
  text-align: right;
}

.hero-banner {
  margin: 0 0 28px;
  padding: 12px;
  overflow: visible;
  background: var(--cream);
  border: 1px solid var(--plum);
  border-radius: 0 34px 0 0;
  box-shadow: 14px 14px 0 var(--coral);
}

.hero-banner::after {
  display: none;
}

.hero-banner img {
  aspect-ratio: 21 / 9;
  border-radius: 0 24px 0 0;
  filter: saturate(0.92) contrast(1.03);
}

.cta-group {
  flex-direction: row;
  gap: 14px;
  margin: 40px 0 26px;
}

.cta-btn {
  flex: 1;
  min-height: 58px;
  padding: 14px 22px;
  border: 2px solid var(--plum);
  border-radius: 6px;
  box-shadow: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.cta-btn:hover {
  transform: translate(-3px, -3px);
  filter: none;
  box-shadow: 5px 5px 0 var(--plum-deep);
}

.cta-telegram {
  color: #fff;
  background: #287fa5;
}

.cta-whatsapp,
.cta-whatsapp:hover {
  color: #fff;
  background: #167a55;
}

.cta-btn:focus-visible,
.fab-btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.phone-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px 20px;
  color: var(--ink);
  background: transparent;
  border: 1px dashed rgba(90, 24, 50, 0.45);
  border-radius: 0;
  box-shadow: none;
}

.phone-box a {
  color: var(--plum);
  font-weight: 900;
}

.cta-row {
  gap: 12px;
  margin: 18px 0 24px;
}

.cta-row .cta-btn {
  border-radius: 6px;
}

.tip-box {
  margin: 0 0 40px;
  padding: 20px 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 0;
  text-align: right;
}

.tip-box strong {
  color: var(--plum);
}

.section {
  margin: 70px 0;
}

.section-title {
  position: relative;
  margin: 0 0 26px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  text-align: right;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1.1em;
  margin-inline-end: 10px;
  vertical-align: -0.16em;
  background: var(--coral);
}

.gallery {
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.gallery-item,
.gallery-item.wide {
  grid-column: span 4;
  aspect-ratio: 4 / 5;
  background: #fff;
  border: 0;
  border-radius: 0 18px 0 0;
  box-shadow: var(--shadow-soft);
}

.gallery-item.wide {
  grid-column: span 8;
  aspect-ratio: 8 / 5;
}

.gallery-item:nth-child(3n) {
  transform: translateY(18px);
}

.gallery-item img {
  transition: transform 280ms ease, filter 280ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
  filter: saturate(1.04);
}

.cta-banner {
  position: relative;
  margin: 54px 0;
  padding: 28px clamp(20px, 4vw, 42px);
  overflow: hidden;
  color: #fff;
  background: var(--plum);
  border: 0;
  border-radius: 0 28px 0 0;
  box-shadow: 10px 10px 0 #e8c9c0;
  text-align: right;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: var(--coral);
}

.cta-banner p {
  margin-bottom: 18px;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
}

.cta-banner .cta-row,
.cta-banner .cta-group {
  margin: 0;
}

.motion-showcase {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) 1.25fr;
  align-items: center;
  margin: 0 0 36px;
  overflow: hidden;
  color: #fff;
  background: var(--plum-deep);
  border: 0;
  border-radius: 0 34px 0 0;
  box-shadow: var(--shadow);
}

.motion-stage {
  aspect-ratio: 4 / 5;
  max-height: 590px;
}

.motion-showcase figcaption {
  padding: 34px;
  color: #fff;
  font-size: 1.05rem;
  text-align: right;
}

.video-grid {
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
}

.video-card {
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 16px 0 0;
  box-shadow: var(--shadow-soft);
}

.video-card:first-child {
  transform: translateY(-8px);
}

.video-card video {
  aspect-ratio: 4 / 5;
  background: var(--plum-deep);
}

.seo-article {
  margin: 86px 0 34px;
  padding: clamp(28px, 5vw, 58px);
  color: var(--ink);
  background: rgba(255, 250, 245, 0.94);
  border: 1px solid var(--line);
  border-top: 10px solid var(--plum);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.seo-article h2 {
  color: var(--plum);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.seo-article h3,
.seo-article strong {
  color: var(--ink);
}

.seo-article p,
.seo-article ul {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.95;
}

.faq-item {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 10px 0 0;
}

.faq-item summary {
  color: var(--ink);
  font-weight: 750;
}

.faq-item summary::marker {
  color: var(--coral);
}

.faq-item p {
  color: var(--muted);
}

.seo-links,
.seo-hub-priority {
  margin: 34px 0 24px;
  padding: 28px 24px;
  background: #eadbd5;
  border: 0;
  border-radius: 0 22px 0 0;
  box-shadow: none;
}

.seo-links h2,
.seo-hub-priority h2 {
  color: var(--plum);
}

.seo-links-home {
  border-bottom-color: rgba(90, 24, 50, 0.14);
}

.seo-links-home a {
  color: #fff;
  background: var(--plum);
  border-radius: 4px;
}

.seo-links-home a:hover {
  color: #fff;
  background: var(--plum-deep);
}

.seo-links-grid a {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 3px;
}

.seo-links-grid a:hover {
  color: var(--plum);
  background: #fff;
}

.footer {
  margin-top: 52px;
  padding: 28px 12px 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.fab-stack {
  right: max(16px, env(safe-area-inset-right));
  left: auto;
  bottom: max(18px, env(safe-area-inset-bottom));
  flex-direction: row;
  gap: 8px;
  padding: 7px;
  background: rgba(255, 250, 245, 0.94);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(54, 16, 32, 0.2);
  backdrop-filter: blur(12px);
}

.fab-btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 8px;
  font-size: 1.65rem;
  animation: none;
  box-shadow: none;
}

.fab-telegram,
.fab-telegram:hover {
  background: #287fa5;
  box-shadow: none;
}

.fab-whatsapp,
.fab-whatsapp:hover {
  background: #167a55;
  box-shadow: none;
}

.fab-btn:hover {
  transform: translateY(-3px);
}

@media (max-width: 760px) {
  body {
    background-size: 24px 24px, 24px 24px, auto;
  }

  .page {
    max-width: 100%;
    padding-inline: 14px;
    padding-bottom: 108px;
  }

  .main-headline {
    margin-top: 32px;
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .header {
    padding: 14px 14px 12px;
    border-radius: 0 18px 0 0;
    box-shadow: 8px 8px 0 #e8c9c0;
  }

  .logo-main {
    width: min(78vw, 240px);
  }

  .logo-secondary {
    width: 56px;
  }

  .hero-banner {
    padding: 7px;
    border-radius: 0 22px 0 0;
    box-shadow: 8px 8px 0 var(--coral);
  }

  .hero-banner img {
    aspect-ratio: 4 / 3;
    border-radius: 0 16px 0 0;
  }

  .cta-group,
  .cta-group:not(.compact) {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
  }

  .phone-box {
    display: block;
  }

  .section {
    margin: 54px 0;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-item,
  .gallery-item.wide {
    grid-column: span 1;
    aspect-ratio: 4 / 5;
    border-radius: 0 12px 0 0;
  }

  .gallery-item.wide:first-child,
  .gallery-item.wide:last-child {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }

  .gallery-item:nth-child(3n) {
    transform: none;
  }

  .motion-showcase {
    display: block;
    border-radius: 0 22px 0 0;
  }

  .motion-stage {
    aspect-ratio: 4 / 5;
    max-height: 520px;
  }

  .motion-showcase figcaption {
    padding: 20px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-card:first-child {
    transform: none;
  }

  .video-card video {
    aspect-ratio: 16 / 10;
  }

  .seo-article {
    margin-top: 62px;
    padding: 28px 20px;
  }

  .cta-banner {
    box-shadow: 7px 7px 0 #e8c9c0;
  }

  .fab-stack {
    right: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(330px, calc(100vw - 28px));
    transform: translateX(50%);
  }

  .fab-btn {
    flex: 1;
    width: auto;
    height: 48px;
  }
}

@media (max-width: 390px) {
  .main-headline {
    font-size: 2rem;
  }

  .cta-row {
    grid-template-columns: 1fr;
  }

  .gallery {
    display: block;
  }

  .gallery-item,
  .gallery-item.wide {
    margin-bottom: 10px;
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .main-headline::after,
  .section-title::before,
  .cta-banner::before,
  body::before {
    background: CanvasText;
  }

  .cta-btn,
  .fab-btn {
    border: 2px solid ButtonText;
  }
}
