/* Autento - design system
   Paleta i typografia odwzorowują zatwierdzony wzorzec wizualny marki:
   głęboki granat + koralowy akcent, naprzemienne tła sekcji (kremowe / szałwiowe / granatowe). */

:root {
  --navy-950: #0f1829;
  --navy-900: #16233f;
  --navy-800: #1f2f4f;
  --navy-700: #34435f;
  --coral-500: #e8734a;
  --coral-600: #d3603a;
  --cream-100: #f5f3ee;
  --sage-100: #dfe6dd;
  --slate-500: #5b6472;
  --slate-300: #98a1ad;
  --white: #ffffff;
  --line: rgba(22, 35, 63, 0.1);

  --font-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--cream-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* -- Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream-100);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-900);
  text-decoration: none;
}

.logo .dot {
  color: var(--coral-500);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 40px -20px rgba(15, 24, 41, 0.25);
  padding: 0.75rem;
  min-width: 300px;
  display: none;
  flex-direction: column;
}

.nav-dropdown.is-open .nav-dropdown__panel {
  display: flex;
}

.nav-dropdown__panel a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
}

.nav-dropdown__panel a:hover {
  background: var(--cream-100);
}

.nav-dropdown__panel .item-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-500);
}

.nav-dropdown__panel .item-title {
  font-weight: 600;
  color: var(--navy-900);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

.btn-coral {
  background: var(--coral-500);
  color: var(--white);
}

.btn-coral:hover {
  background: var(--coral-600);
}

.btn-navy {
  background: var(--navy-900);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-800);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  padding-inline: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy-900);
}

.link-arrow .arrow-line {
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}

.link-arrow:hover .arrow-line {
  width: 42px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* -- Hero ---------------------------------------------------------------- */

.hero {
  background: var(--navy-900);
  color: var(--white);
  padding-block: clamp(3.5rem, 10vw, 7rem);
}

.hero .eyebrow {
  color: var(--coral-500);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-top: 1rem;
  max-width: 18ch;
}

.hero p {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 46ch;
}

.hero .btn {
  margin-top: 2.25rem;
}

/* -- Offer sections -------------------------------------------------------- */

.offer-section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  background: var(--cream-100);
}

.offer-section--sage {
  background: var(--sage-100);
}

.offer-section--navy {
  background: var(--navy-900);
  color: var(--white);
}

.offer-section--navy .eyebrow {
  color: var(--coral-500);
}

.offer-section--navy .link-arrow {
  color: var(--white);
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.offer-section--reverse .offer-grid {
  direction: rtl;
}

.offer-section--reverse .offer-grid > * {
  direction: ltr;
}

.offer-section .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-600);
}

.offer-section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
  margin-top: 0.85rem;
  max-width: 14ch;
}

.offer-section .teaser {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  max-width: 42ch;
  color: var(--slate-500);
}

.offer-section--navy .teaser {
  color: rgba(255, 255, 255, 0.75);
}

.offer-section .link-arrow {
  margin-top: 1.75rem;
}

.offer-media {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sage-100);
}

.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Centered variant used by "odzież" and "gadżety" sections - lead-in text
   centered above a photo grid rather than the two-column layout. */
.offer-section--centered .offer-grid {
  display: block;
}

.offer-section--centered .offer-head {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}

.offer-section--centered h2 {
  max-width: none;
}

.offer-section--centered .teaser {
  max-width: none;
  margin-inline: auto;
}

.offer-section--centered .link-arrow {
  justify-content: center;
}

.photo-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 1rem;
}

.photo-grid .photo {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sage-100);
}

.photo-grid .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -- Closing CTA ------------------------------------------------------------ */

.closing-cta {
  background: var(--navy-900);
  color: var(--white);
  padding-block: clamp(3rem, 8vw, 5rem);
}

.closing-cta__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.closing-cta .eyebrow {
  color: var(--coral-500);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.closing-cta h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  margin-top: 0.75rem;
  max-width: 16ch;
}

