/* ==================================================
     Автор: Ипполитов А.А.
     Компания: Зефир-ИТ (Zefir-IT)
     Лицензия: Все права защищены.
     Код является интеллектуальной собственностью компании Зефир-ИТ (Zefir-IT) и её разработчика.
     Запрещено копирование, распространение, модификация или использование
     без письменного разрешения правообладателя.
     © 2026 Зефир-ИТ (Zefir-IT). All rights reserved.
     ================================================== */

/* ============================================
   СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ (тёмная тема)
   ============================================ */

:root {
    /* Переменные наследуются из main.css, но можно переопределить при необходимости */
    --hero-gradient: linear-gradient(135deg, #0a0f1e, #1a1f2f);
    --card-bg: rgba(0, 0, 0, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-border-hover: var(--accent-cyan);
    --text-light: #ffffff;
    --text-muted: #cccccc;
}

/* Hero секция */
.hero-section {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: 80px 20px;
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.title-container {
    margin-bottom: 30px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-lime));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease;
}

.animated-gradient-text {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-lime), var(--primary-color));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite, fadeInUp 1s ease 0.3s both;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.5s both;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.7s both;
}

.floating-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-cyan);
}

/* Карточки в hero */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
}

.hero-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--neon-cyan);
}

.hero-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--neon-purple);
}

.hero-card h3 {
    margin-bottom: 15px;
    color: var(--text-light);
}

.hero-card p {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Features секция */
.features-section {
    padding: 100px 20px;
    position: relative;
    z-index: 1;
    background: transparent;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-light);
    text-shadow: 0 0 20px var(--accent-cyan);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-lime));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-lime);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--neon-lime);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: var(--neon-purple);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA секция */
.cta-section {
    padding: 100px 20px;
    text-align: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    margin: 40px auto;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.cta-section .section-title {
    color: var(--text-light);
    margin-bottom: 20px;
}

.glow-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-muted);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px var(--accent-cyan), 0 0 10px var(--accent-cyan); }
    to { text-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-lime); }
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0); }
}

/* Анимации */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность для главной */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-cards {
        grid-template-columns: 1fr;
        margin-top: 50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .animated-gradient-text {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНАЯ АДАПТАЦИЯ ДЛЯ ГЛАВНОЙ
   ============================================ */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-card {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* NEW: улучшенная адаптация для телефонов */
@media (max-width: 576px) {
    .hero-section {
        padding: 40px 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .animated-gradient-text {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-card {
        padding: 20px;
    }

    .hero-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .features-section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .cta-section {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .glow-text {
        font-size: 1rem;
    }
}

/*-------------------------------------------------------------*/

/* Миссия */
.mission-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(0, 255, 0, 0.02));
    text-align: center;
}

.mission-container {
    max-width: 800px;
    margin: 0 auto;
}

.mission-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-light);
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .mission-text {
        font-size: 1rem;
    }
}

/* Блок преимуществ для бизнеса */
.business-benefits {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.03), rgba(0, 255, 0, 0.01));
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: var(--neon-cyan);
}

.benefit-item i {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.benefit-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.benefit-item p {
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   3D ЛОГОТИП С ЭФФЕКТОМ ПАРЕНИЯ И СВЕЧЕНИЯ (без увеличения)
   ============================================ */
.main-logo {
    text-align: center;
    margin: 2rem 0 1rem 0;
    perspective: 800px;
}
/* ============================================
   3D ЛОГОТИП (без увеличения, только свечение)
   ============================================ */
.main-logo {
    text-align: center;
    margin: 2rem 0 1rem 0;
    perspective: 800px;
}

.logo-3d-wrapper {
    display: inline-block;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 0, 0.08));
    padding: 8px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 
                inset 0 -5px 0 rgba(0, 0, 0, 0.2),
                0 0 0 2px rgba(0, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    animation: float 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

.logo-3d-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.logo-3d-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* object-position: 50% 50%; */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: filter 0.3s ease;
    transform: none;  /* явно отключаем масштабирование */
}

.logo-3d-wrapper:hover {
    transform: translateY(-8px) rotateX(6deg) rotateY(2deg);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4),
                inset 0 -3px 0 rgba(0, 0, 0, 0.1),
                0 0 30px 10px rgba(0, 255, 255, 0.7),
                0 0 20px 5px rgba(0, 255, 255, 0.5);
}

.logo-3d-wrapper:hover img {
    filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.7));
    transform: none;
}

