:root {
  --black: #0a0500;
  --text: #504e4a;
  --light: #edeff2;
  --white: #ffffff;
  --offwhite: #f9fafb;
  --footer: #1b1b1b;
  --page-width: 1290px;
  --font: "Open Sans", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 8px 10px;
  background: var(--black);
  color: var(--white);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.logo-link {
  display: block;
  width: 185px;
}

.section-wrap {
  width: min(var(--page-width), 90vw);
  margin: 0 auto 20px;
}

.hero {
  min-height: 1211px;
  padding: 210px 24px 310px;
  background-color: var(--light);
  background-image: url("assets/sauna-girl.jpg");
  background-size: cover;
  background-position: center;
}

.hero-copy {
  width: 518px;
  max-width: 100%;
}

.hero-title,
.hero-panel,
.contact-card {
  width: 100%;
  margin: 0 0 10px;
  padding: 24px;
}

.hero-title {
  background: var(--white);
  color: var(--black);
  font-size: 55px;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0;
}

.hero-panel {
  background: rgba(10, 5, 0, 0.7);
  color: var(--light);
  font-size: 25px;
  line-height: 1.65;
}

.hero-panel.intro {
  text-align: center;
}

.hero-panel.services {
  min-height: 172px;
}

.contact-card {
  min-height: 228px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--light);
  font-style: normal;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.contact-card strong {
  display: block;
  margin-bottom: 30px;
}

.offer {
  min-height: 589px;
  padding: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 35px;
  position: relative;
  overflow: hidden;
  background-color: #1c1d1e;
  background-image: linear-gradient(rgba(28, 29, 30, 0.6), rgba(28, 29, 30, 0.6)), url("assets/offer-bg.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.offer h2 {
  margin: 0 0 27px;
  color: var(--white);
  font-size: 58px;
  line-height: 1.5;
}

.offer p {
  margin: 0;
  font-size: 30px;
  line-height: 1.65;
}

.offer-product {
  width: 389px;
  justify-self: center;
}

.section-heading {
  margin-bottom: 20px;
  padding: 24px;
  background: var(--light);
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--black);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.5;
}

.heater-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 10px;
}

.heater-card {
  min-height: 600px;
  padding: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background-image: var(--product-image);
  background-color: var(--white);
  background-size: var(--product-size, contain);
  background-position: center;
  background-repeat: no-repeat;
}

.heater-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 180ms ease;
}

.heater-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--black);
  font-size: 20px;
  line-height: 1.25;
  text-align: center;
  transform: translateY(0);
  transition: transform 180ms ease;
}

.heater-card:hover::before {
  background: rgba(0, 0, 0, 0.4);
}

.heater-card:hover h3 {
  transform: translateY(-20px);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.price-grid p {
  margin: 0;
}

.price-column-nm {
  transform: translateY(-1.65em);
}

.accessory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
  text-align: center;
}

.accessory-grid article {
  min-width: 0;
}

.accessory-grid img {
  width: 100%;
  height: 430px;
  object-fit: contain;
  object-position: center;
  background: var(--white);
}

.accessory-grid img.bucket-image {
  width: min(65%, 320px);
  margin: 0 auto;
}

.accessory-grid p {
  margin: 20px 0 38px;
  font-size: 17px;
  line-height: 1.65;
}

.tax-note {
  margin: 0;
  font-size: 17px;
}

.steam-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 112px;
  margin-bottom: 20px;
}

.steam-card {
  min-width: 0;
}

.steam-image-link {
  display: block;
  margin-bottom: 18px;
}

.steam-image-link img {
  width: 100%;
  height: 430px;
  object-fit: contain;
  object-position: center;
  background: var(--white);
}

.steam-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.3;
}

.steam-list li {
  display: grid;
  grid-template-columns: 96px 360px max-content;
  justify-content: start;
  column-gap: 0;
  row-gap: 2px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 1px solid #edeff2;
}

.steam-list a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.steam-list li > strong {
  color: var(--black);
  text-align: right;
  white-space: nowrap;
}

.steam-list li span {
  margin-left: 16px;
  margin-right: 4px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.project-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--light);
}

.project-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
  background: var(--light);
}

.project-grid img[src$="sauna-punta-minitas-casa-de-campo.png"] {
  object-fit: contain;
}

.project-grid figcaption {
  position: absolute;
  right: 10px;
  bottom: 8px;
  max-width: calc(100% - 20px);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.85);
}

.site-footer {
  min-height: 70px;
  padding: 25px 0;
  background: var(--footer);
}

.site-footer p {
  width: min(var(--page-width), 90vw);
  margin: 0 auto;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.3;
}

@media (max-width: 999px) {
  .site-header {
    height: 70px;
  }

  .logo-link {
    width: 148px;
  }

  .section-wrap {
    width: min(var(--page-width), calc(100% - 48px));
  }

  .hero {
    min-height: 960px;
    padding-top: 160px;
    padding-bottom: 210px;
  }

  .offer {
    min-height: 470px;
    padding: 70px;
  }

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

  .heater-card {
    min-height: 600px;
  }

  .price-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

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

@media (max-width: 689px) {
  body {
    font-size: 16px;
  }

  .section-wrap {
    width: min(100% - 32px, var(--page-width));
  }

  .hero {
    min-height: 780px;
    padding: 90px 16px 110px;
    background-position: 58% center;
  }

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

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

  .hero-panel.services {
    min-height: 0;
  }

  .contact-card {
    min-height: 190px;
    font-size: 17px;
  }

  .offer {
    min-height: 520px;
    grid-template-columns: 1fr;
    padding: 10%;
    text-align: center;
  }

  .offer h2 {
    font-size: 36px;
  }

  .offer p {
    font-size: 24px;
  }

  .offer-product {
    width: min(330px, 100%);
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .heater-grid,
  .accessory-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .heater-card {
    min-height: 520px;
  }

  .accessory-grid img {
    height: 430px;
  }

  .steam-image-link img {
    height: 360px;
  }

  .steam-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .steam-list li > strong {
    text-align: left;
  }

  .steam-list li span {
    margin-left: 0;
    margin-right: 0;
  }
}
