@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 200;
    src: url('/fonts/montserrat-v31-cyrillic_latin-200.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    src: url('/fonts/montserrat-v31-cyrillic_latin-300.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/montserrat-v31-cyrillic_latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    src: url('/fonts/montserrat-v31-cyrillic_latin-500.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/montserrat-v31-cyrillic_latin-600.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/montserrat-v31-cyrillic_latin-700.woff2') format('woff2');
}

:root {
    --color-text: #2b2b2b;
    --color-text-secondary: #333;
    --color-text-subtitle: #555;
    --color-white: #ffffff;
    --color-primary: #f5f6f8;
    --color-secondary: #494e52;
    --color-content: #33383c;
    --color-light: #ececec;
    --color-dark: #1a1a1a;
    --color-grey: #888b8e;
    --color-blue-btn-primary: #2b6cb0;
    --color-blue-btn-secondary: #3b6cff;
    --color-blue-dark: #0056b3;
    --color-light-blue: #eaf2fb;
    --color-light-grey: #ddd;
    --color-warning: #f0c36d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
    background: var(--color-white);
}

a {
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-white {
    background: var(--color-white);
    padding: 70px 0;
}

.section-grey {
    background: var(--color-primary);
    padding: 70px 0;
}

.section-blue {
    background: var(--color-light-blue);
    padding: 70px 0;
    text-align: center;
}

/* HERO */
.hero {
    padding: 20px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--color-text-subtitle);
    max-width: 720px;
    margin: 0 auto 35px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--color-blue-btn-primary);
    color: var(--color-white);
}

.btn:hover {
    background: var(--color-blue-btn-secondary);
}

/* TITLES */
h2 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Верхняя строка */
.top-bar {
    background-color: var(--color-secondary);
    color: var(--color-light);
}

.top-bar a {
    color: var(--color-light);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.top-bar a:hover {
    color: #fff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.top-bar__inner {
    display: flex;
    align-items: center;
}

.language-switcher {
    display: flex;
    gap: 6px;
}

.language-switcher a {
    font-size: 14px;
    font-weight: 300;
    padding: 3px;
}

.language-switcher a.language-active {
    font-weight: 500;
}

.top-bar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.phones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    row-gap: 4px;
    margin: 0 auto; /* <-- по центру */
    text-align: center;
}

@media (max-width: 400px) {
    .top-bar__inner {
        flex-wrap: wrap;
    }

    .phones {
        margin: 0;                /* уходим от центра */
        justify-content: flex-start;
        text-align: left;
        flex-direction: column;   /* номера друг под другом */
    }

    .language-switcher {
        margin-left: auto;
    }
}

/* Меню */
.main-nav {
    background: #ffffff;
    border-bottom: 1px solid #e2e6ea;
}

.main-nav__inner {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 26px;
    margin: 0;
}

.nav-menu a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-text-secondary);
    transition: width 0.25s ease;
}
.nav-menu a:hover::after {
    width: 100%;
}

.mobile-nav {
    position: relative;
    background: #fff;
    border-bottom: 1px solid #e2e6ea;
}

.mobile-nav__top .logo {
    position: absolute;
    left: 7px;
}

.mobile-nav .nav-actions {
    position: absolute;
    right: 7px;
    top: 0;
    height: 56px;
    display: flex;
    align-items: center;
}

.mobile-nav__top {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
}

