@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(
        180deg,
        #E1D8D3 0%,
        #FFFFFF 50%,
        #E1D8D3 100%
    );
    background-attachment: fixed;
    min-height: 100vh;
    color: #000;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

header {
    width: 100%;
    min-height: 100vh;
    background-image:
        linear-gradient(180deg, rgba(225, 216, 211, 0) 65%, #E1D8D3 100%),
        url("image.jpeg");
    background-repeat: no-repeat, no-repeat;
    background-position: center, top;
    background-size: cover, cover;
    margin: 0;
    padding: 0 0 6vh 0;
    position: relative;
}

.logotype {
    display: flex;
    align-items: center;
    gap: 2vw;
}

.logo {
    margin-left: 1vw;
    height: 20vh;
    width: 10vw;
    object-fit: contain;
}

.name {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 25px;
    margin-left: -3vw;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.1;
}

.name p {
    margin: 0;
}


/* ============================================================
   НАВИГАЦИЯ (десктоп)
   ============================================================ */
.nav-menu {
    position: fixed;
    z-index: 1000;
    background-color: rgb(196 196 196 / 85%);
    width: auto;
    max-width: 60vw;
    height: 8vh;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 4vh;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 30px;
    gap: 32px;
    padding: 0 32px;
    backdrop-filter: blur(6px);
}

.nav-menu button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: black;
    font-family: 'PT Serif', serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-menu button:hover {
    color: #555;
}


/* ============================================================
   БУРГЕР (скрыт на десктопе)
   ============================================================ */
.burger,
.mobile-nav,
.overlay {
    display: none;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 0 8vw;
    margin-top: 10vh;
}

.hero-text {
    flex: 1 1 420px;
    min-width: 0;
}

.Lend {
    font-family: 'PT Serif', serif;
    font-size: clamp(34px, 5vw, 75px);
    font-weight: 500;
    margin: 0;
    line-height: 1.1;
}

.devis {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(16px, 1.6vw, 25px);
    font-weight: 400;
    margin: 3vh 0 0 0;
}

.btn {
    width: 60%;
    margin-top: 6vh;
    flex: 0 1 auto;
    width: 240px;
    max-width: 100%;
    height: 64px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    font-weight: 600;
    background-color: rgba(196 196 196 / 0.9);
    color: black;
    cursor: pointer;
    outline: none;
    border: none;
    border-radius: 50px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: rgba(180 180 180 / 0.95);
    transform: translateY(-2px);
}


/* ============================================================
   ОБЩИЕ СТИЛИ ДЛЯ СЕКЦИЙ
   ============================================================ */
.display1,
.display2,
.display3,
.display4,
.display5,
.display7 {
    width: 100%;
    padding: 0 5vw;
    margin: 0 auto;
}

.display1 h1,
.display2 h1,
.display3 h1,
.display4 h1,
.display5 h1,
.display7 h1 {
    font-family: 'PT Serif', serif;
    font-size: clamp(30px, 4vw, 75px);
    text-align: center;
    margin: 4vh 0;
    font-weight: 700;
}

.line1 {
    border: none;
    background-color: black;
    height: 2px;
    width: 70vw;
    max-width: 1200px;
    margin: 40px auto;
}


/* ============================================================
   СЕКЦИЯ 1 — ПОЧЕМУ МЫ
   ============================================================ */
.display1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 6vh;
}

.card {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 40px 40px;
    margin-top: 3vh;
    width: 100%;
}

.feature {
    flex: 1 1 160px;
    max-width: 220px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    gap: 20px;
}

.feature > span {
    display: block;
}

.cards {
    width: 80px;
    height: 80px;
    object-fit: contain;
}


/* ============================================================
   СЕКЦИЯ 2 — КАТАЛОГ
   ============================================================ */
.display2 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cartochki {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    width: 100%;
    padding: 0;
}

