:root {
  --font-family-default: "Montserrat", Arial, sans-serif;
  --font-family-heading: "Comfortaa", Calibri, sans-serif;

  --color-text-default: #232323;
  --color-text-primary: #ff5680;
  --color-text-primary-foreground: #ffffff;
  --color-text-muted: #6d6e70;

  --color-bg-default: #ffffff;
  --color-bg-primary: #ff5680;
  --color-bg-dim: #fafafa;
  --color-bg-dark: #6d6e70;

  --color-footer-muted: #b8b8b8;

  --color-input-text: #6d6e70;
  --color-input-border: #dedede;
  --color-input-placeholder: #838487;

  --font-size-default: 16px;
  --font-size-heading-1: 27px;
  --font-size-heading-2: 22px;
}

body {
  font-family: var(--font-family-default);
  color: var(--color-text-default);
  background-color: var(--color-bg-default);
  font-size: var(--font-size-default);
}

.page-header {
  position: relative;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  background-color: #ffffff99;
}

.page-header__content {
  height: 126px;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header-spacer {
  height: 126px;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  max-width: 90px;
  width: 90px;
}

.header-nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-nav__burger-button {
  height: 28px;
  width: 28px;

  border: none;
  background-color: transparent;
  padding: 0;

  display: none; /* mobile - flex */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;

  cursor: pointer;
}

.header-nav__burger-button__line {
  width: 100%;
  height: 3px;
  background-color: currentColor;
  transition: transform 0.2s ease-in-out;
}

.header-nav__burger-button__line:nth-child(3) {
  margin-top: -8px;
}

.header-nav--open .header-nav__burger-button__line:nth-child(1) {
  transform: translateY(8px) scale(0);
}
.header-nav--open .header-nav__burger-button__line:nth-child(2) {
  transform: rotate(45deg);
}
.header-nav--open .header-nav__burger-button__line:nth-child(3) {
  transform: rotate(-45deg);
}
.header-nav--open .header-nav__burger-button__line:nth-child(4) {
  transform: translateY(-8px) scale(0);
}

.header-nav__list {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  gap: 60px;
  transition: opacity 0.2s ease-in-out;
}

.header-nav__item {
  color: var(--color-text-default);

  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  line-height: 1.15;

  transition-property: opacity, color, font-weight;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;

  position: relative;
}

.header-nav__item:hover {
  color: var(--color-text-primary);
}

.header-nav__item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-text-primary);
  transition-property: opacity, transform;
  transition-duration: inherit;
  transition-timing-function: inherit;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.header-nav__item:not(.header-nav__item--active):hover::after {
  opacity: 1;
  transform: translateY(0);
}

.header-nav__item--active {
  color: var(--color-text-primary);
  font-weight: 600;
  opacity: 0.7;
}

@media (max-width: 980px) {
  .page-header {
    position: relative;
  }
  .page-header-spacer {
    height: 0;
  }
  .header-nav__burger-button {
    display: flex;
  }
  .header-nav:not(.header-nav--open) .header-nav__list {
    opacity: 0;
    pointer-events: none;
  }
  .header-nav__list {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;

    padding: 20px 0;

    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-bg-default);
  }
  .header-nav__item {
    padding: 10px;
  }
  .header-nav__item::after {
    bottom: 10px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
  }
}

