*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:Inter,sans-serif;
/* Мягкий, тёплый молочно-белый оттенок вместо резкого белого */
background:#fcfbfa; 
color:#222933; /* Глубокий благородный графит вместо чисто чёрного */
}

.container{
width:1200px;
max-width:95%;
margin:auto;
}

/* ==========================================
   HEADER
   ========================================== */
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background:
        radial-gradient(circle at top,
        #15203d 0%,
        #09101d 45%,
        #02060f 100%);

    border-bottom:1px solid rgba(212,175,55,.12);

    box-shadow:0 8px 30px rgba(0,0,0,.35);
}

header.scrolled{

    background: transparent;

    backdrop-filter: none;

    -webkit-backdrop-filter: none;

    box-shadow: none;

}

header.scrolled .logo{
    color:#222933;
}

header.scrolled .logo span{
    color:#b5921c;
}

header.scrolled nav a{
    color:#222933;
}



header.scrolled nav a:hover{
    color:#b5921c;
}





header .container{
display:flex;
justify-content:space-between;
align-items:center;
}

.logo{
font-size:28px;
font-weight:800;
color:#FFD54A;
}

.logo span{
color:#FFE58A;
}

nav{
display:flex;
gap:35px;
}

nav a{
    color:#FFD54A;
    text-decoration:none;
    transition:.3s;
}

nav a:hover{
    color:#FFF3B0;
}

.phone,
.phone:link,
.phone:visited{

    color:#FFD54A;
    text-decoration:none;
    font-weight:600;

}

