:root {
    --color-primary: #1a1a2e;
    --color-accent: #ff6b35;
    --color-white: #ffffff;
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); font-size: 16px; line-height: 1.6; color: #333; }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: #000;
    color: #fff;
    padding: 10px 14px;
    border-radius: 4px;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; background: rgba(26,26,46,0.95); backdrop-filter: blur(10px); }
.nav__container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo { text-decoration: none; flex-shrink: 0; }
.logo__text { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--color-white); display: inline-block; white-space: nowrap; line-height: 1.1; }
.logo__accent { color: var(--color-accent); }
.logo__image {
    display: block;
    width: 140px;
    height: auto;
    /* Не перекрашиваем логотип: используем исходные цвета изображения */
    filter: none;
}
.logo__image--footer {
    width: 150px;
    margin-bottom: 8px;
}
.nav__menu { display: flex; gap: 32px; list-style: none; align-items: center; flex-wrap: nowrap; }
.nav__link { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; transition: 0.3s; text-decoration: none; white-space: nowrap; }
.nav__link:hover { color: var(--color-accent); }
.nav__link--cta { background: var(--color-accent); padding: 10px 24px; border-radius: 4px; color: white; }
.nav__call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 4px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.25s ease;
}
.nav__call:hover { background: #e85a28; }
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero */
.hero { min-height: 100vh; background: var(--color-primary); color: white; display: flex; align-items: center; padding-top: 100px; position: relative; overflow: hidden; }
.hero__bg-image { position: absolute; inset: 0; background: linear-gradient(rgba(26,26,46,0.9), rgba(26,26,46,0.85)), url('../assets/images/hero-bg.jpg') center/cover; z-index: 0; }
.hero__container { position: relative; z-index: 1; }
.hero__container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tag { display: inline-block; padding: 8px 16px; background: rgba(255,107,53,0.15); color: var(--color-accent); font-size: 12px; font-weight: 600; text-transform: uppercase; border-radius: 4px; margin-bottom: 24px; }
.hero__title { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1.1; margin-bottom: 24px; }
.text-accent { color: var(--color-accent); }
.hero__subtitle { font-size: 18px; color: rgba(255,255,255,0.7); margin-bottom: 40px; max-width: 500px; }
.hero__actions { display: flex; gap: 16px; margin-bottom: 60px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 14px; font-weight: 600; padding: 16px 32px; border-radius: 4px; border: none; cursor: pointer; transition: 0.3s; text-decoration: none; }
.btn--primary { background: var(--color-accent); color: white; }
.btn--primary:hover { background: #e85a28; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.hero__stats { display: flex; gap: 48px; }
.stat-item__number { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--color-accent); }
.stat-item__label { font-size: 13px; color: rgba(255,255,255,0.5); display: block; }

/* Sections */
.section { padding: 120px 0; }
.section--dark { background: var(--color-primary); color: white; }
.section__header { margin-bottom: 64px; }
.section__tag { color: var(--color-accent); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 16px; }
.section__title { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.2; color: var(--color-primary); }
.section--dark .section__title { color: white; }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__image { border-radius: 8px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.about__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__lead { font-size: 20px; font-weight: 500; margin-bottom: 24px; color: var(--color-primary); }
.about__text { color: #666; margin-bottom: 40px; }
.about__features { display: flex; flex-direction: column; gap: 16px; }
.feature-check { display: flex; align-items: center; gap: 12px; }
.feature-check::before { content: '✓'; width: 24px; height: 24px; background: rgba(255,107,53,0.1); color: var(--color-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }

/* Services */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 40px 32px; border-radius: 8px; transition: 0.3s; }
.service-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); border-color: var(--color-accent); }
.service-card h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 12px; color: white; }
.service-card p { color: rgba(255,255,255,0.6); font-size: 15px; }

