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

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background: #f8f9fa;
}

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

section {
    padding: 80px 0;
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2em;
    font-weight: 700;
}

/* Единый градиент для всех секций */
.gradient-section {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    position: relative;
}

.gradient-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.gradient-section h2 {
    color: white;
    position: relative;
    z-index: 2;
}

/* Стили для шапки */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

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

nav li {
    margin-left: 30px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Стили для героя */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 30px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Стили для блока услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-card h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Стили для блока преимуществ */
.advantages-list {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.advantage-item {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    padding: 35px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.advantage-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

.advantage-item h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.advantage-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Стили для блока логистики */
.logistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.logistics-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 25px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.logistics-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.logistics-item h3 {
    margin: 0;
    font-size: 1.2em;
    line-height: 1.5;
    color: white;
}

/* Стили для блока новостей */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.news-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    margin-bottom: 10px; /* ← дополнительный отступ снизу */
}

.news-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.news-date {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: block;
}

.news-card h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.news-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.no-news-message {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

.no-news-message p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
}

/* Стили для блока "О нас" */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

.about-text {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

.about-text strong {
    color: white;
}

/* Стили для Яндекс.Карты */
#map {
    height: 400px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

/* Стили для балуна Яндекс.Карт */
.map-balloon {
    font-family: 'Arial', sans-serif;
    max-width: 250px;
}

.map-balloon h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.map-balloon p {
    margin: 5px 0;
    color: #555;
    font-size: 0.9em;
    line-height: 1.4;
}

.map-balloon strong {
    color: #2c3e50;
}

/* Адаптивность для карты */
@media (max-width: 768px) {
    #map {
        height: 300px;
    }
}

@media (max-width: 480px) {
    #map {
        height: 250px;
    }
}

/* Стили для подвала */
footer {
    background: linear-gradient(135deg, #1a2530 0%, #2c3e50 100%);
    color: white;
    text-align: center;
    padding: 40px 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

footer .container {
    position: relative;
    z-index: 2;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 5px 10px;
    }
    
    .hero h1 {
        font-size: 2.2em;
    }
    
    .hero p {
        font-size: 1.1em;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    section {
        padding: 60px 0;
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
}

/* Стили для формы обратной связи */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: 500;
    font-size: 1.1em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

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

.contact-form button {
    width: 100%;
    padding: 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.contact-form button:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    transform: none;
}

/* Стили для капчи */
.captcha-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.captcha-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

#captchaText {
    font-size: 1.2em;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 4px;
    min-width: 100px;
    text-align: center;
}

.btn-captcha {
    background: #3498db;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-captcha:hover {
    background: #2980b9;
}

#captchaAnswer {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

#captchaAnswer:focus {
    outline: none;
    border-color: #3498db;
}

/* Добавьте в конец style.css */
.message {
    display: none;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.message.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}
