/* ===== VARIABLES ===== */
:root {
    --brown-900: #3E2723;
    --brown-800: #4E342E;
    --brown-700: #5D4037;
    --brown-600: #6D4C41;
    --brown-500: #795548;
    --brown-400: #8D6E63;
    --brown-300: #A1887F;
    --brown-200: #BCAAA4;
    --brown-100: #D7CCC8;
    --brown-50:  #EFEBE9;
    --gold-600:  #B8860B;
    --gold-500:  #C6993A;
    --gold-400:  #D4AC5A;
    --gold-300:  #E2BF7A;
    --gold-200:  #F0D29A;
    --gold-100:  #FAE8C8;
    --white:     #FFFFFF;
    --text:      #333333;
    --text-light:#666666;
    --bg:        #FAFAFA;
    --bg-alt:    #F5F0ED;
    --shadow:    0 4px 24px rgba(62,39,35,0.10);
    --shadow-lg: 0 8px 40px rgba(62,39,35,0.15);
    --radius:    12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
    --header-h:  80px;
    --container:  1200px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; font-size: inherit; }

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== SECTION ===== */
.section {
    padding: 80px 0;
}
.section--alt {
    background: var(--bg-alt);
}
.section--dark {
    background: var(--brown-800);
    color: var(--white);
}
.section__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--brown-800);
    position: relative;
}
.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold-500);
    margin: 16px auto 0;
    border-radius: 2px;
}
.section__title--light {
    color: var(--white);
}
.section__title--light::after {
    background: var(--gold-400);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition);
    letter-spacing: 0.3px;
}
.btn--primary {
    background: var(--brown-600);
    color: var(--white);
}
.btn--primary:hover {
    background: var(--brown-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(62,39,35,0.3);
}
.btn--outline {
    border: 2px solid var(--white);
    color: var(--white);
}
.btn--outline:hover {
    background: var(--white);
    color: var(--brown-700);
}
.btn--sm {
    padding: 10px 24px;
    font-size: 14px;
}
.btn--full {
    width: 100%;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(62,39,35,0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}
.header--scrolled {
    height: 64px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.header__inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 24px;
}
.header__logo {
    flex-shrink: 0;
}
.header__logo-img {
    height: 50px;
    width: auto;
    border-radius: 4px;
    transition: height var(--transition);
}
.header--scrolled .header__logo-img {
    height: 40px;
}
.header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: auto;
}
.header__link {
    padding: 8px 14px;
    color: var(--brown-100);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
.header__link:hover,
.header__link.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}
.header__phones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: 16px;
    flex-shrink: 0;
}
.header__phone {
    color: var(--gold-300);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--transition);
}
.header__phone:hover {
    color: var(--gold-200);
}
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
}
.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}
.header__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--brown-900);
    z-index: 9998;
    padding-top: var(--header-h);
    flex-direction: column;
    align-items: center;
}
.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--brown-100);
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}
.mobile-menu__link {
    display: block;
    padding: 16px 24px;
    color: var(--brown-100);
    font-size: 18px;
    text-decoration: none;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background var(--transition);
}
.mobile-menu__link:hover {
    background: rgba(255,255,255,0.05);
}
.mobile-menu__link--last {
    border-bottom: none;
}
.mobile-menu__phones {
    margin-top: 24px;
    text-align: center;
}
.mobile-menu__phone {
    display: block;
    color: var(--gold-300);
    font-size: 18px;
    font-weight: 600;
    padding: 8px;
    text-decoration: none;
    transition: color var(--transition);
}
.mobile-menu__phone:hover {
    color: var(--gold-200);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}
