/* === CSS VARIABLES === */
:root {
    --bg-color: #cd90ff;
    --text-color: #FFFFFF;
    --text-secondary: #FFF;
    --accent-color: #8034DD;
    --accent-hover: #9450e6;
    --card-bg: #723395;
    --anim-duration: 0.6s;
    --anim-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* === RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-weight: bold;
}
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
.font-display { font-family: 'Rubik Gemstones', system-ui; }
.text-accent { color: var(--accent-color); }

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 80px 0; }

/* === HEADER === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(179, 123, 200, 0.95);
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    border: 2px solid;
    border-radius: 12px;
    padding: 4px 16px;
}
.nav-menu {
    display: flex;
    gap: 32px;
}
.nav-link {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}
.nav-link:hover { color: var(--accent-color); }
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}
.mobile-menu {
    display: none;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 20px 24px;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 125vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero-text {
    padding-left: 50px;
    max-width: 600px;
}
.hero-text p:first-child {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 8px;
}
.hero-text h1 {
    font-size: clamp(42px, 8vw, 72px);
    margin: 10px 0 20px;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 500px;
    transform: rotate(-1deg);
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-image-fixed {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    max-width: 1240px;
    height: 137vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.hero-image-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%);
    transition: transform 0.3s ease;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn:hover::before { left: 100%; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: #fff;
}
.btn-outline:hover {
    background: rgba(128, 52, 221, 0.1);
    transform: translateY(-2px);
}
.btn-primary {
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(128, 52, 221, 0.4);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 52, 221, 0.6);
}

/* === METHOD SECTION === */
.method-section {
    background: var(--bg-color);
    padding: 120px 0;
    overflow: hidden;
    position: relative;
}
.method-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.method-content {
    padding-right: 40px;
}
.method-content h2 {
    font-size: clamp(40px, 5vw, 60px);
    margin-bottom: 30px;
    line-height: 1.1;
}
.method-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.7;
    opacity: 0.9;
}
.method-note {
    margin-top: 30px; 
    font-size: 16px; 
    opacity: 0.8;
}
.method-list {
    list-style: none;
    margin: 30px 0;
}
.method-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 17px;
    color: #fff;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s var(--anim-ease);
}
.method-list li.revealed {
    opacity: 1;
    transform: translateX(0);
}
.method-list li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.method-visuals {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.method-main-image {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.2));
    animation: floatMain 6s ease-in-out infinite;
}
.floater {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    z-index: 20;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s var(--anim-ease);
}
.floater.revealed {
    opacity: 1;
    transform: scale(1);
}
.floater-icon {
    margin-right: 8px;
    font-size: 18px;
}
.floater-1 {
    top: 10%;
    left: 0;
    animation: floatItem 5s ease-in-out infinite 0.5s;
}
.floater-2 {
    top: 15%;
    right: 0;
    animation: floatItem 7s ease-in-out infinite 1s;
    background: rgba(128, 52, 221, 0.3);
}
.floater-3 {
    bottom: 15%;
    left: 10%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rubik Gemstones', system-ui;
    font-size: 24px;
    color: var(--accent-color);
    background: #fff;
    animation: floatItem 6s ease-in-out infinite 2s;
}
.floater-4 {
    bottom: 5%;
    right: 5%;
    max-width: 180px;
    white-space: normal;
    animation: floatItem 8s ease-in-out infinite 1.5s;
    text-align: center;
}
.method-bg-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(128, 52, 221, 0.4) 0%, rgba(128, 52, 221, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(40px);
}
.method-quote {
    margin-top: 40px;
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-left: 4px solid var(--accent-color);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s var(--anim-ease);
}
.method-quote.revealed {
    opacity: 1;
    transform: scale(1);
}
.method-quote p {
    font-style: italic;
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
}
.method-quote span {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === ISSUES SECTION === */
.issues-section {
    background-color: #9953d3;
    padding: 100px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 12px;
}
.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
}
.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.issue-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s var(--anim-ease);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.issue-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
.issue-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.issue-card h3 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}
.issue-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.issue-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 52, 221, 0.15);
    border-radius: 16px;
    border: 1px solid rgba(128, 52, 221, 0.3);
    font-size: 36px;
    transition: transform 0.3s ease;
}
.issue-card:hover .issue-icon {
    transform: scale(1.1) rotate(3deg);
}

