/* Основные стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-gradient-start: #0a4958;
    --bg-gradient-end: #12736f;
    --accent-color: #ff7d3b;
    --text-color: #e5e5e5;
    --button-bg: #ff7d3b;
    --button-text: #ffffff;
    --transition-time: 0.3s;
    --error-color: #ff5d4e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all var(--transition-time) ease;
}

a:hover {
    color: var(--button-text);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 5rem 0;
}

h1, h2, h3, h4, h5 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

/* Хедер и навигация */
.main-header {
    background-color: rgba(10, 73, 88, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--text-color);
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--accent-color);
}

.logo .tagline {
    font-size: 0.9rem;
    margin-top: -5px;
}

.menu {
    display: flex;
}

.menu-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    position: relative;
}

.menu-link:hover {
    color: var(--accent-color);
}

.menu-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all var(--transition-time) ease;
    transform: translateX(-50%);
}

.menu-link:hover:after {
    width: 70%;
}

.contact-btn {
    background-color: var(--button-bg);
    color: var(--button-text) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all var(--transition-time) ease;
}

.contact-btn:hover {
    background-color: var(--button-text);
    color: var(--button-bg) !important;
}

.contact-btn:hover:after {
    display: none;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    margin-bottom: 5px;
    position: relative;
    background: var(--text-color);
    transition: all var(--transition-time) ease;
}

/* Hero секция */
.hero {
    padding: 150px 0;
    display: flex;
    align-items: center;
    background: url('./img/nVFRjA.jpg') center/cover no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 73, 88, 0.85), rgba(18, 115, 111, 0.85));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    text-wrap: nowrap;
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 0.8rem 1.4rem;
    border-radius: 50px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: all var(--transition-time) ease;
    border: 2px solid var(--button-bg);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--button-bg);
}

/* О компании */
.about {
    background-color: rgba(10, 73, 88, 0.6);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-content h2 {
    text-align: left;
}

.about-content h2:after {
    left: 0;
    transform: none;
}

.benefits-list {
    margin-top: 1.5rem;
}

.benefits-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.benefits-list li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: rgba(10, 73, 88, 0.6);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-time) ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

/* Преимущества */
.advantages {
    background-color: rgba(18, 115, 111, 0.6);
    padding: 5rem 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(10, 73, 88, 0.4);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-time) ease;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.advantage-image {
    margin: -1.5rem -1.5rem 1rem;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    height: 160px;
}

.advantage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-time) ease;
}

.advantage-item:hover .advantage-image img {
    transform: scale(1.05);
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    margin-top: -30px;
    background-color: rgba(10, 73, 88, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Сертификаты */
.certificates {
    background-color: rgba(10, 73, 88, 0.6);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.certificate-item {
    background-color: rgba(18, 115, 111, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certificate-logo {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Отзывы */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: rgba(10, 73, 88, 0.6);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.client-name {
    font-weight: 600;
    margin-top: 1rem;
}

.client-position {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Форма */
.contact-form-section {
    background-color: rgba(18, 115, 111, 0.7);
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.contact-info {
    background-color: rgba(10, 73, 88, 0.6);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    margin-right: 1rem;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.form-container {
    background-color: rgba(10, 73, 88, 0.6);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background-color: rgba(18, 115, 111, 0.8);
    color: var(--text-color);
    transition: all var(--transition-time) ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 125, 59, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.submit-btn {
    display: inline-block;
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    border: 2px solid var(--button-bg);
    cursor: pointer;
    transition: all var(--transition-time) ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: transparent;
    color: var(--button-bg);
}

/* Стили для формы ошибок */
.form-error {
    background-color: rgba(255, 93, 78, 0.15);
    border-left: 4px solid var(--error-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 5px 5px 0;
}

.form-error p {
    color: var(--button-text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-error p:last-child {
    margin-bottom: 0;
}

.form-control.is-invalid {
    border-color: var(--error-color);
    background-color: rgba(255, 93, 78, 0.05);
}

.form-group.has-error label {
    color: var(--error-color);
}

/* Карта */
.map-section {
    padding: 0;
}

.map-container {
    height: 450px;
    overflow: hidden;
    position: relative;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Футер */
.main-footer {
    background-color: rgba(10, 73, 88, 0.9);
    padding: 5rem 0 2rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    position: relative;
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-color);
    transition: all var(--transition-time) ease;
}

.footer-col a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: rgba(10, 73, 88, 0.95);
    color: var(--text-color);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: bottom var(--transition-time) ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-popup p {
    margin: 0 0 1rem;
}

#accept-cookies {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-time) ease;
    font-weight: 600;
}

#accept-cookies:hover {
    background-color: var(--text-color);
    color: var(--button-bg);
}

/* Страницы политик */
.policy-page {
    padding: 5rem 0;
}

.policy-content {
    background-color: rgba(10, 73, 88, 0.6);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.policy-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.policy-content h2:after {
    left: 0;
    transform: none;
    bottom: -10px;
}

.policy-content ul,
.policy-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.policy-content ul li,
.policy-content ol li {
    margin-bottom: 0.5rem;
}

.policy-content a {
    text-decoration: underline;
}

/* Страница благодарности */
.thanks-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
}

.thanks-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(10, 73, 88, 0.6);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thanks-icon {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.back-to-home {
    display: inline-block;
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    margin-top: 2rem;
    font-weight: 600;
    transition: all var(--transition-time) ease;
    border: 2px solid var(--button-bg);
}

.back-to-home:hover {
    background-color: transparent;
    color: var(--button-bg);
}

/* Адаптивность для планшетов */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: rgba(10, 73, 88, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-time) ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 2rem;
    }
    
    .menu li {
        margin: 1rem 0;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .menu-toggle:checked ~ .menu {
        right: 0;
    }
    
    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .services-grid,
    .advantages-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .advantage-image {
        height: 200px;
    }
}

/* Анимация для hover эффектов без JS */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.cta-button:hover,
.contact-btn:hover,
.submit-btn:hover {
    animation: pulse 1s infinite;
} 