/* ============================================
   Zarabiacze.com — Static Site Styles
   Kolorystyka zgodna z oryginalną stroną
   ============================================ */

:root {
  --color-dark: #222222;
  --color-skin: #8cbc43;
  --color-skin-hover: #7aad35;
  --color-gold: #ffb400;
  --color-white: #ffffff;
  --color-grey-bg: #f5f5f5;
  --color-grey-text: #666666;
  --color-border: #eeeeee;
  --font-main: "Montserrat", system-ui, -apple-system, sans-serif;
  --container-max: 1200px;
  --header-height: 56px;
  --mobile-nav-width: min(300px, 80vw);
  --z-overlay: 1040;
  --z-mobile-nav: 1050;
  --z-header: 1060;
  --z-menu-toggle: 1070;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-grey-text);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

/* Content visible by default — JS adds animation only below the fold */
[data-animate] {
  opacity: 1;
  transform: none;
}

[data-animate].will-animate:not(.is-animated) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].is-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Hero always visible immediately (Android-safe) */
.hero-slider,
.hero-slide,
.hero-slide__bg,
.hero-slide__content,
.hero-slide__text,
.site-header {
  opacity: 1;
  visibility: visible;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), background var(--transition), opacity var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 20px);
}

/* ---- Header / Navigation ---- */
.site-header {
  background: var(--color-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 12px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.site-branding img {
  width: 28px;
  height: 28px;
}

.site-branding:hover {
  color: var(--color-skin);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: var(--z-menu-toggle);
  flex-shrink: 0;
}

.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle__bar {
  position: relative;
}

.menu-toggle__bar::before,
.menu-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__bar::before {
  top: -8px;
}

.menu-toggle__bar::after {
  top: 8px;
}

.menu-toggle.is-active .menu-toggle__bar {
  background: transparent;
}

.menu-toggle.is-active .menu-toggle__bar::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--color-white);
}

.menu-toggle.is-active .menu-toggle__bar::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--color-white);
}

/* Mobile drawer header (injected by JS) */
.mobile-nav__head {
  display: none;
}

.mobile-nav__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
}

.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: var(--color-grey-bg);
  color: var(--color-dark);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.mobile-nav__close:hover {
  background: var(--color-skin);
  color: var(--color-white);
}

/* Overlay — base (mobile rules in media query) */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Main Nav */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav__link {
  display: block;
  padding: 6px 12px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 4px;
}

.main-nav__link:hover,
.main-nav__item.is-active > .main-nav__link {
  color: var(--color-skin);
}

/* Dropdown */
.main-nav__item--has-children {
  position: relative;
}

.main-nav__item--has-children > .main-nav__link::after {
  content: " ▾";
  font-size: 11px;
}

.main-nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  padding: 8px 0;
  z-index: 100;
}

.main-nav__item--has-children:hover .main-nav__submenu,
.main-nav__item--has-children.is-open .main-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav__submenu a {
  display: block;
  padding: 10px 20px;
  color: var(--color-dark);
  font-size: 14px;
  font-weight: 500;
}

.main-nav__submenu a:hover {
  background: var(--color-grey-bg);
  color: var(--color-skin);
}

/* Header extras */
.header-extra {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-search {
  position: relative;
}

.header-search__btn {
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
}

.header-search__btn svg {
  width: 20px;
  height: 20px;
}

.header-search__btn:hover {
  color: var(--color-skin);
}

.header-search__popup {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--color-white);
  padding: 12px;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  z-index: 200;
  min-width: 260px;
}

.header-search__popup.is-open {
  display: block;
}

.header-search__form {
  display: flex;
  gap: 8px;
}

.header-search__input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-dark);
}

.header-search__submit {
  width: 42px;
  height: 38px;
  border: none;
  background: var(--color-skin);
  color: var(--color-white);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search__submit:hover {
  background: var(--color-skin-hover);
}

.header-promo-link {
  color: var(--color-gold) !important;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.header-promo-link:hover {
  opacity: 0.85;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--fill {
  background: var(--color-skin);
  color: var(--color-white);
  padding: 14px 28px;
  border-color: var(--color-skin);
}

.btn--fill:hover {
  background: var(--color-skin-hover);
  border-color: var(--color-skin-hover);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
  padding: 14px 32px;
}

.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-skin);
}

.btn--inline {
  background: none;
  border: none;
  color: var(--color-skin);
  padding: 0;
  font-size: 18px;
}

.btn--inline:hover {
  color: var(--color-skin-hover);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* ---- Hero Slider ---- */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 520px;
}

.hero-slider__track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.hero-slide {
  flex: 0 0 100%;
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Slajd 1 — promocje bankowe */
.hero-slide__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 100%);
}

