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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-image: url('/static/images/fon1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;   /* фон не двигается при скролле */
    background-color: #f8fafc;      /* цвет, если картинка не загрузилась */
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8); /* 0.72 = сила белизны */
    z-index: -1;
    pointer-events: none;
}

/* ===== Новая шапка ===== */
.main-nav {
    display: flex;
    align-items: stretch;
    height: 90px;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative;
    z-index: 100;
}

/* Левая белая часть */


/* На всякий случай ограничиваем левую часть */
.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    background: white;
    flex-shrink: 0;
    max-width: 320px;      /* чтобы не раздувалась */
}

/* Правая часть — козырёк */
.nav-right {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 45px;
    padding-left: 40px;
    background: #66B8E7;     /* цвет козырька */
    overflow: hidden;
}


.nav-menu {
    position: relative;
    z-index: 5;                 /* важно */
    display: flex;
    list-style: none;
    gap: 26px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 500;
    position: relative;
    z-index: 5;
}

.nav-menu a:hover {
    opacity: 0.85;
}
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: #d1e5fc;
    color: rgb(6, 20, 26);
}

.product-image {
  width: 100%;       /* Растягивает картинку на всю ширину карточки */
  height: 400px;     /* Задает фиксированную высоту для одинакового вида */
  object-fit: cover; /* Защищает картинку от искажения и пропорционально обрезает лишнее */
  display: block;    /* Убирает лишние отступы снизу */
  margin: 15px auto; /* Центрирует и делает отступы сверху и снизу */
}

.btn {
    display: inline-block;
    background: white;
    color: rgb(6, 20, 26);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
}

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

.product-card {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.contact-form-section {
    background: #f8f9fa;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.contact-form-section form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-section input,
.contact-form-section textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

footer {
    background: #1e293b;
    color: #b0b8c1;
    padding: 28px 20px;
    font-size: 0.95rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.footer-support-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 900px;
    color: #94a3b8;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.fsi-logo-footer {
    height: 64px;              /* было 48px — сделай больше */
    width: auto;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: block;
    transition: opacity 0.2s, transform 0.2s;
}


.fsi-logo-footer:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;                 /* чуть больше расстояние между лого */
    flex-wrap: wrap;
    margin: 8px 0;
}

/* На мобильных — всё в столбик */
@media (max-width: 700px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        align-items: center;
    }
}

.copyright {
    font-size: 0.9rem;
    margin: 0;
}

