/* "Soluțiile Platphorma": hero, main products (large cards), ANAF modules band, specific modules (compact tiles),
   closing CTA and a details window for items without their own page. */
.site-modern.site-solutions { background: #fff; }
.site-modern.site-solutions main { display: block; clear: both; }

.site-modern .sol-eyebrow {
    margin: 0 0 10px;
    color: var(--site-blue);
    font-family: var(--site-font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Hero ---------- */
.site-modern .sol-hero {
    padding: 160px 24px 72px;
    background:
        radial-gradient(34% 46% at 72% 40%, rgba(15, 117, 189, .14), transparent 70%),
        radial-gradient(26% 34% at 90% 20%, rgba(244, 106, 37, .09), transparent 70%),
        radial-gradient(28% 38% at 94% 74%, rgba(145, 40, 143, .08), transparent 70%),
        radial-gradient(30% 36% at 58% 86%, rgba(59, 181, 74, .08), transparent 70%),
        #fff;
}
.site-modern .sol-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    max-width: 1160px;
    margin: 0 auto;
}
.site-modern .sol-hero h1 {
    margin: 0;
    color: var(--site-ink);
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
}
.site-modern .sol-hero h1 span { color: var(--site-blue); }
.site-modern .sol-hero__lead {
    margin: 18px 0 0;
    max-width: 520px;
    color: var(--site-muted);
    font-family: var(--site-font-body);
    font-size: 17px;
    line-height: 1.7;
}
.site-modern .sol-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.site-modern .sol-hero__visual img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 28px rgba(31, 59, 99, .12));
}