/* Slajd 2 — bukmacherskie: split layout (zdjęcie + panel #222) */
.hero-slide--split {
  display: grid;
  grid-template-columns: 58fr 42fr;
  align-items: stretch;
  min-height: 520px;
}

.hero-slide__split-media {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: #1a1a1a;
}

.hero-slide__split-media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--color-dark));
  pointer-events: none;
}

.hero-slide__split-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: 22% 62%;
  display: block;
}

.hero-slide__split-panel {
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 32px;
}

.hero-slide--split .hero-slide__text {
  max-width: 440px;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-slide--split .hero-slide__desc {
  max-width: none;
  opacity: 0.92;
}

.hero-slide__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px 0;
  color: var(--color-white);
}

.hero-slide__content--right {
  text-align: right;
}

.hero-slide__content--right .hero-slide__text {
  margin-left: auto;
}

.hero-slide__label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-slide__label .accent {
  color: var(--color-skin);
}

.hero-slide__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 10px;
}

.hero-slide__title .accent {
  color: var(--color-skin);
}

.hero-slide__desc {
  font-size: 16px;
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 12px;
  opacity: 0.95;
}

.hero-slide__text {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-slider__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.hero-slider__dot.is-active {
  background: var(--color-skin);
  border-color: var(--color-skin);
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: var(--color-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-slider__arrow:hover {
  background: var(--color-skin);
}

.hero-slider__arrow--prev {
  left: 20px;
}

.hero-slider__arrow--next {
  right: 20px;
}

/* ---- Utility ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Section Common ---- */
.section {
  padding: 24px 0;
}

.section--grey {
  background: var(--color-grey-bg);
  position: relative;
}

.section--grey::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/images/bg-pattern-grey.webp");
  background-size: cover;
  opacity: 0.4;
  pointer-events: none;
}

.section--dark-bg {
  background-image: url("assets/images/bg-bookmaker.webp");
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--color-white);
}

.section--dark-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.section--green {
  background: var(--color-skin);
  color: var(--color-white);
}

.section__inner {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 12px;
}

.section-header--left {
  text-align: left;
  margin-bottom: 10px;
}

.section-header__label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-skin);
  margin-bottom: 4px;
}

.section-header__title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
}

.section--dark-bg .section-header__title,
.section--green .section-header__title {
  color: var(--color-white);
}

.section--dark-bg .section-header__label {
  color: var(--color-gold);
}

/* ---- About Section ---- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 20px;
  align-items: start;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 6 / 5;
}

.about-image:not(.about-image--small) img {
  aspect-ratio: 5 / 6;
  object-position: center 58%;
}

.about-grid > div:not(.about-image) > p {
  margin: 0 0 12px;
  text-align: left;
  line-height: 1.65;
}

.about-stats {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.about-stats__left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-image--small img {
  aspect-ratio: 4 / 3;
}

.stat-box {
  background: var(--color-skin);
  color: var(--color-white);
  padding: 20px 16px;
  border-radius: 6px;
  text-align: center;
}

.stat-box__number {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.stat-box__label {
  font-size: 18px;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.4;
}

.stat-percent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-percent__icon {
  color: var(--color-skin);
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.stat-percent__value {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
}

.stat-percent__text {
  font-size: 15px;
  color: var(--color-grey-text);
  font-weight: 500;
}

/* ---- Steps Cards ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 14px 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-grey-bg);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.step-card__icon svg {
  width: 28px;
  height: 28px;
}

.step-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.step-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-grey-text);
}

.cta-center {
  text-align: center;
  margin-top: 10px;
}

.cta-center__text {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

/* ---- Bookmaker Cards ---- */
.offer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}

.offer-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.offer-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.offer-card:hover {
  transform: translateY(-4px);
}

.offer-card__img {
  min-height: 140px;
  height: auto;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--color-skin), #5a8a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 22px;
  font-weight: 700;
}

.offer-card__body {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.offer-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.offer-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-grey-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Testimonials ---- */
.testimonials-wrap {
  background: var(--color-grey-bg);
  border-radius: 8px;
  padding: 12px 10px;
  margin-top: -20px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease;
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  box-sizing: border-box;
}

.testimonial-card {
  width: 100%;
  background: var(--color-white);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.testimonial-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 10px;
  object-fit: cover;
  background: var(--color-grey-bg);
}

.testimonial-card__avatar[data-fallback="1"] {
  background: var(--color-skin);
  display: block;
}

.testimonial-card__quote {
  font-size: 14px;
  font-style: italic;
  color: var(--color-grey-text);
  margin-bottom: 8px;
  line-height: 1.5;
}

.testimonial-card__author {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
}

.testimonials-dots {
  display: none;
}

.client-cta {
  text-align: center;
}

.client-cta__title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.client-cta__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
}

