body { font-family: Arial, sans-serif; margin:0; padding:0; scroll-behavior: smooth; }
section { padding:60px 20px; text-align:center; }
h1 { font-size:36px; margin-bottom:20px; }
h2 { font-size:28px; margin-bottom:20px; }
p { font-size:18px; margin-bottom:30px; }
button { padding:12px 24px; margin:5px; font-size:16px; border:none; border-radius:5px; cursor:pointer; background:#2b8fed; color:#fff; }
button:hover { background:#1e6fd6; }
form { max-width:500px; margin:0 auto; text-align:left; }
input, textarea { width:100%; padding:8px; margin-bottom:15px; border:1px solid #ccc; border-radius:4px; }
.success { color:green; }
.error { color:red; }

/* Footer */
footer { background:#e6f2ff; color:#fff; padding:20px 0; text-align:center; font-size:14px; }
footer a { color:#2b8fed; text-decoration:none; margin:0 10px; }
footer a:hover { text-decoration:underline; }

/* Скрываем honeypot поле для обычного пользователя */
.honeypot {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

/* Меню */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 60px;
    box-sizing: border-box;
}

header .logo img {
    height: 40px;
}

header nav {
    display: flex;
    gap: 30px;
    font-weight: bold;
}

header nav a {
    text-decoration: none;
    color: #555;
    position: relative;
    transition: color 0.2s;
}

header nav a:hover {
    color: #333;
}

header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #333;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

header nav a:hover::after {
    width: 100%;
}

header .btn-question {
    padding: 10px 20px;
    font-weight: bold;
    color: #2b8fed;
    background: #fff;
    border: 2px solid #2b8fed;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    margin-left: 10px;
    margin-right: 30px;
}

header .btn-question:hover {
    color: #1e6fd6;
    border-color: #1e6fd6;
}

/* Гамбургер кнопка */
header .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
}

header .hamburger div {
    height: 3px;
    background: #2b8fed;
    border-radius: 2px;
}

/* Первый экран */
#hero {
    background:#f0f8ff;
    min-height:80vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

#hero h1 { font-size:48px; margin-bottom:20px; text-align:center; }
#hero h2 { font-size:28px; margin:20px 0; text-align:center; }

/* Контент не перекрывает меню */
body { padding-top: 60px; }

/* Адаптивность */
@media (max-width: 768px) {
    header nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #fff;
        gap: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
    }

    header nav a {
        padding: 15px 20px;
        border-top: 1px solid #f0f0f0;
    }

    header nav.active {
        max-height: 500px;
    }

    header .hamburger {
        display: flex;
    }

    header .btn-question {
        order: 3;
        width: 100%;
        text-align: center;
        margin: 10px 0 0 0;
    }
}

/* ===== Стили страницы adminka ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: #f7f9fc;
    color: #333;
}

input[type=text], textarea {
    width: 400px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    padding: 8px 16px;
    background: #2b8fed;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #1e6fd6;
}

h1 {
    color: #2b8fed;
}

.step {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

table.stats {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

table.stats th, table.stats td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

table.stats th {
    background: #e8f1fd;
    font-weight: bold;
}

table.stats tr:nth-child(even) {
    background: #f9fbff;
}

table.stats .total-row {
    font-weight: bold;
    background: #dff0d8;
}

.stat-summary {
    margin-top: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

textarea[readonly] {
    background: #f4f4f4;
    color: #333;
    font-family: monospace;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.header-left {
    font-weight: bold;
    color: #2b8fed;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #333;
}

.header-right span {
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.header-right a {
    color: #2b8fed;
    text-decoration: none;
    font-weight: bold;
}

.header-right a:hover {
    text-decoration: underline;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2ecc71;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

#toggleLabel.active {
    color: #2ecc71;
    font-weight: bold;
}

#toggleLabel.inactive {
    color: #e74c3c;
    font-weight: bold;
}

#resetMessage {
    transition: opacity 0.8s ease;
    opacity: 1;
}

#resetMessage.fade-out {
    opacity: 0;
}

.save-warning-message {
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #fff8e1;
    border: 1px solid #f0c36d;
    border-radius: 6px;
    color: #7a5200;
    font-size: 14px;
    line-height: 1.45;
}

@media (max-width:780px) {
    .header {
        padding: 10px;
        height: auto;
    }

    body {
        padding-top: 110px;
    }
}

.btn-hover {
    padding: 6px 12px;
    background: #2b8fed;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.3s;
}

.btn-hover:hover {
    background: #1e6fd6;
}

.variants-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 16px;
    align-items: start;
}

@media (max-width: 780px) {
    .variants-grid {
        grid-template-columns: 1fr;
    }
}

.variants-left h2 {
    margin-top: 0;
}

.variants-left p {
    color: #666;
    margin-top: -8px;
}

.variants-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

#removeVariantBtn:disabled {
    background: #aaa !important;
    cursor: not-allowed !important;
}

.variants-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variant-block {
    background: #fff;
    border: 1px solid #e6e9f2;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 260ms ease, opacity 220ms ease, transform 220ms ease;
}

.variant-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.variant-title {
    font-weight: bold;
    color: #2b8fed;
    margin-bottom: 8px;
}

.variant-textarea {
    margin-bottom: 0 !important;
}

#successPagesSection .two-col {
    display: grid !important;
    grid-template-columns: 40% 60% !important;
    gap: 16px;
    align-items: start;
}

@media (max-width: 780px) {
    #successPagesSection .two-col {
        grid-template-columns: 1fr !important;
    }
}

.success-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

#removeSuccessBtn:disabled {
    background: #aaa !important;
    cursor: not-allowed !important;
}

.success-item {
    background: #fff;
    border: 1px solid #e6e9f2;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    max-height: none;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 260ms ease, opacity 220ms ease, transform 220ms ease;
}

.success-item.is-collapsed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    margin: 0;
}

.success-row {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 10px;
    align-items: center;
}

@media (max-width: 780px) {
    .success-row {
        grid-template-columns: 1fr;
    }
}

.check-success-btn {
    width: 180px;
    min-width: 180px;
    height: 36px;
    padding: 8px 12px;
    background: #f1f5ff;
    color: #2b8fed;
    border: 1px solid #cddcff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.25s ease;
    text-align: center;
    white-space: nowrap;
}

.check-success-btn:hover {
    background: #2b8fed;
    color: #fff;
    border-color: #2b8fed;
}

.success-result {
    display: block;
    margin-top: 6px;
    min-height: 18px;
}

.action-conversion-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.js-goal-scope {
    margin: 12px 0 16px;
    padding: 12px 14px;
    border: 1px solid #e1e6ef;
    border-radius: 8px;
    background: #f8fafc;
}

.js-goal-scope-title {
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.js-goal-scope-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    color: #333;
}

.js-goal-scope-toggle input {
    width: auto;
    margin: 0;
}

.action-conversion-row {
    background: #fff;
    border: 1px solid #e6e9f2;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: visible;
}

.action-conversion-grid {
    display: grid;
    grid-template-columns: minmax(170px, 220px) minmax(260px, 1fr);
    gap: 14px;
    align-items: start;
}

.action-conversion-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.action-conversion-grid input[type="text"],
.action-conversion-grid select {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
}

.action-conversion-static-type {
    min-height: 42px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d7dce8;
    border-radius: 6px;
    background: #f7f9fc;
    color: #333;
    font-size: 15px;
}

.action-conversion-meta {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-conversion-enabled {
    min-height: auto;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 0;
    white-space: nowrap;
}

.action-conversion-enabled input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.action-conversion-row-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
    position: relative;
}

.action-conversion-manual-code {
    margin-top: 12px;
}

.manual-goal-snippet {
    margin: 6px 0 0;
    padding: 10px 12px;
    background: #f6f8fb;
    border: 1px solid #dfe6f1;
    border-radius: 6px;
    color: #223044;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 780px) {
    .action-conversion-grid {
        grid-template-columns: 1fr;
    }
}

.confirm-danger-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 10px;
}

.confirm-danger-row input[type="checkbox"] {
    width: auto;
    margin: 2px 0 0 0;
    flex: 0 0 auto;
}

.confirm-danger-row label {
    margin: 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.remove-action-conversion-btn {
    background: #fff;
    border: 1px solid #c62828;
    color: #c62828;
    box-shadow: none;
}

.remove-action-conversion-btn:hover {
    background: #fff5f5;
    border-color: #a91515;
    color: #a91515;
}

.action-delete-popover {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 20;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: min(100%, 460px);
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #f1b5b5;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(120,20,20,0.12);
    color: #7a1e1e;
    font-size: 14px;
}

.action-conversion-row.is-confirming-delete .action-delete-popover {
    display: flex;
}

.confirm-action-delete-btn,
.cancel-action-delete-btn {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.confirm-action-delete-btn {
    background: #c62828;
    border: 1px solid #c62828;
    color: #fff;
}

.confirm-action-delete-btn:hover {
    background: #a91515;
    border-color: #a91515;
}

.cancel-action-delete-btn {
    background: #fff;
    border: 1px solid #ccd3dd;
    color: #555;
}

.cancel-action-delete-btn:hover {
    background: #f6f8fb;
    border-color: #aeb7c4;
}

/* ===== Стили страницы user/menu ===== */
body.user-menu-page {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: #f7f9fc;
    color: #333;
}

.user-menu-page button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.user-menu-page .button-blue {
    background: #2b8fed;
    color: #fff;
}

.user-menu-page .button-blue:hover {
    background: #1e6fd6;
}

.user-menu-page .create-experiment-form {
    max-width: none;
    margin: 0 0 24px;
    text-align: left;
}

.user-menu-page .create-experiment-btn {
    background: #166534;
    color: #fff;
    padding: 10px 22px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 5px;
}

.user-menu-page .create-experiment-btn:hover {
    background: #14532d;
}

.user-menu-page .button-orange {
    background: #f39c12;
    color: #fff;
}

.user-menu-page .button-orange:hover {
    background: #e67e22;
}

.user-menu-page .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header {
    position: fixed;
}

.user-menu-page .header-left {
    font-weight: bold;
    color: #2b8fed;
    font-size: 18px;
}

.user-menu-page .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 14px;
    color: #333;
}

.user-menu-page .header-right span {
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.user-menu-page .header-right a {
    color: #2b8fed;
    text-decoration: none;
    font-weight: bold;
}

.user-menu-page .header-right a:hover {
    text-decoration: underline;
}

.user-admin-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.user-admin-nav a,
.user-admin-logout {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    background: transparent;
    padding: 0;
}

.user-admin-nav a:hover,
.user-admin-logout:hover {
    color: #333;
    text-decoration: underline;
}

.header-right .user-admin-logout,
.user-menu-page .header-right .user-admin-logout,
.user-oplata-page .header-right .user-admin-logout,
.user-adminkautm-page .header-right .user-admin-logout {
    color: #666;
    font-size: 14px;
}

.header-right .user-admin-logout:hover,
.user-menu-page .header-right .user-admin-logout:hover,
.user-oplata-page .header-right .user-admin-logout:hover,
.user-adminkautm-page .header-right .user-admin-logout:hover {
    color: #333;
}

.user-admin-tariff {
    color: #333;
    line-height: 1.35;
    white-space: normal !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.user-menu-page .step {
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.user-menu-page .stats {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
}

.user-menu-page .stats th,
.user-menu-page .stats td {
    border: 1px solid #ddd;
    padding: 4px 6px;
    text-align: center;
}

.user-menu-page .stats th {
    background: #e8f1fd;
    font-weight: bold;
}

.user-menu-page .stats tr:nth-child(even) {
    background: #f9fbff;
}

.user-menu-page .stats .total-row {
    font-weight: bold;
    background: #dff0d8;
}

.user-menu-page .switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.user-menu-page .switch-label {
    min-width: 200px;
    font-weight: bold;
}

.user-menu-page .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.user-menu-page .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.user-menu-page .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.user-menu-page .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    transition: .4s;
    border-radius: 50%;
}

.user-menu-page input:checked + .slider {
    background-color: #2ecc71;
}

.user-menu-page input:checked + .slider:before {
    transform: translateX(26px);
}

.user-menu-page .status-msg {
    font-weight: 400;
    font-size: 13px;
    min-width: 150px;
    display: inline-block;
}

.user-menu-page .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 10px;
}

.user-menu-page .updateStatsBtn,
.user-menu-page .finishExpBtn {
    margin-top: 5px;
}

.user-menu-page .button-edit {
    background: #a3c586;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
    font-weight: bold;
}

.user-menu-page .button-edit:hover {
    background: #8fb26d;
}

.button-stat {
    background: #2b8fed !important;
    color: #fff !important;
}

.button-stat:hover {
    background: #1e6fd6 !important;
}

.user-menu-page .finish-block,
.user-menu-page .copyFinish-block,
.user-menu-page .delete-block,
.user-menu-page .copyOnly-block {
    margin-top: 10px;
}

.user-menu-page .danger-zone-title {
    font-size: 14px;
    font-weight: 700;
    color: #2b8fed;
    margin-bottom: 8px;
}

.user-menu-page .finishCheckLabel,
.user-menu-page .copyFinishCheckLabel,
.user-menu-page .deleteCheckLabel,
.user-menu-page .copyOnlyCheckLabel {
    font-size: 13px;
    color: #333;
    margin-left: 5px;
}

.user-menu-page .finishExpBtn,
.user-menu-page .copyFinishBtn,
.user-menu-page .deleteExpBtn,
.user-menu-page .copyOnlyBtn {
    background: #aaa;
    color: #fff;
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
}

.user-menu-page .finishExpBtn:disabled,
.user-menu-page .copyFinishBtn:disabled,
.user-menu-page .deleteExpBtn:disabled,
.user-menu-page .copyOnlyBtn:disabled {
    cursor: not-allowed;
    background: #aaa;
}

.user-menu-page .finishExpBtn.active,
.user-menu-page .copyFinishBtn.active,
.user-menu-page .copyOnlyBtn.active {
    background: #2b8fed;
}

.user-menu-page .deleteExpBtn.active {
    background: #e74c3c;
}

.user-menu-page .finish-status,
.user-menu-page .copyOnly-status {
    margin-left: 10px;
    font-size: 13px;
    color: #2b8fed;
}

.user-menu-page .delete-status {
    margin-left: 10px;
    font-size: 13px;
}

.user-menu-page .archived-more-wrap {
    margin-top: 14px;
    text-align: center;
}

@media (max-width: 780px) {
    .user-admin-nav {
        position: static;
        transform: none;
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
    }

    .user-menu-page .header {
        padding: 10px;
        height: auto;
        align-items: flex-start;
        gap: 10px;
    }

    .user-menu-page .header-right {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .user-menu-page .header-right span {
        max-width: 100%;
    }
}

/* ===== Стили страницы user/oplata ===== */
body.user-oplata-page {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: #f7f9fc;
    color: #333;
}

.user-oplata-page .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.user-oplata-page .header-left {
    font-weight: bold;
    color: #2b8fed;
    font-size: 18px;
}

.user-oplata-page .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #333;
}

.user-oplata-page .header-right span {
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.user-oplata-page .header-right a {
    color: #2b8fed;
    text-decoration: none;
    font-weight: bold;
}

.user-oplata-page .header-right a:hover {
    text-decoration: underline;
}

.user-oplata-page .section {
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.user-oplata-page button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.user-oplata-page .button-blue {
    background: #2b8fed;
    color: #fff;
}

.user-oplata-page .button-blue:hover {
    background: #1e6fd6;
}

.user-oplata-page .button-orange {
    background: #f39c12;
    color: #fff;
}

.user-oplata-page .button-orange:hover {
    background: #e67e22;
}

.user-oplata-page .stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
}

.user-oplata-page .stats-table th,
.user-oplata-page .stats-table td {
    border: 1px solid #ddd;
    padding: 4px 6px;
    text-align: left;
}

.user-oplata-page .stats-table th {
    background: #e8f1fd;
    font-weight: bold;
}

.user-oplata-page .oplata-package-form {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-oplata-page .oplata-package-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #d9e6fb;
    border-radius: 10px;
    background: #f8fbff;
}

.user-oplata-page .oplata-package-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
    color: #2d3f53;
}

.user-oplata-page .oplata-package-text strong {
    color: #173657;
}

.user-oplata-page .oplata-package-text span:not(:last-child)::after {
    content: "•";
    margin-left: 8px;
    color: #9aa8b7;
}

.user-oplata-page .oplata-buy-btn {
    min-width: 92px;
    background: #f39c12;
    color: #fff;
    font-weight: bold;
}

.user-oplata-page .oplata-buy-btn:hover:not(:disabled) {
    background: #e67e22;
}

.user-oplata-page .oplata-buy-btn:disabled {
    background: #d9dee5;
    color: #8d98a6;
    cursor: not-allowed;
}

@media (max-width: 780px) {
    .user-oplata-page .oplata-package-row {
        flex-direction: column;
        align-items: stretch;
    }

    .user-oplata-page .oplata-buy-btn {
        width: 100%;
    }
}

/* ===== Стили страницы user/adminkautm ===== */
body.user-adminkautm-page {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 80px;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    background: #f7f9fc;
    color: #333;
}

.user-adminkautm-page .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.user-adminkautm-page .header-left {
    font-weight: bold;
    color: #2b8fed;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-adminkautm-page .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #333;
}

.user-adminkautm-page .header-right a {
    color: #2b8fed;
    text-decoration: none;
    font-weight: bold;
}

.user-adminkautm-page .header-right a:hover {
    text-decoration: underline;
}

.user-adminkautm-page .wrap {
    max-width: 1240px;
    margin: 0;
    padding: 24px 24px 40px;
    box-sizing: border-box;
}

.user-adminkautm-page #blocksContainer {
    width: 100%;
    margin-left: 0;
}

.user-adminkautm-page #utmForm {
    max-width: none;
    width: 100%;
    margin: 0;
    text-align: left;
}

.user-adminkautm-page .settings-back-link {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #2b8fed;
    border-radius: 6px;
    color: #2b8fed;
    font-weight: 700;
    text-decoration: none;
}

.user-adminkautm-page .settings-back-link:hover {
    background: #eef6ff;
    text-decoration: underline;
}

.user-adminkautm-page h1 {
    margin-top: 0;
    font-size: 24px;
    line-height: 1.35;
}

.user-adminkautm-page .section {
    padding: 0;
    text-align: left;
}

.user-adminkautm-page .topnote {
    padding: 14px 16px;
    border: 1px solid #d9e6fb;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    margin-bottom: 16px;
    border-radius: 12px;
}

.user-adminkautm-page .err {
    padding: 10px 12px;
    border: 1px solid #f3b1b1;
    background: #fff3f3;
    margin-bottom: 12px;
    border-radius: 8px;
}

.user-adminkautm-page .ok {
    padding: 10px 12px;
    border: 1px solid #b7e2b7;
    background: #f3fff3;
    margin-bottom: 12px;
    border-radius: 8px;
}

.user-adminkautm-page .block {
    border: 1px solid #dbe7f5;
    border-radius: 12px;
    padding: 18px;
    margin: 16px 0;
    background: #fff;
    box-shadow: 0 10px 24px rgba(32, 72, 117, 0.08);
    box-sizing: border-box;
}

.user-adminkautm-page .block h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #2b8fed;
}

