/* style.css */
/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.promo-banner {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  color: white;
  animation: pulse 2s infinite;
  margin: 2rem 0;
}

.scene {
  width: 200px;
  height: 200px;
  perspective: 600px;
  margin: 2rem auto;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate 10s infinite linear;
}

.face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  font-weight: bold;
}

.front  { transform: rotateY(0deg) translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotate {
  from { transform: rotateY(0) rotateX(0); }
  to { transform: rotateY(360deg) rotateX(360deg); }
}

.three-d-scene {
  width: 100%;
  height: 400px;
  perspective: 1000px;
  background: linear-gradient(to bottom, #87CEEB, #E0F7FA);
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}

.floor {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
  background: #8BC34A;
  transform: rotateX(90deg) translateZ(-25px);
}

/* Разные кубы в сцене */
#cube1 { 
  transform-style: preserve-3d;
  animation: rotate 10s infinite linear;
}
#cube2 { 
  transform-style: preserve-3d;
  animation: rotate 10s infinite linear;
}
#cube3 { 
  transform-style: preserve-3d;
  animation: rotate 10s infinite linear;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Шапка */
header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    padding: 0 1rem;
}

/* Навигация */
nav .m1, footer .m1 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem;
}

.fi {
    padding: 0.7rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
    min-width: 120px;
}

.fi:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Основной контент */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
    width: 100%;
}

.page {
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.page h2 {
    color: #2575fc;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.page h3 {
    color: #6a11cb;
    margin: 1.5rem 0 1rem;
}

.page p {
    margin-bottom: 1rem;
}

.page ul, .page ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.page li {
    margin-bottom: 0.5rem;
}

/* Карта */
.map {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Блоки с информацией */
.placeholder-promo, .order-info {
    background-color: #f0f7ff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2575fc;
    margin-top: 1.5rem;
}

.placeholder-promo h3, .order-info h3 {
    margin-top: 0;
}

/* Товары */
#goods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.item:hover {
    transform: translateY(-5px);
}

.item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item .name {
    font-weight: 600;
    margin: 1rem 1rem 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.item .desc {
    margin: 0 1rem 0.5rem;
    color: #666;
    flex-grow: 1;
}

.item .price {
    color: #2575fc;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 1rem 1rem;
}

/* Подвал */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

footer .fi {
    background-color: rgba(255, 255, 255, 0.1);
}

footer .fi:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Социальные сети */
.social {
    background-color: #1a252f;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

.social p {
    display: inline-block;
    margin: 0 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.social p:hover {
    color: #6a11cb;
}

/* Разделитель */
.br {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .fi {
        padding: 0.6rem 1.2rem;
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    .page {
        padding: 1.5rem;
    }
    
    #goods {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .map {
        height: 300px;
    }
    
    .social p {
        display: block;
        margin: 0.5rem 0;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    nav .m1, footer .m1 {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .fi {
        width: 80%;
        max-width: 200px;
    }
    
    .page {
        padding: 1rem;
    }
    
    #goods {
        grid-template-columns: 1fr;
    }
    
    .map {
        height: 250px;
    }
    
    .social p {
        font-size: 0.9rem;
    }
}
