:root {
  --primary: #9d2e33;
  --primary-dark: #7a1f24;
  --primary-light: #c8686d;
  --secondary: #d4a96a;
  --secondary-dark: #b3894c;
  --secondary-light: #efd3a7;
  --accent: #405e4c;
  --dark: #1d1d1d;
  --dark-gray: #2d2d2d;
  --medium-gray: #5a5a5a;
  --light-gray: #e9e5e0;
  --off-white: #f8f6f3;
  --white: #ffffff;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;

  --font-heading: "Playfair Display", serif;
  --font-body: "Outfit", sans-serif;

  --transition-fast: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  --transition-normal: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  --transition-slow: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--off-white);
  overflow-x: hidden;
  font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  text-align: center;
  cursor: pointer;
  border: none;
  min-width: 44px;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--dark);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--dark);
  color: var(--dark);
}

.btn-outline:hover {
  background-color: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mt-5 {
  margin-top: var(--spacing-xl);
}

.header {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  transition: var(--transition-normal);
}

.header.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-xs) 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.header.scrolled .logo {
  color: var(--dark);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-icon {
  color: var(--white);
  font-size: 1.2rem;
  position: relative;
  cursor: pointer;
}

.header.scrolled .nav-icon {
  color: var(--dark);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--secondary);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.pexels.com/photos/1639562/pexels-photo-1639562.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2") center/cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--secondary);
  margin-bottom: var(--spacing-sm);
}

.hero-title {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  color: var(--white);
  line-height: 1.2;
  animation: fadeInUp 1s ease-out;
}

.hero-title span {
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xl);
  max-width: 550px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  animation: fadeInUp 1s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  animation: fadeInUp 1s ease-out 0.4s forwards;
  opacity: 0;
}

.hero-btn-outline {
  background-color: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

.hero-btn-outline:hover {
  background-color: var(--secondary);
  color: var(--dark);
  border-color: var(--secondary);
}

.hero-scroll {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  gap: 10px;
  opacity: 0.8;
  transition: var(--transition-normal);
  animation: fadeIn 1s ease-out 1s forwards;
  opacity: 0;
}

.hero-scroll:hover {
  opacity: 1;
}

.hero-scroll i {
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.8;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.about {
  padding: var(--spacing-xxl) 0;
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-10deg);
  transition: var(--transition-normal);
}

.about-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.about-img {
  width: 400px;
  height: 500px;
  object-fit: cover;
  background: url("https://img.freepik.com/free-psd/close-up-hamburger-isolated_23-2151604186.jpg?t=st=1742657029~exp=1742660629~hmac=0dce3b9e84b0e34ac76986bd10cfbc23f1cf65566346e62dc558fd5bb3c84f05&w=826") center/cover no-repeat;
  transition: var(--transition-slow);
}

.about-img:hover {
  transform: scale(1.05);
}

.about-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background-color: var(--secondary);
  color: var(--dark);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--secondary);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.about-text {
  font-size: 1.05rem;
  color: var(--medium-gray);
  margin-bottom: var(--spacing-lg);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  transition: var(--transition-normal);
}

.about-feature:hover {
  transform: translateX(5px);
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(157, 46, 51, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition-normal);
}

.about-feature:hover .about-feature-icon {
  background-color: var(--primary);
  color: var(--white);
}

.about-feature-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.about-feature-text {
  font-size: 0.95rem;
  color: var(--medium-gray);
}

.menu {
  padding: 4rem 0;
  background-color: var(--off-white);
}

.menu-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.menu-item.show {
  opacity: 1;
  transform: translateY(0);
}

.menu-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.menu-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  position: relative;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.menu-item-img {
  height: 350px;
  width: 100%;
  object-fit: cover;
  background-position: center;
  background-size: cover;
}

.menu-item-content {
  padding: 20px;
}

.menu-item-category {
  color: #888;
  font-size: 14px;
  margin-bottom: 5px;
}