.heading-1 {
  font-size: var(--font-size-heading-1);
  color: var(--color-text-primary);
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.heading-2 {
  font-size: var(--font-size-heading-2);
  color: var(--color-text-default);
  font-family: var(--font-family-default);
  font-weight: 500;
  line-height: 1.35;
}

.page-heading {
  text-align: center;
  padding: 8px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.page-section {
  padding: 30px 20px;
}

.narrow-page-content {
  max-width: 960px;
  margin: 0 auto;
}

.narrow-page-content p {
  margin: 20px 0;
}

.section-separator {
  height: 90px;
}

/* Footer */

.footer-section {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.footer-dim-section {
  background-color: var(--color-bg-dim);
  padding-top: 60px;
  padding-bottom: 30px;
}

.footer-dark-section {
  background-color: var(--color-bg-dark);
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 30px;
}

/* Footer - Partners */

.footer-section .partners-heading {
  margin-bottom: 40px;
}

.footer-section .partners-row {
  display: flex;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.footer-section .partners-row__item {
  padding: 10px 20px;
  width: 33%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 580px) {
  .footer-section .partners-row__item {
    width: 50%;
  }
}

.footer-section .partners-row__item img {
  width: 100%;
  height: auto;
}

/* Footer - Questions form */

.footer-section.questions-section {
  max-width: 1200px;
  margin: 0 auto;

  padding: 60px 10px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "logo form"
    "text form";
}

.footer-section .questions-section__logo {
  width: 100px;
  height: 100px;
  grid-area: logo;
}

.footer-section .questions-text-block {
  grid-area: text;
}

.footer-section .questions-text-block__title {
  margin-top: 30px;
  line-height: 1.5;
  font-weight: 600;
}

.footer-section .questions-text-block__subtitle {
  margin-top: 30px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-text-muted);
}

.footer-section .questions-text-block__messengers {
  display: flex;
  align-items: center;

  margin-top: 20px;
  gap: 20px;
}

.footer-section .questions-text-block__messenger {
  width: 40px;
  height: 40px;

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

.footer-section .questions-text-block__messenger img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-section .questions-text-block__phone {
  margin-top: 20px;
}

.footer-section .questions-text-block__phone a {
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text-primary);
}

.footer-section .questions-text-block__name {
  margin-top: 5px;
  font-size: 17px;
  font-weight: 700;
}

.footer-section .questions-form {
  grid-area: form;
}

.footer-section .questions-form__title {
  margin-top: 30px;
  margin-bottom: 30px;

  font-size: 21px;
  font-weight: 700;
}

.footer-section .questions-form__form {
  display: flex;
  flex-direction: column;
  gap: 20px;

  margin-top: 30px;

  width: 100%;
  max-width: 500px;
}

.footer-section .questions-form__form input {
  width: 100%;

  padding: 20px 0;

  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;

  border: none;
  border-bottom: 1px solid var(--color-input-border);
  outline: none;
  color: var(--color-input-text);
}

.footer-section .questions-form__form input::placeholder {
  color: var(--color-input-placeholder);
}

.footer-section .questions-form__form button {
  margin-top: 45px;

  width: 200px;
  height: 62px;

  border: none;
  border-radius: 100px;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary-foreground);

  font-size: 17px;
  font-weight: 600;

  cursor: pointer;
}

@media (max-width: 960px) {
  .footer-section.questions-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "form"
      "text";
  }
  .footer-section .questions-section__logo {
    margin: auto;
  }
  .footer-section .questions-text-block__title {
    margin-top: 60px;
  }

  .footer-section .questions-text-block,
  .footer-section .questions-form {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
  }
}

/* Footer - Curators */

.footer-section.curators-section {
  width: 100%;
  max-width: 1280px; /* 1200px + padding*2 */
  margin: 0 auto;
  padding: 0 40px;
}

.footer-section .curators-heading {
  margin-bottom: 45px;
  font-size: 28px;
}

.footer-section .curators-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.footer-section .curator-card {
  border-top: 1px solid var(--color-input-border);
  border-bottom: 1px solid var(--color-input-border);
  padding-bottom: 40px;
}

.footer-section .curator-card__name {
  padding: 20px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.footer-section .curator-card__position {
  font-size: 14px;
  font-weight: 400;

  margin-bottom: 20px;
}

.footer-section .curator-card__contacts {
  display: flex;
  flex-direction: column;
}

.footer-section .curator-card__contact {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
}

.footer-section .curator-card__contact div {
  margin-right: 4px;
}

.footer-section .curator-card__contact a {
  color: var(--color-text-default);
  text-decoration-color: var(--color-text-primary);
  text-underline-offset: 4px;
}

@media (max-width: 960px) {
  .footer-section.curators-section {
    padding: 0 20px;
    max-width: 100%;
  }
  .footer-section .curators-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-section .curator-card {
    max-width: 500px;
    width: 100%;
    margin: auto;
  }
  .footer-section .curator-card:not(:first-child) {
    border-top: none;
  }
}

/* Footer - Deep */

.footer-section.deep-section {
  width: 100%;
  max-width: 1280px; /* 1200px + padding*2 */
  margin: 0 auto;
  padding: 0 40px;
}

.deep-section .deep-section__upper {
  width: 100%;
  display: flex;
  padding-bottom: 40px;
}

.deep-section .deep-section-organizers {
  flex-shrink: 0;
}

.deep-section .deep-section-organizers h3 {
  font-size: 12px;
  font-weight: 500;
}

.deep-section .deep-section-organizers__list {
  display: flex;
  /*
    Расскоментировать строчку ниже, чтобы в "Организаторы"
    серого футера логотипы переносились, а не уменьшались
    при уменьшении ширины экрана
  */
  /* flex-wrap: wrap; */
  align-items: center;
  gap: 30px;
}

.deep-section .deep-section__spacer {
  flex-grow: 1;
}

.deep-section .deep-section-info {
  flex-shrink: 0;
  max-width: 375px;
  font-size: 12px;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.deep-section .deep-section-info p {
  font-weight: 300;
  margin-bottom: 20px;
}

.deep-section .deep-section-info a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.5;
}

.deep-section .deep-section__separator {
  height: 1px;
  width: 100%;
  background-color: var(--color-footer-muted);
  opacity: 0.2;
}

.deep-section .deep-section__lower {
  width: 100%;
  display: flex;
  color: var(--color-footer-muted);
  padding-top: 40px;

  font-size: 12px;
}

.deep-section .deep-section-copyright {
  flex-shrink: 1;
  font-weight: 400;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.deep-section .deep-section-links {
  flex-shrink: 0;
  font-weight: 500;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.deep-section .deep-section-links a {
  color: var(--color-footer-muted);
  text-decoration: none;
}

@media (max-width: 960px) {
  .footer-section.deep-section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 10px;
  }

  .deep-section .deep-section__upper {
    flex-direction: column;
    gap: 20px;
  }

  .deep-section .deep-section-info {
    align-items: flex-start;
  }

  .deep-section .deep-section-info a {
    font-size: 14px;
  }

  .deep-section .deep-section__separator {
    width: calc(100% - 20px);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .deep-section .deep-section__lower {
    flex-direction: column;
    gap: 20px;
  }
  .deep-section .deep-section-links {
    order: 1;
    align-items: flex-start;
  }

  .deep-section .deep-section__lower .deep-section__spacer {
    order: 2;
  }

  .deep-section .deep-section-copyright {
    order: 3;
  }
}

/* Restaurants section */

#pointer-circle {
  width: 100px;
  height: 100px;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary-foreground);

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100%;

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

  font-size: 11px;
  text-transform: uppercase;
  z-index: 100;
  opacity: 0;

  pointer-events: none;
}

.restaurants-section {
  display: grid;
  justify-content: center;
  gap: 40px;
  grid-template-columns: repeat(3, 360px);
}

@media (max-width: 1200px) {
  .restaurants-section {
    grid-template-columns: repeat(3, 300px);
    gap: 40px 20px;
  }
}

@media (max-width: 960px) {
  .restaurants-section {
    grid-template-columns: 1fr;
    gap: 70px;
  }
}

.restaurants-section .restaurant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
  color: var(--color-text-default);
  text-decoration: none;
}

.restaurants-section .restaurant-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  object-fit: cover;
}