.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
@keyframes heroZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.15); }
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(62,39,35,0.75) 0%, rgba(62,39,35,0.55) 50%, rgba(62,39,35,0.70) 100%);
}
.hero__content {
    position: relative;
    text-align: center;
    color: var(--white);
    padding: 120px 24px 80px;
}
.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(18px, 3.5vw, 56px);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 24px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero__line1,
.hero__line2 {
    display: inline;
}
@media (min-width: 1200px) {
    .hero__line1,
    .hero__line2 {
        white-space: nowrap;
    }
}
.hero__dash {
    color: var(--white);
    font-size: 0.7em;
    vertical-align: 0.15em;
}
.hero__desc {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
    transition: opacity var(--transition);
}
.hero__scroll:hover { opacity: 1; }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ===== ABOUT ===== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.about__text p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.8;
}
.about__text strong {
    color: var(--brown-700);
}
.about__services {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--gold-500);
}
.about__services-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--brown-700);
    margin-bottom: 20px;
}
.about__list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    border-bottom: 1px solid var(--brown-50);
}
.about__list li:last-child { border-bottom: none; }
.about__icon {
    color: var(--gold-500);
    font-size: 10px;
    flex-shrink: 0;
}
.about__note {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== ADVANTAGES ===== */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.advantage-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border-top: 3px solid transparent;
}
.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--gold-500);
}
.advantage-card__icon {
    color: var(--gold-500);
    margin-bottom: 20px;
}
.advantage-card__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--brown-700);
    margin-bottom: 12px;
}
.advantage-card__text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== PROJECTS ===== */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.projects__grid--2 {
    grid-template-columns: repeat(2, 1fr);
}
.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.project-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-card__image img {
    transform: scale(1.05);
}
.project-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--brown-700);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.project-card__body {
    padding: 20px;
}
.project-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--brown-800);
    margin-bottom: 12px;
}
.project-card__specs {
    margin-bottom: 16px;
}
.project-card__specs li {
    font-size: 14px;
    color: var(--text-light);
    padding: 4px 0;
}
.project-card__specs strong {
    color: var(--brown-600);
}
.projects__note {
    text-align: center;
    margin-top: 32px;
    padding: 20px;
    background: rgba(198,153,58,0.08);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    border: 1px dashed var(--gold-400);
}

/* ===== PORTFOLIO ===== */
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.portfolio-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.portfolio-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
}
.portfolio-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-card__image img {
    transform: scale(1.08);
}
.portfolio-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(62,39,35,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity var(--transition);
}
.portfolio-card:hover .portfolio-card__overlay {
    opacity: 1;
}
.portfolio-card__status {
    background: var(--gold-500);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.portfolio-card__title {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--brown-700);
}

/* ===== STAIRS ===== */
.stairs__intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-light);
    line-height: 1.8;
}
.stairs__intro p {
    margin-bottom: 12px;
}
.stairs__intro strong {
    color: var(--brown-700);
}
.stairs__gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stairs__item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all var(--transition);
}
.stairs__item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}
.stairs__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== STEPS ===== */
.steps__timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    position: relative;
}
.steps__timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--brown-100);
}
.step {
    text-align: center;
    position: relative;
}
.step__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brown-600);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
    transition: all var(--transition);
}
.step:hover .step__number {
    background: var(--gold-500);
    transform: scale(1.1);
}
.step__content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--brown-700);
    margin-bottom: 4px;
}
.step__content p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== CONTACTS ===== */
.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.contacts__block {
    margin-bottom: 24px;
}
.contacts__block h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-400);
    margin-bottom: 8px;
}
.contacts__block p {
    color: var(--brown-100);
    line-height: 1.7;
}
.contacts__block a {
    color: var(--gold-300);
    transition: color var(--transition);
}
.contacts__block a:hover {
    color: var(--gold-200);
}
.contacts__form-wrapper h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--white);
}
.contacts__input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--brown-600);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    margin-bottom: 12px;
    outline: none;
    transition: all var(--transition);
}
.contacts__input::placeholder {
    color: var(--brown-300);
}
.contacts__input:focus {
    border-color: var(--gold-500);
    background: rgba(255,255,255,0.12);
}
.contacts__textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--brown-900);
    padding: 24px 0;
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer__logo-img {
    height: 36px;
    width: auto;
    border-radius: 4px;
    opacity: 0.8;
}
.footer__copy {
    color: var(--brown-300);
    font-size: 13px;
}
.footer__up {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--brown-300);
    font-size: 13px;
    font-weight: 500;
    transition: color var(--transition);
}
.footer__up:hover {
    color: var(--gold-400);
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.modal.active {
    opacity: 1;
    visibility: visible;
}
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}
.modal__content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    width: 90%;
    transform: translateY(20px);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
}
.modal.active .modal__content {
    transform: translateY(0);
}
.modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 32px;
    color: var(--brown-400);
    transition: color var(--transition);
    z-index: 1;
    line-height: 1;
}
.modal__close:hover {
    color: var(--brown-800);
}
.modal__content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--brown-800);
    margin-bottom: 20px;
}
.modal__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.modal__gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}
.modal__gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow);
}
.modal__specs {
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}
.modal__specs p {
    font-size: 14px;
    color: var(--text-light);
}
.modal__order-btn {
    margin-top: 8px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    color: var(--white);
    font-size: 36px;
    transition: all var(--transition);
    padding: 12px;
    opacity: 0.7;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    opacity: 1;
}
.lightbox__close { top: 16px; right: 24px; }
.lightbox__prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 24px; top: 50%; transform: translateY(-50%); }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    z-index: 1001;
    width: 0%;
    transition: width 0.1s linear;
}