.mobile-nav .burger {
    width: 32px;
    height: 24px;
    border: none;
    background: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-nav .burger span {
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav .burger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.mobile-nav .burger.active span:nth-child(2) {
    opacity: 0;
}
.mobile-nav .burger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #fff;
}

.mobile-menu.open {
    max-height: 400px;
}

.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu__list li {
    border-top: 1px solid #f0f0f0;
}

.mobile-menu__list a {
    display: block;
    text-align: center;
    padding: 14px 20px;
    font-size: 16px;
    text-decoration: none;
    color: #333;
    transition: background 0.25s;
}

.mobile-menu__list a:hover {
    background: #f5f7fa;
}


@media (max-width: 768.98px) {
    .main-nav {
        display: none;
    }

    h2 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 20px;
    }

    .hero h2 {
        font-size: 2.0rem;
        font-weight: 600;
        margin-bottom: 14px;
    }

    .section-white,
    .section-grey,
    .section-blue {
        padding: 50px 0;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}

/* кнопка Вход */
.nav-actions .btn-outline {
    padding: 10px 20px;
    border: 1px solid #2b6cb0;
    color: #2b6cb0;
    background: transparent;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-actions .btn-outline:hover {
    background: #2b6cb0;
    color: #ffffff;
}

/* WHY LIST */
.why-list {
    list-style: none;
    max-width: 720px;
}

.why-list li {
    font-size: 1.05rem;
    margin-bottom: 14px;
    padding-left: 16px;
    position: relative;
}

.why-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #2b6cb0;
}

/* FEATURES */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-box {
    flex: 1;
    min-width: 280px;
    background: #ffffff;
    padding: 26px;
    border: 1px solid #dde1e6;
    border-radius: 6px;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.feature-icon {
    color: var(--color-blue-btn-secondary);
    flex-shrink: 0;
}

.feature-icon svg {
    display: block;
}

.feature-box h3 {
    font-size: 1.25rem;
    margin: 0;
}

.feature-box h3 {
    font-size: 1.25rem;
    margin: 0; /* важно */
}

/* STEPS */
.steps-list {
    max-width: 720px;
    padding-left: 22px;
    margin-top: 30px;
}

.steps-list li {
    font-size: 1.05rem;
    margin-bottom: 12px;
}

/* FOOTER */
.footer {
    background: #f7f7f7;
    border-top: 1px solid #e3e3e3;
    padding: 30px 20px;
    font-size: 14px;
    color: #444;
}

.footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer__brand {
    font-weight: 600;
    margin-bottom: 6px;
}

.tm {
    font-size: 8px;
    position: relative;
    top: -6px;
}

.footer__email a,
.footer__phones a {
    color: #444;
    text-decoration: none;
}

.footer__phones {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__social {
    display: flex;
    gap: 14px;
}

.footer__social a {
    color: #444;
    font-size: 18px;
    transition: color 0.2s;
}

.footer__social a:hover {
    color: var(--color-blue-btn-secondary);
}

/* мобильная версия */
@media (max-width: 768px) {
    .footer__inner {
        text-align: center;
        justify-content: center;
    }

    .footer__phones {
        align-items: center;
    }
}


/* =========================
   INTERFACE PREVIEW
========================= */

.section-subtitle {
    max-width: 720px;
    margin-bottom: 50px;
    color: #555;
    font-size: 1.05rem;
}

.interface-block {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 1400px) {
    .interface-block {
        flex-direction: row;
        align-items: center;
    }

    .interface-block.reverse {
        flex-direction: row-reverse;
    }
}

.interface-text {
    flex: 1;
    min-width: 280px;
}

.interface-text h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.interface-text ul {
    list-style: none;
}

.interface-text li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    font-size: 1rem;
}

.interface-text li::before {
    content: "✓";
    color: green;
    font-weight: 700;
    font-size: 22px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.interface-image {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dde1e6;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* =========================
   PRICE
========================= */
.pricing {
    padding: 60px 20px;
    background: #f7f7f7;
}

.pricing__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.pricing__title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.pricing__list {
    display: grid;
    gap: 30px;
}

/* 3 карточки в ряд */
@media (min-width: 1100px) {
    .pricing__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 карточки в ряд */
@media (min-width: 768px) and (max-width: 1099px) {
    .pricing__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 карточка */
@media (max-width: 767px) {
    .pricing__list {
        grid-template-columns: 1fr;
    }
}

.pricing__card {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    padding: 30px;
    margin-left: 5px;
    margin-right: 5px;
}

.pricing__card .btn {
    display: table;
    margin: 25px auto 0;
}

.pricing__card--highlight {
    border: 2px solid var(--color-blue-btn-secondary);
}

.pricing__card-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.pricing__price {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.pricing__price span {
    font-size: 16px;
    font-weight: normal;
}

.pricing__subtitle {
    color: #666;
    margin-bottom: 20px;
}

.pricing__features {
    padding-left: 18px;
    margin: 0;
}

.pricing__features li {
    margin-bottom: 10px;
    line-height: 1.4;
}

@media (min-width: 768px) and (max-width: 1099px) {
    .pricing__card:last-child {
        grid-column: 1 / -1;   /* растягиваем на всю строку */
        max-width: 500px;      /* ограничиваем ширину */
        margin: 0 auto;        /* центрируем */
    }
}


/* Кнопка Наверх */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1000;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Белая стрелка */
.btn-back-to-top .uparrow-icon {
    width: 40px;
    height: 40px;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* При наведении */
.btn-back-to-top:hover .uparrow-icon {
    opacity: 1;
    transform: translateY(-3px);
}

/* Появление кнопки */
.btn-back-to-top.show {
    display: block;
    opacity: 1;
}

