html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, sans-serif;
    margin: 0;
    padding: 0;
    background: white;
}

p {
    margin: 0;
    padding: 0;
    display: inline;
}

button {
    cursor: pointer;
    padding: 14px 34px;
    border-radius: 4px;
    border: none;
    background: #035E89;
    color: white;
    font-size: 1rem;
    font-weight: 400;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.break {
    display: block;
}

button:hover {
    transform: scale(1.05);
}

button:hover:active {
    transform: scale(0.96);
}

header {
    padding: 3rem 5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav {
    display: flex;
    gap: 3rem;
}

header nav a {
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

header nav a:hover {
    color: #035E89;
    transform: scale(1.05);
    font-weight: 600;
}

header h1 {
    color: #035E89;
    font-size: 1.5rem;
}

header .phone, .main .phone {
    color: #434343;
    font-size: 1.25rem;
    font-weight: 800;
}

.main {
    padding-left: 5rem;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)), url("/img/main-bg.webp");
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 2rem;
}

.main h2 {
    padding-top: 10rem;
    font-size: 4rem;
    color: #035E89;
    line-height: 5rem;
}

.main h3 {
    font-weight: 400;
    font-size: 1.5rem;
}

.main p {
    font-weight: 400;
    font-size: 1.5rem;
}

.main .actions {
    display: flex;
    gap: 1rem;
}

.main .actions .whatsapp {
    background-color: #25D366;
    color: #000000;
}

.why-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    gap: 4rem;
    text-align: center;
    justify-content: center;
}

.why-us .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    width: 90%;
}