.menu-item-name {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.menu-item-description {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.menu-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-item-price {
  font-weight: 600;
  color: #222;
  font-size: 18px;
}

.menu-item-btn {
  width: 40px;
  height: 40px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  border: none;
  outline: none;
  min-width: 44px;
  min-height: 44px;
}

.menu-item-btn:hover {
  background: #c0392b;
}

.menu-item-btn:active {
  transform: scale(0.95);
}

.menu-item-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #e74c3c;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 600;
}

/* ========== АДАПТИВНЫЕ ТАБЫ МЕНЮ ========== */
.menu-tabs-container {
  position: relative;
  margin-bottom: 20px;
}

.menu-tabs {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.menu-tab {
  padding: 8px 16px;
  background: #f5f5f5;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  border: none;
  outline: none;
  min-height: 44px;
  min-width: 100px;
  text-align: center;
  flex: 1;
  max-width: 150px;
}

.menu-tab.active {
  background: #e74c3c;
  color: white;
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
  .menu-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 15px;
  }
  
  .menu-tab {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 40px;
    min-width: auto;
    max-width: 100%;
    border-radius: 12px;
  }
  
  /* Уменьшаем отступы для очень маленьких экранов */
  @media (max-width: 360px) {
    .menu-tab {
      padding: 6px 10px;
      font-size: 11px;
      min-height: 36px;
    }
  }
}

/* Для средних экранов - 3 колонки */
@media (min-width: 481px) and (max-width: 768px) {
  .menu-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .menu-tab {
    max-width: 100%;
  }
}

/* Для больших экранов - горизонтальное расположение */
@media (min-width: 769px) {
  .menu-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #e74c3c #f5f5f5;
    padding-bottom: 10px;
  }
  
  .menu-tabs::-webkit-scrollbar {
    height: 6px;
  }
  
  .menu-tabs::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
  }
  
  .menu-tabs::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 3px;
  }
  
  .menu-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-name {
  flex: 2;
}

.cart-item-quantity {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.quantity-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.quantity-btn:hover {
  background: #f5f5f5;
}

.cart-item-price {
  flex: 1;
  text-align: right;
  font-weight: 600;
}

.remove-item {
  margin-left: 15px;
  background: none;
  border: none;
  color: #e74c3c;
  font-size: 20px;
  cursor: pointer;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-item.show {
  animation: fadeIn 0.3s ease forwards;
}

.special {
  padding: var(--spacing-xxl) 0;
  background-color: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.special::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://img.freepik.com/free-psd/close-up-hamburger-isolated_23-2151604186.jpg?t=st=1742657029~exp=1742660629~hmac=0dce3b9e84b0e34ac76986bd10cfbc23f1cf65566346e62dc558fd5bb3c84f05&w=826") center/cover no-repeat;
  opacity: 0.15;
}

.special-container {
  position: relative;
  z-index: 1;
}

.special-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
}

.special-subtitle {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--secondary);
  margin-bottom: var(--spacing-sm);
}

.special-title {
  font-size: 2.8rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-sm);
  color: var(--white);
}

.special-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--secondary);
}

.special-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
}

.special-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.special-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.special-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to bottom right,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0));
  transform: rotate(30deg);
  transition: var(--transition-slow);
  opacity: 0;
}

.special-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background-color: rgba(255, 255, 255, 0.08);
}

.special-item:hover::before {
  animation: shine 1.5s;
}

@keyframes shine {
  0% {
    opacity: 0;
    transform: rotate(30deg) translate(-10%, -10%);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(30deg) translate(100%, 100%);
  }
}

.special-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.special-item-title {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: var(--spacing-xs);
  font-family: var(--font-heading);
}

.special-item-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--secondary);
}

.special-item-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.special-item-features {
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.special-item-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-normal);
}

.special-item-feature:hover {
  color: var(--white);
  transform: translateX(5px);
}

.special-item-feature i {
  color: var(--secondary);
  font-size: 0.9rem;
}

.special-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.special-item-badge {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: pulse 2s infinite;
}

.testimonials {
  padding: var(--spacing-xxl) 0;
  background-color: var(--white);
}

.testimonial-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
}

.testimonial-subtitle {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.testimonial-title {
  font-size: 2.8rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.testimonial-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--secondary);
}

.testimonial-description {
  font-size: 1.05rem;
  color: var(--medium-gray);
}

.testimonial-slider {
  margin-top: var(--spacing-xl);
  position: relative;
}

