/* ===== Variables ===== */
:root {
    --navy: #0c1a2e;
    --navy-light: #152238;
    --navy-dark: #060e18;
    --blue: #1a6fd4;
    --blue-light: #2d8cff;
    --accent: #00b4d8;
    --white: #ffffff;
    --gray-50: #f7f9fc;
    --gray-100: #eef2f7;
    --gray-200: #dde4ed;
    --gray-400: #8b9cb3;
    --gray-600: #4a5d73;
    --gray-800: #1e2d3d;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow: 0 4px 24px rgba(12, 26, 46, 0.08);
    --shadow-lg: 0 12px 48px rgba(12, 26, 46, 0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.25s ease;
    --header-h: 72px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

main p,
.legal-body p,
.legal-list li {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(12, 26, 46, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--transition);
}
.header.scrolled { background: rgba(6, 14, 24, 0.98); }
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}
.logo__img {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.logo__img--footer {
    width: 40px;
    height: 40px;
}
.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo__text strong { font-size: 15px; letter-spacing: 0.04em; }
.logo__text small { font-size: 11px; color: var(--gray-400); letter-spacing: 0.02em; }

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}
.nav a:hover { color: var(--white); }
.nav__cta {
    padding: 8px 20px !important;
    background: var(--blue);
    color: var(--white) !important;
    border-radius: var(--radius);
    transition: background var(--transition) !important;
}
.nav__cta:hover { background: var(--blue-light) !important; }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn--primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.btn--primary:hover {
    background: var(--blue-light);
    border-color: var(--blue-light);
    box-shadow: 0 8px 24px rgba(26, 111, 212, 0.35);
}
.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}
.btn--outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}
.btn--white {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}
.btn--white:hover { background: var(--gray-100); }
.btn--outline-dark {
    background: var(--white);
    color: var(--navy);
    border-color: var(--gray-200);
}
.btn--outline-dark:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(26, 111, 212, 0.04);
    box-shadow: 0 4px 16px rgba(26, 111, 212, 0.12);
}
.btn--sm {
    padding: 10px 20px;
    font-size: 14px;
}
.btn--lg { padding: 16px 36px; font-size: 16px; }
.btn--full { width: 100%; }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url('../images/hero-bg.png');
    background-image: -webkit-image-set(
        url('../images/hero-bg.webp') type('image/webp'),
        url('../images/hero-bg.png') type('image/png')
    );
    background-image: image-set(
        url('../images/hero-bg.webp') type('image/webp'),
        url('../images/hero-bg.png') type('image/png')
    );
    transform: scale(1.08);
    animation: heroReveal 1.6s ease-out forwards;
    will-change: transform;
}
@keyframes heroReveal {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hero__bg { animation: none; transform: scale(1); }
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 14, 24, 0.92) 0%,
        rgba(12, 26, 46, 0.78) 50%,
        rgba(26, 111, 212, 0.25) 100%
    );
}
.hero__content {
    position: relative;
    z-index: 2;
    padding: calc(var(--header-h) + 80px) 24px 120px;
    max-width: 820px;
}
.hero__eyebrow {
    display: inline-block;
    padding: 6px 16px;
    /* background: rgba(0, 180, 216, 0.15);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 100px; */
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero__eyebrow--geo {
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}
.hero__title {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.hero__title span.hero__typed-line {
    display: block;
    margin-top: 0.15em;
    font-size: clamp(24px, 3.2vw, 42px);
    line-height: 1.15;
    text-transform: none;
}
.hero__typed-slot {
    display: grid;
    align-items: start;
    min-height: 1.15em;
}
.hero__typed-measure,
.hero__typed-active {
    grid-area: 1 / 1;
    white-space: nowrap;
}
.hero__typed-measure {
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}
.hero__typed-active {
    display: inline-block;
    max-width: 100%;
}
.hero__typed {
    background: linear-gradient(90deg, var(--accent), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@media (max-width: 480px) {
    .hero__title span.hero__typed-line { font-size: clamp(20px, 5.5vw, 28px); }
    .hero__typed-slot {
        width: 100%;
        max-width: calc(100vw - 48px);
    }
    .hero__typed-measure,
    .hero__typed-active {
        white-space: normal;
    }
}
.hero__title span:not(.hero__typed-line):not(.hero__typed-slot):not(.hero__typed-measure):not(.hero__typed-active):not(.hero__typed) {
    background: linear-gradient(90deg, var(--accent), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 40px;
    max-width: 600px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ===== Stats ===== */
.stats {
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 0;
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}
.stat {
    text-align: center;
    padding: 16px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.stat:last-child { border-right: none; }
.stat__number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}
.stat__unit { font-size: inherit; font-weight: inherit; color: inherit; }
.stat__label {
    font-size: 13px;
    color: var(--gray-400);
    line-height: 1.4;
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--gray { background: var(--gray-50); }
.section--accent {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
}
.section__header { max-width: 640px; margin-bottom: 56px; }
.section__header--center {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section__header--light .section__title { color: var(--white); }
.section__header--light .section__desc { color: rgba(255,255,255,0.65); }
.section__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}
.section__eyebrow--light { color: var(--accent); }
.section__title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 16px;
}
.section__title--light { color: var(--white); }
.section__desc { font-size: 17px; color: var(--gray-600); line-height: 1.7; }
.section__cta-row {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}
.section__cta-row .btn--outline {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--white);
}
.section__cta-row .btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.55);
}

/* ===== About ===== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.about__text p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.75;
}
.about__industries {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.about__industries li {
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
}
.about__visual { display: flex; flex-direction: column; gap: 20px; }
.about__card {
    padding: 28px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.about__card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-400);
}
.about__card--primary {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-color: transparent;
    color: var(--white);
}
.about__card--primary p { color: rgba(255,255,255,0.65); }
.about__card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--blue);
}
.about__card--primary .about__card-icon { color: var(--accent); }
.about__card-icon svg { width: 100%; height: 100%; }
.about__card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.about__card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ===== Services ===== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.service-card {
    position: relative;
    padding: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: background var(--transition), border-color var(--transition);
    overflow: hidden;
}
.service-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 180, 216, 0.3);
}
.service-card__num {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
}
.service-card__icon {
    width: 44px;
    height: 44px;
    color: var(--accent);
    margin-bottom: 20px;
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}
.service-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ===== Features ===== */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.feature {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.feature:hover {
    border-color: var(--gray-400);
    box-shadow: var(--shadow);
}
.feature__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 111, 212, 0.1);
    color: var(--blue);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}
.feature h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.feature p { font-size: 14px; color: var(--gray-600); line-height: 1.65; }

/* ===== Materials ===== */
.materials__layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}
.materials__info p {
    color: var(--gray-600);
    font-size: 16px;
    line-height: 1.75;
    margin-top: 16px;
}
.materials__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.materials__list li {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.4;
    transition: background var(--transition), border-color var(--transition);
}
.materials__list li:hover {
    background: var(--gray-100);
}

/* ===== Molds ===== */
.molds__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}
.molds__lead {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 16px;
}
.molds__content p { color: rgba(255, 255, 255, 0.6); line-height: 1.75; }
.molds__pricing {
    padding: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}