.phone:hover{

    color:#FFF3B0;

}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero{
    overflow:hidden;
    min-height:100vh;

    padding:90px 0 80px;

    position:relative;
    display:flex;
    align-items:center;

    background:
        radial-gradient(circle at 50% -20%,
        #2f4b85 0%,
        #16294d 18%,
        #0b1428 45%,
        #040812 75%,
        #010205 100%);
}
.overlay{
    position:absolute;
    inset:0;

    background:

    radial-gradient(circle at 50% 0%,
        rgba(255,255,255,.08),
        transparent 30%),

    radial-gradient(circle at 20% 20%,
        rgba(80,120,255,.08),
        transparent 45%),

    radial-gradient(circle at 80% 10%,
        rgba(120,170,255,.06),
        transparent 40%),

    linear-gradient(
        rgba(0,0,0,.15),
        rgba(0,0,0,.55)
    );

    z-index:1;
}

.hero-content{
    position:relative;
    z-index:5;
    display:grid;
    grid-template-columns:1fr 430px;
    gap:70px;
    width:100%;
    align-items:center;
}

.badge{
display:inline-block;
background:rgba(212,175,55,.1);
border:1px solid rgba(212,175,55,.25);
padding:10px 18px;
border-radius:30px;
margin-bottom:25px;
color:#b5921c; /* Чуть темнее золото для читаемости на светлом */
font-weight: 600;
}

.hero h1{
    font-size:64px;
    font-weight:800;
    line-height:1.05;

    color:#FFD54A;

    text-shadow:
        0 0 10px rgba(255,213,74,.35),
        0 0 30px rgba(255,213,74,.15);
}

.hero p{
font-size:20px;
line-height:1.7;
color: #d6c18a;
margin-bottom:40px;
}

.buttons{
display:flex;
gap:20px;
margin-bottom:45px;
}

.btn{
padding:17px 34px;
border-radius:12px;
text-decoration:none;
font-weight:700;
transition:.35s;
}

.gold{
background:#D4AF37;
color:#ffffff; /* Белый текст на золотой кнопке выглядит мягче */
box-shadow: 0 4px 15px rgba(212,175,55,.2);
}

.gold:hover{
transform:translateY(-4px);
box-shadow: 0 8px 25px rgba(212,175,55,.35);
}

.dark{
border:1px solid rgba(34,41,51,.15);
color:#222933;
background: rgba(255,255,255,0.5);
}

.dark:hover {
background: rgba(34,41,51,.04);
}

.features{
display:flex;
gap:25px;
flex-wrap:wrap;
}

.features div{
background:rgba(255,255,255,.7);
border: 1px solid rgba(0,0,0,0.03);
padding:18px 22px;
border-radius:12px;
backdrop-filter:blur(12px);
box-shadow: 0 4px 20px rgba(0,0,0,0.02);
color: #222933;
}

/* Общие карточки форм */
.form-card, .calculator, .cta-form{
background:white;
color:#222933;
padding:40px;
border-radius:22px;
/* Очень мягкие, воздушные тени вместо тяжелых черных */
box-shadow:0 20px 50px rgba(27,33,41,.06);
border: 1px solid rgba(27,33,41,.03);
}

.form-card h2, .calculator h3, .cta-form h3{
margin-bottom:30px;
color:#1b2129;
}

.form-card input, .form-card select,
.calculator select, .cta-form input, 
.cta-form select, .cta-form textarea{
width:100%;
padding:15px;
margin-bottom:18px;
border-radius:10px;
border:1px solid #e1e4e8;
background: #fcfbfa;
font-size:16px;
color: #222933;
}

.form-card button, .calculator button, .cta-form button{
width:100%;
padding:18px;
background:#D4AF37;
border:none;
font-size:17px;
font-weight:700;
color: white;
border-radius:10px;
cursor:pointer;
transition:.3s;
box-shadow: 0 4px 15px rgba(212,175,55,.2);
}

.form-card button:hover, .calculator button:hover, .cta-form button:hover{
background:#c89d18;
}

.form-card p, .cta-form small{
margin-top:20px;
text-align:center;
color:#717d8f;
font-size:14px;
}

/* ==========================================
   СЕКЦИИ С ЧЕРЕДОВАНИЕМ ЦВЕТА (Для мягкости)
   ========================================== */
.services{
padding:120px 0;
background:#f5f4f0; /* Легкий контрастный кремовый фон */
}

.section-title{
text-align:center;
max-width:800px;
margin:0 auto 70px;
}

.section-title span{
color:#b5921c;
font-size:14px;
letter-spacing:3px;
font-weight:700;
}

.section-title h2{
font-size:46px;
margin:20px 0;
color: #1b2129;
}

.section-title p{
font-size:18px;
line-height:1.8;
color:#525e70;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(420px, 1fr));
    gap:35px;
    justify-content:center;
}

.mobile-only{
    display: none;
}

.desktop-only{
    display: block;
}


/* Белоснежные карточки на кремовом фоне */
.service-card{
background:#ffffff;
padding:45px 35px;
border-radius:24px;
transition:.35s;
border:1px solid rgba(0,0,0,.03);
position:relative;
overflow:hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 340px;
opacity: 0;
transform: translateY(50px);
box-shadow: 0 10px 30px rgba(0,0,0,0.02);
text-decoration:none;
color:inherit;
align-items:center;
text-align:center;
}

.service-card:hover h3{
    color:#D4AF37;
    transition:.3s;
}

.service-card.show {
opacity: 1;
transform: translateY(0);
transition: .7s;
}

.service-card::before{
content:"";
position:absolute;
width:100%;
height:4px;
top:0;
left:-100%;
background:#D4AF37;
transition:.4s;
}

.service-card:hover::before{
left:0;
}

.service-card:hover{
transform:translateY(-12px);
box-shadow:0 20px 40px rgba(212,175,55,.12);
border-color: rgba(212,175,55,0.3);
}

.icon{
    width:80px;
    height:80px;
    border-radius:16px;
    background:#F8F5EC;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:0 auto 35px;
}

.icon img{
    width:72px;
    height:72px;
}

.icon dotlottie-player{
    width:72px;
    height:72px;
}

.service-card:hover .icon{
transform:scale(1.08);
}

.service-card h3{
 margin:25px 0 16px;
font-size:32px;
line-height:1.25;
margin-bottom:20px;
color: #1b2129;
min-height:90px;
}

.service-card p{
max-width:360px;
margin:0 auto;
line-height:1.8;
color:#677489;
}

.service-card a{
text-decoration:none;
color:#b5921c;
font-weight:700;
}

/* Секция преимуществ */
.advantages{
padding:120px 0;
background:#fcfbfa;
}

.advantages-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:30px;
margin-top:70px;
}