/* ---- Newsletter (nowy design) ---- */
.footer-newsletter {
  padding: 16px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a3320 50%, #1a1a1a 100%);
  border-bottom: 3px solid var(--color-skin);
}

.newsletter-box {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(140, 188, 67, 0.35);
  border-radius: 12px;
  padding: 16px 18px;
}

@supports ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
  .newsletter-box {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.06);
  }
}

.newsletter-box__info {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.newsletter-box__badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--color-skin);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.newsletter-box__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.newsletter-box__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

.newsletter-box__desc strong {
  color: var(--color-skin);
}

.newsletter-box__form {
  display: flex;
  gap: 10px;
  grid-column: 2;
  grid-row: 1;
}

.newsletter-box__input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 18px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-family: inherit;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-dark);
  transition: border-color var(--transition);
}

.newsletter-box__input:focus {
  outline: none;
  border-color: var(--color-skin);
}

.newsletter-box__btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.newsletter-box__privacy {
  grid-column: 1 / -1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  text-align: center;
}

.footer-main {
  padding: 32px 0 20px;
}

.footer-main__grid {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

.footer-logo img {
  width: 24px;
  height: 24px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-widget__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--color-skin);
}

.footer-bottom {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: var(--color-skin);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ---- Scroll to top ---- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--color-skin);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-skin-hover);
}

.scroll-top svg {
  width: 24px;
  height: 24px;
}

