/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
    /* Цвета */
    --primary-color: #6B9BB8;
    --primary-hover: #8bb0cc;
    --bg-color: #222222;
    --bg-light: #2a2a2a;
    --text-color: #f0f0f0;
    --text-secondary: #aaa;
    --text-muted: #777;
    --border-color: #333;
    --border-light: #444;

    /* Карточки */
    --card-bg: rgba(255,255,255,0.03);
    --hover-bg: rgba(107, 155, 184, 0.1);
    --shadow: 0 5px 20px rgba(0,0,0,0.2);

    /* Размеры */
    --container-width: 1200px;
    --border-radius: 4px;
    --border-radius-lg: 8px;
}

/* ===== ШРИФТЫ ===== */
@font-face {
    font-family: "Gilroy";
    src: url("gilroy-regular.woff2") format("woff2"),
         url("gilroy-regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("gilroy-thin.woff2") format("woff2"),
         url("gilroy-thin.woff") format("woff");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("gilroy-bold.woff2") format("woff2"),
         url("gilroy-bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Gilroy", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: #fff;
    text-decoration: none;
}

a:focus, button:focus, input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== ТИПОГРАФИЯ ===== */
h1 {
    font-family: "Gilroy", sans-serif;
    font-weight: 100;
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-color);
}

h2 {
    font-family: "Gilroy", sans-serif;
    font-weight: 400;
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem 0;
    color: var(--text-color);
}

/* ===== ХЕДЕР ===== */
.main-header {
    background-color: var(--bg-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.main-header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* ===== ЛОГОТИП ===== */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-image {
    height: auto;
    width: auto;
    max-width: 100%;
}

.logo-desktop {
    display: block;
    width: 280px;
    height: 100px;
}

.logo-mobile {
    display: none;
    width: 200px;
    height: 70px;
}

@media (max-width: 992px) {
    .logo-desktop {
        width: 240px;
        height: 86px;
    }
}

@media (max-width: 768px) {
    .logo-desktop {
        display: none;
    }
    .logo-mobile {
        display: block;
        width: 180px;
        height: 63px;
    }
}

/* Слоган */
.slogan-thin {
    font-family: "Gilroy", sans-serif;
    font-weight: 100;
    font-size: 14px;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-left: 1px solid var(--border-color);
    padding-left: 15px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .slogan-thin {
        display: none;
    }
}

/* ===== КОНТАКТЫ ===== */
.header-contacts {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-icon-link {
    color: var(--primary-color);
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(107, 155, 184, 0.08);
}

.contact-icon-link:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-2px);
}

.phone-number {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(107, 155, 184, 0.05);
    border: 1px solid rgba(107, 155, 184, 0.2);
}
/* Специальные стили для иконок */
.max {
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;

}

.max {
    background-image: url('images/max.svg');
}

.contact-icon-link:hover .max {
    background-image: url('images/max_w.svg');
}
@media (max-width: 768px) {
    .phone-number span {
        display: none;
    }

    .contact-icon-link {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}
@media (max-width: 380px) {
    .logo-wrapper {
       # margin-right: -25px;
    }
}
/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* ===== ФУТЕР ===== */
.main-footer {
    margin-top: auto;
    padding: 25px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Исправление для ОГРН - предотвращает определение как телефонного номера */
.ogrnip {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: monospace;
    letter-spacing: 0.5px;
}

/* Улучшенная адаптивность таблиц для мобильных устройств */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
    margin: 15px 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll::-webkit-scrollbar {
    height: 6px;
}

.table-scroll::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 10px;
}

.table-scroll.is-scrollable::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

.processing-table {
    min-width: 100%;
    /* Для очень широких таблиц устанавливаем минимальную ширину */
    width: max-content;
    border-collapse: collapse;
    background: white;
}

/* Индикатор прокрутки для мобильных */
.table-scroll::after {
    content: '→';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.table-scroll.is-scrollable::after {
    opacity: 1;
}

/* Стили для табличных подсказок */
.table-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    padding: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

/* Улучшенные стили для блока подписей */
.signature-block {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.signature-column {
    flex: 1;
    min-width: 250px;
}

.signature-line {
    border-bottom: 1px solid var(--border-color);
    margin: 15px 0 5px;
    padding-bottom: 5px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.footer-links a i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* ===== ОСНОВНЫЕ МЕДИА-ЗАПРОСЫ ДЛЯ АДАПТИВНОСТИ ===== */

/* Планшеты и мобильные устройства (до 768px) */
@media (max-width: 768px) {
    /* Общие настройки */
    .policy-wrapper {
        padding: 15px;
        width: 100%;
    }

    h1 {
        font-size: 20px;
        word-break: break-word;
        hyphens: auto;
    }

    h2 {
        font-size: 18px;
        word-break: break-word;
    }

    h3 {
        font-size: 16px;
    }

    /* Таблицы */
    .table-wrapper {
        margin: 15px -15px;
        width: calc(100% + 30px);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .table-scroll {
        padding: 0 15px;
        -webkit-overflow-scrolling: touch;
    }

    .table-scroll::-webkit-scrollbar {
        height: 4px;
    }

    .processing-table {
        font-size: 13px;
        min-width: 600px; /* Минимальная ширина для читаемости */
    }

    .processing-table th,
    .processing-table td {
        padding: 10px 8px;
        min-width: 120px;
    }

    .processing-table th {
        white-space: nowrap;
    }

    /* Индикатор прокрутки */
    .table-scroll.is-scrollable {
        position: relative;
    }

    .table-scroll.is-scrollable::after {
        content: '→';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary-color);
        font-size: 18px;
        opacity: 0.7;
        pointer-events: none;
        z-index: 2;
    }

    .table-scroll.is-scrollable::before {
        content: '← →';
        display: block;
        text-align: center;
        color: var(--primary-color);
        font-size: 12px;
        margin-bottom: 8px;
        opacity: 0.7;
    }

    /* Контактный блок */
    .contact-block {
        padding: 15px;
        margin: 15px -15px;
        width: calc(100% + 30px);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .contact-block p {
        word-break: break-word;
        font-size: 14px;
    }

    /* Ссылки */
    a {
        word-break: break-all;
    }

    /* Блок подписей */
    .signature-block {
        flex-direction: column;
        gap: 25px;
    }

    .signature-column {
        width: 100%;
    }

    /* Футер */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .footer-links a {
        justify-content: center;
        white-space: normal;
        padding: 6px 0;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .footer-links a i {
        font-size: 16px;
        width: 20px;
    }

    .ogrnip {
        margin-top: 4px;
        font-size: 12px;
        font-family: monospace;
        letter-spacing: 0.5px;
    }

    /* Примечания к таблицам */
    .table-note {
        font-size: 12px;
        padding: 8px;
        margin: 10px 0;
    }
}

/* Маленькие мобильные устройства (до 480px) */
@media (max-width: 480px) {
    .policy-wrapper {
        padding: 10px;
    }

    h1 {
        font-size: 18px;
    }

    h2 {
        font-size: 16px;
    }

    h3 {
        font-size: 15px;
    }

    .processing-table {
        font-size: 12px;
        min-width: 500px;
    }

    .processing-table th,
    .processing-table td {
        padding: 8px 5px;
        min-width: 100px;
    }

    .table-scroll.is-scrollable::after {
        font-size: 16px;
        right: 15px;
    }

    .table-scroll.is-scrollable::before {
        font-size: 11px;
    }

    .contact-block {
        padding: 12px;
    }

    .contact-block p {
        font-size: 13px;
    }

    /* Футер */
    .footer-content {
        gap: 12px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        padding: 4px 0;
        font-size: 13px;
    }

    .footer-links a i {
        font-size: 14px;
        width: 18px;
    }

    .copyright {
        font-size: 13px;
    }

    .ogrnip {
        font-size: 11px;
        margin-top: 3px;
        letter-spacing: normal;
    }

    .table-note {
        font-size: 11px;
        padding: 6px;
    }
}

/* Для устройств с очень маленьким экраном (до 360px) */
@media (max-width: 360px) {
    h1 {
        font-size: 16px;
    }

    h2 {
        font-size: 15px;
    }

    .processing-table {
        font-size: 11px;
        min-width: 450px;
    }

    .processing-table th,
    .processing-table td {
        padding: 6px 4px;
        min-width: 90px;
    }

    .footer-links a {
        font-size: 12px;
        gap: 6px;
    }

    .footer-links a i {
        font-size: 13px;
        width: 16px;
    }

    .copyright {
        font-size: 12px;
    }

    .ogrnip {
        font-size: 10px;
    }

    .contact-block {
        padding: 10px;
    }

    .contact-block p {
        font-size: 12px;
    }
}

/* Альбомная ориентация на мобильных */
@media (max-width: 896px) and (orientation: landscape) {
    .policy-wrapper {
        padding: 15px 20px;
    }

    .table-scroll.is-scrollable::before {
        content: '← → горизонтальная прокрутка';
    }
}

/* Темная тема (опционально) */
@media (prefers-color-scheme: dark) {
    .table-scroll::-webkit-scrollbar-track {
        background: #2d2d2d;
    }

    .table-scroll::-webkit-scrollbar-thumb {
        background: #666;
    }

    .table-scroll.is-scrollable::-webkit-scrollbar-thumb {
        background: var(--primary-color-dark, #4a90e2);
    }

    .table-note {
        background: #2d2d2d;
        border-left-color: var(--primary-color-dark, #4a90e2);
    }
}

/* ===== ФОРМЫ ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 155, 184, 0.1);
}

.form-control.error {
    border-color: #ff6b6b;
}

.form-control.valid {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.02);
}

.error-message {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 5px;
    min-height: 20px;
}

.hint-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    padding-left: 4px;
}

.required {
    color: #ff6b6b;
}

/* Чекбокс */
.checkbox-group {
    margin-top: 25px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.checkbox-group.error {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.05);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked {
    accent-color: var(--primary-color);
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-style: dotted;
}

.checkbox-label a:hover {
    text-decoration-style: solid;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-submit {
    min-width: 250px;
    height: 50px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn-submit:after {
    content: '';
    position: absolute;
    top: -50%;
    bottom: -50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.1));
    width: 45px;
    transform: skewX(-22deg);
    left: -65%;
    animation-name: blick;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

@keyframes blick {
    60% { left: 100%; }
    to { left: 130%; }
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===== СООБЩЕНИЯ ФОРМЫ ===== */
.form-messages {
    margin-top: 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert i {
    font-size: 20px;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.development-section {
    padding: 40px 0 20px;
}

.development-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.development-title {
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.title-light {
    font-weight: 100;
    color: var(--text-color);
}

.title-accent {
    font-weight: 400;
    color: var(--primary-color);
    position: relative;
}

.title-accent::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--primary-color);
}

.development-image {
    margin: 40px 0;
}

.gear-icon {
    animation: rotate 20s linear infinite;
}

.gear-circle {
    stroke-dasharray: 190;
    stroke-dashoffset: 0;
    animation: dash 3s ease-in-out infinite;
}

.gear-tooth {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: 95; }
    100% { stroke-dashoffset: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.development-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.development-progress {
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.form-section {
    padding: 20px 0 60px;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.form-title .title-accent {
    margin-left: 8px;
}

.form-title .title-accent::after {
    display: none;
}

/* ===== СТРАНИЦА ПОЛИТИКИ ===== */
.policy-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.policy-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.policy-wrapper h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 500;
}

.policy-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Стили только для десктопа */
@media (min-width: 1024px) {
    .policy-section .subsection {
        margin-left: 20px;
        padding-left: 15px;
        border-left: 2px solid var(--primary-color);
    }
    
    /* Дополнительные десктопные стили для subsection */
    .policy-section .subsection p {
        line-height: 1.6;
    }
    
    .policy-section .subsection ul {
        margin-left: 20px;
    }
}

.policy-section ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.policy-section ul li {
    position: relative;
    padding: 8px 0 8px 25px;
    line-height: 1.5;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.policy-section ul li:last-child {
    border-bottom: none;
}

.policy-section ul li::before {
    content: "—";
    position: absolute;
    left: 5px;
    color: var(--primary-color);
    font-weight: 300;
}

.contact-block {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 30px;
}

.contact-block h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-block a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
}

/* ===== ТАБЛИЦА ===== */
.table-wrapper {
    width: 100%;
    margin: 2rem 0;
    border-radius: var(--border-radius-lg);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.processing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-color);
    min-width: 800px;
}

.processing-table thead {
    background: linear-gradient(135deg, var(--primary-color), #4A7A9C);
}

.processing-table th {
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 1.2rem 1rem;
    border: 1px solid var(--border-color);
}

.processing-table td {
    padding: 1.2rem 1rem;
    vertical-align: top;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-secondary);
}

.processing-table tbody tr:hover td {
    background: rgba(107, 155, 184, 0.05);
    color: var(--text-color);
}

.data-list {
    margin: 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.data-list li {
    margin-bottom: 0.5rem;
}

.table-scroll::-webkit-scrollbar {
    height: 8px;
}

.table-scroll::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* ===== COOKIE СОГЛАШЕНИЕ ===== */
.cookie-consent {
    position: fixed;
    bottom: 10px;
    left: 50px;
    right: 50px;
    max-width: calc(100% - 100px);
    border-radius: 8px;
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    color: #f0f0f0;
    padding: 20px;
    z-index: 1000;
    border: 1px solid #444;
    display: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-consent__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #ccc;
    flex: 1;
}

.cookie-consent__link {
    color: #aaa;
    text-decoration: underline;
}

.cookie-consent__button {
    background: #444;
    color: #fff;
    border: 1px solid #555;
    padding: 10px 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-consent__button:hover {
    background: #555;
}

@media (max-width: 768px) {
    .cookie-consent__content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* ===== УТИЛИТЫ ===== */
.hidden {
    display: none !important;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .development-title {
        font-size: 2.5rem;
    }

    .form-wrapper {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-title .title-accent {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }

    .policy-wrapper {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .development-wrapper,
    .form-wrapper {
        max-width: 100%;
        margin: 0 10px;
    }

    .btn-submit {
        min-width: 100%;
    }
}
/* ===== КНОПКИ ===== */
.form-actions {
    display: flex;
    justify-content: center; /* Выравнивание по центру */
    margin-top: 30px;
    width: 100%;
}

.btn-submit {
    min-width: 250px;
    height: 50px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    margin: 0 auto; /* Дополнительное центрирование */
}

/* Для мобильных */
@media (max-width: 480px) {
    .btn-submit {
        min-width: 100%;
        width: 100%;
    }
}
/* Стили для поля с автозаполнением */
.auto-filled {
    font-weight: 500 !important;
}

.auto-filled:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Подсказки для ИНН */
.inn-success {
    color: #28a745;
    font-size: 12px;
    margin-top: 4px;
}

.inn-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.inn-info {
    color: #6B9BB8;
    font-size: 12px;
    margin-top: 4px;
}

/* ===== СТИЛИ ДЛЯ КАЛЬКУЛЯТОРА ===== */

.calculator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 120px;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.calculator-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-align: center;
}

.calculator-section {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.calculator-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.options-section {
    margin: 30px 0 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.options-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.9;
}

/* ===== СЕТКА ПАРАМЕТРОВ ===== */
.params-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.param-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.param-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===== СТИЛИЗОВАННЫЕ СЕЛЕКТЫ ===== */
.styled-select {
    width: 100%;
    height: 60px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: "Gilroy", sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 60px;
}

.styled-select:hover {
    border-color: var(--primary-color);
    background: rgba(107, 155, 184, 0.08);
}

.styled-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 155, 184, 0.25);
}

/* Стили для опций внутри селекта */
.styled-select optgroup {
    background: #1e1e1e;
    color: var(--text-color);
    font-weight: 600;
    padding: 12px;
    font-size: 1rem;
    cursor: default;
}

.styled-select option,
.styled-select optgroup option {
    background: #1e1e1e;
    color: var(--text-color);
    padding: 15px 12px;
    min-height: 50px;
    font-size: 1rem;
    cursor: pointer !important;
}

/* ===== ПОЛЕ ВВОДА ДЛЯ ТОЧНОГО ОБОРОТА ===== */
.styled-input {
    width: 100%;
    height: 60px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: "Gilroy", sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.styled-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
}

.styled-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 155, 184, 0.25);
}

.input-hint {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

/* ===== СЕТКА ДЛЯ КАДРОВОГО УЧЕТА ===== */
.hr-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* ===== СЧЕТЧИК СОТРУДНИКОВ ===== */
.employee-counter {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.counter-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin-bottom: 15px;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    flex-wrap: wrap;
}

.counter-buttons {
    display: flex;
    gap: 5px;
    order: 1;
}

.counter-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-radius: 8px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.counter-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.counter-input {
    width: 160px !important;
    height: 50px;
    text-align: center;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 50px;
    -moz-appearance: textfield;
    appearance: textfield;
    order: 0;
    flex: 0 0 auto;
}

/* Убираем стрелки в Chrome/Safari/Edge */
.counter-input::-webkit-outer-spin-button,
.counter-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.counter-hint {
    font-size: 0.85rem;
    opacity: 0.7;
    color: #888;
    display: block;
    margin-top: 10px;
}

/* ===== СЕТКА ОПЦИЙ ===== */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0 0;
}

.option-tab {
    position: relative;
    overflow: visible;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.option-tab:hover {
    border-color: var(--primary-color);
    background: rgba(107, 155, 184, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.option-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(107, 155, 184, 0.25);
}

.option-icon {
    width: 50px;
    height: 50px;
    background: rgba(107, 155, 184, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.option-tab:hover .option-icon,
.option-tab.active .option-icon {
    background: white;
    transform: scale(1.05);
}

.option-icon i {
    font-size: 20px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.option-tab.active .option-icon i {
    color: var(--primary-color);
}

.option-title {
    font-family: "Gilroy", sans-serif;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
    padding: 0 5px;
}

/* ===== СТИЛИ ДЛЯ ТУЛТИПОВ - ИСПРАВЛЕННАЯ ВЕРСИЯ ===== */
.tooltip-icon {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: help !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
}

.tooltip-icon i {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1 !important;
}

.tooltip-icon:hover {
    background: var(--primary-color) !important;
    transform: scale(1.1) !important;
}

.tooltip-icon:hover i {
    color: white !important;
}

/* ===== ТУЛТИПЫ - УСИЛЕННАЯ ВЕРСИЯ ===== */
div.tooltip-icon[data-tooltip]:hover::after,
span.tooltip-icon[data-tooltip]:hover::after,
.tooltip-icon[data-tooltip]:hover::after {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    right: auto !important;
    bottom: auto !important;
    width: 280px !important;
    max-width: 90vw !important;
    z-index: 1000000 !important;
    margin: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    background: var(--primary-color) !important;
    color: white !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    white-space: normal !important;
    text-align: left !important;
    pointer-events: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    animation: tooltipFadeIn 0.2s ease !important;
    content: attr(data-tooltip) !important; /* Явно указываем content */
}

div.tooltip-icon[data-tooltip]:hover::before,
span.tooltip-icon[data-tooltip]:hover::before,
.tooltip-icon[data-tooltip]:hover::before {
    display: none !important;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Адаптация для мобильных */
@media (max-width: 992px) {
    .tooltip-icon[data-tooltip]:hover::after {
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .tooltip-icon[data-tooltip]:hover::after {
        max-width: 240px;
        font-size: 12px;
        padding: 10px 14px;
    }

    /* На мобильных последние 2 кнопки показывают тултип слева */
    .option-tab:nth-last-child(-n+2) .tooltip-icon[data-tooltip]:hover::after {
        right: auto;
        left: 0;
    }

    .option-tab:nth-last-child(-n+2) .tooltip-icon[data-tooltip]:hover::before {
        right: auto;
        left: 12px;
    }
}

@media (max-width: 480px) {
    .tooltip-icon[data-tooltip]:hover::after {
        max-width: 220px;
        font-size: 11px;
        padding: 8px 12px;
    }

    /* На маленьких экранах все кнопки могут показывать тултип слева */
    .option-tab .tooltip-icon[data-tooltip]:hover::after {
        right: auto;
        left: 0;
    }

    .option-tab .tooltip-icon[data-tooltip]:hover::before {
        right: auto;
        left: 8px;
    }
}

/* ===== СТИЛИ ДЛЯ ОТРАСЛЕВЫХ ОПЦИЙ ===== */
.option-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.5);
}

.option-tab.disabled:hover {
    transform: none;
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

/* ===== ЛИПКИЙ ИТОГОВЫЙ БЛОК ===== */
.sticky-total {
    position: sticky;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 900;
    animation: slideInUp 0.5s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    margin: 30px 0 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), #4a7a9c);
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.total-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-radius: 12px;
}

.total-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.total-label {
    font-size: 1.2rem;
    opacity: 0.9;
    color: white;
}

.total-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.order-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .params-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .calculator-wrapper {
        padding: 20px 15px 100px;
    }

    .calculator-section {
        padding: 15px;
    }

    .params-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hr-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .options-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    /* Счетчик сотрудников на мобильных */
    .counter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .counter-buttons {
        order: 2;
        justify-content: flex-start;
        width: 100%;
        margin-left: 0;
    }

    .counter-input {
        order: 1;
        width: 100% !important;
    }

    .counter-hint {
        order: 3;
    }

    /* Липкий блок на мобильных */
    .sticky-total {
        position: sticky !important;
        bottom: 10px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 20px 0 0 !important;
        border-radius: 12px !important;
        z-index: 900 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .total-block {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .total-left {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .total-amount {
        font-size: 2rem;
    }

    .order-btn {
        width: 100%;
        padding: 12px 20px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .calculator-section h2 {
        font-size: 1.3rem;
    }

    .options-section h3 {
        font-size: 1.1rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .option-tab {
        padding: 12px 8px;
    }

    .option-icon {
        width: 45px;
        height: 45px;
    }

    .option-icon i {
        font-size: 18px;
    }

    .total-amount {
        font-size: 1.8rem;
    }

    .total-left {
        flex-direction: column;
        gap: 5px;
    }

    .total-label {
        font-size: 1rem;
    }

    .counter-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}
/* Защита от выхода за правый край на мобильных */
@media (max-width: 600px) {
    .tooltip-icon[data-tooltip]:hover::after {
        right: -10px;
        width: 240px;
    }

    .option-tab:last-child .tooltip-icon[data-tooltip]:hover::after {
        right: auto;
        left: -10px;
    }
}

@media (max-width: 480px) {
    .tooltip-icon[data-tooltip]:hover::after {
        width: 200px;
        font-size: 11px;
        padding: 8px 12px;
    }
}

@media (max-width: 360px) {
    .tooltip-icon[data-tooltip]:hover::after {
        width: 180px;
    }
}

/* ===== БЛОК СКИДОК ===== */
.discount-section {
    background: rgba(107, 155, 184, 0.15);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(107, 155, 184, 0.2);
}

.discount-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(107, 155, 184, 0.3);
    padding-bottom: 15px;
}

.discount-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.discount-title-wrapper h2 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    color: var(--primary-color);
}

.discount-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0.9;
    margin: 0;
}

.discount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.discount-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(107, 155, 184, 0.3);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
}

.discount-item:hover {
    border-color: var(--primary-color);
    background: rgba(107, 155, 184, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(107, 155, 184, 0.25);
}

.discount-checkbox {
    display: flex;
    align-items: flex-start; /* Выравнивание по верху */
    gap: 15px;
    padding: 20px;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.discount-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(107, 155, 184, 0.15);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 3px; /* Небольшой отступ сверху для выравнивания */
}

.discount-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-color);
}

.discount-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.discount-content {
    flex: 1;
}

.discount-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.discount-item-header i {
    font-size: 1.3rem;
    color: var(--primary-color);
    background: rgba(107, 155, 184, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.discount-item:hover .discount-item-header i {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.discount-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.discount-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.discount-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.discount-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 5px;
}

.discount-badge {
    display: inline-block;
    background: rgba(107, 155, 184, 0.25);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.discount-total {
    background: rgba(107, 155, 184, 0.25);
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.discount-total-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.discount-total-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.discount-total-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.discount-total-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(107, 155, 184, 0.2);
    padding: 5px 20px;
    border-radius: 50px;
}

.discount-total-right {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.discount-calculation {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50px;
}

.discount-calculation span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Адаптивность */
@media (max-width: 992px) {
    .discount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .discount-section {
        padding: 20px;
    }

    .discount-grid {
        grid-template-columns: 1fr;
    }

    .discount-header {
        flex-direction: column;
        text-align: center;
    }

    .discount-total {
        flex-direction: column;
        text-align: center;
        border-radius: 16px;
    }

    .discount-total-left {
        justify-content: center;
    }

    .discount-calculation {
        font-size: 0.9rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .discount-item-header {
        flex-wrap: wrap;
    }

    .discount-total-value {
        font-size: 1.6rem;
    }
}