.user-adminkautm-page .grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(480px, 1.4fr);
    gap: 20px;
    align-items: start;
}

.user-adminkautm-page .field label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #333;
}

.user-adminkautm-page textarea {
    width: 100%;
    min-height: 132px;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid #cfd9e8;
    border-radius: 10px;
    box-sizing: border-box;
    background: #fff;
    line-height: 1.45;
}

.user-adminkautm-page .variant textarea {
    min-height: 64px;
}

.user-adminkautm-page .variants {
    border-left: 0;
    padding-left: 0;
    min-width: 0;
}

.user-adminkautm-page .variant {
    margin-bottom: 12px;
    border: 1px solid #e7eef8;
    border-radius: 10px;
    padding: 12px;
    background: #fbfdff;
}

.user-adminkautm-page .variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.user-adminkautm-page .variant .vtitle {
    font-weight: bold;
}

.user-adminkautm-page .btnrow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.user-adminkautm-page button {
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: #2b8fed;
    color: #fff;
}

.user-adminkautm-page button:hover {
    background: #1e6fd6;
}

.user-adminkautm-page button.secondary {
    background: #777;
}

.user-adminkautm-page button.secondary:hover {
    background: #666;
}

.user-adminkautm-page button.danger {
    background: #777;
}

.user-adminkautm-page button.danger:hover {
    background: #c64541;
}

