/* ============================================
   Общие стили и сброс
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #7c3aed;
    --color-text: #0f172a;
    --color-text-light: #64748b;
    --color-bg: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-border: #e2e8f0;

    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;

    --transition: 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   Контейнер
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Секции
   ============================================ */

.section {
    padding: 120px 0;
}

.section__title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

/* ============================================
   Шапка
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav__link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--color-primary);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 28px;
    z-index: 1001;
}

.burger span {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   Мобильное меню
   ============================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 999;
    padding: 100px 24px 40px;
    transition: right 0.4s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-menu__link {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
}

/* ============================================
   Кнопки
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-text);
    color: #fff;
}

.btn--primary:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    border: 2px solid var(--color-text);
    color: var(--color-text);
}

.btn--outline:hover {
    background-color: var(--color-text);
    color: #fff;
}

.btn--large {
    padding: 18px 36px;
    font-size: 16px;
}

/* ============================================
   Главный экран (Hero)
   ============================================ */

.hero {
    padding-top: 160px;
    padding-bottom: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero__title {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.text-accent {
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: clamp(18px, 2vw, 20px);
    color: var(--color-text-light);
    line-height: 1.7;
}

.hero__image {
    position: relative;
}

.hero__photo {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Бегущая строка
   ============================================ */

.marquee {
    background-color: var(--color-text);
    color: #fff;
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee__content {
    display: inline-flex;
    gap: 40px;
    animation: marquee 30s linear infinite;
}

.marquee__content span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   Обо мне
   ============================================ */

.about__inner {
    max-width: 900px;
}

.about__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 60px;
}

.about__text strong {
    color: var(--color-text);
    font-weight: 600;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat {
    text-align: center;
    padding: 32px;
    background-color: var(--color-bg-secondary);
    border-radius: 16px;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat__number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.stat__label {
    font-size: 16px;
    color: var(--color-text-light);
}

/* ============================================
   Услуги
   ============================================ */

.services {
    background-color: var(--color-bg-secondary);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background-color: var(--color-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-secondary);
    border-radius: 12px;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.service-card__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.service-card__description {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-card__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

/* ============================================
   Работы
   ============================================ */

.works__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.work-card {
    background-color: var(--color-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.work-card__image {
    width: 100%;
    height: 240px;
    background-color: var(--color-bg-secondary);
    overflow: hidden;
}

.work-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.work-card:hover .work-card__image img {
    transform: scale(1.05);
}

.work-card__content {
    padding: 28px;
}

.work-card__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.work-card__description {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.work-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    transition: var(--transition);
}

.work-card__link:hover {
    gap: 10px;
}

/* ============================================
   Процесс работы
   ============================================ */

.process {
    background-color: var(--color-bg-secondary);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.process-step {
    position: relative;
    padding: 40px 32px;
    background-color: var(--color-bg);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.process-step__number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.2;
    margin-bottom: 16px;
    line-height: 1;
}

.process-step__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.process-step__description {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   FAQ
   ============================================ */

.faq__list {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--color-primary);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.faq-item__question svg {
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.active .faq-item__question svg {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-item__answer {
    max-height: 300px;
}

.faq-item__answer p {
    padding: 0 28px 24px;
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   Контакты
   ============================================ */

.contact {
    background: linear-gradient(135deg, var(--color-primary) 0%, #5b21b6 100%);
    color: #fff;
}

.contact__inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact__title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact__subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.contact__buttons .btn--primary {
    background-color: #fff;
    color: var(--color-primary);
}

.contact__buttons .btn--primary:hover {
    background-color: var(--color-bg-secondary);
    transform: translateY(-2px);
}

.contact__buttons .btn--outline {
    border-color: #fff;
    color: #fff;
}

.contact__buttons .btn--outline:hover {
    background-color: #fff;
    color: var(--color-primary);
}

.contact__email {
    font-size: 16px;
    opacity: 0.9;
}

.contact__email a {
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.contact__email a:hover {
    border-bottom-color: #fff;
}

/* ============================================
   Футер
   ============================================ */

.footer {
    background-color: var(--color-text);
    color: #fff;
    padding: 80px 0 32px;
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer__logo {
    color: #fff;
    margin-bottom: 16px;
}

.footer__text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer__nav,
.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--color-primary);
}

.footer__socials {
    display: flex;
    gap: 16px;
}

.footer__social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    transition: var(--transition);
}

.footer__social:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

.footer__bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ============================================
   Анимации
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s ease forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Адаптивность
   ============================================ */

@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero__image {
        order: -1;
    }

    .hero__photo {
        max-width: 280px;
    }

    .section {
        padding: 80px 0;
    }

    .about__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .stat {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .header__inner .btn {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 80px;
        min-height: auto;
    }

    .section {
        padding: 60px 0;
    }

    .section__title {
        margin-bottom: 40px;
    }

    .about__stats {
        grid-template-columns: 1fr;
    }

    .services__grid,
    .works__grid {
        grid-template-columns: 1fr;
    }

    .process__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header__inner {
        height: 70px;
    }

    .logo {
        font-size: 20px;
    }

    .hero__photo {
        max-width: 240px;
    }

    .stat__number {
        font-size: 36px;
    }

    .service-card,
    .process-step {
        padding: 28px 20px;
    }

    .work-card__content {
        padding: 20px;
    }
}