/* ===== FLOATING CALL BUTTON ===== */
.fab-call {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(76,175,80,0.4);
    z-index: 999;
    transition: all var(--transition);
    animation: fabPulse 2s ease-in-out infinite;
}
.fab-call:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(76,175,80,0.5);
}
@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(76,175,80,0.4); }
    50%      { box-shadow: 0 4px 30px rgba(76,175,80,0.6), 0 0 0 10px rgba(76,175,80,0.1); }
}

/* ===== STATS ===== */
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stat {
    position: relative;
    padding: 32px 16px;
}
.stat__number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    color: var(--gold-400);
    line-height: 1;
    display: inline;
}
.stat__plus {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--gold-400);
    display: inline;
}
.stat__label {
    margin-top: 12px;
    font-size: 15px;
    color: var(--brown-200);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ===== ANIMATIONS ===== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid children */
.advantages__grid [data-aos]:nth-child(1) { transition-delay: 0s; }
.advantages__grid [data-aos]:nth-child(2) { transition-delay: 0.1s; }
.advantages__grid [data-aos]:nth-child(3) { transition-delay: 0.2s; }
.advantages__grid [data-aos]:nth-child(4) { transition-delay: 0.3s; }
.advantages__grid [data-aos]:nth-child(5) { transition-delay: 0.4s; }
.advantages__grid [data-aos]:nth-child(6) { transition-delay: 0.5s; }

.projects__grid [data-aos]:nth-child(1) { transition-delay: 0s; }
.projects__grid [data-aos]:nth-child(2) { transition-delay: 0.15s; }
.projects__grid [data-aos]:nth-child(3) { transition-delay: 0.3s; }
.projects__grid [data-aos]:nth-child(4) { transition-delay: 0.45s; }

.portfolio__grid [data-aos]:nth-child(1) { transition-delay: 0s; }
.portfolio__grid [data-aos]:nth-child(2) { transition-delay: 0.12s; }
.portfolio__grid [data-aos]:nth-child(3) { transition-delay: 0.24s; }
.portfolio__grid [data-aos]:nth-child(4) { transition-delay: 0.36s; }
.portfolio__grid [data-aos]:nth-child(5) { transition-delay: 0.48s; }
.portfolio__grid [data-aos]:nth-child(6) { transition-delay: 0.6s; }

.stairs__gallery [data-aos]:nth-child(1) { transition-delay: 0s; }
.stairs__gallery [data-aos]:nth-child(2) { transition-delay: 0.08s; }
.stairs__gallery [data-aos]:nth-child(3) { transition-delay: 0.16s; }
.stairs__gallery [data-aos]:nth-child(4) { transition-delay: 0.24s; }
.stairs__gallery [data-aos]:nth-child(5) { transition-delay: 0.32s; }
.stairs__gallery [data-aos]:nth-child(6) { transition-delay: 0.4s; }
.stairs__gallery [data-aos]:nth-child(7) { transition-delay: 0.48s; }
.stairs__gallery [data-aos]:nth-child(8) { transition-delay: 0.56s; }

.steps__timeline [data-aos]:nth-child(1) { transition-delay: 0s; }
.steps__timeline [data-aos]:nth-child(2) { transition-delay: 0.1s; }
.steps__timeline [data-aos]:nth-child(3) { transition-delay: 0.2s; }
.steps__timeline [data-aos]:nth-child(4) { transition-delay: 0.3s; }
.steps__timeline [data-aos]:nth-child(5) { transition-delay: 0.4s; }
.steps__timeline [data-aos]:nth-child(6) { transition-delay: 0.5s; }

/* Tilt/glow effect for cards */
.project-card {
    transform-style: preserve-3d;
    perspective: 800px;
}
.project-card:hover {
    transform: translateY(-6px) rotateX(2deg);
    box-shadow: 0 12px 40px rgba(62,39,35,0.18);
}
.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(62,39,35,0.15), 0 0 0 1px rgba(198,153,58,0.15);
}