/* ---- Newsletter toast ---- */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-dark);
  color: var(--color-white);
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 9999;
  box-shadow: var(--shadow-md);
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1199px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-slide {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 991px) {
  .site-header {
    z-index: var(--z-header);
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: var(--header-height);
  }

  .site-branding {
    flex: 1;
    min-width: 0;
  }

  .header-extra {
    order: 2;
  }

  .menu-toggle {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-menu-toggle);
    margin-left: 0;
    flex-shrink: 0;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: var(--mobile-nav-width);
    max-width: 80vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    background: var(--color-white);
    flex: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: var(--z-mobile-nav);
    overflow: hidden;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    min-height: var(--header-height);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-white);
    flex-shrink: 0;
  }

  .main-nav__list {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }

  .main-nav__link {
    color: var(--color-dark);
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    white-space: normal;
    line-height: 1.4;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .main-nav__link:hover,
  .main-nav__item.is-active > .main-nav__link {
    color: var(--color-skin);
    background: rgba(140, 188, 67, 0.08);
  }

  .main-nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background: var(--color-grey-bg);
    border-radius: 0;
    padding: 0;
    min-width: 0;
  }

  .main-nav__item--has-children.is-open .main-nav__submenu {
    display: block;
  }

  .main-nav__submenu a {
    padding: 12px 20px 12px 32px;
    font-size: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: normal;
    word-break: break-word;
  }

  .header-promo-link {
    display: none;
  }

  .header-search__popup {
    right: 0;
    left: auto;
    min-width: min(280px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .newsletter-box {
    grid-template-columns: 1fr;
    padding: 16px 14px;
  }

  .newsletter-box__form {
    grid-column: 1;
    grid-row: auto;
    flex-direction: column;
  }

  .newsletter-box__btn {
    width: 100%;
  }

  .footer-main__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-slide--split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-slide__split-media {
    min-height: 280px;
  }

  .hero-slide__split-media img {
    min-height: 280px;
    object-position: 30% 62%;
  }

  .hero-slide__split-panel {
    padding: 24px 20px;
    justify-content: flex-start;
  }

  .hero-slide--split .hero-slide__text {
    max-width: 100%;
  }
}

/* ---- Mobile phone: compact header + hero (desktop unchanged) ---- */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .site-header {
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-header .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .site-header .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    height: 52px;
    padding: 0 16px;
    gap: 12px;
    width: 100%;
  }

  .site-branding {
    flex: 0 1 auto;
    order: 1;
    font-size: 20px;
    font-weight: 700;
    gap: 8px;
    line-height: 1;
    letter-spacing: 0;
    margin-right: auto;
    color: var(--color-white);
  }

  .header-extra {
    display: none;
  }

  .menu-toggle {
    order: 2;
    display: flex;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    align-items: center;
    justify-content: center;
  }

  .site-branding img {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }

  .menu-toggle__bar,
  .menu-toggle__bar::before,
  .menu-toggle__bar::after {
    width: 20px;
    height: 2px;
  }

  .menu-toggle__bar::before {
    top: -6px;
  }

  .menu-toggle__bar::after {
    top: 6px;
  }

  .mobile-nav__head {
    min-height: 56px;
    padding: 8px 14px;
  }

  /* Global mobile containers */
  .container,
  .section__inner,
  .page-content,
  .page-layout {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  body {
    font-size: 16px;
    line-height: 1.5;
  }

  .section-header__title,
  .client-cta__title,
  .page-header h1 {
    font-size: clamp(28px, 7.5vw, 34px);
    line-height: 1.3;
  }

  .hero-slide__desc,
  .client-cta__desc,
  .section-header p,
  .testimonial-card__quote {
    font-size: clamp(16px, 4.2vw, 18px);
    line-height: 1.5;
  }

  /* Hero — jak na screenie referencyjnym */
  main > .hero-slider:first-child,
  .hero-slider {
    margin-top: 0;
    min-height: clamp(400px, 54vh, 500px);
    height: clamp(400px, 54vh, 500px);
    max-height: none;
    width: 100%;
    overflow: hidden;
    background: #1a1a1a;
  }

  .hero-slider__track {
    min-height: clamp(400px, 54vh, 500px);
    height: clamp(400px, 54vh, 500px);
  }

  .hero-slide {
    min-height: clamp(400px, 54vh, 500px);
    height: clamp(400px, 54vh, 500px);
    max-height: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .hero-slide--split {
    position: relative;
    display: block;
    min-height: clamp(400px, 54vh, 500px);
    height: clamp(400px, 54vh, 500px);
    max-height: none;
  }

  .hero-slide__bg {
    background-size: cover;
    background-position: 72% center;
  }

  .hero-slide__bg::after {
    background: linear-gradient(
      100deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.72) 38%,
      rgba(0, 0, 0, 0.42) 68%,
      rgba(0, 0, 0, 0.28) 100%
    );
  }

  .hero-slide__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 0 16px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }

  .hero-slide__content .container {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .hero-slide__text,
  .hero-slide--split .hero-slide__text,
  .hero-slide__content--right .hero-slide__text {
    max-width: 100%;
    width: 100%;
    text-align: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 8px;
  }

  .hero-slide__label {
    display: none;
  }

  .hero-slide__title {
    font-size: clamp(34px, 10.5vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 22px;
    text-align: center;
    color: var(--color-white);
    letter-spacing: -0.02em;
  }

  .hero-slide__title .accent {
    color: var(--color-skin);
  }

  .hero-slide__desc {
    display: none;
  }

  .hero-slide .btn--fill,
  .hero-slide .btn {
    width: auto;
    min-width: 220px;
    max-width: 300px;
    margin: 0 auto;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    min-height: 48px;
    display: inline-flex;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(140, 188, 67, 0.35);
  }

  .hero-slide--split .hero-slide__split-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: none;
    flex: none;
    z-index: 0;
  }

  .hero-slide--split .hero-slide__split-media::after {
    inset: 0;
    width: 100%;
    height: 100%;
    right: auto;
    background: linear-gradient(
      100deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.72) 38%,
      rgba(0, 0, 0, 0.42) 68%,
      rgba(0, 0, 0, 0.28) 100%
    );
  }

  .hero-slide--split .hero-slide__split-media img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: 72% center;
    display: block;
  }

  .hero-slide--split .hero-slide__split-panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    min-height: 0;
    height: 100%;
    padding: 0 16px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .hero-slide--split .hero-slide__title {
    font-size: clamp(34px, 10vw, 42px);
  }

  .hero-slider__dots {
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    z-index: 3;
    gap: 8px;
  }

  .hero-slider__dot {
    width: 10px;
    height: 10px;
  }

  /* Sekcja pod hero — białe tło, zdjęcie od razu pod banerem */
  main > .section,
  #o-nas.section {
    padding-top: 0;
    padding-bottom: 20px;
    margin-top: 0;
    background: var(--color-white);
  }

  #o-nas .container {
    padding-top: 12px;
    padding-bottom: 0;
  }

  .about-grid {
    gap: 14px;
    margin-top: 0;
    width: 100%;
  }

  .about-image {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  }

  .about-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  .section-header--left {
    text-align: left;
    margin-bottom: 8px;
  }

  .section-header__label {
    font-size: 13px;
  }

  .about-grid > div:not(.about-image) > p {
    text-align: left;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-slider__arrow {
    display: none;
  }

  .site-main--inner {
    padding-top: 64px;
  }

  /* Mobile buttons */
  .btn--lg,
  .btn--outline-white,
  .cta-center .btn,
  .client-cta .btn,
  .promo-button-wrap .btn,
  .comment-form__submit {
    width: 90%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-center,
  .client-cta,
  .promo-button-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cta-center .btn,
  .client-cta .btn {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  /* Testimonials / Opinie — bez pustego białego bloku */
  #opinie.section--green {
    padding: 16px 0 20px;
    margin-bottom: 0;
    background: var(--color-skin);
  }

  #opinie .section__inner {
    padding-bottom: 0;
  }

  .section--green .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .testimonials-slider,
  .testimonials-wrap {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    touch-action: pan-y;
  }

  .testimonials-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    transition: transform 0.55s ease;
  }

  .testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-self: flex-start;
  }

  .testimonial-card {
    width: 100%;
    max-width: min(100%, 480px);
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 18px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    background: var(--color-white);
  }

  #opinie .client-cta {
    margin-top: 36px;
    margin-bottom: 0;
    padding: 0;
  }

  #opinie .client-cta__title {
    margin-bottom: 8px;
  }

  #opinie .client-cta__desc {
    margin-bottom: 12px;
  }

  .site-footer {
    margin-top: 0;
  }

  .footer-newsletter {
    padding-top: 36px;
    padding-bottom: 16px;
  }

  .testimonial-card__avatar {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    order: 1;
    object-fit: cover;
    display: block;
  }

  .testimonial-card__quote {
    order: 2;
    font-style: normal;
    margin: 0 0 12px;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    max-width: 100%;
    text-align: center;
  }

  .testimonial-card__author {
    order: 3;
    font-size: 15px;
    margin: 0;
    line-height: 1.4;
    text-align: center;
  }

  .testimonials-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 0;
    width: 100%;
  }

  .testimonials-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.25s ease, border-color 0.25s ease;
  }

  .testimonials-dot.is-active {
    background: var(--color-white);
    border-color: var(--color-white);
  }

  /* Article comments */
  .comments-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .comments-list__item {
    padding: 16px 18px;
  }

  .comment-form__submit {
    justify-self: center;
    display: flex;
  }

  img,
  .promo-main-image,
  .about-image img,
  .offer-card__img img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 22px 0;
  }

  .hero-slider__arrow {
    display: none;
  }

  .steps-grid,
  .offer-cards {
    grid-template-columns: 1fr;
  }

  .newsletter-box__info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .stat-percent__value {
    font-size: 32px;
  }

  .stat-box__number {
    font-size: 36px;
  }

  .offer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero-slide__title {
    font-size: clamp(28px, 7.5vw, 32px);
  }

  .about-grid {
    gap: 14px;
  }

  .about-image:not(.about-image--small) img {
    aspect-ratio: 4 / 5;
  }

  .testimonial-card {
    max-width: min(100%, 460px);
    padding: 16px 18px;
  }
}

