/*
Theme Name: Odetto WP
Author: Codex
Description: WordPress staging theme for the Odetto catalog.
Version: 0.1.0
*/

:root {
  --ink: #1f2023;
  --muted: #535353;
  --soft: #f8f4ff;
  --rose: #fff4f4;
  --accent: #dc5858;
  --line: #e7e1e1;
}

* {
  box-sizing: border-box;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: Raleway, Arial, sans-serif;
  margin: 0;
}

body.has-modal {
  overflow: hidden;
}

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

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

.container {
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 24px;
  width: 100%;
}

.site-header {
  border-bottom: 1px solid #ece7e7;
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__row {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 96px;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav:last-child {
  justify-content: flex-end;
}

.site-nav a {
  font-size: 15px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.logo img {
  width: 138px;
}

.hero {
  background: var(--rose);
  overflow: hidden;
  padding: 62px 0 74px;
}

.hero__grid {
  align-items: center;
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
}

.hero__eyebrow {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 66px;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

.hero__text {
  color: var(--muted);
  font-size: 21px;
  font-weight: 300;
  line-height: 1.5;
  margin: 28px 0 0;
  max-width: 560px;
}

.button {
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 32px;
  color: var(--accent);
  display: inline-flex;
  font-size: 17px;
  font-weight: 500;
  justify-content: center;
  line-height: 1;
  min-height: 58px;
  padding: 0 38px;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease;
}

.button:hover {
  background: var(--accent);
  color: #fff;
}

.hero .button {
  margin-top: 42px;
}

.hero__media {
  aspect-ratio: 4 / 3;
  background: #fff;
  overflow: hidden;
}

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

.notice {
  background: #fff8f8;
  border-bottom: 1px solid #f0dcdc;
  color: var(--accent);
  padding: 14px 0;
  text-align: center;
}

.catalog {
  background: #fff url("https://odetto.in.ua/_nuxt/img/bg.8976dcb.svg") center top;
  padding: 64px 0 72px;
}

.section-title {
  text-align: center;
}

.section-title h2 {
  background: var(--soft);
  border-radius: 100px;
  display: inline-block;
  font-family: Raleway, Arial, sans-serif;
  font-size: 48px;
  font-weight: 300;
  line-height: 1.12;
  margin: 0;
  min-width: 300px;
  padding: 16px 42px 20px;
}

.section-title--plain h2 {
  background: #fff;
  text-transform: uppercase;
}

.section-title--light h2 {
  background: transparent;
  color: #fff;
  text-transform: uppercase;
}

.advantages {
  background: #fff;
  padding: 70px 0 62px;
}

.advantages__inner {
  position: relative;
}

.advantages__inner::before {
  border: 1px dashed #e6c7ca;
  content: "";
  inset: 96px 24px 34px;
  position: absolute;
}

.advantages__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 44px;
  position: relative;
  z-index: 1;
}

.advantages__item {
  background: url("https://odetto.in.ua/_nuxt/img/ico-check.8c11e0b.svg") no-repeat right 16px top 0;
  min-height: 150px;
  padding: 22px 18px;
}

.advantages__item h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  max-width: 170px;
  text-transform: uppercase;
}

.advantages__item p {
  background: var(--rose);
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.45;
  margin: 18px 0 0;
  padding: 14px 16px;
}

.work {
  background: linear-gradient(rgba(31, 32, 35, 0.34), rgba(31, 32, 35, 0.34)), url("https://odetto.in.ua/_nuxt/img/work.3a5b39e.jpg") center / cover;
  color: #fff;
  padding: 72px 0 74px;
}

.work__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 42px;
}

.work__item {
  position: relative;
  text-align: center;
}

.work__item:not(:last-child)::after {
  border-top: 1px dashed rgba(255, 255, 255, 0.82);
  content: "";
  left: calc(50% + 56px);
  position: absolute;
  right: calc(-50% + 56px);
  top: 52px;
}

.work__item span {
  align-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  display: inline-flex;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 58px;
  height: 104px;
  justify-content: center;
  line-height: 1;
  width: 104px;
}

.work__item p {
  font-size: 21px;
  line-height: 1.3;
  margin: 24px auto 0;
  max-width: 300px;
}

.quote {
  background: #fff url("https://odetto.in.ua/_nuxt/img/bg.8976dcb.svg") center center;
  padding: 74px 0 58px;
}

.quote__content {
  margin-left: auto;
  max-width: 980px;
  position: relative;
}

.quote__content::before {
  background: url("https://odetto.in.ua/_nuxt/img/ico-quote.ddd09d7.svg") center / contain no-repeat;
  content: "";
  height: 84px;
  left: -108px;
  position: absolute;
  top: -18px;
  width: 84px;
}

.quote__content p {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.product {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 1.08fr);
  margin-top: 58px;
}

.product + .product {
  border-top: 1px solid #f0ebeb;
  padding-top: 58px;
}

.product__gallery {
  display: grid;
  gap: 22px;
  grid-template-columns: 120px minmax(0, 1fr);
}

.product__thumbs {
  display: grid;
  gap: 18px;
}

.product__thumbs img,
.product__main-img {
  background: #f8f8f8;
  object-fit: cover;
}

.product__thumbs img {
  aspect-ratio: 3 / 4;
  cursor: pointer;
  width: 100%;
}

.product__thumbs img.is-active {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.product__main-img {
  aspect-ratio: 3 / 4;
  height: auto;
  width: 100%;
}

.product__info {
  padding: 36px 0;
}

.product__meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 17px;
  gap: 24px;
  margin-bottom: 18px;
}

.product h3 {
  font-family: Raleway, Arial, sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 28px;
}

.product__buy-row {
  align-items: center;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 30px;
}

.price__old {
  color: rgba(31, 32, 35, 0.65);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  line-height: 1;
  text-decoration: line-through;
}

.price__new {
  color: var(--accent);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 50px;
  line-height: 1;
  margin-top: 8px;
}

.price__sale {
  color: var(--muted);
  font-size: 19px;
  font-weight: 300;
  margin-top: 12px;
}

.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 22px;
}