.restaurants-section .restaurant-card h3 {
  padding: 30px 40px;
  padding-bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}

/* Restaurant page */

.page-section.restaurant-container {
  margin: auto;
  max-width: 1200px;
  padding-bottom: 0;
}

.restaurant-heading {
  text-transform: none;
  color: var(--color-text-default);
}

.restaurant-preview {
  aspect-ratio: 2 / 1;
  width: 100%;
  min-height: 300px;

  object-fit: cover;
  border-radius: 10px;
}

.restaurant-menu__heading {
  text-transform: none;
  text-align: center;
  padding: 42px 0;
  margin-top: 24px;

  position: relative;
}

.restaurant-menu__heading::after {
  content: "";
  margin-top: 42px;
  display: block;
  /* position: absolute;
  bottom: 0;
  left: 0;
  right: 0; */
  width: 100%;
  height: 1px;
  background-color: var(--color-bg-primary);
  opacity: 0.2;
}

.restaurant-menu-item {
  display: grid;
  grid-template: "image info" / 1fr 1fr;
  gap: 40px; /* дистанция между блоками "фото" и "описание", базово 20, сейчас 30, на тильде 40 */
  margin-bottom: 60px;
}

.restaurant-menu-item:nth-of-type(even) {
  grid-template: "info image" / 1fr 1fr;
}

