* {
  font-family: "Manrope", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 auto;
    background: #F2F2F2;
}

a {
    text-decoration: none;
    color: #EB001D;
    font-weight: bold;
    transition: all 0.3s ease;
}

p, li, summary {
    color: #2c2c2c;
}

a, p, li {
    font-size: 16px;
    line-height: 1.5;
}

path {
    transition: all 0.3s ease;
}

a:hover {
    color: #EB001D;
    font-weight: bold;
}

h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
}




header {
    background: #000D22;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 40px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.h-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.h-container,
section,
footer {
    margin: 0 auto;
    max-width: 2160px;
}

.h-container a,
.h-container p,
.h-container li {
    color: white;
}

.h-title {
    font-weight: bold;
    font-size: 32px;
}

.h-nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.h-nav-list a {
    font-weight: 300;
    font-size: 16px;
}

.h-nav-list a:hover,
.h-contacts a:hover {
    color: #EB001D;
}

.h-contacts {
    display: flex;
    flex-direction: column;
}

.h-contacts a {
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.h-icon {
    margin: 0 5px 0 0;
}

.h-contacts a:hover #h-phone-icon path {
    stroke: #EB001D;
}

.h-contacts a:hover #h-mail-icon path {
    fill: #EB001D;
}



.hero {
    position: relative;
    min-height: 100vh;
    background: url("/wp-content/themes/Autofocus-Finance/images/main-background.webp") center / cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero .container {
    position: relative;
    max-width: 1160px;
    padding: 0 10px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin: 0 auto;
    font-weight: 900;
    margin: 10px 0;
}

.hero p {
    font-size: 18px;
    font-weight: 300;
    max-width: 600px;
    margin: 10px 0;
    color: #fff;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0 10px;
}

.btn {
    font-size: 18px;
    padding: 15px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn.primary {
    background: #EB001D;
    color: #fff;
}

.btn.secondary {
    background: #000D22;
    color: #fff;
}

.btn.outline {
    background: #303030;
    color: #fff;
}


.btn:hover {
    background: #fff;
    color: #EB001D;
}

section {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin: 40px auto;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 0 60px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: center;
}

.container h2 {
    font-size: 36px;
    font-weight: 900;
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 10px 0 20px;
    justify-content: center;
}

.container h2::before,
.container h2::after {
    content: "";
    width: 20px;
    height: 5px;
    background-color: red;
    margin: 0 10px;
}


.products-grid {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin: 40px 0 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 320px;
    border-radius: 10px;
    padding: 15px;
}

.product-card svg {
    height: 96px;
    width: auto;
    margin: 0 0 20px;
}

.product-card ul {
    margin: 0;
}

.product-card li {
    margin: 5px 0;
}

::marker {
    color: #EB001D;
}



.step {
    display: flex;
    align-items: center;
    gap: 20px;
}
.step svg {
    height: 64px;
    width: auto;
}

.step-text p {
    margin: 10px 0;
}



.advantages-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.advantage {
    max-width: 548px;
    display: flex;
    gap: 20px;
}

.advantages svg {
    height: 64px;
    width: auto;
}



.main-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.form-block {
    display: flex;
    align-items: center;
    gap: 100px;
}

select {
    width: 420px;
    height: 50px;
}

input, textarea {
    width: 400px;
    height: 30px;
}

select, input, textarea {
    font-size: 16px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: #F2F2F2;
}

.agreement {
    height: 20px;
    width: 20px;
}

.policy-text {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background: #EB001D;
    color: #fff;
    border: none;
    margin: 10px 0;
    width: 420px;
}



details {
    margin: 10px 0;
}

summary {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}



footer {
    background: #000D22;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.footer-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    max-width: 1160px;
    margin: 0 auto;
    padding: 30px 0;
}

.footer-container p {
    text-decoration: none;
    color: white;
    margin: 10px 0;
}

.footer-container ul {
    padding: 0 25px;
    margin: 0
}

.footer-container iframe {
    max-width: 400px;
    max-height: 200px;
}



.policy {
    margin-top: 96px;
}

.policy h1 {
    text-align: center;
    font-size: 48px;
    font-weight: 900;
}

.policy h2 {
    margin-top: 30px;
}

.policy p,
.policy li {
    font-size: 18px;
    margin: 0 0 5px;
}

.policy ul {
    margin: 0;
}

@media (max-width: 1920px) {
    
    header {
        padding: 20px 0;
    }
    
    .h-container {
        margin: 0 auto;
        max-width: 1160px;
    }
}

@media (max-width: 768px) {
    
    body {
        margin: 80px auto 0;
    }
    
    a, p, li {
        line-height: 1.2;
        font-size: 14px;
    }
    
    section {
        margin: 20px auto;
    }
    
    h3 {
        font-size: 18px;
        margin: 5px 0;
    }
    
    .h-container {
        align-items: center;
        padding: 0 10px;
    }
    
    .h-title {
        font-size: 16px;
        max-width: 110px;
    }
    
    .h-contacts a {
        font-size: 12px;
    }
    
    .hero .container {
        margin: 40px auto;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero {
        background: none;
        min-height: 0;
    }
    
    .hero p {
        font-size: 16px;
        margin: 0;
    }
    
    .hero-actions {
        gap: 15px;
        margin: 40px 0 20px;
        justify-content: center;
    }
    
    .btn {
        font-size: 16px;
        padding: 10px 20px;
    }
    
    .h-nav-list {
        display: none;
    }
    
    
    
    .container {
        padding: 20px 0 40px;
    }
    
    .container h2 {
        font-size: 20px;
    }
    
    .container h2::before, .container h2::after {
        width: 10px;
        height: 3px;
        margin: 0 5px;
    }
    
    .product-card {
        padding: 0;
    }
    
    .step {
        gap: 15px;
    }
    
    .products-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 0;
    }
    
    .product-card svg {
        height: 80px;
        margin: 0;
    }
    
    .form-image {
        display: none;
    }
    
    select {
        width: 300px;
    }
    
    input, textarea {
        width: 280px;
    }
    
    .btn-primary {
        width: 300px;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-container iframe {
        max-width: 300px;
        max-height: 200px;
        margin: 0 auto;
    }
}