/*
 * SEODIRECT MED — базовые стили
 */

:root {
    --color-text: #172b49;
    --color-text-light: #58708f;
    --color-blue: #087cff;
    --color-blue-dark: #0566d8;
    --color-border: #dce7f2;
    --color-bg: #ffffff;
    --color-bg-soft: #f4f8fc;
    --container: 1320px;
    --radius: 12px;
    --shadow: 0 20px 60px rgba(23, 43, 73, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-bg);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */

.site-header {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(220, 231, 242, 0.7);
}

.site-header__inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 36px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-logo__text {
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.site-logo__mark {
    width: 24px;
    height: 28px;
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
}

.site-logo__mark span {
    display: block;
    width: 6px;
    border-radius: 2px;
    background: var(--color-blue);
}

.site-logo__mark span:nth-child(1) {
    height: 15px;
}

.site-logo__mark span:nth-child(2) {
    height: 22px;
}

.site-logo__mark span:nth-child(3) {
    height: 28px;
}

.main-nav {
    margin-left: auto;
}

.main-nav__list {
    display: flex;
    align-items: center;
    gap: 38px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav__list a {
    color: var(--color-text);
    font-size: 16px;
    transition: color 0.2s ease;
}

.main-nav__list a:hover {
    color: var(--color-blue);
}

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 25px;
    border: 1px solid var(--color-blue);
    border-radius: 8px;
    color: var(--color-blue);
    font-weight: 600;
    transition: 0.2s ease;
}

.header-button:hover {
    color: #fff;
    background: var(--color-blue);
}

.menu-toggle {
    display: none;
}

/* Hero */

.hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 32%, rgba(255, 255, 255, 0.28) 61%, rgba(255, 255, 255, 0) 100%),
        url('../images/hero-medical.png') center right / cover no-repeat;
}

.hero__container {
    min-height: 760px;
    display: flex;
    align-items: center;
}

.hero__content {
    width: min(700px, 60%);
    padding: 60px 0;
}

.hero__label {
    margin-bottom: 22px;
    color: #3d5b7e;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(44px, 4.1vw, 66px);
    line-height: 1.08;
    letter-spacing: -2.4px;
}

.hero__subtitle {
    max-width: 660px;
    margin: 28px 0 0;
    color: #3d5878;
    font-size: clamp(23px, 2vw, 30px);
    line-height: 1.35;
}

.hero__text {
    max-width: 620px;
    margin: 25px 0 0;
    color: var(--color-text-light);
    font-size: 18px;
    line-height: 1.65;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 58px;
    padding: 0 30px;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.2s ease;
}

.button--primary {
    margin-top: 32px;
    color: #fff;
    background: var(--color-blue);
    box-shadow: 0 10px 25px rgba(8, 124, 255, 0.2);
}

.button--primary:hover {
    background: var(--color-blue-dark);
    transform: translateY(-1px);
}

.button--primary span {
    font-size: 22px;
}

.hero__note {
    max-width: 610px;
    margin: 18px 0 0;
    color: #647b98;
    font-size: 14px;
    line-height: 1.55;
}

.hero__features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 680px;
    margin-top: 58px;
    border-top: 1px solid rgba(150, 175, 201, 0.45);
    padding-top: 28px;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 80px;
    padding: 0 20px;
    border-right: 1px solid rgba(150, 175, 201, 0.45);
}

.hero-feature:first-child {
    padding-left: 0;
}

.hero-feature:last-child {
    border-right: 0;
}

.hero-feature__icon {
    margin-bottom: 7px;
    color: var(--color-blue);
    font-size: 26px;
    line-height: 1;
}

.hero-feature strong {
    font-size: 15px;
}

.hero-feature span:last-child {
    color: #7186a0;
    font-size: 13px;
    line-height: 1.35;
}

/* Generic sections */

.section {
    padding: 120px 0;
}

.section--placeholder {
    background: var(--color-bg-soft);
}

.section--audit {
    background: #eef6ff;
}

.section-heading {
    max-width: 900px;
}

.section-heading__label {
    display: block;
    margin-bottom: 16px;
    color: var(--color-blue);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.section p {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--color-text-light);
    font-size: 18px;
}

.audit-box {
    padding: 70px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

/* Entries */

.entry {
    padding-top: 100px;
    padding-bottom: 100px;
}

.entry h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.1;
}

.entry__content {
    max-width: 850px;
}

/* Footer */

.site-footer {
    padding: 55px 0;
    background: #132641;
    color: #fff;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo--footer .site-logo__text {
    color: #fff;
}

.site-footer__description {
    margin: 18px 0 0;
    color: #a9bad0;
}

.site-footer__copyright {
    color: #a9bad0;
    font-size: 14px;
}

/* Responsive */

@media (max-width: 1100px) {
    .main-nav__list {
        gap: 22px;
    }

    .site-header__inner {
        gap: 22px;
    }

    .hero__content {
        width: 65%;
    }

    .hero {
        background-position: 58% center;
    }
}

@media (max-width: 900px) {
    .site-header__inner {
        min-height: 76px;
    }

    .main-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        display: none;
        padding: 20px 24px 28px;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .menu-toggle {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        margin-left: auto;
        padding: 9px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle > span:not(.screen-reader-text) {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--color-text);
    }

    .header-button {
        display: none;
    }

    .hero {
        min-height: auto;
        background:
            linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 52%, rgba(255, 255, 255, 0.25) 100%),
            url('../images/hero-medical.png') center / cover no-repeat;
    }

    .hero__container {
        min-height: auto;
    }

    .hero__content {
        width: 75%;
        padding: 85px 0;
    }

    .hero__features {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 22px;
    }

    .hero-feature:nth-child(2) {
        border-right: 0;
    }

    .hero-feature:nth-child(3) {
        padding-left: 0;
    }

    .section {
        padding: 85px 0;
    }

    .audit-box {
        padding: 45px;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .site-logo__text {
        font-size: 23px;
    }

    .hero {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 50%, rgba(255, 255, 255, 0.35) 100%),
            url('../images/hero-medical.png') 67% center / cover no-repeat;
    }

    .hero__content {
        width: 100%;
        padding: 65px 0 55px;
    }

    .hero__label {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 40px;
        letter-spacing: -1.5px;
    }

    .hero__subtitle {
        font-size: 22px;
    }

    .hero__text {
        font-size: 16px;
    }

    .hero__features {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 42px;
    }

    .hero-feature {
        padding: 0 12px;
    }

    .hero-feature:nth-child(3),
    .hero-feature:nth-child(4) {
        border-top: 1px solid rgba(150, 175, 201, 0.45);
        padding-top: 20px;
    }

    .section {
        padding: 65px 0;
    }

    .section h2 {
        font-size: 34px;
    }

    .audit-box {
        padding: 32px 24px;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
