/* Глобальные переменные и стили */
:root {
    --primary-color: #0A2647; /* Глубокий синий */
    --secondary-color: #144272; /* Синий посветлее */
    --accent-color: #205295; /* Яркий синий акцент */
    --text-color: #333333; /* Основной текст */
    --light-text-color: #FFFFFF;
    --background-color: #F8F9FA; /* Светло-серый фон */
    --container-width: 1200px;
    --font-main: 'Lato', sans-serif;
    --font-headings: 'Montserrat', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    color: var(--primary-color);
}

/* Стили хедера */
.header {
    background-color: var(--light-text-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.header__nav-list {
    display: flex;
    gap: 2rem;
}

.header__nav-link {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 5px;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.header__nav-link:hover::after {
    width: 100%;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger__line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}


/* Стили футера */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 4rem 0;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer__logo {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    color: var(--light-text-color);
    margin-bottom: 1rem;
}

.footer__copy {
    color: rgba(255, 255, 255, 0.7);
}

.footer__title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer__list--contacts li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer__link, .footer__text {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--light-text-color);
}

.footer__icon {
    width: 20px;
    height: 20px;
    color: var(--light-text-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Будет реализовано в JS */
    }
    
    .burger {
        display: block;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__list--contacts li {
        justify-content: center;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--primary-color);
    padding-top: 80px; /* Сдвиг для фиксированного хедера */
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 4rem;
    color: var(--light-text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    font-weight: 700;
}

.hero__title--highlight {
    display: block;
    color: #87CEFA; /* Небесно-голубой для акцента */
    font-weight: 600;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* --- General Button Styles --- */
.button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    color: var(--light-text-color);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: translateY(0);
}

.button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
}

/* Адаптивность для Hero */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.8rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2.2rem;
    }
}

/* --- Общие стили для секций --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.section-header__title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-header__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-header__subtitle {
    font-size: 1.1rem;
    color: #6c757d;
}


/* --- Секция Услуги (Services) --- */
.services {
    padding: 6rem 0;
    background-color: var(--background-color);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.services__card {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.services__icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.services__icon {
    width: 40px;
    height: 40px;
    color: var(--light-text-color);
}

.services__card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.services__card-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

/* Адаптивность для заголовков секций */
@media (max-width: 768px) {
    .section-header__title {
        font-size: 2.2rem;
    }
}

.about {
    padding: 6rem 0;
    background-color: #ffffff; /* Белый фон для контраста */
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about__image-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.about__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__content-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.about__content-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #555;
}

.about__features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.about__features-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about__features-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--accent-color);
    margin-top: 5px;
}

.about__features-title {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--secondary-color);
}

.about__features-text {
    color: #6c757d;
}

/* Адаптивность для секции About */
@media (max-width: 992px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about__image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    .about__content {
        text-align: center;
    }
    .about__features-item {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .about__content-title {
        font-size: 1.8rem;
    }
}

/* --- Секция Блог (Blog) --- */
.blog {
    padding: 6rem 0;
    background-color: var(--background-color);
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-card__link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card__image-wrapper {
    height: 200px;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__content {
    padding: 1.5rem;
    flex-grow: 1;
}

.blog-card__category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.blog-card__title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card__title {
    color: var(--accent-color);
}

.blog-card__excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.blog-card__meta {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #eee;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #888;
}

/* --- Секция Отзывы (Reviews) --- */
.reviews {
    padding: 6rem 0;
    background-color: #ffffff;
}

.reviews-slider {
    padding-bottom: 4rem; /* Место для пагинации */
}

.review-card {
    background-color: var(--background-color);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-card__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.review-card__text {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1rem;
}

.review-card__text::before,
.review-card__text::after {
    content: '"';
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
}

.review-card__text::before {
    top: -10px;
    left: -10px;
}
.review-card__text::after {
    bottom: -30px;
    right: -10px;
}


.review-card__author {
    margin-top: auto;
}

.review-card__name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.review-card__company {
    color: #888;
    font-size: 0.9rem;
}

/* Кастомизация Swiper Pagination */
.swiper-pagination-bullet {
    background-color: var(--secondary-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-color);
    transform: scale(1.2);
    opacity: 1;
}

/* --- Секция Контакты (Contact) --- */
.contact {
    padding: 6rem 0;
    background-color: var(--background-color);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
    background-color: #ffffff;
    padding: 4rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact__info-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact__info-text {
    margin-bottom: 2rem;
    color: #555;
    line-height: 1.7;
}

.contact__info-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact__info-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

/* --- Стили формы --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(32, 82, 149, 0.2);
}

.form-input.is-invalid {
    border-color: #dc3545;
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-group--checkbox input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
}

.form-group--checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    color: #555;
}

.contact__button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.success-message {
    padding: 2rem;
    border: 2px solid #28a745;
    background-color: #e9f7ec;
    border-radius: 10px;
    text-align: center;
    color: #155724;
}

.success-message h3 {
    color: #155724;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.is-hidden {
    display: none;
}

/* Адаптивность для контактов */
@media (max-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 3rem;
    }
}
/* --- Стили для страниц политик (privacy.html, terms.html etc.) --- */
.pages {
    padding: 120px 0 6rem; /* Добавляем отступ сверху из-за фиксированного хедера */
    background-color: #ffffff;
    min-height: 100vh;
}

.pages .container {
    max-width: 800px; /* Делаем контейнер уже для лучшей читаемости текста */
}

.pages h1 {
    font-size: 2.8rem;
    font-family: var(--font-headings);
    color: var(--primary-color);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: 1.8rem;
    font-family: var(--font-headings);
    color: var(--secondary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.pages p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.pages ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 1.5rem;
}

.pages li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.pages strong {
    font-weight: 700;
    color: var(--primary-color);
}

.pages a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 600;
}

.pages a:hover {
    text-decoration: none;
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    z-index: 2000;
    transform: translateY(120%);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup.is-active {
    transform: translateY(0);
}

.cookie-popup__text {
    margin: 0;
    padding-right: 2rem;
}

.cookie-popup__link {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
}

.cookie-popup__accept {
    padding: 0.75rem 1.5rem;
    background-color: var(--light-text-color);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-popup__accept:hover {
    background-color: #f0f0f0;
}

/* Адаптивность для Cookie Pop-up */
@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .cookie-popup__text {
        padding-right: 0;
    }
}