/*
 * Основной файл стилей.
 * Только базовые и десктопные правила.
 * Адаптивные правила находятся в responsive.css.
 */


/* =========================================================
   ШРИФТЫ
   ========================================================= */

@font-face {
  font-family: "Rosemaria";
  src: url("../fonts/rosemaria.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Garamond Local";
  src: url("../fonts/GARA.TTF") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Garamond Local";
  src: url("../fonts/GARABD.TTF") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Garamond Local";
  src: url("../fonts/GARAIT.TTF") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Monomakh Unicode";
  src: url("../fonts/MonomakhUnicode.woff2") format("woff2"), url("../fonts/MonomakhUnicode.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Spring Blush";
  src: url("../fonts/ofont.ru_Spring_blush.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}


/* =========================================================
   ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ
   ========================================================= */

:root {
  --accent: #fa9879;
  --accent-dark: #df6d4a;
  --light: #f6ede3;
  --frame-color: rgba(255, 195, 177, 0.34);
  --serif: "Garamond Local", Garamond, Georgia, "Times New Roman", serif;
  --display: "Rosemaria", "Arial Narrow", Impact, sans-serif;
  --script: "Spring Blush", "Segoe Script", cursive;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--light);
  font-family: var(--serif);
}

/* Скрываем полосу прокрутки, сохраняя прокрутку страницы */

html,
body {
  -ms-overflow-style: none; /* Internet Explorer, старый Edge */
  scrollbar-width: none;    /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none; /* Chrome, Safari, Opera, новый Edge */
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-180%);
  background: #fff;
  color: #111;
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#top,
#products-section,
#noalc-products-section,
#about,
#ingredients,
#process,
#where,
#cooperation,
#contacts {
  scroll-margin-top: 124px;
}


/* =========================================================
   ПЕРВЫЙ ЭКРАН, ШАПКА, МЕНЮ И МОДАЛЬНОЕ ОКНО
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 672px;
  height: 100svh;
  overflow: hidden;
  background: #090705;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;

  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  pointer-events: none;
}

.hero-frame {
  position: absolute;
  top: 22px;
  right: 28.6px;
  bottom: 20.5px;
  left: 28.6px;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero__content {
  position: absolute;
  top: 32%;
  left: 50%;
  z-index: 3;
  width: min(980px, calc(100% - 44px));
  transform: translateX(-50%);
  text-align: center;
}

.hero__social {
  position: absolute;
  right: 8.7%;
  bottom: 58px;
  z-index: 4;
  display: flex;
  gap: 34px;
}

.hero-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: fill;
  object-position: center;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
}

.site-header__inner {
  width: clamp(500px, 86vw, 1600px);
  height: 106px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr);
  align-items: start;
  column-gap: 28px;
}

.nav {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav--left {
  justify-self: start;
  margin-top: 38px;
  gap: 27px;
}

.nav--right {
  gap: 26px;
}

.nav a {
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s ease;
  font-size: clamp(10px, 1.1vw, 24px);
}

.nav a:hover,
.nav a:focus-visible,
.header-contact a:hover,
.header-contact a:focus-visible {
  color: #ffc1ab;
}

.nav a:hover,
.nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.brand {
  position: relative;
  z-index: 3;
  width: 94px;
  height: 94px;
  margin-top: 7px;
  display: grid;
  place-items: center;
  justify-self: center;
}

.brand img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.site-header__right {
  justify-self: end;
  margin-top: 37px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 20px;
}

.header-contact {
  min-width: 142px;
  display: grid;
  align-content: start;
  gap: 2px;
  color: var(--accent);
  text-align: left;
}

.header-contact__phone {
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

.header-contact__mail {
  font-size: 18px;
  line-height: 1.1;
  white-space: nowrap;
  margin-top: 5px;
}

.menu-toggle {
  display: none;
}

.hero__eyebrow {
  margin: 0 0 32px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #f1ece0;
  font-family: var(--display);
  font-size: clamp(76px, 8.9vw, 183px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
}

.hero h1 span {
  display: inline;
}

.hero__meta {
  margin: 15px 0 32px;
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
}

.hero__meta a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.button {
  min-width: 130px;
  min-height: 51px;
  padding: 19px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 20px;
}

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

.hero__actions .button--primary {
  transition: none;
}

.hero__actions .button--outline:hover,
.hero__actions .button--outline:focus-visible {
  background-color: rgba(223, 109, 74, 0.18);
  border-color: #ff9a7b;
  color: #ffffff;
  box-shadow: none;
}

.button--primary:hover {
  background: #cf6545;
}


.button--outline {
  border-color: rgba(239, 124, 85, 0.7);
  background: transparent;
  color: #f2ede1;
}

.button--outline:hover {
  border-color: #f2ede1;
}

.diamond-link {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--frame-color);
  background: rgba(15, 11, 9, 0.18);
  transform: rotate(45deg);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.diamond-link:hover,
.diamond-link:focus-visible {
  border-color: var(--accent);
  background: rgba(239, 124, 85, 0.14);
}

.social-icon {
  display: block;
  background-color: var(--accent);
  transform: rotate(-45deg);
  transition: background-color 0.2s ease;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.social-icon--tools {
  width: 34px;
  height: 28px;
  mask-image: url("../images/icon-tools.svg");
  -webkit-mask-image: url("../images/icon-tools.svg");
}

.social-icon--vk {
  width: 34px;
  height: 28px;
  mask-image: url("../images/icon-vk.svg");
  -webkit-mask-image: url("../images/icon-vk.svg");
}

.diamond-link:hover .social-icon,
.diamond-link:focus-visible .social-icon {
  background-color: #fff;
}

.section-targets {
  position: absolute;
  inset: auto 0 0;
}



.mobile-drawer {
  display: none;
}


/* =========================================================
   СЕКЦИЯ «О НАС»
   ========================================================= */

.about-section {
  padding: 58px 0 82px;
  background: #f4eddf;
  color: #564743;
}

.about-section__inner {
  width: min(1360px, calc(100% - 72px));
  margin-inline: auto;
}

.about-section__title {
  margin: 0 0 38px;
  color: #564743;
  font-family: "Monomakh Unicode", var(--serif);
  font-size: clamp(42px, 3.2vw, 54px);
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1;
  text-align: center;
}

.about-section__content {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(360px, 0.98fr);
  column-gap: clamp(24px, 3.2vw, 50px);
  align-items: start;
}

.about-section__media {
  position: relative;
  min-width: 0;
  overflow: visible;
  aspect-ratio: 796 / 481;
}

.about-section__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.about-section__text {
  min-width: 0;
  color: #564743;
  font-family: var(--serif);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.38;
}

.about-section__text p {
  margin: 0 0 20px;
}

.about-section__text p:last-child {
  margin-bottom: 0;
}

.about-section__lead {
  display: flow-root;
}

.about-section__initial {
  float: left;
  width: 53px;
  height: 116px;
  margin: -5px 10px -4px 0;
  color: var(--accent-dark);
  font-family: "Rosemaria", serif;
  font-size: 124px;
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  line-height: 0.93;
  text-align: center;
}


/* =========================================================
   СЕКЦИЯ «НАШИ ИНГРЕДИЕНТЫ»
   ========================================================= */

.ingredients-section {
  padding: 46px 0 76px;
  background: #f4eddf;
  color: #564743;
}

.ingredients-section__inner {
  margin-inline: auto;
}

.ingredients-section__title {
  margin: 0 0 42px;
  color: #564743;
  font-family: "Monomakh Unicode", var(--serif);
  font-size: clamp(42px, 3.2vw, 54px);
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1;
  text-align: center;
}

.ingredients-section__list {
  padding: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 72px);
  list-style: none;
}

.ingredients-section__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ingredients-section__icon {
  width: 130px;
  height: 130px;
  margin-bottom: 18px;
  display: block;
  background-color: #DF6D4A;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.ingredients-section__icon--water {
  mask-image: url("../images/ingredient-water.svg");
  -webkit-mask-image: url("../images/ingredient-water.svg");
}

.ingredients-section__icon--malt {
  mask-image: url("../images/ingredient-malt.svg");
  -webkit-mask-image: url("../images/ingredient-malt.svg");
}

.ingredients-section__icon--yeast {
  mask-image: url("../images/ingredient-yeast.svg");
  -webkit-mask-image: url("../images/ingredient-yeast.svg");
}

.ingredients-section__icon--hops {
  mask-image: url("../images/ingredient-hops.svg");
  -webkit-mask-image: url("../images/ingredient-hops.svg");
}

.ingredients-section__icon--love {
  mask-image: url("../images/ingredient-love.svg");
  -webkit-mask-image: url("../images/ingredient-love.svg");
}

.ingredients-section__name {
  color: #503D3C;
  font-family: var(--serif);
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.18;
  text-transform: uppercase;
}


/* =========================================================
   СЕКЦИЯ «ПРОЦЕСС»
   ========================================================= */

.process-section {
  padding-top: 40px;
}

.process-section .about-section__title {
  margin-bottom: 14px;
}

.process-section__subtitle {
  margin: 0 auto 34px;
  color: #564743;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.1;
  text-align: center;
  font-weight: 700;
}

.process-section__list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(42px, 5vw, 82px);
}

