/* ============================================================
   Sugar Rush KG — base.css
   Дизайн-система: конфетная тематика (розовый, мятный,
   карамельный, сиреневый), округлые формы, мягкие тени.
   ============================================================ */

:root {
  /* Палитра */
  --pink: #ff5fa2;
  --pink-dark: #e63e86;
  --pink-soft: #ffd9ea;
  --mint: #3fd9b6;
  --mint-soft: #d2f8ee;
  --caramel: #ffb45e;
  --caramel-soft: #ffe8cf;
  --lilac: #a06cd5;
  --lilac-soft: #eadffb;
  --plum: #43254e;          /* основной текст */
  --plum-light: #7a5a86;    /* приглушённый текст */
  --bg: #fff7fb;            /* фон страницы */
  --surface: #ffffff;       /* карточки */
  --border: #f3dcee;

  /* Типографика */
  --font-main: 'Comfortaa', 'Segoe UI', Arial, sans-serif;

  /* Формы и тени */
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --shadow-soft: 0 8px 24px rgba(163, 74, 140, .12);
  --shadow-hover: 0 14px 34px rgba(163, 74, 140, .22);

  /* Ритм */
  --container: 1080px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.7;
  color: var(--plum);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 217, 234, .55) 0, transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(210, 248, 238, .5) 0, transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(234, 223, 251, .45) 0, transparent 40%);
  background-attachment: fixed;
  min-width: 320px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pink-dark);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--lilac); }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: .45em; }
li::marker { color: var(--pink); }

strong { font-weight: 800; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.25;
  color: var(--plum);
}

h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  margin: 1.7em 0 .7em;
  padding-left: .85rem;
  border-left: 6px solid var(--pink);
  border-radius: 4px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
h3 { font-size: 1.2rem; margin: 1.6em 0 .6em; }

p { margin-bottom: 1.1em; }

/* ---------- Каркас ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

main { display: block; }

/* ---------- Кнопки (CTA) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.9em;
  border-radius: 999px;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1.02rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  box-shadow: 0 8px 20px rgba(230, 62, 134, .35), inset 0 2px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 28px rgba(230, 62, 134, .45), inset 0 2px 0 rgba(255, 255, 255, .35);
}

.btn-secondary {
  color: #fff;
  background: linear-gradient(135deg, var(--mint) 0%, #1fbf9c 100%);
  box-shadow: 0 8px 20px rgba(31, 191, 156, .32), inset 0 2px 0 rgba(255, 255, 255, .35);
}
.btn-secondary:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 28px rgba(31, 191, 156, .42), inset 0 2px 0 rgba(255, 255, 255, .35);
}

.btn-outline {
  color: var(--lilac);
  background: var(--surface);
  border: 2px solid var(--lilac);
  box-shadow: 0 6px 16px rgba(160, 108, 213, .18);
}
.btn-outline:hover {
  color: #fff;
  background: var(--lilac);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(160, 108, 213, .35);
}

/* Блок с CTA внутри текста */
.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 2em 0;
  padding: 26px 22px;
  background: linear-gradient(135deg, var(--pink-soft) 0%, var(--lilac-soft) 100%);
  border: 2px dashed var(--pink);
  border-radius: var(--radius-l);
  text-align: center;
}
.cta-box p {
  width: 100%;
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 1.1rem;
}

/* ---------- Таблицы (адаптив) ---------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4em 0 1.8em;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
}
.table-responsive table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: .98rem;
}
.table-responsive th {
  background: linear-gradient(135deg, var(--pink) 0%, var(--lilac) 100%);
  color: #fff;
  font-weight: 800;
  text-align: left;
  padding: 14px 18px;
  white-space: nowrap;
}
.table-responsive td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.table-responsive tr:nth-child(even) td { background: #fdf3f9; }
.table-responsive tr:last-child td { border-bottom: none; }
.table-responsive tr:hover td { background: var(--pink-soft); }

/* ---------- Иллюстрации в тексте ---------- */
.content-img {
  margin: 1.8em auto;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  border: 4px solid #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.content-img:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-hover);
}

/* ---------- Галерея ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 1.6em 0 2em;
}
.gallery img {
  width: 100%;
  border-radius: var(--radius-m);
  border: 4px solid #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery img:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow-hover);
}

/* ---------- Списки «плюсы/минусы» ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 1.4em 0 1.8em;
}
.pros-cons .card {
  background: var(--surface);
  border-radius: var(--radius-m);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}
.pros-cons .card h3 { margin-top: 0; }
.pros-cons .card ul { margin: 0; }
.pros-cons .card li:last-child { margin-bottom: 0; }
.card-pros { border-top: 6px solid var(--mint); }
.card-cons { border-top: 6px solid var(--caramel); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--surface);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  padding: 20px 24px;
  margin-bottom: 16px;
  border-left: 6px solid var(--lilac);
}
.faq-item h3 {
  margin: 0 0 .5em;
  font-size: 1.08rem;
  color: var(--pink-dark);
}
.faq-item p { margin: 0; }

/* ---------- Утилиты ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Адаптив ---------- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .gallery { grid-template-columns: 1fr; gap: 14px; }
  .pros-cons { grid-template-columns: 1fr; }
  .cta-box { padding: 20px 16px; }
  .btn { width: 100%; max-width: 340px; }
}
