/* Базовые стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.5;
}

/* Material Design переменные */
:root {
    --primary-color: #1976d2;
    --primary-light: #4791db;
    --primary-dark: #115293;
    --secondary-color: #03a9f4;
    --text-on-primary: #ffffff;
    --text-primary: rgba(0, 0, 0, 0.87);
    --text-secondary: rgba(0, 0, 0, 0.6);
    --background: #ffffff;
    --surface: #ffffff;
    --error: #b00020;
    --elevation-1: 0 2px 1px -1px rgba(0,0,0,0.2), 0 1px 1px 0 rgba(0,0,0,0.14), 0 1px 3px 0 rgba(0,0,0,0.12);
    --elevation-2: 0 3px 1px -2px rgba(0,0,0,0.2), 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12);
    --elevation-4: 0 2px 4px -1px rgba(0,0,0,0.2), 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12);
}

/* Общие стили */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-title {
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* App Bar (Material Design меню) */
.app-bar {
    background-color: #1e3c72;
    color: var(--text-on-primary, white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 4px -1px rgba(0,0,0,0.2), 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12);
}

.top-contact-bar {
    background-color: #15295a;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-contact-content {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.top-contact-item {
    display: flex;
}

.top-contact-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.top-contact-link:hover {
    color: white;
}

.top-contact-link .material-icons {
    font-size: 16px;
}

.app-bar-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
    color: white;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-on-primary);
    text-decoration: none;
    padding: 1.5rem 1rem;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: var(--elevation-2);
    min-width: 200px;
    display: none;
    z-index: 20;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: var(--text-primary);
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: block;
    font-size: 0.9rem;
    text-transform: none;
}

.dropdown-menu a:hover {
    background-color: #f5f7fa;
    color: #1e3c72;
}

.menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--text-on-primary);
    cursor: pointer;
    padding: 8px;
}

.btn-contact {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.lang-switch {
    margin-left: 1rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Material Icons */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Продуктовые страницы */
.product-page {
    padding-top: 70px;
}

.breadcrumbs {
    background-color: #e0e5ee;
    padding: 1rem 0;
    margin-bottom: 0;
}

.breadcrumbs ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumbs a {
    color: #1e3c72;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Стили для продуктовых страниц */
.product-main {
    padding: 4rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-title {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

.product-code {
    font-size: 1rem;
    color: #999;
    margin-bottom: 2rem;
}

.product-code span {
    font-weight: 600;
}

/* Кнопки продукта */
.product-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.btn-product {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background-color: #1e3c72;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-product:hover {
    background-color: #15295a;
    transform: translateY(-2px);
}

/* Галерея продукта */
.product-gallery {
    width: 100%;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid #eee;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumb {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #eee;
    transition: border-color 0.3s ease;
}

.thumb:hover, .thumb.active {
    border-color: #1e3c72;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Футер */
.footer {
    background-color: #1e3c72;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.footer-description {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-col h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-contacts {
    list-style: none;
}

.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-contacts .material-icons {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.modal h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1e3c72;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #1e3c72;
    outline: none;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #1e3c72;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #15295a;
}

/* Адаптивность */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #1e3c72;
        flex-direction: column;
        padding: 1rem;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav a {
        padding: 1rem;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        padding-left: 1rem;
    }
    
    .dropdown-menu a {
        color: white;
        border-bottom: none;
    }
    
    .menu-button {
        display: block;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-contact-content {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .product-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
} 