/* =========================================================
   Base
   ========================================================= */
html {
    box-sizing: border-box;
    min-width: 320px;
    background: #fff;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: #fff;
    color: #fff;
    font-family: "Manrope", Arial, sans-serif;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   RUBIN ENGINEERING — first screen
   Desktop reference: 1920 px
   Black panel: 1880 x 922 px, radius 32 px
   ========================================================= */
.hero-wrap {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 922px;
    min-height: 0;
    overflow: hidden;
    border-radius: 32px;
    background: #222D5A;
    color: #fff;
}

/* Video is a separate decorative background layer.
   Header and content remain in normal Grid/Flex flow above it. */
.hero > .video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    background: #000;
    pointer-events: none;
}

.hero > .video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1);
}

.hero > .video::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.delay-0\.3s {
    -webkit-animation-delay: 0.3s !important;
    animation-delay: 0.3s !important;
}


.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
}

/* Header uses Grid only. No absolute positioning. */
.hero__header {
    width: min(calc(100% - 30px), 1366px);
    min-width: 0;
    height: 56px;
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: 206px 79px 650px 80px 153px 30px 168px;
    align-items: start;
}

.hero__logo {
    grid-column: 1;
    width: 206px;
    height: 56px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.hero__logo-image {
    display: block;
    width: 206px;
    height: 56px;
    max-width: 100%;
    object-fit: contain;
    object-position: left top;
}

.hero__logo-mark {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 4px;
    background: #222d5a;
}

.hero__logo-text {
    padding-top: 1px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.hero__nav {
    grid-column: 3;
    width: 650px;
    padding-top: 18px;
}

.hero__nav-list {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    list-style: none;
}

.hero__nav-link,
.hero__contact-link {
    font-weight: 500;
    white-space: nowrap;
}

.hero__nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 7px;
    font-size: 16px;
    line-height: 1.25;
}

.hero__nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #0139B0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.hero__nav-link:hover::after,
.hero__nav-link:focus-visible::after {
    transform: scaleX(1);
}

.hero__contacts {
    grid-column: 5;
    width: 153px;
    height: 48px;
    margin-top: 4px;
    display: grid;
    gap: 2px;
}

.hero__contact-link {
    font-size: 18px;
    line-height: 1.25;
}

.hero__request {
    grid-column: 7;
    width: 168px;
    height: 42px;
    margin-top: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 65px;
    background: #fff;
    color: #222d5a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero__request:hover,
.hero__request:focus-visible {
    background: #0139b0;
    color: #fff;
}

/* Figma desktop body: 739 copy + 192 gap + 435 cards = 1366 px. */
.hero__body {
    width: min(calc(100% - 80px), 1366px);
    min-width: 0;
    margin: 167px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 739fr) minmax(0, 435fr);
    column-gap: 14.0556369%;
    align-items: start;
}

.hero__copy {
    min-width: 0;
}

.hero__title {
    width: 100%;
    max-width: 739px;
    margin: 0;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    font-size: 70px;
    font-weight: 600;
    line-height: 1.32;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero__text {
    width: 100%;
    max-width: 531px;
    margin: 40px 0 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
}

.hero__scroll {
    width: 102px;
    min-height: 62px;
    margin-top: 151px;
    display: grid;
    grid-template-columns: 1px 85px;
    column-gap: 16px;
    align-items: start;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

.hero__scroll > span:first-child {
    grid-column: 2;
    grid-row: 1;
    padding-top: 13px;
}

.hero__scroll-line {
    grid-column: 1;
    grid-row: 1;
    width: 7px;
    height: 62px;
    margin-left: -3px;
    background: center / 7px 62px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='62' viewBox='0 0 7 62' fill='none'%3E%3Cpath d='M3.5 0V61M0.5 58L3.5 61L6.5 58' stroke='white' stroke-width='1'/%3E%3C/svg%3E");
    animation: hero-scroll-arrow 1.8s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes hero-scroll-arrow {
    0%, 100% {
        transform: translateY(-6px);
        opacity: 0.55;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* Fixed header shown after page scroll. The original hero header stays in normal flow. */
.hero__header.site-fixed-header {
    position: fixed;
    z-index: 1000;
    top: 20px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    min-width: 0;
    height: 78px;
    margin: 0;
    padding: 11px max(20px, calc((100% - 1366px) / 2));
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 206px 79px 650px 80px 153px 30px 168px;
    align-items: center;
    border-radius: 20px;
    background: #222d5a;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, box-shadow 0.22s ease;
}

.hero__header.site-fixed-header.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.hero__header.site-fixed-header.bot_shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.hero__header.site-fixed-header .hero__logo,
.hero__header.site-fixed-header .hero__nav,
.hero__header.site-fixed-header .hero__contacts,
.hero__header.site-fixed-header .hero__request {
    margin-top: 0;
}

@media (max-width: 1500px) {
    .hero__header.site-fixed-header {
        top: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        height: auto;
        padding: 12px clamp(20px, 4vw, 60px);
        grid-template-columns: auto 1fr auto;
        gap: 10px 28px;
        align-items: start;
        border-radius: 18px;
    }
}

@media (max-width: 768px) {
    .hero__header.site-fixed-header {
        top: 8px;
        left: 8px;
        right: 8px;
        padding: 10px 14px;
        gap: 10px 14px;
        border-radius: 16px;
    }
}

/* =========================================================
   Cards
   ========================================================= */
.hero__cards {
    width: 100%;
    min-width: 0;
    margin-top: 21px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 6.6666667%;
    row-gap: 30px;
}

.project-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    color: #fff;
    transition: filter 3s ease, transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .project-card:hover,
    .project-card:focus-visible {
        transform: translateY(-6px);
    }
}

.project-card--small {
    aspect-ratio: 203 / 183;
    padding: 24px 30px 29px;
    border: 1px solid #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: transparent;
}

.project-card__icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #222d5a;
}

.project-card__icon img {
    width: 28px;
    height: 28px;
    max-width: none;
    object-fit: contain;
}

.project-card__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.project-card--state {
    grid-column: 1 / -1;
    aspect-ratio: 435 / 208;
    display: grid;
    grid-template-columns: 38.6206897% 61.3793103%;
    grid-template-rows: 1fr;
    background: #222d5a;
}

.project-card__content {
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 2;
    min-width: 0;
    padding: 24px 30px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.project-card--state .project-card__icon {
    border: 1px solid #fff;
    background: transparent;
}

/* Building stays a separate IMG layer and participates in Grid. */
.project-card__image {
    grid-column: 2;
    grid-row: 1;
    z-index: 1;
    min-width: 0;
    overflow: visible;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.project-card__image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    transform: none;
    object-fit: contain;
    object-position: right bottom;
    -webkit-mask-image: none;
    mask-image: none;
}

.hero a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* =========================================================
   Fluid desktop
   ========================================================= */
@media (max-width: 1500px) {
    .hero {
        height: auto;
        min-height: auto;
        border-radius: clamp(20px, 2.1vw, 32px);
    }

    .hero__inner {
        height: auto;
        padding: 20px clamp(36px, 4vw, 60px) 56px;
    }

    .hero__header {
        width: 100%;
        height: auto;
        margin: 0;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 18px 28px;
        align-items: start;
    }

    .hero__logo {
        grid-column: 1;
        width: auto;
    }

    .hero__nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        padding-top: 10px;
    }

    .hero__nav-list {
        justify-content: flex-start;
        gap: clamp(18px, 2.4vw, 34px);
        flex-wrap: wrap;
    }

    .hero__contacts {
        grid-column: 2;
        justify-self: end;
    }

    .hero__request {
        grid-column: 3;
        margin-top: 7px;
    }

    .hero__body {
        width: 100%;
        margin-top: clamp(70px, 8vw, 120px);
        column-gap: clamp(56px, 8vw, 150px);
        grid-template-columns: minmax(0, 1fr) minmax(370px, 435px);
    }

    .hero__title {
        font-size: clamp(54px, 4.65vw, 68px);
    }

    .hero__text {
        font-size: clamp(17px, 1.35vw, 20px);
        line-height: 1.5;
    }

    .hero__scroll {
        margin-top: clamp(70px, 9vw, 125px);
    }
}

/* =========================================================
   Tablet / narrow desktop
   Critical range 768–1024 px: one-column body prevents
   a large empty area on the right.
   ========================================================= */
@media (max-width: 1100px) {
    .hero__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 58px;
        margin-top: 72px;
    }

    .hero__copy {
        max-width: 760px;
    }

    .hero__title {
        max-width: 720px;
        font-size: clamp(48px, 6vw, 64px);
    }

    .hero__scroll {
        margin-top: 55px;
    }

    .hero__cards {
        width: 100%;
        max-width: none;
        margin-top: 0;
        column-gap: 20px;
        row-gap: 20px;
    }

    .project-card--small {
        min-height: 180px;
        aspect-ratio: auto;
        padding: 24px 28px 28px;
    }

    .project-card--state {
        height: clamp(260px, 28vw, 300px);
        min-height: 260px;
        aspect-ratio: auto;
        grid-template-columns: minmax(210px, 34%) minmax(0, 1fr);
    }

    .project-card__image {
        overflow: visible;
    }

    .project-card__image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        transform: none;
        object-fit: contain;
        object-position: right bottom;
    }
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 768px) {
    .hero-wrap {
        padding: 12px;
    }

    .hero {
        border-radius: 16px;
    }

    .hero__inner {
        padding: 18px 20px 36px;
    }

    .hero__header {
        grid-template-columns: 1fr auto;
        gap: 14px 20px;
    }

    .hero__logo {
        height: 48px;
        gap: 14px;
    }

    .hero__logo-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .hero__logo-text {
        font-size: 16px;
    }

    .hero__contacts {
        display: none;
    }

    .hero__request {
        grid-column: 2;
        width: auto;
        min-width: 150px;
        height: 40px;
        margin-top: 4px;
        padding-inline: 18px;
        font-size: 13px;
    }

    .hero__nav {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .hero__nav-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px 18px;
    }

    .hero__nav-link {
        font-size: 14px;
    }

    .hero__body {
        margin-top: 54px;
        gap: 44px;
    }

    .hero__title {
        font-size: clamp(40px, 8.2vw, 54px);
        line-height: 1.18;
    }

    .hero__text {
        max-width: 100%;
        margin-top: 24px;
        font-size: 15px;
        line-height: 1.55;
    }

    .hero__scroll {
        display: none;
    }

    .hero__cards {
        gap: 14px;
    }

    .project-card--small {
        min-height: 166px;
        padding: 22px 20px;
        gap: 18px;
    }

    .project-card__icon {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .project-card__icon img {
        width: 27px;
        height: 27px;
    }

    .project-card__title {
        font-size: 17px;
    }

    .project-card--state {
        min-height: 240px;
        grid-template-columns: minmax(180px, 38%) minmax(0, 1fr);
    }

    .project-card__content {
        padding: 22px 20px 0;
        gap: 20px;
    }
}

@media (max-width: 520px) {
    .hero-wrap {
        padding: 10px;
    }

    .hero__inner {
        padding: 16px 16px 30px;
    }

    .hero__header {
        gap: 12px 10px;
    }

    .hero__logo {
        gap: 10px;
    }

    .hero__logo-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .hero__logo-text {
        padding-top: 2px;
        font-size: 13px;
    }

    .hero__request {
        min-width: 126px;
        height: 38px;
        padding-inline: 12px;
        font-size: 11px;
    }

    .hero__nav-list {
        gap: 8px 14px;
    }

    .hero__nav-link {
        font-size: 12px;
    }

    .hero__body {
        margin-top: 42px;
        gap: 36px;
    }

    .hero__title {
        font-size: clamp(34px, 10vw, 44px);
        line-height: 1.16;
    }

    .hero__text {
        font-size: 14px;
    }

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

    .project-card--small,
    .project-card--state {
        grid-column: auto;
    }

    .project-card--small {
        min-height: 150px;
    }

    .project-card--state {
        height: auto;
        min-height: 330px;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(175px, 1fr);
    }

    .project-card__content {
        grid-column: 1;
        grid-row: 1;
        padding: 22px 20px 18px;
    }

    .project-card__image {
        grid-column: 1;
        grid-row: 2;
        overflow: visible;
        align-items: flex-end;
        justify-content: center;
        padding: 0 10px 12px;
    }

    .project-card__image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        transform: none;
        object-fit: contain;
        object-position: center bottom;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

@media (max-width: 360px) {
    .hero__inner {
        padding-inline: 14px;
    }

    .hero__logo-text {
        font-size: 12px;
    }

    .hero__request {
        min-width: 116px;
        padding-inline: 10px;
    }

    .hero__nav-list {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: clamp(32px, 10vw, 36px);
    }
}

/* =========================================================
   RUBIN ENGINEERING — second section / О компании
   Figma desktop: 1920 px
   Content: 1366 px; section side padding: 20 px
   ========================================================= */
.about-section {
    width: 100%;
    max-width: 100%;
    padding: 110px 20px 110px;
    box-sizing: border-box;
    background: #fff;
    color: #2b2929;
}

.about-section__inner {
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    min-width: 0;
}

.about-section__lead {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 48.9019034% 30.4538799%;
    column-gap: 18.9604685%;
    align-items: start;
}

.about-section__title,
.about-project-card__title,
.about-stats__title,
.about-stats__number,
.about-team__title,
.about-feature__title {
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    letter-spacing: 0;
}

.about-section__title {
    width: 100%;
    margin: 0;
    color: #222d5a;
    font-size: 48px;
    font-weight: 600;
    line-height: 71px;
    text-transform: uppercase;
}

.about-section__intro {
    width: 100%;
    max-width: 416px;
    margin: 11px 0 0;
    color: #2b2929;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
}

/* Desktop grid: 435 + 30 + 901 = 1366. */
.about-section__showcase {
    width: 100%;
    min-width: 0;
    margin-top: 28px;
    display: grid;
    grid-template-columns: 31.8448023% 65.9590044%;
    column-gap: 2.1961933%;
    align-items: stretch;
}

.about-section__right-column {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
}

/* Gray Figma folder. Shape stays an independent SVG layer. */
.about-project-card {
    width: 100%;
    min-width: 0;
    aspect-ratio: 435 / 592;
    align-self: end;
    display: grid;
}

.about-project-card__shape,
.about-project-card__content {
    grid-column: 1;
    grid-row: 1;
}

.about-project-card__shape {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.about-project-card__content {
    width: 100%;
    min-width: 0;
    padding: 40px 40px 0;
    align-self: start;
}

.about-project-card__icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #222d5a;
}

.about-project-card__icon img {
    width: 22px;
    height: 35px;
    max-width: 22px;
    object-fit: contain;
}

.about-project-card__title {
    width: 100%;
    max-width: 295px;
    margin: 80px 0 0;
    color: #202b57;
    font-size: 28px;
    font-weight: 600;
    line-height: 41px;
    text-transform: uppercase;
}

.about-section__accent {
    width: 56px;
    height: 3px;
    display: block;
    border-radius: 10px;
    background: #0139b0;
}

.about-project-card .about-section__accent {
    margin-top: 30px;
}

.about-project-card__text {
    width: 100%;
    max-width: 337px;
    margin: 30px 0 0;
    color: #2b2929;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

/* Blue Figma folder: shape, building and HTML text are separate layers. */
.about-stats {
    width: 100%;
    min-width: 0;
    aspect-ratio: 901 / 380;
    display: grid;
}

.about-stats__shape,
.about-stats__layout {
    grid-column: 1;
    grid-row: 1;
}

.about-stats__shape {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.about-stats__layout {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 51.7203108% 48.2796892%;
    align-items: stretch;
    overflow: hidden;
}

.about-stats__visual {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 44px 0 0 64px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.about-stats__building {
    width: 336px;
    max-width: calc(100% - 2px);
    max-height: calc(100% - 2px);
    height: auto;
    object-fit: contain;
    position: relative;
    bottom: -24px;
    left: 14px;
}

.about-stats__details {
    width: 100%;
    min-width: 0;
    padding-top: 42px;
    color: #fff;
}

.about-stats__title,
.about-stats__number {
    margin: 0;
    color: #fff;
    font-size: 42px;
    font-weight: 500;
    line-height: 62px;
    text-transform: uppercase;
}

.about-stats__caption {
    margin: 3px 0 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.about-stats__line {
    width: 56px;
    height: 3px;
    display: block;
    margin-top: 30px;
    border-radius: 10px;
    background: #fff;
}

.about-stats__number {
    display: block;
    margin-top: 28px;
}

.about-stats__caption--projects {
    margin-top: 3px;
}

/* Lower Figma folder. Photo remains a separate, uncropped IMG. */
.about-team {
    width: 100%;
    min-width: 0;
    aspect-ratio: 901 / 452;
    display: grid;
}

.about-team__shape,
.about-team__photo-wrap,
.about-team__content {
    grid-column: 1;
    grid-row: 1;
}

.about-team__shape {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.about-team__photo-wrap {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: grid;
    place-items: center;
}

.about-team__photo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.about-team__content {
    width: min(51.4983352%, 464px);
    min-width: 0;
    height: calc(100% - 82px);
    margin: 40px 0 42px 4.4395117%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
}

.about-team__title {
    width: 295px;
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    line-height: 41px;
    text-transform: uppercase;
}

.about-team__line {
    width: 56px;
    height: 3px;
    flex: 0 0 3px;
    margin-top: 30px;
    border-radius: 10px;
    background: #fff;
}

.about-team__technologies {
    width: 464px;
    max-width: 100%;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.about-team__technologies span {
    height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 65px;
    background: #fff;
    color: #222d5a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.about-team__technologies span:nth-child(1) { width: 114px; }
.about-team__technologies span:nth-child(2) { width: 117px; }
.about-team__technologies span:nth-child(3) { width: 88px; }
.about-team__technologies span:nth-child(4) { width: 91px; }
.about-team__technologies span:nth-child(5) { width: 88px; }
.about-team__technologies span:nth-child(6) { width: 77px; }

/* Five bottom advantages. Figma width: 1347 px. */
.about-features {
    width: min(98.6090776%, 1347px);
    min-width: 0;
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(5, 230px);
    justify-content: space-between;
    align-items: start;
}

.about-feature {
    width: 230px;
    min-width: 0;
}

.about-feature__title {
    width: 195px;
    min-height: 72px;
    margin: 0;
    color: #202b57;
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
    text-transform: uppercase;
}

.about-feature .about-section__accent {
    margin-top: 24px;
}

.about-feature__text {
    width: 230px;
    max-width: 100%;
    margin: 30px 0 0;
    color: #2b2929;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

/* =========================================================
   Second section — fluid desktop
   ========================================================= */
@media (max-width: 1400px) {
    .about-section__title {
        font-size: clamp(42px, 3.43vw, 48px);
        line-height: 1.48;
    }

    .about-project-card__content {
        padding: clamp(28px, 2.86vw, 40px) clamp(28px, 2.86vw, 40px) 0;
    }

    .about-project-card__icon {
        width: clamp(50px, 4.28vw, 60px);
        height: clamp(50px, 4.28vw, 60px);
    }

    .about-project-card__title {
        margin-top: clamp(48px, 5.72vw, 80px);
        font-size: clamp(22px, 2vw, 28px);
        line-height: 1.46;
    }

    .about-project-card .about-section__accent {
        margin-top: clamp(20px, 2.15vw, 30px);
    }

    .about-project-card__text {
        margin-top: clamp(20px, 2.15vw, 30px);
        font-size: clamp(13px, 1.15vw, 16px);
        line-height: 1.5;
    }

    .about-stats__visual {
        padding-top: clamp(24px, 3.15vw, 44px);
        padding-left: clamp(30px, 4.58vw, 64px);
    }

    .about-stats__building {
        width: min(336px, 78%);
        max-height: calc(100% - 2px);
        bottom: clamp(-24px, -1.7vw, -16px);
        left: clamp(8px, 1vw, 14px);
    }

    .about-stats__details {
        padding-top: clamp(24px, 3vw, 42px);
    }

    .about-stats__title,
    .about-stats__number {
        font-size: clamp(32px, 3vw, 42px);
        line-height: 1.48;
    }

    .about-stats__caption {
        font-size: clamp(13px, 1.15vw, 16px);
        line-height: 1.5;
    }

    .about-stats__line {
        margin-top: clamp(18px, 2.15vw, 30px);
    }

    .about-stats__number {
        margin-top: clamp(17px, 2vw, 28px);
    }

    .about-team__content {
        margin-top: clamp(28px, 2.86vw, 40px);
        margin-bottom: clamp(28px, 3vw, 42px);
        height: auto;
        align-self: stretch;
    }

    .about-team__title {
        font-size: clamp(22px, 2vw, 28px);
        line-height: 1.46;
    }

    .about-team__line {
        margin-top: clamp(18px, 2.15vw, 30px);
    }

    .about-team__technologies {
        gap: clamp(10px, 1.28vw, 18px);
    }

    .about-team__technologies span {
        height: clamp(34px, 3vw, 42px);
        width: auto !important;
        padding-inline: clamp(17px, 1.86vw, 26px);
        font-size: clamp(12px, 1vw, 14px);
    }
}

@media (max-width: 1220px) {
    .about-features {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 54px 44px;
    }

    .about-feature {
        width: 100%;
    }

    .about-feature__title,
    .about-feature__text {
        width: 100%;
    }

    .about-feature__title {
        max-width: 220px;
    }
}

/* =========================================================
   Second section — tablet / 924–768 px
   ========================================================= */
@media (max-width: 980px) {
    .about-section {
        padding-top: 80px;
        padding-bottom: 90px;
    }

    .about-section__lead {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .about-section__title {
        max-width: 680px;
        font-size: clamp(38px, 5vw, 46px);
        line-height: 1.38;
    }

    .about-section__intro {
        max-width: 620px;
        margin-top: 0;
    }

    .about-section__showcase {
        margin-top: 48px;
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .about-project-card {
        width: min(100%, 435px);
        justify-self: center;
        align-self: auto;
    }

    .about-section__right-column {
        gap: 30px;
    }

    .about-project-card__content {
        padding: 40px 40px 0;
    }

    .about-project-card__icon {
        width: 60px;
        height: 60px;
    }

    .about-project-card__title {
        margin-top: 80px;
        font-size: 28px;
        line-height: 41px;
    }

    .about-project-card .about-section__accent,
    .about-project-card__text {
        margin-top: 30px;
    }

    .about-project-card__text {
        font-size: 16px;
        line-height: 24px;
    }

    .about-stats__visual {
        padding-top: clamp(30px, 5vw, 44px);
        padding-left: clamp(40px, 7vw, 64px);
    }

    .about-stats__building {
        width: min(336px, 80%);
        bottom: clamp(-22px, -2.2vw, -14px);
        left: clamp(7px, 1.2vw, 12px);
    }

    .about-stats__details {
        padding-top: clamp(30px, 4.7vw, 42px);
    }

    .about-stats__title,
    .about-stats__number {
        font-size: clamp(32px, 4.6vw, 42px);
    }

    .about-stats__caption {
        font-size: clamp(13px, 1.8vw, 16px);
    }

    .about-team__content {
        width: min(51.4983352%, 464px);
        margin-left: 4.4395117%;
    }

    .about-team__title {
        font-size: clamp(23px, 3vw, 28px);
    }

    .about-features {
        margin-top: 64px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 50px 42px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 64px 20px 72px;
    }

    .about-section__title {
        font-size: clamp(34px, 6vw, 42px);
        line-height: 1.34;
    }

    .about-section__intro {
        font-size: 16px;
        line-height: 25px;
    }

    .about-section__showcase {
        margin-top: 40px;
        gap: 24px;
    }

    .about-section__right-column {
        gap: 24px;
    }

    .about-stats__visual {
        padding-top: 8%;
        padding-left: 10%;
    }

    .about-stats__building {
        width: 76%;
        bottom: clamp(-18px, -2.4vw, -10px);
        left: clamp(5px, 1.3vw, 10px);
    }

    .about-stats__details {
        padding-top: 7%;
    }

    .about-stats__title,
    .about-stats__number {
        font-size: clamp(26px, 4.7vw, 34px);
    }

    .about-stats__caption {
        font-size: clamp(12px, 2vw, 14px);
    }

    .about-stats__line {
        width: clamp(36px, 7vw, 56px);
        margin-top: 4%;
    }

    .about-stats__number {
        margin-top: 4%;
    }

    .about-team__content {
        margin-top: 5%;
        margin-bottom: 5%;
    }

    .about-team__title {
        font-size: clamp(20px, 3.6vw, 26px);
    }

    .about-team__line {
        width: clamp(36px, 7vw, 56px);
        margin-top: 4%;
    }

    .about-team__technologies {
        gap: 10px;
    }

    .about-team__technologies span {
        height: 34px;
        padding-inline: 16px;
        font-size: 11px;
    }

    .about-feature__title {
        min-height: auto;
        font-size: 22px;
        line-height: 1.45;
    }

    .about-feature .about-section__accent {
        margin-top: 18px;
    }

    .about-feature__text {
        margin-top: 20px;
        font-size: 15px;
        line-height: 23px;
    }
}

/* =========================================================
   Second section — mobile
   ========================================================= */
@media (max-width: 520px) {
    .about-section {
        padding: 48px 10px 56px;
    }

    .about-section__lead {
        gap: 22px;
    }

    .about-section__title {
        font-size: clamp(28px, 8.2vw, 36px);
        line-height: 1.3;
    }

    .about-section__intro {
        font-size: 14px;
        line-height: 22px;
    }

    .about-section__showcase {
        margin-top: 32px;
        gap: 20px;
    }

    .about-section__right-column {
        gap: 20px;
    }

    .about-project-card {
        width: min(100%, 435px);
    }

    .about-project-card__content {
        padding: clamp(20px, 7vw, 32px) clamp(20px, 7vw, 32px) 0;
    }

    .about-project-card__icon {
        width: clamp(44px, 13vw, 54px);
        height: clamp(44px, 13vw, 54px);
    }

    .about-project-card__icon img {
        width: 18px;
        height: 29px;
    }

    .about-project-card__title {
        margin-top: clamp(30px, 10vw, 52px);
        font-size: clamp(18px, 5.5vw, 23px);
        line-height: 1.42;
    }

    .about-project-card .about-section__accent {
        width: 44px;
        margin-top: clamp(14px, 5vw, 22px);
    }

    .about-project-card__text {
        margin-top: clamp(14px, 5vw, 22px);
        font-size: clamp(12px, 3.4vw, 14px);
        line-height: 1.5;
    }

    .about-stats__visual {
        padding-top: 9%;
        padding-left: 10%;
    }

    .about-stats__building {
        width: 72%;
        bottom: -8px;
        left: 4px;
    }

    .about-stats__details {
        padding-top: 7%;
    }

    .about-stats__title,
    .about-stats__number {
        font-size: clamp(17px, 5vw, 23px);
        line-height: 1.22;
    }

    .about-stats__caption {
        margin-top: 2px;
        font-size: clamp(9px, 2.8vw, 12px);
        line-height: 1.28;
    }

    .about-stats__line {
        width: clamp(26px, 8vw, 38px);
        height: 2px;
        margin-top: 4%;
    }

    .about-stats__number {
        margin-top: 4%;
    }

    /* On phones the photo remains complete; technologies move below it
       so the 901:452 image does not have to be cropped or squeezed. */
    .about-team {
        aspect-ratio: auto;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        border-radius: 20px;
        background: #353535;
    }

    .about-team__shape,
    .about-team__photo-wrap {
        grid-column: 1;
        grid-row: 1;
        aspect-ratio: 901 / 452;
    }

    .about-team__content {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 20px;
    }

    .about-team__title {
        width: 100%;
        font-size: 20px;
        line-height: 1.42;
    }

    .about-team__line {
        width: 44px;
        margin-top: 16px;
    }

    .about-team__technologies {
        width: 100%;
        margin-top: 24px;
        gap: 10px;
    }

    .about-team__technologies span {
        height: 36px;
        padding-inline: 18px;
        font-size: 12px;
    }

    .about-features {
        margin-top: 48px;
        grid-template-columns: minmax(0, 1fr);
        gap: 42px;
    }

    .about-feature__title {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    .about-section__title {
        font-size: 27px;
    }

    .about-stats__title,
    .about-stats__number {
        font-size: 16px;
    }

    .about-stats__caption {
        font-size: 8.5px;
    }

    .about-project-card__content {
        padding: 18px 18px 0;
    }

    .about-project-card__icon {
        width: 42px;
        height: 42px;
    }

    .about-project-card__title {
        margin-top: 28px;
        font-size: 17px;
    }

    .about-project-card__text {
        font-size: 11.5px;
    }
}

/* =========================================================
   RUBIN ENGINEERING — third section / Услуги
   Figma desktop: 1920 px
   Inner content: 1366 px; cards: 435×552; gap: 30 px
   All graphics remain separate layers; no absolute positioning.
   ========================================================= */
.services-section {
    width: 100%;
    max-width: 100%;
    padding: 0 10px 110px;
    box-sizing: border-box;
    background: #fff;
    color: #2b2929;
}

.services-section__panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    border-radius: 32px;
    background: #222D5A;
}

.services-section__drawing,
.services-section__inner {
    grid-column: 1;
    grid-row: 1;
}

.services-section__drawing {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-width: 0;
    align-self: stretch;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
}

.services-section__inner {
    z-index: 1;
    width: 100%;
    max-width: 1366px;
    min-width: 0;
    margin: 0 auto;
    padding: 110px 0 110px;
    box-sizing: border-box;
    align-self: stretch;
}

.services-section__header {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-content: space-between;
}

.services-section__heading {
    width: 100%;
    min-width: 0;
}

.services-section__title,
.services-card__title {
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    letter-spacing: 0;
}

.services-section__title {
    width: 100%;
    max-width: 780px;
    margin: 0;
    color: #ffffff;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.32;
    text-transform: uppercase;
}

.services-section__intro {
    width: 100%;
    max-width: 905px;
    margin: 26px 0 0;
    color: #ffffff;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
}

.services-section__cards {
    width: 100%;
    max-width: 1366px;
    min-width: 0;
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.services-card {
    width: 100%;
    max-width: 435px;
    min-width: 0;
    aspect-ratio: 435 / 552;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    background: #fff;
    color: #2b2929;
    border-radius: 24px;
}

.services-card__content {
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
    width: 100%;
    min-width: 0;
    padding: 40px 40px 34px;
    box-sizing: border-box;
}

.services-card--blue {
    background-color: transparent;
    background-image: url("../img/services/card-project-dark.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    color: #fff;
}

.services-card--white-shape {
    background-color: transparent;
    background-image: url("../img/services/card-white.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    color: #2b2929;
}

.services-card__icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background: #222d5a;
    color: #fff;
    border-radius: 6px;
}

.services-card__icon img {
    display: block;
    width: auto;
    height: auto;
    max-width: 28px;
    max-height: 29px;
    object-fit: contain;
}

.services-card--blue .services-card__icon {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.services-card__title {
    width: 100%;
    margin: 80px 0 0;
    color: inherit;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.32;
    text-transform: uppercase;
}

.services-card__line {
    width: 56px;
    height: 3px;
    margin-top: 30px;
    display: block;
    background: #0139b0;
}

.services-card--blue .services-card__line {
    background: #fff;
}

.services-card__list {
    width: 100%;
    margin: 38px 0 0;
    padding: 0;
    display: grid;
    gap: 22px;
    list-style: none;
    color: inherit;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
}

.services-card__list li {
    min-width: 0;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
}

.services-card__list li::before {
    content: "◆";
    width: 16px;
    color: #0139b0;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
}

.services-card--blue .services-card__list li::before {
    color: #fff;
}

@media (max-width: 1439px) {
    .services-section__panel {
        min-height: 0;
    }

    .services-section__inner {
        max-width: min(1366px, calc(100% - 48px));
        padding-top: clamp(88px, 8vw, 116px);
        padding-bottom: clamp(88px, 8vw, 116px);
    }

    .services-section__header {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-section__title {
        font-size: clamp(36px, 3.2vw, 42px);
    }

    .services-section__cards {
        margin-top: clamp(86px, 8vw, 116px);
        gap: clamp(20px, 2.1vw, 30px);
    }

    .services-card__content {
        padding: clamp(30px, 3vw, 40px);
    }

    .services-card__title {
        margin-top: clamp(58px, 6vw, 84px);
        font-size: clamp(23px, 2.1vw, 28px);
    }

    .services-card__list {
        margin-top: clamp(26px, 3vw, 38px);
        gap: clamp(16px, 2vw, 22px);
        font-size: clamp(15px, 1.3vw, 18px);
        line-height: 1.4;
    }
}

@media (max-width: 1100px) {
    .services-section__inner {
        max-width: calc(100% - 40px);
    }

    .services-section__header {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-section__title {
        max-width: 680px;
        font-size: 36px;
    }

    .services-section__intro {
        max-width: 905px;
        font-size: 17px;
        line-height: 26px;
    }

    .services-section__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
    }

    .services-card:nth-child(3) {
        grid-column: 1 / -1;
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 860px) {
    .services-section {
        padding-inline: 20px;
    }

    .services-section__panel {
        border-radius: 24px;
    }

    .services-section__drawing {
        width: 100%;
        height: 100%;
        align-self: stretch;
        object-fit: cover;
        object-position: center;
    }

    .services-section__inner {
        max-width: calc(100% - 40px);
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .services-section__header {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .services-section__title {
        max-width: 100%;
        font-size: clamp(32px, 5.2vw, 38px);
    }

    .services-section__intro {
        max-width: 100%;
    }

    .services-section__cards {
        margin-top: 64px;
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        justify-items: center;
    }

    .services-card,
    .services-card:nth-child(3) {
        grid-column: auto;
        width: min(100%, 435px);
    }

    .services-card__content {
        padding: 36px;
    }

    .services-card__title {
        margin-top: 64px;
        font-size: 26px;
    }

    .services-card__list {
        margin-top: 32px;
        font-size: 16px;
        line-height: 23px;
    }
}

@media (max-width: 520px) {
    .services-section {
        padding: 0 20px 80px;
    }

    .services-section__panel {
        border-radius: 20px;
    }

    .services-section__inner {
        max-width: calc(100% - 28px);
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .services-section__title {
        font-size: clamp(27px, 8.2vw, 34px);
        line-height: 1.22;
    }

    .services-section__title br {
        display: none;
    }

    .services-section__intro {
        margin-top: 20px;
        font-size: 14px;
        line-height: 22px;
    }

    .services-section__cards {
        margin-top: 50px;
        gap: 20px;
    }

    .services-card__content {
        padding: clamp(22px, 8vw, 32px);
    }

    .services-card__icon {
        width: 48px;
        height: 48px;
    }

    .services-card__icon img {
        max-width: 24px;
        max-height: 25px;
    }

    .services-card__title {
        margin-top: clamp(32px, 9vw, 46px);
        font-size: clamp(20px, 6.4vw, 24px);
    }

    .services-card__line {
        width: 44px;
        height: 2px;
        margin-top: 18px;
    }

    .services-card__list {
        margin-top: 22px;
        gap: 14px;
        font-size: clamp(13px, 3.8vw, 15px);
        line-height: 1.45;
    }

    .services-card__list li {
        grid-template-columns: 12px minmax(0, 1fr);
        column-gap: 10px;
    }

    .services-card__list li::before {
        width: 12px;
        font-size: 8px;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .services-section {
        padding-inline: 20px;
    }

    .services-section__inner {
        max-width: calc(100% - 24px);
    }

    .services-section__title {
        font-size: 26px;
    }

    .services-card__content {
        padding: 20px;
    }

    .services-card__title {
        margin-top: 30px;
        font-size: 19px;
    }

    .services-card__list {
        margin-top: 18px;
        font-size: 13px;
    }
}


/* =========================================================
   RUBIN ENGINEERING — fourth section / Реализованные проекты
   ========================================================= */
.projects-section {
    width: 100%;
    max-width: 100%;
    padding: 0 20px 110px;
    box-sizing: border-box;
    background: #fff;
    color: #2b2929;
}

.projects-section__inner {
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    min-width: 0;
}

.projects-section__header {
    width: 100%;
    min-width: 0;
}

.projects-section__title {
    margin: 0;
    color: #222d5a;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.12;
    text-transform: uppercase;
}

.projects-section__intro {
    width: 100%;
    max-width: 1032px;
    margin: 26px 0 0;
    color: #4a4b55;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
}

.projects-tabs {
    width: 100%;
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
}

.projects-tabs__button {
    min-height: 42px;
    padding: 10px 22px;
    border: 1px solid #d4d6df;
    border-radius: 999px;
    background: #fff;
    color: #5e6589;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    transition: filter 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.projects-tabs__button:not(.is-active):hover,
.projects-tabs__button:not(.is-active):focus-visible {
    border-color: #222d5a;
    background: transparent;
    color: #222d5a;
    filter: brightness(0.98);
}

.projects-tabs__button.is-active {
    border-color: #222d5a;
    background: #222d5a;
    color: #fff;
}

.projects-tabs__button.is-active:hover,
.projects-tabs__button.is-active:focus-visible {
    border-color: #1b2449;
    background: #1b2449;
    color: #fff;
    filter: brightness(0.98);
}

.project-item:hover,
.project-item:focus-within {
    filter: brightness(0.95);
}

.projects-section__toggle:hover,
.projects-section__toggle:focus-visible {
    background: #0139B0;
    filter: none;
}

.projects-grid {
    width: 100%;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 22px;
}

.project-item {
    width: 100%;
    min-width: 0;
    min-height: 216px;
    padding: 30px 30px 60px;
    border-radius: 28px;
    background: #eff0f6;
    color: #2b2929;
    box-sizing: border-box;
    transition: filter 3s ease;
}

.project-item.is-hidden {
    display: none;
}

.project-item__tag {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 4px 18px;
    border-radius: 999px;
    background: #cfd2df;
    color: #4e597f;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
}

.project-item__title {
    margin: 42px 0 0;
    color: #222d5a;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    text-transform: uppercase;
    height: 96px;
    overflow: hidden;
}

.project-item__text {
    margin: 10px 0 0;
    color: #434650;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
}

.projects-section__toggle {
    width: 100%;
    min-height: 62px;
    margin-top: 50px;
    padding: 16px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    background: #222d5a;
    color: #fff;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    transition: background-color 0.25s ease, filter 0.25s ease;
}

.projects-section__toggle[hidden] {
    display: none;
}

.projects-section__toggle-icon {
    display: inline-block;
    width: 16px;
    text-align: center;
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 1366px) {
    .projects-section__title {
        font-size: clamp(38px, 3.1vw, 42px);
    }

    .projects-grid {
        gap: 22px 20px;
    }

    .project-item__title {
        font-size: clamp(24px, 1.95vw, 28px);
    }
}

@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 0 20px 96px;
    }

    .projects-section__title {
        font-size: clamp(32px, 5.2vw, 38px);
        line-height: 1.14;
    }

    .projects-section__intro {
        font-size: 16px;
        line-height: 25px;
    }

    .projects-tabs {
        margin-top: 34px;
        gap: 12px;
    }

    .projects-tabs__button {
        min-height: 40px;
        padding: 10px 18px;
        font-size: 13px;
    }

    .projects-grid {
        margin-top: 30px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-item {
        min-height: 190px;
        padding: 20px 20px 24px;
        border-radius: 24px;
    }

    .project-item__title {
        margin-top: 34px;
        font-size: clamp(22px, 5.4vw, 28px);
    }

    .project-item__text {
        font-size: 15px;
        line-height: 22px;
    }

    .projects-section__toggle {
        min-height: 58px;
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .projects-section {
        padding: 0 10px 80px;
    }

    .projects-section__title {
        font-size: clamp(28px, 8.6vw, 34px);
    }

    .projects-section__intro {
        margin-top: 20px;
        font-size: 14px;
        line-height: 22px;
    }

    .projects-tabs {
        gap: 10px;
    }

    .projects-tabs__button {
        width: auto;
        max-width: 100%;
        padding: 10px 16px;
        font-size: 12px;
        line-height: 18px;
    }

    .project-item {
        min-height: 170px;
        padding: 18px 16px 22px;
    }

    .project-item__tag {
        padding: 4px 14px;
        font-size: 9px;
    }

    .project-item__title {
        margin-top: 28px;
        font-size: clamp(20px, 7.2vw, 24px);
    }

    .project-item__text {
        font-size: 14px;
        line-height: 21px;
    }

    .projects-section__toggle {
        min-height: 54px;
        margin-top: 22px;
        padding-inline: 18px;
        font-size: 15px;
    }
}


/* =========================================================
   RUBIN ENGINEERING — fifth section / Как мы работаем
   ========================================================= */
.work-section {
    width: 100%;
    max-width: 100%;
    padding: 0 20px 110px;
    box-sizing: border-box;
    background: transparent;
    color: #2b2929;
}

.work-section__panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 110px 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    border-radius: 32px;
    background: #eff0f6;
}

.work-section__inner {
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    min-width: 0;
}

.work-section__title {
    margin: 0;
    color: #222d5a;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.12;
    text-transform: uppercase;
}

.work-section__steps {
    width: 100%;
    min-width: 0;
    margin-top: 62px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #c9cddb;
    border-bottom: 1px solid #c9cddb;
}

.work-step {
    min-width: 0;
    min-height: 170px;
    padding: 34px 42px 36px 0;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 22px;
    align-items: start;
    border-bottom: 1px solid #c9cddb;
}

.work-step:nth-child(even) {
    padding-left: 42px;
    border-left: 1px solid #c9cddb;
}

.work-step:nth-child(3),
.work-step:nth-child(4) {
    border-bottom: 1px solid #c9cddb;
}

.work-step--wide {
    grid-column: 1 / -1;
    min-height: 170px;
    padding-right: 50%;
    border-bottom: 0;
}

.work-step__number {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid #222d5a;
    border-radius: 50%;
    color: #222d5a;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.work-step__content {
    min-width: 0;
}

.work-step__title {
    margin: 0;
    color: #222d5a;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
}

.work-step__text {
    width: 100%;
    max-width: 460px;
    margin: 12px 0 0;
    color: #2b2929;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

@media (max-width: 1024px) {
    .work-section__panel {
        padding-block: 96px;
    }

    .work-section__steps {
        margin-top: 54px;
    }

    .work-step {
        padding: 30px 28px 32px 0;
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 18px;
    }

    .work-step:nth-child(even) {
        padding-left: 28px;
    }

    .work-step--wide {
        padding-right: 35%;
    }

    .work-step__number {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .work-section {
        padding: 0 20px 96px;
    }

    .work-section__panel {
        padding-block: 80px;
    }

    .work-section__title {
        font-size: clamp(32px, 5.2vw, 38px);
        line-height: 1.14;
    }

    .work-section__steps {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 48px;
    }

    .work-step,
    .work-step:nth-child(even),
    .work-step--wide {
        grid-column: auto;
        min-height: 0;
        padding: 28px 0 30px;
        border-left: 0;
        border-bottom: 1px solid #c9cddb;
    }

    .work-step:last-child {
        border-bottom: 0;
    }

    .work-step__title {
        font-size: 22px;
    }

    .work-step__text {
        max-width: 560px;
        margin-top: 14px;
        font-size: 15px;
        line-height: 23px;
    }
}

@media (max-width: 520px) {
    .work-section {
        padding: 0 10px 80px;
    }

    .work-section__panel {
        padding-block: 60px;
    }

    .work-section__title {
        font-size: clamp(28px, 8.6vw, 34px);
    }

    .work-section__steps {
        margin-top: 40px;
    }

    .work-step,
    .work-step:nth-child(even),
    .work-step--wide {
        grid-template-columns: 42px minmax(0, 1fr);
        column-gap: 14px;
        padding: 24px 0 26px;
    }

    .work-step__number {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .work-step__title {
        font-size: 20px;
    }

    .work-step__text {
        font-size: 14px;
        line-height: 22px;
    }
}


/* =========================================================
   RUBIN ENGINEERING — sixth section / Лицензия СРО
   ========================================================= */
.license-section {
    width: 100%;
    max-width: 100%;
    padding: 0 20px 110px;
    box-sizing: border-box;
    background: #fff;
    color: #2b2929;
}

.license-section__inner {
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    min-width: 0;
}

.license-section__title {
    margin: 0;
    color: #222d5a;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.12;
    text-transform: uppercase;
}

.license-section__content {
    width: 100%;
    min-width: 0;
    margin-top: 60px;
    display: grid;
    grid-template-columns: minmax(0, 805px) 435px;
    gap: 125px;
    align-items: start;
}

.license-section__left {
    width: 100%;
    min-width: 0;
}

.license-section__documents {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 340px));
    gap: 125px;
    align-items: start;
}

.license-document {
    width: 100%;
    max-width: 340px;
    min-width: 0;
    display: block;
    border: 1px solid #c9cddb;
    background: #fff;
    cursor: zoom-in;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.license-document:hover,
.license-document:focus-visible {
    border-color: #0139b0;
    box-shadow: 0 14px 32px rgba(34, 45, 90, .12);
    transform: translateY(-3px);
}

.license-document img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.license-section__download {
    width: fit-content;
    min-width: 292px;
    min-height: 60px;
    margin-top: 50px;
    padding: 14px 28px 14px 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #0139b0;
    color: #fff;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .25s ease;
}

.license-section__download:hover,
.license-section__download:focus-visible {
    background: #020042;
}

.license-section__download-arrow {
    font-family: "Manrope", Arial, sans-serif;
    font-size: 27px;
    font-weight: 500;
    line-height: 1;
}

.license-section__note {
    width: 100%;
    max-width: 435px;
    min-width: 0;
    aspect-ratio: 435 / 592;
    display: grid;
    color: #222d5a;
}

.license-section__note-shape,
.license-section__note-content {
    grid-column: 1;
    grid-row: 1;
}

.license-section__note-shape {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.license-section__note-content {
    width: 100%;
    min-width: 0;
    padding: 40px 40px 0;
    box-sizing: border-box;
    align-self: start;
}

.license-section__icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #222d5a;
}

.license-section__icon img {
    width: 22px;
    height: 35px;
    max-width: 22px;
    object-fit: contain;
}

.license-section__note-title {
    width: 100%;
    max-width: 337px;
    margin: 80px 0 0;
    color: #202b57;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 41px;
    text-transform: uppercase;
}

.license-section__line {
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 30px;
    border-radius: 10px;
    background: #0139b0;
}

.license-section__note-text {
    width: 100%;
    max-width: 337px;
    margin-top: 30px;
    color: #2b2929;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.license-section__note-text p {
    margin: 0;
}

.license-section__note-text p + p {
    margin-top: 24px;
}

.license-section__note-text strong {
    font-weight: 700;
}

/* Large license pages inside the already connected Fancybox gallery. */
.fancybox-slide--image .fancybox-content {
    background: #fff;
}

@media (max-width: 1365px) {
    .license-section__content {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 36%);
        gap: clamp(30px, 6vw, 80px);
    }

    .license-section__documents {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .license-document {
        max-width: 100%;
    }
}

@media (max-width: 980px) {
    .license-section__content {
        grid-template-columns: minmax(0, 1fr);
        gap: 50px;
    }

    .license-section__left {
        width: 100%;
    }

    .license-section__documents {
        width: min(100%, 740px);
    }

    .license-section__note {
        width: min(100%, 435px);
        max-width: 435px;
    }
}

@media (max-width: 768px) {
    .license-section {
        padding: 0 20px 96px;
    }

    .license-section__title {
        font-size: clamp(32px, 5.2vw, 38px);
        line-height: 1.14;
    }

    .license-section__content {
        margin-top: 54px;
    }

    .license-section__documents {
        gap: 22px;
    }

    .license-section__download {
        min-width: 260px;
        min-height: 56px;
        margin-top: 36px;
        font-size: 18px;
    }

    .license-section__note-content {
        padding: 36px 36px 0;
    }

    .license-section__note-title {
        margin-top: 64px;
        font-size: 25px;
        line-height: 1.42;
    }

    .license-section__note-text {
        font-size: 15px;
        line-height: 23px;
    }
}

@media (max-width: 520px) {
    .license-section {
        padding: 0 10px 80px;
    }

    .license-section__title {
        font-size: clamp(28px, 8.6vw, 34px);
    }

    .license-section__content {
        margin-top: 44px;
        gap: 36px;
    }

    .license-section__documents {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .license-document {
        width: min(100%, 340px);
    }

    .license-section__download {
        width: 100%;
        min-width: 0;
        margin-top: 28px;
        padding-inline: 20px;
    }

    .license-section__note {
        width: min(100%, 435px);
        max-width: 435px;
    }

    .license-section__note-content {
        padding: 28px 28px 0;
    }

    .license-section__icon {
        width: 54px;
        height: 54px;
    }

    .license-section__icon img {
        width: 20px;
        height: 31px;
    }

    .license-section__note-title {
        margin-top: 46px;
        font-size: 22px;
        line-height: 1.38;
    }

    .license-section__line {
        margin-top: 22px;
    }

    .license-section__note-text {
        margin-top: 22px;
        font-size: 14px;
        line-height: 21px;
    }

    .license-section__note-text p + p {
        margin-top: 18px;
    }
}


/* =========================================================
   RUBIN ENGINEERING — feedback / Обсудить проект
   ========================================================= */
.feedback {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    background: #fff;
}

.feedback .feedback-grid {
    width: 100%;
    max-width: 1880px;
    min-height: 820px;
    margin: 0 auto;
    padding: 110px clamp(70px, 12.8vw, 248px) 110px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(320px, 440px) minmax(0, 760px);
    justify-content: space-between;
    align-items: start;
    gap: clamp(56px, 8vw, 150px);
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #222d5a;
}

.feedback__drawing {
    position: absolute;
    z-index: 0;
    right: -10px;
    top: -70px;
    width: min(540px, 34vw);
    max-width: 540px;
    height: auto;
    opacity: 0.09;
    pointer-events: none;
    user-select: none;
    filter: brightness(2.4) saturate(0.7);
}

.feedback__building {
    position: absolute;
    z-index: 0;
    left: 0;
    bottom: 0;
    width: min(818px, 43.5vw);
    max-width: 800px;
    height: auto;
    opacity: 1;
    pointer-events: none;
    user-select: none;
}

.feedback-copy,
.feedback-form {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.feedback .section-title {
    margin: 0;
    color: #fff;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.12;
    text-transform: uppercase;
}

.feedback-copy > p {
    max-width: 355px;
    margin: 38px 0 0;
    color: #fff;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
}

.feedback-contacts-box {
    width: 100%;
    max-width: 470px;
    margin-top: 66px;
    padding: 40px 30px 60px;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    box-sizing: border-box;
}

.feedback-contacts-box .feedback-contact {
    margin-top: 0;
}

.feedback-contacts-box .feedback-contact + .feedback-contact {
    margin-top: 30px;
}

.feedback-contact {
    margin-top: 66px;
    display: grid;
    gap: 8px;
}

.feedback-contact + .feedback-contact {
    margin-top: 30px;
}

.feedback-contact span {
    color: #919ab7;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 22px;
}

.feedback-contact a {
    width: fit-content;
    color: #fff;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 30px;
    text-decoration: none;
}

.feedback-form {
    width: 100%;
    max-width: 760px;
    padding: 48px 48px 56px;
    box-sizing: border-box;
    border-radius: 24px;
    background: #fff;
    color: #222d5a;
}

.form-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 42px;
}

.field {
    min-width: 0;
    display: grid;
    align-content: start;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    margin-bottom: 14px;
    color: #5a6283;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 0;
    border-bottom: 1px solid #c9cddb;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #222d5a;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    transition: border-color 0.25s ease;
}

.field input,
.field select {
    height: 42px;
    padding: 0 4px 10px 0;
}

.field select {
    height: 48px;
    padding: 0 38px 0 0;
    border: 0;
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

.field select option {
    padding: 14px 18px;
    color: #222d5a;
    background: #fff;
}

/* Кастомный dropdown поверх нативного select: позволяет реально скруглить option. */
.field-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

.field-select__native {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.field-select__trigger {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 34px 10px 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    border: 0;
    border-bottom: 1px solid #c9cddb;
    border-radius: 0;
    background: transparent;
    color: #222d5a;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
    cursor: pointer;
}

.field-select__trigger:focus-visible {
    border-bottom-color: #0139b0;
    outline: 0;
}

.field.has-error .field-select__trigger,
.project-popup__field.has-error .field-select__trigger {
    border-bottom-color: #c12d2d;
}

.project-popup__field .field-select__trigger {
    width: 100%;
    min-width: 0;
    height: 35px;
    padding: 0 34px 11px 4px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    border: 0;
    border-bottom: 1px solid #c9cddb;
    border-radius: 0;
    background: transparent;
    color: #222d5a;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
    cursor: pointer;
}

.project-popup__field .field-select__options {
    top: calc(100% + 8px);
}

.field-select__arrow {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-right: 2px solid #222d5a;
    border-bottom: 2px solid #222d5a;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.field-select.is-open .field-select__arrow {
    transform: rotate(225deg) translate(-1px, -1px);
}

.field-select__options {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    display: grid;
    gap: 6px;
    list-style: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(34, 45, 90, 0.12);
}

.field-select__options[hidden] {
    display: none;
}

.field-select__option {
    width: 100%;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid #c9cddb;
    border-radius: 12px;
    background: #fff;
    color: #222d5a;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.field-select__option:hover,
.field-select__option:focus-visible,
.field-select__option.is-selected {
    border-color: #0139b0;
    background: #f5f7ff;
    color: #0139b0;
    outline: 0;
}

.field textarea {
    min-height: 116px;
    padding: 0 4px 10px 0;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-bottom-color: #1554d6;
}

.field select:focus {
    border: 0;
}

.field.has-error input,
.field.has-error textarea {
    border-bottom-color: #c44040;
}

.field.has-error select {
    border-color: #c44040;
}

.field-error,
.consent-error {
    min-height: 16px;
    margin-top: 5px;
    color: #c44040;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 11px;
    line-height: 16px;
}

.consent {
    width: fit-content;
    max-width: 100%;
    margin-top: 34px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    cursor: pointer;
    color: #5a6283;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

.consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consent-box {
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    border: 1px solid #aeb6ce;
    border-radius: 4px;
    background: #fff;
}

.consent input:checked + .consent-box {
    border-color: #1554d6;
    background: #1554d6;
}

.consent input:checked + .consent-box::after {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

.consent-error {
    display: block;
    margin-top: 4px;
}

.submit-btn {
    width: 100%;
    min-height: 60px;
    margin-top: 10px;
    padding: 16px 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    border: 0;
    border-radius: 999px;
    background: #1554d6;
    color: #fff;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s ease, filter 0.25s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible {
    background: #020042;
}

.form-status {
    min-height: 20px;
    margin-top: 10px;
    color: #1554d6;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

@media (max-width: 1366px) {
    .feedback .feedback-grid {
        min-height: auto;
        padding: 90px clamp(48px, 7vw, 96px) 70px;
        grid-template-columns: minmax(280px, 360px) minmax(0, 700px);
        gap: 60px;
    }

    .feedback .section-title {
        font-size: clamp(44px, 4vw, 52px);
    }
}

@media (max-width: 1024px) {
    .feedback .feedback-grid {
        padding: 70px 48px;
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .feedback-copy {
        max-width: 700px;
    }

    .feedback-copy > p {
        max-width: 560px;
    }

    .feedback-contact {
        margin-top: 36px;
    }

    .feedback-contacts-box {
        max-width: 520px;
        margin-top: 36px;
    }

    .feedback-contacts-box .feedback-contact {
        margin-top: 0;
    }

    .feedback-form {
        max-width: 100%;
    }

    .feedback__drawing {
        width: min(500px, 52vw);
        opacity: 0.07;
    }
}

@media (max-width: 768px) {
    .feedback__building {
        width: min(430px, 86vw);
        opacity: 0.16;
    }

    .feedback {
        padding: 0 10px 96px;
    }

    .feedback .feedback-grid {
        padding: 52px 24px 24px;
        border-radius: 24px;
        gap: 40px;
    }

    .feedback .section-title {
        font-size: clamp(36px, 8vw, 46px);
    }

    .feedback-copy > p {
        margin-top: 24px;
        font-size: 16px;
        line-height: 25px;
    }

    .feedback-contact a {
        font-size: 20px;
        line-height: 28px;
    }

    .feedback-form {
        padding: 34px 26px 34px;
        border-radius: 20px;
    }

    .form-grid {
        column-gap: 22px;
        row-gap: 32px;
    }
}

@media (max-width: 560px) {
    .feedback .feedback-grid {
        padding-inline: 16px;
    }

    .feedback__drawing {
        width: 78vw;
        top: -20px;
        right: -25vw;
    }

    .feedback-form {
        padding: 28px 20px 30px;
    }

    .feedback-contacts-box {
        max-width: 100%;
        padding: 22px 20px 24px;
        border-radius: 14px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        row-gap: 26px;
    }

    .field--full {
        grid-column: auto;
    }

    .field textarea {
        min-height: 100px;
    }

    .consent {
        margin-top: 26px;
        font-size: 11px;
        line-height: 17px;
    }

    .submit-btn {
        min-height: 54px;
        padding-inline: 18px;
        gap: 18px;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .feedback .feedback-grid {
        padding: 40px 14px 14px;
    }

    .feedback .section-title {
        font-size: 32px;
    }

    .feedback-form {
        padding: 24px 16px 26px;
    }

    .feedback-contact a {
        font-size: 18px;
    }
}


/* =========================================================
   Floating project CTA + Fancybox popup
   ========================================================= */
.floating-project-cta {
    position: fixed;
    right: 50px;
    bottom: 50px;
    z-index: 950;
    width: 210px;
    height: 210px;
    color: #222d5a;
    pointer-events: none;
}

.floating-project-cta.is-sampling,
.floating-project-cta.is-sampling * {
    pointer-events: none !important;
}

.floating-project-cta--dark {
    color: #fff;
}

.floating-project-cta--light {
    color: #222d5a;
}

.floating-project-cta__ring {
    width: 210px;
    height: 210px;
    display: block;
    color: inherit;
    animation: floating-project-cta-spin 30s linear infinite;
    transform-origin: 50% 50%;
    pointer-events: none;
}

.floating-project-cta__ring-text {
    fill: currentColor;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.9px;
    text-transform: uppercase;
    transition: fill 0.25s ease;
}

@keyframes floating-project-cta-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.floating-project-cta__button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 123px;
    height: 123px;
    padding: 0;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    background: #0139b0;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 0.3s ease;
}

.floating-project-cta__button:hover,
.floating-project-cta__button:focus-visible {
    background: #020042;
}

.floating-project-cta__button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

.floating-project-cta__button img {
    width: 44px;
    max-width: 44px;
    height: 44px;
    object-fit: contain;
    pointer-events: none;
}

.project-popup {
    width: min(760px, calc(100vw - 40px));
    max-width: 760px;
    padding: 0;
    border-radius: 24px;
    background: #fff;
    color: #222d5a;
}

.project-popup__form {
    width: 100%;
    padding: 50px 48px 44px;
    box-sizing: border-box;
}

.project-popup__title {
    margin: 0;
    color: #222d5a;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.12;
    text-transform: uppercase;
}

.project-popup__title + .project-popup__grid {
    margin-top: 36px;
}

.project-popup__grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 28px;
}

.project-popup__field {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.project-popup__field--full {
    grid-column: 1 / -1;
}

.project-popup__field label {
    margin-bottom: 14px;
    color: #5a6183;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
}

.project-popup__field input,
.project-popup__field select,
.project-popup__field textarea {
    width: 100%;
    min-width: 0;
    padding: 0 4px 11px;
    border: 0;
    border-bottom: 1px solid #c7cbda;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #222d5a;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    box-sizing: border-box;
}

.project-popup__field textarea {
    min-height: 132px;
    resize: vertical;
}

.project-popup__field input:focus,
.project-popup__field select:focus,
.project-popup__field textarea:focus {
    border-bottom-color: #0139b0;
}

.project-popup__field.has-error input,
.project-popup__field.has-error select {
    border-bottom-color: #c12d2d;
}

.project-popup__error,
.project-popup__consent-error {
    min-height: 17px;
    margin-top: 5px;
    color: #c12d2d;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 11px;
    line-height: 16px;
}

.project-popup__consent {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5a6183;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    cursor: pointer;
}

.project-popup__consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.project-popup__consent-box {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    border: 1px solid #9ca6c4;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.project-popup__consent input:checked + .project-popup__consent-box {
    border-color: #0139b0;
    background: #0139b0 center / 12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.2 12 13 4.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.project-popup__submit {
    width: 100%;
    min-height: 60px;
    margin-top: 28px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    border: 0;
    border-radius: 999px;
    background: #1550db;
    color: #fff;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.project-popup__submit:hover,
.project-popup__submit:focus-visible {
    background: #020042;
}

.project-popup__status {
    min-height: 20px;
    margin-top: 10px;
    color: #222d5a;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

.fancybox-slide--html .project-popup {
    margin: 30px 0;
}

.fancybox-slide--html .project-popup .fancybox-close-small {
    top: 12px;
    right: 12px;
    color: #222d5a;
}

@media (max-width: 768px) {
    .project-popup__form {
        padding: 42px 28px 32px;
    }

    .project-popup__grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .project-popup__field--full {
        grid-column: auto;
    }
}

@media (max-width: 420px) {
    .project-popup {
        width: calc(100vw - 20px);
    }

    .project-popup__form {
        padding: 38px 20px 26px;
    }
}


/* =========================================================
   RUBIN ENGINEERING — footer
   ========================================================= */
.site-footer {
    width: 100%;
    max-width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
    background: transparent;
    color: #222d5a;
}

.site-footer__inner {
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    min-width: 0;
}

.site-footer__bottom {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-footer__copyright,
.site-footer__developer {
    margin: 0;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
}

.site-footer__copyright {
    color: #62677e;
}

.site-footer__developer {
    color: #62677e;
    font-weight: 500;
}

@media (max-width: 700px) {
    .site-footer {
        padding: 40px 20px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 420px) {
    .site-footer {
        padding: 40px 10px;
    }
}


@media (max-width: 768px) {
    .hero__logo-image {
        width: 174px;
        height: 48px;
    }
}

@media (max-width: 520px) {
    .hero__logo-image {
        width: 142px;
        height: auto;
    }
}

@media (max-width: 360px) {
    .hero__logo-image {
        width: 126px;
    }
}

/* Fixed header alignment update */
.hero__header.site-fixed-header {
    top: 10px;
    align-items: center;
}

.hero__header.site-fixed-header .hero__logo,
.hero__header.site-fixed-header .hero__nav,
.hero__header.site-fixed-header .hero__contacts,
.hero__header.site-fixed-header .hero__request {
    align-self: center;
}

.hero__header.site-fixed-header .hero__logo {
    align-items: center;
}

.hero__header.site-fixed-header .hero__logo-image {
    object-position: left center;
}

.hero__header.site-fixed-header .hero__nav {
    padding-top: 0;
}

@media (max-width: 1500px) {
    .hero__header.site-fixed-header {
        top: 10px;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero__header.site-fixed-header {
        top: 10px;
        align-items: center;
    }
}

/* =========================================================
   Floating side navigation — replaces the scrolling top header
   ========================================================= */
.site-side-nav {
    position: fixed;
    z-index: 1000;
    left: 24px;
    top: 80px;
    width: 180px;
    padding: 40px 20px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
    background: transparent;
    color: #222d5a;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.site-side-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.site-side-nav__logo {
    width: 56px;
    height: 56px;
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.site-side-nav__logo-crop {
    width: 56px;
    height: 56px;
    display: block;
    overflow: hidden;
}

.site-side-nav__logo-crop img {
    display: block;
    width: 211px;
    max-width: none;
    height: 56px;
    object-fit: contain;
    object-position: left center;
}

.site-side-nav__menu {
    width: 100%;
    margin-top: 26px;
    display: grid;
    gap: 12px;
}

.site-side-nav__link {
    position: relative;
    width: fit-content;
    max-width: 100%;
    padding-bottom: 4px;
    color: #858a9d;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 18px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-side-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #0139b0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

.site-side-nav__link:hover,
.site-side-nav__link:focus-visible {
    color: #0139b0;
}

.site-side-nav__link:hover::after,
.site-side-nav__link:focus-visible::after {
    transform: scaleX(1);
}

.site-side-nav__contacts {
    width: 100%;
    margin-top: 26px;
    display: grid;
    gap: 4px;
}

.site-side-nav__contacts a {
    color: #858a9d;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 1750px) {
    .site-side-nav {
        display: none;
    }
}

/* Disable the old cloned top fixed header completely. */
.hero__header.site-fixed-header {
    display: none !important;
}

@media (max-width: 1500px) {
    .site-side-nav {
        left: 14px;
        width: 156px;
        padding: 24px 16px 22px;
    }

    .site-side-nav__menu {
        margin-top: 22px;
        gap: 10px;
    }

    .site-side-nav__link {
        font-size: 13px;
    }

    .site-side-nav__contacts {
        margin-top: 22px;
    }

    .site-side-nav__contacts a {
        font-size: 12px;
    }
}

@media (max-width: 1180px) {
    .site-side-nav {
        display: none;
    }
}
.blue{
color: #1550db;
}
#ekran_block{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  min-width:320px;
  height:100%;
  min-height:400px;
  background-color:#333;
  background-color: rgba(0, 0, 0, 0.8);
  z-index:200000;
}
#circularG{
  position:relative;
  width:128px;
  height:128px;
  margin: 40vh auto 0;
  display:none;
}

.circularG{
  position:absolute;
  background-color:#0066ff;
  width:29px;
  height:29px;
  -moz-border-radius:19px;
  -moz-animation-name:bounce_circularG;
  -moz-animation-duration:0.96s;
  -moz-animation-iteration-count:infinite;
  -moz-animation-direction:linear;
  -webkit-border-radius:19px;
  -webkit-animation-name:bounce_circularG;
  -webkit-animation-duration:0.96s;
  -webkit-animation-iteration-count:infinite;
  -webkit-animation-direction:linear;
  -ms-border-radius:19px;
  -ms-animation-name:bounce_circularG;
  -ms-animation-duration:0.96s;
  -ms-animation-iteration-count:infinite;
  -ms-animation-direction:linear;
  -o-border-radius:19px;
  -o-animation-name:bounce_circularG;
  -o-animation-duration:0.96s;
  -o-animation-iteration-count:infinite;
  -o-animation-direction:linear;
  border-radius:19px;
  animation-name:bounce_circularG;
  animation-duration:0.96s;
  animation-iteration-count:infinite;
  animation-direction:linear;
}

#circularG_1{
  left:0;
  top:50px;
  -moz-animation-delay:0.36s;
  -webkit-animation-delay:0.36s;
  -ms-animation-delay:0.36s;
  -o-animation-delay:0.36s;
  animation-delay:0.36s;
}

#circularG_2{
  left:14px;
  top:14px;
  -moz-animation-delay:0.48s;
  -webkit-animation-delay:0.48s;
  -ms-animation-delay:0.48s;
  -o-animation-delay:0.48s;
  animation-delay:0.48s;
}

#circularG_3{
  top:0;
  left:50px;
  -moz-animation-delay:0.6s;
  -webkit-animation-delay:0.6s;
  -ms-animation-delay:0.6s;
  -o-animation-delay:0.6s;
  animation-delay:0.6s;
}

#circularG_4{
  right:14px;
  top:14px;
  -moz-animation-delay:0.72s;
  -webkit-animation-delay:0.72s;
  -ms-animation-delay:0.72s;
  -o-animation-delay:0.72s;
  animation-delay:0.72s;
}

#circularG_5{
  right:0;
  top:50px;
  -moz-animation-delay:0.84s;
  -webkit-animation-delay:0.84s;
  -ms-animation-delay:0.84s;
  -o-animation-delay:0.84s;
  animation-delay:0.84s;
}

#circularG_6{
  right:14px;
  bottom:14px;
  -moz-animation-delay:0.96s;
  -webkit-animation-delay:0.96s;
  -ms-animation-delay:0.96s;
  -o-animation-delay:0.96s;
  animation-delay:0.96s;
}

#circularG_7{
  left:50px;
  bottom:0;
  -moz-animation-delay:1.08s;
  -webkit-animation-delay:1.08s;
  -ms-animation-delay:1.08s;
  -o-animation-delay:1.08s;
  animation-delay:1.08s;
}

#circularG_8{
  left:14px;
  bottom:14px;
  -moz-animation-delay:1.2s;
  -webkit-animation-delay:1.2s;
  -ms-animation-delay:1.2s;
  -o-animation-delay:1.2s;
  animation-delay:1.2s;
}

@-moz-keyframes bounce_circularG{
  0%{
    -moz-transform:scale(1)}

    100%{
      -moz-transform:scale(.3)}

    }

    @-webkit-keyframes bounce_circularG{
      0%{
        -webkit-transform:scale(1)}

        100%{
          -webkit-transform:scale(.3)}

        }

        @-ms-keyframes bounce_circularG{
          0%{
            -ms-transform:scale(1)}

            100%{
              -ms-transform:scale(.3)}

            }

            @-o-keyframes bounce_circularG{
              0%{
                -o-transform:scale(1)}

                100%{
                  -o-transform:scale(.3)}

                }

                @keyframes bounce_circularG{
                  0%{
                    transform:scale(1)}

                    100%{
                     transform:scale(.3)}

                   }