.process-section .ingredients-section__item {
  position: relative;
  align-items: stretch;
  text-align: left;
}

.process-section .ingredients-section__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 90px;
  left: 220px;
  width: clamp(42px, 5.5vw, 122px);
  height: 12px;
  background-color: var(--accent-dark);
  -webkit-mask-image: url("../images/slider-arrow-right.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("../images/slider-arrow-right.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.process-section__image {
  display: block;
  width: 100%;
  height: 190px;
  margin-bottom: 16px;
  object-fit: contain;
  object-position: left bottom;
}

.process-section .ingredients-section__name {
  min-height: 0;
  margin: 0 0 12px;
  color: var(--accent-dark);

  font-family: var(--serif);
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.process-section .ingredients-section__item p {
  margin: 0;
  color: #564743;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.25;
  text-align: left;
}


/* =========================================================
   СЕКЦИЯ «ГДЕ ПОПРОБОВАТЬ»
   ========================================================= */

.where-section {
  padding-top: 48px;
}

.where-section .about-section__title {
  margin-bottom: 34px;
}

.where-section__group-title {
  margin: 0 0 18px;
  color: #564743;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.where-section__brewery {
  width: min(320px, 100%);
  margin: 0 auto 48px;
}

.where-section__shops {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px clamp(30px, 5vw, 76px);
}

.where-section .ingredients-section__icon {
  width: 110px;
  height: 110px;
  margin-bottom: 12px;
}

.where-section__icon--brewery {
  mask-image: url("../images/icon-brewery.svg");
  -webkit-mask-image: url("../images/icon-brewery.svg");
}

.where-section__icon--shop {
  mask-image: url("../images/icon-store.svg");
  -webkit-mask-image: url("../images/icon-store.svg");
}

.where-section__address {
  color: #564743;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.where-section__address:hover,
.where-section__address:focus-visible {
  color: var(--accent-dark);
}

.where-section__media {
  width: 100%;
  margin: 46px auto 0;
  aspect-ratio: 2.2 / 1;
  overflow: visible;
}

.where-section__media .about-section__image {
  object-fit: contain;
}


/* =========================================================
   СЕКЦИЯ «ОПТОВЫЕ ПОСТАВКИ»
   ========================================================= */

.cooperation-section {
  padding-top: 58px;
  padding-bottom: 68px;
}

.cooperation-section .about-section__title {
  margin-bottom: 36px;
}

.cooperation-section__top {
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(470px, 1.15fr);
  gap: clamp(54px, 8vw, 118px);
  align-items: start;
  background-image: url("../images/cooperation-beer-tap.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: auto 100%;
}

.cooperation-section__form {
  min-width: 0;
}

.cooperation-section__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 8px;
}

.cooperation-section__fields label {
  display: block;
  min-width: 0;
}

.cooperation-section__fields input,
.cooperation-section__fields textarea {
  display: block;
  width: 100%;
  border: 1px solid rgba(86, 71, 67, 0.46);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #564743;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cooperation-section__fields input {
  height: 46px;
  padding: 0 15px;
}

.cooperation-section__fields textarea {
  min-height: 122px;
  padding: 13px 15px;
  resize: vertical;
}

.cooperation-section__fields input::placeholder,
.cooperation-section__fields textarea::placeholder {
  color: rgba(86, 71, 67, 0.62);
  opacity: 1;
}

.cooperation-section__fields input:focus,
.cooperation-section__fields textarea:focus {
  border-color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.18);
}

.cooperation-section__message {
  grid-column: 1 / -1;
}

.cooperation-section__submit {
  width: 100%;
  height: 49px;
  margin-top: 15px;
  border: 1px solid var(--accent-dark);
  border-radius: 0;
  background: var(--accent-dark);
  color: #fff;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.cooperation-section__submit:hover,
.cooperation-section__submit:focus-visible {
  background: transparent;
  color: var(--accent-dark);
}

.cooperation-section__info {
  position: relative;
  min-height: 270px;
  padding: 4px clamp(150px, 18vw, 200px) 16px 0;
}

.cooperation-section__content {
  position: relative;
  z-index: 1;
}

.cooperation-section__text {
  margin: 3px 0 20px;
  color: #564743;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.38;
}

.cooperation-section__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.cooperation-section__contact {
  gap: 13px;
  color: #564743;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.cooperation-section__contact:hover,
.cooperation-section__contact:focus-visible {
  color: var(--accent-dark);
}

a.cooperation-section__contact:hover .diamond-link::before {
  background-color: var(--light);
}

a.cooperation-section__contact:hover .diamond-link {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.cooperation-section__diamond {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-color: rgba(86, 71, 67, 0.56);
}

.cooperation-section__diamond::before {
  background-color: #564743;
}

.cooperation-section__diamond--vk::before {
  mask-image: url("../images/icon-vk.svg");
  -webkit-mask-image: url("../images/icon-vk.svg");
}

.cooperation-section__contact:hover
.cooperation-section__diamond::before,
.cooperation-section__contact:focus-visible
.cooperation-section__diamond::before {
  background-color: #fff;
}

.cooperation-section__benefits {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: clamp(24px, 5vw, 66px);
  border-top: 1px solid rgba(224, 116, 83, 0.27);
}

.cooperation-section__benefits .ingredients-section__icon {
  width: 185px;
  height: 130px;
  margin-bottom: 17px;
}

.cooperation-section__benefits .ingredients-section__name {
  font-size: 18px;
  line-height: 1.15;
}

.cooperation-section__icon--craft {
  mask-image: url("../images/cooperation-craft.svg");
  -webkit-mask-image: url("../images/cooperation-craft.svg");
}

.cooperation-section__icon--quality {
  mask-image: url("../images/cooperation-quality.svg");
  -webkit-mask-image: url("../images/cooperation-quality.svg");
}

.cooperation-section__icon--delivery {
  mask-image: url("../images/cooperation-delivery.svg");
  -webkit-mask-image: url("../images/cooperation-delivery.svg");
}

.cooperation-section__icon--personal {
  mask-image: url("../images/cooperation-personal.svg");
  -webkit-mask-image: url("../images/cooperation-personal.svg");
}

.cooperation-section__icon--lemonade {
  mask-image: url("../images/cooperation-lemonade.svg");
  -webkit-mask-image: url("../images/cooperation-lemonade.svg");
}

.cooperation-section__status.is-success {
  color: #467348;
}

.cooperation-section__status.is-error {
  color: #a13d32;
}

.cooperation-section__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}


/* =========================================================
   ФУТЕР
   ========================================================= */

.site-footer {
  position: relative;
  isolation: isolate;
  padding: 58px 64px 54px;
  overflow: hidden;
  background: #2f2929;
  color: var(--light);
}

.site-footer__frame {
  position: absolute;
  inset: 16px 20px;
  z-index: 0;
  display: block;
  width: calc(100% - 40px);
  height: calc(100% - 32px);
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(170px, 0.85fr) minmax(310px, 1.4fr) minmax(190px, 0.85fr);
  column-gap: clamp(34px, 5vw, 82px);
  align-items: start;
}

.site-footer__brand {
  min-width: 0;
}

.site-footer__logo {
  width: 104px;
  height: 104px;
  display: block;
}

.site-footer__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer__copyright {
  margin: 28px 0 5px;
  color: var(--light);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
}

.site-footer__rights {
  margin: 0;
  color: rgba(246, 237, 227, 0.72);
  font-size: 18px;
  line-height: 1.2;
}

.site-footer__nav {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.site-footer__nav a {
  color: var(--light);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--accent);
}

.site-footer__contacts {
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.site-footer__contact {
  display: flex;
  max-height: 40px;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.site-footer__contact.under {
  text-decoration: underline;
}

.site-footer__diamond {
  position: relative;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  border-color: #503D3C;
  background: transparent;
}

.site-footer__diamond::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 17px;
  height: 17px;
  margin: auto;
  background-color: #503D3C;
  transform: rotate(-45deg);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.site-footer__contacts .site-footer__diamond::before {
  background-color: #FA9879;
}

.site-footer__contacts .site-footer__diamond {
  border-color: #FA9879;
}

.site-footer__side .site-footer__diamond::before {
  inset: 0;
  width: 22px;
  height: 22px;
  margin: 5px 9px;
}

.site-footer__side .diamond-link:hover, .site-footer__side .diamond-link:focus-visible {
  border-color: var(--accent);
  background: #DF6D4A;
}

.site-footer__diamond--phone::before {
  mask-image: url("../images/footer-phone.svg");
  -webkit-mask-image: url("../images/footer-phone.svg");
}

.site-footer__diamond--mail::before {
  mask-image: url("../images/footer-mail.svg");
  -webkit-mask-image: url("../images/footer-mail.svg");
}

.site-footer__diamond--location::before {
  mask-image: url("../images/footer-location.svg");
  -webkit-mask-image: url("../images/footer-location.svg");
}

.site-footer__diamond--up::before {
  mask-image: url("../images/footer-up.svg");
  -webkit-mask-image: url("../images/footer-up.svg");
}

.site-footer__contact:hover .site-footer__diamond::before,
.site-footer__contact:focus-visible .site-footer__diamond::before,
.site-footer__up:hover .site-footer__diamond::before,
.site-footer__up:focus-visible .site-footer__diamond::before {
  background-color: #fff;
}

.site-footer__side {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.site-footer__up {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--light);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-footer__up .site-footer__diamond {
  border-color: var(--accent);
}

.site-footer__up .site-footer__diamond::before {

  background-color: var(--accent);
}

.site-footer__up:hover,
.site-footer__up:focus-visible {
  color: var(--accent);
}

.site-footer__developer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(246, 237, 227, 0.7);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.site-footer__developer:hover,
.site-footer__developer:focus-visible {
  color: var(--accent);
}

.site-footer__developer img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 45%;
  left: 44%;
  z-index: 1;
  height: 1px;
  background-color: rgb(82 67 64);
  pointer-events: none;
  width: 12%;
}

/* =========================================================
   ОБЩИЕ СТИЛИ МОДАЛЬНЫХ ОКОН
   ========================================================= */

body.site-modal-open,
body.age-gate-open {
  overflow: hidden;
}

.site-modal {
  position: fixed;
  inset: 0;

  box-sizing: border-box;
  max-width: none;
  max-height: calc(100vh - 32px);

  margin: auto;
  padding: 0;

  border: 1px solid rgba(86, 71, 67, 0.55);
  border-radius: 0;

  background: var(--light);
  color: #564743;

  opacity: 0;
  transform: translateY(18px) scale(0.98);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease;

  overflow: hidden;
}

.site-modal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-modal::backdrop {
  background: rgba(9, 7, 5, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* =========================================================
   ПРЕДУПРЕЖДЕНИЕ 18+
   ========================================================= */

.age-gate {
  width: min(463px, calc(100% - 32px));
}

.age-gate__card {
  padding: 42px 34px 28px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.age-gate .age-gate__title {
  margin: 0 0 24px;

  color: #564743;

  font-family: "Monomakh Unicode", var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;

  text-transform: none;
}

.age-gate__text {
  color: #564743;

  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.25;
}

.age-gate__text p {
  margin: 0 0 16px;
}

.age-gate__text p:last-child {
  margin-bottom: 0;
}

.age-gate__button {
  position: relative;
  box-sizing: border-box;

  min-width: 162px;
  min-height: 64px;
  margin-top: 18px;
  padding: 0 26px;

  border: 1px solid transparent !important;
  outline: none !important;
  box-shadow: none !important;

  background-color: var(--accent-dark);
  color: #fff;

  font-size: 18px;
  line-height: 1;

  transform: none !important;
  translate: none !important;

  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;

  transition: background-color 0.2s ease;
}

/* Отключаем декоративный слой, который сдвигается */
.age-gate__button::before,
.age-gate__button::after {
  content: none !important;
  display: none !important;
}

/* Ни одно состояние не должно менять положение и геометрию */
.age-gate__button:hover,
.age-gate__button:focus,
.age-gate__button:focus-visible,
.age-gate__button:active {
  min-width: 162px;
  min-height: 64px;
  padding: 0 26px;

  border: 1px solid transparent !important;
  outline: none !important;
  box-shadow: none !important;

  transform: none !important;
  translate: none !important;
}

/* Hover только на устройствах с настоящей мышью */
@media (hover: hover) and (pointer: fine) {
  .age-gate__button:hover {
    background-color: #CF6545;
  }
}

/* На телефоне не оставляем залипший hover */
@media (hover: none) and (pointer: coarse) {
  .age-gate__button:hover,
  .age-gate__button:focus,
  .age-gate__button:focus-visible {
    background-color: var(--accent-dark);
  }

  .age-gate__button:active {
    background-color: #CF6545;
  }
}


/* =========================================================
   МОДАЛЬНОЕ ОКНО ЗАЯВКИ
   ========================================================= */

.contact-modal {
  width: min(720px, calc(100% - 32px));
}

.contact-modal__card {
  position: relative;

  box-sizing: border-box;
  max-height: calc(100vh - 32px);
  padding: 42px 44px 36px;

  overflow-x: hidden;
  overflow-y: auto;

  scrollbar-width: none;
}

.contact-modal__card::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.contact-modal__title {
  margin: 0 0 10px;

  color: #564743;

  font-family: "Monomakh Unicode", var(--serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.1;

  text-align: center;
}

.contact-modal__description {
  max-width: 480px;
  margin: 0 auto 28px;

  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.35;

  text-align: center;
}

.contact-modal__form {
  width: 100%;
}

.contact-modal .cooperation-section__status {
  min-height: 20px;
  margin: 12px 0 0;

  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
}


/* =========================================================
   РЕЗУЛЬТАТ ОТПРАВКИ ФОРМЫ
   ========================================================= */

.result-modal {
  width: min(480px, calc(100% - 32px));
}

.result-modal__card {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  box-sizing: border-box;
  width: 100%;
  padding: 24px 34px 32px;

  text-align: center;
}

.result-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 29px;
  height: 29px;
  padding: 0;

  border: 1px solid rgba(86, 71, 67, 0.28);
  border-radius: 50%;

  background: transparent;
  color: rgba(86, 71, 67, 0.7);

  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.result-modal__close:hover,
.result-modal__close:focus-visible {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  transform: rotate(90deg);
}

.result-modal__illustration {
  display: block;

  width: min(270px, 78%);
  height: 168px;
  margin: 0 auto 8px;

  object-fit: contain;
}

.result-modal__title {
  margin: 0 0 9px;

  color: #564743;

  font-family: "Monomakh Unicode", var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.1;

  text-transform: none;
}

.result-modal__description {
  margin: 0 0 24px;
  color: #564743;
  font-family: var(--serif);
  line-height: 1.35;
}

.result-modal__button {
  min-width: 140px;
  min-height: 54px;
  padding: 12px 24px;

  font-size: 16px;
}


/* =========================================================
   СТРАНИЦА 404
   ========================================================= */

body.error404 {
  min-width: 320px;
  min-height: 100svh;
  overflow: hidden;
  background: var(--light);
  color: #564743;
}

.error-404 {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  min-height: 100svh;
  padding: 28px 32px 34px;
  overflow: hidden;
  background: var(--light);
}

.error-404__logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 78px;
  height: 78px;
  margin-inline: auto;
}

.error-404__logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.error-404__content {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(760px, 100%);
  margin: -38px auto 0;
  text-align: center;
}

.error-404__illustration {
  display: block;
  width: min(590px, 58vw);
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
}

.error-404__title {
  margin: 0 0 30px;
  color: #564743;
  font-family: "Monomakh Unicode", var(--serif);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  text-transform: none;
}

.error-404__button {
  min-width: 142px;
  min-height: 54px;
  padding: 14px 24px;
  font-size: 16px;
}