/* Адаптация для планшетов */
@media (max-width: 768px) {
    .logo-3d-wrapper {
        width: 220px;
        height: 220px;
        padding: 6px;
    }
}

/* Адаптация для телефонов */
@media (max-width: 576px) {
    .logo-3d-wrapper {
        width: 180px;
        height: 180px;
        padding: 5px;
    }
}


/*-------------------------------------*/

/* ============================================
   БЛОК ДЛЯ КЛИЕНТОВ
   ============================================ */
.clients-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.03), rgba(0, 255, 0, 0.02));
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
}

.client-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.client-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: var(--neon-cyan);
}

.client-card i {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.client-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.client-card p {
    color: var(--text-muted);
    line-height: 1.5;
}

.client-cta {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.client-testimonial {
    font-size: 1.2rem;
    font-style: italic;
    background: rgba(0, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 50px;
    margin-bottom: 30px;
    color: var(--text-light);
    border-left: 4px solid var(--accent-cyan);
}

.client-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.client-note {
    color: var(--accent-lime);
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
    .client-testimonial {
        font-size: 1rem;
        padding: 15px;
    }
    .client-buttons {
        flex-direction: column;
        align-items: center;
    }
    .client-buttons .btn {
        width: 80%;
    }
}

/* ============================================
   КАЛЬКУЛЯТОР НА ГЛАВНОЙ
   ============================================ */
.calculator-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.03), rgba(0, 255, 0, 0.01));
}

.calculator-container {
    max-width: 700px;
    margin: 0 auto;
}

.calculator-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.calculator-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.calculator-card:hover {
    transform: translateY(-3px);
}

.calc-row {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

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

.calc-row input,
.calc-row select {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 1rem;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 220px;
    transition: var(--transition);
}

.calc-row input:focus,
.calc-row select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3);
}

.calc-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.calc-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.calc-checkboxes input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-cyan);
}

.calc-button {
    background: linear-gradient(135deg, var(--accent-cyan), #0891b2);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.calc-button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 12px var(--accent-cyan);
}

.calc-result {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    padding: 1.2rem;
    border-left: 4px solid var(--accent-cyan);
}

.calc-result p {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 1rem;
}

.calc-result .highlight {
    color: var(--accent-lime);
    font-weight: 700;
    font-size: 1.2rem;
}

.calc-note {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    border-top: 1px solid var(--card-border);
    padding-top: 1rem;
}

@media (max-width: 600px) {
    .calculator-card {
        padding: 1.5rem;
    }
    .calc-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .calc-row input,
    .calc-row select {
        width: 100%;
    }
    .calc-checkboxes {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Доработка лого */

.logo-3d-wrapper {
    width: 200px;   /* было 400px */
    height: 200px;  /* было 400px */
}
@media (max-width: 768px) {
    .logo-3d-wrapper {
        width: 140px;
        height: 140px;
    }
}
@media (max-width: 576px) {
    .logo-3d-wrapper {
        width: 100px;
        height: 100px;
    }
}

/* Скругление */

/* Закругление всех основных секций */
.hero-section,
.mission-section,
.features-section,
.business-benefits,
.clients-section,
.calculator-section {
    border-radius: 30px;
    overflow: hidden; /* чтобы внутренние элементы не выступали за скругления */
}

/* Для адаптива можно уменьшить радиус на мобильных */
@media (max-width: 768px) {
    .hero-section,
    .mission-section,
    .features-section,
    .business-benefits,
    .clients-section,
    .calculator-section {
        border-radius: 20px;
    }
}
@media (max-width: 480px) {
    .hero-section,
    .mission-section,
    .features-section,
    .business-benefits,
    .clients-section,
    .calculator-section {
        border-radius: 12px;
    }
}

/* ============================================
   КНОПКА ВХОДА – ЦВЕТ ЗАВИСИТ ОТ ТЕМЫ
   ============================================ */

/* По умолчанию (тёмная тема) – белый текст */
.btn-login {
    color: #ffffff;
    transition: color 0.3s ease;
}

/* При наведении в тёмной теме – акцентный цвет (например, голубой) */
.btn-login:hover {
    color: var(--accent-cyan);
}

/* Светлая тема – текст становится тёмно-фиолетовым */
.light-theme .btn-login {
    color: #4a148c; /* или #6d28d9, #5b21b6 – подберите оттенок */
}

/* При наведении в светлой теме – тоже акцентный цвет, но можно другой */
.light-theme .btn-login:hover {
    color: var(--accent-cyan);
}
