:root {
    --primary: #0d5ea6;
    --primary-dark: #0a3e73;
    --accent: #f7b500;
    --text: #0f172a;
    --muted: #475569;
    --white: #ffffff;
    --panel: rgba(15, 23, 42, 0.72);
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
    /* Shown in the rubber-band area above the hero on Safari/iOS. */
    background: #071522;
}

body {
    margin: 0;
    font-family: Helvetica, Arial, sans-serif;
    color: var(--text);
    background: #f5f7fb;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, .07);
    box-shadow: 0 4px 24px rgba(15, 23, 42, .04);
}

.site-header.is-at-top {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
}

.site-header.is-at-top .main-nav .nav-link,
.site-header.is-at-top .header-search {
    color: #fff;
}

.site-header.is-at-top .header-search:hover {
    background: rgba(255, 255, 255, .12);
}

.site-header.is-at-top a:focus-visible,
.site-header.is-at-top button:focus-visible {
    outline-color: #fff;
}

html { scroll-padding-top: var(--header-height, 56px); }

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 56px;
    gap: 16px;
}

.brand {
    display: inline-grid;
    align-items: center;
    flex-shrink: 0;
    padding: 2px 0;
    justify-self: start;
}

/* The logo files are square canvases; crop to the wordmark band. */
.brand img {
    grid-area: 1 / 1;
    width: 160px;
    height: auto;
    transition: opacity .3s ease;
}

.brand .brand-logo-white {
    opacity: 0;
}

.site-header.is-at-top .brand-logo-default {
    opacity: 0;
}

.site-header.is-at-top .brand-logo-white {
    opacity: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: .78rem;
    font-weight: 500;
}

.main-nav .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    white-space: nowrap;
    border-radius: 8px;
    color: var(--muted);
    transition: color .2s ease;
}

.main-nav .nav-link:hover {
    color: var(--text);
}

.main-nav .nav-link[aria-current="page"] {
    color: var(--text);
    font-weight: 700;
}

.main-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: calc(100% - 20px);
    height: 3px;
    border-radius: 2px;
    background: #f1bb48;
    transform: translateX(-50%) scaleX(0);
    transition: transform .2s ease;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link:focus-visible::after,
.main-nav .nav-link[aria-current="page"]::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    gap: 4px;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

.nav-dropdown-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform .2s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    min-width: 260px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border-top: 3px solid #f1bb48;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

/* Bridges the gap between the trigger and the panel so hover isn't lost. */
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 9px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.is-open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.is-open .nav-dropdown-toggle::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-dropdown-menu li + li {
    border-top: 1px solid #e9edf0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 13px 20px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text);
    transition: background-color .15s ease, color .15s ease;
}

.nav-dropdown-menu a:hover {
    background: #fff8e8;
}

.nav-dropdown-menu a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.header-search {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.header-search:hover {
    background: #fff5dd;
}

.site-header a:focus-visible,
.header-search:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.hero {
    padding-top: var(--header-height, 56px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #071522;
    color: var(--white);
}

.hero video,
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    filter: brightness(0.6);
    z-index: -2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: max(640px, calc(100svh - var(--header-height, 56px)));
    padding: 160px 0 36px;
}

.hero-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
    font-size: clamp(3rem, 6.5vw, 6rem);
}

.hero-monogram {
    flex-shrink: 0;
    width: auto;
    height: 2.08em;
    object-fit: contain;
}

.hero-title {
    margin: 0;
    font-size: inherit;
    line-height: 1.04;
    letter-spacing: -.055em;
    font-weight: 400;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .18);
}

.hero-title span {
    display: block;
}

.hero-title span:last-child {
    text-align: left;
}

.hero-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .4);
}

.hero-description {
    margin: 0;
    max-width: 470px;
    color: #fff;
    font-size: .88rem;
    line-height: 1.65;
}

.hero-catalog {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 28px;
    min-height: 52px;
    padding: 8px 0;
    background: linear-gradient(90deg, #f7931e, #f7c948, #f7931e) 0 100% / 200% 2px repeat-x;
    color: #fff;
    font-size: .88rem;
    animation: catalog-underline 3s linear infinite;
}

@keyframes catalog-underline {
    to { background-position: -200% 100%; }
}

.hero-catalog svg {
    width: 24px;
    height: 24px;
    transition: transform .2s ease;
}

.hero-catalog:hover svg { transform: translateY(-3px); }

.hero a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-catalog, .hero-catalog svg, .main-nav .nav-link, .main-nav .nav-link::after, .brand img, .nav-dropdown-menu, .nav-dropdown-toggle svg { transition: none; }
    .hero-catalog:hover svg { transform: none; }
    .hero-catalog { animation: none; }
}

