/* ===== СБРОС СТИЛЕЙ ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #0D0D0F;
    --bg-card: #16161A;
    --border: #2A2A2E;
    --accent: #4F7CFF;
    --accent-hover: #3d66e0;
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(13, 13, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}

.logo__icon {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 6px;
    transform: rotate(45deg);
    position: relative;
}

.logo__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 10px;
    height: 10px;
    background: var(--bg-main);
    border-radius: 2px;
}

.logo__text {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}

.nav__link:hover {
    color: var(--text-main);
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    font-family: inherit;
}

.btn--accent {
    background: var(--accent);
    color: white;
}

.btn--accent:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px rgba(79, 124, 255, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn--full {
    width: 100%;
}

/* ===== БУРГЕР ===== */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: all var(--transition);
    border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.hero__glow--1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -100px;
    right: -100px;
    opacity: 0.15;
}

.hero__glow--2 {
    width: 400px;
    height: 400px;
    background: #7C4FFF;
    bottom: -100px;
    left: -100px;
    opacity: 0.1;
}

.hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero__content {
    max-width: 800px;
}

.hero__badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(79, 124, 255, 0.1);
    border: 1px solid rgba(79, 124, 255, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A0A0A8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== СЕКЦИИ ===== */
.section {
    padding: 100px 0;
}

.section__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section__subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 600px;
}

/* ===== О СТУДИИ ===== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__text {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about__stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.stat-card__number {
    font-family: 'Unbounded', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-card__label {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== УСЛУГИ ===== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 10px 40px rgba(79, 124, 255, 0.1);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    background: rgba(79, 124, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.service-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-card__link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.service-card__link:hover {
    color: var(--accent-hover);
}

/* ===== ПРОЦЕСС ===== */
.process__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    position: relative;
    transition: all var(--transition);
}

.process-card:hover {
    border-color: var(--accent);
}

.process-card__number {
    font-family: 'Unbounded', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 16px;
    line-height: 1;
}

.process-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.process-card__desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== ПОРТФОЛИО ===== */
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.portfolio-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
}

.portfolio-card__image {
    height: 220px;
    background: linear-gradient(135deg, var(--bg-card) 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.portfolio-card__placeholder {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.5;
}

.portfolio-card__content {
    padding: 28px;
}

.portfolio-card__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.portfolio-card__desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.portfolio-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    padding: 4px 12px;
    background: rgba(79, 124, 255, 0.1);
    border: 1px solid rgba(79, 124, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent);
}

.portfolio-card__link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.portfolio-card__link:hover {
    color: var(--accent-hover);
}

/* ===== КОНТАКТЫ ===== */
.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacts__info-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contacts__info-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.contacts__tg-btn {
    display: inline-flex;
    align-items: center;
    margin-bottom: 40px;
}

.contact-item {
    margin-bottom: 16px;
}

.contact-item__label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-item__value {
    font-size: 16px;
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-item__value:hover {
    color: var(--accent);
}

/* ===== ФОРМА ===== */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
}

.form-error {
    display: block;
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    min-height: 16px;
}

.form-status {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    min-height: 20px;
}

.form-status.success { color: #10b981; }
.form-status.error { color: #ef4444; }

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ===== СЕЛЕКТОР МЕССЕНДЖЕРОВ ===== */
.messenger-selector {
    display: flex;
    gap: 12px;
}

.messenger-option {
    flex: 1;
    cursor: pointer;
}

.messenger-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.messenger-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
}

.messenger-option input[type="radio"]:checked + .messenger-label {
    border-color: var(--accent);
    background: rgba(79, 124, 255, 0.1);
    color: var(--accent);
}

.messenger-option input[type="radio"]:focus-visible + .messenger-label {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.messenger-label:hover {
    border-color: var(--accent);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__tagline {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 16px;
    max-width: 300px;
}

.footer__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
}

.footer__link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--accent);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
}

.footer__copy {
    color: var(--text-muted);
    font-size: 13px;
}

.footer__link--small {
    font-size: 13px;
    margin-bottom: 0;
}

/* ===== АДАПТИВНОСТЬ И ДОСТУПНОСТЬ ===== */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .nav {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero__buttons .btn {
        width: 100%;
    }
    
    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about__stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portfolio__grid {
        grid-template-columns: 1fr;
    }
    
    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Мобильное меню */
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 13, 15, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        gap: 20px;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav.active .nav__link {
        font-size: 18px;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav.active .btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 480px) {
    .about__stats {
        grid-template-columns: 1fr;
    }
}

::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@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;
    }
    .section {
        opacity: 1 !important;
        transform: none !important;
    }
}