:root {
  --color-white: #ffffff;
  --color-accent: #001381;
  --color-bg-light: #fdfefe;
  --color-bg-lighter: #f4f7fb;
  --color-text-dark: #111827FF;
  --color-dark: #001381;
  --color-gray-1: #f7f7f7;
  --color-gray-2: #f8f8f8;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(circle at top, var(--color-bg-light), var(--color-bg-lighter));
    color: var(--color-text-dark);
    letter-spacing: 0.2px;
}

/* ====== SLIDER ====== */
.swiper {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.2));
    display: flex;
    align-items: center;
    padding: 80px;
    color: white;
}

.slide-content {
    max-width: 700px;
}

.slide-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 22px;
    margin-bottom: 30px;
}

.btn-primary {
    background: linear-gradient(135deg, #001381, #196dff);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 7px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.35);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 30px 60px rgba(6, 182, 212, 0.45);
}

/* ===== SECTIONS ===== */
.section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}
.company-presentation {
    display: flex;
    flex-wrap: wrap; /* Позволяет колонкам перескакивать на новую строку на маленьких экранах */
    gap: 40px; /* Расстояние между колонками */
    align-items: flex-start; /* Выравнивание элементов по верху */
}

.text-column {
    flex: 1; /* Колонка займет доступное пространство */
    min-width: 300px; /* Минимальная ширина до переноса */
}

.image-column {
    flex: 1; /* Колонка займет столько же пространства, сколько и текстовая */
    min-width: 300px; /* Минимальная ширина до переноса */
}

.image-column img {
    width: 100%; /* Картинка будет адаптироваться под ширину колонки */
    height: auto; /* Сохраняем пропорции */
    border-radius: 8px; /* Небольшое скругление углов для эстетики */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Легкая тень для объема */
}

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

.product-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.18);
}

.product-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.product-card div {
    padding: 24px;
}

.audience {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.audience-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 20px;
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.12);
    transition: transform .3s ease;
}

.audience-card:hover {
    transform: translateY(-6px);
}

.audience-card img {
    width: 100%;
    max-height: 200px;
    margin-bottom: 20px;
    border-radius: 16px;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.adv-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 32px;
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.12);
    text-align: center;
    font-weight: 600;
}

.cta {
    background: linear-gradient(179deg, #1729f3, #4facfe);
    padding: 80px 20px;
    color: white;
    text-align: center;
}

footer {
    background: #576671;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.site-header{
    position:fixed;
    top:0;left:0;width:100%;
    background:rgba(255,255,255,.85);
    backdrop-filter:blur(14px);
    box-shadow:0 10px 40px rgba(15,23,42,.08);
    z-index:1000;
}
.header-inner{
    max-width:1200px;
    margin:0 auto;
    padding:16px 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:relative;
}

.logo{
    height: 54px;
    transition: .3s ease;
}
.logo img{
    height: 100%;
}
.main-nav{display:flex;gap:24px;font-weight:600}
.main-nav a{text-decoration:none;color:var(--color-dark);position:relative}
.main-nav a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #001381, #06b6d4);
    transition: .3s ease;
}
.main-nav a:hover::after{width:100%}

/* ===== BURGER ===== */
.burger{
    display:none;
    width:32px;height:24px;
    background:none;border:none;
    position:relative;cursor:pointer;
    z-index:1001;
}
.burger span{
    position:absolute;left:0;
    width:100%;height:3px;
    background:var(--color-dark);
    border-radius:4px;
    transition:.35s ease;
}
.burger span:nth-child(1){top:0}
.burger span:nth-child(2){top:10px}
.burger span:nth-child(3){top:20px}

.burger.active span:nth-child(1){transform:rotate(45deg);top:10px}
.burger.active span:nth-child(2){opacity:0}
.burger.active span:nth-child(3){transform:rotate(-45deg);top:10px}

/* ===== MOBILE MENU ===== */

