*, ::after, ::before {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

h1, h2, h3, h4, h5, h6, p, ul, ol {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style-type: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    border-style: none;
}

a {
    text-decoration: none;
    background-color: transparent;
}

button {
    font: inherit;
}

[hidden] {
    display: none !important;
}

:root {
    --color-text: #212529;
    --color-accent: #ff9600;
    --color-grey: #f2f2f2;
    --color-white: #fff;
}

body {
    min-width: 320px;
    background-color: var(--color-white);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.55;
    color: var(--color-text);
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.sect {
    padding: 135px 0;
}

.title {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.23;
    text-align: center;
}

.sect__descr {
    max-width: 560px;
    margin: 40px auto 0;
    font-size: 24px;
    line-height: 1.5;
    text-align: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 60px;
    border-radius: 30px;
    background-color: var(--color-accent);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
    white-space: nowrap;
}

.button--sm {
    height: 40px;
    padding: 0 30px;
    border-radius: 20px;
    font-size: 14px;
}

.header {
    background-color: var(--color-white);
}

.header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header__menu ul {
    display: flex;
    gap: 40px;
}

.header__menu a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #000;
}

.header__burger {
    position: relative;
    display: none;
    width: 28px;
    height: 20px;
    padding: 0;
    border: 0;
    background-color: transparent;
    cursor: pointer;
}

.header__burger-line,
.header__burger-line::before,
.header__burger-line::after {
    position: absolute;
    inset-inline-start: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.header__burger-line {
    top: 50%;
    margin-top: -1.5px;
}

.header__burger-line::before,
.header__burger-line::after {
    content: '';
}

.header__burger-line::before {
    top: -8px;
}

.header__burger-line::after {
    top: 8px;
}

.header__burger--open .header__burger-line {
    background-color: transparent;
}

.header__burger--open .header__burger-line::before {
    transform: translateY(8px) rotate(45deg);
}

.header__burger--open .header__burger-line::after {
    transform: translateY(-8px) rotate(-45deg);
}

.sect__hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 70px);
}

.hero__content {
    max-width: 560px;
    padding: 80px 0;
}

.hero__title {
    font-family: Arial, sans-serif;
    font-size: 55px;
    font-weight: 400;
    line-height: 1.11;
}

.hero__list {
    display: flex;
    gap: 40px;
    margin-top: 80px;
    font-size: 24px;
    font-weight: 400;
    line-height: 38px;
}

.hero__list li {
    max-width: 6.25em;
}

.hero__visual {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: calc(50% + 40px);
    inset-inline-end: 0;
    background-color: #d9d9d9;
}

.hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 100%;
}

.expertise__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 90px;
    margin: 105px -20px 0;
}

.expertise__item {
    padding: 0 40px;
    text-align: center;
}

.expertise__icon {
    margin: 0 auto;
}

.expertise__title {
    margin-top: 41px;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.17;
}

.expertise__txt {
    margin-top: 25px;
}

.benefits__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px 40px;
    max-width: 960px;
    margin: 105px auto 0;
}

.benefits__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.benefits__icon {
    flex: 0 0 45px;
}

.benefits__title {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: #000;
}

.sect__career {
    padding-top: 90px;
    background-color: var(--color-grey);
}

.career__txt {
    max-width: 960px;
    margin: 50px auto 0;
    font-size: 24px;
    line-height: 1.45;
    text-align: center;
}

.sect__achievements {
    padding-top: 120px;
}

.achievements__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 104px;
}

.achievements__item {
    display: flex;
}

/* Процент padding считается от ширины карточки: 5% — это 10% от половины с текстом */
.achievements__content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    padding: 20px 5%;
    background-color: var(--color-white);
}

.achievements__content::after {
    content: '';
    position: absolute;
    z-index: 1;
    top: 50%;
    inset-inline-end: -40px;
    border: 20px solid transparent;
    border-inline-start-color: var(--color-white);
    transform: translateY(-50%);
}

/* Во втором ряду картинка слева, стрелка смотрит на неё */
.achievements__item:nth-child(4n-1) .achievements__content,
.achievements__item:nth-child(4n) .achievements__content {
    order: 1;
}

.achievements__item:nth-child(4n-1) .achievements__content::after,
.achievements__item:nth-child(4n) .achievements__content::after {
    inset-inline-start: -40px;
    inset-inline-end: auto;
    border-inline-start-color: transparent;
    border-inline-end-color: var(--color-white);
}

.achievements__title {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.achievements__visual {
    width: 50%;
    aspect-ratio: 1;
}

.achievements__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sect__industries {
    background-color: var(--color-grey);
}

.industries__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 90px -20px 0;
}

.industries__item {
    padding: 0 40px;
    text-align: center;
}

.industries__icon {
    margin: 0 auto;
}

.industries__title {
    margin-top: 41px;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.17;
}

.steps__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 90px;
}

.steps__item {
    position: relative;
    padding-inline-end: 30px;
}

.steps__item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 18px;
    inset-inline-start: 0;
    width: 100%;
    height: 2px;
    background-color: #e6e6e6;
}

.steps__number {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    background-color: #222;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-white);
}