.why-us .row .item {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.why-us .row .item p {
    color: #6D6D6D;
    font-size: 1rem;
    font-weight: 500;
}

.services {
    padding-top: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.services .services-title {
    color: #3D3D3D;
    font-size: 2.5rem;
    font-weight: 700;
    padding-bottom: 3rem;
}

.services .row {
    display: flex;
    gap: 5rem;
}

.services .row .item {
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 2px solid #C5ECFF;
    align-items: flex-start;
}

.services .row .item .title {
    padding-bottom: 0.5rem;
    padding-top: 1.5rem;
    font-weight: 700;
    color: #035E89;
    font-size: 1.3rem;
}

.services .row .item .description {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.9rem;
    color: #6D6D6D;
    font-weight: 600;
}

.services .row .item .description ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.services .row .item .description li {
    margin-bottom: 0.5rem;
}

.leave-request-block {
    padding-top: 8rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.leave-request-block .content {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 22px;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.leave-request-block .content .cta {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leave-request-block .content .cta img {
    margin-top: -150px;
    margin-right: -10rem;
}

.leave-request-block .content .cta .leave-request {
    margin-top: -7rem;
}

.leave-request-block .content .leave-request-block-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.leave-request-block .content .description {
    line-height: 1.6;
}

.leave-request-block .content .advantages {
    list-style: none;
    padding-left: 0;
}

.leave-request-block .content .advantages li {
    margin-bottom: 0.2rem;
}

.stats {
    padding-top: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8rem;
}

.stats .stat .highlight {
    font-family: Manrope, serif;
    font-weight: 800;
    font-size: 3rem;
    background: linear-gradient(100.83deg, #0179B4 21%, #88D8FF 93.51%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.stats .stat .description {
    color: #6D6D6D;
    font-size: 0.9rem;
    font-weight: 600;
}

.stats .stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flow {
    padding-top: 8rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6rem;
    padding-bottom: 8rem;
}

.flow .step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.flow .step .title {
    font-weight: 900;
    font-size: 1.5rem;
}

.flow .step .description {
    font-weight: 500;
    font-size: 1rem;
}

/* 1. Очень маленькие экраны (узкие телефоны, например старые iPhone SE) */
/* Популярные размеры: 320x480, 320x568 */
@media (max-width: 320px) {
    /* Минимальный экран телефона */
    .main {
        background-image: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)), url("/img/main-bg.webp");
        background-position: right center;
        padding-left: 0;
        display: flex;
        align-items: center;
        text-align: center;
    }

    .main h3 {
        padding-top: 0;
        font-size: 2rem;
        color: #035E89;
        line-height: 2.5rem;
    }

    .main .actions {
        display: flex;
        padding-bottom: 2rem;
    }

    .main .actions button {
        padding: 14px 17px;
    }

    .why-us .row {
        display: flex;
        flex-direction: column;
    }

    .services {
        padding-top: 2rem;
    }

    .services .services-title {
        padding-bottom: 0;
    }

    .services .row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .leave-request-block {
        padding-top: 2rem;
    }

    .leave-request-block .content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .leave-request-block .content .cta img {
        margin-top: 0;
        margin-right: 0;
        width: 90%;
    }

    .leave-request-block .content .cta .leave-request {
        margin-top: 0;
    }

    .leave-request-block .content .description {
        font-size: 0.9rem;
    }

    .stats {
        padding-top: 4rem;
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .flow {
        padding-top: 4rem;
        align-items: center;
        flex-direction: column;
        gap: 4rem;
        padding-bottom: 4rem;
    }

    .flow .step {
        align-items: center;
    }

    header {
        display: none;
    }
}

/* 2. Мобильные телефоны (портрет) */
/* Популярные размеры:
   iPhone 6/7/8: 375x667
   iPhone X/11 Pro: 375x812
   Android (разные): ~360x640
*/
@media (max-width: 480px) {
    /* Телефоны портрет */
    header {
        display: none;
    }

    .main {
        background-image: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)), url("/img/main-bg.webp");
        background-position: right center;
        padding-left: 0;
        display: flex;
        align-items: center;
        text-align: center;
    }

    .main h3 {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .main .actions {
        display: flex;
        padding-bottom: 2rem;
    }

    .why-us .row {
        display: flex;
        flex-direction: column;

    }

    .services {
        padding-top: 2rem;
    }

    .services .services-title {
        padding-bottom: 0;
    }

    .services .row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .leave-request-block {
        padding-top: 2rem;
    }

    .leave-request-block .content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .leave-request-block .content .cta img {
        margin-top: 0;
        margin-right: 0;
        width: 90%;
    }

    .leave-request-block .content .cta .leave-request {
        margin-top: 0;
    }

    .stats {
        padding-top: 4rem;
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }

    .flow {
        padding-top: 6rem;
        align-items: center;
        flex-direction: column;
        gap: 4rem;
    }

    .flow .step {
        align-items: center;
    }
}

/*
  3. Большие смартфоны (альбом) и маленькие планшеты (портрет)
     Диапазон ширины окна: 481px – 767px
     Примеры для теста:
       • iPhone 8 Plus — landscape (736×414)
       • iPhone 11 — landscape (736×414)
       • iPhone SE (2020) — landscape (667×375)
       • Samsung Galaxy S20 — landscape (760×360)
       • Nexus 7 (2013) — portrait (600×960)
*/
@media (min-width: 481px) and (max-width: 767px) {
    /* Телефоны в альбомном и маленькие планшеты */
    header {
        display: none;
    }

    .main {
        padding-left: 0;
        display: flex;
        align-items: center;
        text-align: center;
        background-position: right center;
    }

    .main h3 {
        padding-top: 0;
    }

    .main .actions {
        display: flex;
        padding-bottom: 2rem;
    }

    .why-us .row {
        display: flex;
        flex-direction: column;
    }

    .why-us .row .item {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 3rem;
    }

    .services {
        padding-top: 2rem;
    }

    .services .services-title {
        padding-bottom: 0;
    }

    .services .row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .leave-request-block {
        padding-top: 2rem;
    }

    .leave-request-block .content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .leave-request-block .content .cta img {
        margin-top: 0;
        margin-right: 0;
        width: 90%;
    }

    .leave-request-block .content .cta .leave-request {
        margin-top: 0;
    }

    .stats {
        padding-top: 4rem;
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }

    .flow {
        padding-top: 6rem;
        align-items: center;
        flex-direction: column;
        gap: 4rem;
    }

    .flow .step {
        align-items: center;
    }
}

/* 4. Планшеты (портрет) */
/* Популярные размеры:
   iPad (портрет): 768x1024
   Samsung Galaxy Tab: 800x1280
*/
@media (min-width: 768px) and (max-width: 1023px) {
    /* Планшеты в портретной ориентации */
    header {
        padding-right: 1rem;
        padding-left: 1rem;
        padding-top: 1rem;
    }

    header .phone {
        display: none;
    }

    .main {
        background-image: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)), url("/img/main-bg.webp");
        background-position: right center;
        padding-left: 0;
        display: flex;
        align-items: center;
        text-align: center;
    }

    .services .row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .why-us .row {
        display: flex;
        text-align: center;
        flex-direction: column;
    }

    .why-us .row .item {
        display: flex;
        flex-direction: column;
    }

    .leave-request-block .content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .leave-request-block .content .cta img {
        margin-top: 0;
        margin-right: 0;
        width: 90%;
    }

    .leave-request-block .content .cta .leave-request {
        margin-top: 0;
    }

    .stats {
        padding-top: 4rem;
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }

    .flow {
        padding-top: 6rem;
        align-items: center;
        flex-direction: column;
        gap: 4rem;
    }

    .flow .step {
        align-items: center;
    }
}

/* 5. Планшеты и небольшие десктопы (альбомная ориентация) */
/* Популярные размеры:
   iPad Pro (альбом): 1024x1366
   Небольшие ноутбуки: 1024x768 (нетбуки), 1200x800
*/
@media (min-width: 1024px) and (max-width: 1279px) {
    /* Широкие планшеты и узкие ноутбуки */

    .main {
        background-image: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)), url("/img/main-bg.webp");
        background-position: right center;
        display: flex;
        align-items: center;
    }

    .main h3 {
        padding-top: 0;
    }

    .services .row {
        gap: 3rem;
    }

    .leave-request-block .content .cta img {
        width: 90%;
    }

    .leave-request-block .content .cta .leave-request {
        margin-top: 0;
    }

    .flow {
        align-items: center;
        flex-direction: column;
    }

    .flow .step {
        align-items: center;
    }
}

/* 6. Десктопы среднего размера */
/* Популярные размеры:
   Стандартные мониторы HD: 1366x768, 1440x900
*/
@media (min-width: 1280px) and (max-width: 1439px) {
    /* Стандартные десктопы */
    .flow {
        align-items: center;
        flex-direction: column;
    }

    .flow .step {
        align-items: center;
    }
}


/* 7. Большие десктопы и широкие экраны */
/* Популярные размеры:
   Full HD: 1920x1080
   Большие мониторы: 2560x1440, 3840x2160 (4K)
*/
@media (min-width: 1600px) {
    /* Широкие и большие экраны */
    .services .row {
        gap: 10rem;
    }

    .stats {
        gap: 12rem;
    }

    .flow {
        gap: 8rem;
    }
}
