/* главный фрейм */

.header {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url("../img/jpg/background1.jpg") center/cover no-repeat;
}

.header__logo {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 250px;
  object-fit: contain;
}

.header__address {
  position: absolute;
  top: 60px;
  left: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.header__address-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.header__address-text {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.header__container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.header__title {
  font-family: "Merriweather", serif;
  font-size: clamp(32px, 5vw, 72px);
  color: #fff;
  font-weight: bold;
}

.header__flags {
  position: absolute;
  top: 70px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__flag {
  width: 40px;
  height: 40px;
  border: none;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.header__flag-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__flag:hover {
  transform: scale(1.08);
}

.header__flag:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.header__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 560px;
  margin-top: 84px;
}

.header__button {
  min-width: 270px;
  padding: 10px 20px;
  background: rgba(32, 32, 36, 0.95);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
}

.header__button:hover {
  background: rgba(32, 32, 36, 0.8);
}

.header__socials {
  position: absolute;
  right: 70px;
  bottom: 60px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.header__social {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
}

.header__social-icon {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.header__social:hover {
  transform: scale(1.08);
}

/* второй фрейм */

.restaurant {
  width: 100%;
  min-height: 100vh;
  background: url("../img/jpg/background2.jpg") center/cover no-repeat;
}

.restaurant__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  width: 100%;
  min-height: 100vh;
  padding: 0 70px;
}

.restaurant__image {
  width: 450px;
  height: 310px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.restaurant__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% center;
}

.restaurant__content {
  width: 620px;
  flex-shrink: 0;
}

.restaurant__title {
  margin: 0;
  font-family: "Merriweather", serif;
  font-size: 80px;
  font-weight: 700;
  color: #d8a56e;
}

.restaurant__line {
  width: 210px;
  height: 2px;
  margin: 24px 0 28px;
  background: #d8a56e;
}

.restaurant__text {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  line-height: 1.35;
  color: #202024;
}

/* третий фрейм */

.booking {
  width: 100%;
  min-height: 100vh;
  padding: 55px 70px 70px;
  background: url("../img/jpg/background3.jpg") center/cover no-repeat;
}

.booking__title {
  margin: 0 0 55px;
  font-family: "Merriweather", serif;
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: #d8a56e;
}

.booking__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 220px;
  width: 100%;
}

.booking__form {
  width: 470px;
}

.booking__form-title {
  margin: 0 0 28px;
  white-space: nowrap;
  font-family: "Montserrat", sans-serif;
  font-size: 48px;
  font-weight: 400;
  color: #111;
}

.booking__label {
  display: table;
  margin-bottom: 14px;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  border-radius: 10px;
  box-shadow: -5px 2px 30px -10px rgba(0, 0, 0, 0.75);
  color: #111;
}

.booking__label span {
  display: none;
  margin-bottom: 8px;
}

.booking__input {
  display: block;
  width: 230px;
  height: 34px;
  padding: 0 10px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
}

.data {
  width: 300px;
}

.booking__input--small {
  width: 180px;
}

.booking__input--date {
  width: 120px;
}

.booking__button {
  width: 340px;
  height: 54px;
  margin-top: 14px;
  border: none;
  background: #202024;
  color: #fff;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
  cursor: pointer;
}

.booking__map {
  width: min(420px, 35vw);
  aspect-ratio: 420 / 370;
  margin-left: 80px;
  overflow: hidden;
}

.booking__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* четвертый фрейм */

.menu {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("../img/jpg/odkryj_smaki_wschodu.jpg") center/cover no-repeat;
  filter: blur(2px);
  transform: scale(1.05);
  z-index: 0;
}

.menu__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
}

.menu__title {
  margin: 0 0 24px;
  font-family: "Merriweather", serif;
  font-size: 64px;
  font-weight: 700;
  color: #fff;
}

.menu__text {
  margin: 0 0 32px;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  line-height: 1.25;
  color: #fff;
}

.menu__cards {
  display: flex;
  justify-content: center;
  gap: 90px;
  z-index: 2;
}

.menu__card {
  position: relative;
  width: 260px;
  height: 360px;
  overflow: hidden;
  border-radius: 8px;
}

.menu__card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.menu__card-title {
  font-family: "Merriweather", serif;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  font-size: 30px;
  font-weight: 500;
  text-align: center;
  color: #000000;
  justify-content: center;
  z-index: 1;
}

.menu__card:hover {
  transform: translateY(-6px);
}

.modal-container {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-container:target {
  display: flex;
}

.modal-container__overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}

.modal {
  position: relative;
  z-index: 2;
  width: 80%;
  max-width: 80%;
  border-radius: 8px;
  padding: 0;
}

.modal .menu-page {
  padding: 50px;
  border-radius: 8px;
  padding-bottom: 0px;
  overflow: hidden;
}

#drinks-modal .menu-grid {
  width: 100%;
}

/* пятный фрейм */

.gallery {
  display: flex;
  min-height: 100vh;
  padding: 20px 10px;
  align-items: center;
  background: #f1e8df;
}

.gallery__inner {
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery__item {
  display: block;
  height: 220px;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* footer */

.footer {
  position: relative;
  width: 100%;
  min-height: 500px;
  background: #242226;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer__content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 90px;
  padding: 60px 80px 40px;
}

.footer__column {
  display: flex;
  flex-direction: column;
}

.footer__column a {
  align-self: flex-start;
}

/* логотип */
.footer__column:first-child {
  width: 320px;
}

.footer__logo {
  width: 250px;
  height: auto;
  margin-left: -40px;
  margin-top: -40px;
}

.footer__logo-link {
  /* display: block; */
  width: 250px;
  height: auto;
}

/* колонка Kontakt */
.footer__column:nth-child(2) {
  width: 460px;
  margin-left: -40px;
}

/* колонка Na skrót */
.footer__column:nth-child(3) {
  width: 300px;
  margin-left: 20px;
}

/* Formularz правее */
.footer__column:nth-child(4) {
  width: 420px;
  margin-left: -40px;
}

.footer__title {
  margin: 0 0 25px;
  font-family: "Merriweather", serif;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
}

.footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  width: fit-content;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer__contact--address {
  display: block;
}

.footer__contact img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer__column p,
.footer__column a {
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
}

.footer__column a {
  margin-bottom: 12px;
}

/* соцсети снизу слева */
.footer__socials {
  position: absolute;
  left: 70px;
  bottom: 60px;
  display: flex;
  gap: 7px;
}

.footer__socials-img {
  width: 20px;
  height: 20px;
}

.footer__socials a {
  width: 50px;
  height: 50px;
}

.footer__socials img {
  width: 50px;
  height: 50px;
}

.footer__socials img:hover {
  transform: scale(1.08);
}

/* форма */
.footer__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__form input {
  width: 400px;
  height: 40px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #777;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
}

.footer__form textarea {
  width: 400px;
  height: 110px;
  resize: none;
  background: transparent;
  border: 1px solid #777;
  color: #fff;
  padding: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
}

.footer__form button {
  width: 100px;
  height: 36px;
  border: none;
  cursor: pointer;
  background: #2d2b34;
  color: #fff;
  font-family: "Merriweather", serif;
  font-size: 16px;
}

.footer__bottom {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 80px;
  background: rgba(26, 26, 26, 1);
  color: #fff;
  font-family: "Merriweather", serif;
  font-size: 10px;
  font-weight: 500;
}

.footer__button {
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
}

.footer__worktime img {
  width: 40px;
  height: 40px;
}

/* телефоны */

/* телефоны / планшеты */

@media (max-width: 768px) {
  .header {
    min-height: 100dvh;
  }

  .header__logo {
    width: 200px;
    height: 200px;
    top: 50px;
  }

  .header__address {
    display: none;
  }

  .header__flags {
    top: 25px;
    right: 20px;
    gap: 8px;
  }

  .header__flag {
    width: 32px;
    height: 32px;
  }

  .header__title {
    max-width: 90%;
    font-size: 42px;
    line-height: 1.2;
    text-align: center;
  }

  .header__buttons {
    width: 100%;
    margin-top: 50px;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .header__button {
    width: 270px;
    min-width: 0;
    font-size: 16px;
  }

  .header__socials {
    right: 20px;
    bottom: 25px;
  }

  .restaurant__inner {
    flex-direction: column;
    gap: 35px;
    padding: 60px 25px;
  }

  .restaurant__image {
    width: 100%;
    max-width: 450px;
    height: 280px;
  }

  .restaurant__content {
    width: 100%;
    max-width: 620px;
  }

  .restaurant__title {
    font-size: 48px;
    text-align: center;
  }

  .restaurant__line {
    margin: 20px auto 24px;
  }

  .restaurant__text {
    font-size: 17px;
    text-align: center;
  }

  .booking {
    padding: 50px 25px;
  }

  .booking__title {
    font-size: 46px;

    margin-bottom: 40px;
  }

  .booking__inner {
    flex-direction: column;
    gap: 40px;
  }

  .booking__form {
    width: 100%;
    max-width: 470px;
  }

  .booking__form-title {
    font-size: 36px;
    white-space: normal;
    text-align: center;
  }

  .booking__input,
  .booking__input--small {
    width: 100%;
  }

  .booking__button {
    width: 100%;
    font-size: 24px;
  }

  .booking__map {
    width: 100%;
    max-width: 420px;
    margin-left: 0;
  }

  .menu__inner {
    padding: 50px 25px;
  }

  .menu__title {
    font-size: 42px;
    text-align: center;
  }

  .menu__text {
    font-size: 18px;
    text-align: center;
  }

  .menu__cards {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

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

  .footer__content {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 50px 25px;
  }

  .footer__column,
  .footer__column:first-child,
  .footer__column:nth-child(2),
  .footer__column:nth-child(3),
  .footer__column:nth-child(4) {
    width: 100%;
    margin-left: 0;
    align-items: center;
    text-align: center;
  }

  .footer__logo {
    width: 200px;
    margin: 0;
  }

  .footer__logo-link {
    width: auto;
  }

  .footer__column a {
    align-self: center;
  }

  .footer__contact {
    justify-content: center;
  }

  .footer__form {
    width: 100%;
    max-width: 400px;
  }

  .footer__form input,
  .footer__form textarea {
    width: 100%;
  }

  .footer__form button {
    align-self: center;
  }

  .footer__socials {
    position: static;
    margin-top: 20px;
  }

  .footer__bottom {
    flex-direction: column;
    height: auto;
    gap: 8px;
    padding: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header__title {
    font-size: 34px;
  }

  .header__button {
    width: 250px;
    font-size: 14px;
  }

  .restaurant__title,
  .booking__title,
  .menu__title {
    font-size: 36px;
  }

  .booking__form-title {
    font-size: 30px;
  }

  .restaurant__text,
  .menu__text {
    font-size: 16px;
  }

  .menu__card {
    width: 240px;
    height: 330px;
  }

  .menu__card-img {
    height: 330px;
  }

  .footer__title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .modal {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    max-height: 80vh;
    overflow-y: auto;
  }

  .modal .menu-page {
    padding: 24px 16px;
  }

  .modal .menu-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 0;
  }

  .modal .menu-item {
    gap: 12px;
  }

  .modal .menu-item h3 {
    font-size: 17px;
  }

  .modal .menu-item p {
    font-size: 14px;
    line-height: 1.25;
  }

  .modal .menu-item span {
    font-size: 14px;
    white-space: nowrap;
  }
}