.molds__pricing h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
}
.molds__factors { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.molds__factors li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
}
.molds__factors li span {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
}

/* ===== Certificates ===== */
.certs__showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.cert-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.cert-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--blue);
}
.cert-item__image-wrap {
    display: block;
    width: 100%;
    appearance: none;
    background: var(--gray-50);
    padding: 20px;
    font: inherit;
    border-bottom: 1px solid var(--gray-200);
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    cursor: pointer;
    transition: background var(--transition);
}
.cert-item__image-wrap:hover {
    background: var(--gray-100);
}
.cert-item__image-wrap img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.cert-item__body {
    padding: 24px 28px 28px;
}
.cert-item__body h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
}
.cert-item__body p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== Quick Gallery ===== */
.quick-gallery .section__header {
    margin-bottom: 40px;
}
.quick-gallery__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}
.quick-gallery__filter {
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.quick-gallery__filter:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}
.quick-gallery__filter.is-active {
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(26, 111, 212, 0.35);
}
.quick-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    border-radius: var(--radius);
    overflow: hidden;
}
.quick-gallery__item.is-hidden {
    display: none;
}
.quick-gallery__trigger {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    border: none;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--navy-dark);
    border-radius: var(--radius);
}
.quick-gallery__trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.quick-gallery__trigger:hover img,
.quick-gallery__trigger:focus-visible img {
    transform: scale(1.04);
}
.quick-gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    color: var(--white);
    background: rgba(6, 14, 24, 0.78);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.quick-gallery__trigger:hover .quick-gallery__overlay,
