* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Навигация */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #1a202c;
    padding: 1.25rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #667eea;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    z-index: 1001;
}

/* Основной контент */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Блок описания */
.description-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.description-section h1 {
    color: #4f46e5;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.description-section p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Сетка контейнеров */
.containers-section {
    margin-top: 2rem;
}

.containers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Контейнер карточки */
.container-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 220px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.container-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.container-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.container-card:hover::before {
    transform: scaleX(1);
}

/* Выделенный контейнер */
.container-card-featured {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--primary-gradient) border-box;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.container-card-featured::before {
    transform: scaleX(1);
}

.container-card-featured:hover {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
    transform: translateY(-10px);
}

/* ЗВЕЗДОЧКА БЕЗ ОБВОДКИ */
.featured-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    font-size: 1.2rem;
    color: #4f46e5;
    z-index: 10;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
}

.container-card-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.container-card-content {
    margin-left: 100px;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.container-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4f46e5;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.container-card-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
    word-wrap: break-word;
}

.container-card-description strong {
    font-weight: bold;
}

.container-card-description em {
    font-style: italic;
}

.container-card-description u {
    text-decoration: underline;
}

.container-card-description ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

/* КНОПКА ПО ЦЕНТРУ */
.container-card-button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: block;
    width: 100%;
    margin: 1.5rem auto 0 auto;
    text-align: center;
    transition: var(--transition);
    box-sizing: border-box;
    font-weight: 600;
    max-width: 220px;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.3px;
}

.container-card-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}

/* Админ-панель */
.admin-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
}

.admin-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.admin-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="file"] {
    padding: 0.5rem;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.btn {
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #4338ca;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-success {
    background-color: #4f46e5;
}

.btn-success:hover {
    background-color: #4338ca;
}

.login-form {
    max-width: 400px;
    margin: 5rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #4f46e5;
}

.containers-list {
    display: grid;
    gap: 1rem;
}

.container-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container-item-featured {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f8f0 100%);
    border: 2px solid #4f46e5;
}

.container-item-info {
    flex: 1;
}

.container-item-info h3 {
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.container-item-info p {
    color: #666;
    font-size: 0.9rem;
}

.container-item-actions {
    display: flex;
    gap: 0.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}

/* Дополнительные блоки */
.info-blocks {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-block {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.info-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-block h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.info-block p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1rem;
}

/* Подвал */
.footer {
    background: var(--dark-gradient);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Согласие с куки */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1.5rem;
    z-index: 1000;
    display: none;
}

.cookie-consent.show {
    display: block;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #4f46e5;
    color: white;
}

.cookie-btn-accept:hover {
    background-color: #4338ca;
}

.cookie-btn-decline {
    background-color: #666;
    color: white;
}

.cookie-btn-decline:hover {
    background-color: #555;
}

/* Редактор форматирования */
.format-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
    flex-wrap: wrap;
}

.format-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    min-width: 40px;
}

.format-btn:hover {
    background-color: #e9ecef;
}

.format-btn.active {
    background-color: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

/* Hero секция */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 5rem 0;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    opacity: 0.95;
    font-weight: 400;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.hero-feature {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.hero-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.hero-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.hero-feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 700;
}

.hero-feature p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-form {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Секции продуктов */
.products-section {
    padding: 5rem 0;
    background: white;
    position: relative;
}

.products-section-alt {
    background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.25rem;
    color: #718096;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.section-link {
    display: inline-block;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.section-link:hover {
    color: #4338ca;
}

/* Информационная секция */
.info-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.info-block-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Дополнительная информация */
.additional-info-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
}

.additional-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.additional-info-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.additional-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.additional-info-card h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.additional-info-card ul,
.additional-info-card ol {
    list-style: none;
    padding: 0;
}

.additional-info-card ul li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 1rem;
}

.additional-info-card ol li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 1rem;
    counter-increment: item;
    position: relative;
    padding-left: 2rem;
}

.additional-info-card ol {
    counter-reset: item;
}

.additional-info-card ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: #4f46e5;
    font-weight: bold;
}

.additional-info-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.additional-info-card strong {
    color: #333;
}