.steps__title {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.steps__txt {
    margin-top: 16px;
    font-size: 15px;
}

.steps__btn {
    margin-top: 64px;
    text-align: center;
}

.sect__contacts {
    background-color: #dde0e5;
}

.contacts__btn {
    margin-top: 40px;
    text-align: center;
}

.footer {
    background-color: #111;
}

.footer__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 50px 0;
}

.footer__menu ul,
.footer__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer__menu a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-white);
}

.footer__contacts {
    margin-top: 15px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #7d7d7d;
}

.footer__contacts a {
    color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 1200px) {
    .title {
        font-size: 38px;
    }

    .hero__content {
        max-width: 480px;
    }

    .hero__title {
        font-size: 48px;
    }

    .hero__list {
        font-size: 20px;
        line-height: 32px;
    }

    .expertise__item,
    .industries__item {
        padding: 0 20px;
    }

    .expertise__title,
    .industries__title {
        font-size: 26px;
    }
}

@media (max-width: 992px) {
    .sect .container,
    .sect__hero .container {
        max-width: 640px;
    }

    .header {
        background-color: var(--color-grey);
    }

    .header__row {
        flex-wrap: wrap;
        min-height: 0;
    }

    .header__logo {
        padding: 20px 0;
    }

    .header__burger {
        display: block;
    }

    .header__nav {
        display: none;
        flex-direction: column;
        gap: 40px;
        width: calc(100% + 40px);
        padding: 30px 20px 40px;
        margin: 0 -20px;
        background-color: var(--color-white);
    }

    .header__nav--open {
        display: flex;
    }

    .header__menu ul {
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }

    .sect__hero {
        display: block;
        min-height: 0;
    }

    .hero__content {
        max-width: none;
        padding: 85px 0 120px;
    }

    .hero__title {
        font-size: 60px;
    }

    .hero__list {
        margin-top: 40px;
        font-size: 16px;
        line-height: 26px;
    }

    .hero__visual {
        position: static;
        height: 400px;
    }

    .expertise__list {
        grid-template-columns: 1fr;
        row-gap: 64px;
        margin: 64px 0 0;
    }

    .expertise__title {
        font-size: 30px;
    }

    .benefits__list {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 64px;
    }

    .achievements__list {
        grid-template-columns: 1fr;
        margin-top: 64px;
    }

    .achievements__content::after {
        border-width: 10px;
        inset-inline-end: -20px;
    }

    /* В одну колонку картинка чередуется через карточку */
    .achievements__item:nth-child(4n-1) .achievements__content {
        order: 0;
    }

    .achievements__item:nth-child(4n-1) .achievements__content::after {
        inset-inline-start: auto;
        inset-inline-end: -20px;
        border-inline-start-color: var(--color-white);
        border-inline-end-color: transparent;
    }

    .achievements__item:nth-child(2n) .achievements__content {
        order: 1;
    }

    .achievements__item:nth-child(2n) .achievements__content::after {
        inset-inline-start: -20px;
        inset-inline-end: auto;
        border-inline-start-color: transparent;
        border-inline-end-color: var(--color-white);
    }

    .industries__list {
        grid-template-columns: 1fr;
        row-gap: 48px;
        margin: 64px 0 0;
    }

    .industries__title {
        margin-top: 25px;
        font-size: 30px;
    }

    .steps__list {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 64px;
    }

    .steps__item {
        min-height: 38px;
        padding-inline-start: 60px;
        padding-inline-end: 0;
    }

    .steps__item:not(:last-child)::before {
        content: none;
    }

    .steps__number {
        position: absolute;
        top: 0;
        inset-inline-start: 0;
    }

    .steps__title {
        margin-top: 0;
        font-size: 18px;
    }

    .steps__txt {
        margin-top: 8px;
    }

    .footer__row {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .sect {
        padding: 90px 0;
    }

    .title {
        font-size: 30px;
    }

    .sect__descr,
    .career__txt {
        font-size: 20px;
    }

    .sect__descr {
        margin-top: 20px;
    }

    .hero__content {
        padding-bottom: 40px;
    }

    .hero__title {
        font-size: 41px;
    }

    .hero__list {
        flex-wrap: wrap;
        gap: 30px 40px;
        font-size: 14px;
        line-height: 22px;
    }

    .hero__visual {
        height: 218px;
    }

    .expertise__list {
        row-gap: 44px;
        margin-top: 45px;
    }

    .expertise__title,
    .industries__title {
        font-size: 24px;
    }

    .expertise__txt,
    .benefits__txt,
    .achievements__txt,
    .steps__txt {
        font-size: 14px;
    }

    .benefits__list {
        margin-top: 45px;
    }

    .benefits__title {
        font-size: 18px;
    }

    .achievements__list {
        margin-top: 45px;
    }

    .achievements__item {
        flex-direction: column;
    }

    .achievements__item:nth-child(2n) .achievements__content {
        order: 0;
    }

    .achievements__content,
    .achievements__visual {
        width: 100%;
    }

    .achievements__content {
        padding: 40px 10%;
    }

    .achievements__content::after {
        content: none;
    }

    .industries__list {
        margin-top: 45px;
    }

    .steps__list {
        gap: 30px;
        margin-top: 45px;
    }

    .steps__title {
        font-size: 16px;
    }

    .steps__btn {
        margin-top: 45px;
    }

    .footer__menu a,
    .footer__contacts {
        font-size: 12px;
    }
}