.partners {
    overflow: hidden;
    padding: 28px 0;
    background: #fff;
    border-bottom: 1px solid #e9edf0;
}

.partners-track {
    display: flex;
    width: max-content;
    animation: partners-scroll 32s linear infinite;
}

.partners-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-shrink: 0;
    min-width: 100vw;
    margin: 0;
    padding: 0;
    list-style: none;
}

.partners-group li {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 190px;
    height: 76px;
    padding: 8px 30px;
}

.partners-group img {
    width: 130px;
    height: 60px;
    object-fit: contain;
}

@keyframes partners-scroll {
    to { transform: translateX(-50%); }
}

@media (max-width: 560px) {
    .partners { padding: 18px 0; }
    .partners-group li { flex-basis: 150px; padding: 8px 24px; }
    .partners-group img { width: 102px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    .partners-track { width: 100%; animation: none; }
    .partners-group { min-width: 0; width: 100%; flex-wrap: wrap; }
    .partners-group[aria-hidden="true"] { display: none; }
}

.about,
.services {
    padding: 96px 0;
}

.about { background: #fff; }

.services {
    background: #071522;
    color: #fff;
}

/* Title on the left, text on the right — the same frame for both sections. */
.about-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 48px;
    align-items: start;
}

.about-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.about-content {
    display: grid;
    gap: 14px;
    max-width: 680px;
}

.about-content p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.7;
    color: var(--muted);
}

.about-content .about-lead {
    margin-bottom: 6px;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.45;
    letter-spacing: -.015em;
    color: var(--text);
}

.services .about-content p { color: rgba(255, 255, 255, .62); }
.services .about-content .about-lead { color: #fff; }

.services-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 32px;
    margin: 64px 0 0;
    padding: 0;
    list-style: none;
}

/* Each service sits on a thin line, marked with the monogram's red bar. */
.services-list li {
    position: relative;
    padding: 20px 0 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: .98rem;
    line-height: 1.45;
}

.services-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    width: 6px;
    height: 14px;
    background: #ec4c24;
}

@media (max-width: 900px) {
    .about, .services { padding: 72px 0; }
    .about-inner { grid-template-columns: 1fr; gap: 24px; }
    .services-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
}

@media (max-width: 560px) {
    .services-list { grid-template-columns: 1fr; }
}

.offer {
    padding: 72px 0;
    /* Orange from the Idealtech monogram. */
    background: #ec4c24;
    color: #fff;
}

.offer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.offer-title {
    max-width: 640px;
    margin: 0;
    font-size: clamp(1.9rem, 3.6vw, 3.2rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.offer-actions {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
}

.offer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 999px;
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    transition: background-color .2s ease, border-color .2s ease;
}

.offer-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .12);
}

.offer-btn-primary {
    border-color: #fff;
    background: #fff;
    color: var(--text);
}

.offer-btn-primary:hover {
    border-color: #071522;
    background: #071522;
    color: #fff;
}

.offer-btn-accent {
    border-color: #f1bb48;
    background: #f1bb48;
    color: var(--text);
}

.offer-btn-accent:hover {
    border-color: #f7c948;
    background: #f7c948;
}

.offer-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .offer { padding: 56px 0; }
    .offer-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
}

@media (max-width: 560px) {
    .offer-actions { width: 100%; flex-direction: column; }
    .offer-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .offer-btn { transition: none; }
}

.site-footer {
    padding: 88px 0 0;
    background: #fff;
    border-top: 1px solid #e9edf0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.6;
}

/* Echoes the hero: large light title with the monogram on the right. */
.footer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
    font-size: clamp(2.2rem, 4.6vw, 4.2rem);
}

.footer-title {
    margin: 0;
    font-size: inherit;
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.055em;
    color: var(--text);
}

