/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#percentage {
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-size: 8rem;
    font-weight: 900;
    color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transform: translateY(100vh);
    animation: riseUpPercentage 3s ease-out forwards;
}

@keyframes riseUpPercentage {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.brand-text {
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-size: 1rem;
    color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

@media (max-width: 768px) {
    #preloader {
        padding: 24px 20px;
        align-items: flex-end;
        justify-content: flex-end;
        gap: 14px;
    }

    #percentage {
        position: static;
        font-size: 6rem;
        line-height: 1;
    }

    .brand-text {
        position: static;
        font-size: 0.95rem;
        line-height: 1.25;
        max-width: min(420px, calc(100vw - 40px));
        text-align: right;
    }
}

@media (max-width: 480px) {
    #percentage {
        font-size: 5rem;
    }

    .brand-text {
        font-size: 0.9rem;
    }
}

@keyframes riseUp {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #FF6B35;
    --orange-light: #FF8C5A;
    --orange-dark: #E55A2B;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #FFFFFF;
    --bg-light: #FAFAFA;
    --border-light: #E5E5E5;
    --max-width: 1400px;
    --spacing-xs: 1rem;
    --spacing-sm: 2rem;
    --spacing-md: 3rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    html {
        scroll-behavior: auto;
        scroll-snap-type: none;
    }
    
    body {
        scroll-snap-type: none;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    scroll-snap-type: y mandatory;
    width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

@media (min-width: 1025px) {
    body {
        zoom: 0.9;
    }
}

img,
video,
svg,
canvas {
    max-width: 100%;
}

section {
    scroll-snap-align: start;
    width: 100%;
}

section:not(.hero):not(.packages):not(.services):not(.process):not(.projects):not(.cta):not(.contact) {
    min-height: 100vh;
}

.benefits {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.design-styles {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
}

.orange-text {
    color: var(--orange);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

 .nav.scrolled {
     background: rgba(255, 255, 255, 0.96);
     box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
 }

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xs);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: var(--spacing-xs);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    flex-shrink: 0;
}

.logo-img {
    height: 100px;
    width: auto;
    margin-right: 8px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    flex: 1;
    min-width: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s ease;
}

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

.nav-cta {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid transparent;
    padding: 12px 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    flex: 0 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-transform: none;
    letter-spacing: normal;
    overflow: hidden;
    background-image: linear-gradient(white, white), 
                      linear-gradient(45deg, #1A1A1A, #FF6B35, #1A1A1A, #FF6B35, #1A1A1A);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 300% 300%;
    animation: black-orange-border 2s linear infinite;
}

@keyframes black-orange-border {
    0% {
        background-position: 0% 0%, 0% 0%;
    }
    50% {
        background-position: 0% 0%, 100% 100%;
    }
    100% {
        background-position: 0% 0%, 0% 0%;
    }
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    transition: left 0.5s ease;
    z-index: -1;
}

.nav-cta:hover {
    color: white;
    border-color: transparent;
}

.nav-cta:hover::before {
    left: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0;
    background: url('ФОН ХЕРОУ.jpg') center center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: -100px;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-white));
    z-index: 3;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: var(--spacing-lg);
    align-items: flex-start;
    min-height: 40vh;
    padding-top: 0;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--spacing-lg);
    padding-top: 0;
}