.restaurant-menu-item__image {
  grid-area: image;

  min-width: 50%;
  width: 100%;
  aspect-ratio: 5 / 3;
  border-radius: 20px;
  object-fit: cover;
}

.restaurant-menu-item__info {
  grid-area: info;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.restaurant-menu-item__name {
  margin-top: 20px;
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.23;
}

.restaurant-menu-item__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.restaurant-menu-item__price::after {
  content: "";
  display: block;
  margin-top: 28px;

  width: 50px;
  height: 1px;
  background-color: var(--color-text-primary);
}

.restaurant-menu-item__description {
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

@media (max-width: 1200px) {
  .restaurant-menu {
    max-width: 960px;
    margin: 0 auto;
  }
}

@media (max-width: 960px) {
  .restaurant-menu {
    max-width: 600px;
    margin: 0 auto;
  }
  .restaurant-menu-item {
    grid-template: "image" "info" / 1fr;
  }
  .restaurant-menu-item:nth-of-type(even) {
    grid-template: "image" "info" / 1fr;
  }
  .restaurant-menu-item__name {
    font-size: 20px;
  }
  .restaurant-menu-item__price {
    font-size: 18px;
  }
  .restaurant-menu-item__description {
    font-size: 12px;
  }
}

.restaurant-menu__separator {
  opacity: 0.2;
  padding: 28px 0;
}

.restaurant-menu__separator::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-bg-primary);
}

.restaurant-quote {
  padding-top: 18px;
  font-size: 18px;
}

.restaurant-quote__author {
  margin-top: 24px;
}

.restaurant-quote__author__name {
  font-weight: 700;
  color: var(--color-text-primary);
}

.restaurant-times {
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 60px;
  margin-bottom: 30px;
  padding: 28px;
  border-radius: 10px;

  background-color: var(--color-bg-dim);
  font-size: 18px;
  line-height: 32px;
  font-weight: 500;
  text-align: center;
}

.restaurant-locations {
  padding: 40px;

  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  color: var(--color-text-primary-foreground);
  background-color: var(--color-bg-primary);

  display: flex;
  justify-content: space-evenly;
}

.restaurant-locations__item {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 20px;
}

.restaurant-locations__item__icon {
  width: 36px;
  height: 36px;
}

.restaurant-locations__item__value {
  font-weight: 500;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

@media (max-width: 960px) {
  .restaurant-locations {
    flex-direction: column;
    justify-content: center;
    gap: 20px;
  }
  .restaurant-locations__item {
    flex-direction: row;
  }
}

@media (max-width: 380px) {
  .restaurant-times, .restaurant-locations {
    padding: 30px 20px;
  }
}
