﻿:root{
    --kbd-blue:#0a3d8f;
    --kbd-blue-2:#1565c0;
    --accent:#ffb900;
}

*{box-sizing:border-box}

h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: 0.2px;
}

body{
    margin:0;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.15px;

    background:
            linear-gradient(
                    rgba(0,0,0,0.25),
                    rgba(0,0,0,0.25)
            ),
            url("img/background1.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display:flex;
    flex-direction:column;
    min-height:100vh;
    color:#111;
}

/* ================= HEADER ================= */
header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px 30px;
    background:var(--kbd-blue);
    color:white;
    position:relative;
    flex-wrap:wrap;

    box-shadow:
            0 1px 0 rgba(255,255,255,0.06),
            0 4px 12px rgba(0,0,0,0.35);
    z-index:1002;
}

.header-left{
    display:flex;
    align-items:center;
    gap:20px;
}

.logo-container img{
    max-height:60px;
    display:block;
}

/* ================= MENU BUTTONS ================= */
.mini-menu,
.language-switch{
    display:flex;
    gap:10px;
}

.mini-menu button,
.language-switch button{
    background:var(--kbd-blue-2);
    color:white;
    border:none;
    padding:10px 16px;
    cursor:pointer;
    border-radius:6px;
    transition:
            transform .22s ease,
            box-shadow .22s ease,
            background .22s ease;
}

.mini-menu button:hover,
.language-switch button:hover{
    background:var(--accent);
    transform:translateY(-4px) scale(1.04);
    box-shadow:0 8px 18px rgba(0,0,0,.16);
}

/* ================= HAMBURGER ================= */
.menu-toggle{
    display:none;
    z-index:1001;
    flex-direction:column;
    justify-content:space-around;
    width:34px;
    height:26px;
    cursor:pointer;
}

.menu-toggle span{
    height:3px;
    background:white;
    border-radius:2px;
    display:block;
    transition:all .28s ease;
}

.menu-toggle.open span:nth-child(1){
    transform:translateY(9px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2){
    opacity:0;
}
.menu-toggle.open span:nth-child(3){
    transform:translateY(-9px) rotate(-45deg);
}

/* ================= MOBILE MENU ================= */
.mobile-menu{
    display:flex;
    flex-direction:column;
    position:fixed;
    top:0;
    left:0;
    width:75%;
    height:100%;
    background:var(--kbd-blue);
    padding:60px 20px;
    box-shadow:2px 0 8px rgba(0,0,0,.45);
    z-index:1000;
    transform:translateX(-110%);
    transition:transform .45s cubic-bezier(.2,.9,.2,1);
}

.mobile-menu.active{
    transform:translateX(0);
}

.mobile-menu button{
    margin-bottom:15px;
    padding:12px;
    font-size:18px;
    text-align:left;
    background:var(--kbd-blue-2);
    border-radius:6px;
    border:none;
    color:white;
    transition:
            transform .22s ease,
            box-shadow .22s ease,
            background .22s ease;
}

.mobile-menu button:hover{
    background:var(--accent);
    transform:translateY(-4px) scale(1.03);
    box-shadow:0 8px 18px rgba(0,0,0,.16);
}

/* BLUR */
body.menu-open main,
body.menu-open footer{
    filter:blur(4px);
    transition:filter .25s ease;
}

/* NAV LINKS */
.mini-menu a,
.mobile-menu a {
    background: var(--kbd-blue-2);
    color: white;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition:
            transform .22s ease,
            box-shadow .22s ease,
            background .22s ease;
}

.mini-menu a:hover,
.mobile-menu a:hover {
    background: var(--accent);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 18px rgba(0,0,0,.16);
}

/* ================= MAIN ================= */
main{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding:20px 0;
}

.main-container{
    width:66%;
    min-height:calc(100vh - 340px);
    backdrop-filter: blur(6px);
    background: rgba(230,230,230,0.88);
    border-radius:12px;
    padding:40px;
    box-shadow:0 8px 30px rgba(0,0,0,.2);
}


/* ================= CATEGORY BUTTONS ================= */
.main-buttons{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-bottom:70px; /* было 30px */
    flex-wrap:wrap;
}

.main-buttons button{
    position:relative;
    padding:12px 20px;
    border:none;
    background:var(--kbd-blue-2);
    color:white;
    border-radius:6px;
    cursor:pointer;
    min-width:100px;
    transition:
            transform .22s ease,
            box-shadow .22s ease,
            background .22s ease;
}

.main-buttons button:hover{
    background:var(--accent);
    transform:translateY(-4px) scale(1.04);
    box-shadow:0 8px 18px rgba(0,0,0,.12);
}

/* TOOLTIP */
.tooltip{
    visibility:hidden;
    opacity:0;
    width:200px;
    background: var(--accent);
    color: var(--kbd-blue-2);
    text-align:center;
    padding:6px;
    border-radius:6px;
    position:absolute;
    top:120%;
    left:50%;
    transform:translateX(-50%);
    z-index:10;
    transition:opacity .2s ease;
}

.main-buttons button:hover .tooltip{
    visibility:visible;
    opacity:1;
}

/* ================= CAROUSEL ================= */
.carousel-container{
    width:95%;
    max-width:1100px;
    margin:0 auto 40px;
    position:relative;
    overflow:hidden;
    border-radius:10px;
}

.carousel {
    display: flex;
    transition: transform 0.6s ease;
    width: 100%;
}

.carousel.all-images {
    display: flex;
    flex-wrap: wrap; /* все картинки в ряд/сетку */
    justify-content: flex-start;
}

.carousel.all-images .slide-wrapper {
    flex: 0 0 25%; /* 4 картинки в ряд, можно менять */
    margin: 5px;
}


.slide {
    width:100%;
    height:450px;
    object-fit:cover;
    cursor:pointer;
}

.carousel-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:var(--kbd-blue-2);
    color:white;
    border:none;
    padding:10px 15px;
    cursor:pointer;
    font-size:24px;
    border-radius:6px;
    z-index:2;
    transition:
            transform .2s ease,
            background .2s ease,
            box-shadow .2s ease;
}

