/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --border-color: #eee;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 15px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Утилитарные классы */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.p-20 { padding: 20px; }

/* Шапка */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 180px;
    height: 50px;
    background: linear-gradient(135deg, #2C5AA0, #1E3A5F);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.logo-image:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 45%, rgba(255,255,255,0.2) 50%, transparent 55%),
        linear-gradient(transparent 45%, rgba(255,255,255,0.2) 50%, transparent 55%);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.logo p {
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin: 0;
}

.logo-simple {
    display: none;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, #2C5AA0, #1E3A5F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    margin-bottom: 5px;
    white-space: nowrap;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.main-nav {
    background-color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.main-nav li {
    flex: 1;
    min-width: 120px;
}

.main-nav a {
    display: block;
    padding: 15px;
    color: var(--bg-white);
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #34495e;
    border-bottom-color: var(--secondary-color);
}

/* Главный контент */
main {
    min-height: calc(100vh - 200px);
}

/* Герой-секция */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--bg-white);
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Кнопки */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
    text-align: center;
    cursor: pointer;
}

.btn:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
	margin: 10px 0;
}

.btn-secondary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--secondary-color);
    padding: 10px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Особенности */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 80px 0;
    background-color: var(--bg-light);
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature p {
    color: var(--text-light);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.feature-icon {
color: #7583a5;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
	padding-top: 18px;
}

.maxwidthdiv{
grid-column: 1 / -1;
width: 100%;
max-width: none;
margin: 0;
}

.product-items-full ul {
    list-style: none;
}

.product-items-full li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.product-items-full li:before {
    content: "✓";
    color: #27ae60;
    position: absolute;
    left: 0;
    font-weight: bold;
}




/* О компании */
.about-preview {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.about-feature {
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.about-feature:hover {
    transform: translateX(5px);
}

.about-feature strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.about-feature span {
    color: var(--text-light);
}

.about-image .placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
    height: 300px;
}

/* Основные продукты */
.main-products {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.product-card-link:hover {
    transform: translateY(-10px);
    text-decoration: none;
    color: inherit;
}

.product-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.product-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: var(--transition);
}

.product-card-link:hover .product-card:before {
    left: 100%;
}

.product-card-link:hover .product-card {
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.2);
}

.product-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    border-radius: 12px;
    flex-shrink: 0;
}

.product-card-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 0;
}

.product-card-body {
    flex-grow: 1;
    margin-bottom: 20px;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-features-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 20px;
    color: var(--text-color);
}

.product-features-list li:before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.product-card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    text-align: right;
}

.view-more {
    color: var(--secondary-color);
    font-weight: bold;
    transition: var(--transition);
}

.product-card-link:hover .view-more {
    color: #2980b9;
}

.products-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Дополнительные продукты */
.additional-products {
    padding: 80px 0;
}

.additional-products h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.additional-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--bg-white);
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.additional-product:hover {
    border-color: var(--secondary-color);
    background: #f8faff;
    transform: translateX(5px);
    text-decoration: none;
    color: var(--text-color);
}

.product-name {
    font-weight: 500;
    font-size: 1.1rem;
}

.product-arrow {
    color: var(--secondary-color);
    font-weight: bold;
    transition: var(--transition);
}

.additional-product:hover .product-arrow {
    transform: translateX(5px);
}

/* Клиенты */
.clients-preview {
    padding: 60px 0;
    background: var(--bg-light);
}

.clients-preview h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.client-logo .placeholder {
    background: var(--bg-white);
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-light);
    border-radius: 8px;
    height: 80px;
    transition: var(--transition);
}

.client-logo .placeholder:hover {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

/* CTA секция */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -20px) rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--bg-white);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.phone-icon {
    margin-right: 8px;
}

/* Стили для страницы продукции */
.products-nav {
    background-color: var(--bg-light);
    padding: 20px 0;
    margin-bottom: 30px;
}

