/* Публичная главная (лендинг). Отдельный файл — не подключаем style.css, чтобы не сломать .container приложения. */

/* Якоря: липкая шапка не перекрывает заголовки разделов (scroll-padding — смещение «верха» при переходе по #). */
html {
    scroll-padding-top: 124px;
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 96px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #243447;
    line-height: 1.6;
}

.land-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

header.land-header {
    background: #ffffff;
    border-bottom: 1px solid #d9dde3;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Шапка: жёсткая сетка — логотип | меню | кнопки (без наезда на средних экранах) */
.land-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(220px, max-content);
    grid-template-areas: "brand nav auth";
    align-items: center;
    column-gap: clamp(12px, 2vw, 24px);
    row-gap: 10px;
    min-height: 82px;
    width: 100%;
}

.land-brand {
    grid-area: brand;
}

.land-nav {
    grid-area: nav;
}

.land-header-auth {
    grid-area: auth;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    min-width: 220px;
    max-width: 100%;
}

.land-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    min-width: 0;
}

.land-brand .site-logo {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    display: block;
}

.land-brand .site-title {
    font-size: 36px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.land-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: clamp(10px, 1.6vw, 28px);
    min-width: 0;
    overflow: hidden;
}

.land-nav a,
.land-nav-current {
    flex-shrink: 0;
    white-space: nowrap;
}

.land-nav a {
    text-decoration: none;
    color: #3e5167;
    font-size: 14px;
}

.land-nav a:hover {
    color: #243447;
}

.land-nav-current {
    font-size: 14px;
    color: #243447;
    font-weight: 600;
    cursor: default;
}

.land-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0 6px;
    font-size: 14px;
}

.land-breadcrumb a {
    color: #3e5167;
    text-decoration: none;
}

.land-breadcrumb a:hover {
    color: #243447;
    text-decoration: underline;
}

/* Кнопка «наверх» (появляется при прокрутке вниз) */
.land-scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 25;
    width: 52px;
    height: 52px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #243447;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease, color 0.15s ease;
}

.land-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.land-scroll-top:hover {
    color: #1a252f;
}

.land-scroll-top:focus {
    outline: none;
}

.land-scroll-top:focus-visible {
    box-shadow: 0 0 0 2px rgba(36, 52, 71, 0.25);
    border-radius: 50%;
}

.land-scroll-top__svg {
    display: block;
    width: 100%;
    height: 100%;
}

.land-auth-block {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    flex-shrink: 0;
}

.land-auth-block .btn {
    white-space: nowrap;
}

.land-auth-logged {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.land-auth-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    max-width: 220px;
    text-align: right;
    word-break: break-word;
}

.land-auth-user-name--link {
    text-decoration: none;
}

.land-auth-user-name--link:hover {
    text-decoration: underline;
}

.land-auth-user-name--active {
    text-decoration: underline;
}

.btn {
    background: #243447;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 3px;
    font-size: 14px;
    transition: 0.2s ease;
    border: 1px solid #243447;
    display: inline-block;
    cursor: pointer;
    font-family: inherit;
}

.btn:hover {
    background: #1b2837;
}