/* ---- Inner pages ---- */
.site-main--inner {
  padding: 72px 0 40px;
}

.page-layout {
  display: block;
}

.page-layout--sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.page-header {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}

.page-header h1 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--color-dark);
}

.page-header--center {
  text-align: center;
  border: none;
}

.page-header--center p {
  color: var(--color-grey-text);
  margin-top: 8px;
}

/* Offer listing grid */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.offer-grid__item {
  min-width: 0;
}

.offer-card--listing {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.offer-card--listing:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.offer-card__link {
  display: block;
  color: inherit;
}

.offer-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-white);
}

.offer-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  background: var(--color-white);
}

.offer-card__arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--color-skin);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.offer-card--listing .offer-card__body {
  padding: 12px;
}

.offer-card--listing .offer-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.offer-card--listing .offer-card__body {
  min-height: 52px;
  display: flex;
  align-items: center;
}

/* Article single */
.article-single__header {
  margin-bottom: 14px;
}

.article-single__header h1 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.article-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--color-grey-text);
}

.article-single__hero {
  margin-bottom: 14px;
  text-align: center;
  background: var(--color-white);
}

.promo-main-image {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 0 auto;
}

.promo-content {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-dark);
  margin-bottom: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.promo-content p {
  margin: 0 0 6px;
}

.promo-content p:last-child {
  margin-bottom: 0;
}

.promo-content ul,
.promo-content .promo-list {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
}

.promo-content .promo-list li,
.promo-content ul li {
  position: relative;
  padding: 8px 10px 8px 14px;
  margin: 0 0 4px;
  background: var(--color-grey-bg);
  border-radius: 6px;
  border-left: 3px solid var(--color-skin);
  line-height: 1.45;
  font-size: 15px;
}

.promo-content .promo-list li:last-child,
.promo-content ul li:last-child {
  margin-bottom: 0;
}

.promo-content .promo-list li b,
.promo-content .promo-list li strong,
.promo-content ul li b,
.promo-content ul li strong {
  font-weight: 700;
  color: var(--color-dark);
}

.promo-content br {
  display: none;
}

.promo-content img {
  max-width: 100%;
  height: auto;
  margin: 8px 0;
}

.promo-button-wrap {
  text-align: center;
  margin: 16px 0;
}

.share-block {
  margin: 16px 0;
  padding: 14px;
  background: var(--color-grey-bg);
  border-radius: 8px;
}

.share-block__fb {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #1877f2;
  color: var(--color-white);
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

.share-block__fb:hover {
  opacity: 0.9;
}

.related-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid var(--color-border);
}

.related-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 14px;
  text-align: center;
}

