* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #0B0C10;
    --bg-dark: #1e2a3a;
    --bg-card: #2a3a4f;
    --border: #2d3748;
    --text-main: #e8edf5;
    --text-muted: #8B949E;
    --text-secondary: #a0b0c0;
    --accent: #00D9A3;
    --accent-hover: #00b88a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}


/* ============================================ */
/*            СЕКЦИЯ "МОИ РАБОТЫ"               */
/* ============================================ */
.portfolio {
    padding: 80px 0 100px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-main);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    align-items: stretch;
}


.category-title {
    text-align: center;
    font-size: 22px;
    font-weight: 00;
    margin-bottom: 20px;
    color: var(--text-main);
}

.mini-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}

.mini-track::-webkit-scrollbar {
    display: none;
}

.mini-slide {
    flex: 0 0 100%;
    aspect-ratio: 16 / 9;
    min-height: 20px;
    border-radius: 12px;
    scroll-snap-align: start;
    background-size: cover;
    background-position: center;
}

#infographics .mini-slide {
    background-size: cover;
    background-position: center 20%;
}

#logos .mini-slide {
    background-size: 80%;
    background-position: center 45%;
}

#neuro .mini-slide {
    background-size: cover;
    background-position: center 20%;
}

.mini-btn {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s;
}

.mini-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    
    /* СЕКЦИЯ "ОБО МНЕ" — фото слева, текст обтекает */
    .about {
        padding: 30px 20px !important;
    }
    
    .about .container {
        display: block !important; /* Убираем flex */
    }
    
    /* Фото плавает слева */
    .about img,
    .about .avatar {
        float: left;
        width: 120px;
        height: 120px;
        margin: 0 15px 15px 0; /* Отступ справа и снизу */
        display: block;
    }
    
    /* Текст обтекает фото */
    .about-text {
        width: 100%;
        overflow: hidden; /* Чтобы текст не вылезал */
    }
    
    .about-text p {
        font-size: 14px;
        line-height: 1.6;
        text-align: left;
        margin: 0 0 15px 0;
    }
    
    /* Очистка float после секции */
    .about::after {
        content: "";
        display: table;
        clear: both;
    }
}
/* ============================================ */
/*              СЕКЦИЯ "ОБО МНЕ"                */
/* ============================================ */


.about {
    padding-top: 60px;
}

.stat-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.about-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-main {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 30px;
    overflow: hidden;
}

.about-avatar {
    float: left;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 10px 25px 15px 0;
    border: 3px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 217, 163, 0.2);
    object-fit: cover;
    shape-outside: circle(50%);
}

.about-text-box {
    overflow: hidden;
}

.about-text-box p {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.about-text-box p:last-child {
    margin-bottom: 0;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    min-width: 300px;
    flex: 0 0 380px;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 160px; /* ← фиксируем высоту вместо min-height */
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}
@media (max-width: 1024px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-stats {
        width: 100%;
    }
}
/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 1100px) {
    .about-wrapper {
        flex-direction: column;
    }
    
    .about-stats {
        flex: none;
        min-width: 100%;
        width: 100%;
    }
    
    .about-main {
        width: 100%;
    }
}
.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.logo-sub {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 18px;
}

/* ============================================ */
/*              СЕКЦИЯ "ПРАЙС"                  */
/* ============================================ */

.price-section {
    padding: 80px 0;
    min-height: 100vh;
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 60px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s;
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 217, 163, 0.15);
}

.price-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.price-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.price-description {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.price-amount {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 25px;
}

.price-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.price-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 15px;
}

.price-features li:last-child {
    border-bottom: none;
}

.price-button {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.price-button:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.price-note {
 grid-column: 1 / -1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.price-note p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0;
}

/* ============================================ */
/*                    ФУТЕР                     */
/* ============================================ */
footer {
    background: var(--bg-card);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* Активная ссылка в меню */
.nav-links a.active {
    color: var(--accent);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .price-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .price-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
}
/* ============================================ */
/*              БЕЙДЖ "МИНИМАЛЬНЫЙ ПАКЕТ"       */
/* ============================================ */
.price-badge {
    display: inline-block;
    background: var(--accent);
    color: #0a0a0f;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-note {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: -15px;
    margin-bottom: 20px;
    font-style: italic;
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column; /* ← добавляем */
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 217, 163, 0.15);
}

.price-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1; /* ← добавляем: растягивает список, чтобы кнопка была внизу */
}

.price-button {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto; /* ← добавляем: прижимает кнопку к низу */

}
/* ============================================ */
/*         МОДАЛЬНОЕ ОКНО (КОНФИГУРАТОР)        */
/* ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--accent);
}

.modal h2 {
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 28px;
}

.modal-description {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 15px;
}

.modal-options {
    margin-bottom: 30px;
}

.modal-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-card); /* Было var(--bg-main), стало светлее */
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.modal-option:hover {
    border-color: var(--accent);
}

/* Добавляем cursor: pointer только на кликабельные элементы */
.modal-option input[type="checkbox"],
.modal-option input[type="radio"],
.modal-option label {
    cursor: pointer;
}

.modal-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.modal-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.modal-option label {
    flex: 1;
    margin-left: 15px;
    color: var(--text-main);
    font-size: 15px;
}

.modal-option .option-price {
    color: var(--accent);
    font-weight: bold;
    font-size: 15px;
    margin-left: 15px;
}
.option-group-title:first-of-type {
    margin-top: 10px;
}
.modal-submit {
    width: 100% !important;
    padding: 15px !important;
    background: var(--accent) !important;
    color: #0a0a0f !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    margin-top: 20px;
}

