:root {
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playwrite DE SAS", cursive;
}

html{
  box-sizing: border-box;
  scrollbar-gutter: stable;
}

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

html {
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: clip;
  font-size: 16px;
  line-height: 1.5;
  color: #2b2b2b;
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  scrollbar-gutter: stable;  
  background-color:  #ede6db;
}

h1, p, ul, dialog {
  margin: 0;
  padding: 0;
}

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

li{
  list-style: none;
}

button{
  background-color: transparent;
  padding: 0;
  border: none;
  background: transparent;
}

.conteiner{
  max-width: 1720px;
  padding: 0 10px;
  margin: 0 auto;
}

.header {
  background-image: url(../images/header__bg.jpg);
  background-image: image-set(
    '../images/header__bg.avif' type('image/avif'),
    '../images/header__bg.webp' type('image/webp'),
    '../images/header__bg.jpg' type('image/jpeg')
  );
  height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #f5f5f5;
}

.header__top{
  padding: 15px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-weight: 300;
}

.menu__list{
  display: flex;
  gap: 20px;
  list-style: none;
  text-transform: uppercase;
}

.menu{
  justify-self: start;
}

.menu__btn{
 display: none;
 justify-content: center;
 align-items: center;
 width: 40px;
 height: 24px;
 position: relative;
 z-index: 1;
 cursor: pointer;
}

.menu__btn span{
  height: 2px;
  background-color: #ffd500;
  width: 100%;
}

.menu__btn ::after,
.menu__btn ::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #ffd500;
}

.menu__btn ::after{
  top: 0;
}

.menu__btn ::before{
  bottom: 0;
}

.logo{
  justify-self: center;
}