.testimonial-item {
  background-color: var(--off-white);
  border-radius: var(--radius-sm);
  padding: var(--spacing-xl);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.testimonial-item:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial-quote {
  font-size: 5rem;
  color: rgba(157, 46, 51, 0.1);
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.testimonial-author-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  background: url("https://img.freepik.com/free-psd/close-up-hamburger-isolated_23-2151604186.jpg?t=st=1742657029~exp=1742660629~hmac=0dce3b9e84b0e34ac76986bd10cfbc23f1cf65566346e62dc558fd5bb3c84f05&w=826") center/cover no-repeat;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.testimonial-author-img:hover {
  transform: scale(1.1);
}

.testimonial-author-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  font-family: var(--font-heading);
}

.testimonial-author-title {
  font-size: 0.95rem;
  color: var(--medium-gray);
}

.testimonial-rating {
  color: var(--secondary);
  font-size: 1rem;
  margin-top: var(--spacing-xs);
}

.order {
  padding: var(--spacing-xl) 0;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.order::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://img.freepik.com/free-psd/close-up-hamburger-isolated_23-2151604186.jpg?t=st=1742657029~exp=1742660629~hmac=0dce3b9e84b0e34ac76986bd10cfbc23f1cf65566346e62dc558fd5bb3c84f05&w=826") center/cover no-repeat;
  opacity: 0.1;
}

.order-title {
  font-size: 2.2rem;
  margin-bottom: var(--spacing-md);
  color: var(--white);
  position: relative;
  z-index: 1;
}

.order-text {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.order-btn {
  background-color: var(--secondary);
  color: var(--dark);
  font-weight: 600;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  display: inline-block;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 44px;
}

.order-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: var(--transition-slow);
}

.order-btn:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.order-btn:hover::before {
  left: 100%;
}

.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: var(--spacing-xxl) 0 var(--spacing-md);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  display: inline-block;
  font-weight: 700;
  letter-spacing: 2px;
  transition: var(--transition-normal);
}

.footer-logo:hover {
  color: var(--secondary);
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-lg);
  font-size: 0.95rem;
  max-width: 400px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  transition: var(--transition-normal);
  min-width: 44px;
  min-height: 44px;
}

.footer-social-link:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
  color: var(--white);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: var(--spacing-sm);
}

.footer-link a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.95rem;
  min-height: 44px;
}

.footer-link a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-link i {
  font-size: 0.8rem;
}

.footer-info {
  margin-bottom: var(--spacing-md);
  display: flex;
  gap: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-info i {
  color: var(--secondary);
  font-size: 1rem;
  margin-top: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  text-align: center;
}

.footer-bottom a {
  color: var(--secondary);
  transition: var(--transition-normal);
}

.footer-bottom a:hover {
  color: var(--secondary-light);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  position: relative;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-login,
.btn-register {
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.btn-login {
  background: transparent;
  color: #e74c3c;
  border: 2px solid #e74c3c;
}

.btn-register {
  background: #e74c3c;
  color: white;
  border: none;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.2), transparent);
  transition: 0.5s;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  background: #e74c3c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-register::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-register:hover::before {
  left: 100%;
}

.btn-register:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.cart-icon-container {
  position: relative;
  margin-right: 15px;
}

.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  /* background: #ffffff; */
  border-radius: 50%;
  transition: all 0.3s;
  min-height: 44px;
}

.cart-icon:hover {
  background: #e74c3c;
  color: white;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.cart-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
}

.cart-modal-content {
  background: #fff;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
  padding: 20px;
  width: 500px;
  margin: 20px auto;
}

.cart-header {
  padding: 20px;
  background: #e74c3c;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  margin: 0;
  font-size: 20px;
}

.close-modal {
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.2s;
  min-height: 44px;
}

.close-modal:hover {
  transform: rotate(90deg);
}