.modal-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    margin-top: 20px;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-main);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

.modal-input:focus {
    border-color: var(--accent);
    background: rgba(0, 217, 163, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 217, 163, 0.1);
}

.modal-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Подписи к полям */
.modal-input {
    width: 100%;
    padding: 14px 16px;
    background: #1F2833; /* Было #0B0C10, стало как у карточек сайта */
    border: 2px solid #2d3748;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}
.modal-input:focus {
    border-color: #00D9A3;
    background: rgba(0, 217, 163, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 217, 163, 0.15);
}

.modal-input::placeholder {
    color: #6B7280;
    opacity: 1;
}

.modal-textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
    font-family: inherit;
    line-height: 1.5;
}

.modal-input-label {
    color: #8B949E;
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}

.modal-input-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.modal-contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 20px;
    margin-bottom: 25px;
}
.modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.1), rgba(0, 217, 163, 0.05));
    border: 2px solid #00D9A3;
    border-radius: 12px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.modal-total span:first-child {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: bold;
}

.modal-total span:last-child {
    color: #00D9A3;
    font-size: 28px;
    font-weight: bold;
}

/* ============================================ */
/*         СТРАНИЦА КОНТАКТОВ                   */
/* ============================================ */

.page-title {
    text-align: center;
    font-size: 42px;
    color: var(--text-main);
    margin-bottom: 15px;
    margin-top: 60px;
}

.page-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 50px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 163, 0.1);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-title {
    color: var(--text-main);
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.contact-link {
    display: inline-block;
    color: var(--accent);
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 25px;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #00b88a;
}

.qr-code {
    background: #FFFFFF;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    margin-top: auto; /* Прижимает QR к низу карточки */
}

.qr-code img {
    width: 200px; /* Уменьшили с 280px */
    height: 200px;
    display: block;
}
.contact-info {
    max-width: 600px;
    margin: 0 auto 60px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    text-align: center;
}

.contact-info h3 {
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 10px;
}
/* ============================================ */
/*         СЕКЦИЯ "МОИ РАБОТЫ" С ОБВОДКОЙ       */
/* ============================================ */

.works-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 30px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 15px;
    transition: border-color 0.3s;
}

.works-section:hover {
    border-color: var(--accent);
}

.works-title {
    text-align: center;
    font-size: 36px;
    color: var(--text-main);
    margin-bottom: 40px;
    margin-top: 0;
}
/* ============================================ */
/*         ЧЕКБОКС ПОДТВЕРЖДЕНИЯ                */
/* ============================================ */

.modal-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 217, 163, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.modal-checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    accent-color: #00D9A3;
    cursor: pointer;
}

.modal-checkbox-wrapper label {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.modal-checkbox-wrapper label:hover {
    color: var(--text-main);
}
/* ============================================ */
/*         ШАПКА САЙТА (HEADER)                 */
/* ============================================ */

.header {
    background: #141b24; /* Тёмно-синий, темнее чем у сайта */
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: var(--accent);
}

.logo-sub {
    font-size: 16px;
    color: var(--text-muted);
}

.nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.email-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.email-text {
    color: var(--accent);
    font-size: 14px;
    font-weight: bold;
}

.copy-email-btn {
    background: var(--accent);
    color: #0a0a0f;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-email-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.copy-email-btn.copied {
    background: #4CAF50;
    color: white;
}
/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (экраны меньше 768px)
   ============================================ */

@media (max-width: 768px) {
    
    /* ШАПКА — логотип сверху, меню снизу */
    .header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .header .logo {
        margin-bottom: 5px;
    }
    
    .header nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .header nav a {
        font-size: 14px;
        padding: 8px 12px;
        white-space: nowrap; /* Запрещаем перенос ссылок */
    }
    
    /* СЕКЦИЯ "ОБО МНЕ" — картинка сверху, текст снизу */
    .about {
        flex-direction: column !important;
        padding: 30px 20px !important;
        gap: 20px;
        align-items: center;
    }
    
    .about img,
    .about .avatar {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        flex-shrink: 0; /* Запрещаем сжимать картинку */
    }
    
    .about-text {
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .about-text p {
        text-align: center;
        word-wrap: break-word; /* Переносим длинные слова */
        overflow-wrap: break-word;
        hyphens: auto; /* Автоматические переносы */
    }
    
    /* УМЕНЬШАЕМ ОТСТУПЫ */
    .portfolio {
        padding: 30px 15px !important;
    }
    
    section {
        padding: 30px 15px !important;
    }
    
    /* КАРТОЧКИ ПОРТФОЛИО — в одну колонку */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* ЗАГОЛОВКИ — меньше размер */
    h1 {
        font-size: 24px;
        word-wrap: break-word;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    /* ТЕКСТ — нормальный размер */
    p {
        font-size: 14px;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* КОНТЕЙНЕРЫ — убираем фиксированную ширину */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* ============================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (меньше 480px)
   ============================================ */

@media (max-width: 480px) {
    
    .header {
        padding: 10px 15px;
    }
    
    .header nav a {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .about img,
    .about .avatar {
        width: 120px;
        height: 120px;
    }
    
    .about {
        padding: 20px 15px !important;
    }
    
    .portfolio {
        padding: 20px 10px !important;
    }
    
    section {
        padding: 20px 10px !important;
    }
    
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    p {
        font-size: 13px;
    }
}