/* Projects */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.project-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: 0.3s; }
.project-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.project-card__image { height: 240px; overflow: hidden; background: #f0f0f0; }
.project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.project-card:hover .project-card__image img { transform: scale(1.05); }
.project-card__content { padding: 28px; }
.project-card__content h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 12px; color: var(--color-primary); }
.project-card__content p { color: #666; font-size: 15px; margin-bottom: 16px; }
.project-card__year { display: inline-block; padding: 6px 16px; background: rgba(255,107,53,0.1); color: var(--color-accent); font-size: 13px; font-weight: 600; border-radius: 4px; }

@media (max-width: 1024px) {
    .projects__grid { grid-template-columns: repeat(2, 1fr); }
    .nav__menu { gap: 20px; }
    .nav__link { font-size: 13px; }
    .logo__image { width: 124px; }
    .nav__call { padding: 9px 12px; font-size: 13px; }
}
@media (max-width: 768px) {
    .projects__grid { grid-template-columns: 1fr; }
}

/* Advantages */
.advantages__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.advantage-card { padding: 40px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid var(--color-accent); }
.advantage-card__num { font-family: var(--font-display); font-size: 48px; font-weight: 800; color: rgba(255,107,53,0.2); line-height: 1; margin-bottom: 16px; display: block; }
.advantage-card h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 12px; color: var(--color-primary); }
.advantage-card p { color: #666; }

/* Process */
.process__steps { display: flex; gap: 24px; }
.step { flex: 1; text-align: center; padding: 40px 24px; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); }
.step__num { width: 48px; height: 48px; background: var(--color-accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; margin: 0 auto 20px; }
.step h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 12px; color: white; }
.step p { color: rgba(255,255,255,0.6); font-size: 14px; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact__lead { font-size: 18px; color: #666; margin-bottom: 40px; }
.contact__details { display: flex; flex-direction: column; gap: 24px; }
.contact__form-wrapper { display: flex; justify-content: flex-end; align-items: flex-start; }
.contact-form { width: 100%; max-width: 520px; }
.btn--full { width: 100%; justify-content: center; }
.contact-item strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 8px; }
.contact-item a, .contact-item span { font-size: 18px; color: var(--color-primary); font-weight: 500; }
.contact-item a:hover { color: var(--color-accent); }

/* Form */
.contact-form { background: #f8f9fa; padding: 48px; border-radius: 8px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--color-primary); }
.form-group input, .form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid #ddd; border-radius: 4px; font-size: 15px; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-accent); }

/* Footer */
.footer { background: var(--color-primary); color: white; padding: 60px 0; }
.footer__content { display: flex; justify-content: space-between; align-items: center; }
.footer__logo p { color: rgba(255,255,255,0.6); margin-top: 12px; font-size: 14px; }
.footer__copy { color: rgba(255,255,255,0.5); font-size: 14px; }

/* Mobile */
@media (max-width: 1024px) {
    .hero__container, .contact__grid { grid-template-columns: 1fr; }
    .contact__form-wrapper { justify-content: flex-start; margin-top: 32px; }
    .about__grid {
        grid-template-columns: 1fr auto;
        gap: 40px;
        align-items: start;
    }
    .about__image {
        width: clamp(220px, 28vw, 340px);
        margin-left: 0;
    }
    .about__image img {
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .process__steps { flex-wrap: wrap; }
    .step { flex: 1 1 40%; }
    .advantages__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav__menu {
        display: none;
        position: absolute;
        top: calc(100% + 24px);
        left: 24px;
        right: 24px;
        flex-direction: column;
        gap: 14px;
        list-style: none;
        background: rgba(26, 26, 46, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        padding: 18px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    }
    .nav__toggle { display: flex; }
    .logo__image { width: 112px; }
    .nav__call {
        padding: 9px 14px;
        font-size: 13px;
        margin-left: auto;
        margin-right: 12px;
    }
    .nav-open .nav__menu { display: flex; }
    .nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hero__actions { flex-direction: column; }
    .services__grid { grid-template-columns: 1fr; }
    .process__steps { flex-direction: column; }
    .hero__stats { flex-direction: column; gap: 24px; }
    .section { padding: 80px 0; }
    .about__grid {
        grid-template-columns: 1fr auto;
        gap: 16px;
        align-items: start;
    }
    .about__image {
        width: 128px;
        margin-left: auto;
        border-radius: 6px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    }
    .about__image img {
        height: auto;
        aspect-ratio: 3 / 4;
    }
    .contact__form-wrapper { margin-top: 24px; }
    .contact-form { padding: 32px; }
}
