* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #fffaf5;
  color: #1f130b;
}

.page {
  min-height: 100vh;
}

/* ШАПКА */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(255, 250, 245, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0e0d0;
}

.logo {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.04em;
}

.header-center {
  display: flex;
  justify-content: center;
  flex: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: #fff3e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.lang-option {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: #7a4a1c;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.lang-option:hover {
  transform: translateY(-1px);
}

.lang-option.active {
  background: #ffffff;
  color: #5b3212;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* КНОПКИ МЕССЕНДЖЕРОВ */

.contact-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-buttons-compact {
  gap: 6px;
}

.btn-messenger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.1s, box-shadow 0.1s, opacity 0.15s;
  color: #ffffff;
  white-space: nowrap;
}

.btn-messenger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

.btn-icon {
  font-size: 15px;
}

.btn-telegram {
  background: linear-gradient(135deg, #2aabee, #229ed9);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #1ebe57);
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 40px;
  padding: 40px 40px 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 20px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  margin-top: 16px;
}

.hero-badges span {
  background: #fff3e1;
  border-radius: 999px;
  padding: 6px 10px;
}

/* ПОВАР — СЛОЖНАЯ АНИМАЦИЯ */

.chef-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Круг с поваром */

.chef {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #fffaf5, #ffe0bf);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  animation: chef-float 4s ease-in-out infinite;
}

@keyframes chef-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

.chef-active {
  animation: chef-bounce 0.7s ease-out;
  transform: translateY(-6px) rotate(-3deg) scale(1.03);
}

@keyframes chef-bounce {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  30% {
    transform: translateY(-14px) rotate(-4deg) scale(1.05);
  }
  60% {
    transform: translateY(4px) rotate(2deg) scale(1.01);
  }
  100% {
    transform: translateY(-6px) rotate(-3deg) scale(1.03);
  }
}

.chef-body {
  position: relative;
  width: 140px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Шапка */

.chef-hat {
  position: relative;
  margin-bottom: -6px;
}

.chef-hat-top {
  width: 80px;
  height: 36px;
  background: #ffffff;
  border-radius: 40px 40px 30px 30px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.8);
}

.chef-hat-base {
  width: 70px;
  height: 16px;
  background: #ffffff;
  border-radius: 12px;
  margin: -6px auto 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Голова */

.chef-head {
  width: 72px;
  height: 72px;
  background: #ffe0c2;
  border-radius: 50%;
  margin-top: -4px;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.chef-eye {
  width: 6px;
  height: 8px;
  border-radius: 4px;
  background: #2f1c12;
  position: absolute;
  top: 24px;
  transform-origin: center center;
}

.chef-eye-left {
  left: 22px;
}

.chef-eye-right {
  right: 22px;
}

.chef-mouth {
  width: 26px;
  height: 16px;
  border-bottom: 3px solid #b15a35;
  border-radius: 0 0 50% 50%;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

/* Торс */

.chef-torso {
  width: 100px;
  height: 70px;
  background: #ffffff;
  border-radius: 30px 30px 24px 24px;
  margin-top: 6px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

.chef-buttons {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chef-buttons span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e0a96b;
}

/* Рука с тарелкой */

.chef-arm-right {
  position: absolute;
  right: -26px;
  top: 94px;
  width: 86px;
  height: 70px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  transform-origin: 0 0;
}

.chef-hand {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffe0c2;
  margin-right: 4px;
}

.chef-plate {
  position: relative;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
  font-size: 20px;
  transform-origin: center center;
}

/* Пар от пельменей */

.steam {
  position: absolute;
  font-size: 14px;
  color: #ffb267;
  animation: steamUp 2s infinite;
}

.steam-1 {
  top: -14px;
  left: 10px;
  animation-delay: 0s;
}

.steam-2 {
  top: -16px;
  left: 24px;
  animation-delay: 0.4s;
}

.steam-3 {
  top: -18px;
  left: 38px;
  animation-delay: 0.8s;
}

@keyframes steamUp {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

/* Бабл и подсказка */

.chef-bubble {
  margin-top: 10px;
  max-width: 260px;
  background: white;
  padding: 10px 14px;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chef-bubble-visible {
  opacity: 1;
  transform: translateY(0);
}

.chef-bubble p {
  margin: 0;
}

.chef-hint {
  font-size: 11px;
  color: #7a5a3d;
}

/* Доп. анимации деталей при активном состоянии */

.chef-active .chef-hat {
  animation: hat-pop 0.6s ease-out;
}

@keyframes hat-pop {
  0% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px) rotate(-4deg);
  }
  100% {
    transform: translateY(0);
  }
}

.chef-active .chef-arm-right {
  animation: arm-wave 0.6s ease-in-out;
}

@keyframes arm-wave {
  0% {
    transform: rotate(0deg);
  }
  40% {
    transform: rotate(-15deg);
  }
  80% {
    transform: rotate(8deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.chef-active .chef-plate {
  animation: plate-tilt 0.6s ease-in-out;
}

@keyframes plate-tilt {
  0% {
    transform: rotate(0deg) translateY(0);
  }
  40% {
    transform: rotate(-8deg) translateY(-4px);
  }
  100% {
    transform: rotate(0deg) translateY(0);
  }
}

.chef-active .chef-eye {
  animation: eye-blink 0.22s linear forwards;
  animation-delay: 0.18s;
}

@keyframes eye-blink {
  0% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.1);
  }
  100% {
    transform: scaleY(1);
  }
}

/* СЕКЦИИ */

.section {
  padding: 40px 40px;
}

.section h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.section-subtitle {
  margin-bottom: 24px;
  color: #7a5a3d;
  font-size: 14px;
}

.section-alt {
  background: #fff2e3;
}

/* Карточки меню */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.card p {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 14px;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: 700;
}

.badge {
  font-size: 11px;
  background: #ffe7b3;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-alt {
  background: #ffd1c4;
}

/* О НАС */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.about-grid h3 {
  margin-bottom: 6px;
}

/* ПОДВАЛ */

.footer {
  padding: 20px 40px 30px;
  border-top: 1px solid #f0e0d0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ПАДАЮЩИЕ ПЕЛЬМЕНИ */

.dumpling {
  position: absolute;
  pointer-events: none;
  animation-name: dumpling-fall;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
  transform: translateY(0);
  opacity: 1;
  z-index: 50;
}

@keyframes dumpling-fall {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(260px) scale(0.9);
    opacity: 0;
  }
}

/* АДАПТИВ */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-text {
    order: 1;
  }

  .chef-wrapper {
    order: 2;
  }

  .header {
    padding-inline: 16px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 24px;
  }

  .header {
    padding-inline: 14px;
  }

  .section {
    padding-inline: 14px;
  }

  .chef {
    width: 200px;
    height: 200px;
  }

  .contact-buttons {
    justify-content: flex-start;
  }

  .header .contact-buttons {
    justify-content: flex-end;
  }

  .header-right {
    gap: 10px;
  }

  .cards-grid,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
}