.advantage-card{
background:#ffffff;
padding:36px 28px;
border-radius:20px;
text-align:center;
border:1px solid rgba(0,0,0,.04);
transition:.35s;
box-shadow: 0 10px 30px rgba(0,0,0,0.01);
}

.advantage-card:hover{
transform:translateY(-10px);
border-color:#D4AF37;
box-shadow:0 20px 40px rgba(212,175,55,.1);
}

.number{
font-size:52px;
font-weight:800;
color:#D4AF37;
margin-bottom:20px;
}

.advantage-card h3{
margin-bottom:15px;
font-size:24px;
color: #1b2129;
}

.advantage-card p{
color:#525e70;
line-height:1.8;
}

/* Секция Гарантий и калькулятора */
.guarantee{
padding:140px 0;
background:#f5f4f0;
}

.guarantee .container{
display:grid;
grid-template-columns:1fr 480px;
gap:70px;
align-items:center;
}

.mini-title{
color:#b5921c;
letter-spacing:3px;
font-size:14px;
font-weight:700;
}

.guarantee h2{
font-size:52px;
margin:20px 0;
line-height:1.2;
color: #1b2129;
}

.guarantee p{
color:#525e70;
line-height:1.8;
font-size:18px;
margin-bottom:40px;
}

.benefits{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
}

.benefits div{
background:#ffffff;
padding:18px;
border-radius:12px;
border: 1px solid rgba(0,0,0,0.03);
color: #222933;
font-weight: 500;
}

.value{
margin:20px 0;
font-size:26px;
font-weight:700;
color:#1b2129;
}

/* Секция процесса работы */
.workflow{
padding:130px 0;
background:#fcfbfa;
}

.steps{
display:flex;
justify-content:space-between;
align-items:flex-start;
margin-top:70px;
gap:20px;
}

.step{
flex:1;
text-align:center;
}

.circle{
width:70px;
height:70px;
margin:auto;
border-radius:50%;
background:#D4AF37;
display:flex;
align-items:center;
justify-content:center;
font-size:28px;
font-weight:700;
color:#ffffff;
margin-bottom:25px;
box-shadow:0 5px 20px rgba(212,175,55,.25);
}

.step h3{
margin-bottom:15px;
font-size:22px;
color: #1b2129;
}

.step p{
color:#525e70;
line-height:1.7;
}

.line{
height:3px;
background:#e1e4e8;
flex:.3;
margin-top:35px;
position:relative;
}

.line::after{
content:"";
position:absolute;
left:0;
top:0;
height:100%;
width:0;
background:#D4AF37;
transition:.8s;
}

.workflow.animate .line::after{
width:100%;
}

/* Кейсы */
.cases{
padding:130px 0;
background:#f5f4f0;
}

.cases-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:35px;
margin-top:70px;
}