.footer-title span { display: block; }
.footer-title span:last-child { color: #94a3b8; }

.footer-monogram {
    flex-shrink: 0;
    width: auto;
    height: 1.6em;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr .8fr;
    gap: 48px;
    padding: 28px 0 64px;
    border-top: 1px solid var(--text);
}

.footer-label {
    display: block;
    margin: 0 0 14px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #94a3b8;
}

.footer-col address {
    font-style: normal;
    font-size: 1rem;
    color: var(--text);
}

.footer-company li {
    color: var(--text);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.footer-col ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Same orange-to-yellow line as the hero's catalog link, drawn in on hover. */
.footer-col a {
    padding-bottom: 2px;
    color: var(--text);
    background: linear-gradient(90deg, #f7931e, #f7c948) 0 100% / 0 2px no-repeat;
    transition: background-size .3s ease;
}

.footer-col a:hover { background-size: 100% 2px; }

.site-footer a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 24px;
    border-top: 1px solid #e9edf0;
    font-size: .78rem;
    color: #94a3b8;
}

.footer-bottom p { margin: 0; }

/* The logo file is a square canvas; crop to the wordmark band. */
.footer-bottom img {
    width: 110px;
    height: 26px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
    .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .site-footer { padding-top: 64px; }
    .footer-heading { margin-bottom: 32px; font-size: clamp(1.7rem, 8vw, 2.2rem); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .footer-col a { transition: none; }
}

@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 0;
        padding: 2px 0;
    }

    .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-wrap: wrap;
        gap: 0;
    }

    .header-search {
        grid-column: 2;
        grid-row: 1;
    }

    .main-nav .nav-link {
        padding: 6px 8px;
        font-size: .75rem;
    }

    .main-nav .nav-link::after { width: calc(100% - 16px); }
}

@media (max-width: 560px) {
    .hero-content {
        min-height: max(590px, calc(90svh - var(--header-height, 56px)));
        padding: 120px 0 28px;
    }

    .hero-heading {
        margin-bottom: 30px;
        gap: 16px;
        font-size: clamp(1.1rem, 5vw, 1.75rem);
    }

    .hero-details {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        padding-top: 20px;
    }

    .hero-description { font-size: .82rem; }
    .hero-catalog { width: 100%; }

    /* Anchor the catalog menu to the full-width nav row so it never runs off-screen. */
    .main-nav { position: relative; }
    .nav-dropdown { position: static; }
    .nav-dropdown-menu { right: 0; min-width: 0; }
}

/* ---------- Service page ---------- */

.hero--page .hero-content {
    min-height: max(520px, calc(72svh - var(--header-height, 56px)));
}

.hero--page .hero-description {
    max-width: 560px;
}

/* Service list on a light background. */
.about .services-list li {
    border-top-color: #e9edf0;
    color: var(--text);
}

.hero-bg {
    object-position: center;
}

/* ---------- Contact page ---------- */

/* Dark orange header bar for pages without a hero (darker than the logo's orange so the logo stays visible);
   reuses the white-text styles of .is-at-top. */
.site-header[data-solid] {
    background: #a8321a;
}

.page-heading {
    padding: calc(var(--header-height, 56px) + 40px) 0 0;
    background: #fff;
}

.page-title {
    margin: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--text);
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.055em;
    color: var(--text);
}

.contact {
    padding: 64px 0 112px;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 96px;
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 24px;
    margin: 32px 0 0;
}

.contact-list div {
    padding-top: 16px;
    border-top: 1px solid #e9edf0;
}