.cart-body {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.cart-items {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.cart-item-price {
  color: #e74c3c;
  font-weight: 600;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  margin: 0 15px;
}

.quantity-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  min-width: 44px;
  min-height: 44px;
}

.quantity-btn:hover {
  background: #f5f5f5;
}

.quantity-value {
  margin: 0 10px;
  min-width: 20px;
  text-align: center;
}

.remove-item {
  color: #e74c3c;
  cursor: pointer;
  padding: 5px;
  transition: all 0.2s;
  min-height: 44px;
}

.remove-item:hover {
  transform: scale(1.2);
}

.cart-item-image-container {
  margin-right: 10px;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 2px solid #e74c3c;
  font-size: 18px;
  font-weight: 600;
}

.empty-cart {
  text-align: center;
  padding: 30px;
  color: #888;
}

.cart-footer {
  padding: 20px;
  background: #f9f9f9;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  min-height: 44px;
}

.phone-input {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.flag-container {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  height: 42px;
  margin-right: -1px;
}

.flag {
  width: 33px;
  height: 12px;
  margin-right: 5px;
}

.order-type-buttons {
  display: flex;
  gap: 10px;
}

.order-type-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.order-type-btn.active {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

/* ========== СТИЛИ ДЛЯ СПОСОБОВ ОПЛАТЫ С ЛОГОТИПАМИ ========== */
.payment-methods {
  display: flex;
  gap: 10px;
}

.payment-method {
  flex: 1;
  padding: 15px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  position: relative;
  overflow: hidden;
  background: white;
}

.payment-method:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.payment-method.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(157, 46, 51, 0.1), rgba(157, 46, 51, 0.05));
  position: relative;
}

.payment-method.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.payment-method.active::after {
  content: '✓';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.payment-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.payment-method:hover .payment-icon {
  transform: scale(1.1);
}

.payment-icon i {
  font-size: 24px;
  color: var(--primary);
}

.payment-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: filter 0.3s ease;
  font-size: 30px;
}

.payment-method.active .payment-logo {
  filter: grayscale(0) brightness(0.9);
}

.payment-method span {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
  line-height: 1.3;
  margin-top: 5px;
}

/* Анимация при выборе способа оплаты */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(157, 46, 51, 0.2); }
  70% { box-shadow: 0 0 0 6px rgba(157, 46, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(157, 46, 51, 0); }
}

.payment-method.active {
  animation: pulse-glow 1s ease;
}

.order-summary {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.order-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

.submit-order-btn {
  width: 100%;
  padding: 15px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.submit-order-btn:hover {
  background: #c0392b;
}

.submit-order-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cart-header {
  padding: 20px;
  background: #e74c3c;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  margin: 0;
  font-size: 20px;
}

.close-modal {
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.2s;
  min-height: 44px;
}

.close-modal:hover {
  transform: rotate(90deg);
}

.cart-body {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.cart-items {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.cart-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.cart-item-price {
  color: #e74c3c;
  font-weight: 600;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  margin: 0 15px;
}

.quantity-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  min-width: 44px;
  min-height: 44px;
}

.quantity-value {
  margin: 0 10px;
  min-width: 20px;
  text-align: center;
}

.remove-item {
  color: #e74c3c;
  cursor: pointer;
  padding: 5px;
  transition: all 0.2s;
  min-height: 44px;
}

.remove-item:hover {
  transform: scale(1.2);
}

.cart-item-image-container {
  margin-right: 10px;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 2px solid #e74c3c;
  font-size: 18px;
  font-weight: 600;
}

.empty-cart {
  text-align: center;
  padding: 30px;
  color: #888;
}

.cart-footer {
  padding: 20px;
  background: #f9f9f9;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border 0.3s;
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #e74c3c;
  outline: none;
}

.phone-input {
  display: flex;
  align-items: center;
}

.flag-container {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  height: 42px;
  margin-right: -1px;
}

.order-type-buttons {
  display: flex;
  gap: 10px;
}

.order-type-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.order-type-btn.active {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.toast-container {
  position: fixed;
  top: 70px;
  right: 13px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}

.toast {
  padding: 15px 20px;
  background: #4CAF50;
  color: white;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s, fadeOut 0.5s 2.5s forwards;
}

.toast.error {
  background: #e74c3c;
}

.toast.warning {
  background: #f39c12;
}

.toast i {
  font-size: 20px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

@keyframes flyToCart {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.1) translate(100px, -100px);
    opacity: 0;
  }
}

.flying-item {
  position: fixed;
  width: 50px;
  height: 50px;
  background-size: cover;
  border-radius: 50%;
  z-index: 999;
  animation: flyToCart 0.6s forwards;
}

.compact-language-selector {
  position: relative;
  width: 60px;
  margin-left: 10px;
}

.compact-language-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 1px solid rgba(32, 27, 27, 0.3);
  color: var(--white);
  padding: 5px 8px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  backdrop-filter: blur(5px);
  background: rgba(248, 248, 248, 0.1);
}

.header.scrolled .compact-language-btn {
  color: var(--dark);
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.05);
}

.compact-language-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--secondary);
  transform: scale(1.05);
}

.header.scrolled .compact-language-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.compact-language-btn i {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.compact-language-selector.active .compact-language-btn i {
  transform: rotate(180deg);
}

.compact-language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 5px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.compact-language-selector.active .compact-language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.compact-language-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 44px;
}

