/* ===== Tokens ===== */
:root {
  --purple: #6c4ad6;
  --purple-dark: #5435b8;
  --pink: #ff5da2;
  --yellow: #ffce42;
  --cyan: #34c6e6;
  --green: #2bbf7a;
  --ink: #2a2350;
  --muted: #6b6796;
  --bg: #ffffff;
  --bg-soft: #f6f3ff;
  --line: #ece8fb;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(76, 51, 160, 0.12);
  --shadow-lg: 0 20px 50px rgba(76, 51, 160, 0.2);
  --container: 1140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text { font-family: "Nunito", system-ui, sans-serif; font-weight: 800; line-height: 1.15; }

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 16px;
  cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 8px 20px rgba(255, 93, 162, .4); }
.btn-primary:hover { background: #ff478f; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.18); color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.3); }
.btn-phone { background: var(--green); color: #fff; padding: 10px 16px; font-size: 15px; }
.btn-phone:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; margin-right: auto; }
.logo-img { height: 48px; width: auto; display: block; }
.logo-mark { width: 34px; height: 34px; display: block; flex: none; }
.logo-text { font-weight: 800; color: var(--purple); line-height: 1; }
.logo-text span { color: var(--pink); }
/* nudge wordmark down ~2px to optically center with the bottom-heavy icon */
.logo .logo-text { transform: translateY(2px); }

.nav { display: flex; gap: 22px; }
.nav a { font-weight: 700; color: var(--ink); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 3px; background: var(--pink); border-radius: 3px; transition: width .2s; }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.lang-switch { display: flex; background: var(--bg-soft); border-radius: 999px; padding: 3px; }
.lang-switch a {
  border: none; background: transparent; cursor: pointer; font-weight: 800; font-size: 13px;
  color: var(--muted); padding: 6px 11px; border-radius: 999px; transition: all .15s; line-height: 1;
}
.lang-switch a:hover { color: var(--purple); }
.lang-switch a.active { background: var(--purple); color: #fff; }

/* Compact language dropdown — shown on mobile instead of the button group */
.lang-select {
  display: none; appearance: none; -webkit-appearance: none;
  border: none; cursor: pointer; font-weight: 800; font-size: 13px;
  color: #fff; background-color: var(--purple);
  padding: 8px 28px 8px 13px; border-radius: 999px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='white' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}

.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--purple); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--purple) 0%, #8b5cf6 50%, var(--pink) 120%);
  color: #fff; overflow: hidden; position: relative;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.1);
}
.hero::before { width: 320px; height: 320px; top: -120px; right: -80px; }
.hero::after { width: 200px; height: 200px; bottom: -90px; left: 10%; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: 64px 20px 72px; position: relative; z-index: 1;
}
.eyebrow { font-weight: 800; opacity: .95; margin-bottom: 14px; font-size: 17px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; margin-bottom: 16px; }
.hero-sub { font-size: clamp(16px, 2vw, 20px); max-width: 540px; opacity: .95; margin-bottom: 28px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; }
.hero-badges li { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.hero-image img {
  border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover;
  transform: rotate(2deg);
}

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.section-title { font-size: clamp(28px, 4vw, 40px); text-align: center; font-weight: 900; }
.section-lead { text-align: center; color: var(--muted); font-size: 18px; margin: 8px 0 40px; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-wide { grid-column: 1 / -1; }

.card-media { display: flex; flex-direction: column; gap: 4px; background: #fff; }
.card-media img { object-fit: cover; cursor: zoom-in; width: 100%; transition: filter .15s; }
.card-media img:hover { filter: brightness(1.06); }
.card-media .gallery-main { aspect-ratio: 16/10; }
.card-media .thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 5); gap: 4px; justify-content: start; }
.card-media .thumbs img { width: 100%; height: 76px; }
/* Foam cannon is full-width but uses the same media layout as every other card
   (main photo on top + thumbnail row below); its thumbnails are a bit taller. */
.card-wide .thumbs img { height: 104px; }
/* "+N more photos" badge on the last visible thumbnail (rest are in the lightbox) */
.card-media .thumb-more { position: relative; line-height: 0; }
.card-media .thumb-more span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 12, 50, .5); color: #fff; font-weight: 800; font-size: 17px;
  pointer-events: none;
}