/* ================= CAROUSEL BUTTON ANIMATION ================= */
.carousel-btn {
    transition:
            transform 0.22s cubic-bezier(.25,.8,.25,1),
            background 0.22s ease,
            box-shadow 0.22s ease;
}

.carousel-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    background: var(--accent);
}

.carousel-btn:active {
    transform: translateY(2px) scale(0.96);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Опционально — плавное появление кнопок при наведении на карусель */
.carousel-container:hover .carousel-btn {
    opacity: 1;
    transition: opacity 0.35s ease, transform 0.22s cubic-bezier(.25,.8,.25,1);
}

.carousel-btn {
    opacity: 0.8;
}


.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.slide-wrapper {
    min-width: 100%;
    position: relative;
}

.slide-wrapper img {
    width: 100%;
    display: block;
    cursor: pointer;
}

.slide-tooltip {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--kbd-blue-2);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
}

.slide-wrapper:hover .slide-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ================= CAROUSEL DOTS ================= */
.carousel-dots {
    position: absolute;
    top: 12px; /* точки сверху */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.carousel-dots button.active {
    background: var(--accent);
    transform: scale(1.4);
}







/* ================= MODAL ================= */
.modal{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    z-index:3000;
}

.modal.active{display:flex}

.modal-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.65);
    backdrop-filter:blur(4px);
}

.modal-content{
    position:relative;
    background:#f2f2f2;
    border-radius:14px;
    max-width:900px;
    width:90%;
    padding:20px;
    box-shadow:0 25px 60px rgba(0,0,0,.4);
    animation:modalIn .35s ease;
}

@keyframes modalIn{
    from{opacity:0;transform:translateY(30px) scale(.96)}
    to{opacity:1;transform:translateY(0) scale(1)}
}

.modal-content img{
    width:100%;
    max-height:420px;
    object-fit:contain;
    border-radius:10px;
    margin-bottom:16px;
}

.modal-close{
    position:absolute;
    top:10px;
    right:14px;
    font-size:30px;
    border:none;
    background:none;
    cursor:pointer;
}

.modal-text{
    font-size:14px;
    line-height:1.6;
    color:#333;
    white-space:pre-line;
}

/* ================= FOOTER ================= */
.kbd-footer{
    background:var(--kbd-blue);
    color:white;
    padding:45px 20px 35px;
    font-size:14px;
    line-height:1.6;

    /* ТОНКАЯ ВЕРХНЯЯ ЛИНИЯ */
    border-top:1px solid rgba(255,255,255,0.18);
}

.kbd-footer .footer-content{
    max-width:1200px;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    gap:22px;
    text-align:center;
}

.kbd-footer .footer-section{
    flex:1;
}

/* --- ТЕКСТ КОМПАНИИ --- */
.kbd-footer .footer-company p{
    margin:4px 0;
}

