/* ==========================================
   Топар Хызматы — style.css
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* Базовые настройки страницы */
html, body {
    height: 100%;
    overflow-x: hidden;
    background: #061a35;
    color: white;
}

/* ---------- Шапка (строго фиксированная и неизменяемая) ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 75px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 35px;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 52px;
    width: auto;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.nav-link {
    color: #0a58ca;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #0088ff;
    background-color: #f0f4f9;
}

/* Подсветка активной страницы */
.nav-link.active {
    color: #ffffff !important;
    background-color: #0a58ca !important;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #2b3a4a;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 9px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-item:hover {
    color: #0a58ca;
    background-color: #f0f4f9;
}

.lang-item.active {
    color: #0a58ca;
    background-color: #e7f0ff;
    font-weight: 700;
}

.flag-icon {
    display: inline-block;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* Языковой переключатель с иконками флагов */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #2b3a4a;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 9px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.lang-item:hover {
    color: #0a58ca;
    background-color: #f0f4f9;
}

.lang-item.active {
    color: #0a58ca;
    background-color: #e7f0ff;
    font-weight: 700;
}

.flag-icon {
    display: inline-block;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* ---------- Основные экраны-контейнеры (подняты вверх) ---------- */
.screen-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Размещение контента сверху вниз */
    align-items: center;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 95px; /* Отступ под фиксированную шапку */
    padding-bottom: 40px;
    overflow-y: auto;
}

/* Точные наименования файлов фонов */
.hero-main { background-image: url("foreground.jpg"); }
.hero-about { background-image: url("secondary background.jpg"); }
.hero-contact { background-image: url("third background.jpg"); }

/* Затемнение фона */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(3,18,40,.92) 0%,
        rgba(3,18,40,.75) 50%,
        rgba(3,18,40,.30) 100%
    );
    z-index: 1;
}

/* Неподвижная сетка */
.network {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(55,180,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55,180,255,.08) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: .3;
    z-index: 2;
    pointer-events: none;
}
 /* Жестко фиксируем шапку и запрещаем ей любые анимации */
.navbar, 
.navbar *, 
.nav-links, 
.nav-link, 
.lang-switcher, 
.lang-item {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* ---------- Анимация всплытия блоков текста ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-wrapper,
.quality-wrapper-bar,
.contact-panel-wrapper {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.content-wrapper {
    animation-delay: 0.1s;
}

.quality-wrapper-bar {
    animation-delay: 0.25s;
}

.contact-panel-wrapper {
    animation-delay: 0.1s;
}

/* ---------- Контент ---------- */
.content-wrapper {
    position: relative;
    z-index: 3;
    width: calc(100% - 100px);
    max-width: 1250px;
    background: rgba(7, 30, 63, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(120,200,255,0.25);
    border-radius: 20px;
    padding: 30px 45px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.section-title {
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #70c8ff;
    text-transform: uppercase;
}

.content-wrapper h1 {
    margin-top: 5px;
    font-size: 36px;
    font-weight: 800;
}

.content-wrapper h2, .big-text {
    margin: 8px 0 14px;
    font-size: 19px;
    font-weight: 500;
    color: #87d4ff;
    line-height: 1.4;
}

.content-wrapper p {
    font-size: 16px;
    line-height: 1.6;
    color: #eef7ff;
    margin-bottom: 10px;
}

/* ---------- Сетка проектов на главной ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(120,200,255,0.2);
}

.project-item strong {
    color: #70c8ff;
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.project-item p {
    font-size: 14px;
    margin: 0;
}

/* ---------- Карточки качества ---------- */
.quality-wrapper-bar {
    position: relative;
    z-index: 3;
    width: calc(100% - 100px);
    max-width: 1250px;
    background: rgba(7, 30, 63, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(120,200,255,0.25);
    border-radius: 20px;
    padding: 25px 30px;
    margin-top: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.quality-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.quality-card {
    text-align: center;
    transition: .35s;
    padding: 10px;
    border-radius: 12px;
}

.quality-card:hover {
    transform: translateY(-3px);
}

.circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1ea6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    color: white;
    margin: 0 auto 8px auto;
    box-shadow: 0 0 15px rgba(30,166,255,.4);
}

.quality-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #87d4ff;
}

.quality-card p {
    font-size: 13px;
    line-height: 1.4;
    color: #eef7ff;
    margin: 0;
}

/* ---------- Сертификаты ---------- */
.certificates-container {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(120, 200, 255, 0.25);
}

.certificates-title {
    font-size: 17px;
    color: #87d4ff;
    margin-bottom: 10px;
    font-weight: 600;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.cert-card {
    background: rgba(4, 20, 43, 0.3);
    border: 1px dashed rgba(120, 200, 255, 0.4);
    border-radius: 12px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    transition: 0.3s;
}

.cert-card:hover {
    border-color: #1893FF;
    background: rgba(4, 20, 43, 0.5);
}

.cert-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.cert-card p {
    font-size: 13px;
    color: #A9D4FF;
    margin: 0;
}

/* ---------- Панель контактов ---------- */
.contact-panel-wrapper {
    position: relative;
    z-index: 3;
    width: calc(100% - 100px);
    max-width: 1300px;
}

.contact-card {
    width: 100%;
    background: #F7FBFF;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,40,100,.2);
    border: 1px solid rgba(120,200,255,0.3);
}

.left-column {
    background: #0C2F5C;
    color: white;
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-column h2 {
    font-size: 30px;
    margin: 10px 0 15px;
    color: white;
}

.left-column p {
    color: #D7E9FF;
    font-size: 16px;
    line-height: 1.6;
}

.left-column .line {
    width: 45px;
    height: 3px;
    background: #1893FF;
    margin: 15px 0;
}

.right-column {
    padding: 25px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    border-left: 4px solid #1893FF;
    padding: 12px 18px;
    border-radius: 12px;
    transition: .3s;
    box-shadow: 0 5px 15px rgba(0,40,100,.05);
}

.info-box:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(24,147,255,.15);
}

.icon-svg {
    width: 36px;
    height: 36px;
    background: #1893FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-svg svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.info-box h3 {
    color: #0B2E5A;
    margin-bottom: 2px;
    font-size: 15px;
}

.info-box p {
    color: #4C6485;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

/* Адаптив под мобильные устройства */
@media (max-width: 900px) {
    .screen-container {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .content-wrapper, .quality-wrapper-bar, .contact-panel-wrapper {
        width: auto;
        margin: 10px 15px;
    }
    .quality-container, .projects-grid, .certificates-grid, .contact-card {
        grid-template-columns: 1fr;
    }
    .navbar {
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 10px;
    }
    .nav-left {
        flex-direction: column;
        gap: 10px;
    }
}