/* =========================================================
   YOO-HOO! — стилі сайту
   Побудовано на фірмовій палітрі з логобуку:
   основний фіолетовий #2F1160, три градієнти (синій/червоний/лайм)
   ========================================================= */

:root {
  --color-primary: #2F1160;
  --color-primary-dark: #1C0A3E;
  --color-primary-soft: #4A2389;
  --color-ink: #1B1030;
  --color-paper: #FBF9FC;
  --color-white: #FFFFFF;

  --color-blue-1: #00ACEF;
  --color-blue-2: #005EB2;
  --color-red-1: #EB2426;
  --color-red-2: #871846;
  --color-lime-1: #B4DD07;
  --color-lime-2: #738E00;

  --grad-blue: linear-gradient(135deg, var(--color-blue-1), var(--color-blue-2));
  --grad-red: linear-gradient(135deg, var(--color-red-1), var(--color-red-2));
  --grad-lime: linear-gradient(135deg, var(--color-lime-1), var(--color-lime-2));
  --grad-primary: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);

  --border-soft: rgba(47, 17, 96, 0.12);
  --shadow-card: 0 12px 30px rgba(27, 16, 48, 0.08);
  --shadow-card-hover: 0 20px 40px rgba(27, 16, 48, 0.14);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --font-display: 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1vw + 1rem, 1.5rem); }

p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 999;
}
.skip-link:focus {
  left: 20px;
  top: 20px;
}

:focus-visible {
  outline: 3px solid var(--color-lime-1);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: var(--color-lime-1);
  color: var(--color-ink);
  box-shadow: 0 8px 20px rgba(180, 221, 7, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(180, 221, 7, 0.45); }
.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(27,16,48,0.15);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
  gap: 20px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 44px; width: auto; }

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.main-nav a:hover { border-color: var(--color-lime-1); }

.site-header__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone span { color: var(--color-lime-1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 20px;
    gap: 4px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 10px 4px; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-primary);
  color: #fff;
  overflow: hidden;
  padding-block: 72px 96px;
}
.hero__rays {
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 150vw);
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.hero__eyebrow {
  display: inline-block;
  font-weight: 800;
  color: var(--color-lime-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 0.4em;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-lime-1);
}
.hero__lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2em;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section--tight { padding-block: 48px; }
.section--alt { background: #fff; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-head__eyebrow {
  display: block;
  font-weight: 800;
  color: var(--color-blue-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.section-foot { text-align: center; margin-top: 40px; }

.divider-rays {
  display: block;
  width: 100%;
  height: 34px;
  margin-block: 4px;
}

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.cat-card--blue { background: var(--grad-blue); }
.cat-card--red { background: var(--grad-red); }
.cat-card--lime { background: var(--grad-lime); color: var(--color-ink); }
.cat-card h3 { color: inherit; margin-bottom: 6px; }
.cat-card p { color: inherit; opacity: 0.92; font-size: 0.92rem; margin-bottom: 0; }
.cat-card__count {
  position: absolute;
  top: 20px;
  right: 22px;
  font-weight: 800;
  font-size: 0.82rem;
  background: rgba(255,255,255,0.25);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.cat-card--lime .cat-card__count { background: rgba(27,16,48,0.15); }

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.product-card__img-wrap {
  aspect-ratio: 1 / 1;
  background: #F1EEF7;
  overflow: hidden;
}
.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-card__name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-ink);
  text-decoration: none;
  line-height: 1.35;
  flex: 1;
}
.product-card__name:hover { color: var(--color-primary); }
.product-card__sku {
  font-size: 0.78rem;
  color: #8A82A0;
}
.product-card .btn { font-size: 0.85rem; padding: 10px 18px; margin-top: auto; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: #6F6684;
  margin-bottom: 22px;
}
.breadcrumbs a { color: #6F6684; text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin-inline: 6px; }

/* ---------- Category page header ---------- */
.category-hero {
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  color: #fff;
  margin-bottom: 44px;
}
.category-hero p { margin-bottom: 0; opacity: 0.92; max-width: 640px; }
.category-hero--blue { background: var(--grad-blue); }
.category-hero--red { background: var(--grad-red); }
.category-hero--lime { background: var(--grad-lime); color: var(--color-ink); }
.category-hero h1 { color: inherit; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6F6684;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  color: var(--color-primary);
  background: #fff;
  border: 1px solid var(--border-soft);
}
.pagination a:hover { background: var(--color-primary); color: #fff; }
.pagination .is-current { background: var(--color-primary); color: #fff; }

/* ---------- Product detail page ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 820px) {
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
}
.product-gallery__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #F1EEF7;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.product-gallery__thumbs button {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  cursor: pointer;
  background: #F1EEF7;
}
.product-gallery__thumbs button.is-active { border-color: var(--color-primary); }
.product-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info__sku { color: #8A82A0; font-weight: 700; margin-bottom: 10px; font-size: 0.9rem; }
.product-info h1 { margin-bottom: 14px; }
.product-info__desc { color: #443C57; margin-bottom: 24px; }

.params-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}
.params-table tr { border-bottom: 1px solid var(--border-soft); }
.params-table td { padding: 10px 0; font-size: 0.92rem; }
.params-table td:first-child { color: #6F6684; width: 40%; }
.params-table td:last-child { font-weight: 700; color: var(--color-ink); }

.product-info__meta { font-size: 0.88rem; color: #6F6684; margin-bottom: 20px; }

.related-heading { margin-top: 72px; }

/* ---------- About / Contacts content pages ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 1.4em; }
.prose p { color: #443C57; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
@media (max-width: 760px) { .value-grid { grid-template-columns: 1fr; } }
.value-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--color-lime-1);
}
.value-card:nth-child(2) { border-top-color: var(--color-blue-1); }
.value-card:nth-child(3) { border-top-color: var(--color-red-1); }
.value-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.value-card p { font-size: 0.92rem; color: #6F6684; margin: 0; }

.categories-teaser-grid { margin-top: 8px; }

/* ---------- Contacts ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 800; color: var(--color-primary); margin-top: 18px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; font-size: 1.05rem; }
.contact-card a { text-decoration: none; color: var(--color-ink); }
.contact-card a:hover { color: var(--color-primary); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.82);
  padding-top: 56px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}
.footer-logo { height: 40px; margin-bottom: 14px; }
.footer-col h3 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--color-lime-1); }
.footer-col p { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Modal / lead form ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 16, 48, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #F1EEF7;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-ink);
}
.modal__close:hover { background: var(--color-lime-1); }
.modal h2 { margin-bottom: 4px; }
.modal__product-name {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.lead-form { display: flex; flex-direction: column; gap: 16px; }
.lead-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.88rem; color: var(--color-ink); }
.lead-form__field em { color: var(--color-red-1); font-style: normal; }
.lead-form__field input,
.lead-form__field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-soft);
  background: #FBF9FC;
  color: var(--color-ink);
  font-weight: 600;
  resize: vertical;
}
.lead-form__field input:focus,
.lead-form__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.lead-form__submit { margin-top: 6px; }
.lead-form__status { margin: 0; font-size: 0.9rem; font-weight: 700; min-height: 1.2em; }
.lead-form__status.is-success { color: #4C7A00; }
.lead-form__status.is-error { color: var(--color-red-2); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