.quick-gallery__trigger:focus-visible .quick-gallery__overlay {
    opacity: 1;
}
.quick-gallery__plus {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--accent);
}
.quick-gallery__overlay strong {
    font-size: clamp(13px, 1.4vw, 16px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.35;
    max-width: 220px;
}
.quick-gallery__tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 88px;
    background: rgba(6, 14, 24, 0.96);
    cursor: zoom-out;
    animation: lightboxFadeIn 0.28s ease;
}
.gallery-lightbox[hidden] {
    display: none;
}
.gallery-lightbox__content {
    position: relative;
    width: min(1100px, 100%);
    max-height: calc(100vh - 96px);
    cursor: default;
    animation: lightboxZoomIn 0.32s ease;
}
.gallery-lightbox__figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.gallery-lightbox__img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    background: var(--navy-dark);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    user-select: none;
    -webkit-user-drag: none;
}
.gallery-lightbox__caption {
    padding: 20px 4px 0;
    text-align: center;
    color: var(--white);
}
.gallery-lightbox__caption strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.gallery-lightbox__caption span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.gallery-lightbox__close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    cursor: pointer;
    transition: background var(--transition);
    z-index: 2;
}
.gallery-lightbox__close svg { width: 22px; height: 22px; }
.gallery-lightbox__close:hover { background: rgba(255, 255, 255, 0.24); }
.gallery-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    cursor: pointer;
    transition: background var(--transition);
    z-index: 2;
}
.gallery-lightbox__nav svg { width: 26px; height: 26px; }
.gallery-lightbox__nav:hover { background: rgba(255, 255, 255, 0.24); }
.gallery-lightbox__nav--prev { left: 20px; }
.gallery-lightbox__nav--next { right: 20px; }
.gallery-lightbox__nav:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes lightboxZoomIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
body.lightbox-open { overflow: hidden; }

/* ===== Scroll reveal (bquadro-style) ===== */
.reveal {
    opacity: 0;
    transform: translate3d(0, 44px, 0);
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.reveal--left {
    transform: translate3d(-48px, 0, 0);
}
.reveal--right {
    transform: translate3d(48px, 0, 0);
}
.reveal--scale {
    transform: translate3d(0, 36px, 0) scale(0.96);
}
.reveal--hero {
    transform: translate3d(0, 28px, 0);
    transition-duration: 1s;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Location / Yandex Map ===== */
.location__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    align-items: stretch;
}
.location__card {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}
.location__card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.location__address {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 20px;
}
.location__route {
    width: 100%;
}
.location__hints {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.location__hints li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}
.location__hints li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}
.location__map {
    position: relative;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    background: var(--gray-100);
}
.location__map iframe {
    display: block;
    width: 100%;
    height: 450px;
    min-height: 450px;
    border: 0;
}
.location__map-skeleton {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
    background:
        linear-gradient(135deg, rgba(26, 111, 212, 0.06), transparent 55%),
        var(--gray-100);
}
.location__map[data-loaded="1"] .location__map-skeleton {
    display: none;
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(90deg, var(--blue) 0%, var(--accent) 100%);
    padding: 64px 0;
}
.cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.cta-banner h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}
.cta-banner p { color: rgba(255, 255, 255, 0.85); font-size: 16px; }
.cta-banner .btn--primary {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
    flex-shrink: 0;
}
.cta-banner .btn--primary:hover {
    background: var(--gray-100);
    box-shadow: var(--shadow);
}

