/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    transition: background-color 0.3s, color 0.3s;
}

/* Темная тема */
body.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-theme .site-header {
    background-color: #2d2d2d;
    border-bottom: 1px solid #444;
}

body.dark-theme .main-navigation {
    background-color: #2d2d2d;
    border-bottom: 1px solid #444;
}

body.dark-theme .nav-link {
    color: #e0e0e0;
}

body.dark-theme .nav-link:hover {
    color: #93C4E1;
}

body.dark-theme .search-input {
    background-color: #3d3d3d;
    color: #e0e0e0;
    border: 1px solid #555;
}

body.dark-theme .search-button {
    background-color: #444;
    color: #e0e0e0;
}

body.dark-theme .footer-container {
    background-color: #2d2d2d;
    border-top: 1px solid #444;
    color: #e0e0e0;
}

/* Ссылки */
a, a:visited {
    text-decoration: underline;
    color: #666666;
}

a:hover, a:active {
    text-decoration: underline;
    color: #93C4E1;
}

a.menu {
    color: #006BAA;
    text-decoration: underline;
}

a.menu:hover {
    color: #FFA8A7;
    text-decoration: underline;
}

a.menu2 {
    color: #666666;
    text-decoration: underline;
}

a.menu2:hover {
    color: #93C4E1;
    text-decoration: underline;
}

/* Шапка сайта */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo-container {
    flex: 0 0 130px;
    margin-right: 20px;
}

