:root {
  --brown: #3a2618;
  --text: #3d3128;
  --muted: #7d6c5e;
  --cream: #f8f1e5;
  --line: #e6d9c6;
  --honey: #e09a2e;
  --honey-dark: #c7821a;
  --wa: #25d366;
  --wa-dark: #1eb257;
  --footer: #2b1d13;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brown);
  line-height: 1.2;
}

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

/* Шапка */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 12px rgba(58, 38, 24, .08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.logo__name {
  font-family: 'Marck Script', cursive;
  font-size: 38px;
  color: var(--brown);
}

.logo__sub {
  margin-top: 2px;
  padding-left: 3px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo--light .logo__name {
  color: #fff;
}

.logo--light .logo__sub {
  color: #b9a48e;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--brown);
  transition: color .2s;
}

.nav a:hover {
  color: var(--honey);
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header__phone {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  color: var(--brown);
  white-space: nowrap;
}

.header__order {
  font-size: 13px;
  color: var(--honey-dark);
  text-decoration: none;
  border-bottom: 1px dashed var(--honey);
  line-height: 1.3;
}

.header__order:hover {
  border-bottom-style: solid;
}

/* Первый экран */

.hero {
  display: flex;
  align-items: center;
  min-height: 620px;
  height: calc(100vh - 78px);
  max-height: 760px;
  background:
    linear-gradient(90deg, rgba(28, 17, 9, .86) 0%, rgba(28, 17, 9, .68) 42%, rgba(28, 17, 9, .1) 74%),
    url('/img/hero.jpg') center right / cover no-repeat;
  color: #fff;
}

.hero__inner {
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero__title {
  max-width: 560px;
  font-size: 66px;
  font-weight: 800;
  color: #fff;
}

.hero__text {
  max-width: 470px;
  margin: 20px 0 36px;
  font-size: 20px;
  line-height: 1.5;
  color: #f3e7d6;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border: 2px solid transparent;
  border-radius: 40px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}

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

.btn--main {
  background: var(--honey);
  color: #fff;
  box-shadow: 0 8px 20px rgba(224, 154, 46, .35);
}

.btn--main:hover {
  background: var(--honey-dark);
}

.btn--whatsapp {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .3);
}

.btn--whatsapp:hover {
  background: var(--wa-dark);
}

.btn--outline {
  border-color: var(--honey);
  background: transparent;
  color: var(--honey-dark);
}

.btn--outline:hover {
  background: var(--honey);
  color: #fff;
}

.btn--small {
  padding: 11px 26px;
  font-size: 13px;
  background: var(--honey);
  color: #fff;
}

.btn--small:hover {
  background: var(--honey-dark);
}

.btn--wide {
  width: 100%;
}

.icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Секции */

.section {
  padding: 90px 0;
}

.section--cream {
  background: var(--cream);
}

.section__title {
  font-size: 38px;
  font-weight: 800;
  text-align: center;
}

.section__title::after {
  content: '';
  display: block;
  width: 54px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--honey);
}

.section__title--left {
  text-align: left;
}

.section__title--left::after {
  margin-left: 0;
}

.section__lead {
  max-width: 640px;
  margin: 22px auto 50px;
  font-size: 17px;
  text-align: center;
  color: var(--muted);
}

/* Каталог */

.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(58, 38, 24, .09);
  transition: transform .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(58, 38, 24, .14);
}

.card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 24px 26px;
}

.card__title {
  font-size: 19px;
  font-weight: 700;
}

.card__text {
  flex: 1;
  margin: 8px 0 20px;
  font-size: 15px;
  color: var(--muted);
}

/* О нас */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.fact {
  padding: 30px 24px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.fact__num {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--honey);
}

.fact__text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.about__text {
  max-width: 640px;
  margin: 46px auto 0;
  font-size: 17px;
  text-align: center;
}

/* На праздник */

.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.split__img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(58, 38, 24, .15);
}

.split__text p {
  margin: 0 0 14px;
  font-size: 17px;
}

.split__text .section__title {
  margin-bottom: 26px;
}

.split__text .btn {
  margin-top: 16px;
}

.opt {
  margin-top: 70px;
  padding: 40px 44px;
  border: 2px dashed var(--line);
  border-radius: 12px;
}

.opt__title {
  font-size: 24px;
  font-weight: 800;
}

.opt__list {
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}

.opt__list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
  font-size: 17px;
}

.opt__list li::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--honey);
}

/* Контакты */

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contacts__info .section__title {
  margin-bottom: 30px;
}

.contacts__row {
  display: flex;
  gap: 16px;
  margin: 0 0 14px;
  font-size: 17px;
}

.contacts__row a {
  font-weight: 600;
  color: var(--brown);
}

.contacts__label {
  flex: 0 0 96px;
  color: var(--muted);
}

.contacts__legal {
  margin: 30px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* Форма */

.form {
  padding: 36px 34px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(58, 38, 24, .1);
}

.form__title {
  margin-bottom: 22px;
  font-size: 24px;
  font-weight: 800;
}

.form__product {
  margin: -10px 0 18px;
  font-weight: 600;
  color: var(--honey-dark);
}

.form__product:empty {
  display: none;
}

.form__input {
  display: block;
  width: 100%;
  height: 54px;
  margin-bottom: 14px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfbf7;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}

.form__input:focus {
  border-color: var(--honey);
  background: #fff;
}

.form__textarea {
  height: 100px;
  padding-top: 14px;
  resize: vertical;
}

.form__note {
  margin: 14px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

/* Подвал */

.footer {
  padding: 50px 0 30px;
  background: var(--footer);
  color: #d9cbb8;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer__copy {
  margin: 12px 0 0;
  font-size: 14px;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer__contacts a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}

.footer__credits {
  margin-top: 34px;
  font-size: 12px;
  color: #8f7c69;
}

/* Плавающая кнопка WhatsApp */

.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  animation: wa-pulse 2.5s infinite;
}

.wa-float svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

@keyframes wa-pulse {
  0% { box-shadow: 0 6px 20px rgba(0, 0, 0, .25), 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 6px 20px rgba(0, 0, 0, .25), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 6px 20px rgba(0, 0, 0, .25), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Окно заявки */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 6, .6);
}

.modal__window {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 34px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

/* Адаптив */

@media (max-width: 980px) {
  .nav {
    display: none;
  }

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

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

  .split,
  .contacts {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .header__inner {
    height: 68px;
  }

  .logo__name {
    font-size: 32px;
  }

  .header__phone {
    font-size: 16px;
  }

  .header__order {
    display: none;
  }

  .hero {
    align-items: flex-end;
    height: auto;
    min-height: 560px;
    background:
      linear-gradient(0deg, rgba(28, 17, 9, .9) 0%, rgba(28, 17, 9, .55) 55%, rgba(28, 17, 9, .1) 100%),
      url('/img/hero.jpg') 75% center / cover no-repeat;
  }

  .hero__title {
    font-size: 42px;
  }

  .hero__text {
    font-size: 17px;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 30px;
  }

  .section__lead {
    margin-bottom: 36px;
  }

  .catalog {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .facts {
    gap: 14px;
  }

  .fact {
    padding: 22px 12px;
  }

  .fact__num {
    font-size: 36px;
  }

  .opt {
    margin-top: 50px;
    padding: 28px 22px;
  }

  .contacts__row {
    flex-direction: column;
    gap: 0;
  }

  .contacts__label {
    flex-basis: auto;
    font-size: 14px;
  }

  .form {
    padding: 28px 22px;
  }

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

  .footer__contacts {
    align-items: flex-start;
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }
}