/* -- Footer ------------------------------------------------------------ */

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.6);
  padding-block: 2.5rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
}

.site-footer .logo {
  color: var(--white);
}

/* -- Generic page (detail pages, contact, about) ------------------------ */

.page-hero {
  background: var(--navy-900);
  color: var(--white);
  padding-block: clamp(3rem, 8vw, 5rem);
}

.page-hero .eyebrow {
  color: var(--coral-500);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-top: 0.85rem;
  max-width: 22ch;
}

.page-hero__image {
  margin-top: 2.5rem;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--navy-800);
}

.page-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-body {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.page-body .intro {
  font-size: 1.15rem;
  max-width: 62ch;
  color: var(--slate-500);
}

.feature-list {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2.5rem;
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 1rem;
}

.feature-list .bullet {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral-500);
  margin-top: 0.55rem;
}

.gallery {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery .photo {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sage-100);
}

.gallery .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-cta {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

/* -- Forms --------------------------------------------------------------- */

.form-field {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy-900);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--coral-500);
  outline-offset: 1px;
}

.form-errors {
  color: var(--coral-600);
  font-size: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alert {
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.alert-success {
  background: #e4f2e9;
  color: #1f6c45;
}

/* -- Catalog (gadżety reklamowe) -------------------------------------- */

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.catalog-toolbar select,
.catalog-toolbar input[type="search"] {
  font-family: var(--font-body);
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.product-card__image {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
}

.product-card__sku {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-300);
}

.product-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.product-card__desc {
  font-size: 0.85rem;
  color: var(--slate-500);
}

.swatches {
  display: flex;
  gap: 0.3rem;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.product-detail__gallery-main {
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}

.product-detail__gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
}

.product-detail__thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.product-detail__thumbs img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.4rem;
}

.product-detail__sku {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-600);
}

.product-detail h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 0.6rem;
}

.product-detail__description {
  margin-top: 1.25rem;
  color: var(--slate-500);
  max-width: 52ch;
}

.variant-picker {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.variant-picker a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
}

.variant-picker a.is-active {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}

/* -- Formularz zapytania o produkt (karta w kolumnie bocznej) ------------- */

.inquiry-card {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: 16px;
  background: var(--sage-100);
}

.inquiry-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

/* -- Pagination ----------------------------------------------------------- */

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-900);
}

.pagination a:hover {
  background: var(--sage-100);
}

.pagination .is-active {
  background: var(--navy-900);
  color: var(--white);
}

/* -- Responsive ------------------------------------------------------------ */

/* -- Aktualności (blog) ------------------------------------------------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 1.75rem;
}

.post-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.post-card__image {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sage-100);
  margin-bottom: 0.4rem;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card__image img {
  transform: scale(1.03);
}

.post-card time {
  font-size: 0.85rem;
  color: var(--slate-500);
}

.post-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.post-card p {
  color: var(--slate-500);
}

.post-body > p,
.post-body > h2 {
  max-width: 68ch;
}

.post-body > p + p {
  margin-top: 1.1rem;
}

.post-body > h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
}

.post-body > .intro {
  margin-bottom: 2rem;
}

/* -- Udostępnianie i social media ------------------------------------------ */

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.detail-cta .share {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.share__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-500);
  margin-right: 0.25rem;
}

.share__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-900);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.share__btn:hover {
  border-color: var(--navy-900);
}

.share__btn.is-done {
  border-color: var(--coral-500);
  color: var(--coral-600);
}

.site-footer__social {
  display: flex;
  gap: 1.25rem;
}

.site-footer__social a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__social a:hover {
  color: var(--white);
}

@media (max-width: 860px) {
  .post-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .offer-section--reverse .offer-grid {
    direction: ltr;
  }

  .offer-media {
    order: -1;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

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

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .site-nav__links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .post-grid {
    grid-template-columns: 1fr;
  }

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