.header__contacts{
  justify-self: end;
}
.header__contacts {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.contacts {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 60px;
  transition: 0.2s;
}

.header__contacts img {
    width: 100%;
}

.contacts .contacts__icon {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  cursor: pointer;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  font-size: 13px;
}

.contacts__phone {
  font-weight: 500;
  color: #ffd500;
  text-decoration: none;
}

.contacts__adress{
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.header__content{
  padding-top: 100px;
  margin-bottom: 40px;
  padding-left: 215px;
  max-width: 860px;
}

.contacts__role,
.contacts__profile {
  font-size: 11px;
  opacity: 0.8;
}

.contacts__address {
  font-size: 12px;
  white-space: nowrap;
}

.header__title{
  font-family: var(--font-display);
  font-size: 85px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 400;
  max-width: 700px;
  max-height: 200px;
  margin-bottom: 30px;
}

.header__desc{
  max-width: 615px;
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 30px;
}

.header_btn{
  text-transform: uppercase;
  font-size: 20px;
  padding: 20px 49px;
  background-color: #ffd500;
  line-height: 1.15;
  font-weight: 300;
  display: inline-block;
  box-shadow: 0px 0px 20px rgba(255, 216, 0, 1);
  border-radius: 10px;
}
.dialog ::backdrop{
  background-color: rgb(0 0 0 / 0.8);
}

.scroll-block{
  overflow: hidden;
}

.dialog{
  margin: 0 auto;
  width: 50%;
}

.dialog__form{
  display:flex;
  flex-direction: column;
  padding: 15px;
}

.form__img{
  width: 100%;
}

.form__title{
  display: flex;
  justify-content: center;
}

.form__text{
  font-size: 18px;
  font-weight: 400;
}

.title__desc{
  font-size: 14px;
  font-weight: 300;
}

.booking-form-message {
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.booking-form-message--error {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c6cb;
}

.booking-form-message--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.booking-form-message--info {
  background: #fff8e1;
  color: #5d4a1f;
  border: 1px solid #ffe082;
}

.booking-time-hint {
  display: block;
  font-size: 12px;
  color: #666;
  margin: -4px 0 8px 4px;
}

.login-booking-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8e1;
  color: #5d4a1f;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.dialog__input {
  width: 100%;
  margin: 8px 0;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 16px;
  background: rgba(255, 245, 235, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(24, 23, 23, 0.5);
  border-radius: 40px;
  color: #2b2b2b;
  outline: none;
  transition: all 0.1s ease;
  box-sizing: border-box;
}
.dialog__input:focus {
  background: rgba(255, 245, 235, 0.35);
  border-color: #ffd500;
  box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.3);
}

.dialog__input::placeholder {
  color: rgba(43, 43, 43, 0.6);
  font-weight: 300;
}

.dialog__submit {
  width: 100%;
  margin-top: 16px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  background: #ffd500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(24, 23, 23, 0.5);
  border-radius: 40px;
  color: #2b2b2b;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dialog__submit:hover {
  background: rgba(255, 245, 235, 0.45);
  backdrop-filter: blur(12px);
  border-color: #ffd500;
  transform: scale(1.01);
}

.comfort-box{
  display: flex;
  gap: 40px;
  padding-top: 80px;
  align-items: center;
  overflow: hidden;
}

.comfort-box-boottom{
  margin-bottom: 40px;
}

.comfort-box:nth-child(even){
  flex-direction: row-reverse;
}

.comfort__text{
  flex: 1;
  padding: 40px;
}

.comfort__title{
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 20px;
}

.contact__ttitle {
  font-family: var(--font-display);
}

.comfort__desc{
  font-size: 18px;
  line-height: 1.15;
  margin-bottom: 15px;
}

.glass__btn{
  display: inline-block;
  padding: 12px 24px;
  border-radius: 40px;
  transition: 0.3s;
  font-size: 18px;
  margin-top: 10px;
  background: rgba(255,245,235, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.glass__btn:hover {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.02);
}

.comfort__img{
  flex: 1;
  margin-bottom: 40px;
}

.comfort__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.contact{
  background-color: #F9F6F0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 50px 0;
}

.contact .container {
  margin: 0 auto;
}

.contact__box{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.contact__box h2{
  text-transform: uppercase;
}

.contact__text{
  padding: 0 40px;
}

.contact__info{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__info-link{
  display: flex;
  align-items: center;
  gap: 10px;
}

.contacts__icon{
  width: 24px;
  height: 24px;
}

.contact__map{
  width: 100%;
  align-items: center;
  padding: 0 40px;
}

.contact__map iframe{
  border-radius: 20px;
}

.footer{
  background-color: #3e3125;
  padding: 50px 0;
  position: relative;
  clear: both;
}

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

.footer__logo{
  width: 150px;
  border-radius: 10px;
  filter: brightness(0.9);
  transition: 0.3s
}

.footer__logo:hover{
  filter: brightness(1.1);
}

.footer__social{
  display: flex;
  gap: 20px;
  justify-self: center;
}

.footer_ison {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 217, 206, 0.15);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  transition: 0.3s;
}

.footer_ison img{
  width: 24px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer__desc {
  color: #f5f5f5;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
}

.footer__desc img{
  width: 20px;
  height: auto;
}

/* Стили для окон регистрации и входа */
.register-dialog,
.login-dialog {
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #ede6db 0%, #f5f0e8 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.register-container,
.login-container {
  padding: 40px;
  min-width: 400px;
  position: relative;
}

@media (max-width: 500px) {
  .register-container,
  .login-container {
    min-width: 0;
    width: calc(100vw - 32px);
    max-width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
  }
}

.register-close,
.login-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #2b2b2b;
  background: none;
  border: none;
  transition: 0.2s;
}

.register-close:hover,
.login-close:hover {
  color: #ffd500;
  transform: scale(1.1);
}

.register-title,
.login-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 30px;
  color: #2b2b2b;
  font-weight: 400;
}

.register-form,
.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.register-input,
.login-input {
  padding: 14px 18px;
  font-family: inherit;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(43, 43, 43, 0.2);
  border-radius: 40px;
  outline: none;
  transition: all 0.2s;
}

.register-input:focus,
.login-input:focus {
  border-color: #ffd500;
  box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.2);
}

.register-btn,
.login-btn {
  margin-top: 10px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  background: #ffd500;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.3s;
}

.register-btn:hover,
.login-btn:hover {
  background: #e6c200;
  transform: scale(1.02);
}

.register-login-link,
.login-register-link,
.login-forgot-link {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: #666;
}

.login-register-link {
  margin-top: 20px;
}

.register-login-link a,
.login-register-link a,
.login-forgot-link a {
  color: #ffd500;
  text-decoration: underline;
  cursor: pointer;
}

.register-login-link a:hover,
.login-register-link a:hover,
.login-forgot-link a:hover {
  color: #e6c200;
}

.forgot-password-desc {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin: -16px 0 16px;
  line-height: 1.5;
}

.reset-password-page {
  min-height: 100vh;
  background: #ede6db;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.reset-password-main {
  width: 100%;
  max-width: 440px;
}

.reset-password-box {
  background: linear-gradient(135deg, #ede6db 0%, #f5f0e8 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.register-dialog::backdrop,
.login-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
}

/* Универсальное модальное окно успеха (как в банкет/доставка) */
.success-modal {
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 20px;
  background: white;
  animation: fadeIn 0.3s ease;
}

.success-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
}

.success-container {
  padding: 40px;
  text-align: center;
  min-width: 320px;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.success-container h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #3e3125;
}

.success-container p {
  color: #666;
  margin-bottom: 25px;
}

.success-btn {
  background: #ffd500;
  border: none;
  padding: 10px 30px;
  border-radius: 40px;
  font-family: inherit;
  cursor: pointer;
  font-size: 16px;
}

.success-btn:hover {
  background: #e6c200;
}

/* Кнопка выхода */
.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 2px 6px;
    border-radius: 20px;
    background: rgba(255, 0, 0, 0.3);
    transition: 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.6);
    transform: scale(1.05);
}

/* Стили для авторизованного пользователя */
.contacts:last-child {
    cursor: pointer;
}

.contacts:last-child:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Стили для окна доставки */
.delivery-dialog {
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #ede6db 0%, #f5f0e8 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
  max-width: 600px;
  width: 90%;
}

.delivery-container {
  padding: 40px;
  position: relative;
}

.delivery-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #2b2b2b;
  background: none;
  border: none;
  transition: 0.2s;
  z-index: 1;
}