.hero-title {
    font-size: clamp(2.4rem, 6.4vw, 4.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 3.5s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    border-radius: 4px;
}

/* Buttons */
.cta-primary {
    background: var(--orange);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.cta-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-secondary:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Company Section */
.about-company {
    padding: 100px 0 0;
    background: var(--bg-white);
}

.about-layout {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.about-row {
    display: grid;
    gap: 60px;
    align-items: start;
}

.about-row--main {
    grid-template-columns: minmax(220px, 1fr) minmax(520px, 740px) minmax(220px, 1fr);
}

.about-row--secondary {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.about-text-block {
    padding: 30px;
    background: var(--bg-light);
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.about-text-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-text-block h3 {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    text-transform: lowercase;
    color: var(--text-primary);
}

.about-text-block p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 34ch;
}

.about-text-block p.about-number {
    color: var(--orange);
    margin-top: 16px;
    font-weight: 700;
}

.about-image-large {
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

.about-row--main .about-image-large {
    margin-top: 0;
    justify-self: center;
    aspect-ratio: 3 / 2;
    max-width: 700px;
}

.about-row--secondary .about-image-large {
    aspect-ratio: 3 / 2;
    max-width: 420px;
}

.about-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: none;
    transition: none;
}

.about-image-large:hover img {
    transform: none;
}

.about-company .section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Design Styles Section */
.design-styles {
    padding: 100px 0 0;
    background: var(--bg-white);
}

 .styles-layout {
     display: flex;
     flex-direction: column;
     gap: 110px;
 }

 .styles-row {
     display: grid;
     gap: 60px;
     align-items: start;
 }

.styles-row--top {
    grid-template-columns: minmax(220px, 1fr) minmax(520px, 740px) minmax(220px, 1fr);
}

.styles-row--bottom {
    grid-template-columns: minmax(420px, 1fr) minmax(240px, 320px) minmax(420px, 1fr);
    align-items: center;
}

.style-text-block {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

 .style-text-block h3 {
     font-size: 0.95rem;
     font-weight: 800;
     letter-spacing: -0.01em;
     margin-bottom: 12px;
     text-transform: lowercase;
 }

 .style-text-block p {
     font-size: 0.85rem;
     color: var(--text-secondary);
     line-height: 1.6;
     max-width: 34ch;
 }

 .style-text-block p.style-number {
     color: var(--orange);
 }

 .styles-row--top .style-text-block:nth-child(3) {
     margin-top: 200px;
     justify-self: start;
     margin-left: -200px;
 }

 .style-image-large {
     width: 100%;
     overflow: hidden;
     border-radius: 0;
     background: transparent;
 }

 .styles-row--top .style-image-large {
    aspect-ratio: 3 / 2;
    max-width: 420px;
}

.styles-row--bottom .style-image-large {
    aspect-ratio: 3 / 2;
    max-width: 420px;
}


 #secondary-work .styles-row--bottom .style-text-block:nth-child(3) {
    margin-left: 100px;
}

#secondary-work .styles-row--bottom .style-image-large--wide {
     grid-column: 2 / 3;
     justify-self: center;
     max-width: 420px;
     aspect-ratio: 1 / 1;
 }

 #secondary-work {
    padding-bottom: 100px;
}

 #secondary-work img[alt="механизированная штукатурка"] {
     object-position: center 46%;
 }

 #secondary-work img[alt="машинная шпаклевка"] {
     object-position: center 40%;
 }

 #secondary-work img[alt="стяжка пола"] {
     object-position: center 31%;
 }

 #secondary-work img[alt="воздушная покраска"] {
     object-position: right 38%;
 }

 .style-image-large img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
     transform: none;
     transition: none;
 }

.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.style-card {
    background: var(--bg-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 400px;
}

.style-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.style-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.style-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.style-card:hover .style-image img {
    transform: scale(1.05);
}

.style-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: white;
}

