/* style.css — ФИНАЛЬНАЯ ВЕРСИЯ С ОГРАНИЧЕНИЕМ ШИРИНЫ КАРТОЧЕК */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Nunito Sans', sans-serif;
  background-color: #fdf8f2;
  color: #2c241b;
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; letter-spacing: 0.5px; }
h2 { font-size: 3rem; margin-bottom: 1.2rem; color: #4a3726; position: relative; display: inline-block; }
h2:after { content: ''; position: absolute; bottom: -10px; left: 0; width: 70%; height: 3px; background: linear-gradient(90deg, #b87b54, #e2b99a); border-radius: 4px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Ограничение ширины контейнера на очень больших экранах */
@media (min-width: 1600px) {
  .container { max-width: 1300px; }
}

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.parallax-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M10 10 L20 20 M30 10 L40 20 M50 10 L60 20 M70 10 L80 20 M90 10 L90 20 M10 30 L20 40 M30 30 L40 40" stroke="%23d4b59e" stroke-width="1" opacity="0.1" /%3E%3C/svg%3E'); opacity: 0.15; pointer-events: none; z-index: 0; }
.hero { position: relative; background: linear-gradient(145deg, #f5e6d9 0%, #f2dccb 100%); padding: 20px 0 64px; border-bottom: 6px solid #a57254; overflow: hidden; }
.hero .container { position: relative; z-index: 2; }
header { display: flex; justify-content: center; align-items: center; padding: 20px 0 30px; }
.logo { cursor: pointer; }
.logo-img { height: 100px; width: auto; display: block; }
.hero-content { display: flex; align-items: center; gap: 40px; margin-top: 20px; flex-wrap: wrap; }
.hero-text { flex: 1 1 300px; }
.hero-text h1 { font-size: 4rem; line-height: 1.2; margin-bottom: 24px; color: #3a281b; }
.hero-text p { font-size: 1.3rem; margin-bottom: 32px; }
.btn { display: inline-block; background-color: #7b4a2c; color: white; padding: 16px 40px; border-radius: 60px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 20px -5px rgba(123,74,44,0.3); transition: 0.3s; animation: pulse 2.5s infinite; }
.btn:hover { background-color: #5e3820; transform: translateY(-5px); box-shadow: 0 20px 30px -5px #7b4a2c; animation: none; }
.hero-image { flex: 1 1 360px; text-align: center; }
.hero-main-img { width: 100%; height: auto; border-radius: 40% 60% 30% 70% / 50% 40% 60% 50%; box-shadow: 30px 30px 40px rgba(0,0,0,0.08); border: 6px solid #fff9f2; object-fit: cover; animation: shadowBreath 6s ease-in-out infinite; }
@keyframes shadowBreath { 0% { box-shadow: 30px 30px 40px rgba(0,0,0,0.08); } 50% { box-shadow: 40px 40px 55px rgba(0,0,0,0.12); } 100% { box-shadow: 30px 30px 40px rgba(0,0,0,0.08); } }
.hero-main-img:hover { animation-play-state: paused; box-shadow: 40px 40px 55px rgba(0,0,0,0.15); transform: scale(1.02); transition: transform 0.3s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(123, 74, 44, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(123, 74, 44, 0); } 100% { box-shadow: 0 0 0 0 rgba(123, 74, 44, 0); } }
.about { padding: 80px 0; background-image: url('images/about-bg.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: scroll; position: relative; z-index: 1; }
.about::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(253, 248, 242, 0.85); z-index: -1; }
.about .container { position: relative; z-index: 2; }
.about-grid { display: flex; gap: 50px; align-items: flex-start; flex-wrap: wrap; }
.about-text { flex: 2; }
.about-text p { font-size: 1.25rem; margin-bottom: 20px; }
.feature-icons { display: flex; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.feature-item { display: flex; align-items: center; gap: 16px; background: #fff7ef; padding: 12px 22px; border-radius: 50px; box-shadow: 0 6px 12px rgba(0,0,0,0.03); transition: 0.2s; font-size: 1.25rem; font-weight: 500; }
.feature-item:hover { background: #f0e0d2; transform: translateY(-3px); }
.feature-item i { font-size: 2rem; width: 2rem; height: 2rem; animation: softBreathe 2.8s ease-in-out infinite; display: inline-block; }
@keyframes softBreathe { 0% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 0.8; } }
.feature-item:nth-child(1) i { animation-delay: 0s; color: #2E6B5E; } .feature-item:nth-child(2) i { animation-delay: 0.4s; color: #D36B46; } .feature-item:nth-child(3) i { animation-delay: 0.8s; color: #7E9F4B; } .feature-item:nth-child(4) i { animation-delay: 1.2s; color: #B56532; } .feature-item:nth-child(5) i { animation-delay: 1.6s; color: #9B6B9E; }
.about-stats { flex: 0 0 260px; background: #ead6c8; padding: 30px 20px; border-radius: 40px 15px 40px 15px; text-align: center; box-shadow: 12px 12px 0 #cfb9a8; display: flex; flex-direction: column; gap: 30px; align-self: center; margin-left: auto; margin-right: auto; }
.stat-item i { font-size: 2.8rem; color: #5e3a25; margin-bottom: 10px; animation: gentlePulse 3s ease-in-out infinite; display: inline-block; }
@keyframes gentlePulse { 0% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: 0.9; } }
.stat-item:last-child i { animation-delay: 0.6s; }
.stat-item h3 { font-size: 2.2rem; color: #4d2f1d; }
.advantages { padding: 60px 0 80px; background: #faf1e9; border-radius: 60px 60px 0 0; }
.advantages-grid-new { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin: 50px 0; }
.adv-card-new { background: white; border-radius: 50px 20px 50px 20px; padding: 35px 18px; text-align: center; box-shadow: 0 25px 35px -10px rgba(100,60,30,0.1); border: 1px solid #e2cbbb; transition: all 0.3s; word-break: break-word; }
.adv-card-new:hover { transform: translateY(-12px); box-shadow: 0 35px 45px -12px #a57254; }
.adv-icon-new { font-size: 4.5rem; margin-bottom: 25px; transition: transform 0.3s; }
.adv-card-new:hover .adv-icon-new { transform: scale(1.15); }
.adv-card-new h3 { font-size: 1.5rem; margin-bottom: 15px; line-height: 1.3; }
.adv-center-new { text-align: center; margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 15px; }
.adv-center-new span { font-size: 2.2rem; font-weight: 700; }

/* АССОРТИМЕНТ — С ОГРАНИЧЕНИЕМ ШИРИНЫ КАРТОЧЕК */
.products { padding: 80px 0; background: #fffaf5; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; margin-top: 50px; }
.product-card { background: white; border-radius: 50px 20px 50px 20px; padding: 20px 25px 35px; text-align: center; border: 1px solid #e2cbbb; cursor: pointer; transition: 0.3s; display: flex; flex-direction: column; height: 100%; max-width: 400px; margin: 0 auto; width: 100%; }
.product-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 35px 45px -12px rgba(100,60,30,0.25); }
.product-img { height: 360px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.product-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.product-card h3 { font-size: 2.4rem; margin: 10px 0 8px; }
.product-desc { font-size: 1rem; margin-bottom: 10px; flex: 1; }
.product-price { font-size: 1.8rem; font-weight: 700; color: #5a3c28; margin: 15px 0; }
.btn-small { background: #ead6c8; padding: 12px 30px; border-radius: 40px; font-weight: 600; pointer-events: none; }

.geography { padding: 70px 0; background: #fdf3ea; }
.map-wrapper { position: relative; display: inline-block; max-width: 100%; }
.russia-map-img { max-width: 100%; height: auto; border-radius: 40px 15px 40px 15px; box-shadow: 0 25px 30px -10px rgba(90,50,30,0.1); border: 2px solid #cfb2a0; }
.map-overlay-text {
  position: absolute;
  top: 20px;
  left: 25px;
  background: rgba(255,255,240,0.75);
  backdrop-filter: blur(4px);
  padding: 12px 24px;
  border-radius: 60px;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: #3a281b;
  border: 1px solid #cfb2a0;
}
.map-caption { text-align: center; margin-top: 25px; font-size: 1.3rem; }
.gallery-section { padding: 70px 0; background: #fffaf5; }
.slider-container { position: relative; max-width: 900px; margin: 0 auto; border-radius: 40px; overflow: hidden; box-shadow: 0 25px 30px -10px rgba(90,50,30,0.15); }
.slider-image { width: 100%; height: 450px; object-fit: contain; background: #f2e4da; display: block; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,240,230,0.8); border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; color: #3a281b; backdrop-filter: blur(4px); opacity: 0.7; transition: 0.2s; }
.slider-container:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background: #7b4a2c; color: white; transform: translateY(-50%) scale(1.1); }
.prev-btn { left: 20px; } .next-btn { right: 20px; }
.slider-dots { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.dot { width: 12px; height: 12px; background: #cfb2a0; border-radius: 50%; cursor: pointer; transition: 0.2s; }
.dot:hover { background: #a57254; transform: scale(1.5); }
.dot.active { background: #7b4a2c; transform: scale(1.3); }
.contact { padding: 40px 0 60px; background: #dcc9ba; border-radius: 40px 40px 0 0; }
.contact h2 { margin-bottom: 40px; }
.contact-flex { display: flex; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.contact-info { flex: 1; }
.contact-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 25px; font-size: 1.2rem; }
.contact-item i { width: 55px; height: 55px; background: #7b4a2c; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; transition: 0.3s; }
.contact-item:hover i { background: #5e3820; transform: rotate(5deg) scale(1.05); }
.contact-phones { display: flex; flex-direction: column; gap: 8px; }
.contact-phones a, .contact-email { color: #2c241b; text-decoration: none; border-bottom: 1px dashed #7b4a2c; }
.contact-item.highlight { background: #f0e0d2; padding: 18px 20px; border-radius: 30px; border-left: 6px solid #7b4a2c; }
.btn-pdf { display: inline-flex; align-items: center; gap: 10px; background: #7b4a2c; color: white !important; padding: 12px 24px; border-radius: 40px; font-weight: 600; text-decoration: none; border-bottom: none !important; transition: all 0.3s; }
.btn-pdf:hover { background: #5e3820; transform: translateY(-3px); }
.contact-truck { flex: 1; text-align: center; }
.truck-img { width: 100%; max-width: 500px; height: auto; max-height: 300px; border-radius: 40px 15px 40px 15px; box-shadow: 0 20px 25px -8px rgba(0,0,0,0.1); border: 3px solid #f0e0d2; object-fit: cover; background: #fdf3ec; transition: transform 0.3s; }
.truck-img:hover { animation: truckFloat 1.2s ease-in-out infinite; }
@keyframes truckFloat { 0% { transform: translateY(0px); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0px); } }
footer { text-align: center; padding: 30px; background: #3f2c1d; color: #e7d7cb; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); align-items: center; justify-content: center; z-index: 1000; }
.modal.active { display: flex; }
.modal-content { background: #fffaf3; max-width: 850px; width: 95%; border-radius: 60px 20px 60px 20px; padding: 35px 25px; position: relative; border: 2px solid #cfb2a0; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 20px; right: 25px; font-size: 2.2rem; cursor: pointer; background: #e2cbbb; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-body { display: flex; flex-wrap: wrap; gap: 30px; }
.modal-gallery { flex: 1.2; }
.gallery-main { background: #f2e4da; border-radius: 30px; padding: 20px; text-align: center; }
.modal-info { flex: 1.5; max-height: 500px; overflow-y: auto; padding-right: 5px; }
.modal-info h2 { font-size: 2.4rem; }
.price-large { font-size: 2rem; color: #5a3c28; margin: 15px 0; }
.ingredients, .nutrition { background: #ead6c8; padding: 15px; border-radius: 20px; margin-top: 15px; }
.product-nav { display: flex; gap: 15px; margin-top: 25px; }
.nav-product-btn { background: #dcc9ba; border: none; padding: 12px 25px; border-radius: 40px; font-weight: 600; cursor: pointer; }
.no-scroll { overflow: hidden; height: 100%; }
@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } .about-stats { margin-left: 0; margin-right: 0; align-self: flex-start; } .advantages-grid-new { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } }
@media (max-width: 600px) {
  .products { padding: 40px 0; }
  .products-grid { grid-template-columns: 1fr !important; gap: 25px; }
  .product-card { max-width: 100% !important; padding: 20px 15px 30px !important; }
  .product-img { height: 350px !important; }
  .product-card h3 { font-size: 2.2rem !important; }
  .btn-small { width: 100% !important; }
  .modal-content { padding: 25px 15px; }
  .modal-body { flex-direction: column; }
  .gallery-main img { max-height: 250px; }
  .modal-info h2 { font-size: 1.8rem; }
  .nav-product-btn { flex: 0 1 auto; padding: 10px 15px; font-size: 0.9rem; }
  .contact h2 { margin-bottom: 30px; }
  .contact-flex { flex-direction: column; }
  .contact-truck { width: 100%; margin-top: 20px; }
  .truck-img { max-width: 90% !important; margin: 0 auto; }
  .slider-image { height: 280px; }
}
@media (max-width: 400px) { .nav-product-btn { padding: 8px 12px; font-size: 0.85rem; } }

/* ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ (БЛЕСК, ПЕЧЕНЬКИ) */
.adv-icon-new {
  position: relative;
  overflow: hidden;
}
.adv-icon-new::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.4) 70%, transparent 100%);
  transform: rotate(25deg);
  animation: shine 6s infinite;
  pointer-events: none;
}
.adv-card-new:nth-child(1) .adv-icon-new::after { animation-delay: 0s; }
.adv-card-new:nth-child(2) .adv-icon-new::after { animation-delay: 1.5s; }
.adv-card-new:nth-child(3) .adv-icon-new::after { animation-delay: 3s; }
.adv-card-new:nth-child(4) .adv-icon-new::after { animation-delay: 4.5s; }
@keyframes shine {
  0% { left: -60%; opacity: 0; }
  8% { opacity: 1; }
  20% { left: 60%; opacity: 0; }
  100% { left: 60%; opacity: 0; }
}

/* Фоновые печеньки и кексы (безопасная версия) */
.cookie-extra {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  font-size: 5rem;
  opacity: 0.2;
  color: #7b4a2c;
  animation: floatAround 30s ease-in-out infinite;
}
.cookie-1 { top: 10%; left: 5%; animation-duration: 28s; }
.cookie-2 { top: 70%; left: 85%; animation-duration: 32s; animation-delay: -4s; }
.cookie-3 { top: 45%; left: 15%; animation-duration: 35s; animation-delay: -12s; }
.cookie-4 { top: 15%; left: 75%; animation-duration: 26s; animation-delay: -8s; }
.cookie-5 { top: 80%; left: 50%; animation-duration: 38s; animation-delay: -18s; }
.cookie-6 { top: 55%; right: 20%; animation-duration: 30s; animation-delay: -25s; }
.cookie-1::before { content: '🍪'; }
.cookie-2::before { content: '🧁'; }
.cookie-3::before { content: '🍪'; }
.cookie-4::before { content: '🧁'; }
.cookie-5::before { content: '🍪'; }
.cookie-6::before { content: '🧁'; }
@keyframes floatAround {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(60px, 30px) rotate(10deg); }
  50% { transform: translate(-30px, 50px) rotate(-10deg); }
  75% { transform: translate(40px, -40px) rotate(15deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
.about, .products { position: relative; z-index: 1; overflow: hidden; }

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2.6rem !important;
    word-break: break-word !important;
    hyphens: auto !important;
    line-height: 1.2 !important;
  }
    .map-overlay-text {
    font-size: 1.2rem;
    padding: 8px 16px;
  }
}
.hero-btn-wrapper {
  text-align: center;
}
@media (min-width: 601px) {
  .hero-btn-wrapper {
    text-align: left;
  }
  .hero-btn-wrapper .btn {
    padding: 18px 48px;
    font-size: 1.3rem;
  }
}

.hero-main-img {
  width: 100%;
  height: auto;
  border-radius: 40% 60% 30% 70% / 50% 40% 60% 50%;
  box-shadow: 30px 30px 40px rgba(0,0,0,0.08);
  border: 6px solid #fff9f2;
  object-fit: cover;
  animation: slowBreath 8s ease-in-out infinite;
}

@keyframes slowBreath {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.hero-main-img:hover {
  animation-play-state: paused;
  transform: scale(1.02);
}

.about-stats {
  flex: 0 0 260px !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
}
@media (max-width: 600px) {
  .about-stats {
    width: 100% !important;
    max-width: 400px !important;
  }
}

.adv-center-new i {
  animation: shake 2.5s ease-in-out infinite;
  display: inline-block;
}
@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-5deg); }
  20% { transform: rotate(5deg); }
  30% { transform: rotate(-3deg); }
  40% { transform: rotate(3deg); }
  50% { transform: rotate(0deg); }
}

/* Восстановление печенек и кексов в Ассортименте */
.cookie-extra-products {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  font-size: 5rem;
  opacity: 0.2;
  color: #7b4a2c;
}
.cookie-p-1::before { content: '🍪'; }
.cookie-p-2::before { content: '🧁'; }
.cookie-p-3::before { content: '🍪'; }
.cookie-p-4::before { content: '🧁'; }
.cookie-p-5::before { content: '🍪'; }
.cookie-p-6::before { content: '🧁'; }
.cookie-p-7::before { content: '🍪'; }
.cookie-p-8::before { content: '🧁'; }

.cookie-p-1 { top: 5%; left: 3%; animation: chaotic1 33s ease-in-out infinite; }
.cookie-p-2 { top: 75%; left: 80%; animation: chaotic2 37s ease-in-out infinite; animation-delay: -5s; }
.cookie-p-3 { top: 50%; left: 12%; animation: chaotic3 41s ease-in-out infinite; animation-delay: -11s; }
.cookie-p-4 { top: 20%; left: 70%; animation: chaotic4 29s ease-in-out infinite; animation-delay: -7s; }
.cookie-p-5 { top: 85%; left: 45%; animation: chaotic1 44s ease-in-out infinite; animation-delay: -19s; }
.cookie-p-6 { top: 60%; left: 35%; animation: chaotic2 36s ease-in-out infinite; animation-delay: -14s; }
.cookie-p-7 { top: 15%; left: 55%; animation: chaotic3 31s ease-in-out infinite; animation-delay: -22s; }
.cookie-p-8 { top: 40%; left: 90%; animation: chaotic4 39s ease-in-out infinite; animation-delay: -9s; }

@keyframes chaotic1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(45px, -30px) rotate(12deg); }
  40% { transform: translate(-25px, 55px) rotate(-18deg); }
  60% { transform: translate(60px, 15px) rotate(25deg); }
  80% { transform: translate(-40px, -45px) rotate(-10deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes chaotic2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-50px, 40px) rotate(-15deg); }
  50% { transform: translate(30px, -35px) rotate(20deg); }
  75% { transform: translate(-20px, -50px) rotate(-22deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes chaotic3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(55px, 20px) rotate(18deg); }
  60% { transform: translate(-35px, -40px) rotate(-25deg); }
  90% { transform: translate(15px, 45px) rotate(12deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes chaotic4 {
  0% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-40px, -25px) rotate(-10deg); }
  45% { transform: translate(50px, 35px) rotate(20deg); }
  70% { transform: translate(-15px, -50px) rotate(-15deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.wave-text span {
  display: inline-block;
  animation: letterWave 1.8s ease-in-out infinite;
}
.wave-text span:nth-child(1) { animation-delay: 0.00s; }
.wave-text span:nth-child(2) { animation-delay: 0.08s; }
.wave-text span:nth-child(3) { animation-delay: 0.16s; }
.wave-text span:nth-child(4) { animation-delay: 0.24s; }
.wave-text span:nth-child(5) { animation-delay: 0.32s; }
.wave-text span:nth-child(6) { animation-delay: 0.40s; }
.wave-text span:nth-child(7) { animation-delay: 0.48s; }
.wave-text span:nth-child(8) { animation-delay: 0.56s; }
.wave-text span:nth-child(9) { animation-delay: 0.64s; }
.wave-text span:nth-child(10) { animation-delay: 0.72s; }
.wave-text span:nth-child(11) { animation-delay: 0.80s; } /* пробел */
.wave-text span:nth-child(12) { animation-delay: 0.88s; } /* д */
.wave-text span:nth-child(13) { animation-delay: 0.96s; } /* о */
.wave-text span:nth-child(14) { animation-delay: 1.04s; } /* с */
.wave-text span:nth-child(15) { animation-delay: 1.12s; } /* т */
.wave-text span:nth-child(16) { animation-delay: 1.20s; } /* а */
.wave-text span:nth-child(17) { animation-delay: 1.28s; } /* в */
.wave-text span:nth-child(18) { animation-delay: 1.36s; } /* к */
.wave-text span:nth-child(19) { animation-delay: 1.44s; } /* а */

@keyframes letterWave {
  0%, 100% { color: #2c241b; transform: translateY(0); }
  30% { color: #7b4a2c; transform: translateY(-3px); }
  60% { color: #a57254; transform: translateY(0); }
}

.contact-item {
  align-items: center !important;
}
.contact-phones {
  align-items: flex-start !important;
}
.contact-item.highlight {
  background: #f0e0d2;
  padding: 18px 20px;
  border-radius: 30px;
  border-left: 6px solid #7b4a2c;
  margin-bottom: 25px;
}

.contact-phones a,
.contact-email,
.contact-item span {
  font-size: 1.35rem;
  font-weight: 600;
}
@media (max-width: 600px) {
  .contact-phones a,
  .contact-email,
  .contact-item span {
    font-size: 1.25rem;
  }
}
.about-stats {
  font-size: 1.2rem;
}
.stat-item h3 {
  font-size: 2.8rem;
}
.stat-item p {
  font-size: 1.1rem;
}
@media (max-width: 600px) {
  .stat-item h3 {
    font-size: 2.4rem;
  }
}

.adv-card-new h3 {
  font-size: 1.5rem;
}
.adv-card-new p {
  font-size: 1.15rem;
}
@media (max-width: 600px) {
  .adv-card-new h3 {
    font-size: 1.7rem;
  }
  .adv-card-new p {
    font-size: 1.15rem;
  }
}

.modal-nav-arrows {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}
.arrow-btn {
  background: #ead6c8;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  color: #3a281b;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.arrow-btn:hover {
  background: #7b4a2c;
  color: white;
}

.modal-desc {
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

.product-card .product-desc {
  font-size: 1.2rem !important;
  font-weight: 500 !important;
}

/* Убираем старый параллакс-фон */
.parallax-bg {
  display: none;
}

/* Увеличиваем ширину текстового блока на больших экранах, так как картинка теперь фон */
.hero-text {
  flex: 1 1 100%;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-text h1 {
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-text p {
  color: white;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.4);
}

.hero-btn-wrapper {
  text-align: center;
  margin-top: 30px;
}

.btn {
  background-color: #7b4a2c;
  color: white;
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
}

/* Убираем анимации и стили, связанные с hero-image */
.hero-image, .hero-main-img {
  display: none;
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2.6rem !important;
  }
  .hero-text p {
    font-size: 1.2rem;
  }
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;  /* кнопка прижимается к низу */
  align-items: center;
  padding-bottom: 40px;
}

.hero-btn-wrapper {
  text-align: center;
}

/* Скрываем старый текст */
.hero-text h1, .hero-text p {
  display: none;
}

/* Можно также скрыть весь .hero-text, если он не нужен, но мы его уже убрали */

/* На широких экранах ещё выше */
@media (min-width: 1400px) {
  .hero {
    min-height: 900px;
  }
}

/* На мобильных — тоже комфортная высота */
@media (max-width: 600px) {
  .hero {
    min-height: 600px;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* кнопка прижата к низу */
  align-items: center;
  padding-bottom: 50px;        /* отступ от низа */
}

/* Для широких экранов можно ещё чуть уменьшить масштаб */
@media (min-width: 1600px) {
  .hero {
    background-size: 100% auto;
  }
}

/* На мобильных, чтобы не было слишком мелко, возвращаем cover или подбираем */
@media (max-width: 600px) {
  .hero {
    min-height: 600px;
    background-size: cover;        /* на мобильных лучше оставить cover, чтобы заполняло */
    background-position: center 30%;
  }
}

/* Убираем старые стили для логотипа и шапки */
header {
  display: none;
}

/* Адаптация */
@media (min-width: 1600px) {
  .hero {
    background-size: 100% auto;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 900px;
    background-size: cover;
    background-position: center 50%;
  }
  .hero .container {
    padding-bottom: 30px;
  }
}

/* На широких экранах ещё дальше */
@media (min-width: 1600px) {
  .hero {
    min-height: 900px;
    background-size: 100% auto;
  }
}

/* На мобильных возвращаем cover, чтобы точно всё заполнялось */
@media (max-width: 600px) {
  .hero {
    min-height: 550px;
    background-size: cover;
    background-position: 20% 25%;   /* играйтесь цифрами */
  }
}

@media (min-width: 1600px) {
  .hero {
    min-height: 900px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 600px;
    background-position: center 30%; /* небольшое смещение для важного контента */
  }
  .hero .container {
    padding-bottom: 30px;
  }
}

/* Для точного контроля высоты можно вычислить padding-bottom = (высота_изображения / ширина_изображения) * 100% */

.hero {
  position: relative;
  background-color: transparent;  /* было #f2dccb */
  background-image: url('images/main2560_q.webp');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  border-bottom: 6px solid #a57254;
  overflow: hidden;
  padding-bottom: 50.15%;
  height: 0;
  filter: brightness(1.05);       /* лёгкое осветление, можно убрать если не нужно */
}

.hero .container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 40px;
  box-sizing: border-box;
  z-index: 2;
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-btn-wrapper {
  margin-top: auto;
  text-align: center;
}

/* Убираем параллакс-фон и лишние элементы, если они были */
.parallax-bg {
  display: none;
}

.hero-text, .hero-image {
  display: none;
}

/* Убираем header из hero */
.hero header {
  display: none;
}

/* Если были отдельные стили для .hero .container с padding, корректируем */
/* Стили для логотипа в футере */
.footer-logo {
  text-align: center;
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 80px; /* или подбери нужный размер */
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer-logo-img:hover {
  opacity: 1;
}

/* Можно оставить кликабельность для скролла вверх, добавив onclick */

@media (max-width: 760px) {
  .hero {
    background-image: url('images/logo_vertical.webp'); /* убедись, что файл существует */
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    min-height: 650px;
    height: auto;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25); /* затемнение для контраста */
    z-index: 1;
    pointer-events: none;
  }

  .hero .container {
    position: relative;
    z-index: 2;
    justify-content: flex-end;
    padding-bottom: 40px;
  }

  /* Если кнопка сливается, можно добавить ей фон или тень */
  .hero .btn {
    background-color: #7b4a2c;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }
}

.hero {
  background-color: transparent; /* или white */
}