.compact-language-item:last-child {
  border-bottom: none;
}

.compact-language-item:hover {
  background: rgba(157, 46, 51, 0.1);
  color: var(--primary);
  padding-left: 16px;
}

.compact-language-item.active {
  background: rgba(157, 46, 51, 0.15);
  color: var(--primary);
  font-weight: 500;
}

.compact-language-flag {
  margin-right: 8px;
  font-size: 14px;
}

.mobile-nav-placeholder {
  display: none;
}

/* ========== СТИЛИ ДЛЯ ДОСТАВКИ В КОРЗИНЕ ========== */
.delivery-item {
  background-color: rgba(231, 76, 60, 0.08) !important;
  border-left: 3px solid #e74c3c;
  margin-top: 10px;
  padding: 10px 0 !important;
}

.delivery-item .cart-item-name {
  color: #e74c3c;
  font-weight: 600;
}

.delivery-item .cart-item-price {
  color: #e74c3c;
}

/* ========== УМЕНЬШЕНИЕ ИЗОБРАЖЕНИЙ В КОРЗИНЕ ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 768px) {
  .cart-item-image {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
  
  .cart-item-image-container {
    margin-right: 8px !important;
  }
  
  .cart-item {
    padding: 10px 0 !important;
  }
  
  .quantity-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }
  
  .quantity-value {
    min-width: 15px !important;
    margin: 0 5px !important;
  }
  
  .remove-item {
    padding: 3px !important;
    font-size: 16px !important;
  }
  
  .cart-item-name {
    font-size: 13px !important;
  }
  
  .cart-item-price {
    font-size: 13px !important;
  }
  
  .delivery-item {
    padding: 8px 0 !important;
  }
  
  .delivery-item .cart-item-image-container div {
    width: 35px !important;
    height: 35px !important;
  }
}

@media (max-width: 400px) {
  .cart-item-image {
    width: 35px !important;
    height: 35px !important;
  }
  
  .cart-item-name {
    font-size: 12px !important;
  }
  
  .cart-item-price {
    font-size: 12px !important;
  }
  
  .quantity-btn {
    width: 25px !important;
    height: 25px !important;
  }
  
  .cart-modal-content {
    width: 95%;
    padding: 15px;
    margin: 10px auto;
  }
}

/* ========== НОВЫЙ АДРЕС САМОВЫВОЗА ========== */
#pickupLocation option[value="Руба руи мехру мухаббат пиццерия"] {
  color: #e74c3c;
  font-weight: 500;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ДЛЯ СПОСОБОВ ОПЛАТЫ ========== */

/* Эффект свечения для активного метода оплаты */
.payment-method.active {
  position: relative;
  z-index: 1;
}

.payment-method.active .payment-icon {
  position: relative;
  z-index: 2;
}

.payment-method.active .payment-logo {
  position: relative;
  z-index: 2;
  animation: logo-pulse 2s infinite;
}

@keyframes logo-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Градиентный фон для активной карточки */
.payment-method.active {
  background: linear-gradient(
    135deg,
    rgba(157, 46, 51, 0.05) 0%,
    rgba(157, 46, 51, 0.02) 100%
  );
}

/* Эффект при наведении для логотипов */
.payment-method:not(.active):hover .payment-logo {
  animation: logo-shake 0.5s ease;
}

@keyframes logo-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

/* Индикатор выбранного метода в форме */
.order-summary::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(157, 46, 51, 0) 0%, 
    var(--primary-light) 50%, 
    rgba(157, 46, 51, 0) 100%);
  margin: 10px 0 15px 0;
}

/* Временные стили для логотипов, если изображения отсутствуют */
/* .payment-method[data-method="ds"] .payment-icon {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  border-radius: 8px;
  position: relative;
} */
/* 
.payment-method[data-method="ds"] .payment-icon::after {
  content: 'DC';
  color: white;
  font-weight: bold;
  font-size: 14px;
} */

/* .payment-method[data-method="alif"] .payment-icon {
  background: linear-gradient(135deg, #2196F3, #0D47A1);
  border-radius: 8px;
  position: relative;
} */