.btn-secondary {
    background: transparent;
    color: #243447;
    border: 1px solid #b7c0ca;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

.hero {
    padding: 80px 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 22px;
    color: #1f3042;
    font-weight: 600;
}

.hero p {
    font-size: 17px;
    color: #556575;
    max-width: 760px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-panel {
    background: #ffffff;
    border: 1px solid #d9dde3;
    padding: 28px;
}

.panel-title {
    font-size: 14px;
    color: #6d7b88;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metric {
    padding: 16px 0;
    border-bottom: 1px solid #eceff3;
}

.metric:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.metric strong {
    display: block;
    font-size: 15px;
    color: #243447;
    margin-bottom: 4px;
}

.metric span {
    font-size: 14px;
    color: #64717f;
}

/* Спецпредложение между hero и блоком «О компании» */
.land-promo-offer {
    padding: 8px 0 36px;
}

.land-promo-offer__frame {
    border-radius: 14px;
    border: 1px solid #c9bf9a;
    background: #f3f4f6;
    overflow: hidden;
}

.land-promo-offer__inner {
    position: relative;
    border-radius: 13px;
    padding: 22px 26px;
    background-color: #f3f4f6;
    /* Светло-жёлтое свечение у рамки, к центру — цвет фона страницы; толщина ≈ половина строки */
    --land-promo-glow: max(11px, 0.55em);
    box-shadow: inset 0 0 var(--land-promo-glow) calc(var(--land-promo-glow) * 0.85) rgba(255, 240, 175, 0.92);
}

.land-promo-offer__text {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    color: #1f3042;
    max-width: 920px;
}

section.land-section {
    padding: 54px 0;
}

.section-header {
    margin-bottom: 30px;
    max-width: 760px;
}

.section-header h2 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #243447;
}

.section-header p {
    color: #64717f;
    font-size: 15px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background: #ffffff;
    border: 1px solid #d9dde3;
    padding: 26px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #243447;
    font-weight: 600;
}

.card p {
    color: #61707f;
    font-size: 15px;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.adv-box {
    background: #ffffff;
    border: 1px solid #d9dde3;
    padding: 24px;
    min-height: 210px;
}

.adv-number {
    font-size: 13px;
    color: #6b7784;
    margin-bottom: 16px;
}

.adv-box h4 {
    font-size: 17px;
    margin-bottom: 10px;
    color: #243447;
}

.adv-box p {
    font-size: 14px;
    color: #64717f;
}

.future {
    background: #ffffff;
    border-top: 1px solid #d9dde3;
    border-bottom: 1px solid #d9dde3;
}

.future-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.future-item {
    padding: 24px;
    border: 1px solid #e5e8ec;
    background: #fafbfc;
}

.future-item h4 {
    margin-bottom: 10px;
    font-size: 17px;
    color: #243447;
}

.future-item p {
    font-size: 14px;
    color: #64717f;
}

.cta {
    padding: 70px 0 90px;
}

.cta-box {
    background: #243447;
    padding: 48px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cta-box h2 {
    font-size: 30px;
    margin-bottom: 10px;
    font-weight: 600;
}

.cta-box p {
    color: #d2dae2;
    max-width: 700px;
    font-size: 15px;
}

.cta-box .btn {
    background: #ffffff;
    color: #243447;
    white-space: nowrap;
}

.cta-box .btn:hover {
    background: #eceff3;
}

footer.land-footer {
    border-top: 1px solid #d9dde3;
    background: #ffffff;
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px 24px;
    color: #6a7783;
    font-size: 13px;
}

.land-footer-brand,
.land-footer-company {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.land-footer-company {
    text-align: right;
}

.land-footer-company a,
.land-footer-doc {
    color: #3e5167;
    text-decoration: none;
}

.land-footer-company a:hover,
.land-footer-doc:hover {
    color: #243447;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .land-footer-company {
        text-align: left;
    }
}

/* Модалка сообщения (как в приложении) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.modal-overlay.is-open {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #666666;
    padding: 0 4px;
}

.modal-body {
    padding: 16px;
    font-size: 15px;
    color: #333333;
}

.modal-body--error {
    color: #c0392b;
}

.modal-actions {
    padding: 0 16px 16px 16px;
    display: flex;
    justify-content: flex-end;
}

.modal-ok {
    padding: 10px 16px;
    border: 1px solid #2c3e50;
    background-color: #2c3e50;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

/* Форма вопроса */
.question-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
}

.question-overlay.is-open {
    display: flex;
}

.question-dialog {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.question-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #f5f5f5;
}

.question-dialog-title {
    font-size: 16px;
    font-weight: 600;
    color: #243447;
}

.question-dialog-close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.question-form {
    padding: 20px 16px 16px;
}

.question-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #243447;
    margin-bottom: 6px;
}

.question-form input[type="email"],
.question-form input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 15px;
    margin-bottom: 14px;
}

.question-form textarea {
    width: 100%;
    min-height: 140px;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 6px;
}

.question-form .char-hint {
    font-size: 13px;
    color: #64717f;
    margin-bottom: 16px;
}

.question-form .form-actions {
    margin-top: 8px;
}