/* ===== Contact ===== */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}
.contact__info p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}
.contact__details { display: flex; flex-direction: column; gap: 20px; }
.contact__item strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 4px;
}
.contact__item a {
    font-size: 17px;
    color: var(--white);
    transition: color var(--transition);
}
.contact__item a:hover { color: var(--accent); }

.contact__form-wrap {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font);
    font-size: 15px;
    transition: border-color var(--transition);
    outline: none;
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.3); }
.form-input:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-alert {
    padding: 12px 14px;
    border-radius: var(--radius);
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.35);
    color: #ffc9c9;
    font-size: 14px;
    line-height: 1.45;
}
.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}
.form-honeypot input {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}
.form-group.has-error .form-input,
.form-group.has-error .form-checkbox__input {
    border-color: rgba(255, 107, 107, 0.7);
}
.form-group.has-error .form-input:focus {
    border-color: #ff8e8e;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18);
}
.form-error {
    margin: 0;
    min-height: 0;
    font-size: 12.5px;
    line-height: 1.35;
    color: #ff9d9d;
}
.form-error[hidden] {
    display: none;
}
.form-group.has-error .form-error {
    margin-top: 2px;
}

.form-success {
    text-align: center;
    padding: 48px 24px;
}
.form-success__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 180, 216, 0.15);
    color: var(--accent);
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
}
.form-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.form-success p { color: rgba(255, 255, 255, 0.6); }
.form-success--warn .form-success__icon { display: none; }
.form-success--warn h3 { color: #ffb347; }

.form-group--consent { margin-top: 4px; }
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.form-checkbox__input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
}
.form-checkbox__text {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}
.form-checkbox__text a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(0, 180, 216, 0.45);
    text-underline-offset: 3px;
    transition: color var(--transition), text-decoration-color var(--transition);
}
.form-checkbox__text a:hover {
    color: var(--white);
    text-decoration-color: var(--white);
}
.form-group--consent .errorlist {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #ff8a8a;
}
.form-group--consent.has-error .form-checkbox {
    outline: 1px solid rgba(255, 107, 107, 0.45);
    outline-offset: 6px;
    border-radius: 6px;
}
button.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== Legal links (global) ===== */
.link-legal {
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(26, 111, 212, 0.35);
    text-underline-offset: 3px;
    transition: color var(--transition), text-decoration-color var(--transition);
}
.link-legal:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}
.footer .link-legal {
    color: var(--accent);
    text-decoration-color: rgba(0, 180, 216, 0.4);
}
.footer .link-legal:hover {
    color: var(--white);
    text-decoration-color: var(--white);
}
.form-checkbox__text .link-legal {
    color: var(--accent);
    text-decoration-color: rgba(0, 180, 216, 0.45);
}
.form-checkbox__text .link-legal:hover {
    color: var(--white);
    text-decoration-color: var(--white);
}
.footer__sep {
    margin: 0 6px;
    color: var(--gray-400);
    opacity: 0.5;
}

/* ===== Legal pages ===== */
.legal-page {
    background: var(--white);
    min-height: 100vh;
}

.legal-hero {
    padding: calc(var(--header-h) + 40px) 0 0;
    background: var(--navy);
    color: var(--white);
}
.legal-hero__inner {
    max-width: 780px;
    padding-bottom: 0;
}
.legal-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}
.legal-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
}
.legal-breadcrumb a:hover { color: var(--white); }
.legal-hero__title {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}
.legal-hero__desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    max-width: 640px;
    margin-bottom: 12px;
}
.legal-hero__date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.legal-page__inner {
    max-width: 780px;
    padding: 40px 0 64px;
    color: var(--gray-800);
}

.legal-tabs {
    display: flex;
    gap: 24px;
    margin-top: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.legal-tabs__link {
    position: relative;
    padding: 0 0 14px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
}
.legal-tabs__link:hover { color: var(--white); }
.legal-tabs__link.is-active {
    color: var(--white);
    font-weight: 600;
}
.legal-tabs__link.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
}

