* {
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F7F9FC;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
}

/* Header */

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 666;
    width: 100%;
    background-color: #EDF2FA;
    border-bottom: #1A2747 1px solid;
    box-shadow: 0 0px 8px rgba(26, 39, 71, 0.5); 
}

.logo a {
    text-decoration: none;
    font-size: 48px;
    font-weight: 600;
    color: #1A2747;
}

.headerCont {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1200px;
    height: 80px;
    margin: 0 auto;
}

.navBar {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    
    
    font-size: 16px;
    font-weight: 600;
}

.navBar a {
    position: relative;
    text-decoration: none;
    color: #1E1E1E;
    transition: color 0.3s ease;
}

.navBar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px; /* чуть ниже текста */
    width: 0;
    height: 3px;
    background-color: #1A2747; /* зелёная линия — можешь поменять */
    transition: width 0.3s ease;
}

.navBar a:hover::after {
  width: 100%;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  width: 25px;
}

.burger span {
  display: none;
  height: 3px;
  width: 100%;
  background: #1A2747;
  border-radius: 2px;
  transition: 0.3s;
}

.burlinks {
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    background: #EDF2FA;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 30px 0;
    /* box-shadow: 0 2px 8px rgba(26, 39, 71, 0.5); */
    box-shadow: 0 8px 20px rgba(26, 39, 71, 0.2); 


    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;

    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 664;
}

.burlinks.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.burger span {
    transition: all 0.4s ease;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
.burLink a {
    text-decoration: none;
    color: #1E1E1E;
    font-size: 20px;
}

.burlinks.active {
  display: flex;
}

.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
    opacity: 0;
}
.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */

.hero {
    background-color: #EDF2FA;
}

.heroText {
    width: 600px;
}

.heroCont {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1200px;
    margin: 0 auto;
    padding: 180px 0 120px;
}

.heroTitle {
    font-family: 'Poppins', sans-serif;
    font-size: 96px;
    font-weight: 900;
    color: #1A2747;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.heroSubTitle {
    margin: 45px 0;

    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #1E1E1E;
}

.kaspiTag {
    display: inline-block;
    vertical-align: middle;
    height: 71px;

    border-radius: 20px;

    background-color: #F14635;
    box-sizing: border-box;
    padding: 20px;

    color: #F7F9FC;
    font-weight: 600;
    text-transform: uppercase;
}

.heroBtn button {
    width: 260px;
    height: 80px;

    background-color: #FFD600;
    color: #1E1E1E;
    border: #1A2747 2px solid;
    border-radius: 30px;

    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;

    transition: background-color 0.2s ease;
}

.heroBtn button:hover {
    cursor: pointer;
    background-color: #FFB800;
}

/* NJA Is */

.njaIsCont {
    width: 1200px;
    margin: 0 auto;
    padding: 120px 0;
}

.njaTitle {
    font-size: 64px;    
    font-weight: 600;
    color: #1A2747;
}

.titleWeight {
    font-weight: 600;
}

.njaCards {
    display: flex;
    gap: 28px;
    margin: 70px 0;
}

.njaCard {
    box-sizing: border-box;
    /* background-color: rgba(26, 39, 71, 0.4); */
    width: 279px;
    height: 351px;
    border: #1A2747 1px solid;
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 35px;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    cursor: pointer;
}

.njaCard:hover {
    /* background-color: rgba(255, 214, 0, 1);  */
    transform: translateY(-6px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); 
}

.njaCardImg img {
    width: 140px;
    height: 140px;
}

.njaCardTitle {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
}

/* About Us */

.about {
    background-color: #1A2747;
    color: #F7F9FC;
}

.aboutCont {
    width: 1200px;
    margin: 0 auto;
    padding: 120px 0;
}

.aboutTitle {
    font-size: 72px;
    font-weight: 600;
    text-transform: uppercase;
}

.aboutSub {
    margin-top: 46px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
}

/* Consultation */

.consult {
    background-color: #EDF2FA;
}

