:root {
  --green: #64b51d;
  --green-dark: #43870d;
  --black: #090c0e;
  --ink: #17191b;
  --muted: #5c6369;
  --line: #e1e5e8;
  --soft: #f5f6f7;
  --paper: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background: var(--paper);
}

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

a {
  color: inherit;
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 0;
  background: rgba(5, 7, 8, 0.98);
}

.brand img {
  width: 190px;
  height: auto;
}

.partner-logo {
  width: 132px;
  height: auto;
  align-self: flex-start;
}

.main-nav {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a {
  padding: 0 0 13px;
  color: #fff;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--green);
  border-color: var(--green);
}

.hero {
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 72px 18px 38px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.86)),
    url("../img/hero-sklep.jpg") center / cover;
}

.hero__content {
  max-width: 720px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 42px;
  line-height: 1.06;
}

.hero p {
  margin: 0 0 24px;
  padding-top: 16px;
  max-width: 610px;
  font-size: 18px;
  border-top: 4px solid var(--green);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 4px;
}

.button--primary {
  color: #fff;
  background: linear-gradient(180deg, #78c82b, var(--green-dark));
  box-shadow: 0 8px 18px rgba(77, 142, 14, 0.32);
}

.button--ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.tiles,
.advantages {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.advantages {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tiles article,
.advantages article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: 48px auto;
  column-gap: 14px;
  row-gap: 8px;
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
}

.tiles article:last-child,
.advantages article:last-child {
  border-bottom: 0;
}

.tile-icon {
  width: 46px;
  height: 46px;
  grid-row: 1 / 3;
  object-fit: contain;
}

.tiles h2,
.advantages h2 {
  grid-column: 2;
  align-self: center;
  margin: 2px 0 8px;
  font-size: 15px;
  line-height: 1.25;
  text-transform: uppercase;
}

.tiles p,
.advantages p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.info-contact,
.brands {
  padding: 36px 18px;
}

.section-label {
  display: inline-block;
  margin: 0 0 14px;
  padding-bottom: 7px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  border-bottom: 3px solid var(--green);
}

.info-contact {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #fff;
}

.about-panel,
.contact-panel {
  min-width: 0;
}

.about-panel p:not(.section-label),
.location-details p {
  margin: 0;
  color: var(--muted);
}

.about-panel p + p {
  margin-top: 16px;
}

.about-panel p:last-child {
  font-weight: 700;
  color: var(--ink);
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.location-row {
  display: grid;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.location-row:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.location-details h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.location-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
}

.contact-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

.contact-item + .contact-item {
  margin-top: 10px;
}

.contact-item img {
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.location-details a {
  color: var(--ink);
  text-decoration: none;
}

.contact-item--action a {
  font-weight: 800;
  border-bottom: 2px solid transparent;
}

.contact-item--action a:hover,
.contact-item--action a:focus-visible {
  color: var(--green-dark);
  border-color: var(--green);
}

.hours-list {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 12px;
  row-gap: 2px;
}

.hours-list strong {
  color: var(--ink);
  font-weight: 800;
}

.location-row iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 6px;
}

.brands {
  background: url("../img/bg.jpg") center / cover no-repeat;
}

.brands .section-label {
  color: var(--ink);
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.brand-strip img {
  width: 100%;
  height: 58px;
  object-fit: contain;
  padding: 8px;
  background: #fff;
  border: 0;
  border-radius: 6px;
}

footer {
  padding: 24px 18px;
  color: #d7dde0;
  text-align: center;
  background:
    linear-gradient(rgba(9, 12, 14, 0.96), rgba(9, 12, 14, 0.96)),
    url("../img/bg.jpg") center / 180px;
}

footer p {
  margin: 0;
  font-size: 13px;
}

@media (min-width: 700px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw;
  }

  .brand img {
    width: 221px;
  }

  .partner-logo {
    width: 144px;
    align-self: center;
  }

  .main-nav {
    gap: clamp(16px, 2.4vw, 36px);
  }

  .main-nav a {
    padding: 26px 0 20px;
  }

  .hero {
    min-height: 440px;
    align-items: center;
    padding: 70px 5vw 78px;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.38) 52%, rgba(0, 0, 0, 0.08)),
      url("../img/hero-sklep.jpg") center / cover;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero p {
    font-size: 20px;
  }

  .hero__actions {
    flex-direction: row;
  }

  .tiles,
  .advantages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 28px 5vw;
  }

  .tiles article,
  .advantages article {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 14px 18px;
  }

  .tiles article:nth-child(2n),
  .advantages article:nth-child(2n) {
    border-right: 0;
  }

  .info-contact,
  .brands {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .info-contact {
    display: grid;
    grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.6fr);
    gap: 42px;
    align-items: start;
  }

  .about-panel {
    padding-right: 32px;
    border-right: 1px solid var(--line);
  }

  .location-row {
    grid-template-columns: minmax(180px, 0.78fr) minmax(240px, 1fr) minmax(150px, 0.65fr);
    align-items: stretch;
  }

  .location-photo {
    height: 100%;
    aspect-ratio: auto;
  }

  .location-row iframe {
    min-height: 220px;
  }

  .brand-strip img {
    height: 72px;
    padding: 12px;
  }
}

@media (min-width: 1060px) {
  .site-header,
  .hero,
  .tiles,
  .advantages,
  .info-contact,
  .brands {
    padding-left: 7vw;
    padding-right: 7vw;
  }

  .tiles,
  .advantages {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tiles article:nth-child(2n),
  .advantages article:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .tiles article:last-child,
  .advantages article:last-child {
    border-right: 0;
  }

  .brand-strip img {
    height: 82px;
  }
}
