/* ============================================
   СтройИндустрия — Premium Minimalist Design
   Inspired by artprize-shadows.com
   ============================================ */

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

:root {
    --bg-primary: #F5F0E8;
    --bg-secondary: #EBE4D8;
    --bg-dark: #2A2520;
    --bg-dark-alt: #352F28;
    --text-primary: #2A2520;
    --text-secondary: #6B5E50;
    --text-light: #F5F0E8;
    --text-muted: #9B8E7E;
    --accent: #C8A882;
    --accent-dark: #A0845E;
    --accent-light: #E8D5BF;
    --shadow-color: rgba(42, 37, 32, 0.15);
    --shadow-heavy: rgba(42, 37, 32, 0.35);
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---- Cursor Shadow ---- */
.cursor-shadow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 168, 130, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.5s var(--transition-smooth);
    backdrop-filter: blur(0px);
}

.nav.scrolled {
    padding: 1rem 3rem;
    background: rgba(245, 240, 232, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px var(--shadow-color);
}

.nav-logo a {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.nav-logo a span {
    font-weight: 600;
    color: var(--accent-dark);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-dark);
    transition: width 0.4s var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-burger span {
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s var(--transition-smooth);
    transform-origin: center;
}

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

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

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

/* ---- Sections ---- */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 3rem;
    overflow: hidden;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    margin-bottom: 4rem;
}

.section-number {
    display: block;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

.section-dark .section-title {
    color: var(--text-light);
}

.section-dark .section-number {
    color: var(--accent-light);
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(200, 168, 130, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(200, 168, 130, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(235, 228, 216, 0.5) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-title-line {
    display: block;
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 200;
    letter-spacing: 0.15em;
    line-height: 1;
    color: var(--text-primary);
    text-shadow:
        4px 4px 8px rgba(42, 37, 32, 0.1),
        0 0 80px rgba(200, 168, 130, 0.1);
}

.hero-title-line.accent {
    font-weight: 600;
    color: var(--accent-dark);
    text-shadow:
        4px 4px 12px rgba(160, 132, 94, 0.2),
        0 0 60px rgba(200, 168, 130, 0.15);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-arrow {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* Hero Shadow Art Lines */
.hero-shadow-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.shadow-line {
    position: absolute;
    background: linear-gradient(180deg, transparent, rgba(42, 37, 32, 0.04), transparent);
    transform-origin: top center;
}

.shadow-line-1 {
    width: 2px;
    height: 100%;
    left: 15%;
    top: 0;
    transform: rotate(5deg);
    animation: shadowDrift 8s ease-in-out infinite;
}

.shadow-line-2 {
    width: 3px;
    height: 80%;
    right: 20%;
    top: 10%;
    transform: rotate(-3deg);
    animation: shadowDrift 10s ease-in-out infinite reverse;
}

.shadow-line-3 {
    width: 1px;
    height: 60%;
    left: 40%;
    top: 20%;
    transform: rotate(2deg);
    animation: shadowDrift 12s ease-in-out infinite;
}

.shadow-line-4 {
    width: 2px;
    height: 70%;
    right: 35%;
    top: 15%;
    transform: rotate(-4deg);
    animation: shadowDrift 9s ease-in-out infinite reverse;
}

.shadow-line-5 {
    width: 1px;
    height: 90%;
    left: 70%;
    top: 5%;
    transform: rotate(1deg);
    animation: shadowDrift 11s ease-in-out infinite;
}

@keyframes shadowDrift {

    0%,
    100% {
        transform: rotate(var(--rot, 0deg)) translateX(0);
        opacity: 0.5;
    }

    50% {
        transform: rotate(var(--rot, 0deg)) translateX(20px);
        opacity: 1;
    }
}

/* ---- Section Content Layout ---- */
.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.section-content-reverse .content-text {
    order: -1;
}

/* Image frames */
.content-image {
    position: relative;
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.8s var(--transition-smooth);
    filter: saturate(0.85) brightness(1.02);
}

.image-frame:hover img {
    transform: scale(1.03);
}

.image-shadow {
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(42, 37, 32, 0.15) 0%, transparent 70%);
    filter: blur(10px);
}

/* Content text */
.lead-text {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.section-dark .lead-text {
    color: var(--accent-light);
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(200, 168, 130, 0.15);
    border-radius: 4px;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(200, 168, 130, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px var(--shadow-color);
    border-color: rgba(200, 168, 130, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    margin-bottom: 1.25rem;
    color: var(--accent-dark);
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features list (Materials section) */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
    padding-left: 1rem;
}

.feature-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), transparent);
    border-radius: 1px;
}

.feature-content h3 {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Design stages */
.design-stages {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.stage {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.stage-num {
    font-size: 2rem;
    font-weight: 200;
    color: var(--accent);
    min-width: 50px;
    font-style: italic;
    line-height: 1;
    padding-top: 0.2rem;
}

.stage-info h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stage-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Vacancies ---- */
.vacancies-content {
    display: block;
}

.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.vacancy-card {
    background: var(--bg-dark-alt);
    border: 1px solid rgba(200, 168, 130, 0.1);
    border-radius: 4px;
    padding: 2rem;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.vacancy-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--transition-smooth);
}

.vacancy-card:hover {
    border-color: rgba(200, 168, 130, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.vacancy-card:hover::after {
    transform: scaleX(1);
}

.vacancy-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(200, 168, 130, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    margin-bottom: 1rem;
}

.vacancy-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.vacancy-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.vacancy-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.vacancy-meta span::before {
    content: '·';
    margin-right: 0.5rem;
    color: var(--accent);
}

.vacancies-cta {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
}

.vacancies-cta a {
    color: var(--accent);
    border-bottom: 1px solid rgba(200, 168, 130, 0.3);
    padding-bottom: 2px;
    transition: all 0.3s var(--transition-smooth);
}

.vacancies-cta a:hover {
    color: var(--accent-light);
    border-color: var(--accent-light);
}

/* ---- Contacts ---- */
.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(200, 168, 130, 0.1);
    border-radius: 4px;
    transition: all 0.3s var(--transition-smooth);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 40px var(--shadow-color);
    transform: translateX(4px);
}

.contact-icon {
    color: var(--accent-dark);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-primary);
}

.contact-value:hover {
    color: var(--accent-dark);
}

/* Address cards */
.addresses-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.address-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(200, 168, 130, 0.1);
    border-radius: 4px;
    transition: all 0.4s var(--transition-smooth);
}

.address-card:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 15px 50px var(--shadow-color);
}

.address-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.address-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.address-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-dark);
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 2px;
    transition: all 0.3s var(--transition-smooth);
}

.address-map-link:hover {
    background: var(--accent-dark);
    color: var(--text-light);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(160, 132, 94, 0.3);
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-dark);
    padding: 3rem;
    border-top: 1px solid rgba(200, 168, 130, 0.1);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-logo span {
    font-weight: 600;
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ---- Reveal Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

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

.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .section-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-content-reverse {
        direction: ltr;
    }

    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .image-frame img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav.scrolled {
        padding: 0.8rem 1.5rem;
    }

    .nav-burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(245, 240, 232, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--transition-smooth);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.2rem;
        letter-spacing: 0.25em;
    }

    .section {
        padding: 5rem 1.5rem;
        min-height: auto;
    }

    .hero {
        min-height: 100vh;
        padding: 6rem 1.5rem;
    }

    .hero-title-line {
        font-size: clamp(2.5rem, 12vw, 5rem);
        letter-spacing: 0.1em;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

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

    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .image-frame img {
        height: 260px;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .cursor-shadow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title-line {
        font-size: clamp(2rem, 14vw, 3.5rem);
    }

    .service-card {
        padding: 1.5rem;
    }

    .vacancy-card {
        padding: 1.5rem;
    }

    .stage {
        flex-direction: column;
        gap: 0.75rem;
    }

    .stage-num {
        font-size: 1.5rem;
    }
}