.size-list button {
  background: #fff;
  border: 1px solid rgba(31, 32, 35, 0.15);
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  min-width: 68px;
  padding: 11px 18px;
}

.size-list button.is-active,
.size-list button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.product__details {
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.45;
  margin-top: 24px;
}

.product__details strong {
  color: var(--ink);
  font-weight: 500;
}

.modal {
  align-items: center;
  background: rgba(31, 32, 35, 0.42);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 60;
}

.modal.is-open {
  display: flex;
}

.modal__panel {
  background: #fff;
  max-width: 520px;
  padding: 42px;
  position: relative;
  width: 100%;
}

.modal__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 32px;
  position: absolute;
  right: 20px;
  top: 12px;
}

.modal h2 {
  font-size: 34px;
  font-weight: 400;
  margin: 0 0 22px;
  text-align: center;
}

.form-field {
  display: block;
  margin-bottom: 20px;
}

.form-field span {
  display: block;
  font-size: 17px;
  margin-bottom: 8px;
}

.form-field input {
  border: 0;
  border-bottom: 1px solid var(--accent);
  font: inherit;
  padding: 10px 0;
  width: 100%;
}

.form-submit {
  width: 100%;
}

.site-footer {
  border-top: 1px solid #ece7e7;
  color: var(--muted);
  padding: 32px 0;
}

.text-block {
  background: linear-gradient(rgba(31, 32, 35, 0.25), rgba(31, 32, 35, 0.25)), url("https://odetto.in.ua/_nuxt/img/text.d6812a8.jpg") center top / cover;
  color: #fff;
  padding: 92px 0;
  text-align: center;
}

.text-block p {
  font-size: 38px;
  font-weight: 200;
  line-height: 1.2;
  margin: 0 auto;
  max-width: 980px;
}

.reviews {
  background: #fff url("https://odetto.in.ua/_nuxt/img/bg.8976dcb.svg") center center;
  padding: 70px 0;
}

.reviews__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 48px auto 0;
  max-width: 1150px;
}

.reviews__item {
  background: #9983bf;
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.45;
  min-height: 190px;
  padding: 28px;
  position: relative;
}

.reviews__item p {
  margin: 0 0 10px;
}

.reviews__item strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-top: 16px;
}

.reviews__smile {
  font-size: 44px;
  position: absolute;
  right: 28px;
  top: 22px;
}

.questions {
  background: #fff url("https://odetto.in.ua/_nuxt/img/footer.1e6d3c0.jpg") center bottom / cover no-repeat;
  padding: 72px 0 96px;
}

.questions__grid {
  display: grid;
  gap: 34px 70px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 52px auto 0;
  max-width: 1150px;
}

.questions__item {
  padding-left: 68px;
  position: relative;
}

.questions__item::before {
  background: url("https://odetto.in.ua/_nuxt/img/ico-help.db1b58a.svg") center / contain no-repeat;
  content: "";
  height: 42px;
  left: 0;
  position: absolute;
  top: 4px;
  width: 42px;
}

.questions__item h3 {
  color: var(--ink);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.28;
  margin: 0 0 12px;
}

.questions__item p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.42;
  margin: 0;
}

.questions__form {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 72px auto 0;
  max-width: 980px;
}

.questions__form h3 {
  font-size: 38px;
  font-weight: 300;
  line-height: 1.18;
  margin: 0 0 18px;
}

.questions__form p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 900px) {
  .site-header__row,
  .hero__grid,
  .product {
    grid-template-columns: 1fr;
  }

  .advantages__grid,
  .work__grid,
  .reviews__grid,
  .questions__grid,
  .questions__form {
    grid-template-columns: 1fr;
  }

  .advantages__inner::before,
  .work__item::after,
  .quote__content::before {
    display: none;
  }

  .site-nav {
    justify-content: center;
  }

  .site-nav:last-child {
    display: none;
  }

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

  .product__gallery {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .text-block p {
    font-size: 28px;
  }

  .questions__form {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .site-header__row {
    min-height: 82px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding: 42px 0 54px;
  }

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

  .section-title h2 {
    font-size: 36px;
    min-width: 0;
    width: 100%;
  }

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

  .product__thumbs {
    display: flex;
    order: 2;
    overflow-x: auto;
  }

  .product__thumbs img {
    min-width: 82px;
    width: 82px;
  }

  .product h3 {
    font-size: 32px;
  }

  .product__buy-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .advantages,
  .work,
  .quote,
  .reviews,
  .questions {
    padding: 48px 0;
  }

  .work__item span {
    font-size: 42px;
    height: 82px;
    width: 82px;
  }

  .work__item p,
  .questions__item p,
  .reviews__item {
    font-size: 16px;
  }

  .questions__item {
    padding-left: 48px;
  }

  .questions__item::before {
    height: 32px;
    width: 32px;
  }

  .questions__form h3 {
    font-size: 30px;
  }
}