/* Static content (FAQ, Regulamin) */
.static-content {
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-dark);
}

.static-content p {
  margin-bottom: 10px;
}

.static-content b {
  color: var(--color-dark);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 16px;
  margin-bottom: 14px;
}

.sidebar-widget__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-skin);
}

.sidebar-categories li,
.sidebar-links li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.sidebar-categories li:last-child,
.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-categories a,
.sidebar-links a {
  color: var(--color-grey-text);
  font-weight: 500;
}

.sidebar-categories a:hover,
.sidebar-links a:hover {
  color: var(--color-skin);
}

.sidebar-categories span {
  background: var(--color-grey-bg);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.poll-form__fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.poll-form__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 4px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.poll-form__option:hover {
  background: var(--color-grey-bg);
}

.poll-form__option input {
  flex-shrink: 0;
  accent-color: var(--color-skin);
}

.poll-form__actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.poll-form .btn {
  width: 100%;
  margin-top: 0;
}

.sidebar-widget--poll.is-showing-results .poll-form__vote-panel {
  display: none;
}

.poll-results__heading {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
}

.poll-results__bars {
  list-style: none;
  margin: 0;
  padding: 0;
}

.poll-results__item {
  margin-bottom: 6px;
}

.poll-results__item.is-user-vote .poll-results__label {
  color: var(--color-skin);
  font-weight: 700;
}

.poll-results__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}

.poll-results__label {
  font-weight: 500;
}

.poll-results__value {
  font-size: 12px;
  color: var(--color-text-muted, #666);
  white-space: nowrap;
}

.poll-results__track {
  height: 8px;
  background: var(--color-grey-bg);
  border-radius: 999px;
  overflow: hidden;
}

.poll-results__bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
  min-width: 0;
}

.poll-results__bar--0 { background: #5a9e2f; }
.poll-results__bar--1 { background: var(--color-skin); }
.poll-results__bar--2 { background: #e6b422; }
.poll-results__bar--3 { background: #e67e22; }
.poll-results__bar--4 { background: #c0392b; }

.poll-results__meta {
  margin: 12px 0;
  font-size: 12px;
  color: var(--color-text-muted, #666);
  text-align: center;
}

.poll-form__back {
  margin-top: 4px;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}

.btn--outline-dark {
  background: transparent;
  border: 2px solid var(--color-dark);
  color: var(--color-dark);
  padding: 10px 20px;
}

.btn--outline-dark:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

/* Contact page */
.contact-page {
  max-width: 1080px;
  margin: 0 auto;
}

.contact-page__header {
  text-align: center;
  margin-bottom: 18px;
}

.contact-page__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-skin);
}

.contact-page__title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  color: var(--color-dark);
}

.contact-page__lead {
  margin: 0 auto;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-grey-text);
}

.contact-page__layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.contact-page__aside {
  display: grid;
  gap: 10px;
}

.contact-info-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.contact-info-card--accent {
  background: linear-gradient(135deg, rgba(140, 188, 67, 0.12), rgba(140, 188, 67, 0.04));
  border-color: rgba(140, 188, 67, 0.35);
}

.contact-info-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-grey-bg);
  color: var(--color-skin);
  flex-shrink: 0;
}

.contact-info-card--accent .contact-info-card__icon {
  background: var(--color-skin);
  color: var(--color-white);
}

.contact-info-card__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
}

.contact-info-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-grey-text);
}

.contact-info-card__text a {
  color: var(--color-dark);
  font-weight: 600;
  word-break: break-word;
}

.contact-info-card__text a:hover {
  color: var(--color-skin);
}

.contact-page__panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(14px, 3vw, 20px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.contact-form__note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--color-grey-text);
}

.contact-form__required {
  color: #c0392b;
  font-weight: 700;
}

.contact-form__row {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-form__row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-field__label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
}

.contact-field__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8dce3;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field__input::placeholder {
  color: #9aa3b2;
}

.contact-field__input:hover {
  border-color: #c5ccd8;
}

.contact-field__input:focus {
  outline: none;
  border-color: var(--color-skin);
  box-shadow: 0 0 0 3px rgba(140, 188, 67, 0.2);
}

.contact-field__input.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.contact-field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.contact-field__textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-field__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--color-grey-text);
}

.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__actions {
  margin-top: 8px;
}

.contact-form__submit {
  width: 100%;
  min-height: 52px;
  justify-content: center;
}

.contact-form__privacy {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--color-grey-text);
}

/* Sidebar calendar */
.sidebar-calendar {
  width: 100%;
}

.sidebar-calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.sidebar-calendar__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: capitalize;
}

.sidebar-calendar__year {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-grey-text);
}

.sidebar-calendar__weekdays,
.sidebar-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.sidebar-calendar__weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-grey-text);
  padding: 2px 0;
}

