/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #FFFFFF;
    overflow-x: hidden;
    min-width: 320px;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== SITE BACK GRADIENTS (left & right side strips) ===== */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    width: 240px;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

body::before {
    left: 0;
    background: linear-gradient(270deg, rgba(0, 0, 128, 0.05) 0%, rgba(255, 255, 255, 0.05) 100%);
}

body::after {
    right: 0;
    background: linear-gradient(90deg, rgba(0, 0, 128, 0.05) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* ===== HEADER ===== */
/* Figma: 1920x100 bg=#000080 */
.header {
    position: relative;
    z-index: 10;
    background: #000080;
    width: 100%;
}

.header-inner {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 60px;
    height: 100px;
}

/* Figma: Logo 365x64, centered */
.header-logo img {
    height: 64px;
    width: auto;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    right: 60px;
}

/* Figma: 20px w900 line-height 23px white */
.header-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 900;
    line-height: 23px;
    white-space: nowrap;
}

/* Figma: Phone icon 21x23, Email icon 30x23 */
.header-contact-item .icon-phone {
    width: 21px;
    height: 23px;
}

.header-contact-item .icon-email {
    width: 30px;
    height: 23px;
}

.header-contact-item img {
    filter: brightness(0) invert(1);
}

/* ===== HERO ===== */
/* Figma: image 1920x1080, gradient 1920x743 starting at ~50% */
.hero {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 1080/1920 */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Figma: linear-gradient(180deg, rgba(0,0,0,0) 50.07%, #000000 100%), height 743/1080 ≈ 69% */
.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 69%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50.07%, #000000 100%);
    z-index: 2;
}

/* Figma: title at X=276, Y=810, 971x230 */
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    padding: 0 0 8% 14.4%;
}

/* Figma: 60px w900 line-height 70px white */
.hero-title {
    font-size: clamp(28px, 3.1vw, 60px);
    font-weight: 900;
    color: #FFFFFF;
    line-height: 70px;
    text-transform: uppercase;
}

/* Figma: Polygon 1 - 94x62, white, rotate(180deg) = downward triangle */
.hero-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 32px solid #fff;
    margin-left: 12px;
    vertical-align: middle;
    position: relative;
    top: -6px;
}