.delivery-close:hover {
  color: #ffd500;
  transform: scale(1.1);
}

.delivery-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.delivery-form .form__title {
  margin-top: 0;
}

.delivery-dialog textarea {
  resize: vertical;
  font-family: inherit;
}

.delivery-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
}

/* ===== СХЕМА ЗАЛА ===== */
.room-scheme-section {
    margin-top: 25px;
    padding: 20px;
    background: #f9f6f0;
    border-radius: 20px;
}

.scheme-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #3e3125;
    display: flex;
    align-items: center;
    gap: 10px;
}

.room-scheme {
    background: #e8e0d5;
    border-radius: 16px;
    padding: 20px;
    min-height: 600px;
    position: relative;
    overflow-x: auto;
}

.scheme-container {
    position: relative;
    min-width: 850px;
    min-height: 550px;
    background: #e8e0d5;
    border-radius: 12px;
    margin: 0 auto;
}

/* Столики на схеме */
.table-icon {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.table-icon:hover {
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 20;
}

/* Формы столиков */
.table-icon.circle { width: 60px; height: 60px; border-radius: 50%; }
.table-icon.square { width: 60px; height: 60px; border-radius: 12px; }
.table-icon.rectangle { width: 80px; height: 50px; border-radius: 8px; }

/* Стандартный столик */
.table-icon.standard { background: #ffd500; border: 3px solid #3e3125; }

/* У окна */
.table-icon.window { background: #2196f3; border: 3px solid #3e3125; }

/* VIP */
.table-icon.vip {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    border: 2px solid #ffd700;
    box-shadow: 0 0 8px rgba(156, 39, 176, 0.5);
}

.table-icon.vip.selected {
    background: linear-gradient(135deg, #ff5722, #e64a19);
    border-color: #fff;
}

/* Терраса */
.table-icon.terrace {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    border: 3px solid #3e3125;
}

/* Улучшенное отображение для окон */
.table-icon.window {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

/* Забронированный столик */
.table-icon.booked {
    background: #757575 !important;
    filter: grayscale(0.3);
    opacity: 0.7;
    cursor: not-allowed;
}

.table-icon.booked:hover {
    transform: translate(-50%, -50%);
}

/* Выбранный столик */
.table-icon.selected {
    background: #ff5722 !important;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.5);
}

.table-number {
    font-size: 14px;
    font-weight: bold;
    color: #3e3125;
}

.table-icon.vip .table-number,
.table-icon.window .table-number {
    color: white;
}

.table-capacity {
    font-size: 10px;
    color: #3e3125;
}

.table-icon.vip .table-capacity,
.table-icon.window .table-capacity {
    color: rgba(255, 255, 255, 0.9);
}

/* Легенда схемы */
.scheme-legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.legend-color.standard { background: #ffd500; border: 1px solid #3e3125; }
.legend-color.window { background: #2196f3; border: 1px solid #3e3125; }
.legend-color.vip { background: #9c27b0; border: 1px solid #ffd500; }
.legend-color.terrace { background: #4caf50; border: 1px solid #3e3125; }
.legend-color.booked { background: #999; border: 1px solid #3e3125; }
.legend-color.selected { background: #ff5722; border: 1px solid #fff; }

/* Информация о выбранном столике */
.selected-table-info {
    margin-top: 15px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.selected-table-info.active {
    display: flex;
}

.selected-table-text {
    color: #2e7d32;
    font-weight: 500;
}

.selected-table-bill {
    font-size: 14px;
    color: #ff5722;
}

/* Кнопки управления схемой */
.scheme-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.scheme-btn {
    padding: 8px 16px;
    background: #ffd500;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: 0.3s;
}

.scheme-btn:hover {
    background: #e6c200;
    transform: scale(1.02);
}

/* Стили для ошибок валидации */
.dialog__input.error {
    border-color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1) !important;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2) !important;
}

/* Адаптив */
@media(max-width: 1200px){
  .menu__btn{
    display: flex;
  }
  .menu__list{
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(280px, 85vw);
    margin: 0;
    padding: 80px 24px 24px;
    background: rgba(44, 24, 16, 0.97);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
  }
  .menu__list.active{
    transform: translateX(0);
  }
  .menu__link {
    padding: 12px 0;
    text-align: left;
  }
  .header__top{
    grid-template-columns: auto auto auto;  
  }
}

@media(max-width: 900px){
  .header__content{
    padding-top: 100px;
    margin-bottom: 80px;
    padding-left: 100px;
    max-width: 100%;
  }

  .header__title{
    font-size: 50px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 400;
    max-width: 100%;
    max-height: none;
    margin-bottom: 30px;
  }

  .conteiner .comfort-box,
  .conteiner .comfort-box:nth-child(even){
    flex-direction: column;
  }

  .comfort-box{
    gap: 30px;
    padding-top: 0px;
  }

  .comfort__text{
    text-align:center;
    padding: 0 40px;
  }

  .comfort__img{
    display: flex;
    justify-content: center;
    margin-bottom: 0;
  }

  .comfort__img img{
    width: 75%;
  }

  .contacts .contacts__info {
    display: none;
  }

  .contacts {
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .contacts__icon {
    width: 24px ;
    height: 24px;
    margin: 0;
  }

  .header__contacts {
    gap: 12px;
  }

  .contact__box{
    display: flex;
    flex-direction: column;
    width: 90%;
    min-width: auto;
    margin: 0 auto;
  }

  .contact__text{
    text-align: center;
  }

  .room-scheme {
    min-height: 400px;
  }
    
  .scheme-container {
    min-width: 700px;
    min-height: 450px;
  }
    
  .table-icon.circle { width: 50px; height: 50px; }
  .table-icon.square { width: 50px; height: 50px; }
  .table-icon.rectangle { width: 65px; height: 40px; }
    
  .table-number { font-size: 12px; }
  .table-capacity { font-size: 8px; }
}

@media(max-width: 750px){
  .footer__desc{
    justify-content: end;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
}

@media(max-width: 700px){
  .header__content{
    padding-top: 100px;
    margin-bottom: 80px;
    padding-left: 20px;
    max-width: 100%;
  }

  .header__title{
    font-size: 40px;
    line-height: 1.2;
    text-transform: uppercase;
    max-width: 100%;
    max-height: none;
    margin-bottom: 30px;
  }

  .logo{
    justify-content: start;
  }

  .logo img{
    width: 200px;
    height: auto;
  }

  .header__contacts {
    gap: 12px;
    justify-content: flex-end;
  }
  .contacts {
    padding: 4px 10px;
  }
  .contacts__info {
    font-size: 10px;
  }
  .contacts__address {
    white-space: normal;
    font-size: 9px;
  }
}

@media(max-width: 635px){
  .contact__box{
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .room-scheme-section {
    padding: 10px;
  }
    
  .scheme-legend {
    gap: 10px;
  }
    
  .legend-item {
    font-size: 10px;
  }
    
  .legend-color {
    width: 18px;
    height: 18px;
  }
}

@media(max-width: 570px){
  .logo{
    justify-self: start;
    width: 150px;
  }
  .header__content{
    padding-top: 80px;
    margin-bottom: 80px;
    padding-left: 20px;
    max-width: 100%;
  }

  .header__title{
    font-size: 30px;
    line-height: 1.2;
    text-transform: uppercase;
    max-width: 100%;
    max-height: none;
    margin-bottom: 30px;
  }

  .header_btn{
    font-size: 16px;
    padding: 15px 37px;
  }

  .header__contacts {
    gap: 8px;
  }

  .contacts {
    padding: 4px 8px;
  }

  .contacts__icon {
    width: 16px;
    height: 16px;
  }

  .contacts__phone {
    font-size: 11px;
  }

  .contacts__role,
  .contacts__profile,
  .contacts__address {
    font-size: 8px;
  }

  .footer__desc{
    font-size: 10px;
  }
}

@media(max-width: 505px){
  .contact__box{
    min-width: auto;
  }

  .footer__info{
    flex-direction: column;
  }

  .delivery-container {
    padding: 30px 25px;
  }
}

@media(max-width: 430px){
  .header__contacts {
    font-size: 10px;
  }
  .logo img {
    width: 150px;
  }

  .header__top{
    padding-top: 50px;
  }

  .contact{
    padding: 30px 0 40px 0;
  }

  .contact__box{
    gap: 20px;
  }
  .contact__text{
    padding: 0 15px;
  }
  .contact__map{
    padding: 0;
  }

  .contact__map iframe{
    height: 220px;
    border-radius: 15px;
  }
}

@media(max-width: 375px){
  .logo img {
    width: 133px;
    height: auto;
  }
  .header__contacts {
    font-size: 10px;
    gap: 1px;
    text-align: center;
  }
  .contacts__adress {
    gap: 1px;
  }
  .header__content{
    padding-top: 88px;
  }
  .header__top{
    padding-top: 100px;
  }

  .header__title{
    margin-bottom: 20px;
  }

  .header_btn {
    font-size: 12px;
    padding: 10px 23px;
  }

  .contact {
    padding: 20px 0 35px 0;
  }
  
  .contact__map iframe {
    height: 200px;
  }
  
  .contact__info-link span {
    font-size: 13px;
  }
}