:root {
    --bg: #f6f9fc;
    --bg-soft: #eaf1f7;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: #ffffff;
    --line: rgba(43, 86, 114, 0.16);
    --text: #242323;
    --muted: #5d5d61;
    --accent: #116dff;
    --accent-2: #2b5672;
    --glow: rgba(17, 109, 255, 0.24);
    --shadow: 0 24px 60px rgba(32, 66, 91, 0.13);
    --radius: 26px;
    --radius-sm: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 13%, rgba(17, 109, 255, 0.13), transparent 27%),
        radial-gradient(circle at 86% 11%, rgba(43, 86, 114, 0.11), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f6f9fc 46%, #eaf1f7 100%);
    font-family: "Manrope", sans-serif;
    overflow-x: hidden;
}

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

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

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.energy-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.42;
    z-index: 0;
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(43, 86, 114, 0.1);
}

.header-row,
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: "Outfit", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand img {
    width: 132px;
    height: auto;
    object-fit: contain;
}

.main-nav {
    display: inline-flex;
    gap: 28px;
    color: var(--muted);
}

.main-nav a:hover {
    color: var(--accent-2);
}

.site-footer a:hover {
    color: #ffffff;
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 14px 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-cta,
.button-primary {
    background: linear-gradient(135deg, var(--accent), #166aea);
    color: #ffffff;
    box-shadow: 0 18px 40px var(--glow);
    font-weight: 800;
}

.button-secondary {
    border: 1px solid rgba(43, 86, 114, 0.22);
    background: rgba(255, 255, 255, 0.65);
}

.header-cta:hover,
.button:hover {
    transform: translateY(-2px);
}

.hero-section {
    padding: 0;
}

.company-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 42px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-2);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1,
h2,
h3,
strong,
.brand span {
    font-family: "Outfit", sans-serif;
}

h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 0.95;
    max-width: 12ch;
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.hero-text,
.section-heading p,
.company-copy p,
.contact-copy p,
.card-body p,
.project-overlay p,
.stack-card p,
.site-footer p,
.form-note,
.form-status {
    color: var(--muted);
    line-height: 1.75;
}

.hero-actions,
.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.contact-meta span {
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    font-size: 0.92rem;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: clamp(500px, 52vw, 680px);
    color: #ffffff;
    background: #183d57;
}

.hero-slider__viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    isolation: isolate;
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 820ms cubic-bezier(0.77, 0, 0.18, 1), opacity 150ms linear 820ms;
}

.hero-slide::after {
    position: absolute;
    inset: 0;
    content: "";
    z-index: 0;
}

.hero-slide__image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    transition: transform 6s ease-out;
}

.hero-slide::after {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(4, 21, 33, 0.73) 0%, rgba(5, 31, 49, 0.52) 34%, rgba(5, 31, 49, 0.15) 70%, rgba(5, 31, 49, 0.2) 100%),
        linear-gradient(0deg, rgba(4, 18, 29, 0.3), transparent 42%);
}

.hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: transform 820ms cubic-bezier(0.77, 0, 0.18, 1), opacity 0ms linear;
}

.hero-slide__pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-repeat: repeat;
    background-size: auto;
    background-position: center;
}

.hero-slide.is-active .hero-slide__image {
    transform: scale(1.01);
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    padding-top: 10px;
}

.hero-slide__eyebrow {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transform: translateY(18px);
    opacity: 0;
}

.hero-slide h1 {
    max-width: 10ch;
    margin: 0;
    color: #ffbd22;
    font-size: clamp(3.2rem, 5.2vw, 5.3rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.9;
    text-transform: uppercase;
    transform: translateY(28px);
    opacity: 0;
}

.hero-slide__subtitle {
    margin: 18px 0 0;
    color: #ffffff;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1rem, 1.7vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transform: translateY(22px);
    opacity: 0;
}

.hero-slide__rule {
    display: block;
    width: clamp(120px, 12vw, 200px);
    height: 7px;
    margin-top: 36px;
    background: #ffbd22;
    transform: scaleX(0);
    transform-origin: left;
}

.hero-slide.is-active .hero-slide__eyebrow,
.hero-slide.is-active h1,
.hero-slide.is-active .hero-slide__subtitle {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide.is-active .hero-slide__eyebrow {
    transition: opacity 500ms ease 250ms, transform 500ms ease 250ms;
}

.hero-slide.is-active h1 {
    transition: opacity 620ms ease 340ms, transform 620ms cubic-bezier(0.22, 1, 0.36, 1) 340ms;
}

.hero-slide.is-active .hero-slide__subtitle {
    transition: opacity 500ms ease 470ms, transform 500ms ease 470ms;
}

.hero-slide.is-active .hero-slide__rule {
    transform: scaleX(1);
    transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1) 590ms;
}

.hero-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 56px;
    height: 74px;
    padding: 0;
    border: 0;
    color: #ffffff;
    background: transparent;
    cursor: pointer;
    font-size: 2.1rem;
    place-items: center;
    transform: translateY(-50%);
    transition: color 220ms ease, background-color 220ms ease;
}