.consultCont {
    width: 1200px;
    margin: 0 auto;
    padding: 120px 0;
}

.consultTitle {
    font-size: 64px;
    font-weight: 600;
    color: #1A2747;
    text-transform: uppercase;
}

.consultSub {
    font-size: 40px;
    font-weight: 600;
    color: #1A2747;
    text-transform: uppercase;
}

.consultSub2 {
    font-size: 32px;
    font-weight: 600;
    color: #1A2747;
    text-transform: uppercase;
    margin-top: 80px;
}

.consultCards {
    display: flex;
    gap: 28px;
    margin: 70px 0;
}

.consultCard {
    box-sizing: border-box;
    background-color: rgba(255, 214, 0, 0.4);
    width: 279px;
    height: 351px;
    border: #1A2747 1px solid;
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 35px;

    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0); 
    cursor: pointer;
}

.consultCard:hover {
    background-color: rgba(255, 214, 0, 1); 
    transform: translateY(-6px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); 
}

.consultCardImg img {
    width: 140px;
    height: 140px;
}

.consultCardTitle {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
}

.attention {
    display: flex;
    align-items: center;
    gap: 36px;
    width: 1000px;
}

.attentionImg img {
    width: 150px;
    height: 150px;
    animation: shake 1.2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(8deg); }
    50% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