.sidebar-calendar__day {
  aspect-ratio: 1;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-dark);
  border-radius: 6px;
  background: var(--color-grey-bg);
}

.sidebar-calendar__day--empty {
  background: transparent;
}

.sidebar-calendar__day--today {
  background: var(--color-skin);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(140, 188, 67, 0.35);
}

/* Comments */
.comments-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid var(--color-border);
}

.comments-section__header {
  margin-bottom: 12px;
}

.comments-section__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
}

.comments-section__lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-grey-text);
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.comment-form__row {
  display: grid;
  gap: 4px;
}

.comment-form__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
}

.comment-form__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8dce3;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form__input:focus {
  outline: none;
  border-color: var(--color-skin);
  box-shadow: 0 0 0 3px rgba(140, 188, 67, 0.2);
}

.comment-form__textarea {
  min-height: 96px;
  resize: vertical;
}

.comment-form__submit {
  justify-self: start;
}

.comments-empty {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--color-grey-text);
  font-style: italic;
}

.comments-empty[hidden] {
  display: none;
}

.comments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.comments-list__item {
  padding: 10px 12px;
  background: var(--color-grey-bg);
  border-radius: 8px;
  border-left: 3px solid var(--color-skin);
}

.comments-list__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 4px;
}

.comments-list__author {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
}

.comments-list__date {
  font-size: 12px;
  color: var(--color-grey-text);
}

.comments-list__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-dark);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 380px) {
  .sidebar-calendar__day {
    min-height: 24px;
    font-size: 11px;
  }

  .sidebar-calendar__weekday {
    font-size: 10px;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.pagination a,
.pagination__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

.pagination a {
  background: var(--color-white);
  color: var(--color-dark);
  border: 1px solid var(--color-border);
}

.pagination a:hover {
  background: var(--color-skin);
  color: var(--color-white);
  border-color: var(--color-skin);
}

.pagination__current {
  background: var(--color-skin);
  color: var(--color-white);
}

/* Alert / empty category */
.alert {
  padding: 16px;
  border-radius: 8px;
  margin: 12px 0;
}

.bookmaker-empty {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 18px;
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.category-empty {
  padding: 18px 20px;
  background: var(--color-grey-bg);
  border-radius: 8px;
  border-left: 4px solid var(--color-skin);
}

.category-empty__lead {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
}

.category-empty__hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-grey-text);
}

.category-empty__hint a {
  color: var(--color-dark);
  font-weight: 600;
}

.category-empty__hint a:hover {
  color: var(--color-skin);
}

.alert--warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #664d03;
}

.alert--warning strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

/* Search page */
.search-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.search-empty {
  text-align: center;
  padding: 24px;
  color: var(--color-grey-text);
}

.search-count {
  text-align: center;
  margin: -10px auto 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-skin);
  min-height: 20px;
}

.search-loading {
  text-align: center;
  margin: 0 auto 10px;
  font-size: 14px;
  color: var(--color-grey-text);
}

.search-loading[hidden] {
  display: none;
}

.search-form-page {
  display: flex;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto 18px;
}

.search-form-page input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-family: inherit;
  font-size: 15px;
}

@media (max-width: 991px) {
  .site-main--inner {
    padding: 80px 0 32px;
  }

  .page-layout--sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .offer-grid,
  .search-results {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-card__thumb {
    aspect-ratio: 16 / 11;
  }

  .contact-page__layout {
    grid-template-columns: 1fr;
  }

  .contact-form__row--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .offer-grid,
  .search-results {
    grid-template-columns: 1fr;
  }

  .site-main--inner {
    padding: 68px 0 28px;
  }

  .page-layout--sidebar {
    gap: 16px;
  }

  .contact-page__panel {
    padding: 14px;
  }

  .footer-main {
    padding: 24px 0 16px;
  }

  .footer-main__grid {
    gap: 16px;
  }

  .btn--fill,
  .btn--inline {
    padding: 12px 22px;
    font-size: 14px;
  }

  .btn--lg {
    padding: 14px 24px;
    width: 90%;
    max-width: 340px;
  }

  .promo-button-wrap .btn {
    width: 90%;
    max-width: 340px;
  }
}

/* ---- Extended responsive breakpoints ---- */
@media (max-width: 576px) {
  .section {
    padding: 20px 0;
  }

  .section-header__title {
    font-size: clamp(28px, 7vw, 32px);
  }

  .testimonial-card {
    max-width: min(100%, 440px);
  }

  .step-card,
  .offer-card__body {
    padding: 12px;
  }

  .newsletter-box__title {
    font-size: 17px;
  }

  .newsletter-box__input,
  .newsletter-box__btn {
    width: 100%;
  }

  .header-search__popup {
    position: fixed;
    top: calc(var(--header-height) + 6px);
    left: 14px;
    right: 14px;
    min-width: 0;
    max-width: none;
  }

  .contact-form__submit {
    width: 100%;
  }

  .search-form-page {
    flex-direction: column;
  }

  .search-form-page input,
  .search-form-page .btn {
    width: 100%;
  }
}

@media (max-width: 414px) {
  :root {
    --mobile-nav-width: min(290px, 82vw);
  }

  .site-header .site-header__inner {
    padding: 0 10px;
  }

  .site-branding {
    font-size: 18px;
  }

  .site-branding img {
    width: 22px;
    height: 22px;
  }

  .menu-toggle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .header-search__btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
  }

  .header-search__btn svg {
    width: 20px;
    height: 20px;
  }

  .stat-box__number {
    font-size: 32px;
  }

  .testimonials-wrap {
    margin-top: 0;
    padding: 0;
  }

  .testimonial-card {
    max-width: min(100%, 420px);
    padding: 16px;
  }
}