.user-adminkautm-page button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.user-adminkautm-page .hint {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.user-adminkautm-page .footerbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    margin-left: 0;
}

.user-adminkautm-page .invalid {
    outline: 3px solid rgba(217,83,79,0.25);
    border-color: #d9534f !important;
}

@media (max-width: 980px) {
    .user-adminkautm-page .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .user-adminkautm-page .grid {
        grid-template-columns: 1fr;
    }

    .user-adminkautm-page .variants {
        border-top: 0;
        padding-left: 0;
        padding-top: 0;
    }
}

/* ===== Публичная шапка и страницы pages ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 60px;
    box-sizing: border-box;
}

.site-header__logo {
    flex: 0 0 auto;
}

.site-header__logo img {
    height: 40px;
}

.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-weight: bold;
    flex: 1 1 auto;
}

.site-header__nav a,
.site-header__dropdown-toggle {
    text-decoration: none;
    color: #666;
    background: transparent;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    position: relative;
    transition: color 0.2s ease;
    cursor: pointer;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.site-header__nav a::after {
    display: none;
    content: none;
}

header.site-header nav a::after,
header.site-header nav a:hover::after {
    display: none;
    content: none;
    width: 0;
}

.site-header__nav a:hover,
.site-header__dropdown-toggle:hover {
    color: #333;
    background: transparent;
    background-color: transparent;
    text-decoration: underline;
}

header.site-header .site-header__dropdown-toggle,
header.site-header .site-header__dropdown-toggle:hover,
header.site-header .site-header__dropdown-toggle:focus {
    background: transparent;
    background-color: transparent;
    box-shadow: none;
}

.site-header__nav a:focus,
.site-header__dropdown-toggle:focus {
    outline: none;
}

.site-header__nav a:focus-visible,
.site-header__dropdown-toggle:focus-visible {
    color: #333;
    text-decoration: underline;
}

.site-header__dropdown {
    position: relative;
}

.site-header__dropdown-toggle::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.site-header__dropdown.open .site-header__dropdown-toggle::after {
    transform: rotate(-135deg) translateY(-1px);
}

.site-header__dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 290px;
    background: rgba(255,255,255,0.98);
    border: 1px solid #dde8f6;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(16, 41, 68, 0.14);
    padding: 10px;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    backdrop-filter: blur(10px);
    z-index: 1001;
}

.site-header__dropdown.open .site-header__dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.site-header__dropdown-menu a {
    display: block;
    padding: 12px 14px;
    color: #666;
    border-radius: 6px;
    font-weight: 600;
    background: transparent;
}

.site-header__dropdown-menu a:hover {
    background: transparent;
    color: #333;
    text-decoration: underline;
    box-shadow: none;
    transform: none;
}

.site-header__auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.site-header__auth a {
    display: inline-block;
    padding: 8px 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    line-height: 1;
}

.site-header__auth-register {
    background: #166534;
}

.site-header__auth-register:hover {
    background: #14532d;
}

.site-header__auth-login {
    background: #2b8fed;
}

.site-header__auth-login:hover {
    background: #1e6fd6;
}

.site-header__burger {
    display: none;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    color: #2b8fed;
    font-weight: bold;
    padding: 0;
}

.site-header__burger-lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
}

.site-header__burger-lines span {
    display: block;
    height: 3px;
    background: #2b8fed;
    border-radius: 2px;
}

.site-header__burger-text {
    white-space: nowrap;
}

body.landing-page {
    padding-top: 60px;
    max-width: none;
    width: 100%;
    margin: 0;
    overflow-x: hidden;
}

.landing-page main {
    max-width: 1200px;
    margin: 0 auto;
}

.landing-section {
    padding: 60px 20px;
}

.landing-hero {
    background: linear-gradient(180deg, #eef7ff 0%, #f8fbff 100%);
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.landing-hero h1 {
    max-width: 900px;
    font-size: 38px;
    line-height: 1.15;
}

.landing-hero p {
    max-width: 760px;
    font-size: 22px;
    color: #45556a;
}

.landing-lead-list,
.landing-steps-list,
.landing-service-list {
    max-width: 860px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.7;
    font-size: 18px;
}

.landing-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.landing-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 22px;
    text-align: left;
}

.landing-card h3 {
    margin-top: 0;
    color: #2b8fed;
}

.btn-green {
    background: #2faa50;
    color: #fff;
}

.btn-green:hover {
    background: #22893f;
}

.btn-yellow {
    background: #f4bf2a;
    color: #3d3200;
}

.btn-yellow:hover {
    background: #e2ab12;
}

.landing-note {
    max-width: 860px;
    margin: 18px auto 0;
    color: #5a6777;
}

.landing-contact {
    max-width: 860px;
    margin: 0 auto;
}

.landing-consent {
    margin-top: 14px;
    font-size: 14px;
    color: #5a6777;
    text-align: center;
}

.landing-consent a {
    color: #2b8fed;
}

.doc-page,
.article-page,
.help-page {
    padding-top: 20px;
    max-width: 980px;
    margin: 0 auto;
    background: #f7f8fa;
    color: #222;
}

.doc-content,
.article-content,
.help-content {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
    margin: 30px 20px;
}

.doc-content h1,
.doc-content h2,
.article-content h1,
.article-content h2,
.help-content h1,
.help-content h2 {
    color: #1a73e8;
}

.doc-toolbar,
.article-toolbar,
.help-toolbar {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 20px 10px;
}

.doc-toolbar a,
.article-toolbar a,
.help-toolbar a {
    text-decoration: none;
}

.legal-consent-note {
    margin-top: 12px;
    font-size: 13px;
    color: #5a6777;
}

@media (max-width: 900px) {
    .site-header__burger {
        display: inline-flex;
    }

    .site-header__nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .site-header__nav.active {
        max-height: 700px;
    }

    .site-header__nav > a,
    .site-header__dropdown-toggle {
        display: block;
        padding: 14px 20px;
        border-top: 1px solid #f0f0f0;
        text-align: left;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
        transform: none;
        text-decoration: none;
    }

    .site-header__auth {
        gap: 8px;
    }

    .site-header__auth a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .site-header__dropdown {
        width: 100%;
    }

    .site-header__dropdown-menu {
        position: static;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 10px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        backdrop-filter: none;
        display: none;
    }

    .site-header__dropdown.open .site-header__dropdown-menu {
        display: block;
    }

    .site-header__dropdown-menu a {
        padding-left: 34px;
        border-radius: 0;
    }

    .landing-hero h1 {
        font-size: 30px;
    }

    .landing-hero p {
        font-size: 18px;
    }
}

.landing-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

.landing-actions a,
.landing-card a,
.landing-card button,
.doc-toolbar a,
.article-toolbar a,
.help-toolbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.landing-card button:hover,
.landing-card a:hover,
.landing-actions a:hover,
.doc-toolbar a:hover,
.article-toolbar a:hover,
.help-toolbar a:hover {
    transform: translateY(-1px);
}

.landing-section h2 {
    text-align: center;
    margin-bottom: 18px;
}

.landing-footer {
    text-align: center;
    padding: 24px 20px 40px;
    color: #5a6777;
}

.landing-footer a {
    color: #2b8fed;
    text-decoration: none;
}

.landing-footer-owner {
    margin: 0 0 8px;
    color: #5a6777;
    font-size: 14px;
}

.landing-footer span {
    margin: 0 8px;
}

.landing-card-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    max-width: 980px;
    margin: 20px auto 0;
}

.landing-card--price {
    padding: 16px 18px;
    border: 1px solid #e7eef8;
    box-shadow: 0 6px 18px rgba(21, 58, 95, 0.06);
}

.landing-card--price h3 {
    margin-bottom: 10px;
}

.landing-card--demo {
    background: linear-gradient(180deg, #f7fff8 0%, #ffffff 100%);
}

.landing-card--services {
    max-width: 860px;
    margin: 0 auto;
}

.landing-price-meta,
.landing-price-cost,
.landing-price-value {
    margin: 0 0 10px;
}

.landing-price-value {
    font-size: 18px;
    color: #1f2d3d;
}

.landing-price-value strong {
    font-size: 22px;
}

.landing-price-cost {
    font-size: 20px;
    color: #0f2238;
}

.btn-outline {
    background: #fff;
    color: #2b8fed;
    border: 1px solid #bfd7fb;
}

.btn-outline:hover {
    background: #f4f8ff;
}

.btn-blue {
    background: #2b8fed;
    color: #fff;
}

.btn-blue:hover {
    background: #1e6fd6;
}

.btn-compact {
    min-height: 38px !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    font-size: 14px;
}

.landing-card button.is-disabled,
.landing-card button.is-disabled:hover {
    background: #f1f3f6;
    color: #97a3b2;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.landing-contact-card {
    max-width: 620px;
    margin: 24px auto 0;
    background: #fff;
    border: 1px solid #e7eef8;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(21, 58, 95, 0.06);
    padding: 22px;
}

.landing-contact-form {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-contact-form label {
    font-size: 14px;
    font-weight: 700;
    color: #304254;
    margin: 0;
}

.landing-contact-form input,
.landing-contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #d5dfec;
    border-radius: 10px;
    background: #fbfdff;
    font: inherit;
}

.landing-contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.landing-contact-form button {
    align-self: flex-start;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .landing-card-grid--compact {
        grid-template-columns: 1fr;
    }

    .landing-contact-card {
        padding: 18px;
    }

    .landing-contact-form button {
        align-self: stretch;
    }
}

.landing-audience .landing-card--audience {
    max-width: 1040px;
    margin: 0 auto;
    border: 1px solid #e3edf8;
    box-shadow: 0 12px 30px rgba(21, 58, 95, 0.08);
}

.landing-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.landing-audience-grid div,
.landing-steps-cards li {
    background: #f8fbff;
    border: 1px solid #e3edf8;
    border-radius: 8px;
    padding: 18px;
}

.landing-audience-grid h3 {
    margin: 0 0 8px;
    color: #17456f;
}

.landing-audience-grid p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: #536174;
}

.landing-audience-intro {
    text-align: center;
}

.landing-steps-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    max-width: 1120px;
    padding: 0;
    list-style: none;
}

.landing-steps-cards li {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    min-height: 190px;
    box-sizing: border-box;
}

.landing-steps-cards li > span {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #166534;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.landing-steps-cards strong {
    display: block;
    color: #173657;
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.landing-steps-cards p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #536174;
    overflow-wrap: break-word;
}

.landing-card-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    max-width: 1120px;
}

.landing-card--price {
    border-radius: 8px;
}

.landing-card--price h3 {
    color: #17456f;
}

.landing-card--services {
    max-width: 920px;
    border-radius: 8px;
    border: 1px solid #e3edf8;
}

.landing-card--explain {
    max-width: 920px;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid #e3edf8;
}

.landing-card--explain h2 {
    margin-top: 0;
}

.landing-card--explain p {
    margin: 0 0 14px;
    color: #536174;
    font-size: 17px;
    line-height: 1.65;
}

.landing-card--explain p:last-child {
    margin-bottom: 0;
}

.landing-services-table {
    width: 100%;
    margin: 24px 0 18px;
    border-collapse: collapse;
    color: #34465c;
    font-size: 16px;
}

.landing-services-table tr {
    border-bottom: 1px solid #dce9f7;
}

.landing-services-table tr:first-child {
    border-top: 1px solid #dce9f7;
}

.landing-services-table td {
    padding: 14px 0;
    vertical-align: top;
    line-height: 1.4;
}

.landing-services-table td:first-child {
    padding-right: 24px;
    font-weight: 700;
}

.landing-services-table td:last-child {
    width: 140px;
    color: #0d5b35;
    font-size: 20px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.landing-services-payment-note {
    margin: 28px 0 0;
    text-align: left;
}

.landing-services-intro {
    text-align: center;
}

.landing-contact {
    max-width: 760px;
}

.landing-contact-card {
    max-width: 440px;
    border-radius: 8px;
}

.landing-contact-note {
    text-align: center;
    line-height: 1.8;
}

.landing-contact-form input,
.landing-contact-form textarea {
    border-radius: 8px;
}

.landing-contact-form textarea {
    min-height: 112px;
}

.landing-contact-form button {
    align-self: stretch;
}

.landing-footer {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    background: #e6f2ff;
    padding: 24px 20px;
    box-sizing: border-box;
}

@media (max-width: 980px) {
    .landing-audience-grid,
    .landing-steps-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .landing-services-table,
    .landing-services-table tbody,
    .landing-services-table tr,
    .landing-services-table td {
        display: block;
        width: 100%;
    }

    .landing-services-table td {
        padding: 12px 0 0;
    }

    .landing-services-table td:first-child {
        padding-right: 0;
    }

    .landing-services-table td:last-child {
        width: 100%;
        padding: 4px 0 12px;
        text-align: left;
    }
}

.doc-content ul,
.doc-content ol,
.article-content ul,
.article-content ol,
.help-content ul,
.help-content ol {
    line-height: 1.75;
    padding-left: 22px;
}

.doc-content p,
.article-content p,
.help-content p {
    line-height: 1.75;
}

.legal-offer-content {
    max-width: 860px;
    color: #222;
    font-size: 15px;
    line-height: 1.65;
}

.legal-offer-content h1 {
    color: #222;
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 24px;
    font-weight: 700;
}

.legal-offer-content h2,
.legal-offer-content h3 {
    color: #222;
    font-size: 15px;
    line-height: 1.5;
    margin: 24px 0 8px;
    font-weight: 700;
}

.legal-offer-content h2 {
    display: block;
}

.legal-offer-content p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.65;
}

.legal-offer-content ul {
    list-style: none;
    margin: 4px 0 14px 36px;
    padding-left: 0;
    font-size: 15px;
    line-height: 1.6;
}

.legal-offer-content li {
    margin: 0 0 7px;
    font-size: 15px;
    line-height: 1.6;
}

.legal-offer-content .legal-numbered-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.legal-offer-content .legal-subclause-title {
    margin-top: 12px;
    margin-bottom: 6px;
}

.legal-offer-content .legal-point-number {
    flex: 0 0 auto;
    min-width: 36px;
    font-weight: 400;
    color: #222;
}

.legal-offer-content .legal-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.legal-offer-content .legal-bullet-mark {
    flex: 0 0 auto;
    color: #222;
}

.legal-offer-content .legal-point-text {
    flex: 1 1 auto;
    min-width: 0;
}

.legal-offer-content strong {
    overflow-wrap: normal;
    word-break: normal;
}

.legal-offer-content hr {
    border: 0;
    border-top: 1px solid #e1e5ea;
    margin: 20px 0 18px;
}

.legal-offer-content a {
    color: #222;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-offer-toolbar {
    margin: 10px 20px 36px;
}

.legal-offer-toolbar a {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 5px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
}

.legal-offer-toolbar .btn-yellow {
    color: #9a6a00;
    border: 1px solid #d5a32a;
}

.legal-offer-toolbar .btn-green {
    color: #0b6b3a;
    border: 1px solid #16844b;
}

.legal-offer-toolbar .btn-yellow:hover,
.legal-offer-toolbar .btn-green:hover {
    background: #fff;
}

.admin-manager-page,
.admin-otvet-page,
.admin-login-page {
    font-family: Arial, sans-serif;
    background: #f2f2f2;
}

.admin-manager-page table,
.admin-otvet-page table {
    border-collapse: collapse;
    width: 98%;
    margin: 20px auto;
    background: white;
    font-size: 13px;
}

.admin-manager-page th,
.admin-manager-page td,
.admin-otvet-page th,
.admin-otvet-page td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
}

.admin-manager-page th,
.admin-otvet-page th {
    background: #007bff;
    color: white;
}

.admin-manager-page tr:nth-child(even),
.admin-otvet-page tr:nth-child(even) {
    background: #f9f9f9;
}

.admin-manager-page tr:hover {
    background: #eef;
}

.admin-manager-page tr.admin-expired-tariff {
    background: #fff1f1;
}

.admin-manager-page tr.admin-expired-tariff:nth-child(even) {
    background: #ffe7e7;
}

.admin-manager-page tr.admin-expired-tariff:hover {
    background: #ffdede;
}

.admin-top-buttons {
    text-align: right;
    margin: 20px;
}

.admin-top-buttons .users-btn,
.admin-top-buttons .logout {
    color: #555;
    font-weight: bold;
    text-decoration: underline;
    margin: 0 15px;
    transition: color 0.2s;
}

.admin-top-buttons .users-btn:hover,
.admin-top-buttons .logout:hover {
    color: #777;
}

.admin-manager-page h2,
.admin-otvet-page h2 {
    text-align: center;
    margin-top: 30px;
}

.admin-manager-page .sort-arrow {
    color: #fff;
    font-size: 10px;
    margin-left: 3px;
}

.admin-manager-page .security-section {
    width: 98%;
    margin: 20px auto;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
}

.admin-manager-page .security-section h3 {
    margin: 0 0 14px;
    color: #333;
}

.admin-manager-page .security-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-manager-page .security-item {
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 12px;
    background: #fafafa;
}

.admin-manager-page .security-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.admin-manager-page .security-details summary {
    cursor: pointer;
    color: #007bff;
}

.admin-manager-page .security-details pre {
    background: #f2f2f2;
    padding: 10px;
    overflow: auto;
    font-size: 12px;
    white-space: pre-wrap;
}

.admin-manager-page .security-more {
    margin-top: 14px;
    padding: 8px 14px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.admin-manager-page .security-more:disabled {
    background: #a7a7a7;
    cursor: not-allowed;
}

.admin-manager-page .security-empty {
    color: #666;
}

.admin-manager-page .security-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-manager-page .security-filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
}

.admin-manager-page .security-filter label {
    font-size: 12px;
    color: #555;
    font-weight: bold;
}

.admin-manager-page .security-filter select {
    padding: 7px 9px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
}

.admin-manager-page .service-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 760px;
}

.admin-manager-page .service-form label {
    font-size: 13px;
    color: #555;
    font-weight: bold;
}

.admin-manager-page .service-form input,
.admin-manager-page .service-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font: inherit;
}

.admin-manager-page .service-form textarea {
    min-height: 140px;
    resize: vertical;
}

.admin-manager-page .service-result {
    margin-top: 12px;
    font-weight: bold;
}

.admin-manager-page .service-result.success {
    color: #1f7a36;
}

.admin-manager-page .service-result.error {
    color: #b64018;
}

.admin-user-page .admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.admin-user-page .admin-summary-card {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fafafa;
    padding: 14px;
}

.admin-user-page .admin-summary-card p {
    margin: 0 0 8px;
}

.admin-user-page .admin-tariff-text {
    margin-bottom: 12px;
    line-height: 1.5;
}

.admin-user-page .admin-package-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-user-page .admin-package-form select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font: inherit;
}

.admin-user-page .admin-projects-table-wrap {
    overflow-x: auto;
}

.admin-user-page .admin-projects-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-user-page .admin-projects-table th,
.admin-user-page .admin-projects-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.admin-user-page .admin-projects-table th {
    background: #007bff;
    color: #fff;
}

.admin-user-page .step a,
.admin-user-page .security-item a {
    color: #0059b2;
}

.admin-otvet-page {
    padding: 20px;
}

.admin-otvet-page table {
    width: 100%;
    margin-bottom: 20px;
}

.admin-otvet-page textarea,
.admin-otvet-page input[type=text],
.admin-otvet-page input[type=datetime-local],
.admin-otvet-page select {
    width: 100%;
    box-sizing: border-box;
}

.admin-otvet-page button {
    padding: 6px 12px;
    margin: 2px;
}

.admin-otvet-page .toggle-button {
    margin-bottom: 10px;
    cursor: pointer;
}

.admin-otvet-page .readonly {
    background: #f9f9f9;
    color: #333;
}

.admin-login-page .login-box {
    width: 320px;
    margin: 80px auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px #aaa;
}

.admin-login-page input[type=text],
.admin-login-page input[type=password] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box;
}

.admin-login-page input[type=submit] {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.admin-login-page .error {
    color: red;
    text-align: center;
    margin-bottom: 8px;
}

.admin-login-page .hint {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.auth-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    width: 100vw;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    padding-top: 30px;
    box-sizing: border-box;
}

.auth-box {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 40px 50px;
    box-sizing: border-box;
    text-align: center;
}

.auth-box form {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.auth-box h1,
.auth-box h2,
.auth-box h3 {
    text-align: center;
    color: #333;
    margin-top: 0;
    margin-bottom: 25px;
    line-height: 1.35;
}

.auth-box h2 {
    font-size: 24px;
}

.auth-box .login-title {
    font-size: 20px;
}

.auth-box label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    margin: 10px 0;
    font-size: 16px;
}

.auth-box button {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: #2b8fed;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
}

.auth-box button:hover {
    background: #1e6fd6;
}

.auth-box .auth-submit {
    background: #166534;
}

.auth-box .auth-submit:hover {
    background: #14532d;
}

.auth-box .error {
    color: #c62828;
    margin-top: 10px;
    text-align: center;
}

.auth-box .success {
    color: #1f7a36;
    margin-top: 10px;
    text-align: center;
}

.auth-box .links {
    margin-top: 16px;
    text-align: center;
}

.auth-box .links a {
    color: #2b8fed;
    text-decoration: none;
}

.auth-box .link-button {
    display: inline;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #2b8fed;
    font: inherit;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
}

.auth-box .link-button:hover {
    background: transparent;
    color: #1e6fd6;
    text-decoration: underline;
}

.auth-box ul {
    padding-left: 0;
    list-style: none;
}

.auth-box li {
    margin: 6px 0;
}

.auth-box a.logout {
    margin-left: 10px;
    color: #c62828;
}

.auth-box .current {
    font-weight: bold;
}

@media (max-width: 520px) {
    .auth-box {
        max-width: 100%;
        padding: 32px 24px;
    }
}

body.user-neuro-page {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f7fb;
    color: #333;
}

.neuro-page-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px;
}

.neuro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.neuro-action-link {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.neuro-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.neuro-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.neuro-form label span {
    text-align: left;
}

.neuro-form textarea {
    width: 100%;
    min-height: 110px;
    border: 1px solid #d0d7e2;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

.neuro-message {
    min-height: 24px;
    margin-top: 12px;
    font-weight: bold;
}

.neuro-message-success {
    color: #2c7a2c;
}

.neuro-message-error,
.neuro-disabled {
    color: #b30000;
}

.neuro-result-card pre,
.neuro-history-card pre {
    background: #f7f9fc;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    padding: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.user-neuro-page .button-blue,
.user-neuro-page .button-orange {
    display: inline-block;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.user-neuro-page .button-blue {
    background: #2b8fed;
}

.user-neuro-page .button-blue:hover {
    background: #1e6fd6;
}

.user-neuro-page .button-orange {
    background: #f39c12;
}

.user-neuro-page .button-orange:hover {
    background: #d98200;
}

.user-neuro-page button:disabled,
.user-neuro-page .button-blue[disabled],
.user-neuro-page .button-orange[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}
.inline-action-form {
    display: inline-block;
    margin: 0;
}

.users-btn-button {
    border: none;
    cursor: pointer;
    font: inherit;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: #1a73e8;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}