.attentionText {
    color: #1A2747;
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Contact */

.contact {
    background-color: #F7F9FC;
}

.contactCont {
    width: 1200px;
    margin: 0 auto;
    padding: 120px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatGet {
    width: 550px;
}

.getTitle {
    color: #1A2747;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 30px;
}

.getSub {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.getSubImg {
    width: 60px;
    height: 60px;
}

.getSubText {
    font-size: 20px;
    font-weight: 600;
}

.form {
    box-sizing: border-box;
    width: 600px;
    height: 600px;

    background-color: #1A2747;
    border-radius: 40px;

    padding: 60px 50px;
}

.formTitle {
    font-size: 40px;
    font-weight: 700;
    color: #F7F9FC;
}

form {
    display: flex;
    flex-direction: column;
}

input {
    box-sizing: border-box;
    height: 50px;
    border-radius: 10px;
    /* border: 1px #1e1e1e solid; */
    padding: 15px 20px;

    margin-top: 40px;

    background-color: #F7F9FC;
    color: #F7F9FC;

    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;

    border: 2px solid #ccc;
    background: transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    border-color: #FFD600;
    box-shadow: 0 4px 6px -2px rgba(255, 214, 0, 0.5);
    outline: none;
}

textarea {
    box-sizing: border-box;

    height: 100px;
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 40px;

    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #F7F9FC;

    border: 2px solid #ccc;
    background: transparent;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
    border-color: #FFD600;
    box-shadow: 0 4px 6px -2px rgba(255, 214, 0, 0.5);
    outline: none;
}

.submitBtn {
    width: 300px;
    height: 75px;
    border-radius: 20px;
    border: 2px #1E1E1E solid;
    background-color: #FFD600;
    color: #1E1E1E;
    margin-top: 50px;
    
    text-transform: uppercase;
    font-size: 24px;
    font-weight: 700;
}

.submitBtn:hover {
    cursor: pointer;
    background-color: #FFB800;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #EDF2FA;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    width: 800px;
    animation: fadeIn 0.3s ease;
}

.modal-content img {
    width: 200px;
    height: 200px;
    margin-bottom: 40px;
}

.modal-content h3 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1A2747;
}

.modal-content p {
    font-size: 20px;
    color: #333;
    margin-bottom: 50px;
}

.close {
    margin-right: 20px;
    align-self: flex-end; 
    font-size: 48px;
    color: #999;
    cursor: pointer;
}

.close:hover {
    color: #000;  
}

@keyframes fadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

footer {
    background-color: #EDF2FA;
}

.footerCont {
    width: 1200px;
    margin: 0 auto;
    padding: 120px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footerTitle {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #1A2747;
    text-transform: uppercase;
}

.footerSub {
    font-size: 20px;
    font-weight: 600;
    color: #1E1E1E;
    text-transform: uppercase;

    margin-top: 10px;
}

@media ( max-width: 1200px ) {

    /* Header */

    header {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 666;
        width: 100%;
        background-color: #EDF2FA;
        border-bottom: #1A2747 1px solid;
        box-shadow: 0 2px 8px rgba(26, 39, 71, 0.5); 
    }

    .logo a {
        text-decoration: none;
        font-size: 36px;
        font-weight: 600;
        color: #1A2747;
    }

    .headerCont {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 704px;
        height: 80px;
        margin: 0 auto;
    }

    .navBar {
        display: none;
        justify-content: space-between;
        gap: 40px;
        
        
        font-size: 16px;
        font-weight: 600;
    }

    .burger {
        display: flex;
    }

    .burger span {
        display: block;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        width: 25px;
    }

    .burger span {
        display: block;
        height: 3px;
        width: 100%;
        background: #1A2747;
        border-radius: 2px;
        transition: 0.3s;
    }   

    .navBar {
        position: absolute;
        top: 80px;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 20px;
        gap: 15px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .navBar.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    

    .navBar a {
        position: relative;
        text-decoration: none;
        color: #1E1E1E;
        transition: color 0.3s ease;
    }

    .navBar a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -4px; /* чуть ниже текста */
        width: 0;
        height: 3px;
        background-color: #1A2747; /* зелёная линия — можешь поменять */
        transition: width 0.3s ease;
    }

    .navBar a:hover::after {
    width: 100%;
    }

    /* Hero Section */

    .heroCont {
        width: 704px;
        padding: 150px 0 120px;
    }

    .heroText {
        width: 100%;
    }

    .heroTitle {
        font-size: 60px;
    }

    .kaspiTag {
        margin-top: 20px;
    }

    .heroBtn button {
        width: 250px;
        height: 70px;
    }

    .heroImg img {
        width: 340px;
        height: 340px;
    }

    /* NJA Is */

    .njaIsCont {
        width: 704px;
        padding: 60px 0;
    }

    .njaTitle {
        font-size: 64px;  
        width: 500px;  
    }

    .njaCards {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        margin: 50px 0;
    }

    .njaCard {
        width: 337px;
        height: 351px;
    }

    .njaCardTitle {
        margin: 20px 0;
    }

    /* About Us */

    .aboutCont {
        width: 704px;
        padding: 60px 0;
    }

    .aboutTitle {
        font-size: 64px;
        font-weight: 600;
    }

    .aboutSub {
        margin-top: 30px;
    }

    /* Consultation */

    .consultCont {
        width: 704px;
        padding: 60px 0;
    }

    .consultTitle {
        font-size: 64px;
    }

    .consultSub {
        font-size: 32px;
    }

    .consultSub2 {
        font-size: 28px;
        margin-top: 60px;
    }

    .consultCards {
        flex-wrap: wrap;
        gap: 30px;
        margin: 70px 0;
    }

    .consultCard {
        width: 337px;
        height: 351px;
        padding: 35px;
    }

    .consultCardTitle {
        font-size: 24px;
        margin: 40px 0;
    }

    .attention {
        gap: 20px;
        width: 704px;
    }

    .attentionImg img {
        width: 120px;
        height: 120px;
    }

    .attentionText {
        font-size: 26px;
    }

    /* Contact */

    .contactCont {
        width: 704px;
        padding: 60px 0;
        flex-direction: column;
    }

    .whatGet {
        width: 704px;
    }

    .form {
        width: 704px;
        margin-top: 60px;
    }

    .submitBtn {
        width: 220px;
        height: 60px;
        margin: 50px auto 0;
    }

    .modal {
        display: none;
        width: 100%;
        height: 100%;
    }

    .modal-content {
        width: 704px;
        margin: 40px auto;
    }

    .footerCont {
        width: 704px;
        padding: 60px 0 60px;
    }
}

@media ( max-width: 768px ) {

    /* Header */

    header {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 666;
        width: 100%;
        margin: 0 auto;
        background-color: #EDF2FA;
        border-bottom: #1A2747 1px solid;
        box-shadow: 0 2px 8px rgba(26, 39, 71, 0.5); 
    }

    .logo a {
        text-decoration: none;
        font-size: 30px;
        font-weight: 600;
        color: #1A2747;
    }

    .headerCont {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 328px;
        height: 80px;
        margin: 0 auto;
    }

    .navBar {
        display: none;
        justify-content: space-between;
        gap: 40px;
        
        
        font-size: 16px;
        font-weight: 600;
    }

    .navBar a {
        position: relative;
        text-decoration: none;
        color: #1E1E1E;
        transition: color 0.3s ease;
    }

    .navBar a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -4px; /* чуть ниже текста */
        width: 0;
        height: 3px;
        background-color: #1A2747; /* зелёная линия — можешь поменять */
        transition: width 0.3s ease;
    }

    .navBar a:hover::after {
        width: 100%;
        }

    .burger {
        display: flex;
    }

    .navBar {
        position: absolute;
        top: 80px;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 20px;
        gap: 15px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .navBar.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    

    /* Hero Section */

    .heroCont {
        flex-direction: column;
        width: 328px;
        padding: 180px 0 60px;
    }

    .heroTitle {
        font-family: 'Poppins', sans-serif;
        font-size: 54px;
        font-weight: 900;
        color: #1A2747;
        line-height: 1;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .heroSubTitle {
        margin: 35px 0 20px;

        font-size: 24px;
        font-weight: 600;
        letter-spacing: 2px;
        color: #1E1E1E;
    }

    .kaspiTag {
        display: inline-block;
        vertical-align: middle;
        height: 60px;

        border-radius: 20px;

        background-color: #F14635;
        box-sizing: border-box;
        padding: 15px;

        color: #F7F9FC;
        font-weight: 600;
        text-transform: uppercase;
    }

    .heroBtn button {
        width: 220px;
        height: 60px;

        border-radius: 20px;

        font-size: 20px;
        font-weight: 700;
        text-transform: uppercase;

        transition: background-color 0.2s ease;
    }

    .heroBtn button:hover {
        cursor: pointer;
        background-color: #FFB800;
    }

    .heroImg {
        width: 350px;
        height: 350px;
    }

    /* NJA Is */

    .njaIsCont {
        width: 328px;
        padding: 60px 0;
    }

    .njaTitle {
        font-size: 36px;  
        width: 328px; 
        font-weight: 700;
    }

    .titleWeight {
        font-weight: 500;
    }

    .njaCards {
        display: flex;
        flex-wrap: wrap;
        gap: 28px;
        margin: 30px 0;
    }

    .njaCard {
        width: 328px;
        height: 351px;
        padding: 35px 15px;
    }

    .njaCardImg img {
        width: 120px;
        height: 120px;
    }

    .njaCardTitle {
        margin: 40px 0;
    }

    /* About Us */

    .aboutCont {
        width: 328px;
        padding: 60px 0;
    }

    .aboutTitle {
        font-size: 52px;
        font-weight: 600;
        text-transform: uppercase;
    }

    .aboutSub {
        margin-top: 30px;
        font-size: 20px;
        font-weight: 400;
    }

    /* Consultation */

    .consultCont {  
        width: 328px;
        padding: 60px 0;
    }

    .consultTitle {
        font-size: 34px;
        font-weight: 600;
    }

    .consultSub {
        font-size: 26px;
        font-weight: 600;
        color: #1A2747;
        text-transform: lowercase;
    }

    .consultSub2 {
        font-size: 24px;
        text-transform: none;
        margin-top: 30px;
    }

    .consultCards {
        display: flex;
        flex-wrap: wrap;
        gap: 25px;
        margin: 40px 0;
    }

    .consultCard {
        box-sizing: border-box;
        background-color: rgba(255, 214, 0, 0.4);
        width: 328px;
        height: 351px;
        border: #1A2747 1px solid;
        border-radius: 20px;

        display: flex;
        flex-direction: column;
        align-items: center;

        padding: 35px;

        transition: all 0.3s ease;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0); 
        cursor: pointer;
    }

    .consultCardImg img {
        width: 140px;
        height: 140px;
    }

    .consultCardTitle {
        font-size: 24px;
        font-weight: 600;
        text-align: center;
        margin: 20px 0;
    }

    .attention {
        display: flex;
        align-items: center;
        gap: 15px;
        width: 328px;
    }

    .attentionImg img {
        width: 80px;
        height: 80px;
    }

    .attentionText {
        width: 230px;
        font-size: 16px;
    }

    /* Contact */

    .contactCont {
        width: 328px;
        padding: 60px 0;
        flex-direction: column;
    }

    .whatGet {
        width: 328px;
    }

    .getTitle {
        color: #1A2747;
        font-size: 32px;
    }

    .getSub {
        gap: 15px;
        margin-top: 20px;
    }

    .getSubImg {
        width: 40px;
        height: 40px;
    }
    .getSubImg img {
        width: 40px;
        height: 40px;
    }

    .getSubText {
        font-size: 16px;
    }

    .form {
        width: 328px;
        height: auto;
        padding: 40px 20px;
        border-radius: 20px;
    }

    .formTitle {
        width: 220px;
        font-size: 32px;
        font-weight: 600;
        color: #F7F9FC;
    }

    input {
        margin-top: 20px;
    }

    textarea {
        margin-top: 20px;
    }

    .submitBtn {
        width: 200px;
        height: 50px;
        border-radius: 20px;
        margin-top: 25px;
        
        text-transform: none;
        font-size: 24px;
        font-weight: 600;
    }

    .modal {
        display: none;
        max-width: 768px;
        height: 100%;
    }

    .modal-content {
        width: 328px;
        margin: 40px auto;
    }

    /* .modal-content {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #EDF2FA;
        border-radius: 16px;
        text-align: center;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        width: 328px;
        animation: fadeIn 0.3s ease;
    } */

    .modal-content img {
        width: 120px;
        height: 120px;
        margin-bottom: 40px;
    }

    .modal-content h3 {
        font-size: 32px;
        margin-bottom: 10px;
        color: #1A2747;
    }

    .modal-content p {
        font-size: 20px;
        color: #333;
        margin-bottom: 50px;
    }


    .footerCont {
        width: 328px;
        padding: 60px 0 60px;
    }

    .footerTitle {
        font-family: 'Poppins', sans-serif;
        font-size: 20px;
        font-weight: 900;
        color: #1A2747;
        text-transform: uppercase;
    }

    .footerSub {
        font-size: 14px;
        font-weight: 500;
        color: #1E1E1E;
        text-transform: uppercase;

        /* margin-top: 10px; */
    }

    .burger span {
        display: block;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        width: 25px;
    }

    .burger span {
        display: block;
        height: 3px;
        width: 100%;
        background: #1A2747;
        border-radius: 2px;
        transition: 0.3s;
    }

}


/* Контейнер */
.carousel-wrap{
    background-color: #EDF2FA;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 0px;
    box-sizing: border-box;
}

/* Сама полоса — горизонтальный флекс */
.carousel{
    display: flex;
    gap: 24px;
    align-items: center;
    overflow: hidden; /* скрываем выступающие элементы */
    scroll-behavior: smooth;
    padding: 20px;
    box-sizing: border-box;
}

/* Каждый элемент — отдельный блок */
.carousel-item{
    flex: 0 0 auto; /* не сжимаем/не растягиваем */
    width: 320px;      /* ширина активного блока (большая) */
    height: 568px;
    max-height: 720px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 500ms ease, opacity 500ms ease, width 500ms ease;
    /* box-shadow: 0 8px 30px rgba(0,0,0,0.25); */
    position: relative;
    background: #000;
}

/* видео растянуть */
.carousel-item video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* маленькие соседние плитки */
.carousel-item.side {
    width: 30%;      /* ширина соседних блоков */
    opacity: 0.9;
    transform: scale(0.96);
    filter: saturate(0.85) brightness(0.9);
}

/* скрытые далеко элементы (опционально) */
.carousel-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

/* управление (стрелки и точки) */
.carousel-controls{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
    margin-top:16px;
}

.ctrl{
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background .2s;
}
.ctrl:hover{ 
    background: rgba(255,255,255,0.06); 
}

.dots{ 
    display:flex; gap:8px; align-items:center; 
}

.dot{
    width:10px; height:10px; border-radius:50%;
    background: rgba(255,255,255,0.35);
    border: none; cursor: pointer;
}
.dot.active{ 
    background: rgba(255,255,255,1); 
}

.carousel-item video {
    pointer-events: none;
}

.carousel-wrap.single {
    width: 320px;      /* ширина активного блока (большая) */
    height: 568px;
    padding: 0;
    background: none;
}

.carousel-wrap.single .carousel {
    justify-content: center;
    overflow: visible;
    padding: 0;
}

.carousel-wrap.single .carousel-item {
    width: 100%;
    max-width: 720px; /* ограничиваем чтобы не растягивалось сильно */
    height: auto;
    aspect-ratio: 9/16; /* сохраняем вертикальное соотношение */
    border-radius: 16px;
}

.carousel-wrap.single .carousel-item video {
    object-fit: cover;
    border-radius: 16px;
}

/* скрываем кнопки и точки, если вдруг они остались */
.carousel-wrap.single .carousel-controls {
    display: none !important;
}


/* адаптив — уменьшать размеры на мобайле */
@media (max-width: 1200px){
    .carousel-wrap{
        background-color: #EDF2FA;
        position: relative;
        width: 100%;
        max-width: 600px;
        aspect-ratio: 9/16;
        object-fit: cover;
        margin: 0 auto;
        padding: 40px 0px;
        margin-top: 30px;
        box-sizing: border-box;
    }

    /* Сама полоса — горизонтальный флекс */
    .carousel{
        display: flex;
        gap: 24px;
        align-items: center;
        overflow: hidden; /* скрываем выступающие элементы */
        scroll-behavior: smooth;
        padding: 20px;
        box-sizing: border-box;
    }

    /* Каждый элемент — отдельный блок */
    .carousel-item{
        flex: 0 0 auto; /* не сжимаем/не растягиваем */
        width: 320px;      /* ширина активного блока (большая) */
        height: 568px;
        max-height: 720px;
        border-radius: 12px;
        overflow: hidden;
        transition: transform 500ms ease, opacity 500ms ease, width 500ms ease;
        /* box-shadow: 0 8px 30px rgba(0,0,0,0.25); */
        position: relative;
        background: #000;
    }

    /* видео растянуть */
    .carousel-item video{
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* маленькие соседние плитки */
    .carousel-item.side {
        width: 30%;      /* ширина соседних блоков */
        opacity: 0.9;
        transform: scale(0.96);
        filter: saturate(0.85) brightness(0.9);
    }

    /* скрытые далеко элементы (опционально) */
    .carousel-item.hidden {
        opacity: 0;
        transform: scale(0.9);
        pointer-events: none;
    }

    /* управление (стрелки и точки) */
    .carousel-controls{
        display:flex;
        align-items:center;
        justify-content:center;
        gap:16px;
        margin-top:16px;
    }

    .ctrl{
        background: transparent;
        border: none;
        font-size: 20px;
        cursor: pointer;
        padding: 8px 12px;
        border-radius: 6px;
        transition: background .2s;
    }
    .ctrl:hover{ 
        background: rgba(255,255,255,0.06); 
    }

    .dots{ 
        display:flex; gap:8px; align-items:center; 
    }

    .dot{
        width:10px; height:10px; border-radius:50%;
        background: rgba(255,255,255,0.35);
        border: none; cursor: pointer;
    }
    .dot.active{ 
        background: rgba(255,255,255,1); 
    }

    .carousel-item video {
        pointer-events: none;
    }

    .carousel-wrap.single {
        width: 100%;  
        aspect-ratio: 9/16;
        object-fit: cover;    /* ширина активного блока (большая) */
        padding: 0;
        background: none;
    }

    .carousel-wrap.single .carousel {
        justify-content: center;
        overflow: visible;
        padding: 0;
    }

    .carousel-wrap.single .carousel-item {
        width: 100%;
        max-width: 720px; /* ограничиваем чтобы не растягивалось сильно */
        height: auto;
        aspect-ratio: 9/16; /* сохраняем вертикальное соотношение */
        border-radius: 16px;
    }

    .carousel-wrap.single .carousel-item video {
        object-fit: cover;
        border-radius: 16px;
    }

    /* скрываем кнопки и точки, если вдруг они остались */
    .carousel-wrap.single .carousel-controls {
        display: none !important;
    }

}

@media (max-width: 768px){
    /* Контейнер */
    .carousel-wrap{
        background-color: #EDF2FA;
        position: relative;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        padding: 40px 0px;
        margin-top: 30px;
        box-sizing: border-box;
    }

    /* Сама полоса — горизонтальный флекс */
    .carousel{
        display: flex;
        gap: 24px;
        align-items: center;
        overflow: hidden; /* скрываем выступающие элементы */
        scroll-behavior: smooth;
        padding: 20px;
        box-sizing: border-box;
    }

    /* Каждый элемент — отдельный блок */
    .carousel-item{
        flex: 0 0 auto; /* не сжимаем/не растягиваем */
        width: 320px;      /* ширина активного блока (большая) */
        height: 568px;
        max-height: 720px;
        border-radius: 12px;
        overflow: hidden;
        transition: transform 500ms ease, opacity 500ms ease, width 500ms ease;
        /* box-shadow: 0 8px 30px rgba(0,0,0,0.25); */
        position: relative;
        background: #000;
    }

    /* видео растянуть */
    .carousel-item video{
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* маленькие соседние плитки */
    .carousel-item.side {
        width: 30%;      /* ширина соседних блоков */
        opacity: 0.9;
        transform: scale(0.96);
        filter: saturate(0.85) brightness(0.9);
    }

    /* скрытые далеко элементы (опционально) */
    .carousel-item.hidden {
        opacity: 0;
        transform: scale(0.9);
        pointer-events: none;
    }

    /* управление (стрелки и точки) */
    .carousel-controls{
        display:flex;
        align-items:center;
        justify-content:center;
        gap:16px;
        margin-top:16px;
    }

    .ctrl{
        background: transparent;
        border: none;
        font-size: 20px;
        cursor: pointer;
        padding: 8px 12px;
        border-radius: 6px;
        transition: background .2s;
    }
    .ctrl:hover{ 
        background: rgba(255,255,255,0.06); 
    }

    .dots{ 
        display:flex; gap:8px; align-items:center; 
    }

    .dot{
        width:10px; height:10px; border-radius:50%;
        background: rgba(255,255,255,0.35);
        border: none; cursor: pointer;
    }
    .dot.active{ 
        background: rgba(255,255,255,1); 
    }

    .carousel-item video {
        pointer-events: none;
    }

    .carousel-wrap.single {
        width: 100%;      /* ширина активного блока (большая) */
        height: 568px;
        padding: 0;
        background: none;
    }

    .carousel-wrap.single .carousel {
        justify-content: center;
        overflow: visible;
        padding: 0;
    }

    .carousel-wrap.single .carousel-item {
        width: 100%;
        max-width: 720px; /* ограничиваем чтобы не растягивалось сильно */
        height: auto;
        aspect-ratio: 9/16; /* сохраняем вертикальное соотношение */
        border-radius: 16px;
    }

    .carousel-wrap.single .carousel-item video {
        object-fit: cover;
        border-radius: 16px;
    }

    /* скрываем кнопки и точки, если вдруг они остались */
    .carousel-wrap.single .carousel-controls {
        display: none !important;
    }

}
