/* ============================================================
   Корректировки для глобального верхнего навбара (52px)
   ============================================================ */

/* Боковое меню навигации по разделам лендинга */
.header {
    top: 52px;
    height: calc(100vh - 52px);
}

/* Кнопка-гамбургер бокового меню (мобильный) */
.navbar-button {
    top: 52px;
}

/* ============================================================ */

h1 {
    font-size: 22px;
    font-weight: normal;
    margin: 0;
}

h2 {
    font-size: 20px;
    font-weight: 300;
    margin: 0;
}

.space-separator {
    line-height: 12px;
}

.logo-main {
    display: inline-block;
    background-image: url('../img/logo/logo-main.png');
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0;
    margin: 0;
    width: 120px;
    height: 104px;
    opacity: 0.9;
}

.banner-section .logo-fa span {
    margin-bottom: 0;
}

.banner-section .logo-fa {
    font-size: 36px;
    font-weight: 500;
}

.banner-section {
    padding-top: 60px;
}

.banner-section .simple {
    margin-left: 0;
    width: 100%;
}

.work-section .item ul li {
    color: #fff;
    line-height: normal;
    margin: 0;
    font-size: 22px;
    font-weight: 300;
    padding: 4px 0;
}

.tm-work-item-inner {
    max-width: 900px;
}

.section .title {
    margin-top: 5px;
    margin-left: 1px;
}

.service-section .title {
    border-bottom: 1px solid #003265;
}

.work-section .item.one,
.service-section .item.one {
    margin-top: 20px;
}

.section .title h2 {
    margin-bottom: 20px;
    font-size: 32px;
}

.section h3 {
    font-size: 24px;
}

.odd-section a {
    font-weight: normal;
    color: #008888;
}

.even-section .title h2 {
    color: #ffffff;
}

.service-section h3 {
    margin-top: 30px;
    margin-bottom: 0;
}

.contact-section .contact-details p {
    margin-bottom: 0;
}

.contact-section .contact-details-text span {
    display: block;
    line-height: normal;
    margin-bottom: 20px;
}

.contact-section .contact-details-text span:last-child {
    margin-bottom: 6px;
}

.contact-section .contact-list {
    max-width: 270px;
}

.contact-section .contact-list .contact-list-item {
    display: flex;
    justify-content: space-between;
}

.contact-section .contact-list .contact-list-item a {
    text-decoration: underline;
}

.contact-section #home-contact-form-result {
    font-size: 20px;
    color: white;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.contact-section #home-contact-form-result.success {
    color: #00ff00;
}
.contact-section #home-contact-form-result.warn {
    color: #ff6700;
}
.contact-section #home-contact-form-result.fail {
    color: #ff0000;
}

.contact-form-submit-wrapper {
    display: flex;
    justify-content: space-between;
}

.service-section {
    color: #003265;
    font-size: 22px;
    line-height: 1.1;
}

.about-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.about-wrapper .about-description {
    letter-spacing: 1px;
    word-spacing: 4px;
    line-height: 30px;
    text-align: justify;
}

/* ============================================================
   Секция «Направления работ» — карточки компетенций
   ============================================================ */

/* Высота по содержимому: карточек и ссылок стало больше, чем помещается
   в жёсткие 100vh из .section, а лишнее обрезал бы #content-box */
.work-section,
.service-section {
    height: auto;
}

/* Отступы как у .work-section: без них выросший блок «Обо мне» прижимается
   к верху секции и заголовок уходит под фиксированный навбар */
.service-section {
    padding-top: 90px;
    padding-bottom: 90px;
}

.work-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.work-card {
    background-color: rgb(255 255 255 / 0.1);
    border: 1px solid rgb(255 255 255 / 0.3);
    border-radius: 8px;
    padding: 20px 22px 16px;
}

.work-section .work-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    color: #ffccff;
    font-size: 21px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.work-card h3 i {
    width: 24px;
    flex-shrink: 0;
    font-size: 19px;
    text-align: center;
}

.work-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.work-section .work-card ul li {
    position: relative;
    margin: 0;
    padding: 4px 0 4px 18px;
    color: #fff;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.45;
}

.work-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #99ccff;
}

/* ============================================================
   Секция «Обо мне» — стек, ссылки, переход на /about/
   ============================================================ */
/* Текста в секции стало больше, а фон — фотография: без подложки
   ссылки и подписи на ней читаются плохо */
.service-section .about-wrapper {
    padding: 24px 28px;
    background-color: rgb(255 255 255 / 0.45);
    border-radius: 10px;
}

.about-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.about-stack-item {
    display: inline-block;
    padding: 3px 13px;
    background-color: rgb(255 255 255 / 0.55);
    border: 1px solid #7aa8cf;
    border-radius: 14px;
    font-size: 16px;
    line-height: 1.5;
    color: #003265;
}

.about-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px 28px;
    margin-top: 10px;
}

.service-section .about-columns h3 {
    margin: 0 0 8px;
    color: #003265;
    font-size: 19px;
    font-weight: 600;
}

.about-columns .about-col > div {
    font-size: 18px;
    line-height: 1.6;
}

.about-more {
    margin-top: 8px;
}

.odd-section .about-more a {
    font-size: 19px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .work-section .item ul li,
    .service-section .item ul li {
        text-align: left;
        line-height: normal;
        font-size: 20px;
    }

    .service-section .item ul li {
        text-align: left;
        font-size: 20px;
    }

    .work-section .item.one,
    .service-section .item.one {
        margin-top: 20px;
    }

    .contact-section #home-contact-form-result {
        font-size: 18px;
    }

    .work-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .work-section .work-card ul li {
        text-align: left;
        font-size: 16px;
    }

    .work-section .work-card h3 {
        font-size: 19px;
    }

    .about-stack-item {
        font-size: 15px;
    }

    .about-columns {
        grid-template-columns: 1fr;
    }

    .about-columns .about-col > div {
        font-size: 17px;
    }

    .odd-section .about-more a {
        font-size: 18px;
    }

    .service-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .service-section .about-wrapper {
        padding: 18px 16px;
    }

    /* Выключка по ширине с широким word-spacing на узком экране рвёт строки:
       текста в блоке стало заметно больше, чем было раньше */
    .about-wrapper .about-description {
        font-size: 17px;
        line-height: 26px;
        letter-spacing: normal;
        word-spacing: normal;
        text-align: left;
    }
}