/* .payment-method[data-method="alif"] .payment-icon::after {
  content: 'A';
  color: white;
  font-weight: bold;
  font-size: 16px;
  font-family: 'Playfair Display', serif;
} */

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .payment-methods {
    flex-direction: column;
    gap: 8px;
  }
  
  .payment-method {
    min-height: 70px;
    padding: 10px 8px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
  }
  
  .payment-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .payment-icon i {
    font-size: 20px;
  }
  
  .payment-method span {
    font-size: 11px;
    margin-top: 0;
  }
  
  .payment-logo {
    width: 24px;
    height: 24px;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 400px) {
  .payment-method {
    min-height: 60px;
    padding: 8px 6px;
    gap: 8px;
  }
  
  .payment-icon {
    width: 24px;
    height: 24px;
  }
  
  .payment-icon i {
    font-size: 18px;
  }
  
  .payment-logo {
    width: 20px;
    height: 20px;
  }
  
  .payment-method span {
    font-size: 10px;
  }
}

@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .section-title,
  .menu-title,
  .special-title,
  .testimonial-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .about-image {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .special-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title,
  .menu-title,
  .special-title,
  .testimonial-title {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .special-grid {
    gap: 15px;
  }
  
  .special-item {
    padding: 15px;
  }
  
  .cart-modal-content {
    width: 95%;
    margin: 10px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .special-item-header {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .testimonial-content {
    font-size: 1.1rem;
  }

  body {
    font-size: 14px;
    line-height: 1.8;
  }

  .hero-buttons .btn {
    animation: pulse 2s infinite;
  }
  
  body {
    font-size: 14px;
  }
  
  h1, h2, h3 {
    font-size: 1.3rem;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  
  .special-title {
    font-size: 1.8rem;
  }
  
  .special-item-title {
    font-size: 1.3rem;
  }
  
  .special-item-feature {
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 10px;
  }
  
  .cart-icon-container {
    margin-right: 1px;
  }
  
  .cart-count {
    width: 16px;
    height: 16px;
    font-size: 10px;
    top: -5px;
    right: -5px;
  }
  
  .special-item {
    padding: 12px;
  }
  
  .special-item-title {
    font-size: 1.4rem;
  }
  
  .special-item-subtitle {
    font-size: 0.8rem;
  }
  
  .special-item-feature {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }
  
  .special-item-feature i {
    font-size: 10px;
  }
  
  .special-item-footer .btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons .btn {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
  
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
  
  .menu-item-img {
    height: 120px;
  }
  
  .menu-item-content {
    padding: 12px;
  }
  
  .menu-item-name {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
  
  .menu-item-description {
    font-size: 0.7rem;
    margin-bottom: 10px;
    line-height: 1.2;
  }
  
  .menu-item-price {
    font-size: 14px;
  }
  
  .menu-item-btn {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }
  
  .menu-tabs {
    gap: 8px;
    margin-top: 15px;
  }
  
  .menu-tab {
    padding: 6px 12px;
    font-size: 11px;
    min-height: 36px;
  }
  
  .footer-grid {
    gap: 1.5rem;
  }
  
  .footer-logo {
    font-size: 1.5rem;
  }
  
  .footer-text {
    font-size: 0.8rem;
  }
  
  .footer-heading {
    font-size: 1.1rem;
  }
  
  .footer-link a {
    font-size: 0.85rem;
  }
  
  .cart-modal-content {
    width: 95%;
    margin: 10px;
    padding: 15px;
  }
  
  .cart-header {
    padding: 15px;
  }
  
  .cart-item {
    padding: 10px 0;
  }
  
  .cart-item-image {
    width: 50px;
    height: 50px;
  }
  
  .quantity-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 8px;
  }
  
  .navbar {
    padding: 10px 0;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .special-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .special-item-features {
    margin-bottom: 10px;
  }
  
  .special-item-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .menu-grid {
    grid-template-columns: 1fr;
  }
  
  .menu-item-img {
    height: 150px;
  }
  
  .section-title,
  .menu-title,
  .special-title,
  .testimonial-title {
    font-size: 1.5rem;
  }
  
  .menu-item:hover {
    transform: scale(1.05) rotate(2deg);
    transition: transform 0.2s ease;
  }
}

@media (max-width: 280px) {
  .logo {
    font-size: 1.2rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 0.8rem;
  }
  
  .menu-item-name {
    font-size: 0.8rem;
  }
  
  .menu-item-description {
    font-size: 0.65rem;
    line-height: 1.1;
  }
  
  .menu-item-price {
    font-size: 12px;
  }
  
  .special-item-title {
    font-size: 1.1rem;
  }
  
  .special-item-feature {
    font-size: 0.7rem;
  }
  
  .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.7rem;
  }
}

.menu-item-category-indicator {
    display: none !important;
}

/* Стили для кнопки входа */
.login-container {
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.login-icon {
    display: flex;
    align-items: center;
    color: var(--white);
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    gap: 5px;
}

.header.scrolled .login-icon {
    color: var(--dark);
    background: rgba(0, 0, 0, 0.05);
}

.login-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header.scrolled .login-icon:hover {
    background: rgba(0, 0, 0, 0.1);
}

.login-text {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Для мобильных устройств скрываем текст */
@media (max-width: 768px) {
    .login-text {
        display: none;
    }
    .login-icon {
        padding: 5px;
        width: 44px;
    }
}

/* Для очень маленьких экранов делаем еще компактнее */
@media (max-width: 400px) {
    .login-icon {
        padding: 3px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .login-container {
        margin-right: 2px;
    }
    .toast-container {
  
     font-size: 8px;
}
}

/* Модальное окно для авторизации */
.auth-required-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: fadeIn 0.3s ease;
}

.auth-modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.auth-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #333;
}

.close-auth-modal {
  font-size: 28px;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}

.close-auth-modal:hover {
  color: #e74c3c;
}

.auth-modal-body {
  padding: 24px;
}

.auth-modal-body p {
  margin: 0 0 20px 0;
  color: #555;
  line-height: 1.5;
}

.auth-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-btn {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.auth-btn.btn-primary {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: none;
}

.auth-btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.auth-btn.btn-secondary {
  background: #3498db;
  color: white;
  border: none;
}

.auth-btn.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.auth-cancel {
  background: transparent;
  border: 1px solid #ddd;
  color: #666;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

.auth-cancel:hover {
  background: #f5f5f5;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Для мобильных */
@media (max-width: 480px) {
  .auth-modal-content {
    width: 95%;
    margin: 10px;
  }
  
  
  .auth-modal-buttons {
    flex-direction: column;
  }
}

/* Стили для статус-уведомлений в админке */
.status-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 350px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  border-left: 4px solid #3498db;
}

.status-notification.show {
  transform: translateX(0);
}

.status-notification.success {
  border-left-color: #27ae60;
}

.status-notification.warning {
  border-left-color: #f39c12;
}

.status-notification.error {
  border-left-color: #e74c3c;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Индикатор подключения */
.connection-status {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #f8f9fa;
  margin-right: 10px;
}

.connection-status.online {
  background: #d4edda;
  color: #155724;
}

.connection-status.offline {
  background: #f8d7da;
  color: #721c24;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .status-notification {
    width: calc(100% - 40px);
    top: 10px;
    right: 10px;
  }
}

/* ========== СТИЛИ ДЛЯ СПОСОБОВ ОПЛАТЫ С ЛОГОТИПАМИ ========== */
.payment-methods {
    display: flex;
    gap: 8px;
    width: 100%;
}

.payment-method {
    flex: 1;
    padding: 15px 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 85px;
    position: relative;
    overflow: hidden;
    background: white;
    min-width: 0; /* Важно для корректного сжатия */
}

.payment-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.payment-method.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(157, 46, 51, 0.1), rgba(157, 46, 51, 0.05));
    position: relative;
}

.payment-method.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.payment-method.active::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.payment-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    transition: transform 0.3s ease;
}

.payment-method:hover .payment-icon {
    transform: scale(1.1);
}

.payment-icon i {
    font-size: 20px;
    color: var(--primary);
}

.payment-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: filter 0.3s ease;
    width: 28px;
    height: 28px;
}

.payment-method.active .payment-logo {
    filter: grayscale(0) brightness(0.9);
}

.payment-method span {
    font-size: 11px;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
    line-height: 1.2;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Анимация при выборе способа оплаты */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(157, 46, 51, 0.2); }
    70% { box-shadow: 0 0 0 6px rgba(157, 46, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(157, 46, 51, 0); }
}

.payment-method.active {
    animation: pulse-glow 1s ease;
}

/* ========== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ========== */
/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .payment-methods {
        flex-direction: row !important; /* Принудительно в строку */
        gap: 6px;
        flex-wrap: nowrap; /* Запрещаем перенос на новую строку */
        justify-content: space-between;
    }
    
    .payment-method {
        min-height: 75px;
        padding: 10px 5px;
        flex: 1;
        min-width: 0; /* Разрешаем сжатие */
        max-width: calc(33.33% - 4px); /* 3 элемента с отступами */
    }
    
    .payment-icon {
        width: 26px;
        height: 26px;
        margin-bottom: 4px;
    }
    
    .payment-icon i {
        font-size: 18px;
    }
    
    .payment-logo {
        width: 24px;
        height: 24px;
    }
    
    .payment-method span {
        font-size: 10px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 2px;
    }
    
    .payment-method.active::after {
        top: 3px;
        right: 3px;
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
}

/* Маленькие мобильные устройства (до 480px) */
@media (max-width: 480px) {
    .payment-methods {
        gap: 4px;
    }
    
    .payment-method {
        min-height: 70px;
        padding: 8px 4px;
    }
    
    .payment-icon {
        width: 22px;
        height: 22px;
    }
    
    .payment-icon i {
        font-size: 16px;
    }
    
    .payment-logo {
        width: 20px;
        height: 20px;
    }
    
    .payment-method span {
        font-size: 9px;
    }
    
    /* Уменьшаем отступы и размеры для очень маленьких экранов */
    @media (max-width: 360px) {
        .payment-method {
            min-height: 65px;
            padding: 6px 3px;
        }
        
        .payment-icon {
            width: 30px;
            height: 20px;
            margin-bottom: 3px;
        }
        
        .payment-logo {
            width: 18px;
            height: 18px;
        }
        
        .payment-method span {
            font-size: 8px;
        }
    }
}

/* Для очень маленьких экранов можно скрыть текст, оставить только иконки */
@media (max-width: 320px) {
    .payment-method span {
        display: none; /* Скрываем текст на очень маленьких экранах */
    }
    
    .payment-method {
        min-height: 50px;
        justify-content: center;
        padding: 8px 2px;
    }
    
    .payment-icon {
        margin-bottom: 0;
    }
}

/* Обеспечиваем правильное отображение в модальном окне на мобильных */
@media (max-width: 768px) {
    .cart-modal-content {
        width: 95%;
        margin: 10px auto;
        padding: 15px;
    }
    
    .cart-footer {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .form-group input, 
    .form-group textarea, 
    .form-group select {
        padding: 8px;
        font-size: 14px;
    }
    
    /* Гарантируем, что payment-methods не переносится на мобильных */
    .payment-methods {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow: hidden;
    }
}

/* Специальные стили для Android/iOS */
@media (hover: none) and (pointer: coarse) {
    .payment-method {
        /* Увеличиваем область нажатия для touch устройств */
        padding: 12px 6px;
    }
    
    .payment-method:active {
        background-color: rgba(157, 46, 51, 0.1);
        transform: scale(0.98);
    }
}

/* Эффект свечения для активного метода оплаты на мобильных */
@media (max-width: 768px) {
    .payment-method.active {
        box-shadow: 0 2px 8px rgba(157, 46, 51, 0.2);
    }
    
    .payment-method.active .payment-logo {
        animation: mobile-logo-pulse 1.5s infinite;
    }
    
    @keyframes mobile-logo-pulse {
        0% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.1); opacity: 0.9; }
        100% { transform: scale(1); opacity: 1; }
    }
}

/* Улучшаем доступность для скринридеров на мобильных */
@media (max-width: 768px) {
    .payment-method {
        position: relative;
    }
    
    .payment-method::before {
        content: '';
        position: absolute;
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        border: 2px solid transparent;
        border-radius: 10px;
        pointer-events: none;
    }
    
    .payment-method:focus::before {
        border-color: var(--primary);
    }
}

/* Дополнительная оптимизация для горизонтальной ориентации на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .payment-methods {
        gap: 8px;
    }
    
    .payment-method {
        min-height: 60px;
        padding: 10px 6px;
    }
    
    .payment-method span {
        font-size: 11px;
    }
}

/* Стили для обязательных полей с ошибками */
.error-field {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

.form-group label.required::after {
  content: " *";
  color: #e74c3c;
}

/* Визуальное обозначение обязательного поля адреса */
#addressGroup label::after {
  content: " *";
  color: #e74c3c;
  font-weight: bold;
}


#preloadder {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: hsl(0deg, 0%, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(../loader.gif);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 35%;
  z-index: 99999;
}


