/* ============================
   СтройДом v2 — Editorial Style
   ============================ */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #FAFAF8;
    --bg-dark: #1A1A18;
    --text: #1A1A18;
    --text-light: #FAFAF8;
    --text-muted: #8A8A82;
    --accent: #C45D2C;
    --accent-hover: #A84D24;
    --border: #E5E4E0;
    --card-bg: #FFFFFF;
    --radius: 4px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Animations */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate.visible { opacity: 1; transform: translateY(0); }

/* ---- HEADER ---- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(250,250,248,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: box-shadow 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
.header__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: var(--text); color: var(--text-light);
    font-family: var(--font-display); font-weight: 700; font-size: 18px;
    border-radius: var(--radius);
}
.logo__text { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 32px; }
.nav__link {
    font-size: 14px; font-weight: 500; color: var(--text-muted);
    transition: color 0.2s; letter-spacing: 0.01em;
}
.nav__link:hover { color: var(--text); }
.header__phone {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 500; color: var(--text);
    transition: color 0.2s;
}
.header__phone:hover { color: var(--accent); }
.burger { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; }
.burger span {
    position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }
.burger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,26,24,0.75) 0%, rgba(26,26,24,0.3) 50%, rgba(26,26,24,0.1) 100%);
}
.hero__content {
    position: relative; z-index: 1;
    max-width: 640px; padding: 120px 0 80px;
}
.hero__label {
    font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(255,255,255,0.6); margin-bottom: 24px;
}
.hero__title {
    font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px);
    font-weight: 500; line-height: 1.08; color: #fff;
    margin-bottom: 24px; letter-spacing: -0.02em;
}
.hero__subtitle {
    font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.7);
    margin-bottom: 40px; max-width: 480px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px;
    color: rgba(255,255,255,0.4); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
    transition: all 0.25s; cursor: pointer; border: none;
}
.btn--primary {
    background: var(--accent); color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--outline {
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3);
}
.btn--outline:hover { border-color: #fff; }
.btn--ghost {
    background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--text); }
.btn--lg { padding: 18px 36px; font-size: 15px; }

/* ---- MARQUEE ---- */
.marquee {
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 28px 0; overflow: hidden; background: var(--bg);
}
.marquee__track {
    display: flex; gap: 40px; align-items: center;
    animation: scroll 20s linear infinite;
    width: max-content;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee__item { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.marquee__num {
    font-family: var(--font-display); font-size: 32px; font-weight: 600;
    color: var(--text); letter-spacing: -0.02em;
}
.marquee__label { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.marquee__sep { color: var(--border); font-size: 20px; }

/* ---- SECTION HEADERS ---- */
.section-header { margin-bottom: 56px; }
.section-label {
    display: block; font-size: 12px; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px);
    font-weight: 500; letter-spacing: -0.02em; line-height: 1.15;
}

/* ---- PROJECTS GRID ---- */
.projects { padding: 100px 0; }
.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 12px;
    padding: 0 40px;
    max-width: 1280px;
    margin: 0 auto;
}
.project-card {
    position: relative; overflow: hidden; border-radius: var(--radius);
    cursor: pointer;
}
.project-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover img { transform: scale(1.04); }
.project-card__info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}
.project-card:hover .project-card__info { opacity: 1; transform: translateY(0); }
.project-card__tag {
    display: inline-block; font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
}
.project-card__info h3 { font-size: 16px; font-weight: 500; color: #fff; }
.project-card--large { grid-column: span 2; grid-row: span 2; }
.project-card--wide { grid-column: span 2; }
.project-card--tall { grid-row: span 2; }

/* ---- SERVICES ---- */
.services { padding: 100px 0; background: var(--card-bg); }
.services__list { max-width: 800px; }
.service-item {
    display: flex; gap: 32px; padding: 40px 0;
    border-bottom: 1px solid var(--border);
}
.service-item:first-child { border-top: 1px solid var(--border); }
.service-item__num {
    font-family: var(--font-display); font-size: 40px; font-weight: 400;
    color: var(--border); flex-shrink: 0; width: 56px;
    line-height: 1;
}
.service-item__content h3 {
    font-size: 20px; font-weight: 600; margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.service-item__content p {
    font-size: 15px; color: var(--text-muted); line-height: 1.7;
    margin-bottom: 16px;
}
.service-item__includes {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.service-item__includes li {
    font-size: 13px; font-weight: 500; padding: 6px 14px;
    background: var(--bg); border-radius: var(--radius);
    color: var(--text-muted);
}

/* ---- PROCESS ---- */
.process { padding: 100px 0; }
.process__steps {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    border-top: 1px solid var(--border);
}
.process__step {
    padding: 40px 24px; border-right: 1px solid var(--border);
}
.process__step:last-child { border-right: none; }
.process__step-num {
    font-family: var(--font-display); font-size: 48px; font-weight: 400;
    color: var(--accent); margin-bottom: 20px; line-height: 1;
}
.process__step h3 {
    font-size: 16px; font-weight: 600; margin-bottom: 10px;
}
.process__step p {
    font-size: 14px; color: var(--text-muted); line-height: 1.6;
}

/* ---- MATERIALS BANNER ---- */
.materials-banner {
    position: relative; min-height: 480px; display: flex; align-items: center;
    overflow: hidden;
}
.materials-banner__img {
    position: absolute; inset: 0;
}
.materials-banner__img img {
    width: 100%; height: 100%; object-fit: cover;
}
.materials-banner__content {
    position: relative; z-index: 1;
    max-width: 520px; padding: 80px 0;
}
.materials-banner__content h2 {
    font-family: var(--font-display); font-size: 36px; font-weight: 500;
    color: #fff; margin-bottom: 16px; line-height: 1.2;
}
.materials-banner__content p {
    font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.7;
}

/* ---- ABOUT ---- */
.about { padding: 100px 0; background: var(--card-bg); }
.about__grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about__image {
    border-radius: var(--radius); overflow: hidden;
}
.about__image img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.about__text .section-title { margin-bottom: 20px; }
.about__text > p {
    font-size: 16px; color: var(--text-muted); line-height: 1.7;
    margin-bottom: 32px;
}
.about__features { display: flex; flex-direction: column; gap: 16px; }
.about__feature {
    display: flex; align-items: center; gap: 14px;
    font-size: 15px; font-weight: 500;
}

/* ---- GEO ---- */
.geo { padding: 80px 0; }
.geo__inner {
    text-align: center;
}
.geo__inner h2 {
    font-family: var(--font-display); font-size: 28px; font-weight: 500;
    margin-bottom: 32px;
}
.geo__cities {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.geo__cities span {
    padding: 10px 22px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 14px; font-weight: 500; color: var(--text-muted);
    transition: border-color 0.2s, color 0.2s;
}
.geo__cities span:hover { border-color: var(--text); color: var(--text); }

/* ---- CTA ---- */
.cta {
    padding: 100px 0; background: var(--bg-dark);
}
.cta__inner { text-align: center; max-width: 560px; margin: 0 auto; }
.cta__inner h2 {
    font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px);
    font-weight: 500; color: #fff; margin-bottom: 16px; line-height: 1.2;
}
.cta__inner p {
    font-size: 16px; color: rgba(255,255,255,0.5); margin-bottom: 40px;
}
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.2); }
.cta .btn--ghost:hover { border-color: #fff; }

/* ---- FOOTER ---- */
.footer {
    padding: 48px 0 32px; border-top: 1px solid var(--border);
    background: var(--bg);
}
.footer__inner {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 40px;
}
.footer__brand p { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.footer__links { display: flex; gap: 28px; }
.footer__links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__contact { text-align: right; display: flex; flex-direction: column; gap: 6px; }
.footer__contact a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer__contact a:hover { color: var(--text); }
.footer__bottom {
    border-top: 1px solid var(--border); padding-top: 24px;
}
.footer__bottom p { font-size: 12px; color: var(--text-muted); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 260px;
    }
    .project-card--large { grid-column: span 2; grid-row: span 1; }
    .process__steps { grid-template-columns: repeat(3, 1fr); }
    .process__step:nth-child(4),
    .process__step:nth-child(5) { border-top: 1px solid var(--border); }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav {
        position: fixed; top: 72px; left: 0; right: 0;
        background: var(--bg); flex-direction: column;
        padding: 24px 20px; gap: 0;
        transform: translateY(-100%); opacity: 0;
        transition: transform 0.3s, opacity 0.3s;
        pointer-events: none;
        border-bottom: 1px solid var(--border);
    }
    .nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav__link { padding: 12px 0; font-size: 16px; }
    .header__phone { display: none; }
    .burger { display: block; }

    .hero__content { max-width: 100%; padding: 120px 0 60px; }
    .hero__scroll { display: none; }

    .projects__grid {
        grid-template-columns: 1fr; grid-auto-rows: 240px;
        padding: 0 20px;
    }
    .project-card--large, .project-card--wide, .project-card--tall {
        grid-column: span 1; grid-row: span 1;
    }
    .project-card__info { opacity: 1; transform: translateY(0); }

    .process__steps { grid-template-columns: 1fr; }
    .process__step { border-right: none; border-bottom: 1px solid var(--border); }
    .process__step:last-child { border-bottom: none; }

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

    .footer__inner { flex-direction: column; gap: 24px; }
    .footer__contact { text-align: left; }

    .materials-banner__content { max-width: 100%; }
}