/* === PROCESS SECTION === */
.process-section {
    padding: 100px 0;
}
.process-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.process-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s var(--anim-ease);
}
.process-item.revealed {
    opacity: 1;
    transform: translateY(0);
}
.process-icon {
    width: 64px;
    height: 64px;
    background: rgba(128, 52, 221, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 28px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.process-item.revealed .process-icon {
    animation: iconPop 0.5s var(--anim-ease) forwards;
}
.process-item:hover .process-icon {
    background: rgba(128, 52, 221, 0.4);
    transform: scale(1.1) rotate(5deg);
}
.process-item h4 {
    font-size: 20px;
    color: #fff;
}
.process-item p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* === FOOTER === */
.footer-container {
    background: linear-gradient(135deg, #4c1d95 0%, #9d3bff 50%, #755d99 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.decor-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
}
.circle-1 { width: 300px; height: 300px; top: -100px; right: -50px; }
.circle-2 { width: 200px; height: 200px; bottom: 20px; left: -50px; }
.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}
.contact-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
.social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}
.social-icon-img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}
.contact-card:hover .social-icon svg,
.contact-card:hover .social-icon-img {
    transform: scale(1.1);
}
.link-text {
    text-decoration: none;
    color: inherit;
}
.link-text:hover {
    color: #e9d5ff;
}
.about-title {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    letter-spacing: -1px;
}
.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 200px;
    height: 5px;
    background: #764ba2;
    border-radius: 10px;
}
.section-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}
.section-divider .shape-fill {
    fill: #9953d3;
}

/* === SCROLL REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--anim-duration) var(--anim-ease),
                transform var(--anim-duration) var(--anim-ease);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity var(--anim-duration) var(--anim-ease),
                transform var(--anim-duration) var(--anim-ease);
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--anim-duration) var(--anim-ease),
                transform var(--anim-duration) var(--anim-ease);
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}
/* Stagger delays for lists/cards */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
/* Parallax effect for hero image */
.hero.parallax-active .hero-image-fixed img {
    transform: translateY(var(--parallax-offset, 0));
}

/* === ANIMATIONS === */
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 30px) scale(1.05); }
}
@keyframes iconPop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes floatMain {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes floatItem {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

/* === RESPONSIVE DESKTOP/TABLET === */
@media (max-width: 1024px) {
    .hero-image-fixed {
        position: relative;
        width: 100%;
        max-width: 1000px;
        height: 800px;
        margin: 40px auto 0;
        pointer-events: auto;
        -webkit-mask-image: none;
        mask-image: none;
        border-radius: 20px;
        overflow: hidden;
    }
    .hero {
        min-height: auto;
        padding-bottom: 60px;
    }
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-text {
        padding-left: 0;
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-subtitle {
        margin: 0 auto 40px;
        transform: none;
    }
    .method-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .method-content {
        padding-right: 0;
        text-align: center;
    }
    .method-list {
        text-align: left;
        display: inline-block;
    }
    .method-visuals {
        height: 500px;
        order: -1;
    }
    .method-main-image {
        max-width: 350px;
    }
}

/* === МОБИЛЬНАЯ АДАПТАЦИЯ HERO SECTION === */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    /* Hero mobile styles */
    .hero {
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 0;
        display: flex;
        align-items: flex-end;
    }
    .hero-image-fixed {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        z-index: 1;
        pointer-events: none;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .hero-image-fixed img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }
    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            to bottom,
            rgba(128, 52, 221, 0.2) 0%,
            rgba(128, 52, 221, 0.4) 40%,
            rgba(114, 51, 149, 0.7) 100%
        );
        z-index: 1;
        pointer-events: none;
    }
    .hero-content {
        position: relative;
        z-index: 2;
        width: 100%;
        padding-bottom: 40px;
        align-items: flex-start;
        text-align: left;
    }
    .hero-text {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        background: transparent;
    }
    .hero-text p:first-child {
        font-size: 16px;
        margin-bottom: 4px;
        opacity: 0.95;
    }
    .hero-text h1 {
        font-size: clamp(32px, 9vw, 48px);
        margin: 8px 0 12px;
        line-height: 1.15;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    .hero-subtitle {
        font-size: clamp(14px, 3.5vw, 17px);
        margin-bottom: 24px;
        color: rgba(255, 255, 255, 0.95);
        transform: none;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
        line-height: 1.5;
    }
    .hero-buttons {
        gap: 12px;
        flex-wrap: wrap;
    }
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 600;
    }
    .btn svg {
        width: 18px;
        height: 18px;
    }
    /* Method mobile */
    .floater {
        font-size: 12px;
        padding: 10px 15px;
    }
    .floater-1 { left: -10px; }
    .floater-2 { right: -10px; }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 14px;
    }
    .btn {
        padding: 10px 18px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