.contact-list dt {
    margin-bottom: 6px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.contact-list dd {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}

.contact-signature {
    margin: 48px 0 0;
}

.contact-signature img {
    width: min(520px, 100%);
    height: auto;
}

.contact-signature figcaption {
    margin-top: 8px;
    font-size: .82rem;
    color: var(--muted);
}

.contact-form {
    display: grid;
    gap: 20px;
    padding: 40px;
    background: #f5f7fb;
    border-radius: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-field {
    display: grid;
    gap: 8px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);
    transition: border-color .2s ease;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #f1bb48;
    box-shadow: 0 0 0 3px rgba(241, 187, 72, .3);
}

.contact-submit {
    justify-self: start;
    border: 0;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 900px) {
    .page-heading { padding-top: calc(var(--header-height, 56px) + 32px); }
    .contact { padding: 48px 0 80px; }
    .contact-grid { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 560px) {
    .contact-form { padding: 24px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-submit { justify-self: stretch; }
}

/* ---------- Contact details & form messages ---------- */

.footer-contact {
    margin: 10px 0 0;
}

.contact-list a {
    color: var(--text);
}

.contact-list a:hover {
    color: var(--primary);
}

.form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-error {
    font-size: .8rem;
    font-weight: 500;
    color: #b42318;
}

.form-notice {
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: .92rem;
}

.form-notice--ok {
    background: #e7f6ec;
    color: #146c2e;
}

.form-notice--error {
    background: #fdecea;
    color: #b42318;
}

/* ---------- Catalog ---------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.nav-dropdown-menu .nav-dropdown-all {
    font-weight: 700;
    color: var(--primary);
}

.catalog {
    padding: 48px 0 96px;
    background: #fff;
}

.catalog--related {
    padding-top: 0;
}

.catalog-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 48px;
    margin-bottom: 48px;
}

.catalog-intro {
    max-width: 620px;
    margin: 0;
    font-size: .92rem;
    line-height: 1.6;
    color: var(--muted);
}

.catalog-description {
    display: grid;
    gap: 12px;
    margin-bottom: 32px;
}

.catalog-description p { margin: 0; }

.catalog-search {
    display: flex;
    flex: 0 1 420px;
    border: 1px solid #dfe5ec;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.catalog-search:focus-within {
    border-color: #f1bb48;
    box-shadow: 0 0 0 3px rgba(241, 187, 72, .3);
}

.catalog-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    border: 0;
    font: inherit;
    outline: none;
}

.catalog-search button {
    padding: 0 22px;
    border: 0;
    background: #f1bb48;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.catalog-subtitle {
    margin: 0 0 24px;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: -.02em;
}

.catalog-subtitle ~ .catalog-subtitle { margin-top: 64px; }

.catalog-count {
    margin: 0 0 16px;
    font-size: .85rem;
    color: var(--muted);
}

.catalog-empty {
    display: grid;
    justify-items: start;
    gap: 20px;
    max-width: 560px;
    color: var(--muted);
}

.catalog-empty p { margin: 0; }

/* Category cards */
.category-grid,
.product-grid {
    display: grid;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 20px; }

@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.category-card,
.product-card a {
    display: grid;
    gap: 6px;
    color: var(--text);
}

.category-card-image,
.product-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f7fb;
}

.category-card-image img,
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.product-card-image img { object-fit: contain; padding: 12px; }

/* No photo yet: the monogram, small and faded, keeps the grid tidy. */
.category-card-image img.is-placeholder,
.product-card-image img.is-placeholder,
.product-gallery-main img.is-placeholder {
    width: 30%;
    height: 100%;
    margin: 0 auto;
    object-fit: contain;
    padding: 0;
    opacity: .25;
}

.category-card:hover img,
.product-card a:hover img { transform: scale(1.04); }

.category-card-name {
    font-size: 1.05rem;
    letter-spacing: -.02em;
}

.category-card-count,
.product-card-brand {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.product-card-name {
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.35;
}

.product-card-summary {
    display: -webkit-box;
    overflow: hidden;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.subcategory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}

.subcategory-list a {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid #dfe5ec;
    border-radius: 999px;
    color: var(--text);
    font-size: .88rem;
}

.subcategory-list a:hover { border-color: var(--text); }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin-bottom: 16px;
    font-size: .82rem;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

.breadcrumb a + a::before {
    content: "/";
    margin: 0 8px;
    color: #cbd5e1;
}

/* Product page */
.product {
    padding: calc(var(--header-height, 56px) + 32px) 0 72px;
    background: #fff;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.product-gallery-main {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #f5f7fb;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}

.product-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.product-thumbs button {
    width: 76px;
    height: 60px;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #f5f7fb;
    cursor: pointer;
}

.product-thumbs button[aria-current="true"] { border-color: #f1bb48; }

.product-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Fixed landing pages (PROADAS): hero, intro, model cards, features, brochures. */
.landing { padding: 8px 0 80px; background: #fff; }

/* Keeps the breadcrumb's bottom margin inside the white heading, so the grey page background doesn't show as a stripe. */
.page-heading--flow { display: flow-root; }

.landing-hero { text-align: center; padding: 24px 0 40px; }

.landing-hero .landing-brand-logo {
    display: block;
    height: 44px;
    width: auto;
    margin: 0 auto 18px;
    object-fit: contain;
}

.landing-title {
    margin: 0 0 14px;
    font-size: clamp(3rem, 8vw, 5.6rem);
    font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: 300;
    letter-spacing: .04em;
    line-height: 1;
}

.landing-lead {
    max-width: 720px;
    margin: 0 auto 28px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--muted);
}

.landing-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; }

.landing-link { font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.landing-banner {
    margin: 0 0 80px;
    overflow: hidden;
    border-radius: 20px;
    background: #e5e7eb;
}

.landing-banner img { display: block; width: 100%; height: auto; }

.landing-section-title {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.landing-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 56px;
    align-items: center;
    margin: 0 0 80px;
}

.landing-intro p { margin: 0; font-size: 1.15rem; line-height: 1.75; }
.landing-intro img { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; }

.landing-models { margin: 0 0 80px; }
.landing-models .landing-section-title { text-align: center; margin-bottom: 32px; }

.landing-model-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.landing-model {
    padding: 24px 16px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.landing-model img { display: block; width: 100%; height: auto; border-radius: 12px; }

.landing-features {
    margin: 0 0 80px;
    padding: 48px;
    border-radius: 24px;
    background: #ec4c24;
    color: #fff;
}

.landing-features .landing-section-title { color: #fff; }
.landing-features p { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.6; color: rgba(255, 255, 255, .92); }

.landing-checks { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }

.landing-checks li {
    position: relative;
    padding-left: 34px;
    font-size: 1.1rem;
    font-weight: 600;
}

.landing-checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    font-size: .85rem;
    font-weight: 800;
    color: #ec4c24;
}

.landing-docs { scroll-margin-top: 96px; }
.landing-docs .landing-section-title { text-align: center; margin-bottom: 8px; }
.landing-docs > p { margin: 0 0 28px; text-align: center; color: var(--muted); }

.landing-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.landing-doc a {
    display: grid;
    gap: 6px;
    height: 100%;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    color: var(--text);
    transition: border-color .2s ease, transform .2s ease;
}

.landing-doc a:hover { border-color: #ec4c24; transform: translateY(-2px); }
.landing-doc strong { font-size: 1.1rem; }
.landing-doc span { font-size: .9rem; color: var(--muted); }
.landing-doc small { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ec4c24; }

@media (max-width: 800px) {
    .landing-intro { grid-template-columns: 1fr; gap: 28px; }
    .landing-model-grid, .landing-doc-grid { grid-template-columns: 1fr; }
    .landing-features { padding: 28px 22px; }
    .landing-banner, .landing-intro, .landing-models, .landing-features { margin-bottom: 48px; }
}

/* Photo gallery of products (Cricuri): four per row, no card, name in grey italics underneath. */
.product-grid--gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; }

.product-grid--gallery .product-card-image {
    aspect-ratio: 3 / 4;
    margin-bottom: 14px;
    background: transparent;
}

.product-grid--gallery .product-card-image img { padding: 0; }

.product-grid--gallery .product-card-brand,
.product-grid--gallery .product-card-summary { display: none; }

.product-grid--gallery .product-card-name {
    font-size: .95rem;
    font-style: italic;
    font-weight: 400;
    text-align: center;
    color: #8a8f98;
}

@media (max-width: 1100px) {
    .product-grid--gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .product-grid--gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
}

.product-manufacturer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
}

.product-manufacturer-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.product-manufacturer a { display: inline-flex; }

.product-manufacturer img {
    display: block;
    max-width: 150px;
    max-height: 48px;
    object-fit: contain;
}

.product-brand {
    margin: 0 0 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #ec4c24;
}

.product-title {
    margin: 0 0 14px;
    font-size: clamp(1.4rem, 2.2vw, 1.95rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.product-summary {
    margin: 0 0 28px;
    font-size: .92rem;
    line-height: 1.6;
    color: var(--muted);
}

.product-actions {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin-bottom: 36px;
}

.product-actions p {
    margin: 0;
    font-size: .82rem;
    color: var(--muted);
}

.product-edit-link { font-size: .85rem; color: var(--primary); }

.product-subtitle {
    margin: 0 0 14px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #94a3b8;
}

.product-specs {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
}

.product-specs th,
.product-specs td {
    padding: 11px 0;
    border-top: 1px solid #e9edf0;
    text-align: left;
    vertical-align: top;
}

.product-specs th {
    width: 45%;
    padding-right: 16px;
    font-weight: 400;
    color: var(--muted);
}

.product-description {
    max-width: 760px;
    margin-top: 64px;
    padding-top: 28px;
    border-top: 1px solid var(--text);
}

.product-description p {
    margin: 0 0 14px;
    font-size: .9rem;
    line-height: 1.75;
    color: var(--muted);
}

@media (max-width: 900px) {
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
    .product-layout { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
    .category-grid { grid-template-columns: 1fr; }
    .catalog-search { flex-basis: 100%; }
}

/* Catalog submenus: a category with subcategories opens a panel to its right. */
.nav-dropdown-menu .has-submenu {
    position: relative;
}

.nav-dropdown-menu .has-submenu > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-dropdown-menu .has-submenu > a::after {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.nav-submenu {
    position: absolute;
    top: -1px;
    left: 100%;
    min-width: 240px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border-top: 3px solid #f1bb48;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.has-submenu:hover > .nav-submenu,
.has-submenu:focus-within > .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

@media (max-width: 900px) {
    /* No room to the side: subcategories open underneath, indented. */
    .nav-submenu {
        position: static;
        display: none;
        min-width: 0;
        border-top: 0;
        box-shadow: none;
        background: #f8fafc;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-submenu a { padding-left: 36px; }
    .has-submenu:hover > .nav-submenu,
    .has-submenu:focus-within > .nav-submenu { display: block; }
    .nav-dropdown-menu .has-submenu > a::after { transform: rotate(135deg); }
}

@media (prefers-reduced-motion: reduce) {
    .nav-submenu { transition: none; }
}

/* Subcategory cards on a category page (three per row, same size as the catalog overview). */
.category-grid--sub {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-bottom: 56px;
}

.category-grid--sub .category-card-name { font-size: 1.2rem; }

/* Show the whole photo (no cropping), like product cards. */
.category-grid--sub .category-card-image img:not(.is-placeholder) {
    object-fit: contain;
    padding: 12px;
}

@media (max-width: 900px) {
    .category-grid--sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Long product lists scroll inside the panel instead of running off the screen. */
.nav-submenu--products {
    max-height: min(70vh, 560px);
    overflow-y: auto;
}

/* Product documents and videos */
.product-subtitle--spaced { margin-top: 32px; }

.product-files {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-files a {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e9edf0;
    border-radius: 10px;
    color: var(--text);
    transition: border-color .2s ease;
}

.product-files a:hover { border-color: var(--text); }

.product-files svg {
    width: 26px;
    height: 26px;
    color: #ec4c24;
}

.product-files small {
    font-size: .78rem;
    color: #94a3b8;
    white-space: nowrap;
}

.product-videos {
    display: grid;
    gap: 20px;
    max-width: 960px;
    margin: 64px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--text);
}

.product-video {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #071522;
}

.product-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Noutăți ---------- */

.news-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #e9edf0;
}

.news-item {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid #e9edf0;
}

.news-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f7fb;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform .4s ease;
}

.news-image img.is-placeholder {
    width: 30%;
    margin: 0 auto;
    padding: 0;
    opacity: .25;
}

.news-item:hover .news-image img { transform: scale(1.04); }

.news-meta {
    margin: 0 0 8px;
    font-size: .8rem;
    color: #94a3b8;
}

.news-meta a { color: var(--muted); }

.news-title {
    margin: 0 0 6px;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: 400;
    letter-spacing: -.02em;
}

.news-title a { color: var(--text); }

.news-item .product-card-brand { margin: 0 0 8px; }

.news-summary {
    max-width: 640px;
    margin: 0 0 12px;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--muted);
}

.news-more {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(90deg, #f7931e, #f7c948) 0 100% / 100% 2px no-repeat;
    padding-bottom: 2px;
}

@media (max-width: 560px) {
    .news-item { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Legal pages ---------- */

.legal {
    padding: 48px 0 96px;
    background: #fff;
}

.legal-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 64px;
    align-items: start;
}

.legal-nav {
    position: sticky;
    top: calc(var(--header-height, 56px) + 24px);
    display: grid;
    gap: 10px;
    font-size: .88rem;
}

.legal-nav a { color: var(--muted); }
.legal-nav a[aria-current="page"] { color: var(--text); font-weight: 700; }

.legal-body {
    max-width: 760px;
    font-size: .92rem;
    line-height: 1.75;
    color: var(--muted);
}

.legal-body h2 {
    margin: 36px 0 10px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--text);
}

.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul { margin: 0 0 12px; padding-left: 20px; }
.legal-body li { margin-bottom: 4px; }

@media (max-width: 900px) {
    .legal-inner { grid-template-columns: 1fr; gap: 28px; }
    .legal-nav { position: static; grid-auto-flow: column; justify-content: start; overflow-x: auto; }
}

/* ---------- Footer legal links, contact note, cookie banner ---------- */

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: .78rem;
}

.footer-legal a { color: #94a3b8; }
.footer-legal a:hover { color: var(--text); }

.footer-bottom { flex-wrap: wrap; }

.form-privacy {
    margin: 0;
    font-size: .8rem;
    line-height: 1.5;
    color: var(--muted);
}

.form-privacy a { color: var(--text); text-decoration: underline; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 900;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    max-width: 880px;
    margin: 0 auto;
    padding: 18px 22px;
    border-radius: 14px;
    background: #071522;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
    color: rgba(255, 255, 255, .85);
    font-size: .86rem;
    line-height: 1.5;
}

.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 360px; margin: 0; }
.cookie-banner a { color: #fff; text-decoration: underline; }

.cookie-banner-actions {
    display: flex;
    gap: 10px;
}

.cookie-banner button {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

/* Both choices equally easy to pick: same size, only the colour differs. */
.cookie-banner button[data-consent="accept"] {
    border-color: #f1bb48;
    background: #f1bb48;
    color: var(--text);
}

/* ---------- "Before you leave" popup ---------- */

.exit-popup {
    width: min(760px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 0;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #071522;
    color: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    opacity: 0;
    transform: translateY(16px) scale(.98);
    transition: opacity .3s ease, transform .3s ease;
}

.exit-popup.is-visible {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    opacity: 1;
    transform: none;
}

.exit-popup::backdrop {
    background: rgba(7, 21, 34, .6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* The original monogram, unchanged, on a slightly lighter navy panel. */
.exit-popup-art {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #0d2233;
}

.exit-popup-art img {
    width: 120px;
    height: auto;
}

.exit-popup-body {
    padding: 44px 44px 40px;
}

.exit-popup-eyebrow {
    margin: 0 0 12px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #f1bb48;
}

.exit-popup-title {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.exit-popup-text {
    margin: 0 0 28px;
    font-size: .92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .7);
}

.exit-popup-actions {
    display: grid;
    gap: 10px;
    justify-items: stretch;
}

.exit-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    transition: transform .2s ease, background-color .2s ease;
}

.exit-popup-btn:hover { transform: translateY(-2px); }

.exit-popup-btn--primary {
    background: #f1bb48;
    color: var(--text);
}

.exit-popup-btn--whatsapp {
    background: #25d366;
    color: #06371c;
}

.exit-popup-btn--whatsapp svg {
    width: 22px;
    height: 22px;
}

.exit-popup-link {
    justify-self: center;
    margin-top: 6px;
    padding-bottom: 2px;
    color: #fff;
    font-size: .88rem;
    background: linear-gradient(90deg, #f7931e, #f7c948) 0 100% / 100% 2px no-repeat;
}

.exit-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
}

.exit-popup-close:hover { background: rgba(255, 255, 255, .18); }
.exit-popup-close svg { width: 18px; height: 18px; }

.exit-popup a:focus-visible,
.exit-popup button:focus-visible {
    outline: 3px solid #f1bb48;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .exit-popup.is-visible { grid-template-columns: 1fr; }
    .exit-popup-art { padding: 20px; }
    .exit-popup-art img { width: 64px; }
    .exit-popup-body { padding: 28px 22px 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .exit-popup, .exit-popup-btn { transition: none; }
}

/* The "Video" label sits centred above the centred players. */
.product-videos .product-subtitle { text-align: center; }

/* Small partner logo at the very end of the footer. */
.footer-credit {
    display: inline-flex;
    opacity: .6;
    transition: opacity .2s ease;
}

.footer-credit:hover { opacity: 1; }

/* Overrides the cropping used for the Ideal Tech logo in the same row. */
.footer-bottom .footer-credit img {
    width: 84px;
    height: auto;
    object-fit: contain;
}
