:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --accent: #06b6d4;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.85);
    --header-bg: rgba(255, 255, 255, 0);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --hero-bg: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
    --hero-text-color: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    overflow-x: hidden;
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
    font-weight: 400;
}

body.night-mode {
    --hero-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --hero-text-color: #f8fafc;
    --header-bg: rgba(15, 23, 42, 0.95);
}
/*
body.night-mode .logo h1 {
    background: linear-gradient(135deg, var(--hero-text-color) 0%, var(--hero-text-color) 100%);
    -webkit-background-clip: text;
}
*/

body.night-mode .logo .h1 span {
    color: #fff;
}

body.night-mode header{
    backdrop-filter: blur(3px);
}

/* Первый экран */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: var(--hero-bg);
    transition: background 0.8s ease;
}

/* Анимированный фон */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 25%);
    z-index: 0;
}

/* Шапка с непрозрачным фоном */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 1000;
    background: var(--header-bg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(224, 231, 255, 0.6);
}

/* Креативный анимированный логотип */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-svg {
    width: 45px;
    height: 45px;
    transition: var(--transition);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Новый вход в личный кабинет */
.account-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.account-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.account-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.account-btn:hover::before {
    left: 100%;
}

/* Основной контент */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 20px;
    margin-top: 60px;
    color: var(--hero-text-color);
}

/* Логотип */
.logo {
    margin-bottom: 40px;
}

/*
.logo h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.2px;
    line-height: 1.1;
    margin-bottom: 20px;
}
*/

.logo .h1 {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.logo .h1 span{
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.2px;
    line-height: 1.1
}

.logo canvas {
    display: inline-block;
    margin: 0 6px 0 20px;
}

.logo p, .logo h1{
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Анимация текста */
.typewriter-container {
    margin-bottom: 40px;
    height: 60px;
    display: flex;
    justify-content: center;
}

.typewriter {
    font-size: 2rem;
    display: inline-block;
    position: relative;
    font-weight: 400;
    color: var(--hero-text-color);
}

.typewriter::after {
    content: "|";
    position: absolute;
    right: -12px;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Слоган с анимацией */
.slogan {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--hero-text-color);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slogan-text {
    background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.slogan-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Кнопка */
.cta-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px 48px;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 110px;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-dark);
    transition: width 0.5s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.4);
}

.cta-button:hover::before {
    width: 100%;
}

/* Анимированная иконка мыши */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 2s infinite;
}

.mouse-icon {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    position: relative;
}

.mouse-icon::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 10px;
    background: var(--primary);
    border-radius: 3px;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-20px);
    }

    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 25px;
    }
}

/* Второй экран */
.pricing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 90% 10%, rgba(79, 70, 229, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 10% 90%, rgba(6, 182, 212, 0.03) 0%, transparent 25%);
    z-index: 0;
}

.pricing-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 10;
    width: 100%;
}

.pricing-heading {
    margin-bottom: 60px;
}

.pricing-heading h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
}

.pricing-heading p {
    font-size: 1.3rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(224, 231, 255, 0.6);
}

.pricing-card.featured {
    transform: translateY(-20px);
    border: 1px solid rgba(79, 70, 229, 0.2);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.15);
}

.pricing-card.featured .pricing-price {
    color: var(--primary);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: translateY(-25px);
}

.pricing-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    position: relative;
    color: var(--primary);
}

.pricing-icon::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.2;
}

.pricing-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.pricing-description {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 30px;
    min-height: 60px;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 25px 0;
    color: var(--dark);
    line-height: 1;
    min-height: 60px;
}

.pricing-price span {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gray);
}

.pricing-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.1rem;
}

.pricing-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 0;
    width: 100%;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: block;
    text-decoration: none;
}

.pricing-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-dark);
    transition: width 0.5s ease;
    z-index: -1;
}

.pricing-button.featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.pricing-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

.pricing-button:hover::before {
    width: 100%;
}

.pricing-note {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.pricing-note strong {
    color: var(--primary);
    font-weight: 600;
}

/* Пасхалка */
.easter-egg {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.easter-egg:hover {
    transform: scale(1.1) rotate(15deg);
}

.secret-message {
    position: fixed;
    bottom: 70px;
    right: 30px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    max-width: 250px;
    text-align: center;
    z-index: 1000;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.secret-message.active {
    opacity: 1;
    transform: translateY(0);
}

header canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
  }
  
  .modal-content {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  }
  
  .modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
  }
  
  .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
  }
  
  .submit-btn {
    background: #FF6B6B;
    color: white;
    border: none;
    padding: 14px 20px;
    width: 100%;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .submit-btn:hover {
    background: #FF5252;
  }

  .account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    overflow: hidden;
  }
  
  .account-btn:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #6a11cb, #2575fc, #6a11cb);
    background-size: 300% 300%;
    border-radius: 50%;
    z-index: -1;
    animation: gradient-pulse 4s ease infinite;
  }
  
  .account-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
  }
  
  .account-btn:hover {
    transform: scale(1.1) rotate(8deg);
  }
  
  .account-btn:hover .gear {
    animation: rotate 3s linear infinite;
  }
  
  .account-btn:hover .head {
    animation: pulse 1.5s ease-in-out infinite;
  }
  
  .account-btn:hover .key {
    animation: moveKey 1.2s ease-in-out infinite;
  }
  
  @keyframes gradient-pulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  @keyframes rotate {
    from { transform: translate(32px, 38px) rotate(0deg); }
    to { transform: translate(32px, 38px) rotate(360deg); }
  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }
  
  @keyframes moveKey {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-3px); }
  }
  
/* Адаптивность */
@media (max-width: 992px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card.featured {
        transform: translateY(0);
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    header {
        padding: 12px 20px;
    }

    .logo h1 {
        font-size: 3rem;
    }

    .slogan {
        font-size: 2.2rem;
        min-height: 180px;
    }

    .typewriter {
        font-size: 1.5rem;
    }

    .pricing-heading h2 {
        font-size: 2.2rem;
    }

    .scroll-indicator {
        bottom: 50px;
    }

    .account-btn span {
        display: none;
    }

    .account-btn i {
        margin: 0;
    }
    .logo h1 {
        font-size: 1.2rem;
    }
    .slogan-text {
        font-size: 1.7rem;
    }
}

#wavePatternCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
}

#dataClustersCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
}

#cookie-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

#cookie-notification.active {
    transform: translateY(0);
}

.cookie-text {
    flex-grow: 1;
    margin-right: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-text a {
    color: #3498db;
    text-decoration: underline;
}

#cookie-accept {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    transition: background 0.3s;
}

#cookie-accept:hover {
    background: #2980b9;
}

.main-section p{
    margin-bottom: 10px;
}

.main-section h3, 
.main-section h2,
.main-section h1{
    margin-bottom: 20px;
}

.main-section {
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
}

.main-section .container {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    margin: 20px 10px;
    max-width: 1200px;
}

.menu-bottom {
    display: flex;
    margin: 10px 0;
    justify-content: center;
}

.menu-bottom a{
    margin: 0 5px;
    color: #969696;
    text-decoration: dashed;
    font-size: 13px;
}