.cartochki a {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.cards1,
.cards11 {
    flex: 1 1 260px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    border: 2px solid #000;
    border-radius: 30px;
    padding: 20px;
    background-color: transparent;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.cards1:hover,
.cards11:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.pngcards {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
}

.text {
    margin-top: 14px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 500;
}


/* ============================================================
   СЕКЦИЯ 3 — ЭТАПЫ
   ============================================================ */
.display3 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px 40px;
    width: 100%;
    padding: 0;
}

.step-item {
    flex: 1 1 150px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.step {
    width: 80px;
    height: 80px;
    border: 3px solid #000;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.png2 {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.stepstext1 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 300;
    display: block;
}

.mobile-text {
    display: none;
}

/* ============================================================
   СЕКЦИЯ 4 — АКЦИЯ
   ============================================================ */
.display4 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.akcia {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding: 0;
}

.texts {
    flex: 1 1 340px;
    max-width: 600px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 400;
}

.text4 {
    display: block;
    line-height: 1.4;
}

.text41 {
    margin-top: 4vh;
    font-size: clamp(16px, 1.6vw, 22px);
}

.text41 a {
    color: purple;
    font-weight: 500;
}

.okna {
    flex: 0 1 320px;
    width: 320px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 30px;
}


/* ============================================================
   СЕКЦИЯ 5 — НАШИ РАБОТЫ
   ============================================================ */
.display7 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio {
    width: 100%;
}

.raboti {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.rabots {
    flex: 1 1 280px;
    max-width: 380px;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 30px;
    transition: transform 0.3s ease;
}

.rabots:hover {
    transform: scale(1.04);
}


/* ============================================================
   СЕКЦИЯ 6 — КОНТАКТЫ
   ============================================================ */
.display5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 6vh;
}

.container-tel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 0;
}

.telephone {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(196 196 196);
    width: 90px;
    height: 90px;
    border-radius: 30px;
}

.tel {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.text5 {
    flex: 1 1 260px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.text10 {
    font-size: clamp(13px, 1.2vw, 19px);
    font-weight: 300;
}

.text11 {
    font-size: clamp(16px, 1.5vw, 25px);
    font-weight: 600;
}

.text12 {
    font-size: clamp(24px, 3.5vw, 60px);
    font-weight: 600;
    line-height: 1.1;
}

.tekst {
    margin-top: 6vh;
    font-size: clamp(15px, 1.5vw, 22px);
    text-align: center;
    max-width: 700px;
}

.disp {
    display: flex;
    justify-content: center;
    width: 100%;
}

.zayavka_adres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    margin-top: 4vh;
}

.form-container {
    flex: 1 1 320px;
    max-width: 420px;
    padding: 30px;
    background-color: rgb(196 196 196);
    border-radius: 30px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(16px, 1.5vw, 22px);
}

.form-container h2 {
    text-align: center;
    margin-top: 0;
    font-size: clamp(20px, 2vw, 28px);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-size: 0.9em;
}

input[type="text"],
input[type="tel"],
select {
    padding: 0.75em 1em;
    border-radius: 999px;
    outline: none;
    border: 2px solid currentColor;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
}

.pzh {
    min-height: 80px;
    padding: 16px 20px;
    border-radius: 24px;
    border: 2px solid currentColor;
    font-family: inherit;
    font-size: inherit;
    resize: vertical;
}

.btn1 {
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(180deg, #000000, gray);
    color: white;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: clamp(16px, 1.5vw, 22px);
    margin-top: 1vh;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.btn1:hover {
    opacity: 0.85;
}

.rightst {
    flex: 1 1 280px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
}

.adres {
    padding: 24px;
    background-color: rgb(196 196 196);
    border-radius: 30px;
}

.adres h3 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    font-size: clamp(18px, 1.8vw, 26px);
    margin: 0 0 8px 0;
}

.texts10 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(16px, 1.7vw, 24px);
    line-height: 1.4;
}

.icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.icons a {
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    transition: transform 0.2s ease;
}

.icons a:hover {
    transform: scale(1.1);
}

.icons img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}


/* ============================================================
   ПОДВАЛ
   ============================================================ */
.display6 {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 24px 5vw;
}

.footer {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    font-size: 14px;
    text-align: center;
}


/* ============================================================
   МОДАЛЬНОЕ ОКНО
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(16px, 1.6vw, 22px);
}

.modal-content h2 {
    font-size: clamp(20px, 2.2vw, 30px);
    margin-top: 0;
}

.modal-content img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.modal-content p {
    font-size: clamp(14px, 1.4vw, 20px);
    font-weight: 300;
    margin: 12px 0;
}

.modal-content a {
    color: #000;
    font-weight: 500;
}

.modal-content button {
    margin-top: 24px;
    cursor: pointer;
    border: none;
    background-color: rgb(196 196 196);
    border-radius: 30px;
    padding: 12px 32px;
    font-family: inherit;
    font-size: clamp(14px, 1.4vw, 18px);
    transition: background-color 0.2s ease;
}

.modal-content button:hover {
    background-color: rgb(170 170 170);
}


/* ============================================================
   ПЛАНШЕТЫ И ТЕЛЕФОНЫ (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {

    /* Скрываем десктопную навигацию */
    .nav-menu {
        display: none;
    }

    /* Бургер */
    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        position: fixed;
        top: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        border: none;
        border-radius: 14px;
        background-color: rgb(196 196 196 / 90%);
        z-index: 1200;
        cursor: pointer;
        padding: 0;
        transition: background-color 0.2s ease;
        backdrop-filter: blur(6px);
    }

    .burger:hover {
        background-color: rgb(180 180 180 / 95%);
    }

    .burger span {
        display: block;
        width: 26px;
        height: 3px;
        background-color: #000;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .burger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Выпадающая панель */
    .mobile-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(80vw, 340px);
        background-color: #E1D8D3;
        padding: 100px 30px 40px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1100;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .mobile-nav.open {
        transform: translateX(0);
    }

    .mobile-link {
        background: none;
        border: none;
        padding: 18px 0;
        text-align: left;
        font-family: 'PT Serif', serif;
        font-weight: 700;
        font-size: 22px;
        color: #000;
        cursor: pointer;
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);
        transition: color 0.2s ease, padding-left 0.2s ease;
    }

    .mobile-link:hover,
    .mobile-link:active {
        color: #555;
        padding-left: 8px;
    }

    /* Затемнение */
    .overlay {
        display: block;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1050;
    }

    .overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Шапка */
    header {
        min-height: auto;
        padding-bottom: 6vh;
    }

    .logo {
        height: 12vh;
        width: auto;
        max-width: 120px;
        margin-left: 4vw;
    }

    .name {
        font-size: 18px;
        margin-left: 1vw;
    }

    .hero {
        padding: 0 5vw;
        margin-top: 5vh;
        gap: 24px;
        justify-content: flex-start;
    }

    .hero-text {
        flex: 1 1 100%;
    }

    .btn {
        margin-top: 40px;
        width: 20%;
        max-width: none;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {

    .display1,
    .display2,
    .display3,
    .display4,
    .display5,
    .display7 {
        padding: 0 5vw;
    }

        .logotype {
        gap: 12px;
        padding:0;
    }

    .logo {
        margin-left: 2vw;
        height: 10vh;
        width: auto;
        max-width: 80px;
    }

    .name {
        margin-left: 0; 
        font-size: 15px;
        line-height: 1.1;
    }

    .line1 {
        width: 88vw;
        margin: 28px auto;
    }

    .hero {
        padding: 0 5vw;
        gap: 20px;
    }

    .btn {
        margin-top: 30px;
        width: 60%;
        max-width: none;
        height: 40px;
        font-size: 18px;
    }

    .desktop-text {
        display: none;
    }
    .mobile-text {
        display: inline;
    }

    .card {
        gap: 24px 20px;
        margin-top: 2vh;
    }

    .feature {
        flex: 0 1 calc(50% - 10px);
        max-width: none;
        min-height: auto;
        font-size: 15px;
        gap: 14px;
    }

    .cards {
        width: 64px;
        height: 64px;
    }

    .cards1,
    .cards11 {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .steps {
        gap: 28px 16px;
    }

    .step-item {
        flex: 0 1 calc(50% - 8px);
        max-width: none;
        gap: 12px;
    }

    .stepstext1 {
        font-size: 15px;
    }

    .okna {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .rabots {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .text5 {
        flex: 1 1 100%;
        text-align: center;
    }

    .form-container,
    .rightst {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .icons img {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {

    .burger {
        width: 50px;
        height: 50px;
        top: 14px;
        right: 14px;
    }

    .mobile-link {
        font-size: 20px;
        padding: 16px 0;
    }

    .card {
        gap: 20px 16px;
    }

    .feature {
        flex: 0 1 calc(50% - 8px);
        max-width: none;
        font-size: 13px;
        gap: 10px;
    }

    .cards {
        width: 56px;
        height: 56px;
    }

    .step-item {
        flex: 1 1 45%;
    }

    .step {
        width: 68px;
        height: 68px;
        border-radius: 24px;
    }

    .png2 {
        width: 36px;
        height: 36px;
    }

    .telephone {
        width: 72px;
        height: 72px;
        border-radius: 24px;
    }

    .tel {
        width: 40px;
        height: 40px;
    }
}