﻿html {
    min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-image: url('/images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.site-main {
    flex: 1 0 auto;
    padding: 10px 0 40px 0;
}

.site-footer {
    flex-shrink: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.navbar-brand img {
    height: 28px;
    width: auto;
    margin-right: 10px;
}

.site-screenshot {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.content-block {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}

.card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.activation-section {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.activation-section:first-of-type {
    padding-top: 5px;
}

.activation-section:last-of-type {
    border-bottom: none;
}

.activation-section-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.activation-value {
    min-width: 100px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(37, 140, 251, 0.08);
    color: #258cfb;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
}

.activation-section .form-range {
    cursor: pointer;
}

.activation-section .form-control {
    max-width: 500px;
}

.activation-section .form-text {
    margin-top: 6px;
}

.activation-number {
    width: 140px;
    text-align: center;
    font-weight: 600;
}

.activation-section .form-range::-webkit-slider-runnable-track {
    height: 7px;
    border-radius: 10px;
    background: #d9e2ec;
}

.activation-section .form-range::-webkit-slider-thumb {
    margin-top: -5px;
    width: 17px;
    height: 17px;
    background: #258cfb;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

:root {
    --jar-blue: #0d6efd;
    --jar-blue-dark: #084298;
    --jar-blue-deep: #062c65;
    --jar-blue-light: #eaf3ff;
    --jar-blue-lighter: #f5f9ff;
    --jar-border: #d7e6f8;
}

/* =========================
   Общие элементы
   ========================= */

h1,
h2,
h3,
h4,
h5 {
    color: var(--jar-blue-dark);
}

.content-block {
    position: relative;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--jar-blue);
}

/* =========================
   Hero
   ========================= */

.hero {
    padding: 40px 30px;
    border-radius: 18px;
    background: radial-gradient( circle at 85% 20%, rgba(255, 255, 255, 0.15), transparent 95% ), linear-gradient( 135deg, rgba(13, 110, 253, 0.92) 0%, rgba(8, 66, 152, 0.92) 100% );
    color: white;
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.20);
}

.hero h1 {
    color: white;
    font-weight: 600;
}

.hero .lead {
    color: white;
    font-size: 1.45rem;
}

.hero p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero .btn-light {
    color: var(--jar-blue-dark);
    font-weight: 500;
}

.hero-logo {
    display: block;
    width: 800px;
    height: 300px;
    object-fit: contain;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.hero-lead {
    max-width: none !important;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-lead {
        font-size: 1.15rem;
    }
}

/* =========================
   Возможности
   ========================= */

.features-section {
    padding: 28px 30px;
    border-radius: 18px;
    background: linear-gradient( 180deg, var(--jar-blue-lighter), white );
}

.feature-card {
    border: 1px solid var(--jar-border);
    border-radius: 14px;
    background: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
        border-color: #9ec5fe;
        box-shadow: 0 10px 28px rgba(13, 110, 253, 0.12);
    }

.feature-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--jar-blue-light);
    color: var(--jar-blue);
    font-weight: 700;
    font-size: 0.9rem;
}

/* =========================
   Архивирование
   ========================= */

.archive-section {
    padding: 28px 30px;
    border-radius: 18px;
    background: linear-gradient( 135deg, #f4f9ff, #e7f1ff );
    border: 1px solid var(--jar-border);
}

.archive-diagram {
    padding: 30px;
    border-radius: 16px;
    background: white;
    border: 1px solid var(--jar-border);
    text-align: center;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.08);
}

.diagram-sources,
.diagram-database {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .diagram-sources span,
    .diagram-database span {
        padding: 7px 14px;
        border-radius: 20px;
        background: var(--jar-blue-light);
        color: var(--jar-blue-dark);
        font-size: 0.9rem;
        font-weight: 600;
    }

.diagram-arrow {
    margin: 10px 0;
    color: var(--jar-blue);
    font-size: 1.5rem;
    font-weight: 700;
}

.diagram-server {
    padding: 14px;
    border-radius: 10px;
    background: linear-gradient( 135deg, var(--jar-blue), var(--jar-blue-dark) );
    color: white;
    font-weight: 600;
}

.database-badge {
    display: inline-block;
    padding: 8px 18px;
    margin-right: 8px;
    border-radius: 20px;
    background: var(--jar-blue);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

/* =========================
   Как это работает
   ========================= */

.process-card {
    padding: 30px 25px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--jar-border);
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.06);
}

.process-number {
    margin-bottom: 15px;
    color: var(--jar-blue);
    font-size: 2rem;
    font-weight: 700;
}

/* =========================
   Развёртывание
   ========================= */

.deployment-section {
    padding: 28px 30px;
    border-radius: 18px;
    background: var(--jar-blue-lighter);
}

.deployment-card {
    padding: 30px 25px;
    text-align: center;
    background: white;
    border: 1px solid var(--jar-border);
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .deployment-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(13, 110, 253, 0.10);
    }

.deployment-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--jar-blue);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
}