.style-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.style-overlay p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Demolition Works Section */
.demolition-works {
    padding: 90px 0 var(--spacing-xl);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.demolition-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.demolition-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.demolition-works .container {
    position: relative;
    z-index: 2;
}

.demolition-layout {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.demolition-row {
    display: grid;
    gap: 60px;
    align-items: start;
}

.demolition-row--main {
    grid-template-columns: minmax(220px, 1fr) minmax(520px, 740px) minmax(220px, 1fr);
}

.demolition-row--secondary {
    grid-template-columns: minmax(420px, 1fr) minmax(240px, 320px) minmax(420px, 1fr);
    align-items: center;
}

.demolition-row--tertiary {
    grid-template-columns: minmax(220px, 1fr) minmax(520px, 740px) minmax(220px, 1fr);
}

.demolition-text-block {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.demolition-text-block h3 {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    text-transform: lowercase;
    color: white;
}

.demolition-text-block p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 34ch;
}

.demolition-text-block p.demolition-number {
    color: var(--orange);
}

.demolition-image-large {
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

.demolition-row--main .demolition-image-large,
.demolition-row--tertiary .demolition-image-large {
    aspect-ratio: 3 / 2;
    max-width: 420px;
}

.demolition-row--secondary .demolition-image-large {
    aspect-ratio: 3 / 2;
    max-width: 420px;
}

.demolition-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: none;
    transition: none;
}

#demolition-works img[alt="Профессиональный демонтажник"] {
    object-position: center 25%;
}

#demolition-works img[alt="Демонтаж стены"] {
    object-position: center 25%;
}

#demolition-works img[alt="Демонтаж полов"] {
    object-position: center 30%;
}

.demolition-works .section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.demolition-works .section-title {
    color: white;
}

.demolition-works .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Benefits Section */
.benefits {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Large hero card - first card */
.benefit-card:nth-child(1) {
    grid-row: 1 / 3;
    grid-column: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.benefit-card:nth-child(1) .benefit-icon,
.benefit-card:nth-child(1) h3,
.benefit-card:nth-child(1) p {
    position: relative;
    z-index: 2;
    padding: 0 40px;
}

.benefit-card:nth-child(1) .benefit-icon {
    margin-top: 40px;
    margin-bottom: 20px;
}

.benefit-card:nth-child(1) h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

.benefit-card:nth-child(1) p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.benefit-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    z-index: 1;
}

.benefit-card:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    border-radius: 0;
    z-index: 1;
}

/* Secondary vertical cards */
.benefit-card:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
    min-height: 200px;
}

.benefit-card:nth-child(3) {
    grid-row: 2;
    grid-column: 2;
    min-height: 200px;
}

.benefit-card:nth-child(4) {
    grid-row: 3;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 30px;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--orange);
    margin-bottom: 20px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    flex-shrink: 0;
}

