:root {
    --bg-color: #cd90ff;
    --text-color: #FFFFFF;
    --text-secondary: #FFF;
    --accent-color: #8034DD;
    --accent-hover: #9450e6;
    --card-bg: #633b84;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Rubik Gemstones', system-ui;
    --gradient-blob: linear-gradient(180deg, #949BBB 0%, rgba(118, 21, 194, 0) 100%);
    --container-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.section { padding: 80px 0; }

/* === TYPOGRAPHY === */
h1, h2, h3 { font-weight: 700; line-height: 1.2; }
.display-text { font-family: var(--font-display); }

/* === HEADER (общий для всех страниц) === */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 20px 0;
    background: rgba(34, 34, 34, 0.9);
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-wrapper {
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 16px; font-weight: 700; color: #fff; }
.nav-menu { display: flex; gap: 40px; }
.nav-link {
    color: #fff; font-size: 16px; font-weight: 700;
    transition: color 0.3s ease;
}
.nav-link:hover { color: var(--accent-color); }
.mobile-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

/* === HERO SECTION (только для index.html) === */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; padding-top: 100px; overflow: hidden;
}
b {
    position: absolute; top: -100px; right: -100px;
    width: 600px; height: 1000px;
    background: var(--gradient-blob);
    border-radius: 121px; opacity: 0.4; z-index: 0;
}
.hero-content {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2;
}
.hero-text h1 { font-size: 64px; margin: 10px 0; line-height: 1.1; }
.hero-subtitle {
    font-size: 18px; color: rgba(255,255,255,0.8);
    margin-bottom: 40px; max-width: 500px; transform: rotate(-1deg);
}
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

/* === 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;
    text-decoration: none; gap: 10px;
}
.btn-outline {
    background: transparent; border: 3px 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: 3px 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 / ISSUES / PROCESS SECTIONS === */
.method-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
}
.method-text p { font-size: 20px; margin-bottom: 20px; color: #eee; }
.method-text ul { list-style: none; margin-top: 20px; }
.method-text li {
    position: relative; padding-left: 25px; margin-bottom: 10px;
    font-size: 18px; color: #ccc;
}
.method-text li::before {
    content: "•"; color: var(--accent-color); font-weight: bold;
    position: absolute; left: 0;
}
.method-title-big {
    font-size: 96px; line-height: 1; text-align: right; white-space: nowrap;
}

.issues-section { background-color: #1f1f1f; }
.section-header { margin-bottom: 50px; }
.section-title { font-size: 40px; margin-bottom: 10px; }
.section-desc { font-size: 18px; color: #aaa; }

.issues-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}
.issue-card {
    background: var(--card-bg); padding: 30px; border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s ease;
}
.issue-card:hover {
    transform: translateY(-5px); border-color: var(--accent-color);
}
.issue-card h3 { font-size: 20px; margin-bottom: 10px; color: #fff; }
.issue-card p { font-size: 15px; color: #aaa; line-height: 1.6; }

.process-list {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.process-item { display: flex; flex-direction: column; gap: 15px; }
.process-icon {
    width: 50px; height: 50px; background: rgba(128, 52, 221, 0.2);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--accent-color); font-size: 24px;
}
.process-item h4 { font-size: 18px; color: #fff; }
.process-item p { font-size: 16px; color: #aaa; }

/* === CTA / FOOTER === */
.cta-section {
    text-align: center; padding: 100px 0;
    background: radial-gradient(circle at center, #2a2a2a 0%, #222222 100%);
}
.cta-box { max-width: 800px; margin: 0 auto; }
.cta-title { font-size: 48px; margin-bottom: 20px; }
.cta-text { font-size: 20px; color: #ccc; margin-bottom: 40px; }

footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 40px 0; text-align: center; font-size: 14px; color: #666;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-subtitle { margin: 0 auto 40px auto; }
    .method-grid { grid-template-columns: 1fr; }
    .method-title-big { text-align: left; font-size: 72px; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    .hero-text h1 { font-size: 42px; }
    .section-title { font-size: 32px; }
    .method-title-big { font-size: 60px; }
}
/* === КАРТИНКА В КАРТОЧКЕ (index.html) === */
.card-image {
    width: 100%;
    height: 220px;  /* Фиксированная высота как у карточки */
    background-color: #333;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;  /* Скругление только сверху */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Красиво обрезает без искажений */
    object-position: center;
    display: block;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

/* Лёгкий зум при наведении на карточку */
.article-card:hover .card-image img {
    transform: scale(1.05);
}

/* Плейсхолдер если нет картинки */
.card-image img[src*="svg+xml"] {
    object-fit: contain;
    padding: 20px;
    opacity: 0.8;
}
/* === HERO IMAGE (только для index.html) === */
.hero-image-wrapper {
    /* Занимает правую колонку грида */
    width: 100%;
    max-width: 450px;  /* Ограничение ширины */
    margin-left: auto; /* Прижимает вправо в гриде */
}

.hero-image {
    width: 100%;
    height: auto;      /* Пропорции сохраняются */
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: translateY(-5px); /* Лёгкий подъём при наведении */
}

/* Адаптив для мобильных */
@media (max-width: 1024px) {
    .hero-image-wrapper {
        margin: 40px auto 0; /* Центрируем на мобильных */
        max-width: 400px;
    }
}
@media (max-width: 768px) {
    .hero-image-wrapper {
        max-width: 300px;
    }
    .hero-image {
        border-radius: 16px;
    }
}

/* === HERO IMAGE: прямоугольник, прижат вправо и вверх === */

/* Контейнер-обёртка */
.hero-image-absolute {
    position: absolute;
    top: 80px;              /* Отступ под фиксированный хедер (~60px + 20px) */
    right: 0;               /* ✅ Прижато к правому краю экрана */
    width: 45vw;            /* 45% ширины экрана — прямоугольная форма */
    height: 70vh;           /* 70% высоты viewport — вертикальное выравнивание */
    min-width: 300px;       /* Мин. ширина для мобильных */
    min-height: 400px;      /* Мин. высота */
    z-index: 1;             /* Ниже текста, но выше фона */
    pointer-events: none;   /* Клик проходит сквозь изображение */
}

/* Само изображение */
.hero-image-rect {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* ✅ Красивый кроп без искажений */
    object-position: center top; /* Фокус на лице/верхней части */
    display: block;
    border-radius: 20px 0 0 20px; /* Скругление только слева */
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5); /* Тень только слева для глубины */
    transition: transform 0.5s ease;
}

/* Лёгкий эффект при наведении (опционально) */
.hero-image-absolute:hover .hero-image-rect {
    transform: translateX(-5px); /* Сдвиг влево при ховере */
}

/* === АДАПТИВ === */
@media (max-width: 1024px) {
    .hero-image-absolute {
        top: 70px;
        width: 50vw;
        height: 60vh;
        min-height: 350px;
    }
    .hero-image-rect {
        border-radius: 16px 0 0 16px;
    }
}

@media (max-width: 768px) {
    .hero-image-absolute {
        position: relative;   /* На мобильных — обычный поток */
        top: auto;
        right: auto;
        width: 100%;
        max-width: 400px;
        height: 300px;
        margin: 30px auto 0;
        pointer-events: auto; /* Включаем клики на мобильных */
    }
    .hero-image-rect {
        border-radius: 16px; /* Все углы скруглены на мобильных */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
}
/* === HERO IMAGE: компактное, прижато вправо и вверх === */

.hero-image-fixed {
  position: absolute;
  top: 0;
  right: 0;
  width: 857px;
  height: 1200px;
  z-index: 1;
  pointer-events: none;
}
.hero-image-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* ✅ Красивый кроп без искажений */
    object-position: center;   /* ✅ Центр кадра */
    display: block;
    border-radius: 16px 0 0 16px; /* Скругление только слева */
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

/* === АДАПТИВ: на планшетах и мобильных меньше === */
@media (max-width: 1200px) {
    .hero-image-fixed {
        width: 320px;
        height: 420px;
    }
}
@media (max-width: 768px) {
    .hero-image-fixed {
        position: relative;    /* На мобильных — обычный поток */
        top: auto;
        right: auto;
        width: 100%;
        max-width: 350px;
        height: 280px;
        margin: 20px auto 0;
        pointer-events: auto;
    }
    .hero-image-fixed img {
        border-radius: 16px;   /* Все углы скруглены */
    }
}