/* Hero text entrance animation */
.hero__content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: heroEntrance 0.8s ease forwards;
}
.hero__content > *:nth-child(1) { animation-delay: 0.2s; }
.hero__content > *:nth-child(2) { animation-delay: 0.6s; }
.hero__content > *:nth-child(3) { animation-delay: 1.0s; }
@keyframes heroEntrance {
    to { opacity: 1; transform: translateY(0); }
}

/* Section title animation */
.section__title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section__title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

/* --- 4K / Ultra-wide (2560px+) --- */
@media (min-width: 2560px) {
    .container { max-width: 1800px; }
    .hero__content { max-width: 2200px; }
    body { font-size: 20px; }
    .section { padding: 120px 0; }
    .section__title { font-size: 56px; margin-bottom: 64px; }
    .btn { padding: 20px 48px; font-size: 19px; }
    .header { height: 96px; }
    .header__logo-img { height: 64px; }
    .header__link { font-size: 18px; padding: 10px 22px; }
    .header__phone { font-size: 18px; }
    .advantage-card { padding: 48px 36px; }
    .advantage-card__title { font-size: 20px; }
    .advantage-card__text { font-size: 17px; }
    .project-card__title { font-size: 22px; }
    .project-card__specs li { font-size: 16px; }
    .portfolio-card__title { font-size: 18px; }
    .stairs__intro { font-size: 18px; }
    .step__number { width: 72px; height: 72px; font-size: 26px; }
    .step__content h3 { font-size: 18px; }
    .step__content p { font-size: 15px; }
    .contacts__block p { font-size: 18px; }
    .contacts__input { padding: 18px 22px; font-size: 17px; }
    .fab-call { width: 72px; height: 72px; bottom: 40px; right: 40px; }
    .about__list li { font-size: 18px; padding: 12px 0; }
    .about__services { padding: 40px; }
    .about__services-title { font-size: 26px; }
    .modal__content { max-width: 1200px; padding: 48px; }
    .modal__content h2 { font-size: 36px; }
}

/* --- QHD / Large desktop (1920-2559px) --- */
@media (min-width: 1920px) and (max-width: 2559px) {
    .container { max-width: 1500px; }
    .hero__content { max-width: 1800px; }
    body { font-size: 18px; }
    .section { padding: 100px 0; }
    .section__title { font-size: 50px; margin-bottom: 56px; }
    .btn { padding: 18px 42px; font-size: 17px; }
    .header { height: 88px; }
    .header__logo-img { height: 58px; }
    .header__link { font-size: 16px; padding: 8px 18px; }
    .header__phone { font-size: 16px; }
    .advantage-card { padding: 40px 30px; }
    .advantage-card__title { font-size: 19px; }
    .advantage-card__text { font-size: 16px; }
    .about__list li { font-size: 17px; }
    .about__services { padding: 36px; }
    .step__number { width: 64px; height: 64px; font-size: 24px; }
    .modal__content { max-width: 1000px; }
}

/* --- Standard desktop (1366-1919px) --- */
@media (min-width: 1366px) and (max-width: 1919px) {
    .container { max-width: 1200px; }
    .hero__content { max-width: 1400px; }
}