@media (max-width: 980px) {
    .hero-grid,
    .cards,
    .advantages,
    .future-grid,
    .cta-box {
        grid-template-columns: 1fr;
        display: grid;
    }

    .advantages {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-box {
        text-align: left;
    }
}

/* Средние экраны (MacBook Air и ноутбуки): компактнее, без перекрытия колонок */
@media (max-width: 1280px) {
    .land-header-inner {
        grid-template-columns: auto minmax(0, 1fr) minmax(200px, max-content);
        column-gap: 12px;
    }

    .land-header-auth {
        min-width: 200px;
    }

    .land-brand .site-logo {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px;
        min-height: 80px;
        max-width: 80px;
        max-height: 80px;
    }

    .land-brand .site-title {
        font-size: 30px;
    }

    .land-nav a,
    .land-nav-current {
        font-size: 13px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 1160px) {
    .land-header-inner {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "brand auth"
            "nav nav";
        min-height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .land-nav {
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
        row-gap: 8px;
    }

    .land-header-auth {
        min-width: 0;
        justify-self: end;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 32px;
    }

    .land-nav {
        display: none;
    }

    .land-header-inner {
        grid-template-columns: 1fr auto;
        grid-template-areas: "brand auth";
        min-height: 72px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .land-brand .site-logo {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px;
        min-height: 72px;
        max-width: 72px;
        max-height: 72px;
    }

    .land-brand .site-title {
        font-size: 26px;
    }

    .cta-box {
        padding: 32px 24px;
    }

    .land-auth-block,
    .land-auth-logged {
        align-items: flex-end;
    }

    .land-scroll-top {
        bottom: 18px;
        right: max(16px, env(safe-area-inset-right, 0px));
        width: 46px;
        height: 46px;
    }
}

/* --- Страница «Тарифы» (тот же лендинг-окружением, без base.html) --- */
.land-tariffs-wrap {
    padding: 8px 0 48px;
    max-width: 1180px;
    margin: 0 auto;
}

.tariffs-page-title {
    font-size: 26px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.tariffs-page-error {
    color: #c0392b;
    margin-bottom: 16px;
}

.tariffs-page-empty {
    color: #64717f;
    margin: 0;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .tariffs-grid {
        grid-template-columns: 1fr;
    }
}

.tariff-card {
    margin: 0;
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid #c5cdd6;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tariff-card-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f3042;
    margin: 0 0 14px 0;
    line-height: 1.25;
}

.tariff-card-text {
    margin: 0 0 14px 0;
    font-size: 15px;
    line-height: 1.55;
    color: #243447;
    white-space: pre-wrap;
    word-break: break-word;
}

.tariff-card-pay {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #243447;
}

.tariff-card-action {
    margin: 18px 0 0 0;
}

.tariff-card-action .btn {
    display: inline-block;
    text-decoration: none;
}

.pay-confirm-card .pay-confirm-upd-notice {
    margin: 20px 0 0 0;
}

.pay-confirm-card .pay-confirm-upd-notice .land-promo-offer__text {
    font-size: 15px;
}

.pay-confirm-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.pay-confirm-actions .btn-secondary {
    text-decoration: none;
}

/* Согласие на cookie и страница политики (тот же блок, что в style.css; лендинг не подключает style.css) */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10vh;
    min-height: 120px;
    max-height: 220px;
    z-index: 10000;
    background: #2c3e50;
    color: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
}

.cookie-consent-banner__inner {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}

.cookie-consent-banner__text {
    flex: 1 1 280px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.cookie-consent-banner__text a {
    color: #7ec8ff;
    text-decoration: underline;
}

.cookie-consent-banner__text a:hover {
    color: #b8e0ff;
}

.cookie-consent-banner__btn {
    flex: 0 0 auto;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background: #3498db;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-consent-banner__btn:hover {
    background: #2980b9;
}

.cookie-consent-banner__btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.cookie-policy-page {
    max-width: 900px;
}

.cookie-policy-page h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cookie-policy-page h2 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.75rem;
}

.cookie-policy-page p {
    margin-bottom: 0.85rem;
}

.cookie-policy-page__list {
    margin: 0 0 1rem 1.25rem;
}

.cookie-policy-page__list li {
    margin-bottom: 0.35rem;
}

.cookie-policy-breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.cookie-policy-breadcrumbs a {
    color: #2980b9;
    text-decoration: none;
}

.cookie-policy-breadcrumbs a:hover {
    text-decoration: underline;
}

.cookie-policy-landing-main {
    padding: 2rem 0 4rem;
}

.cookie-policy-landing-body:has(.cookie-consent-banner) main {
    padding-bottom: 12vh;
}