.case-card{
background:#ffffff;
border-radius:24px;
padding:35px;
border:1px solid rgba(0,0,0,.03);
transition:.35s;
display:flex;
flex-direction:column;
justify-content:space-between;
box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.case-card:hover{
transform:translateY(-12px);
border-color:#D4AF37;
box-shadow:0 20px 40px rgba(212,175,55,.1);
}

.case-top{
display:flex;
justify-content:space-between;
margin-bottom:30px;
}

.tag{
background:rgba(212,175,55,.1);
color:#b5921c;
padding:8px 16px;
border-radius:30px;
font-size:14px;
font-weight: 600;
}

.price{
font-weight:700;
color:#1b2129;
}

.case-card h3{
font-size:26px;
margin-bottom:20px;
color: #1b2129;
}

.case-card p{
color:#525e70;
line-height:1.8;
margin-bottom:35px;
}

.result{
background:#f5f4f0;
padding:18px;
border-radius:12px;
font-weight:600;
color:#b5921c;
}

/* СТА форма связи */
.cta{
padding:140px 0;
background:linear-gradient(135deg,#fcfbfa,#f5f4f0);
}

.cta-wrapper{
display:grid;
grid-template-columns:1fr 480px;
gap:80px;
align-items:center;
}

.cta-left h2{
font-size:52px;
margin:20px 0;
line-height:1.2;
color: #1b2129;
}

.cta-left p{
font-size:19px;
line-height:1.9;
color:#525e70;
margin-bottom:40px;
}

.cta-list{
display:grid;
grid-template-columns:1fr 1fr;
gap:18px;
}

.cta-list div{
background:#ffffff;
padding:18px;
border-radius:12px;
box-shadow: 0 5px 15px rgba(0,0,0,0.02);
border: 1px solid rgba(0,0,0,0.02);
color: #222933;
font-weight: 500;
}

/* ==========================================
   FOOTER (Контрастный темный низ заземляет дизайн)
   ========================================== */
footer{
background:#1b2129;
padding:60px 0;
}

.footer{
display:grid;
grid-template-columns:2fr 1fr 1fr;
gap:50px;
}

.footer h3{
font-size:32px;
margin-bottom:20px;
color:#D4AF37;
}

.footer h4{
margin-bottom:20px;
color: white;
}

.footer p{
color:#9fb0c7;
line-height:2;
}

/* ==========================================
   ИНТЕРАКТИВНЫЕ ЭЛЕМЕНТЫ
   ========================================== */
#heroCanvas{
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
z-index:0;
}

.cursor-glow{
position:fixed;
width:450px;
height:450px;
border-radius:50%;
pointer-events:none;
/* Изменили наложение glow, чтобы оно мягко подсвечивало теплым золотом на белом фоне */
background:radial-gradient(circle,
rgba(212,175,55,.12) 0%,
rgba(212,175,55,.04) 40%,
transparent 75%);
filter:blur(40px);
transform:translate(-50%,-50%);
z-index:2;
transition:transform .08s linear;
}

/* ==========================================
   АДАПТИВНАЯ ВЕРСИЯ ДЛЯ МОБИЛЬНЫХ И ПЛАНШЕТОВ
   ========================================== */

/* 1. Стили для планшетов и небольших ноутбуков (до 1024px) */
@media (max-width: 1024px) {
    .hero-content, 
    .guarantee .container, 
    .cta-wrapper {
        grid-template-columns: 1fr; /* Перестраиваем двухколоночные сетки в одну колонку */
        gap: 40px;
    }

    .hero {
        height: auto; /* Позволяем первому экрану растягиваться под контент */
        padding: 140px 0 60px;
    }

    .services-grid, 
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr); /* Делаем по 2 карточки в ряд вместо 4 */
        gap: 20px;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 кейса в ряд вместо 3 */
        gap: 20px;
    }
}

.stats-grid{

    grid-template-columns:1fr 1fr;

}

/* 2. Стили для мобильных телефонов (до 768px) */
@media (max-width: 768px) {
    /* Шапка сайта */
    header .container {
        flex-direction: column; /* Логотип, меню и телефон встают друг под друга */
        gap: 15px;
        text-align: center;
    }

    nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Изменение размеров крупных заголовков, чтобы они не вылезали за экран */
    .hero h1 {
        font-size: 34px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .guarantee h2, 
    .cta-left h2 {
        font-size: 30px;
    }

    /* Кнопки на главном экране */
    .buttons {
        flex-direction: column; /* Кнопки встают друг под друга */
        gap: 12px;
    }

    .btn {
        text-align: center;
        width: 100%;
    }

    /* Перевод всех сеток в одну колонку */
    .services-grid, 
    .advantages-grid, 
    .cases-grid,
    .benefits,
    .cta-list {
        grid-template-columns: 1fr;
    }

    /* Адаптация формы и калькулятора */
    .form-card, 
    .calculator, 
    .cta-form {
        padding: 30px 20px;
    }

    /* Блок "Как мы работаем" (Шаги) */
    .steps {
        flex-direction: column; /* Шаги выстраиваются вертикально */
        gap: 35px;
        align-items: center;
    }

    .line {
        display: none; /* Полностью скрываем горизонтальные соединительные линии */
    }

    .step {
        width: 100%;
    }

    /* Футер сайта */
    .footer {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
}

/* 3. Оптимизация для устройств без поддержки наведения мыши (сенсорные экраны) */
@media (hover: none) {
    /* Полностью скрываем неоновое пятно, чтобы оно не залипало на экранах телефонов */
    .cursor-glow {
        display: none !important;
    }
    
    /* Отключаем трансформации при наведении, которые могут дергать верстку на тачах */
    .service-card:hover,
    .advantage-card:hover,
    .case-card:hover,
    .gold:hover {
        transform: none !important;
    }
}

/* =======================================================
   Блок статистики
======================================================= */

.stats{

    padding:120px 0;

    background:#fcfbfa;

}

.stats-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

    margin-top:70px;

}

.stat-card{

    background:#fff;
    border:1px solid rgba(212,175,55,.12);

    border-radius:24px;

    padding:45px 25px;

    text-align:center;

    transition:.35s;

    border:1px solid rgba(0,0,0,.04);

    box-shadow:0 10px 30px rgba(0,0,0,.03);

}

.stat-card:hover{

    transform:translateY(-10px);

    border-color:#D4AF37;

    box-shadow:0 20px 40px rgba(212,175,55,.15);

}

.stat-number{

    font-size:54px;

    font-weight:800;

    color:#D4AF37;

    margin-bottom:15px;

}

.stat-text{

    font-size:18px;

    color:#525e70;

    line-height:1.6;

}

/* ======== Карточки банковских гарантий ======== */

.card-list{

    width:100%;
    max-width:420px;
    margin:20px auto;
    padding:0;
    text-align:left;

}

.card-list li{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:18px;

}
.card-list li::before{

    content:"✓";

    color:#D4AF37;

    font-weight:bold;

    margin-right:12px;

}

.card-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    margin-top:auto;

}

