/* ==================================================
   ШРИФТЫ
================================================== */

@font-face {
    font-family: "Manrope";
    src: url("/fonts/ManropeV5-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("/fonts/ManropeV5-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("/fonts/ManropeV5-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("/fonts/ManropeV5-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* ==================================================
   ПЕРЕМЕННЫЕ
================================================== */

:root {
    --color-bg: #f4f6fa;
    --color-surface: #ffffff;
    --color-surface-soft: #f8f9fc;

    --color-text: #20232a;
    --color-text-soft: #656b78;
    --color-border: #e4e7ed;

    --color-accent: #3157d5;
    --color-accent-hover: #2546b3;
    --color-accent-soft: #eef2ff;

    --color-success: #18794e;
    --color-success-bg: #ecf9f1;

    --color-error: #b42318;
    --color-error-bg: #fff1f0;

    --color-notice: #8a5a00;
    --color-notice-bg: #fff8e6;

    --container-width: 1500px;

    --radius-small: 10px;
    --radius-medium: 16px;
    --radius-large: 24px;

    --shadow-small:
        0 2px 8px rgba(20, 25, 38, 0.05);

    --shadow-medium:
        0 18px 50px rgba(20, 25, 38, 0.08);

    --transition: 0.2s ease;
}


/* ==================================================
   СБРОС
================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;

    display: flex;
    flex-direction: column;

    color: var(--color-text);

    background:
        radial-gradient(
            circle at top left,
            rgba(49, 87, 213, 0.08),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #f8f9fc 0%,
            var(--color-bg) 100%
        );

    font-family:
        "Manrope",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    /* БАЗОВЫЙ РАЗМЕР ОБЫЧНОГО ТЕКСТА */
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-accent);
    text-decoration: none;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
blockquote {
    margin-top: 0;
}


/* ==================================================
   ОБЩАЯ СТРУКТУРА
================================================== */

.header,
.footer {
    flex: 0 0 auto;
}

.main {
    flex: 1 0 auto;
}

.container {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin-right: auto;
    margin-left: auto;
}


/* ==================================================
   ШАПКА
================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    padding: 14px 0;

    background: rgba(255, 255, 255, 0.92);

    border-bottom: 1px solid rgba(228, 231, 237, 0.85);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header .container {
    position: relative;

    min-height: 64px;

    display: flex;
    align-items: center;

    gap: 38px;
}


/* ==================================================
   ЛОГОТИП
================================================== */

.logo {
    display: flex;
    align-items: center;

    flex: 0 0 auto;
}

.logo img {
    display: block;

    width: auto;
    height: 42px;
}

.logo:hover {
    text-decoration: none;
}


/* ==================================================
   НАВИГАЦИЯ
================================================== */

.header__nav {
    display: flex;
    align-items: center;

    margin-left: auto;
}


/* ==================================================
   ПРАВАЯ ЧАСТЬ ШАПКИ
================================================== */

.header__actions {
    display: flex;
    align-items: center;

    gap: 22px;

    flex: 0 0 auto;
}


/* ==================================================
   ТЕЛЕФОН
================================================== */

.header__phone {
    color: var(--color-accent);

    font-size: 22px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}

.header__phone:hover {
    color: var(--color-text);
    text-decoration: none;
}


/* ==================================================
   КОРЗИНА
================================================== */

.header__cart {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    color: #454b57;
    background: transparent;
}

.header__cart:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.header__cart svg {
    display: block;

    width: 24px;
    height: 24px;
}


/* ==================================================
   ОСНОВНАЯ ЧАСТЬ
================================================== */

.main {
    padding: 46px 0 70px;
}

.main > .container {
    position: relative;

    padding: 38px 44px 46px;

    background: rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(228, 231, 237, 0.95);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-medium);
}

.main > .container::before {
    content: "";

    position: absolute;

    top: 0;
    left: 44px;

    width: 92px;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #e31e24 0%,
            #e31e24 48%,
            #159447 48%,
            #159447 100%
        );

    border-radius: 0 0 6px 6px;
}


/* ==================================================
   ХЛЕБНЫЕ КРОШКИ
================================================== */

.breadcrumbs {
    margin-bottom: 26px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    color: #8a909c;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.breadcrumbs a {
    color: var(--color-text-soft);

    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}


/* ==================================================
   ЗАГОЛОВКИ
================================================== */

