/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    overflow-x: hidden;
}

body {
    font-family: "Source Sans 3", sans-serif;
    line-height: 1.6;
    color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: url(img/header-bg.jpg) right center/cover no-repeat;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.navigation ul {
    list-style: none;
    display: flex;
}

.navigation li:not(:last-child) {
    margin-right: 30px;
}

.navigation a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: #00b4db;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101; /* Ensure it's above the menu */
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}


/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('img/bg-top.jpg') no-repeat center center/cover; /* TODO: Replace with actual image */
    padding-top: 80px; /* Header height */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    margin: 0 auto;
}

.hero h1 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(144deg,rgba(103, 200, 255, 1) 0%, rgba(0, 71, 244, 1) 100%);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.hero .btn {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(103, 200, 255, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(103, 200, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(103, 200, 255, 0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(13, 45, 82, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 100;
    }

    .navigation.active {
        transform: translateX(0);
    }

    .navigation ul {
        flex-direction: column;
        text-align: center;
    }

    .navigation li:not(:last-child) {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .navigation a {
        font-size: 24px;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* Video Promo Section */
.video-promo {
    padding: 60px 0;
    background-color: #fff;
}

.video-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    line-height: 0; /* Fix for small gap under video */
    position: relative;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: videoPulse 2.5s infinite;
    transition: opacity 0.3s ease;
}

.play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 30px solid #fff;
    margin-left: 7px;
    position: absolute;
    left: 45%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes videoPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 25px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

video {
    display: block;
    width: 100%;
    height: auto;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    color: #333;
    position: relative;
    background-color: #fff;
}

.video-wrapper {
    position: relative;
}

.about-section .img-dec-1{
    position: absolute;
    right: 0;
    bottom: 0;
    width: 270px;
    z-index: -1;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
    margin-bottom: 80px;
}

.feature-item img {
    height: 86px;
    margin-bottom: 20px;
}

.feature-item p {
    font-size: 20px;
    color: #555;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.partner-card {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.partner-card img {
    max-height: 50px;
    margin-bottom: 20px;
}

.partner-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .about-section {
        background-size: 50%;
    }
    .section-title {
        font-size: 28px;
    }
}

/* Reliability Section */
.reliability-section {
    position: relative;
    padding: 180px 0;
    background: url('img/bg-2.jpg') no-repeat center center/cover; /* TODO: Replace */
    color: #fff;
}

.reliability-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.reliability-section .container {
    position: relative;
    z-index: 2;
}

.reliability-content {
    margin: 0 auto;
}

.reliability-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.reliability-content p {
    font-size: 18px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .reliability-content h2 {
        font-size: 28px;
    }
    .reliability-content p {
        font-size: 16px;
    }
}

/* Steps Section */
.steps-section {
    padding: 80px 0;
    background-color: #fff;
    color: #333;
}

.steps-section .section-title {
    color: #2c3e50;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.step-card {
    background-color: #fff;
    padding: 40px 20px;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
}

.step-card img {
    height: 100px;
    margin-bottom: 25px;
}

.step-card p {
    font-size: 16px;
    color: #555;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    color: #333;
    overflow: hidden; 
    position: relative;
}

.testimonials-section .section-title{
    text-align: left;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.testimonials-section .section-title {
    margin-bottom: 60px;
}

.testimonial-swiper {
    padding-bottom: 50px; /* Space for pagination */
}

.swiper-slide {
    height: auto;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.author-info {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    color: #666;
    line-height: 1.7;
    flex-grow: 1;
}

.swiper-pagination {
    position: static;
    margin-top: 40px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    opacity: 1;
    transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #555;
}

/* Swiper Navigation Buttons */
.swiper-button-prev,
.swiper-button-next {
    color: #007bff;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 24px;
    font-weight: bold;
}

/* Form Section */
.form-section {
    padding: 100px 0;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    color: #333;
    position: relative;
}

.form-section .img-dec-2{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 480px;
    z-index: -1;
}

.form-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.form-text-content {
    flex: 1;
}

.form-text-content h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.form-text-content p {
    font-size: 18px;
    color: #555;
}

.form-wrapper {
    flex: 1;
    background-color: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
}

.form-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* Thank You Page */
.thank-you-page {
    padding: 100px 0;
    background-color: #f0f4f8;
    background-image: url('img/dec-img-2.png'); /* Using the same decorative image */
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
}

.thank-you-content {
    margin: 0 auto;
    background-color: #fff;
    color: #333;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.thank-you-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.thank-you-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.thank-you-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 20px;
}

.instructions-list, .steps-list {
    list-style: none;
    padding-left: 0;
}

.instructions-list li {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.instructions-list li img {
    width: 24px;
    margin-right: 15px;
}

.steps-list {
    list-style-type: decimal;
    padding-left: 20px;
}

.steps-list li {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background-color: #0d2d52;
    background-image: url('img/footer-bg.jpg'); /* TODO: Replace with gradient image */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: #fff;
    padding: 60px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-left {
    max-width: 50%;
}

.footer-left .logo {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-left h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-left p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    transition: opacity 0.3s ease;
}

.footer-nav a:last-child {
    margin-bottom: 0;
}

.footer-nav a:hover {
    opacity: 0.8;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-left {
        max-width: 100%;
        margin-bottom: 30px;
    }
    .footer-right {
        text-align: center;
        align-items: center;
    }
    .footer-nav {
        margin-bottom: 20px;
    }
    .footer-nav a {
        margin: 0 10px;
    }
    .form-container{
        flex-direction: column;
    }
    .swiper-button-next:after, .swiper-button-prev:after{
        font-size: 16px;
    }
    .testimonial-swiper {
        padding-bottom: 20px;
    }
    .steps-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    .reliability-section{
        padding: 50px 0;
    }
    .footer{
        background-position: left center;
    }
    .features-grid{
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Text Pages (Privacy, Terms) */
.text-page {
    padding: 120px 0 80px;
    background-color: #fff;
    color: #333;
}

.text-page h1 {
    font-size: 42px;
    margin-bottom: 30px;
}

.text-page h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.text-page p, .text-page li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.text-page ul {
    list-style-position: inside;
}

.text-page a {
    color: #007bff;
    text-decoration: underline;
}

/* Cookie Popup */
.cookie-popup {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 20px;
    bottom: 20px;
}

.cookie-container {
    background-color: #fff;
    color: #0c2e58; /* Dark blue text */
    padding: 30px;
    border-radius: 15px;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.cookie-container p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn, .cookie-btn-outline {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid #0c2e58;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.cookie-btn {
    background-color: #0c2e58;
    color: #fff;
}

.cookie-btn-outline {
    background-color: #fff;
    color: #0c2e58;
}

.cookie-btn:hover {
    background-color: #0a2545;
}

.cookie-btn-outline:hover {
    background-color: #f2f2f2;
}

html {
    scroll-behavior: smooth;
}

h2[id], section[id] {
    scroll-margin-top: 100px;
}

/* Здесь будут стили для блоков сайта */ 