.hero-slider__arrow:hover,
.hero-slider__arrow:focus-visible {
    color: #183d57;
    background: #ffbd22;
    outline: none;
}

.hero-slider__arrow--previous {
    left: clamp(12px, 5vw, 74px);
}

.hero-slider__arrow--next {
    right: clamp(12px, 5vw, 74px);
}

.hero-slider__dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    z-index: 3;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    transition: transform 220ms ease, background-color 220ms ease;
}

.hero-slider__dot:hover,
.hero-slider__dot:focus-visible,
.hero-slider__dot.is-active {
    background: #ffbd22;
    outline: none;
    transform: scale(1.45);
}

.hero-card,
.catalog-card,
.stack-card,
.contact-form,
.stats-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.stats-section {
    padding-bottom: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.stats-grid article {
    padding: 28px;
}

.stats-grid strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
}

.stats-grid span {
    color: var(--muted);
}

.catalog-section,
.company-section,
.projects-section,
.contact-section {
    padding: 88px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.catalog-card {
    overflow: hidden;
}

.media-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.catalog-card:hover .media-wrap img,
.project-card:hover img {
    transform: scale(1.06);
}

.card-body,
.stack-card,
.contact-form {
    padding: 24px;
}

.card-body h3,
.project-overlay h3 {
    margin: 0 0 10px;
    font-size: 1.45rem;
}

.value-list {
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.value-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.company-stack {
    display: grid;
    gap: 18px;
}

.stack-card span {
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
}

.stack-card strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 1.8rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    border-radius: var(--radius);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease;
}

.project-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 28px;
    color: #ffffff;
    background: linear-gradient(180deg, transparent, rgba(20, 48, 68, 0.94));
}

.project-overlay p {
    color: #ffffff;
}

.contact-form label {
    display: block;
    margin-bottom: 16px;
}

.contact-form span {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(43, 86, 114, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    padding: 16px 18px;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(17, 109, 255, 0.2);
    border-color: rgba(17, 109, 255, 0.5);
}

.button-block {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.form-status-success {
    color: var(--accent-2);
}

.form-status-error {
    color: #ff9d9d;
}

.site-footer {
    border-top: 1px solid rgba(43, 86, 114, 0.12);
    background: #2b5672;
    color: #ffffff;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
    max-width: 420px;
}

.contact-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr 1fr;
    gap: 48px;
    padding: 56px 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.footer-version {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
}

.footer-brand-link {
    display: block;
    padding: 20px;
    border-radius: 18px;
    background: #ffffff;
}

.footer-logo {
    width: 180px;
    height: auto;
}

.site-footer h2 {
    margin: 0 0 24px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.site-footer h3 {
    margin: 24px 0 8px;
    font-size: 1.1rem;
}

.site-footer address,
.footer-products ul {
    color: rgba(255, 255, 255, 0.9);
    font-style: normal;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.footer-products ul {
    margin: 0;
    padding-left: 20px;
}

.footer-products li + li {
    margin-top: 8px;
}

.site-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .company-grid,
    .contact-grid,
    .catalog-grid,
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-slider {
        min-height: 590px;
    }

    .main-nav {
        display: none;
    }
}

@media (max-width: 780px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0;
    }

    .company-grid,
    .contact-grid,
    .catalog-grid,
    .projects-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-row,
    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-slider {
        min-height: 560px;
    }

    .hero-slide::after {
        background:
            linear-gradient(90deg, rgba(4, 21, 33, 0.76) 0%, rgba(5, 31, 49, 0.44) 80%),
            linear-gradient(0deg, rgba(4, 18, 29, 0.34), transparent 46%);
    }

    .hero-slide__content {
        padding-right: 76px;
        padding-left: 76px;
    }

    .hero-slide h1 {
        max-width: 9ch;
        font-size: clamp(2.9rem, 12vw, 4.4rem);
    }

    .hero-slide__rule {
        height: 5px;
        margin-top: 28px;
    }

    .hero-slider__arrow {
        width: 44px;
        height: 58px;
        font-size: 1.5rem;
    }

    .hero-slider__arrow--previous {
        left: 10px;
    }

    .hero-slider__arrow--next {
        right: 10px;
    }

    .hero-slider__dots {
        bottom: 24px;
    }

    .catalog-section,
    .company-section,
    .projects-section,
    .contact-section {
        padding: 68px 0;
    }
}