h1 {
    max-width: 1100px;

    margin-bottom: 20px;

     color: #3157a4;

   font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h2 {
    margin-top: 42px;
    margin-bottom: 18px;

    color: #1d2027;

    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

h3 {
    margin-top: 30px;
    margin-bottom: 12px;

    color: #242832;

    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}


/* ==================================================
   КОНТЕНТ
================================================== */

.content {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;

    color: #414754;
    font-weight: 400;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.content > :first-child {
    margin-top: 0;
}

.content > :last-child {
    margin-bottom: 0;
}

.content p {
    margin-bottom: 20px;
}

.content a {
    color: var(--color-accent);

    font-weight: 600;

    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.content a:hover {
    color: var(--color-accent-hover);
}

.content strong {
    color: #252933;

    font-weight: 700;
}


/* ==================================================
   О КОМПАНИИ
================================================== */

.about_us {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    column-gap: 60px;
    row-gap: 0;

    align-items: start;
}

.about_company_text {
    min-width: 0;
}

.about_company_photo {
    width: 320px;

    align-self: start;
}

.about_company_photo img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 6px;
}

.about_company_text .page_content {
    margin-bottom: 22px;

    color: #414754;

    font-weight: 400;
    line-height: 1.7;
}

.about_company_text .page_content:last-child {
    margin-bottom: 0;
}


/* ==================================================
   СЛАЙДЕР В БЛОКЕ О КОМПАНИИ
   ЗАНИМАЕТ ВСЮ ШИРИНУ ОБЕИХ КОЛОНОК
================================================== */

.about_us > .slider_wrp {
    grid-column: 1 / -1;

    width: 100%;
    min-width: 0;

    margin-top: 30px;
}


/* ==================================================
   СПИСКИ
================================================== */

.content ul,
.content ol {
    margin: 24px 0;
    padding-left: 0;

    list-style: none;
}

.content li {
    position: relative;

    margin-bottom: 12px;
    padding-left: 30px;
}

.content ul li::before {
    content: "";

    position: absolute;

    top: 0.72em;
    left: 4px;

    width: 8px;
    height: 8px;

    background: var(--color-accent);

    border-radius: 50%;

    box-shadow:
        0 0 0 5px var(--color-accent-soft);
}

.content ol {
    counter-reset: content-counter;
}

.content ol li {
    counter-increment: content-counter;
}

.content ol li::before {
    content: counter(content-counter);

    position: absolute;

    top: 2px;
    left: 0;

    width: 22px;
    height: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--color-accent);
    background: var(--color-accent-soft);

    border-radius: 50%;

    font-size: 12px;
    font-weight: 700;
}


/* ==================================================
   ЦИТАТЫ
================================================== */

.content blockquote {
    position: relative;

    margin: 32px 0;
    padding: 24px 28px 24px 30px;

    color: #383e49;

    background:
        linear-gradient(
            135deg,
            #f5f7ff 0%,
            #fafaff 100%
        );

    border: 1px solid #e1e6fa;
    border-radius: var(--radius-medium);
}

.content blockquote::before {
    content: "“";

    position: absolute;

    top: 4px;
    right: 20px;

    color: rgba(49, 87, 213, 0.12);

    font-family: Georgia, serif;
    font-size: 76px;
    line-height: 1;
}

.content blockquote p:last-child {
    margin-bottom: 0;
}


/* ==================================================
   ТАБЛИЦЫ
================================================== */

.content table {
    width: 100%;

    margin: 30px 0;

    border-collapse: separate;
    border-spacing: 0;

    background: #ffffff;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);

    overflow: hidden;

    box-shadow: var(--shadow-small);
}

.content th,
.content td {
    padding: 15px 17px;

    text-align: left;
    vertical-align: top;

    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.content th:last-child,
.content td:last-child {
    border-right: 0;
}

.content tr:last-child td {
    border-bottom: 0;
}

.content th {
    color: #303540;
    background: var(--color-surface-soft);

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}


/* ==================================================
   КОД
================================================== */

.content code {
    padding: 3px 7px;

    color: #7840bf;
    background: #f5effc;

    border: 1px solid #eadcf7;
    border-radius: 6px;

    font-family:
        Consolas,
        Monaco,
        "Courier New",
        monospace;

    font-size: 0.9em;
}

.content pre {
    margin: 28px 0;
    padding: 22px;

    overflow-x: auto;

    color: #e8ebf2;
    background: #171a22;

    border: 1px solid #262a34;
    border-radius: var(--radius-medium);

    box-shadow:
        0 14px 35px rgba(10, 12, 18, 0.16);
}

.content pre code {
    padding: 0;

    color: inherit;
    background: transparent;

    border: 0;
}


/* ==================================================
   ФОРМЫ
================================================== */

input,
textarea,
select {
    width: 100%;

    padding: 13px 15px;

    color: var(--color-text);
    background: #ffffff;

    border: 1px solid #d9dde5;
    border-radius: var(--radius-small);

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

input:hover,
textarea:hover,
select:hover {
    border-color: #bfc5d1;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-accent);

    box-shadow:
        0 0 0 4px rgba(49, 87, 213, 0.12);
}

textarea {
    min-height: 130px;

    resize: vertical;
}


/* ==================================================
   КНОПКИ
================================================== */

button {
    min-height: 44px;

    padding: 0 20px;

    color: #ffffff;
    background: #3f434a;

    border: 0;
    border-radius: 999px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 10px 24px rgba(30, 33, 38, 0.16);

    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition),
        opacity var(--transition);
}

button:hover {
    color: #ffffff;
    background: #30343a;

    transform: translateY(-1px);

    box-shadow:
        0 14px 30px rgba(30, 33, 38, 0.22);
}

button:active {
    color: #ffffff;
    background: #292d32;

    transform: translateY(0);
}


/* ==================================================
   КНОПКИ-ССЫЛКИ
================================================== */

.button,
.footer__button {
    color: #ffffff;

    background: #3f434a;
    background-image: none;

    border-color: #3f434a;

    box-shadow:
        0 10px 24px rgba(30, 33, 38, 0.16);
}

.button:hover,
.footer__button:hover {
    color: #ffffff;

    background: #30343a;
    background-image: none;

    border-color: #30343a;

    box-shadow:
        0 14px 30px rgba(30, 33, 38, 0.22);
}

.button:active,
.footer__button:active {
    color: #ffffff;

    background: #292d32;
    background-image: none;
}


/* ==================================================
   СЛУЖЕБНЫЕ СООБЩЕНИЯ
================================================== */

.error,
.success,
.notice {
    margin: 24px 0;

    padding: 16px 18px;

    border-radius: var(--radius-small);

    font-size: 15px;
    font-weight: 600;
}

.error {
    color: var(--color-error);
    background: var(--color-error-bg);

    border: 1px solid #f3c1bc;
}

.success {
    color: var(--color-success);
    background: var(--color-success-bg);

    border: 1px solid #b9e1ca;
}

.notice {
    color: var(--color-notice);
    background: var(--color-notice-bg);

    border: 1px solid #efd59a;
}


/* ==================================================
   ПОДВАЛ
================================================== */

.footer {
    padding: 34px 0 38px;

    color: var(--color-text-soft);
}

.footer .container {
    padding-top: 32px;

    border-top: 1px solid rgba(215, 219, 227, 0.9);
}

.footer__grid {
    display: grid;

    grid-template-columns:
        1.2fr
        1fr
        1fr;

    gap: 60px;

    align-items: start;
}


/* ==================================================
   ЛЕВЫЙ БЛОК ПОДВАЛА
================================================== */

.footer__company {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 18px;
}

.footer__logo {
    width: auto;
    height: 27px;

    filter: grayscale(100%);

    opacity: 0.45;
}

.footer__copyright {
    color: #7b818e;

    font-size: 14px;
    line-height: 1.5;
}


/* ==================================================
   КОНТАКТЫ В ПОДВАЛЕ
================================================== */

.footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 7px;
}

.footer__title {
    margin-bottom: 7px;

    color: var(--color-text);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer__phone {
    color: var(--color-text);

    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;

    white-space: nowrap;
}

.footer__phone:hover {
    color: var(--color-accent);
}

.footer__email {
    color: var(--color-text-soft);

    font-size: 15px;
    font-weight: 500;
}

.footer__email:hover {
    color: var(--color-accent);
}


/* ==================================================
   ОБРАТНАЯ СВЯЗЬ
================================================== */

.footer__feedback {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__text {
    margin-bottom: 14px;

    color: var(--color-text-soft);

    font-size: 14px;
    line-height: 1.5;
}

.footer__button {
    min-height: 42px;

    padding: 0 20px;

    color: #ffffff;
    background: #3f434a;
    background-image: none;

    border: 0;
    border-radius: 999px;

    font-weight: 600;
}

.footer__button:hover {
    color: #ffffff;
    background: #30343a;
}


/* ==================================================
   ДОСТУПНОСТЬ
================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(49, 87, 213, 0.35);
    outline-offset: 3px;
}