/* --- ССЫЛКИ (КАК В ПРИМЕРЕ) --- */
.kbd-footer a{
    color:white;
    text-decoration:none;
}

.kbd-footer a:hover{
    text-decoration:underline;
}

/* --- БЛОК ССЫЛОК --- */
.kbd-footer .footer-links{
    display:flex;
    gap:18px;
    justify-content:center;
    flex-wrap:wrap;
}

/* --- COPY --- */
.kbd-footer .footer-copy{
    font-size:13px;
    opacity:0.9;
}

/* DESKTOP */
@media(min-width:768px){
    .kbd-footer .footer-content{
        flex-direction:row;
        justify-content:space-between;
        align-items:flex-start;
        text-align:left;
    }

    .kbd-footer .footer-links{
        justify-content:flex-start;
    }
}



/* ================= MOBILE ================= */
@media (max-width: 900px){

    /* скрываем десктоп-меню */
    .mini-menu,
    .language-switch{
        display:none;
    }

    /* показываем гамбургер */
    .menu-toggle{
        display:flex;
    }

    /* основной контейнер шире */
    .main-container{
        width:92%;
        padding:25px 20px;
    }

    /* кнопки категорий */
    .main-buttons button{
        min-width:80px;
        padding:10px 14px;
    }

    /* карусель ниже */
    .carousel img{
        height:300px;
    }
}
/* ===== FORCE CORPORATE FONT (как на сайте KBD) ===== */
*,
*::before,
*::after {
    font-family: "Open Sans", Arial, Helvetica, sans-serif !important;
}
button,
nav,
header,
footer {
    font-weight: 600;
}


/* ===== INNER PAGE LAYOUT ===== */

.inner-page .main-container {
    margin: 60px auto;
    width: 66%;
}

.inner-page h1 {
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--kbd-blue);
}

.inner-page h2 {
    margin-top: 40px;
    color: var(--accent);
}

.inner-page h3{
    font-size:18px;
    color:var(--accent);
}

.inner-page p {
    margin: 6px 0;
}

.inner-page .content-block {
    margin-bottom: 40px;
}

.inner-page iframe {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

/* MOBILE */
/* ===== MOBILE INNER PAGES IMPROVEMENT ===== */
@media(max-width:900px){

    .inner-page h1{
        font-size:22px;
        text-align:center;
    }

    .inner-page h2{
        font-size:18px;
    }

    .inner-page h3{
        font-size:18px;
        color:var(--accent);
    }

    .inner-page p{
        font-size:14px;
    }

    .inner-page ul{
        padding-left:18px;
    }

    .main-container{
        backdrop-filter:none;
        background:rgba(255,255,255,0.95);
    }

}

/* ===== STARTSEITE HERO ===== */

.hero-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.hero-big-logo img {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 15px 40px rgba(0,0,0,0.25));
}

.hero-claim {
    font-size: 36px;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--kbd-blue);
}

@media(max-width:900px){
    .hero-big-logo img {
        max-width: 320px;
    }

    .hero-claim {
        font-size: 24px;
    }
}
.footer-legal {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 15px;
}

.footer-legal p {
    margin: 6px 0;
}

.about-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #0f2b5c 0%, #1d4b8f 100%);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;

    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px;
}

.about-logo {
    max-width: 200px;
}

.about-right h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #ffffff;
    letter-spacing: 1px;
    position: relative;
}

.about-right h1::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #f5a623;
    display: block;
    margin-top: 12px;
}

.about-right p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    max-width: 70ch;
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .about-left {
        text-align: center;
    }

    .about-logo {
        margin-bottom: 30px;
    }
}






.services-content {
    max-width: 1200px;
    margin: 60px auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;

    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px;
}

.about-logo {
    max-width: 200px;
}

.about-right h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #ffffff;
    letter-spacing: 1px;
    position: relative;
}

.about-right h1::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #f5a623;
    display: block;
    margin-top: 12px;
}

.about-right p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    max-width: 70ch;
}

.about-right ul {
    padding-left: 18px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.85);
}

.h2fortext {
    color: var(--accent);
}

@media (max-width: 900px) {
    .services-content {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .about-left {
        text-align: center;
    }

    .about-logo {
        margin-bottom: 30px;
    }

    .about-right h1{
        text-align:center;
    }
}


.mobile-lang-switch {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid var(--accent);

    display: flex;
    gap: 20px;
}

.mobile-lang-switch .lang-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    position: relative;
}

/* underline при ховере */
.mobile-lang-switch .lang-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}

.mobile-lang-switch .lang-btn:hover::after {
    width: 100%;
}