/* =========================
   Навигационные карточки
   ========================= */

.navigation-card {
    border: 1px solid var(--jar-border);
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .navigation-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(13, 110, 253, 0.10);
    }

/* =========================
   Активация
   ========================= */

.activation-card {
    padding: 40px 25px;
    border-radius: 18px;
    background: linear-gradient( 135deg, var(--jar-blue-dark), var(--jar-blue-deep) );
    color: white;
    box-shadow: 0 10px 30px rgba(8, 66, 152, 0.18);
}

    .activation-card h3 {
        color: white;
    }

    .activation-card p {
        color: rgba(255, 255, 255, 0.82);
        max-width: 650px;
        margin: 10px auto 25px;
    }

    .activation-card .btn-light {
        color: var(--jar-blue-dark);
        font-weight: 600;
    }

/* =========================
   Кнопки
   ========================= */

.btn-primary {
    background-color: var(--jar-blue);
    border-color: var(--jar-blue);
}

    .btn-primary:hover {
        background-color: var(--jar-blue-dark);
        border-color: var(--jar-blue-dark);
    }

/* =========================
    Activation
    ========================= */

.activation-page {
    max-width: 1200px;
    margin: 0 auto;
}

.activation-header {
    margin-bottom: 35px;
}

    .activation-header h1 {
        font-weight: 600;
    }

    .activation-header > p {
        max-width: 700px;
        margin-top: 12px;
        line-height: 1.6;
    }

/* =========================
   Edition cards
   ========================= */

.edition-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    background: white;
    border: 1px solid var(--jar-border);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .edition-card:hover {
        transform: translateY(-5px);
        border-color: #9ec5fe;
        box-shadow: 0 12px 30px rgba(13, 110, 253, 0.13);
    }

/* Заголовок */

.edition-header {
    text-align: center;
}

    .edition-header h3 {
        margin-bottom: 10px;
        font-size: 1.7rem;
        font-weight: 600;
        color: var(--jar-blue-dark);
    }

.edition-description {
    min-height: 48px;
    margin-bottom: 0;
    color: #6c757d;
    line-height: 1.5;
}

/* Разделитель */

.edition-divider {
    height: 1px;
    margin: 25px 0;
    background: var(--jar-border);
}

/* Список возможностей */

.edition-features {
    flex-grow: 1;
    padding: 0;
    margin: 0;
    list-style: none;
}

.edition-features li {
    position: relative;
    padding: 8px 0 8px 28px;
    color: #495057;
}

.edition-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--jar-blue);
    font-weight: 700;
}

.edition-features strong {
    color: var(--jar-blue-dark);
}

/* Кнопка */

.edition-footer {
    margin-top: 25px;
}

/* =========================
   Standard
   ========================= */

.edition-standard {
    border: 2px solid var(--jar-blue);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.14);
}

.edition-standard:hover {
    border-color: var(--jar-blue-dark);
}

/* Популярная */

.edition-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    border-radius: 20px;
    background: var(--jar-blue);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* =========================
   Pro
   ========================= */

.edition-pro {
    background: linear-gradient( 180deg, #ffffff 0%, #f5f9ff 100% );
}

/* =========================
   Нижняя информация
   ========================= */

.activation-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 24px;
    border-radius: 14px;
    background: var(--jar-blue-lighter);
    border: 1px solid var(--jar-border);
}

    .activation-info h5 {
        margin-bottom: 5px;
        color: var(--jar-blue-dark);
    }

.activation-info-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--jar-blue);
    color: white;
    font-weight: 700;
}

.terms-content {
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 0.95rem;
}

.terms-content p {
    margin-bottom: 1.25rem;
}

.faq-item {
    border-bottom: 1px solid var(--bs-border-color);
    padding: 0.9rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    font-size: 1.2rem;
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding-top: 0.75rem;
    color: var(--bs-secondary-color);
    line-height: 1.6;
}

.legal-text {
    white-space: pre-wrap;
    line-height: 1.7;
}
.license-success-icon {
    width: 64px;
    height: 64px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-success);
    font-size: 2rem;
    font-weight: 600;
}

.license-error-icon {
    width: 64px;
    height: 64px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bs-danger-bg-subtle);
    color: var(--bs-danger);
    font-size: 2rem;
    font-weight: 600;
}

.license-details {
    display: flex;
    flex-direction: column;
}

.license-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.license-detail-row:last-child {
    border-bottom: none;
}

.license-detail-label {
    color: var(--bs-secondary-color);
}

.license-file-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background-color: var(--bs-tertiary-bg);
}

.license-file-icon {
    font-size: 2rem;
}

.license-file-name {
    font-weight: 600;
    word-break: break-all;
}