/* -------------------- RESET & BASE -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: Calibri, sans-serif;
    color: #031332;
    line-height: 1.6;
    background: #FFFFFF;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

/* -------------------- HERO -------------------- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;                 /* всегда минимум экран */
    padding: 0 20px;
    text-align: center;
    overflow: hidden;
    color: #FFFFFF;
}

/* слой затемнения, если нужен лёгкий контраст */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* обёртка двух картинок — теперь это фон, а не «соседний» блок */
.hero-img-div {
    position: absolute;
    inset: 0;                          /* растягиваем на весь hero */
    width: 100%;
    height: 100%;
    z-index: 1;                        /* под тёмным «фильтром», но над фоном hero */
    pointer-events: none;              /* не перехватываем клики */
}

/* обе картинки заполняют всю область */
.hero-img,
.hero-img-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* фото девушки — увеличиваем до заполнения */
.hero-img {
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}

/* objects.png — лежит поверх девушки */
.hero-img-cover {
    object-fit: cover;
    object-position: center top;
    z-index: 2;
}

/* контент всегда поверх картинок и затемнения */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 24px;
    line-height: 1.2;
    animation: fadeIn 0.8s ease;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 40px;
    color: #ECEFF5;
    animation: fadeIn 0.8s ease 0.05s backwards;
}

.btn-primary {
    display: inline-block;
    background: #FA4D4D;
    padding: 14px 28px;
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: bold;
    animation: fadeIn 0.8s ease 0.1s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to   { opacity: 1; transform: translateY(0);}
}

/* -------------------- DOCUMENTS -------------------- */
.docs-section {
    padding: 80px 40px;
    background: #F7F9FC;
}

.docs-section h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: 60px;
    text-align: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 33px;
    justify-content: center;
}

.card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card .icon {
    width: 32px;
    margin-bottom: 16px;
}

.card h3 {
    color: #031332;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 120%;
}

.card p {
    color: #031332;
    font-size: 1rem;
    line-height: 130%;
}

.card a {
    display: inline-flex;
    align-items: center;
    color: #636FE7;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 32px;
    text-decoration: underline;
}

.card a img {
    margin-left: 6px;
    width: 11px;
    height: 17px;
}

/* -------------------- FUNCTIONS -------------------- */
.functions-section {
    padding: 80px 40px;
}

.functions-section h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 120%;
}

.functions-section ul {
    max-width: 800px;
    padding-top: 40px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.functions-section li {
    position: relative;
    padding-left: 20px;
    font-size: 1rem;
    line-height: 32px;
}

.functions-section li::before {
    content: '•';
    position: absolute;
    left: 0;
}

/* -------------------- FEATURES -------------------- */
.features-section {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
    padding: 65px clamp(1rem, 6vw, 4rem);
    background: #636FE7;
    color: #FFFFFF;
}

.features-content {
    flex: 1 1 300px;
}

.features-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: 40px;
}

.feature-list {
    display: grid;
    gap: 24px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feat-header {
    border-radius: 10px;
    border: 1px solid #FFF;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 9px 40px;
}

.feature-item p {
    font-size: 0.875rem;
}

.features-image {
    flex: 1 1 300px;
    max-width: 400px;
    padding-top: 45px;
    margin: 0 auto;
}

.features-image-cont {
    mix-blend-mode: lighten;
}

/* -------------------- CONTACTS -------------------- */
.contacts-section {
    padding: 80px clamp(1rem, 6vw, 4rem);
    background: #FFFFFF;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

@media (min-width: 768px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contacts-text h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 60px;
}

.subtitle {
    font-size: 1.25rem;
}

.contact-list {
    padding-top: 30px;
    display: grid;
    gap: 24px;
}

.contact-list li {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    line-height: 24px;
}

.number {
    font-size: 1rem;
    font-weight: bold;
}

.contact-list img {
    width: 20px;
    margin-right: 12px;
}

.contacts-decor {
    position: relative;
    display: inline-block;
}

.contacts-decor img:first-child {
    width: 100%;
    height: auto;
}

.contacts-decor img:nth-child(2) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* -------------------- FOOTER -------------------- */
.footer {
    padding: 40px clamp(1rem, 4vw, 2rem);
    background: #F7F9FC;
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.footer-nav a {
    font-size: 0.875rem;
}

.footer-contact-btn {
    padding: 10px 24px;
    border: 2px solid #3751FF;
    border-radius: 6px;
    background: transparent;
    color: #3751FF;
    font-size: 0.875rem;
    cursor: pointer;
    margin-bottom: 40px;
    display: none;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: center;
    border-top: 1px solid #E5E7EB;
    padding-top: 20px;
    font-size: 0.75rem;
    color: #58667E;
}

.footer-bottom a {
    color: #3751FF;
}