/* ============ АДАПТИВНЫЕ СТИЛИ ============ */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1024px) {
    .containers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-blocks,
    .additional-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Мобильные устройства (горизонтальная ориентация) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    /* Навигация */
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        font-size: 1.5rem;
        z-index: 1001;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        text-align: center;
        z-index: 999;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 10px;
        transition: var(--transition);
        color: #4a5568;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: var(--primary-gradient);
        color: white;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Hero секция */
    .hero-section {
        padding: 3rem 0;
        margin-bottom: 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }
    
    .hero-feature {
        padding: 1.5rem;
        text-align: center;
    }
    
    .hero-feature-icon {
        font-size: 2.5rem;
    }
    
    .hero-form {
        order: -1;
    }
    
    /* Секции продуктов */
    .products-section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .section-header p {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .section-link {
        font-size: 1rem;
    }
    
    /* Сетка контейнеров */
    .containers-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    /* Карточки контейнеров */
    .container-card {
        min-height: auto;
        padding: 1.25rem;
    }
    
    .container-card-image {
        width: 60px;
        height: 60px;
        top: 1rem;
        left: 1rem;
    }
    
    .container-card-content {
        margin-left: 75px;
        min-height: 60px;
    }
    
    .container-card-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .container-card-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* КНОПКА ДЛЯ МОБИЛЬНЫХ */
    .container-card-button {
        margin: 1rem auto 0 auto;
        padding: 0.75rem;
        font-size: 0.95rem;
        text-align: center;
        max-width: 180px;
    }
    
    .featured-badge {
        font-size: 1rem;
        top: 0.5rem;
        left: 0.5rem;
    }
    
    /* Инфо-блоки */
    .info-section,
    .additional-info-section {
        padding: 2rem 0;
    }
    
    .info-blocks {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .info-block {
        padding: 1.5rem;
        text-align: center;
    }
    
    .info-block-icon {
        font-size: 2.5rem;
    }
    
    .info-block h3 {
        font-size: 1.3rem;
    }
    
    /* Дополнительная информация */
    .additional-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .additional-info-card {
        padding: 1.5rem;
    }
    
    .additional-info-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    /* Подвал */
    .footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* Согласие с куки */
    .cookie-consent {
        padding: 1rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-consent-text {
        min-width: auto;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* Мобильные устройства (до 480px) - 2 КОЛОНКИ */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* 2 КОЛОНКИ НА МОБИЛЬНЫХ */
    .containers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .container-card {
        padding: 1rem;
        min-height: 180px;
    }
    
    .container-card-image {
        width: 40px;
        height: 40px;
        top: 0.75rem;
        left: 0.75rem;
    }
    
    .container-card-content {
        margin-left: 55px;
        min-height: 40px;
    }
    
    .container-card-title {
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 0.3rem;
    }
    
    .container-card-description {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    /* КНОПКА ДЛЯ МАЛЕНЬКИХ МОБИЛЬНЫХ */
    .container-card-button {
        margin: 0.5rem auto 0 auto;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        text-align: center;
        max-width: 100%;
    }
    
    .featured-badge {
        font-size: 0.8rem;
        top: 0.3rem;
        left: 0.3rem;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-feature {
        padding: 0.875rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    .section-link {
        font-size: 0.95rem;
    }
    
    .info-block {
        padding: 1.25rem;
    }
    
    .info-block h3 {
        font-size: 1.2rem;
    }
    
    .additional-info-card {
        padding: 1.25rem;
    }
    
    .additional-info-card h3 {
        font-size: 1.2rem;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    /* Админ-панель для мобильных */
    .container-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .container-item-actions {
        width: 100%;
        margin-top: 1rem;
        justify-content: center;
    }
    
    .admin-section {
        padding: 1rem;
    }
    
    .login-form {
        padding: 1.5rem;
        margin: 2rem auto;
    }
    
    .format-toolbar {
        justify-content: center;
    }
    
    .format-btn {
        min-width: 35px;
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* Очень маленькие устройства */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    /* 2 КОЛОНКИ НА ОЧЕНЬ МАЛЕНЬКИХ УСТРОЙСТВАХ */
    .containers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .container-card {
        min-height: 170px;
        padding: 0.75rem;
    }
    
    .container-card-image {
        width: 35px;
        height: 35px;
    }
    
    .container-card-content {
        margin-left: 45px;
    }
    
    .container-card-title {
        font-size: 0.85rem;
    }
    
    .container-card-description {
        font-size: 0.7rem;
    }
    
    .container-card-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        margin: 0.3rem auto 0 auto;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .hero-text h1 {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

/* ============ СОВРЕМЕННЫЕ СТИЛИ ДЛЯ ФОРМЫ ЗАЙМА ============ */

.loan-form-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.loan-form-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    text-align: center;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.loan-form-subtitle {
    text-align: center;
    color: #718096;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Слайдеры */
.slider-group {
    margin-bottom: 2rem;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.slider-label-text {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 600;
}

.slider-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 120px;
    text-align: right;
}

.slider-container {
    position: relative;
    height: 12px;
    margin-bottom: 0.75rem;
    padding: 8px 0;
}

.slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: visible;
}

.slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 6px;
    transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.slider-input {
    position: relative;
    width: 100%;
    height: 12px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    z-index: 2;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: white;
    background-image: var(--primary-gradient);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.8);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    margin-top: -8px;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.slider-input::-webkit-slider-thumb:active {
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6), 0 0 0 5px rgba(255, 255, 255, 1);
}

.slider-input::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: transparent;
    border-radius: 6px;
}

.slider-input::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: white;
    background-image: var(--primary-gradient);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.8);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.slider-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.slider-input::-moz-range-thumb:active {
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6), 0 0 0 5px rgba(255, 255, 255, 1);
}

.slider-input::-moz-range-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 6px;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #a0aec0;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Итоговая сумма */
.loan-summary {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 1.75rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 2px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.summary-item span {
    color: #4a5568;
    font-weight: 600;
}

.summary-item strong {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-note {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.rate-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

/* Кнопка оформления заявки */
.btn-apply-loan {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-apply-loan:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.btn-apply-loan:active {
    transform: translateY(0);
}

.privacy-link-text {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #718096;
}

.privacy-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.privacy-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    position: relative;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: #667eea;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Форма обратной связи */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-form .form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: #f7fafc;
}

.contact-form .form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-form .form-group input::placeholder {
    color: #a0aec0;
    opacity: 0.7;
}

.contact-form .form-group input:invalid:not(:placeholder-shown) {
    border-color: #fc8181;
    background: #fff5f5;
}

.contact-form .form-group input:invalid:not(:placeholder-shown):focus {
    border-color: #fc8181;
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.1);
}

.btn-submit-form {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    margin-top: 1rem;
}

.btn-submit-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.btn-submit-form:active {
    transform: translateY(0);
}

/* Модальное окно успеха */
.success-modal {
    text-align: center;
    padding: 3rem 2.5rem;
}

.success-message {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.redirect-message {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.redirect-message span {
    font-weight: 700;
    color: #667eea;
    font-size: 1.2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Адаптивные стили для формы займа */
@media (max-width: 768px) {
    .loan-form-wrapper {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .loan-form-title {
        font-size: 1.75rem;
    }

    .loan-form-subtitle {
        font-size: 0.95rem;
    }

    .slider-group {
        margin-bottom: 1.75rem;
    }

    .slider-label {
        margin-bottom: 1rem;
    }

    .slider-label-text {
        font-size: 0.95rem;
    }

    .slider-value {
        font-size: 1.5rem;
        min-width: 100px;
    }

    .slider-container {
        height: 10px;
        padding: 6px 0;
    }

    .slider-input::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
        box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.8);
    }

    .slider-input::-moz-range-thumb {
        width: 24px;
        height: 24px;
        box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.8);
    }

    .slider-labels {
        font-size: 0.8rem;
    }

    .loan-summary {
        padding: 1.5rem;
    }

    .summary-item {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .summary-item strong {
        font-size: 1.5rem;
        width: 100%;
        text-align: right;
    }

    .btn-apply-loan {
        padding: 1.1rem 1.5rem;
        font-size: 1.05rem;
    }

    .modal-content {
        margin: 5% auto;
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .modal-title {
        font-size: 1.6rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form .form-group input {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .loan-form-wrapper {
        padding: 1.5rem 1rem;
    }

    .loan-form-title {
        font-size: 1.75rem;
    }

    .slider-value {
        font-size: 1.1rem;
    }

    .modal-content {
        padding: 1.5rem 1rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }
}