/* css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Типографика */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.text-lg {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1.125rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    border: 2px solid #2563eb;
    color: #2563eb;
    background: transparent;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: white;
}

/* Навигация */
.navbar {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.2s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.logo:hover span {
    color: #2563eb;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
}

.nav-links a:hover {
    color: #2563eb;
}

.nav-btn {
    background-color: #2563eb;
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.nav-btn:hover {
    background-color: #1d4ed8;
    color: white !important;
}

/* Хедер с фото */
.hero {
    padding: 4rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
}

.hero-badge {
    display: inline-block;
    background-color: #dbeafe;
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Секции */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: #f9fafb;
}

/* Карточки продуктов */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

.product-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2563eb;
}

.product-tag {
    display: inline-block;
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.875rem;
    margin: 1rem 0;
}

.product-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Принципы */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.principle-item {
    display: flex;
    gap: 1.5rem;
}

.principle-number {
    font-size: 3rem;
    font-weight: 800;
    color: #dbeafe;
    line-height: 1;
}

/* Блог/Видео анонс */
.blog-preview {
    background: #1e293b;
    color: white;
    border-radius: 32px;
    padding: 3rem;
    margin-top: 3rem;
}

.blog-preview .text-lg {
    color: #cbd5e1;
}

/* Футер */
.footer {
    border-top: 1px solid #e5e7eb;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-links a {
    display: block;
    color: #6b7280;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.footer-links a i {
    width: 20px;
    color: #2563eb;
}

/* Выделение InstantBase */
.product-card.featured {
    border: 2px solid #2563eb;
    background: linear-gradient(to bottom, #ffffff, #f5f9ff);
    position: relative;
}

.product-card.featured::before {
    content: "Флагман";
    position: absolute;
    top: -12px;
    left: 20px;
    background: #2563eb;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9ca3af;
}

.modal-close:hover {
    color: #1a1a1a;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
}

/* Стили для радио-кнопок */
.contact-type-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.contact-type-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.contact-type-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.contact-type-option span {
    font-size: 1rem;
    color: #374151;
}

.contact-field {
    transition: all 0.3s ease;
}

.contact-field.hidden {
    display: none;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.contact-info a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Стили для уведомлений */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid;
}

.notification.success {
    border-left-color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.info {
    border-left-color: #3b82f6;
}

.notification-icon {
    font-size: 20px;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.info .notification-icon {
    color: #3b82f6;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
}

.notification-message {
    font-size: 14px;
    color: #6b7280;
}

.notification-close {
    color: #9ca3af;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #4b5563;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.closing {
    animation: slideOut 0.3s ease forwards;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid #e5e7eb;
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.cookie-text a {
    color: #2563eb;
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cookie-btn-accept {
    background-color: #2563eb;
    color: white;
}

.cookie-btn-accept:hover {
    background-color: #1d4ed8;
}

.cookie-btn-settings {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.cookie-btn-settings:hover {
    background-color: #e5e7eb;
}

/* Адаптивность */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-image {
        order: -1;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
    }

    .contact-type-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .notification-container {
        left: 20px;
        right: 20px;
    }

    .notification {
        min-width: auto;
        max-width: none;
    }

    .logo img {
        height: 32px;
    }
    
    .logo span {
        font-size: 1.25rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}