.card-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.card-body h3 { font-size: 24px; }
.card-desc { color: var(--muted); }

.specs { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.specs li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.specs li span { color: var(--muted); }
.specs li b { color: var(--ink); }

.price-row { display: flex; gap: 12px; margin-top: auto; }
.price {
  flex: 1; background: var(--bg-soft); border-radius: 12px; padding: 10px 14px; text-align: center;
}
.price span { display: block; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.price b { font-size: 22px; color: var(--purple); }
.price.hot { background: linear-gradient(135deg, var(--pink), #ff7eb6); }
.price.hot span { color: rgba(255,255,255,.9); }
.price.hot b { color: #fff; }

/* ===== Price table ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.price-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.price-table th, .price-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--purple); color: #fff; font-family: "Nunito", sans-serif; font-weight: 800; }
.price-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.price-table td:nth-child(n+4) { font-weight: 800; color: var(--purple); }
.price-note { text-align: center; margin-top: 24px; font-size: 18px; }
.price-note strong { color: var(--pink); }

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature-ico { font-size: 40px; margin-bottom: 12px; }
.feature h4 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ===== Reviews ===== */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.review { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stars { color: var(--yellow); font-size: 20px; letter-spacing: 2px; margin-bottom: 12px; }
.review blockquote { font-size: 18px; font-style: italic; margin-bottom: 14px; }
.review figcaption { font-weight: 800; color: var(--purple); }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info .section-title, .contact-info .section-lead { text-align: left; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.contact-list a { font-size: 20px; font-weight: 800; color: var(--purple); display: inline-flex; align-items: center; gap: 10px; }
.soc-ic { fill: currentColor; flex: none; }
.contact-list .soc-ic { width: 22px; height: 22px; color: var(--ink); }   /* phone/mail: graphite */
.footer-links .soc-ic { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }
/* brand colours for the social icons */
.soc-ic:has(use[href="#ic-whatsapp"])  { color: #25D366; }
.soc-ic:has(use[href="#ic-viber"])     { color: #7360F2; }
.soc-ic:has(use[href="#ic-instagram"]) { color: #E4405F; }
.soc-ic:has(use[href="#ic-facebook"])  { color: #1877F2; }
.contact-list a:hover { color: var(--pink); }
.contact-hours { color: var(--muted); }

.contact-form { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea {
  border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; background: var(--bg-soft);
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); background: #fff; }
.contact-form .btn { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; text-align: center; font-weight: 700; padding: 10px; border-radius: 12px; }
.form-status.ok { background: #e6f9f0; color: var(--green); }
.form-status.err { background: #ffe9f0; color: var(--pink); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #fff; padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .logo-text { color: #fff; font-size: 22px; }
.site-footer .logo-text span { color: var(--yellow); }
.site-footer p { opacity: .8; font-size: 14px; }
.site-footer a { text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--yellow); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-weight: 700; text-decoration: none; }

/* ===== Rules page ===== */
.rules { padding: 48px 0 72px; }
.rules .back-home { display: inline-block; margin-bottom: 14px; font-weight: 800; color: var(--purple); }
.rules h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.rules-intro { color: var(--muted); font-size: 18px; margin: 10px 0 28px; }
.rules-list { list-style: none; counter-reset: r; display: grid; gap: 12px; max-width: 840px; }
.rules-list li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px 16px 56px; box-shadow: var(--shadow); line-height: 1.55;
}
.rules-list li::before {
  counter-increment: r; content: counter(r); position: absolute; left: 14px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--purple); color: #fff;
  font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center;
}

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 12, 50, .92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: none; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; padding: 0; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.lb-close svg, .lb-prev svg, .lb-next svg { display: block; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero-image { order: -1; max-width: 440px; margin: 0 auto; }
  .hero-buttons, .hero-badges { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-info .section-title, .contact-info .section-lead { text-align: center; }
}
/* Header collapses to a hamburger + language dropdown once the full nav
   stops fitting (tablets and below). */
@media (max-width: 1024px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 12px 20px; gap: 4px; box-shadow: var(--shadow); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .btn-phone { display: none; }
  .lang-switch { display: none; }   /* hide 3-button switch */
  .lang-select { display: block; }  /* show compact dropdown instead */
}
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  .lb-prev, .lb-next { width: 44px; height: 44px; }
}