/* ---------- Sections ---------- */
.site-modern .sol-section { max-width: 1208px; margin: 0 auto; padding: 72px 24px; }
.site-modern .sol-section__header { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.site-modern .sol-section__header h2,
.site-modern .sol-recommended__header h2 {
    margin: 0;
    color: var(--site-ink);
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}

/* Main products: large cards */
.site-modern .sol-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.site-modern .sol-product {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    padding: 24px 22px 20px;
    border: 1px solid #e4ebf6;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 59, 99, .05);
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-modern .sol-product__logo {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    padding: 9px;
    border-radius: 16px;
    background: #f4f7fc;
}
.site-modern .sol-product__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-modern .sol-product__tag {
    margin-top: 16px;
    color: var(--site-blue);
    font-family: var(--site-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.site-modern .sol-product__name {
    margin-top: 4px;
    color: var(--site-ink);
    font-family: var(--site-font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    transition: color .2s ease;
}
.site-modern .sol-product__text {
    margin-top: 8px;
    color: #4a5a70;
    font-family: var(--site-font-body);
    font-size: 15px;
    line-height: 1.6;
}
.site-modern .sol-product__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 16px;
    color: var(--site-blue);
    font-family: var(--site-font-body);
    font-size: 15px;
    font-weight: 700;
}
.site-modern :is(.sol-product__more, .sol-module__arrow) svg { display: block; transition: transform .25s ease; }

/* Recommended modules: 3 ANAF cards + a wide Contracte card, all in the "featured" style
   (light gradient card, blue edge, raised icon disc, badge, check list). */
.site-modern .sol-recommended {
    padding: 72px 24px;
    background:
        radial-gradient(45% 55% at 85% 8%, rgba(33, 101, 232, .09), transparent 70%),
        linear-gradient(180deg, #f5f8ff 0%, #eef3fd 100%);
}
.site-modern .sol-recommended__inner { max-width: 1160px; margin: 0 auto; }
.site-modern .sol-recommended__header { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.site-modern .sol-recommended__header h2 span { color: var(--site-blue); }
.site-modern .sol-recommended__header p:last-child { margin: 12px 0 0; color: var(--site-muted); font-family: var(--site-font-body); font-size: 16px; line-height: 1.6; }
.site-modern .sol-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--site-pill);
    background: #e3ecfd;
    color: var(--site-blue);
}

.site-modern .sol-rec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.site-modern :is(.sol-rec-card, .sol-rec-wide) {
    position: relative;
    overflow: hidden;
    border: 1px solid #cddcf5;
    border-radius: 22px;
    background:
        radial-gradient(60% 50% at 100% 0%, rgba(33, 101, 232, .08), transparent 70%),
        linear-gradient(160deg, #ffffff 0%, #f6f9ff 100%);
    box-shadow: 0 12px 32px rgba(31, 59, 99, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* Blue edge: top on the column cards, left on the wide card */
.site-modern :is(.sol-rec-card, .sol-rec-wide)::before {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%);
}
.site-modern .sol-rec-card::before { inset: 0 0 auto; height: 5px; }
.site-modern .sol-rec-wide::before { inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%); }
@media (hover: hover) {
    .site-modern :is(.sol-rec-card, .sol-rec-wide):hover { transform: translateY(-5px); border-color: #b4cbf2; box-shadow: 0 22px 46px rgba(31, 59, 99, .13); }
}

.site-modern .sol-rec-card { display: flex; flex-direction: column; padding: 28px 26px 24px; }
.site-modern .sol-rec-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
/* Raised white disc around the icon (same language as the buttons and the story disc) */
.site-modern .sol-rec-disc {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    padding: 18px;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 72% 42% at 50% 6%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #ffffff 0%, #f3f7ff 55%, #e3ecfd 100%);
    box-shadow: inset 0 2px 0 #fff, inset 0 -8px 16px rgba(33, 101, 232, .12), 0 0 0 8px rgba(33, 101, 232, .06), 0 14px 28px rgba(31, 59, 99, .16);
}
.site-modern .sol-rec-disc img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-modern .sol-rec-disc--large { width: 190px; height: 190px; padding: 36px; }
.site-modern .sol-rec-card__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 11px;
    border-radius: var(--site-pill);
    background: #fff;
    border: 1px solid #cddcf5;
    color: var(--site-blue);
    font-family: var(--site-font-body);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}
.site-modern :is(.sol-rec-card, .sol-rec-wide) h3 {
    margin: 0;
    color: var(--site-ink);
    font-family: var(--site-font-heading);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
}
.site-modern .sol-rec-card__text { margin: 8px 0 0; color: #4a5a70; font-family: var(--site-font-body); font-size: 15px; line-height: 1.6; }

.site-modern .sol-checks { display: grid; gap: 9px; margin: 18px 0 20px; padding: 0; list-style: none; }
.site-modern .sol-checks li {
    position: relative;
    padding-left: 30px;
    color: var(--site-ink);
    font-family: var(--site-font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}
.site-modern .sol-checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e3ecfd;
}
.site-modern .sol-checks li::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    width: 5px;
    height: 10px;
    border-right: 2px solid var(--site-blue);
    border-bottom: 2px solid var(--site-blue);
    transform: rotate(45deg);
}
.site-modern .sol-checks--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
/* "Descoperă modulul": the standard blue button (site-buttons.css), 30% smaller (35px instead of 50px tall). */
html body.site-modern .sol-rec-button.site-button {
    gap: 8px;
    min-height: 35px;
    padding: 7px 15px;
    border-radius: 10px;
    font-size: 14px;
}
.site-modern .sol-rec-card .sol-rec-button { align-self: flex-start; margin-top: auto; }

.site-modern .sol-rec-wide {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    margin-top: 20px;
    padding: 32px 40px;
}
.site-modern .sol-rec-wide__visual { position: relative; display: grid; place-items: center; min-height: 230px; }
.site-modern .sol-rec-wide__text .sol-rec-card__badge { margin-bottom: 10px; }
.site-modern .sol-rec-wide .sol-checks { margin-bottom: 24px; }
.site-modern .sol-rec-chip {
    position: absolute;
    right: 0;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e4ebf6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 59, 99, .14);
    font-family: var(--site-font-body);
    line-height: 1.3;
}
.site-modern .sol-rec-chip strong { display: block; color: var(--site-ink); font-size: 14px; font-weight: 700; }
.site-modern .sol-rec-chip small { display: block; color: var(--site-muted); font-size: 12px; }
.site-modern .sol-rec-chip__check {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e3f6e8;
    color: #2e9c3f;
    font-size: 15px;
    font-weight: 700;
}

/* Specific modules: compact tiles grouped under small headings */
.site-modern .sol-group + .sol-group { margin-top: 36px; }
.site-modern .sol-group__title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    color: var(--site-ink);
    font-family: var(--site-font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
.site-modern .sol-group__title::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--site-line); }
.site-modern .sol-modules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-modern .sol-module {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    height: 100%;
    padding: 16px;
    border: 1px solid var(--site-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(31, 59, 99, .04);
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.site-modern .sol-module__icon {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 10px rgba(33, 101, 232, .2);
    color: #fff;
}
.site-modern .sol-module__icon svg { display: block; }
.site-modern .sol-module__body { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.site-modern .sol-module__name { color: var(--site-ink); font-family: var(--site-font-body); font-size: 16px; font-weight: 700; line-height: 1.35; transition: color .2s ease; }
.site-modern .sol-module__text { margin-top: 3px; color: var(--site-muted); font-family: var(--site-font-body); font-size: 14px; line-height: 1.5; }
.site-modern .sol-module__arrow { flex: 0 0 auto; color: #9db7e6; transition: color .2s ease; }

/* Hover / focus for all clickable cards */
.site-modern :is(.sol-product, .sol-module):focus-visible { outline: 3px solid var(--site-blue); outline-offset: 3px; }
@media (hover: hover) {
    .site-modern .sol-product:hover { transform: translateY(-5px); border-color: #c1d5f6; box-shadow: 0 18px 38px rgba(31, 59, 99, .11); }
    .site-modern .sol-module:hover { transform: translateY(-3px); border-color: #c1d5f6; box-shadow: 0 12px 26px rgba(31, 59, 99, .1); }
    .site-modern .sol-product:hover .sol-product__name,
    .site-modern .sol-module:hover .sol-module__name { color: var(--site-blue); }
    .site-modern :is(.sol-product, .sol-module):hover :is(.sol-product__more, .sol-module__arrow) { color: var(--site-blue); }
    .site-modern :is(.sol-product, .sol-module):hover :is(.sol-product__more, .sol-module__arrow) svg { transform: translateX(3px); }
}

/* Closing CTA on the button gradient */
.site-modern .sol-cta { padding: 0 24px 88px; }
.site-modern .sol-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 36px 40px;
    border-radius: 24px;
    background:
        radial-gradient(50% 90% at 0% 0%, rgba(255, 255, 255, .16), transparent 70%),
        linear-gradient(135deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%);
    box-shadow: 0 18px 40px rgba(33, 101, 232, .25);
    color: #fff;
}
.site-modern .sol-cta h2 { margin: 0; color: #fff; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.3; }
.site-modern .sol-cta p { margin: 8px 0 0; max-width: 620px; color: rgba(255, 255, 255, .9); font-family: var(--site-font-body); font-size: 16px; line-height: 1.6; }
.site-modern .sol-cta .site-button { flex: 0 0 auto; }

/* ---------- Details window ---------- */
#platphorma-web { scroll-margin-top: 130px; }
.site-modern .sol-dialog {
    position: fixed;
    inset: 0;
    width: min(560px, calc(100% - 32px));
    max-width: none;
    height: fit-content;
    max-height: min(80vh, 640px);
    max-height: min(80dvh, 640px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: #fff;
    color: var(--site-ink);
    box-shadow: 0 30px 80px rgba(23, 38, 61, .28);
    overflow: auto;
    overscroll-behavior: contain;
}
.site-modern .sol-dialog::backdrop { background: rgba(23, 38, 61, .35); }
.site-modern .sol-dialog__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 72px 20px 24px;
    border-bottom: 1px solid var(--site-line);
}
.site-modern .sol-dialog__icon {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%);
    color: #fff;
}
.site-modern .sol-dialog__icon:has(img) { background: #f4f7fc; }
.site-modern .sol-dialog__icon :is(svg, img) { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-modern .sol-dialog h2 { margin: 0; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 21px; font-weight: 700; line-height: 1.3; }
.site-modern .sol-dialog__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--site-line);
    border-radius: 50%;
    background: #fff;
    color: var(--site-ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.site-modern .sol-dialog__close:hover { background: #f1f6ff; border-color: #c1d5f6; }
.site-modern .sol-dialog__close:focus-visible { outline: 3px solid var(--site-blue); outline-offset: 2px; }
.site-modern .sol-dialog__body { padding: 22px 24px 26px; }
.site-modern .sol-dialog__text { margin: 0; color: #33435a; font-family: var(--site-font-body); font-size: 17px; line-height: 1.7; }
.site-modern .sol-dialog__note { margin: 14px 0 22px; color: var(--site-muted); font-family: var(--site-font-body); font-size: 15px; line-height: 1.6; }

@media (max-width: 1100px) {
    .site-modern .sol-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .site-modern .sol-hero__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .site-modern .sol-hero__lead { margin-inline: auto; }
    .site-modern .sol-hero__actions { justify-content: center; }
    .site-modern .sol-hero__visual { order: -1; max-width: 560px; margin: 0 auto; }
    .site-modern .sol-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-modern .sol-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-modern .sol-rec-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
    .site-modern .sol-rec-wide { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 20px auto 0; padding: 28px 28px 30px; }
    .site-modern .sol-rec-wide__visual { min-height: 200px; }
    .site-modern .sol-rec-disc--large { width: 160px; height: 160px; padding: 30px; }
}
@media (max-width: 760px) {
    .site-modern .sol-hero { padding: 120px 16px 48px; }
    .site-modern .sol-eyebrow { font-size: 12px; }
    .site-modern .sol-hero h1 { font-size: clamp(26px, 7.5vw, 34px); }
    .site-modern .sol-hero__lead { font-size: 15px; }
    .site-modern .sol-hero__actions .site-button { flex: 1 1 auto; }
    .site-modern .sol-section { padding: 52px 16px; }
    .site-modern .sol-section__header { margin-bottom: 24px; }
    .site-modern :is(.sol-section__header, .sol-recommended__header) h2 { font-size: clamp(22px, 6vw, 28px); }
    .site-modern .sol-products { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .site-modern .sol-product { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; padding: 18px; }
    .site-modern .sol-product__logo { grid-row: span 4; width: 56px; height: 56px; }
    .site-modern .sol-product__tag { margin-top: 0; }
    .site-modern .sol-product__name { font-size: 18px; }
    .site-modern .sol-product__more { padding-top: 10px; }
    .site-modern .sol-modules { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .site-modern .sol-group__title { font-size: 18px; }
    .site-modern .sol-recommended { padding: 52px 16px; }
    .site-modern .sol-rec-card { padding: 24px 20px 22px; }
    .site-modern .sol-rec-disc { width: 80px; height: 80px; padding: 15px; }
    .site-modern :is(.sol-rec-card, .sol-rec-wide) h3 { font-size: 20px; }
    .site-modern .sol-rec-wide { padding: 24px 20px 26px 24px; }
    .site-modern .sol-rec-disc--large { width: 140px; height: 140px; padding: 26px; }
    .site-modern .sol-checks--two { grid-template-columns: minmax(0, 1fr); }
    .site-modern .sol-cta { padding: 0 16px 56px; }
    .site-modern .sol-cta__inner { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
    .site-modern .sol-dialog { width: calc(100% - 24px); border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .site-modern :is(.sol-product, .sol-module),
    .site-modern :is(.sol-product__more, .sol-module__arrow) svg { transition: none; }
    .site-modern :is(.sol-product, .sol-module):hover { transform: none; }
    .site-modern :is(.sol-rec-card, .sol-rec-wide) { transition: none; }
    .site-modern :is(.sol-rec-card, .sol-rec-wide):hover { transform: none; }
}