/* ===== SECTION COMMON ===== */
.section {
    position: relative;
    z-index: 1;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Figma: 60px w900 line-height 70px #000080 italic center */
.section-title {
    font-size: clamp(28px, 3.1vw, 60px);
    font-weight: 900;
    font-style: italic;
    color: #000080;
    text-align: center;
    text-transform: uppercase;
    line-height: 70px;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding-top: 80px;
    padding-bottom: 60px;
}

.about .section-title {
    margin-bottom: 60px;
}

.about-row {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.about-card {
    position: relative;
    flex-shrink: 0;
    width: 48%;
    max-width: 650px;
}

/* Figma: Image 417x417, Frame bg=#0F0FD4, border-radius 47px */
.about-image-zone {
    position: relative;
    width: 65%;
    padding-bottom: 65%;
}

/* Figma: Shadow 397x397, rgba(0,0,128,0.2), border-radius 61px, offset ~29px */
.about-shadow {
    position: absolute;
    top: 7%;
    left: 7%;
    width: 95%;
    height: 95%;
    border-radius: 61px;
    background: rgba(0, 0, 128, 0.2);
    z-index: 0;
}

.about-image {
    position: absolute;
    inset: 0;
    border-radius: 47px;
    overflow: hidden;
    z-index: 1;
    background: #0F0FD4;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Figma: Text blocks 398-400x80, bg=#000080 */
/* Text: 24px w900 line-height 28px center white */
.about-texts {
    position: absolute;
    top: 10%;
    left: 40%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text-block {
    background: #000080;
    padding: 16px 24px;
    width: 398px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-text-block p {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    line-height: 28px;
}

/* ===== ADVANTAGES SECTION ===== */
.advantages {
    padding-top: 40px;
    padding-bottom: 40px;
}

.advantages .section-title {
    margin-bottom: 50px;
}

.advantages-grid {
    display: flex;
    justify-content: center;
    gap: 46px;
}

.advantage-card {
    position: relative;
    width: 274px;
    flex-shrink: 0;
}

/* Figma: Shadow 288x368, rgba(0,0,128,0.2), border-radius 30px */
.advantage-shadow {
    position: absolute;
    top: -8px;
    left: -7px;
    width: 288px;
    height: 368px;
    border-radius: 30px;
    background: rgba(0, 0, 128, 0.2);
    z-index: 0;
}

/* Figma: Card ~274x263, bg=#000080, border-radius 25px */
.advantage-box {
    position: relative;
    z-index: 1;
    width: 274px;
    height: 263px;
    border-radius: 25px;
    background: #000080;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.advantage-box img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Figma: 22-24px w600 line-height 26-28px center #000080 */
.advantage-label {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #000080;
    line-height: 26px;
    text-transform: uppercase;
}

/* ===== CONTACTS SECTION ===== */
.contacts {
    padding-top: 80px;
    padding-bottom: 80px;
}

.contacts .section-title {
    margin-bottom: 50px;
}

.contacts-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
}

/* Figma: phone card 490x133, email card 512x133, bg=#000080 */
.contact-card {
    background: #000080;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px 40px;
    min-height: 133px;
}

.contact-card.phone-card {
    width: 490px;
}

.contact-card.email-card {
    width: 512px;
}

/* Figma: 32px w900 line-height 38px center white */
.contact-card-text {
    color: #FFFFFF;
    text-align: center;
}

.contact-card-text .label {
    font-size: 32px;
    font-weight: 900;
    line-height: 38px;
    display: block;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-card-text .value {
    font-size: 32px;
    font-weight: 900;
    line-height: 38px;
    display: block;
}

/* Figma: Phone icon 59x65, Email icon 74x57 */
.contact-icon {
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.contact-icon.ci-phone {
    width: 59px;
    height: 65px;
}

.contact-icon.ci-email {
    width: 74px;
    height: 57px;
}

/* ===== FOOTER ===== */
/* Figma: 1920x150, bg=#000080, box-shadow: 0px 1px 55px 20px #FFFFFF */
.footer {
    position: relative;
    z-index: 1;
    background: #000080;
    width: 100%;
    box-shadow: 0px 1px 55px 20px #FFFFFF;
}

.footer-inner {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    height: 150px;
    padding: 0 60px;
}

/* Figma: 20px w900 line-height 23px white */
.footer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 900;
    line-height: 23px;
}

.footer-item .icon-phone {
    width: 21px;
    height: 23px;
}

.footer-item .icon-email {
    width: 30px;
    height: 23px;
}

.footer-item img {
    filter: brightness(0) invert(1);
}

/* ===== RESPONSIVE ===== */

/* ---- Laptops & small desktops ---- */
@media (max-width: 1400px) {
    .about-text-block {
        width: 320px;
    }

    .about-text-block p {
        font-size: 20px;
        line-height: 24px;
    }

    .about-texts {
        gap: 20px;
    }

    .advantages-grid {
        gap: 30px;
    }

    .contact-card-text .label,
    .contact-card-text .value {
        font-size: 28px;
        line-height: 34px;
    }
}

/* ---- Tablets landscape ---- */
@media (max-width: 1100px) {
    .section {
        padding-left: 30px;
        padding-right: 30px;
    }

    /* Header: keep row but tighten */
    .header-contacts {
        right: 30px;
    }

    .header-contact-item {
        font-size: 17px;
    }

    /* About: stack vertically */
    .about-row {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .about-card {
        width: 90%;
        max-width: 600px;
    }

    .about-texts {
        left: 38%;
    }

    .about-text-block {
        width: 300px;
    }

    .about-text-block p {
        font-size: 18px;
        line-height: 22px;
    }

    /* Advantages: 2x2 grid */
    .advantages-grid {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }

    .advantage-card {
        width: 220px;
        flex-shrink: 1;
    }

    .advantage-shadow {
        width: 234px;
        height: 310px;
    }

    .advantage-box {
        width: 220px;
        height: 210px;
    }

    .advantage-label {
        font-size: 18px;
        line-height: 22px;
    }

    /* Contacts: stack */
    .contacts-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .contact-card.phone-card,
    .contact-card.email-card {
        width: 90%;
        max-width: 500px;
    }

    .contact-card-text .label,
    .contact-card-text .value {
        font-size: 26px;
        line-height: 32px;
    }
}

/* ---- Tablets portrait & large phones ---- */
@media (max-width: 768px) {

    /* Header: stack vertically */
    .header-inner {
        padding: 12px 20px;
        height: auto;
        min-height: 80px;
        flex-direction: column;
        gap: 8px;
    }

    .header-contacts {
        position: static;
        align-items: center;
    }

    .header-contact-item {
        font-size: 16px;
        line-height: 20px;
    }

    .header-logo img {
        height: 50px;
    }

    /* Hero */
    .hero {
        padding-bottom: 70%;
    }

    .hero-content {
        padding: 0 0 10% 5%;
    }

    .hero-title {
        line-height: 1.2;
    }

    .hero-arrow {
        border-left: 16px solid transparent;
        border-right: 16px solid transparent;
        border-top: 22px solid #fff;
        margin-left: 8px;
    }

    /* Section common */
    .section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-title {
        line-height: 1.2;
    }

    /* Hide side gradients on mobile */
    body::before,
    body::after {
        display: none;
    }

    /* About */
    .about {
        padding-top: 40px;
        padding-bottom: 30px;
    }

    .about .section-title {
        margin-bottom: 30px;
    }

    .about-row {
        gap: 40px;
    }

    .about-card {
        width: 95%;
        max-width: 500px;
    }

    .about-image-zone {
        width: 50%;
        padding-bottom: 50%;
    }

    .about-shadow {
        border-radius: 35px;
    }

    .about-image {
        border-radius: 30px;
    }

    .about-texts {
        left: 32%;
        gap: 14px;
    }

    .about-text-block {
        width: 260px;
        min-height: 60px;
        padding: 12px 16px;
    }

    .about-text-block p {
        font-size: 16px;
        line-height: 20px;
    }

    /* Advantages: 2x2 grid, fluid */
    .advantages {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .advantages .section-title {
        margin-bottom: 30px;
    }

    .advantages-grid {
        gap: 20px;
    }

    .advantage-card {
        width: 42%;
        min-width: 140px;
        flex-shrink: 1;
    }

    .advantage-shadow {
        width: calc(100% + 14px);
        height: calc(100% + 16px);
        border-radius: 20px;
    }

    .advantage-box {
        width: 100%;
        height: auto;
        aspect-ratio: 274 / 263;
        border-radius: 18px;
    }

    .advantage-label {
        font-size: 16px;
        line-height: 20px;
    }

    /* Contacts */
    .contacts {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .contacts .section-title {
        margin-bottom: 30px;
    }

    .contact-card {
        flex-direction: column;
        gap: 12px;
        padding: 20px 20px;
        min-height: 100px;
    }

    .contact-card.phone-card,
    .contact-card.email-card {
        width: 90%;
        max-width: 420px;
    }

    .contact-card-text .label,
    .contact-card-text .value {
        font-size: 22px;
        line-height: 28px;
    }

    .contact-icon.ci-phone {
        width: 40px;
        height: 44px;
    }

    .contact-icon.ci-email {
        width: 50px;
        height: 38px;
    }

    /* Footer */
    .footer {
        box-shadow: 0px 1px 30px 10px #FFFFFF;
    }

    .footer-inner {
        flex-direction: column;
        gap: 10px;
        height: auto;
        min-height: 100px;
        padding: 24px 20px;
    }

    .footer-item {
        font-size: 16px;
    }
}

/* ---- Small phones ---- */
@media (max-width: 480px) {

    /* Header */
    .header-inner {
        padding: 10px 12px;
        gap: 6px;
    }

    .header-logo img {
        height: 40px;
    }

    .header-contact-item {
        font-size: 14px;
        gap: 6px;
    }

    .header-contact-item .icon-phone {
        width: 16px;
        height: 18px;
    }

    .header-contact-item .icon-email {
        width: 22px;
        height: 17px;
    }

    /* Hero */
    .hero {
        padding-bottom: 80%;
    }

    .hero-content {
        padding: 0 0 15% 4%;
    }

    .hero-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .hero-arrow {
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 14px solid #fff;
        margin-left: 6px;
        top: -3px;
    }

    /* Section */
    .section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .section-title {
        font-size: 24px;
        line-height: 1.2;
    }

    /* About */
    .about {
        padding-top: 30px;
        padding-bottom: 20px;
    }

    .about .section-title {
        margin-bottom: 20px;
    }

    .about-row {
        gap: 30px;
    }

    .about-card {
        width: 100%;
    }

    .about-image-zone {
        width: 45%;
        padding-bottom: 45%;
    }

    .about-shadow {
        border-radius: 20px;
        top: 5%;
        left: 5%;
    }

    .about-image {
        border-radius: 18px;
    }

    .about-texts {
        left: 30%;
        gap: 8px;
    }

    .about-text-block {
        width: 200px;
        min-height: 50px;
        padding: 8px 10px;
    }

    .about-text-block p {
        font-size: 12px;
        line-height: 15px;
    }

    /* Advantages: 2 columns */
    .advantages {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .advantages .section-title {
        margin-bottom: 20px;
    }

    .advantages-grid {
        gap: 14px;
    }

    .advantage-card {
        width: 46%;
        min-width: 120px;
    }

    .advantage-shadow {
        top: -4px;
        left: -4px;
        border-radius: 14px;
    }

    .advantage-box {
        border-radius: 12px;
    }

    .advantage-label {
        font-size: 12px;
        line-height: 15px;
        margin-top: 10px;
    }

    /* Contacts */
    .contacts {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .contacts .section-title {
        margin-bottom: 20px;
    }

    .contact-card {
        padding: 16px 12px;
        gap: 10px;
    }

    .contact-card.phone-card,
    .contact-card.email-card {
        width: 100%;
    }

    .contact-card-text .label,
    .contact-card-text .value {
        font-size: 18px;
        line-height: 24px;
    }

    .contact-icon.ci-phone {
        width: 30px;
        height: 33px;
    }

    .contact-icon.ci-email {
        width: 38px;
        height: 29px;
    }

    /* Footer */
    .footer-inner {
        padding: 16px 12px;
        gap: 8px;
        min-height: 80px;
    }

    .footer-item {
        font-size: 14px;
        gap: 8px;
    }

    .footer-item .icon-phone {
        width: 16px;
        height: 18px;
    }

    .footer-item .icon-email {
        width: 22px;
        height: 17px;
    }
}