.legal-operator {
    padding-bottom: 28px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--gray-200);
}
.legal-operator__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 14px;
}
.legal-operator__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px 24px;
}
.legal-operator__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.legal-operator__row dt {
    font-size: 12px;
    color: var(--gray-400);
}
.legal-operator__row dd {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.4;
}

.legal-body {
    padding-top: 36px;
    padding-bottom: 8px;
}

.legal-block {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--gray-100);
}
.legal-block:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}
.legal-block__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.35;
}
.legal-block__num {
    color: var(--blue);
    margin-right: 4px;
}
.legal-block__subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 18px 0 8px;
}
.legal-block__subtitle:first-of-type { margin-top: 0; }
.legal-block p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 12px;
}
.legal-block p:last-child { margin-bottom: 0; }

.legal-list {
    margin: 0 0 12px;
    padding-left: 1.4em;
    list-style: disc;
}
.legal-list li {
    font-size: 15px;
    line-height: 1.65;
    color: var(--gray-600);
    margin-bottom: 6px;
    padding-left: 4px;
}
.legal-list li::marker {
    color: var(--blue);
}
.legal-list--compact li {
    font-size: 15px;
    margin-bottom: 4px;
}

.legal-callout {
    padding: 20px 24px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}
.legal-callout p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--gray-600);
    margin-bottom: 14px;
}
.legal-callout p:last-of-type { margin-bottom: 14px; }
.legal-callout__btn {
    display: inline-flex;
}

.legal-page__footer {
    margin-top: 28px;
}

@media (max-width: 640px) {
    .legal-tabs {
        flex-direction: column;
        gap: 0;
    }
    .legal-tabs__link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .legal-tabs__link.is-active::after { display: none; }
    .legal-tabs__link.is-active {
        color: var(--accent);
    }
    .legal-operator__list { grid-template-columns: 1fr; }
    .legal-block__title { font-size: 17px; }
}

/* ===== Footer ===== */
.footer {
    background: var(--navy-dark);
    padding: 48px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: start;
}
.footer__inner--legal {
    display: block;
    text-align: center;
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--white);
}
.footer__brand p {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 4px;
}
.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.footer__nav a {
    font-size: 14px;
    color: var(--gray-400);
    transition: color var(--transition);
}
.footer__nav a:hover { color: var(--white); }
.footer__copy {
    grid-column: 1 / -1;
    font-size: 13px;
    color: var(--gray-400);
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__copy a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: underline;
}
.footer__copy a:hover { color: var(--white); }

/* ===== Back to top ===== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26, 111, 212, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
}
.back-to-top svg {
    width: 22px;
    height: 22px;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--blue-light);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .stats__grid { grid-template-columns: repeat(3, 1fr); }
    .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .stat:nth-child(3n + 1),
    .stat:nth-child(3n + 2) { border-right: 1px solid rgba(255,255,255,0.08); }
    .stat:nth-last-child(-n + 2) { border-bottom: none; }
    .quick-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gallery-lightbox { padding: 64px 16px 24px; }
    .gallery-lightbox__nav--prev { left: 12px; }
    .gallery-lightbox__nav--next { right: 12px; }
    .gallery-lightbox__close { top: 12px; right: 12px; }
    .about__grid,
    .materials__layout,
    .molds__grid,
    .contact__grid,
    .location__grid { grid-template-columns: 1fr; gap: 40px; }
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .cta-banner__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--navy-dark);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        transform: translateY(-110%);
        opacity: 0;
        transition: all var(--transition);
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav.open { transform: translateY(0); opacity: 1; }
    .nav a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        width: 100%;
    }
    .nav__cta { margin-top: 12px; text-align: center; }
    .burger { display: flex; }
    .burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger.open span:nth-child(2) { opacity: 0; }
    .burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .reveal--left,
    .reveal--right {
        transform: translate3d(0, 36px, 0);
    }

    .services__grid,
    .certs__showcase,
    .quick-gallery__grid,
    .features__grid,
    .stats__grid { grid-template-columns: 1fr; }
    .stat,
    .stat:nth-child(3n + 1),
    .stat:nth-child(3n + 2) {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .stat:last-child { border-bottom: none; }
    .form-row { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; }
    .section { padding: 72px 0; }
}
