body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: whitesmoke;
    margin: 0;
    line-height: 1.6;
    color: #333;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-family: sans-serif;
    font-size: 24px;
    color: #333;
    height: 45px;
    margin-right: 5px;
    width: 25px;
}

.logo img {
    max-height: 50px;
}

.logo:hover {
    color: #007bff;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
}

.content {
    padding: 2rem;
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
}

.category-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
    border-bottom: 2px solid #3498db;
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* --- Слайдер (Slider) --- */
.slider-container {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: white;
    padding: 20px 0;
}
.slide-track {
    display: flex;
    flex-direction: row;
    width: calc(150px * 20);
    height: 100%;
    animation: scroll-horizontal 75s linear infinite;
}
.slide {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}
.slide a:hover {
    transform: scale(1.1);
    transition: transform 0.3s;
}
.slide img {
    max-width: 130px;
    max-height: 90px;
    object-fit: contain;
    filter: brightness(1) invert(0);
    transition: transform 0.3s;
}
@keyframes scroll-horizontal {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-150px * 10)); }
}

/* --- Боковые Кнопки (Side Buttons) --- */
.side-buttons {
    position: fixed;
    top: 50%;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    transform: translateY(-50%);
}

.floating-vertical-button {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background-color: #FFD83D;
    color: #111;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    padding: 10px 12px;
    border-radius: 10px 0 0 10px;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.floating-vertical-button:hover{
    background-color: #FFC800;
    transform: translateX(-4px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* --- Сетка Продуктов (Product Grid) --- */
.product-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

/* --- 3D Карточка (3D Card) --- */
.product-card-3d {
    width: 100%;
    max-width: 320px;
    height: 500px; /* Оставлено для единообразия */
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 95%;
    height: 95%;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
}

.product-card-3d:hover .card-inner {
    transform: rotateY(180deg);
}

.product-front, .product-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 6px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-back {
    transform: rotateY(180deg);
    padding: 20px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.product-details {
    text-align: left;
    padding: 10px;
    width: 100%;
}

.product-details h4 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.product-details ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.product-details li {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.product-details li::before {
    content: "•"; /* ИСПРАВЛЕНО: чистый символ '•' */
    color: #3498db;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}


.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-3d:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5; /* Чтобы значок был поверх изображения при увеличении */
}

.product-badge.sale { background-color: #e74c3c; }
.product-badge.new { background-color: #3498db; }
.product-badge.top { background-color: #27ae60; }

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.product-description {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* --- Модальное Окно (Modal) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover, .close-button:focus {
    color: #e74c3c;
}

#priceRequestForm label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

#priceRequestForm input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#priceRequestForm button[type="submit"] {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

#priceRequestForm button[type="submit"]:hover {
    background-color: #219d55;
}

/* --- Футер (Footer) --- */
.main-footer {
    background-color: #2c3e50;
    color: #f4f7f9;
    padding: 4rem 2rem 2rem;
}

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
}

.contact-description {
    text-align: center;
    margin-bottom: 2rem;
    color: #bdc3c7;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: #fafafa;
}

.contact-item-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f4f7f9;
}

.contact-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #bdc3c7;
}

.contact-social .social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #34495e;
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #3498db;
}

.contact-map-block {
    width: 100%;
    max-width: 600px;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact-map-block iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Медиа-Запросы (Media Queries) --- */
@media (min-width: 481px) and (max-width: 768px) {
    .main-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .column {
        width: 48%;
    }
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 769px) {
    .container {
        max-width: 1200px;
    }
    .main-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .column {
        width: 30%;
        margin-bottom: 0;
    }
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}