/* --- Small desktop / Laptop (1025-1365px) --- */
@media (max-width: 1365px) {
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Tablet landscape (769-1024px) --- */
@media (max-width: 1024px) {
    .header__nav { display: none; }
    .header__phones { display: none; }
    .header__burger { display: flex; }
    .container { max-width: 960px; }
    .section { padding: 64px 0; }
    .projects__grid { grid-template-columns: repeat(2, 1fr); }
    .steps__timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .steps__timeline::before { display: none; }
    .advantages__grid { grid-template-columns: repeat(2, 1fr); }
    .hero__title { letter-spacing: 2px; }

    .header__phones { display: none; }
}

/* --- Tablet portrait / phone (max 768px) --- */
@media (max-width: 768px) {
    :root { --header-h: 64px; }
    .section { padding: 56px 0; }
    .section__title { margin-bottom: 32px; font-size: 28px; }

    .about__grid { grid-template-columns: 1fr; gap: 32px; }
    .advantages__grid { grid-template-columns: repeat(2, 1fr); }
    .projects__grid,
    .projects__grid--2 { grid-template-columns: 1fr; }
    .portfolio__grid { grid-template-columns: 1fr 1fr; }
    .stairs__gallery { grid-template-columns: repeat(2, 1fr); }
    .steps__timeline { grid-template-columns: repeat(2, 1fr); }
    .contacts__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__inner { flex-direction: column; text-align: center; gap: 16px; }
    .modal__content { padding: 24px; }
    .modal__gallery { grid-template-columns: repeat(2, 1fr); }

    .hero__title { letter-spacing: 2px; }
    .hero__content { padding: 100px 16px 60px; }
    .btn { padding: 12px 28px; font-size: 14px; }
}

/* --- Large phone (481-600px) --- */
@media (max-width: 600px) {
    .section { padding: 44px 0; }
    .section__title { font-size: 24px; margin-bottom: 28px; }
    .advantages__grid { grid-template-columns: 1fr; }
    .portfolio__grid { grid-template-columns: 1fr 1fr; }
    .stairs__gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .steps__timeline { grid-template-columns: repeat(2, 1fr); }
    .about__services { padding: 24px; }
    .about__services-title { font-size: 20px; }
    .advantage-card { padding: 24px 18px; }
    .step__number { width: 48px; height: 48px; font-size: 18px; }
    .contacts__form-wrapper h3 { font-size: 20px; }
}

/* --- Small phone (max 480px) --- */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .section { padding: 36px 0; }
    .section__title { font-size: 22px; margin-bottom: 24px; }

    .hero__content { padding: 90px 14px 50px; }
    .hero__title { letter-spacing: 1px; }
    .hero__actions { flex-direction: column; align-items: center; width: 100%; }
    .hero__actions .btn { width: 100%; }

    .portfolio__grid { grid-template-columns: 1fr; }
    .steps__timeline { grid-template-columns: 1fr; }
    .modal__gallery { grid-template-columns: 1fr; }
    .modal__content { padding: 20px 16px; }
    .modal__content h2 { font-size: 22px; }

    .project-card__body { padding: 16px; }
    .project-card__title { font-size: 16px; }
    .project-card__specs li { font-size: 13px; }

    .about__text p { font-size: 14px; }
    .about__list li { font-size: 14px; }
    .about__note { font-size: 13px; }
    .about__services { padding: 20px; }

    .advantage-card__title { font-size: 15px; }
    .advantage-card__text { font-size: 13px; }

    .stairs__intro p { font-size: 14px; }
    .contacts__block p { font-size: 14px; }
    .contacts__input { padding: 12px 14px; }

    .fab-call { bottom: 16px; right: 16px; width: 50px; height: 50px; }
    .footer__copy { font-size: 12px; }
}

/* --- Extra small (max 360px) --- */
@media (max-width: 360px) {
    .container { padding: 0 10px; }
    .hero__content { padding: 80px 10px 40px; }
    .section__title { font-size: 20px; }
    .btn { padding: 10px 20px; font-size: 13px; }
    .stairs__gallery { grid-template-columns: 1fr; }
}