@media (max-width: 390px) {
  .container,
  .section__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .offer-card__title {
    font-size: 15px;
  }

  .footer-desc {
    font-size: 13px;
    line-height: 1.55;
  }
}

@media (max-width: 375px) {
  .main-nav__link {
    padding: 12px 16px;
    font-size: 14px;
  }

  .main-nav__submenu a {
    padding-left: 28px;
    font-size: 13px;
  }

  .newsletter-box {
    padding: 14px 16px;
  }

  .testimonial-card {
    padding: 16px 18px;
  }
}

@media (max-width: 320px) {
  :root {
    --mobile-nav-width: min(270px, 84vw);
  }

  .site-branding {
    font-size: 18px;
    gap: 5px;
  }

  .hero-slide__title {
    font-size: 28px;
  }

  .btn {
    font-size: 15px;
  }

  .testimonial-card {
    max-width: 100%;
    padding: 16px;
  }

  .pagination a,
  .pagination__current {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .steps-grid {
    gap: 10px;
  }

  .offer-cards {
    gap: 10px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    padding: 0 18px;
  }

  .main-nav__link {
    padding: 6px 10px;
    font-size: 13px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 20px;
  }
}

@media (min-width: 1400px) {
  :root {
    --container-max: 1280px;
  }

  .container {
    padding: 0 24px;
  }

  .section {
    padding: 32px 0;
  }
}

/* Prevent horizontal overflow globally on small screens */
@media (max-width: 991px) {
  .site-main,
  .site-footer,
  .hero-slider,
  .page-content,
  .page-layout,
  .contact-page,
  .newsletter-box,
  .footer-main__grid {
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero-slider__track,
  .testimonials-track {
    max-width: 100%;
  }

  .promo-content,
  .article-single,
  .static-content {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  img,
  video,
  svg,
  iframe {
    max-width: 100%;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }

  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* ---- Desktop navigation (>=992px) ---- */
@media (min-width: 992px) {
  .menu-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mobile-nav__head {
    display: none !important;
  }

  .nav-overlay,
  .nav-overlay.is-visible {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .main-nav {
    position: static !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: transparent !important;
    flex: 1 !important;
    flex-direction: row !important;
    justify-content: center !important;
    padding: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
  }

  .main-nav.is-open {
    transform: none !important;
  }

  .main-nav__list {
    flex-direction: row !important;
    align-items: center !important;
    overflow: visible !important;
    width: auto !important;
    padding-bottom: 0 !important;
  }

  .main-nav__link {
    color: var(--color-white) !important;
    padding: 6px 12px !important;
    border-bottom: none !important;
    min-height: 0 !important;
    display: block !important;
    white-space: nowrap !important;
  }

  .main-nav__submenu {
    position: absolute !important;
    display: block !important;
    background: var(--color-white) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(8px) !important;
  }

  .main-nav__item--has-children.is-open .main-nav__submenu {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .main-nav__item--has-children:hover .main-nav__submenu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  html.menu-open,
  body.menu-open {
    overflow: auto !important;
    height: auto !important;
    touch-action: auto !important;
  }
}

/* Android / legacy mobile emergency fallbacks */
@media screen and (max-width: 768px) {
  .hero-slider {
    background: #1a1a1a;
    min-height: clamp(400px, 54vh, 500px);
    max-height: none;
  }

  .hero-slide__bg {
    background-color: var(--color-dark);
    background-size: cover;
    background-position: center center;
  }

  .testimonial-card__avatar.is-fallback,
  .testimonial-card__avatar[data-fallback="1"] {
    background: var(--color-skin);
    object-fit: none;
  }

  .site-main,
  main,
  .section,
  .footer-main,
  .footer-newsletter {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-animate].will-animate:not(.is-animated) {
    opacity: 1;
    transform: none;
    transition: none;
  }

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