/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', sans-serif;
}

body {
    font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #333;
    padding: 0.3rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    height: 60px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 1rem;
}

.top-logo-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 0 0 auto;
}

.top-logo {
    max-height: 45px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.header-phone {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.phone-link {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    white-space: nowrap;
}

.phone-link:hover {
    color: #f39c12;
}

.nav {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: #f39c12;
}

.nav-link.active {
    color: #333;
    border-bottom: 2px solid #f39c12;
    padding-bottom: calc(0.5rem - 2px);
}

/* Баннер */
.banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    padding: 0;
    height: 100vh;
    min-height: 600px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin-top: 0;
}

.banner-top-text {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.banner-title {
    font-size: 5.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.6);
    letter-spacing: 4px;
    margin: 0;
    white-space: nowrap;
}

.banner-bottom-logo {
    position: absolute;
    bottom: 4%;
    right: 4%;
    z-index: 2;
}

.banner-logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.5));
    -webkit-filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.5));
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #f39c12;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary {
    background-color: #f39c12;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Карусель товаров */
.products-carousel-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
    margin-top: 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.products-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2c3e50;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: #f39c12;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: -25px;
}

.carousel-btn-next {
    right: -25px;
}

/* Карточки товаров */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
    cursor: pointer;
}

.product-card-link:hover {
    text-decoration: none;
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #ecf0f1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-actions {
    padding: 0 20px 20px 20px;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: bold;
}

.product-description {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 15px;
}

/* Текстовая секция */
.text-section {
    padding: 80px 20px;
    background-color: #fff;
}

.text-content {
    max-width: 900px;
    margin: 0 auto;
}

.text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
    text-align: justify;
}

/* Каталог */
.catalog-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
    margin-top: 60px;
}

/* Страница товара */
.product-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
    margin-top: 60px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-detail-image {
    width: 100%;
    height: auto;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
}

.product-detail-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: bold;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 30px;
}

.product-detail-description {
    margin-bottom: 30px;
}

.product-detail-description h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.product-detail-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.btn-secondary {
    background-color: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.page-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Фильтр категорий */
.categories-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px 0;
}

.filter-btn {
    padding: 10px 25px;
    background-color: #fff;
    border: 2px solid #2c3e50;
    color: #2c3e50;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #2c3e50;
    color: #fff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #f39c12;
    border-color: #f39c12;
    color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid .product-card {
    min-width: auto;
}

/* Футер */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: #f39c12;
}

.footer-section p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-section a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #f39c12;
}

.footer-section p a {
    display: inline;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Секция контактов */
.contacts-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
    margin-top: 60px;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: fit-content;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ecf0f1;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #f39c12;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.contact-details a {
    color: #f39c12;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: #e67e22;
    text-decoration: underline;
}

.contact-details p {
    color: #555;
    font-size: 1.1rem;
    margin: 0;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f39c12;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.form-message {
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .header {
        padding: 0.25rem 0;
        height: 54px;
    }
    
    .top-logo {
        max-height: 35px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .header-phone {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .phone-link {
        font-size: 0.9rem;
    }
    
    .banner {
        margin-top: 54px;
        height: 100vh;
    }

    .banner-title {
        font-size: 3rem;
    }
    
    .banner-bottom-logo {
        bottom: 3%;
        right: 3%;
    }
    
    .banner-logo {
        max-width: 150px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .section-title,
    .page-title {
        font-size: 2rem;
    }

    .text-content h2 {
        font-size: 2rem;
    }
    
    .contacts-wrapper {
        grid-template-columns: 1fr;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 20px;
    }
    
    .product-detail-title {
        font-size: 2rem;
    }
    
    .product-detail-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.2rem 0;
        height: 48px;
    }
    
    .top-logo {
        max-height: 30px;
    }
    
    .phone-link {
        font-size: 0.85rem;
    }
    
    .banner {
        margin-top: 48px;
        height: 100vh;
        min-height: 400px;
    }

    .banner-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .banner-bottom-logo {
        bottom: 2%;
        right: 2%;
    }
    
    .banner-logo {
        max-width: 120px;
    }

    .products-carousel-section,
    .text-section,
    .catalog-section {
        padding: 40px 15px;
    }
    
    .header {
        padding: 0.6rem 0;
    }
}

