:root {
    --navy: #0d2742;
    --navy-2: #173b5e;
    --green: #46a646;
    --green-dark: #378539;
    --white: #ffffff;
    --bg: #f5f7f8;
    --text: #17212b;
    --muted: #66727d;
    --line: #e3e8ec;
    --danger: #b42318;
    --radius: 14px;
    --shadow: 0 8px 28px rgba(13, 39, 66, .08);
    --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.site-header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-header__whatsapp { min-height: 42px; padding-inline: 16px; }
.brand { font-size: 1.25rem; font-weight: 800; color: var(--navy); white-space: nowrap; }
.main-nav { display: flex; gap: 20px; align-items: center; flex: 1; }
.main-nav a { color: var(--text); font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--green-dark); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: .18s ease;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--green-dark); transform: translateY(-1px); }
.btn-secondary { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--navy); color: var(--white); }

.hero { padding: 88px 0; background: linear-gradient(180deg, #fff 0%, #f7fafb 100%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1, .page-hero h1 { color: var(--navy); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.2; margin: 10px 0 18px; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 650px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media { min-height: 420px; }

.eyebrow { color: var(--green-dark); font-weight: 800; letter-spacing: .02em; }
.eyebrow--light { color: #9bd19c; }
.section { padding: 76px 0; }
.section--muted { background: var(--bg); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h2 { color: var(--white); }
.section-heading { margin-bottom: 28px; }
.section-heading h2, .cta-block h2 { color: var(--navy); margin: 6px 0 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.card-grid { display: grid; gap: 20px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.scenario-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.project-card-grid { grid-template-columns: repeat(3, 1fr); }
.info-card, .placeholder-card, .content-panel {
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.info-card { display: flex; flex-direction: column; align-items: flex-start; }
.info-card h2, .info-card h3 { margin-top: 0; color: var(--navy); }
.info-card p { color: var(--muted); margin-bottom: 0; }
.product-card .technical-reference { margin-bottom: 6px; }
.service-card, .project-public-card, .catalog-product-card, .solution-card { min-height: 230px; }
.status-badge {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(70, 166, 70, .12);
    color: var(--green-dark);
    font-size: .82rem;
    font-weight: 800;
    padding: 4px 10px;
    margin-bottom: 10px;
}
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    padding: 10px 14px;
    color: var(--navy);
    font-weight: 800;
}
.filter-pill span {
    color: var(--muted);
    font-size: .85rem;
}
.filter-pill:hover, .filter-pill:focus-visible, .filter-pill--active {
    border-color: var(--green);
    background: rgba(70, 166, 70, .1);
    color: var(--green-dark);
}
.service-detail-layout, .product-detail-layout, .solution-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}
.about-layout, .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}
.content-panel p { color: var(--muted); margin: 18px 0 0; }
.content-panel p:first-of-type { margin-top: 10px; }
.content-section { margin-top: 28px; }
.content-section h3 { color: var(--navy); margin-bottom: 8px; }
.service-cta-card, .product-cta-card, .about-contact-card, .contact-action-card { position: sticky; top: 100px; }
.service-cta-card .btn, .product-cta-card .btn, .about-contact-card .btn, .contact-action-card .btn { width: 100%; margin-top: 16px; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-list__item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    color: var(--navy);
    font-weight: 700;
}
.spec-table {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}
.spec-table__row {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    border-bottom: 1px solid var(--line);
}
.spec-table__row:last-child { border-bottom: 0; }
.spec-table__cell { padding: 16px 18px; color: var(--muted); }
.spec-table__cell--name { color: var(--navy); font-weight: 800; background: #fbfcfd; }
.solution-card-grid { grid-template-columns: repeat(3, 1fr); }
.solution-card-image, .solution-card-image--placeholder {
    width: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
    background: var(--bg);
}
.solution-card-image--placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
    border: 1px dashed var(--line);
}
.interactive-scene {
    position: relative;
    min-height: 430px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg);
}
.interactive-scene img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}
.interactive-scene__placeholder {
    min-height: 430px;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--muted);
    text-align: center;
}
.hotspot-pin {
    --x: 50%;
    --y: 50%;
    position: absolute;
    inset-inline-start: var(--x);
    top: var(--y);
    transform: translate(50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--green);
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 900;
    border: 3px solid var(--white);
    box-shadow: 0 8px 22px rgba(13, 39, 66, .22);
}
.hotspot-pin:hover, .hotspot-pin:focus-visible { background: var(--green-dark); }
.solution-hotspots-panel { display: grid; gap: 16px; }
.solution-hotspots-panel h2 { margin: 0; color: var(--navy); }
.hotspot-list { display: grid; gap: 16px; }
.hotspot-card { scroll-margin-top: 110px; }
.linked-products {
    display: grid;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
}
.linked-products strong { color: var(--navy); }
.linked-products a {
    display: grid;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fbfcfd;
}
.linked-products a:hover, .linked-products a:focus-visible { border-color: var(--green); }
.linked-products span { color: var(--navy); font-weight: 800; }
.linked-products small { color: var(--muted); }
.contact-list { display: grid; gap: 14px; margin-top: 20px; }
.contact-list div {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    background: #fbfcfd;
}
.contact-list strong { display: block; color: var(--navy); margin-bottom: 4px; }
.contact-list span { color: var(--muted); }
.lead-form { display: grid; gap: 18px; margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field { display: grid; gap: 6px; }
.form-field label { color: var(--navy); font-weight: 800; }
.form-field input, .form-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
    background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--green); outline: none; }