.logo-placeholder {
    width: 130px;
    height: 110px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.logo-text {
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
}

.header-info {
    flex: 1;
}

.site-title {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.datetime {
    text-align: right;
}

.date-text {
    color: #666;
    font-size: 12px;
    font-weight: bold;
}

/* Навигация */
.main-navigation {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-link {
    display: block;
    padding: 15px 15px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #93C4E1;
    text-decoration: underline;
}

.contact-link {
    text-decoration: underline;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 18px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Поиск */
.search-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-label {
    font-size: 14px;
    color: #4F4F4F;
    font-weight: bold;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    flex: 1;
}

.search-button {
    padding: 8px 15px;
    background-color: #ccc;
    color: #000;
    border: 1px solid #808080;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #bbb;
}

/* Основной контент */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

/* Футер */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    margin-top: 40px;
    color: #333;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    min-width: 200px;
    padding: 10px;
}

.footer-logo-placeholder {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.footer-logo-text {
    color: white;
    font-weight: bold;
    text-align: center;
}

.footer-counters h3 {
    color: #333;
    margin-bottom: 10px;
}

.footer-social {
    text-align: center;
}

.footer-text {
    font-size: 12px;
    margin-bottom: 10px;
    color: #666;
}

.footer-logo-placeholder-right {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Формы */
.maxiinput {
    width: 300px;
    color: #000000;
    border: 1px solid #808080;
    padding: 8px;
    border-radius: 4px;
}

.maininput {
    width: 99%;
    color: #000000;
    border: 1px solid #808080;
    padding: 6px;
    border-radius: 4px;
}

.miniinput {
    width: 50px;
    color: #000000;
    border: 1px solid #808080;
    padding: 4px;
    border-radius: 4px;
}

.simpleok {
    width: 50px;
    height: 18px;
    background-color: #cccccc;
    font-size: 10px;
    color: #000000;
    font-weight: bold;
    border: 1px solid #808080;
    border-radius: 3px;
    cursor: pointer;
}

.longok {
    width: 130px;
    /*height: 20px;*/
    background-color: #cccccc;
    font-size: 10px;
    color: #000000;
    border: 1px solid #808080;
    border-radius: 3px;
    cursor: pointer;
}

.toptable {
    font-size: 9px;
    background: #B3BEC3;
}

.small {
    font-size: 12px;
}

td {
    font-size: 12px;
}

td.menu {
    font-size: 12px;
    font-weight: bold;
}

td.main {
    font-size: 12px;
    font-weight: bold;
}

table.bigmaintbl {
}

table.bakfon {
    background: #AAAAAA;
}

tr.vip {
    background: #B8D8EB;
}

tr.row1 {
    background: #FFFFFF;
}

tr.row2 {
    background: #EEEEEE;
}

.pgbutt {
    font-family: Verdana;
    font-size: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.pgbutt .sel {
    color: #000000;
    border: 1px solid #AAAAAA;
    background: #E5E5E5;
    padding: 0px 2px 0px 2px;
}

.pgbutt a {
    color: #AAAAAA;
    border: 1px solid #AAAAAA;
    width: 10px;
    padding: 0px 2px 0px 2px;
    background: #ffffff;
    text-decoration: none;
}

.pgbutt a:hover {
    color: #AAAAAA;
    border: 1px solid #AAAAAA;
    background: #E5E5E5;
}

.pgbutt a:visited {
    color: #AAAAAA;
    border: 1px solid #AAAAAA;
    text-decoration: none;
}

/* Дополнительные стили для контента */
.content-spacer {
    height: 40px;
}

.content-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 20px 0;
}

.message-container {
    margin: 20px 0;
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .datetime {
        text-align: center;
        margin-top: 10px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
    }
    
    .nav-menu.is-active {
        left: 0;
    }
    
    .nav-link {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .theme-toggle {
        margin-left: auto;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    body.dark-theme .nav-menu {
        background-color: #2d2d2d;
    }
    
    body.dark-theme .nav-link {
        border-bottom: 1px solid #444;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Исправление для мобильного меню */
.menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

    .responsive-table {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        background: transparent;
    }
    .row {
        display: flex;
        flex-wrap: wrap;
    }
    .cell {
        flex: 1;
        /*border: 1px solid #ddd;*/
        padding: 8px;
        box-sizing: border-box;
        background: #fff;
    }
    /* Левая и правая колонки уже, центральная шире */
    .cell.first-column, .cell:last-child {
        flex: 1; /* 1 часть */
    }
    .cell:not(.first-column):not(:last-child) {
        flex: 6; /* 6 частей = широкая центральная */
    }
    /* Сетка рубрик на главной */
    .rubrics-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin: 20px 0;
    }
    .rubric-card {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        background: #fff;
    }
    .rubric-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }
    .subrubrics {
        list-style: none;
        margin: 0;
        padding-left: 20px;
    }
    .subrubrics li {
        margin: 5px 0;
    }
    @media (max-width: 600px) {
        .row {
            flex-direction: column;
        }
        .cell {
            width: 100%;
        }
        .rubrics-grid {
            grid-template-columns: 1fr !important;
        }
    }
    
/* Кнопка темы внутри мобильного меню */
.mobile-theme-toggle {
    display: none;
}
.theme-toggle-mobile {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 15px;
    width: 100%;
    text-align: center;
    color: #666;
}
body.dark-theme .theme-toggle-mobile {
    color: #e0e0e0;
}
@media screen and (max-width: 768px) {
    .theme-toggle {
        display: none;
    }
    .mobile-theme-toggle {
        display: block;
        border-top: 1px solid #eee;
    }
    .theme-toggle-mobile {
        display: block;
    }
    body.dark-theme .mobile-theme-toggle {
        border-top-color: #444;
    }
}

        .container {
            max-width: 1100px;
            margin: 0 auto;
            background: #fffef7;
            border-radius: 32px;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            padding: 2rem 2rem 2.5rem;
        }
        h1 {
            font-size: 1.9rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #2e4a2c;
            border-left: 6px solid #d99e2e;
            padding-left: 1.2rem;
        }
        .subhead {
            font-size: 1rem;
            color: #6c5a3b;
            margin-bottom: 2rem;
            margin-top: 0.5rem;
            padding-left: 1.8rem;
            border-bottom: 1px dashed #e2d8c6;
            padding-bottom: 0.8rem;
        }
        .market-intro {
            background: #fef6e8;
            padding: 1.3rem 1.8rem;
            border-radius: 28px;
            margin-bottom: 2rem;
            font-size: 1.05rem;
            border: 1px solid #f0e2ce;
        }
        h2 {
            font-size: 1.5rem;
            font-weight: 500;
            margin: 1.6rem 0 0.8rem 0;
            color: #3b5c2e;
            padding-bottom: 0.25rem;
            border-bottom: 2px solid #ebdbc0;
            display: inline-block;
        }
        h3 {
            font-size: 1.25rem;
            font-weight: 500;
            margin: 1.2rem 0 0.5rem 0;
            color: #8b6946;
        }
        p {
            margin-bottom: 1rem;
            font-size: 1rem;
        }
        .rule-list {
            list-style: none;
            margin: 1rem 0 1.2rem 0;
        }
        .rule-list li {
            margin-bottom: 0.55rem;
            padding-left: 1.8rem;
            position: relative;
        }
        .rule-list li::before {
            content: "•";
            color: #d99e2e;
            font-weight: bold;
            font-size: 1.2rem;
            position: absolute;
            left: 0.3rem;
            top: -0.1rem;
        }
        .allowed-list {
            list-style: none;
            margin: 1rem 0 1.2rem 0;
        }
        .allowed-list li {
            margin-bottom: 0.55rem;
            padding-left: 1.8rem;
            position: relative;
        }
        .allowed-list li::before {
            content: "✓";
            color: #2e7d32;
            font-weight: bold;
            position: absolute;
            left: 0;
        }
        .forbidden-list {
            list-style: none;
            margin: 1rem 0 1.2rem 0;
        }
        .forbidden-list li {
            margin-bottom: 0.55rem;
            padding-left: 1.8rem;
            position: relative;
        }
        .forbidden-list li::before {
            content: "✗";
            color: #bc4e2c;
            font-weight: bold;
            position: absolute;
            left: 0;
        }
        .note-box {
            background: #faf7f0;
            border-left: 4px solid #d99e2e;
            padding: 1rem 1.6rem;
            margin: 1.5rem 0;
            font-size: 0.95rem;
            border-radius: 20px;
        }
        .footer-note {
            margin-top: 2rem;
            font-size: 0.85rem;
            color: #7a6b54;
            border-top: 1px solid #ece1cf;
            padding-top: 1.5rem;
            text-align: left;
        }
        




    .responsive-table {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        background: transparent;
    }
    .row {
        display: flex;
        flex-wrap: wrap;
    }
    .cell {
        flex: 1 0 0%;
        /*border: 1px solid #ddd;*/
        padding: 8px;
        box-sizing: border-box;
        background: #fff;
    }
    .first-column {
        /*font-weight: bold;*/
        /*background-color: #e0e0e0;*/
    }
    .rubric-item {
        margin: 5px 0;
        line-height: 1.4;
    }
    .rubric-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
    }
    .subrubrics {
        padding-left: 20px;
    }
    .item-card {
        border: 1px solid #e0e0e0;
        margin-bottom: 10px;
        padding: 10px;
        background: #fff;
    }
    .item-card.vip {
        background: #fff8e7;
        border-left: 4px solid gold;
    }
    .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        margin: 20px 0;
    }
    @media (max-width: 600px) {
        .row {
            flex-direction: column;
        }
        .cell {
            width: 100%;
        }
        select, input, button, textarea {
            width: 100%;
        }
    }
    
    /* Адаптивные стили для add.php */
    .add-page {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        font-family: Verdana, sans-serif;
        background: #f8f9fa;
    }
    .add-container {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: 25px;
        margin: 20px 0;
    }
    .form-card {
        width: 100%;
    }
    .form-title {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 20px;
        text-align: center;
        color: #333;
    }
    .add-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .form-field {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .form-field label {
        font-weight: bold;
        color: #444;
    }
    .required {
        color: #e74c3c;
    }
    input, select, textarea {
        padding: 5px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 14px;
        font-family: inherit;
        transition: 0.2s;
    }
    input:focus, select:focus, textarea:focus {
        border-color: #4CAF50;
        outline: none;
        box-shadow: 0 0 0 2px rgba(76,175,80,0.2);
    }
    .price-group {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    .price-group input {
        flex: 1;
        min-width: 120px;
    }
    .text-toolbar {
        display: flex;
        gap: 10px;
        margin-bottom: 8px;
    }
    .btn-format {
        background: #f0f0f0;
        border: 1px solid #ccc;
        padding: 5px 12px;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
        font-size: 14px;
        transition: 0.2s;
    }
    .btn-format:hover {
        background: #e0e0e0;
    }
    textarea {
        width: 100%;
        resize: vertical;
    }
    .new-city {
        margin-top: 8px;
    }
    .new-city input {
        width: auto;
        margin-left: 10px;
    }
    .static-text {
        background: #f5f5f5;
        padding: 10px;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
    }
    .checkbox-field {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .file-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .file-list input[type="file"] {
        padding: 5px;
    }
    .btn-primary {
        background: #4CAF50;
        color: white;
        border: none;
        padding: 12px 24px;
        font-size: 16px;
        border-radius: 6px;
        cursor: pointer;
        transition: 0.2s;
        width: auto;
        align-self: center;
    }
    .btn-primary:hover {
        background: #45a049;
        transform: translateY(-1px);
    }
    .antispam-block {
        background: #f9f9f9;
        padding: 15px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
    }
    .antispam-codes {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 10px 0;
    }
    .antispam-digit {
        padding: 5px;
        border: 1px solid #aaa;
        border-radius: 4px;
    }
    .antispam-input input {
        width: 100%;
    }
    .antispam-question {
        margin-top: 10px;
    }
    .error-box, .success-box {
        text-align: center;
        padding: 40px;
        background: #fff;
        border-radius: 12px;
        margin: 20px;
    }
    .error-box {
        color: #e74c3c;
        border-left: 5px solid #e74c3c;
    }
    .success-box {
        color: #27ae60;
        border-left: 5px solid #27ae60;
    }
    @media (max-width: 600px) {
        .add-container {
            padding: 15px;
        }
        .form-title {
            font-size: 20px;
        }
        input, select, textarea, .btn-primary {
            width: 100%;
        }
        .price-group {
            flex-direction: column;
            align-items: stretch;
        }
        .checkbox-field {
            flex-direction: column;
            align-items: flex-start;
        }
        .btn-primary {
            align-self: stretch;
        }
        .antispam-codes {
            justify-content: center;
        }
        .file-list div {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .file-list input {
            width: 100%;
        }
    }

    /* подсказка / декор */
    .disclaimer {
      font-size: 0.8rem;
      color: #5b6e8c;
      border-left: 3px solid #6991e3;
      padding-left: 0.75rem;
      margin-bottom: 2rem;
      background: #f8faff;
      border-radius: 12px;
      padding: 0.65rem 1rem;
      background: #f1f5fe;
    }

    /* Стильный чекбокс (кастомный) */
    .checkbox-group {
      margin: 1.75rem 0 2rem 0;
    }

    .checkbox-label {
      display: flex;
      align-items: center;
      cursor: pointer;
      font-size: 1.05rem;
      font-weight: 500;
      color: #1f2a3e;
      transition: all 0.2s;
      user-select: none;
      position: relative;
      gap: 0.75rem;
    }

    /* Скрываем нативный инпут, но оставляем доступным */
    .checkbox-label input {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
      margin: 0;
    }

    /* Кастомный квадрат */
    .custom-checkmark {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 26px;
      background-color: white;
      border: 2px solid #cbd5e1;
      border-radius: 8px;
      transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      position: relative;
      flex-shrink: 0;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    }

    /* Эффект при фокусе (доступность) */
    .checkbox-label input:focus-visible + .custom-checkmark {
      outline: 2px solid #3b82f6;
      outline-offset: 3px;
      border-color: #3b82f6;
      box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
    }

    /* Галочка (спрятана по умолчанию) */
    .custom-checkmark::after {
      content: "";
      position: absolute;
      width: 10px;
      height: 17px;
      border: solid white;
      border-width: 0 2.5px 2.5px 0;
      transform: rotate(45deg) scale(0.9);
      top: 3px;
      left: 7px;
      opacity: 0;
      transition: opacity 0.12s ease, transform 0.1s ease;
    }

    /* Состояние ЧЕКНУТО :checked */
    .checkbox-label input:checked + .custom-checkmark {
      background-color: #2266dc;
      border-color: #2266dc;
      box-shadow: 0 4px 9px rgba(34, 102, 220, 0.25);
    }

    .checkbox-label input:checked + .custom-checkmark::after {
      opacity: 1;
      transform: rotate(45deg) scale(1);
    }

    /* Ховер эффект на чекбокс (ненавязчивый) */
    .checkbox-label:hover .custom-checkmark {
      border-color: #8ba0c2;
      background-color: #f9fcff;
    }

    .checkbox-label:hover input:checked + .custom-checkmark {
      background-color: #1f5bc7;
      border-color: #1f5bc7;
      transform: scale(1.02);
    }

    /* Текст чекбокса (можно анимировать) */
    .checkbox-text {
      transition: color 0.2s;
    }

    .checkbox-label:hover .checkbox-text {
      color: #0f2b3f;
    }

    /* Дополнительная стилизация для правил (можно сделать ссылку, но необязательно) */
    .rules-link {
      color: #2266dc;
      font-weight: 500;
      text-decoration: none;
      border-bottom: 1px dashed #b9ceff;
      transition: color 0.2s;
    }

    .rules-link:hover {
      color: #0f4bad;
      border-bottom-style: solid;
    }

    /* Кнопка первичная */
    .btn-primary-ok {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 0.9rem 1.5rem;
      background: linear-gradient(105deg, #1f5bc7, #2b6ed7);
      border: none;
      border-radius: 60px;
      font-size: 1rem;
      font-weight: 600;
      font-family: inherit;
      color: white;
      cursor: pointer;
      transition: all 0.25s ease;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
      letter-spacing: 0.3px;
      backdrop-filter: blur(2px);
    }

    .btn-primary-ok:enabled {
      background: linear-gradient(105deg, #1f5bc7, #2b6ed7);
      box-shadow: 0 8px 18px -6px rgba(34, 102, 220, 0.4);
      cursor: pointer;
    }

    .btn-primary-ok:enabled:hover {
      transform: translateY(-2px);
      background: linear-gradient(105deg, #184fa8, #2261ce);
      box-shadow: 0 14px 24px -8px rgba(34, 102, 220, 0.5);
    }

    .btn-primary-ok:enabled:active {
      transform: translateY(1px);
      transition: 0.05s;
    }

    .btn-primary-ok:disabled {
      background: #b7c5dd;
      box-shadow: none;
      cursor: not-allowed;
      opacity: 0.7;
      transform: none;
      color: #eef3fc;
    }

    /* дополнительный отступ и микровзаимодействие */
    .action-area {
      margin-top: 0.75rem;
    }

    /* небольшой анимированный помощник */
    .toast-message {
      visibility: hidden;
      opacity: 0;
      background-color: #1e2a3a;
      color: #fff;
      text-align: center;
      border-radius: 60px;
      padding: 8px 18px;
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 0.85rem;
      font-weight: 500;
      transition: opacity 0.2s, visibility 0.2s;
      z-index: 1000;
      pointer-events: none;
      backdrop-filter: blur(8px);
      background: rgba(20, 30, 45, 0.9);
      border-radius: 40px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    }

    .toast-message.show {
      visibility: visible;
      opacity: 1;
    }

    /* мелкая адаптация */
    @media (max-width: 480px) {
      .card {
        padding: 1.5rem;
      }
      .btn-primary-ok {
        padding: 0.8rem 1.2rem;
      }
      .checkbox-text {
        font-size: 0.95rem;
      }
      .custom-checkmark {
        width: 22px;
        height: 22px;
      }
      .custom-checkmark::after {
        width: 7px;
        height: 13px;
        top: 2px;
        left: 6px;
        border-width: 0 2px 2px 0;
      }
    }

    /* анимация плавного появления кнопки - минималистично */
    .btn-primary-ok {
      transition: background 0.2s, transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    }

    footer {
      font-size: 0.7rem;
      text-align: center;
      margin-top: 1.8rem;
      color: #7890b0;
    }