.card-divider{

    width:100%;

    height:1px;

    background:#ECE7D6;

    margin:28px 0;

}

.card-stat{

    flex:1;

    padding:14px;

    background:#FAF8F3;

    border-radius:12px;

    text-align:center;

    transition:.3s;

}

.card-stat strong{

    display:block;

    font-size:28px;

    color:#C89B2D;

    font-weight:700;

    margin-bottom:8px;

}

.card-stat span{

    font-size:14px;

    color:#6E7786;

    line-height:1.4;

}

/* ===================================================
   Блок "Почему нам доверяют"
=================================================== */

.trust{

    padding:120px 0;

    background:#f8f8f6;

}

.trust-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

    margin-top:70px;

}

.trust-card{

    background:#ffffff;
    position:relative;  
    border-radius:24px;
    overflow:hidden;
    padding:55px 35px;

    text-align:center;

    box-shadow:0 15px 45px rgba(0,0,0,.05);
    min-height:auto;
    transition:.35s;

}

.trust-card:hover{

    transform:translateY(-10px);

    box-shadow:0 30px 70px rgba(0,0,0,.08);

    border:1px solid rgba(212,175,55,.25);

}

.trust-card::before{

    content:"";

    position:absolute;

    top:0;

    left:-100%;

    width:100%;

    height:4px;

    background:#D4AF37;

    transition:.4s;

}

.trust-card:hover::before{

    left:0;

}

.trust-card .number{

    font-size:64px;
    margin-top:25px;
    font-weight:800;

    color:#D4AF37;

    margin-bottom:18px;

}

.trust-card p{

    font-size:18px;

    color:#64748B;

    line-height:1.6;

}

/*==========================
        COUNTRIES
==========================*/

.countries{

    padding:120px 0;

    background:#fff;

}

.countries-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

    margin-top:60px;

}

.country-card{

    background:#fff;

    border-radius:24px;

    padding:40px 30px;

    text-align:center;

    border:1px solid rgba(212,175,55,.12);

    box-shadow:0 10px 30px rgba(0,0,0,.03);

    transition:.35s;

}

.country-card:hover{

    transform:translateY(-8px);

    border-color:#D4AF37;

    box-shadow:0 20px 40px rgba(212,175,55,.12);

}

.country-card span{

    font-size:42px;

    display:block;

    margin-bottom:18px;

}

.country-card h3{

    font-size:26px;

    color:#1b2129;

}

main{
    padding-top:90px;
}

.feature-card{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    border:1px solid rgba(34,41,51,.15);
    background:rgba(255,255,255,.5);
    color:#222933;

    transition:.35s;
    cursor:pointer;
}

.feature-card:hover{
    background:rgba(34,41,51,.04);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    opacity: .65;
}

.feature-card:hover{
    transform:translateY(-4px);
}

.card-link{
    text-decoration: none;
    color: inherit;
    display: inline-block;
}