.flash {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.flash.success { background: #d4edda; color: #155724; }
.flash.danger { background: #f8d7da; color: #721c24; }


/* Форма контактов */
.contact-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.contact-container {
    max-width: 70%;              /* ← Половина ширины экрана */
    min-width: 700px;            /* минимальная ширина, чтобы не сжималась слишком сильно */
    margin: 0 auto;
    background: white;
    padding: 2.8rem 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.contact-container h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #34495e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #66B8E7;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-consent {
    margin: 14px 0 18px;
    font-size: 0.9rem;
    color: #475569;
    text-align: left;
}

.form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.4;
}

.form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #66B8E7;
}

.form-consent a {
    color: #66B8E7;
    text-decoration: underline;
}

.form-consent a:hover {
    color: #2980b9;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #66B8E7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #66B8E7;
}


/* Красивая форма в подвале */
.footer-contact {
    background: #2c3e50;
    color: white;
    padding: 3rem 2rem 2rem;
}

.contact-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-box h3 {
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.subtitle {
    color: #bdc3c7;
    margin-bottom: 1.8rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.contact-box textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    resize: vertical;
    font-size: 16px;
}

.contact-box button {
    background: #66B8E7;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.contact-box button:hover {
    background: #2980b9;
}


/* ===== Плавающая кнопка ===== */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #66B8E7;
    color: white;
    border: none;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    z-index: 999;
    transition: all 0.3s;
}

.floating-btn:hover {
    background: #2980b9;
    transform: scale(1.08);
}

/* ===== Модальное окно ===== */
.contact-modal {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
}

.contact-modal.active {
    display: block !important;
    animation: fadeInUp 0.3s ease;
}

.modal-content {
    background: white;
    width: 380px;
    max-width: 90vw;
    padding: 25px 22px 22px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.modal-content h3 {
    margin: 0 0 6px 0;
    font-size: 1.4rem;
    color: #2c3e50;
}

.modal-content .subtitle {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.modal-content .form-group {
    margin-bottom: 12px;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;      /* одинаковый шрифт */
    color: #1e293b;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #66B8E7;
}

.modal-content textarea {
    resize: vertical;          /* можно тянуть только по вертикали */
    min-height: 100px;
    line-height: 1.4;
}

.modal-content .submit-btn {
    width: 100%;
    padding: 12px;
    background: #66B8E7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 5px;
}

.modal-content .submit-btn:hover {
    background: #2980b9;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.head-company-logo {
    height: 100px; 
    width: auto;
}

.fsi-logo {
    height: 80px;          /* подбери под свой логотип */
    width: auto;
}


footer strong {
    color: #ffffff;
}


/* ===== Общие стили страниц ===== */
.page-section {
    padding: 30px 20px 70px;   /* небольшой отступ снизу перед футером */
}

.content-box {
    max-width: 1000px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.page-description {
    text-align: justify;
    max-width: 1000px;
    margin: 0 auto 45px;
    color: #17112f;
    line-height: 1.7;
    font-size: 1.2rem;
    margin-top: 15px;
}
.page-description h2{
    text-align: justyfy;
}

.page-description p {
    text-align: justify;
    margin-bottom: 12px;
}
.page-description ul{
    text-align: justify;
    margin-left: 5%;
    
}

.synth-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    margin: 0 auto;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.synth-table th,
.synth-table td {
    /* border: 2.5px solid #17112f; */
    padding: 14px 18px;
    text-align: center;
    border-bottom: 2px solid #452ca9;
}

.synth-table th {
    background: #66B8E7;
    color: white;
    font-weight: 600;
}

.synth-table tr:hover {
    background: #f8fafc;
}

/* Адаптация таблицы */
@media (max-width: 700px) {
    .synth-table {
        display: block;
        width: 100%;
        overflow-x: auto;          /* горизонтальный скролл */
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }


    .synth-table th,
    .synth-table td {
        padding: 12px 14px;
        white-space: nowrap;       /* чтобы текст не ломался сильно */
        font-size: 0.95rem;
    }
}

.two-columns {
    display: flex;
    align-items: center;
    gap: 30px;
}

.column-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.column-image img {
    width: 80%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}
.column-text {
    margin-right: 5%;
    margin-left: 5%;
    color: #17112f;
    align-items: justify;
    flex: 1.2;             
    font-size: 1.2rem;
}

.column-text h1{
    align-items: justify;
}

.column-text ul{
    margin-left: 5%;
}

/* На мобильных — картинка сверху, текст снизу */
@media (max-width: 768px) {
    .two-columns {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Только средние экраны (маленькие ноутбуки) */
@media (max-width: 1400px) and (min-width: 900px) {
    .two-columns {
        gap: 20px;
    }

    .column-text {
        flex: 1.05;
        margin-left: 2%;
        margin-right: 2%;
    }

    .column-image {
        flex: 1.2;
        min-width: 360px;   /* не даём картинке сильно сжаться */
    }

    .column-image img {
        width: 100%;
        max-width: none;    /* если где-то был max-width */
        height: auto;
    }
}

/* ===== Страница О нас ===== */
.about-page {
    padding: 30px 20px 80px;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 40px;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

.about-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #1e293b;
    transition: transform 0.25s;
}

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

.card-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 14px;
    border: 3px solid white;
}

.card-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* картинка заполняет круг */
}

.card-text {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Описание */
.about-description {
    text-align: justify;
    padding: 35px 40px;
    border-radius: 14px;
    text-align: left;
    line-height: 1.7;
    font-size: 14pt;
    color: #17112f;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.about-description p {
    text-align: justify;
    margin-bottom: 16px;
}

.about-description h4 {
    text-align: center;
}

/* Блок ФСИ */
.about-support {
    margin: 50px 0 60px;
}

.about-support p {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 15px;
}

.fsi-logo-about {
    height: 55px;
    width: auto;
    transition: opacity 0.2s;
}

.fsi-logo-about:hover {
    opacity: 0.85;
}


/* ===== Слайдер презентации ===== */
.presentation-section {
    margin-top: 70px;
    text-align: center;
    padding-bottom: 40px;
}

.presentation-section h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #1e293b;
}

.slider-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-viewport {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-viewport img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.35s ease;
}

.slider-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #66B8E7;
    color: white;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.35);
}

.slider-btn:hover {
    background: #2980b9;
    transform: scale(1.07);
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding: 0 10px;
}

.slider-dots {
    display: flex;
    gap: 9px;
}

.slider-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.25s;
}

.slider-dots span.active {
    background: #66B8E7;
    transform: scale(1.2);
}

.slider-actions {
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #f1f5f9;
    border-color: #66B8E7;
}

/* Полноэкранный режим */
.slider-wrapper:fullscreen,
.slider-wrapper:-webkit-full-screen {
    background: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.slider-wrapper:fullscreen .slider-viewport,
.slider-wrapper:-webkit-full-screen .slider-viewport {
    max-height: 85vh;
    border-radius: 8px;
}

/* Адаптив */
@media (max-width: 800px) {
    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

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



/* ===== FAQ ===== */
.faq-page {
    padding: 30px 20px 80px;
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 45px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.faq-item:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.09);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.08rem;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: #66B8E7;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* + превращается в × */
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer p {
    padding: 0 24px 22px;
    margin: 0;
    color: #475569;
    line-height: 1.65;
    font-size: 1rem;
}



.ustanovka-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.ustanovka-block h2 {
    margin-bottom: 16px;
    font-size: 1.6rem;
    color: #17112f;
}

.ustanovka-block p {
    color: #17112f;
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: left;
}

.ustanovka-btn {
    margin: 24px 0 30px;
    background: #66B8E7;
    color: white;
    border: none;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

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

.ustanovka-image {
    margin-top: 10px;
}

.ustanovka-image img {
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Бургер по умолчанию скрыт */
.burger {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #1e293b;
    padding: 8px 12px;
    z-index: 20;
}

/* ===== Мобильная версия ===== */
@media (max-width: 900px) {
.main-nav {
        height: 64px;
        padding: 0 12px;
    }

    .nav-left {
        gap: 10px;
        padding: 0;
    }

    .head-company-logo {
        height: 34px !important;
        max-width: 110px;
        width: auto;
    }

    .fsi-logo {
        height: 28px !important;
        max-width: 90px;
        width: auto;
    }

    .burger {
        display: block;
        margin-left: auto;
        font-size: 26px;
        padding: 6px 10px;
    }

    .nav-right {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #66B8E7;
        clip-path: none;              /* убираем козырёк на мобильном */
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 15;
    }

    .nav-right.open {
        max-height: 420px;            /* достаточно для всех пунктов */
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .nav-menu a {
        display: block;
        padding: 16px 24px;
        font-size: 1.1rem;
    }

    /* Прячем декоративные полосы на мобильном */
    .nav-right::before,
    .nav-right::after {
        display: none;
    }
}


.privacy-content {
    max-width: 860px;
    margin: 0 auto;
}

.privacy-text {
    background: white;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    line-height: 1.7;
    color: #334155;
    text-align: justify;
}

.privacy-text h2 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: #1e293b;
    text-align: left;
}

.privacy-text ul {
    padding-left: 22px;
    margin-bottom: 16px;
}

.privacy-text li {
    margin-bottom: 6px;
}

.privacy-date {
    margin-top: 30px;
    font-size: 0.95rem;
    color: #64748b;
    text-align: left;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}