/* Special layout for 4th card */
.benefit-card:nth-child(4) .benefit-icon {
    margin-bottom: 0;
    margin-right: 20px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.benefit-card:nth-child(1) h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

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

.benefit-card:nth-child(1) p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .benefit-card:nth-child(1),
    .benefit-card:nth-child(2),
    .benefit-card:nth-child(3),
    .benefit-card:nth-child(4) {
        grid-row: auto;
        grid-column: 1;
    }
    
    .benefit-card:nth-child(4) {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-card:nth-child(4) .benefit-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Packages Section */
.packages {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.package-card {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(var(--bg-white), var(--bg-white)),
                      linear-gradient(45deg, #1A1A1A, #FF6B35, #1A1A1A, #FF6B35, #1A1A1A);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 300% 300%;
    animation: black-orange-border 2s linear infinite;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    transition: left 0.5s ease;
    z-index: 0;
}

.package-card > * {
    position: relative;
    z-index: 1;
}

.package-card:hover::before {
    left: 0;
}

 .packages .package-card::before {
     content: none;
 }

 .packages .package-card:hover .package-header h3 {
     color: var(--text-primary);
 }

 .packages .package-card:hover .package-features li {
     color: var(--text-secondary);
     border-bottom-color: var(--border-light);
 }

 .packages .package-card:hover .package-header {
     border-bottom-color: var(--border-light);
 }

.package-card:hover .package-header h3 {
    color: white;
}

.package-card:hover .package-features li {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.package-card:hover .package-header {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.package-card:hover .package-features li::before {
    color: var(--orange);
}

.package-card.featured {
    border: 2px solid var(--orange);
}

.package-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--orange);
    color: white;
    padding: 8px 40px;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 2;
}

.package-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.package-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.package-price {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--orange);
}

.package-features {
    padding: 30px;
    flex: 1;
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
}

.package-cta {
    width: 100%;
    padding: 16px;
    background: var(--text-primary);
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.package-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--orange);
    transition: left 0.5s ease;
    z-index: -1;
}

.package-cta:hover {
    color: white;
}

.package-cta:hover::before {
    left: 0;
}

.package-cta:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services {
    padding: var(--spacing-xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.service-item {
    padding: var(--spacing-md);
    border-left: 3px solid var(--orange);
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateX(8px);
    background: var(--bg-light);
}

.service-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--orange);
    opacity: 0.3;
    margin-bottom: var(--spacing-xs);
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.service-item p {
    color: var(--text-secondary);
}

/* Process Section */
.process {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--orange);
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
    padding-top: 16px;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.step-content p {
    color: var(--text-secondary);
}

/* Projects Section */
.projects {
    padding: var(--spacing-xl) 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    align-items: start;
}

.project-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 250px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 250px;
}

 .project-before-after {
     position: absolute;
     inset: 0;
     display: grid;
     grid-template-columns: 1fr 1fr;
     z-index: 0;
 }

 .project-before-after img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     object-position: center;
     display: block;
 }

 .projects-grid .project-card:nth-child(1) .project-before-after img {
     object-position: center top;
 }

 .projects-grid .project-card:nth-child(1) .project-before-after {
     transform: translateY(-18px);
 }

@media (max-width: 1024px) {
    .project-image {
        height: auto;
        aspect-ratio: 16 / 9;
        flex: 0 0 auto;
    }

    .projects-grid .project-card:nth-child(1) .project-before-after {
        transform: none;
    }
}

 .project-image .before-after {
     z-index: 2;
 }

.before-after {
    display: flex;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 25px;
    overflow: hidden;
}

.before, .after {
    padding: 8px 16px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.after {
    background: var(--orange);
}

.project-content {
    padding: var(--spacing-md);
    flex: 1;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.project-details {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

.project-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-metric {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.metric-label {
    color: var(--text-secondary);
}

.metric-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* CTA Section */
.cta {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: var(--spacing-md);
}

.contact-social .social-icon {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.contact-social .social-icon img {
    width: 24px !important;
    height: 24px !important;
    filter: brightness(0) invert(1) !important;
    transition: all 0.3s ease !important;
}

.contact-social .social-icon img[alt="Telegram"] {
    width: 28px !important;
    height: 28px !important;
}

.contact-social .social-icon:hover {
    background: var(--orange) !important;
    transform: translateY(-2px) !important;
}

.contact-social .social-icon:hover img {
    filter: brightness(0) invert(1) !important;
}

.contact-item {
    color: var(--text-secondary);
}

.contact-item strong {
    color: var(--text-primary);
}

.contact-form {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xs);
}

.contact-form button {
    width: 100%;
    margin-top: var(--spacing-xs);
}

/* Modal Form */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-form {
    background: var(--bg-white);
    border-radius: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-form {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--orange);
}

.modal-header {
    padding: 40px 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.request-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-light);
    border-radius: 0;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.form-group select {
    cursor: pointer;
}

.form-checkbox {
    margin-bottom: 18px;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.form-submit {
    width: 100%;
    padding: 18px;
    background: var(--text-primary);
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-submit:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

.form-submit:active {
    transform: translateY(0);
}

.success-message {
    text-align: center;
    padding: 40px 30px;
}

.success-message h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.success-close {
    padding: 12px 30px;
    background: var(--orange);
    color: white;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.success-close:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-form {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
        overflow: auto;
    }
    
    .modal-header {
        padding: 30px 20px 15px;
    }
    
    .request-form {
        padding: 20px;
        overflow: visible;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
    }
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-md) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.footer-logo .logo-icon {
    background: var(--orange);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-legal {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-legal a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--orange);
}

/* ROI Examples Section */
.roi-examples {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.roi-modal {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.roi-header {
    background: var(--text-primary);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.roi-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.roi-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.roi-close:hover {
    color: var(--orange);
}

.roi-content {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.roi-example {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.roi-example:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.roi-example h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.roi-calculations {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.roi-section {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
}

.roi-section h4 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.roi-section ul {
    margin: 0 0 10px 0;
    padding-left: 18px;
}

.roi-section li {
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.roi-total {
    margin: 8px 0 0 0;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.roi-result {
    background: linear-gradient(135deg, var(--orange), #ff8c00);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.roi-result h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.roi-result p {
    margin: 0;
    font-size: 1rem;
}

.roi-result strong {
    font-size: 1.2rem;
}

.roi-comparison {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    height: fit-content;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
}

.roi-comparison h3 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.comparison-items {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.comparison-item {
    text-align: center;
}

.comparison-label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.comparison-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--orange);
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-icon {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.social-icon img[alt="Telegram"] {
    width: 28px;
    height: 28px;
}

.social-icon:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

.social-icon:hover img {
    filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-logo {
        margin-left: 20px;
    }
    
    .nav-toggle {
        margin-left: -10px;
    }
    
    /* Mobile layout for styles - combine both rows into single flow */
    .styles-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        margin-top: 80px !important;
    }
    
    .styles-row {
        display: contents;
    }
    
    /* Ensure equal spacing for all elements in both style sections and demolition works */
    .design-styles .style-text-block,
    .design-styles .style-image-large,
    #secondary-work .style-text-block,
    #secondary-work .style-image-large,
    .demolition-row .demolition-text-block,
    .demolition-row .demolition-image-large {
        margin-bottom: 20px !important;
    }
    
    .design-styles .style-text-block:last-child,
    .design-styles .style-image-large:last-child,
    #secondary-work .style-text-block:last-child,
    #secondary-work .style-image-large:last-child,
    .demolition-row .demolition-text-block:last-child,
    .demolition-row .demolition-image-large:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Override for specific text blocks */
    #secondary-work .styles-row--bottom .style-text-block:nth-child(2),
    #secondary-work .styles-row--top .style-text-block:nth-child(3) {
        margin-bottom: 25px !important;
        margin-top: 20px !important;
    }
    
    /* Override for demolition text blocks */
    .demolition-row .demolition-text-block {
        margin-bottom: 25px !important;
        margin-top: 20px !important;
    }
    
    /* Reorder all elements to create text+photo pairs */
    .styles-row--top .style-text-block:nth-child(1) {
        order: 0;
    }
    
    .styles-row--top .style-image-large:nth-child(2) {
        order: 1;
    }
    
    .styles-row--bottom .style-text-block:nth-child(2) {
        order: 2;
        margin-bottom: 25px !important;
        margin-top: 20px !important;
    }
    
    .styles-row--bottom .style-image-large:nth-child(1) {
        order: 3;
    }
    
    .styles-row--top .style-text-block:nth-child(3) {
        order: 4;
        margin-bottom: 25px !important;
        margin-top: 20px !important;
    }
    
    .styles-row--bottom .style-image-large:nth-child(3) {
        order: 5;
    }

    .styles-row--top .style-text-block:nth-child(3) {
        margin-top: 0;
        justify-self: start;
        margin-left: 0;
    }
    
    #secondary-work {
    padding-bottom: 100px;
}
    
    .style-text-block {
        margin-left: 0 !important;
    }
    
    .style-image-large {
        max-width: 100% !important;
    }

    .nav-menu.active {
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        right: 0 !important;
        height: auto !important;
        max-height: calc(100vh - 80px) !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 20px !important;
        gap: 8px !important;
        z-index: 1200 !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        background: var(--primary-dark);
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active.show {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        padding: 12px 0 !important;
        font-size: 1rem !important;
        flex: none !important;
        display: block !important;
        align-items: center !important;
        justify-content: flex-start !important;
        line-height: 1.4 !important;
        height: auto !important;
    }

    .nav-cta {
        width: 100% !important;
        justify-content: center !important;
        font-size: 1rem !important;
        padding: 12px 0 !important;
        height: auto !important;
        margin-top: 20px !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .hero-metrics {
        flex-direction: row;
        border-left: none;
        border-top: 3px solid var(--orange);
        padding-left: 0;
        padding-top: var(--spacing-md);
    }

    .package-badge {
        right: 0;
        max-width: 100%;
    }
    
    .benefits-grid,
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        display: none;
    }
    
    .footer-social {
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
        margin: 20px 0;
    }
    
    .contact-social .social-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .contact-social .social-icon img {
        width: 20px !important;
        height: 20px !important;
    }
    
    .contact-social .social-icon img[alt="Telegram"] {
        width: 22px !important;
        height: 22px !important;
    }
    
    .roi-modal {
        margin: 0 20px;
    }
    
    .roi-header {
        padding: 15px 20px;
    }
    
    .roi-header h2 {
        font-size: 1.2rem;
    }
    
    .roi-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }
    
    .roi-comparison {
        grid-column: 1;
        grid-row: auto;
    }
    
    .roi-header {
        padding: 15px 20px;
    }
    
    .roi-header h2 {
        font-size: 1.2rem;
    }
    
    .roi-calculations {
        gap: 20px;
    }
    
    .roi-section {
        padding: 18px;
    }
    
    .roi-section h4 {
        font-size: 0.95rem;
    }
    
    .roi-section li {
        font-size: 0.85rem;
    }
    
    .roi-result {
        padding: 18px;
    }
    
    .roi-result strong {
        font-size: 1.1rem;
    }
    
    .comparison-items {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
    
    .process-timeline::before {
        left: 15px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .logo-img {
        height: 56px;
        margin-right: 0;
    }

    .about-layout {
        gap: 60px;
    }

    .about-row,
    .about-row--main,
    .about-row--secondary {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-row--secondary {
        gap: 20px;
    }

    .about-row--main .about-image-large,
    .about-row--secondary .about-image-large {
        max-width: 100%;
    }

    .styles-layout {
        gap: 60px;
    }

    .styles-row,
    .styles-row--top,
    .styles-row--bottom {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }

    .styles-row--top .style-text-block:nth-child(3) {
        margin-top: 0;
        margin-left: 0;
        justify-self: stretch;
    }

    #secondary-work .styles-row--bottom .style-text-block:nth-child(3) {
        margin-left: 0;
    }

    #secondary-work .styles-row--bottom .style-image-large--wide {
        grid-column: auto;
        justify-self: stretch;
        max-width: 100%;
    }

    .styles-row--top .style-image-large,
    .styles-row--bottom .style-image-large {
        max-width: 100%;
    }

    .demolition-layout {
        gap: 60px;
    }

    .demolition-row,
    .demolition-row--main,
    .demolition-row--secondary,
    .demolition-row--tertiary {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }

    .demolition-row--main .demolition-image-large,
    .demolition-row--tertiary .demolition-image-large,
    .demolition-row--secondary .demolition-image-large {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .nav-container {
        padding: 0 var(--spacing-xs);
    }

    .logo-img {
        height: 46px;
    }
}

/* iPad Pro and large tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
    }
    
    * {
        box-sizing: border-box;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .roi-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
        max-width: 100%;
    }
    
    .roi-modal {
        max-width: 100%;
        margin: 0 15px;
    }
    
    .roi-comparison {
        grid-column: 1;
        grid-row: auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .process-timeline::before {
        left: 15px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-content {
        padding-left: 60px;
    }
    
    .styles-layout {
        gap: 40px;
        max-width: 100%;
    }
    
    .styles-row,
    .styles-row--top,
    .styles-row--bottom {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: start;
    }
    
    .style-image-large {
        max-width: 100%;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--orange);
    color: white;
}

/* Focus States */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}