.products-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.products-nav h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.products-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-btn {
    background-color: var(--bg-white);
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    font-family: inherit;
    font-size: inherit;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.products-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-category-full {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.product-category-full:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-category-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    padding: 25px;
    text-align: center;
}

.product-category-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.category-description {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-top: 10px;
    opacity: 0.9;
}

.product-category-content {
    padding: 25px;
}

.product-features-mini {
    margin-bottom: 20px;
}

.features-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.feature-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #bbdefb;
}

.product-items-mini ul {
    list-style: none;
    margin-top: 10px;
}

.product-items-mini li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 20px;
}

.product-items-mini li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.more-items {
    color: var(--text-light);
    font-style: italic;
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
	margin: 20px 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    background: var(--bg-light);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.view-gallery-btn {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    padding: 10px 15px;
    background: var(--secondary-color);
    border-radius: 5px;
    transition: var(--transition);
}

.view-gallery-btn:hover {
    background: #2980b9;
    text-decoration: none;
    color: var(--bg-white);
}

/* Стили для placeholder */
.placeholder {
    background: var(--bg-light);
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: bold;
    text-align: center;
    aspect-ratio: 4/3;
    transition: var(--transition);
}

.placeholder:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.gallery-item .placeholder {
    border-radius: 8px;
    aspect-ratio: 1;
}

/* Хлебные крошки */
.breadcrumbs {
    background: var(--bg-light);
    padding: 20px 0;
    margin-bottom: 30px;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumbs li:after {
    content: "›";
    color: var(--text-lighter);
}

.breadcrumbs li:last-child:after {
    content: "";
}

.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-light);
}

/* Подвал */
footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 50px 0 20px;
    margin-top: 35px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #ecf0f1;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: #ecf0f1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    opacity: 0.8;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .about-content {
        gap: 40px;
    }
    
    .product-detail-layout {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        margin-top: 15px;
        text-align: center;
    }
    
    .contact-info p {
        white-space: normal;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        min-width: auto;
    }
    
    .hero {
        padding: 80px 0;
        background-attachment: scroll;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn, .btn-secondary, .btn-outline {
        width: 100%;
        max-width: 300px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .products-grid-main {
        grid-template-columns: 1fr;
    }
    
    .additional-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cta-buttons, .products-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .products-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }
    
    .gallery-preview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-grid-mini {
        grid-template-columns: 1fr;
    }
    
    .features-tags {
        justify-content: center;
    }
    
    .logo-image {
        display: none;
    }
    
    .logo-simple {
        display: block;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .features, .about-preview, .main-products, .additional-products, .clients-preview, .cta-section {
        padding: 40px 0;
    }
    
    .product-card, .product-category-content {
        padding: 20px;
    }
    
    .gallery-preview {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Улучшения доступности */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Фокус для доступности */
a:focus, button:focus, .btn:focus, .category-btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Улучшение читаемости */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000;
        --text-light: #333;
        --border-color: #000;
    }
}

/* Стили для страницы Контакты */
.contacts-page {
    padding: 50px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.contact-info-card h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-detail:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-text p, .contact-text a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0;
}

.contact-text a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-person {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.contact-person h3 {
    color: var(--bg-white);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-person p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.contact-person a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: bold;
}

.contact-person a:hover {
    text-decoration: underline;
}

/* Форма обратной связи */
.contact-form-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form-card h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Карта */
.map-section {
    margin-top: 50px;
}

.map-section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

.map-container {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.map-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
}

.map-placeholder .placeholder-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.map-placeholder h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.map-placeholder p {
    margin-bottom: 20px;
}

/* Сообщения формы */
.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Загрузка формы */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Адаптивность для Контактов */
@media (max-width: 968px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .contacts-page {
        padding: 30px 0;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 25px;
    }
    
    .contact-detail {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .map-container {
        padding: 20px;
    }
    
    .map-placeholder {
        height: 300px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .contact-info-card,
    .contact-form-card {
        padding: 20px;
    }
    
    .map-placeholder {
        height: 250px;
    }
    
    .map-placeholder .placeholder-icon {
        font-size: 2rem;
    }
}



/* Стили для страницы 404 */
.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-content h1 {
    font-size: 8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.error-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.error-content p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .error-content h1 {
        font-size: 5rem;
    }
    
    .error-content h2 {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
}