@media (max-width: 900px) {
    :target {
        scroll-margin-top: 110px!important; /* делаем отступ сверху */
    }

    .logo img {
        height: 54px
    }

    .burger {
        display: block
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 24px 0 32px;
        gap: 18px;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: .4s cubic-bezier(.4, 0, .2, 1);
        box-shadow: 0 25px 60px rgba(15, 23, 42, .18);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }


}

.header-spacer {
    height: 90px
}

 .lead-form {
     max-width: 420px;
     margin: 40px auto 0;
     display: grid;
     gap: 16px;
 }

.lead-form input,
.lead-form select {
    padding: 16px;
    border-radius: 14px;
    border: none;
    font-size: 16px;
}

.lead-form input:focus,
.lead-form select:focus {
    outline: 2px solid #4facfe;
}

.video-slide {
    background: #000a;
    padding: 0 30px 30px;
}

/*Слайдер сертификатов*/

.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.product-card {
    flex: 0 0 300px; /* ширина карточки */
    margin: 0 10px;
    background: var(--color-gray-2);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.product-card img {
    width: 100%;
    display: block;
}

button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0 10px;
    cursor: pointer;
    z-index: 10;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

/*отзывы*/

.reviews {
    padding: 80px 20px;
    background: var(--color-gray-1);
    text-align: center;
    font-family: Arial, sans-serif;
}

.reviews h2 {
    margin-bottom: 40px;
    font-size: 32px;
}

.reviews-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.reviews-window {
    overflow: hidden;
    width: 900px;
}

.reviews-track {
    display: flex;
    transition: transform 0.4s ease;
}

.review {
    min-width: 374px;
    margin: 0 15px;
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.review p {
    font-size: 16px;
    margin-bottom: 15px;
}

.review span {
    font-weight: bold;
    color: #555;
}

.nav {
    font-size: 30px;
    background: black;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

.nav:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .reviews-window {
        width: 320px;
    }
}

.reviews-dots {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.reviews-dots span {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.reviews-dots span.active {
    background: black;
}

@media (max-width: 768px) {
    .reviews-window {
        width: 320px;
    }
}

/*Контакты*/

 .contacts {
     background: var(--color-gray-1);
 }

.contacts-wrapper {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    align-items: stretch;
}

.contacts-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    font-size: 18px;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    color: #777;
    margin-bottom: 6px;
}

.contact-item a,
.contact-item span {
    font-size: 18px;
    color: #000;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contacts-map {
    flex: 1;
    min-height: 360px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
    .contacts-wrapper {
        flex-direction: column;
    }

    .contacts-map {
        min-height: 300px;
    }
}
/*Подвал*/
.footer {
    background: #111;
    color: #fff;
    padding: 35px 20px;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-logo {
    font-weight: bold;
    font-size: 18px;
}

.footer-copy {
    font-size: 14px;
    color: #aaa;
    margin-top: 8px;
}

.footer-center {
    display: flex;
    gap: 25px;
}

.footer-center a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-center a:hover {
    text-decoration: underline;
}

.footer-right {
    display: flex;
    gap: 15px;
}

.social {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.social:hover {
    background: #fff;
    color: #000;
}

/* ===== POPUP ===== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.popup-overlay.active {
    display: flex;
}

.popup {
    background: #fff;
    padding: 35px;
    max-width: 520px;
    width: 90%;
    border-radius: 18px;
    position: relative;
    animation: popupAnim 0.3s ease;
}

@keyframes popupAnim {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup h3 {
    margin-bottom: 15px;
}

.popup-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.popup-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 18px;
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .footer-wrapper {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 900px) {
    .slide-content h1 {
        font-size: 26px;
    }
    .slide-content p {
        font-size: 16px;
    }
    section h2 {
        font-size: 24px;
    }
    .btn-primary {
        padding: 14px 30px;
        font-size: 16px;
    }
    .section{
        padding: 20px;
    }
}