/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    color: #1A3068;
    background: #fff;
    line-height: 1.5;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.section { padding: 80px 0; }

/* ===== BUTTON ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; border-radius: 30px; transition: all 0.3s;
    white-space: nowrap;
}
.btn--red {
    background: #E84D3D; color: #fff;
    padding: 14px 36px; font-size: 16px;
}
.btn--red:hover { background: #d4392a; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(232,77,61,0.4); }

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background: rgba(26, 48, 104, 0.35);
    backdrop-filter: blur(4px);
    transition: background 0.3s, box-shadow 0.3s;
}
.header.scrolled {
    background: rgba(26, 48, 104, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.header__inner {
    display: flex; align-items: center; gap: 24px;
    padding-top: 12px; padding-bottom: 12px;
}
.header__logo {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.header__logo-icon { width: 48px; height: 48px; }
.header__logo-icon svg { width: 100%; height: 100%; }
.header__logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.header__logo-text {
    font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 2px;
}
.header__nav { display: flex; gap: 28px; margin-left: auto; }
.nav-link {
    color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.5px;
    transition: color 0.3s; white-space: nowrap;
}
.nav-link:hover { color: #fff; }
.header__right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.header__contact-info { display: flex; align-items: center; gap: 20px; }
.header__email, .header__phone {
    display: flex; align-items: center; gap: 6px;
    color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap;
}
.header__email svg, .header__phone svg { width: 16px; height: 16px; flex-shrink: 0; }
.header__cta { font-size: 13px; padding: 10px 24px; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 1000px;
    display: flex; align-items: center; justify-content: center;
    margin-top: 0; overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center top;
}
.hero__overlay {
    display: none;
}
.hero__inner {
    position: relative; z-index: 2;
    text-align: center; padding: 120px 0 80px;
}
.hero__title {
    font-size: 48px; font-weight: 700; color: transparent;
    max-width: 800px; margin: 0 auto 40px; line-height: 1.2;
    user-select: none; pointer-events: none;
}
.hero__cta {
    font-size: 18px; padding: 16px 48px;
    opacity: 0; pointer-events: auto; cursor: pointer;
    position: relative;
}

/* ===== BANNER ===== */
.banner { position: relative; overflow: hidden; }
.banner__content {
    display: flex; min-height: 340px;
}
.banner__left {
    flex: 0 0 85%; background: #0F499D;
    display: flex; align-items: center; justify-content: center;
    position: relative; padding: 50px 60px;
    clip-path: polygon(0 0, 97% 0, 84% 100%, 0 100%);
}
.banner__left-inner { max-width: 850px; }
.banner__type {
    font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 8px;
}
.banner__name {
    font-size: 44px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 24px;
}
.banner__badges { display: flex; gap: 30px; flex-wrap: wrap; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.badge__icon { width: 52px; height: 52px; }
.badge__icon svg { width: 100%; height: 100%; }
.badge span {
    color: #fff; font-size: 13px; font-weight: 600;
    background: #E84D3D; padding: 4px 16px; border-radius: 20px;
}

.banner__right {
    flex: 1; background: #EF4539;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    margin-left: -25%;
    clip-path: polygon(57% 0, 100% 0, 100% 100%, 28% 100%);
    padding-left: 22%;
}
.banner__right-inner { display: flex; align-items: center; justify-content: center; }
.banner__logo-img {
    max-width: 280px; height: auto; object-fit: contain;
}

/* ===== SERVICES ===== */
.services { padding: 30px 0; background: #0F499D; }
.services__grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.service-card {
    background: #fff; border: 2px solid #D8DCE5; border-radius: 16px;
    padding: 28px 20px; text-align: center;
    font-size: 15px; font-weight: 600; color: #1A3068;
    display: flex; align-items: center; justify-content: center;
    min-height: 90px; transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 6px 25px rgba(0,0,0,0.2); }

/* ===== ABOUT ===== */
.about { background: #fff; padding-top: 40px; padding-bottom: 0; overflow: hidden; }
.about__inner {
    display: flex; flex-direction: column;
}
.about__text-col { max-width: 800px; }
.about__title {
    font-size: 42px; font-weight: 800; color: #1A3068; margin-bottom: 30px;
}
.about__list { display: flex; flex-direction: column; gap: 16px; }
.about__list li {
    position: relative; padding-left: 20px;
    font-size: 16px; line-height: 1.6; color: #333;
}
.about__list li::before {
    content: ''; position: absolute; left: 0; top: 10px;
    width: 8px; height: 8px; border-radius: 50%; background: #1A3068;
}
.about__illustration {
    width: 100%; margin-top: 40px;
}
.about__illustration img { width: 100%; display: block; object-fit: cover; }

/* ===== PROJECTS ===== */
.projects {
    position: relative;
    background: #EFEFEF;
    padding: 550px 0 0; overflow: hidden;
}
/* Construction illustration background */
.projects::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 700px;
    background: url('/static/images/projects-illustration-1x.png') center bottom / cover no-repeat;
    z-index: 0;
}
/* Fade illustration into gray */
.projects::after {
    content: '';
    position: absolute;
    top: 560px; left: 0; right: 0;
    height: 180px;
    background: linear-gradient(180deg, transparent 0%, #EFEFEF 100%);
    z-index: 1;
    pointer-events: none;
}
.projects__bg {
    position: absolute; inset: 0; opacity: 0.15; pointer-events: none;
}
.projects__bg-img { width: 100%; height: 100%; object-fit: cover; }
.projects__title {
    font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 16px;
    position: relative; z-index: 2;
}
.projects__intro {
    font-size: 15px; color: rgba(255,255,255,0.85); max-width: 700px;
    margin-bottom: 40px; line-height: 1.6;
    position: relative; z-index: 2;
}
.projects > .container {
    position: relative; z-index: 3;
}
.projects__grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
    position: relative; z-index: 2; padding-bottom: 60px;
}
.project-card {
    background: #0F499D; border-radius: 20px; overflow: hidden;
    display: flex; transition: transform 0.3s;
}
.project-card:hover { transform: translateY(-4px); }
.project-card__info {
    flex: 0 0 45%; padding: 30px; display: flex; flex-direction: column; justify-content: space-between;
}
.project-card__title {
    font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.3;
}
.project-card__desc {
    font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 24px;
}
.project-card__btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: #E84D3D; color: #fff; border-radius: 30px;
    padding: 12px 32px; font-size: 15px; font-weight: 600;
    transition: background 0.3s; cursor: pointer; align-self: flex-start;
}
.project-card__btn:hover { background: #d4392a; }
.project-card__image {
    flex: 1; padding: 10px;
}
.project-card__image img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 12px;
}

/* Info Boxes */
.info-boxes {
    position: relative; z-index: 2;
    display: flex; min-height: 180px;
}
.info-box {
    flex: 1; padding: 28px 40px; position: relative;
}
.info-box--blue { background: #0F499D; }
.info-box--red { background: #EF4539; }
.info-box:first-child {
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    padding-right: 60px;
}
.info-box:nth-child(2) {
    clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
    margin: 0 -40px; z-index: 1;
    padding: 28px 60px;
}
.info-box:last-child {
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
    padding-left: 60px;
}
.info-box__title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.info-box__sum { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 12px; }
.info-box__item { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.4; }
.info-box__item::before { content: '• '; }

/* ===== PRODUCTION ===== */
.production { background: #EFEFEF; padding-top: 100px; padding-bottom: 100px; }
.production__inner {
    display: flex; align-items: flex-start; gap: 60px;
}
.production__text-col { flex: 0 0 40%; padding-top: 10px; }
.production__title {
    font-size: 38px; font-weight: 800; color: #1A3068; margin-bottom: 4px;
}
.production__subtitle {
    font-size: 20px; font-weight: 400; color: #666; margin-bottom: 24px;
}
.production__text {
    font-size: 15px; line-height: 1.7; color: #444; margin-bottom: 30px;
}

.production__slider-col { flex: 1; }
.slider { position: relative; border-radius: 16px; overflow: hidden; }
.slider__viewport { overflow: hidden; border-radius: 16px; }
.slider__track {
    display: flex; transition: transform 0.5s ease;
}
.slider__slide {
    flex: 0 0 100%; min-width: 100%;
}
.slider__slide img {
    width: 100%; height: 450px; object-fit: cover; display: block;
    border-radius: 16px;
}
.slider__btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(26,48,104,0.7); color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s; z-index: 5;
}
.slider__btn:hover { background: rgba(26,48,104,0.9); }
.slider__btn svg { width: 20px; height: 20px; }
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }
.slider__dots {
    display: flex; justify-content: center; gap: 8px;
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    z-index: 5;
}
.slider__dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.5); border: none; cursor: pointer;
    transition: background 0.3s;
}
.slider__dot.active { background: #fff; }

/* ===== FORM SECTION ===== */
.form-section {
    padding: 0; position: relative; overflow: hidden;
}
.form-section__inner {
    display: flex; min-height: 730px;
}
.form-section__left {
    flex: 0 0 45%; background: #0F499D;
    padding: 60px 60px 60px 80px;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    position: relative; z-index: 2;
}
.form-section__title {
    font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 12px;
}
.form-section__subtitle {
    font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 30px;
}
.form__input {
    width: 100%; background: #fff; border: none; border-radius: 8px;
    padding: 14px 18px; font-size: 15px; color: #333;
    margin-bottom: 16px; outline: none;
}
.form__input::placeholder { color: #999; }
.form__input:focus { box-shadow: 0 0 0 2px #E84D3D; }
.form__checkbox {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 24px; cursor: pointer;
}
.form__checkbox input[type="checkbox"] {
    width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
    accent-color: #E84D3D;
}
.form__checkbox span {
    font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.4;
}
.form__checkbox a { color: rgba(255,255,255,0.8); text-decoration: underline; }
.form__submit {
    width: 100%; font-size: 17px; padding: 16px;
    border: none; cursor: pointer;
}
.form-section__right {
    flex: 1; position: relative; margin-left: -15%;
}
.form-section__image {
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
}
.form-section__logo {
    position: absolute; bottom: 30px; right: 40px;
    display: flex; flex-direction: column; align-items: center;
}
.form-section__logo img { width: 120px; height: auto; }

/* ===== LETTERS ===== */
.letters { background: #EFEFEF; padding-top: 150px; padding-bottom: 150px; }
.section__title {
    font-size: 42px; font-weight: 800; color: #1A3068; margin-bottom: 40px;
}
.letters__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.letter-frame {
    position: relative;
    transition: transform 0.3s;
    border: 4px solid #0F499D;
    border-radius: 4px;
    padding: 6px;
    background: #fff;
}
.letter-frame::before {
    content: '';
    position: absolute; top: -4px; right: -4px;
    width: 50px; height: 70px;
    background: #EF4539;
    clip-path: polygon(100% 0, 100% 100%, 30% 0);
    z-index: 3;
}
.letter-frame::after {
    content: '';
    position: absolute; top: -4px; right: 20px;
    width: 50px; height: 60px;
    background: #0F499D;
    clip-path: polygon(100% 0, 100% 80%, 20% 0);
    z-index: 2;
}
.letter-frame:hover { transform: translateY(-4px); }
.letter-frame img { width: 100%; display: block; position: relative; z-index: 1; }

/* ===== CONTACTS ===== */
.contacts { background: #EFEFEF; padding-top: 80px; padding-bottom: 140px; }
.contacts__inner {
    display: flex; gap: 40px; align-items: flex-start;
    background: #fff; border-radius: 20px;
    padding: 50px; box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.contacts__info-col { flex: 0 0 35%; }
.contacts__title {
    font-size: 42px; font-weight: 800; color: #1A3068; margin-bottom: 30px;
}
.contacts__items { display: flex; flex-direction: column; gap: 20px; }
.contacts__item { display: flex; align-items: flex-start; gap: 14px; }
.contacts__icon {
    width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px;
}
.contacts__icon svg { width: 100%; height: 100%; }
.contacts__icon--pin { color: #E84D3D; }
.contacts__icon--mail { color: #1A3068; }
.contacts__icon--phone { color: #E84D3D; }
.contacts__value { font-size: 15px; color: #333; line-height: 1.5; }
.contacts__link { transition: color 0.3s; }
.contacts__link:hover { color: #E84D3D; }
.contacts__map {
    flex: 1; min-height: 450px; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: #EFEFEF; position: relative; padding-top: 110px;
    border-top: none;
}
.footer__inner {
    display: grid; grid-template-columns: 1.5fr 1fr 0.5fr 0.8fr;
    gap: 30px; padding-bottom: 90px; position: relative; z-index: 2;
}
.footer__logo {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.footer__logo-img { width: 120px; height: auto; object-fit: contain; }
.footer__company-name { font-size: 13px; color: #555; margin-bottom: 6px; }
.footer__company-details { font-size: 12px; color: #777; margin-bottom: 4px; }
.footer__company-address { font-size: 12px; color: #777; line-height: 1.5; }
.footer__legal { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.footer__legal-link { font-size: 13px; color: #555; transition: color 0.3s; }
.footer__legal-link:hover { color: #1A3068; }
.footer__nav { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.footer__nav-link { font-size: 13px; color: #555; transition: color 0.3s; }
.footer__nav-link:hover { color: #1A3068; }
.footer__contacts { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.footer__contact-link {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600; color: #E84D3D;
    transition: color 0.3s;
}
.footer__contact-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer__contact-link:hover { color: #d4392a; }
.footer__illustration {
    position: relative; z-index: 1; margin-top: 10px;
    pointer-events: none;
}
.footer__illustration img { width: 100%; display: block; }

/* ===== MODALS ===== */
.modal {
    display: none; position: fixed; inset: 0; z-index: 200;
    align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(3px);
}
.modal__container {
    position: relative; z-index: 1;
    background: #fff; border-radius: 16px;
    max-width: 900px; width: 90%; max-height: 85vh; overflow-y: auto;
    padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal__close {
    position: absolute; top: 16px; right: 20px;
    font-size: 32px; color: #999; transition: color 0.3s;
    line-height: 1; background: none; border: none; cursor: pointer;
}
.modal__close:hover { color: #333; }
.modal__title { font-size: 28px; font-weight: 800; color: #1A3068; margin-bottom: 24px; }
.modal__section { margin-bottom: 30px; }
.modal__heading { font-size: 18px; font-weight: 700; color: #1A3068; margin-bottom: 12px; }
.modal__text { font-size: 15px; color: #444; line-height: 1.7; margin-bottom: 12px; white-space: pre-line; }
.modal__result {
    font-size: 14px; font-weight: 600; color: #1A3068;
    padding: 12px 16px; background: #F0F2F5; border-radius: 8px; margin-bottom: 12px;
}
.modal__highlight {
    font-size: 14px; font-weight: 600; color: #E84D3D;
    padding: 12px 16px; background: #FFF5F4; border-radius: 8px;
    border-left: 3px solid #E84D3D; margin-bottom: 16px;
}
.modal__photo { border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.modal__photo img { width: 100%; height: 250px; object-fit: cover; }
.modal__photos {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px;
}
.modal__photos img {
    width: 100%; height: 120px; object-fit: cover; border-radius: 8px;
    cursor: pointer; transition: transform 0.3s;
}
.modal__photos img:hover { transform: scale(1.05); }

/* ===== FADE IN ANIMATION ===== */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== MOBILE NAV ===== */
.mobile-nav-overlay {
    display: none; position: fixed; inset: 0; z-index: 99;
    background: rgba(26,48,104,0.95); backdrop-filter: blur(8px);
    flex-direction: column; align-items: center; justify-content: center; gap: 24px;
}
.mobile-nav-overlay.active { display: flex; }
.mobile-nav-overlay .nav-link {
    font-size: 20px; color: #fff; font-weight: 600;
}
.mobile-nav-overlay .header__cta { margin-top: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .header__contact-info { display: none; }
    .header__cta { display: none; }
    .services__grid { grid-template-columns: repeat(3, 1fr); }
    .projects__grid { grid-template-columns: 1fr; }
    .info-boxes { flex-direction: column; }
    .info-box, .info-box:first-child, .info-box:nth-child(2), .info-box:last-child {
        clip-path: none; margin: 0; padding: 24px 40px;
    }
    .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .container { padding: 0 20px; }
    .header__nav { display: none; }
    .burger { display: flex; }
    .hero__title { font-size: 32px; }
    .hero__inner { padding: 100px 0 60px; }
    .hero { min-height: 450px; }
    .banner__content { flex-direction: column; }
    .banner__left {
        flex: auto; clip-path: none; padding: 40px 30px;
    }
    .banner__name { font-size: 24px; }
    .banner__right {
        flex: auto; clip-path: none; margin-left: 0;
        padding: 30px; min-height: 160px;
    }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .about__text-col { max-width: 100%; }
    .about__title { font-size: 32px; }
    .production__inner { flex-direction: column; }
    .production__text-col { flex: auto; }
    .production__title { font-size: 30px; }
    .form-section__inner { flex-direction: column; }
    .form-section__left {
        flex: auto; clip-path: none; padding: 40px 30px;
    }
    .form-section__right { min-height: 300px; margin-left: 0; }
    .letters__grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .contacts__inner { flex-direction: column; padding: 30px; }
    .contacts__info-col { flex: auto; }
    .contacts__map { width: 100%; min-height: 300px; }
    .contacts__title { font-size: 32px; }
    .section__title { font-size: 32px; }
    .footer__inner { grid-template-columns: 1fr; gap: 20px; }
    .modal__container { padding: 24px; width: 95%; }
    .modal__photos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .hero__title { font-size: 26px; }
    .hero { min-height: 380px; }
    .hero__cta { font-size: 16px; padding: 14px 36px; }
    .banner__badges { gap: 16px; }
    .banner__name { font-size: 20px; }
    .services__grid { grid-template-columns: 1fr; }
    .about__title { font-size: 28px; }
    .projects__title { font-size: 28px; }
    .project-card { flex-direction: column; }
    .project-card__info { flex: auto; }
    .project-card__image img { height: 200px; }
    .production__title { font-size: 26px; }
    .slider__slide img { height: 250px; }
    .form-section__title { font-size: 28px; }
    .form-section__left { padding: 30px 20px; }
    .letters__grid { gap: 20px; }
    .modal__photos { grid-template-columns: repeat(2, 1fr); }
}