.form-field span, .validation-summary { color: var(--danger); font-size: .92rem; }
.form-field--trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success-panel {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(70,166,70,.28);
    border-radius: var(--radius);
    background: rgba(70,166,70,.09);
    padding: 18px;
    margin: 18px 0;
}
.success-panel strong { color: var(--green-dark); }
.success-panel p { margin: 0; }
.success-panel .btn { justify-self: start; }
.text-link { display: inline-flex; margin-top: 18px; color: var(--green-dark); font-weight: 800; }
.text-link:hover, .text-link:focus-visible { color: var(--navy); }
.placeholder-card { min-height: 180px; display: grid; place-items: center; color: var(--muted); text-align: center; }
.placeholder-card--large { min-height: 480px; }
.cta-block { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-block h2 { color: var(--white); }
.cta-block p { color: #d9e3ea; }
.final-cta { background: linear-gradient(180deg, #fff 0%, #f7fafb 100%); }
.final-cta .cta-block h2 { color: var(--navy); }
.final-cta .cta-block p { color: var(--muted); }
.page-hero { padding: 90px 0; background: var(--bg); min-height: 55vh; }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 760px; }
.technical-reference { color: var(--muted); font-size: .9rem; }
.site-footer { background: #081a2b; color: #dbe5ec; padding: 48px 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 28px; align-items: start; }
.site-footer__links, .site-footer__contact { display: grid; gap: 10px; }
.site-footer__links a, .site-footer__contact a { color: #dbe5ec; }
.site-footer__links a:hover, .site-footer__links a:focus-visible,
.site-footer__contact a:hover, .site-footer__contact a:focus-visible { color: #9bd19c; }
.site-footer__contact span { color: #b9c8d3; }

:focus-visible { outline: 3px solid rgba(70,166,70,.45); outline-offset: 3px; }

@media (max-width: 1100px) {
    .scenario-grid { grid-template-columns: repeat(3, 1fr); }
    .solution-card-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .main-nav { display: none; }
    .site-header__inner { justify-content: space-between; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__media { min-height: 300px; }
    .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .project-card-grid { grid-template-columns: 1fr; }
    .service-detail-layout, .product-detail-layout, .solution-detail-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
    .service-cta-card, .product-cta-card, .about-contact-card, .contact-action-card { position: static; }
    .site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .site-header__actions { display: none; }
    .hero, .section, .page-hero { padding: 56px 0; }
    .card-grid--4, .scenario-grid, .solution-card-grid, .feature-list, .form-grid { grid-template-columns: 1fr; }
    .spec-table__row { grid-template-columns: 1fr; }
    .interactive-scene, .interactive-scene img, .interactive-scene__placeholder { min-height: 320px; }
    .hotspot-pin { width: 36px; height: 36px; }
    .cta-block { align-items: flex-start; flex-direction: column; }
}
