/* Online store page (magazin_online.php). Builds on css/product-page.css and css/home-modules.css. */
.site-modern.site-shop { background: #fff; }
.site-modern.site-shop :is(.mo-services, .mo-opinions, .mo-about, .mo-portfolio, .mo-video) h2 {
    margin: 0;
    color: var(--site-ink);
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}
.site-modern.site-shop :is(.mo-services, .mo-opinions, .mo-about, .mo-portfolio, .mo-video) h2 span { color: var(--site-blue); }

/* ---------- 1. Hero: warm glow from the store logo colours ---------- */
.site-modern .mo-hero {
    padding: 160px 24px 72px;
    background:
        radial-gradient(36% 48% at 74% 46%, rgba(244, 129, 32, .14), transparent 70%),
        radial-gradient(30% 40% at 92% 20%, rgba(145, 40, 143, .1), transparent 70%),
        radial-gradient(30% 40% at 60% 88%, rgba(33, 101, 232, .1), transparent 70%),
        #fff;
}
.site-modern .mo-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    max-width: 1160px;
    margin: 0 auto;
}
.site-modern .mo-hero h1 { margin: 0; color: var(--site-ink); font-size: clamp(38px, 4.6vw, 62px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.site-modern .mo-hero h1 span { color: var(--site-blue); }
.site-modern .mo-hero__lead { margin: 18px 0 0; max-width: 480px; color: var(--site-muted); font-family: var(--site-font-body); font-size: 19px; line-height: 1.65; }
.site-modern .mo-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.site-modern .mo-hero__visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.site-modern .mo-hero__ring {
    position: absolute;
    width: min(100%, 400px);
    aspect-ratio: 1;
    border: 2px dashed rgba(33, 101, 232, .22);
    border-radius: 50%;
}
.site-modern .mo-hero__disc {
    position: relative;
    display: grid;
    place-items: center;
    width: min(70%, 270px);
    aspect-ratio: 1;
    padding: 18%;
    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%, #f6f7ff 55%, #eceffd 100%);
    box-shadow: inset 0 2px 0 #fff, inset 0 -10px 22px rgba(33, 101, 232, .1), 0 0 0 12px rgba(244, 129, 32, .06), 0 28px 54px rgba(31, 59, 99, .18);
}
.site-modern .mo-hero__disc img { display: block; width: 100%; height: auto; }
.site-modern .mo-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border: 1px solid #e4ebf6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(23, 38, 61, .14);
    font-family: var(--site-font-body);
    line-height: 1.3;
}
.site-modern .mo-chip strong { display: block; color: var(--site-ink); font-size: 14px; font-weight: 700; }
.site-modern .mo-chip small { display: block; color: var(--site-muted); font-size: 12px; }
.site-modern .mo-chip__icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%);
    color: #fff;
}
.site-modern .mo-chip--stock { left: 0; top: 14%; }
.site-modern .mo-chip--market { right: 0; top: 46%; }
.site-modern .mo-chip--test { left: 8%; bottom: 8%; color: var(--site-ink); font-size: 14px; font-weight: 700; }
.site-modern .mo-chip__dot { width: 9px; height: 9px; border-radius: 50%; background: #2e9c3f; box-shadow: 0 0 0 4px rgba(46, 156, 63, .18); }

/* ---------- 2. Services: zig-zag rows ---------- */
.site-modern .mo-services { padding: 88px 24px; }
.site-modern .mo-services__inner { max-width: 1000px; margin: 0 auto; }
.site-modern .mo-service {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: 34px 40px;
    border: 1px solid #e4ebf6;
    border-radius: 26px;
    background: linear-gradient(160deg, #ffffff 0%, #f6f9ff 100%);
    box-shadow: 0 12px 32px rgba(31, 59, 99, .06);
}
.site-modern .mo-service + .mo-service { margin-top: 20px; }
.site-modern .mo-service--reverse { grid-template-columns: minmax(0, 1fr) 160px; }
.site-modern .mo-service--reverse .mo-service__disc { order: 2; }
.site-modern .mo-service__disc { width: 140px; height: 140px; margin: 0 auto; }
.site-modern .mo-service__disc img { width: 64px; height: 64px; object-fit: contain; }
.site-modern .mo-service h3 { margin: 0; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 23px; font-weight: 700; line-height: 1.3; }
.site-modern .mo-service p { margin: 10px 0 0; color: #4a5a70; font-family: var(--site-font-body); font-size: 16px; line-height: 1.7; }

/* ---------- 3. Steps: dark band with a horizontal timeline ---------- */
.site-modern .mo-steps {
    padding: 88px 24px;
    background:
        radial-gradient(40% 60% at 10% 0%, rgba(44, 109, 229, .35), transparent 70%),
        radial-gradient(40% 60% at 100% 100%, rgba(244, 129, 32, .16), transparent 70%),
        #17263d;
    color: #fff;
}
.site-modern .mo-steps__inner { max-width: 1100px; margin: 0 auto; }
.site-modern .mo-steps h2 { margin: 0; color: #fff; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.25; }
.site-modern .mo-steps h2 span { color: #8db6ff; }
.site-modern .mo-steps__list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
/* connecting line between the numbers */
.site-modern .mo-steps__list::before { content: ''; position: absolute; left: 12%; right: 12%; top: 32px; height: 2px; background: linear-gradient(90deg, rgba(141, 182, 255, .2), rgba(141, 182, 255, .7), rgba(141, 182, 255, .2)); }
.site-modern .mo-steps__list li { position: relative; text-align: center; }
.site-modern .mo-steps__n {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border: 4px solid #17263d;
    border-radius: 50%;
    background: linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%);
    box-shadow: 0 0 0 2px rgba(141, 182, 255, .45), 0 10px 24px rgba(0, 0, 0, .3);
    color: #fff;
    font-family: var(--site-font-heading);
    font-size: 20px;
    font-weight: 700;
}
.site-modern .mo-steps__list h3 { margin: 0; color: #fff; font-family: var(--site-font-heading); font-size: 20px; font-weight: 700; }
.site-modern .mo-steps__list p { margin: 10px auto 0; max-width: 320px; color: rgba(255, 255, 255, .78); font-family: var(--site-font-body); font-size: 15px; line-height: 1.7; }

/* ---------- 4. Opinion rings (conic gradient, filled to --p percent) ---------- */
@property --fill { syntax: '<number>'; inherits: false; initial-value: 0; }
.site-modern .mo-opinions { padding: 88px 24px; }
.site-modern .mo-opinions__inner { max-width: 1100px; margin: 0 auto; }
.site-modern .mo-rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-modern .mo-ring { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.site-modern .mo-ring__circle {
    --fill: var(--p);
    display: grid;
    place-items: center;
    width: 156px;
    height: 156px;
    border-radius: 50%;
    background: conic-gradient(var(--site-blue) calc(var(--fill) * 1%), #e3ecfd 0);
    box-shadow: 0 14px 30px rgba(31, 59, 99, .1);
    animation: mo-ring-fill 1.4s ease-out both;
}
@keyframes mo-ring-fill { from { --fill: 0; } to { --fill: var(--p); } }
.site-modern .mo-ring__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: #fff;
}
.site-modern .mo-ring__icon { color: var(--site-blue); line-height: 0; }
.site-modern .mo-ring__inner strong { color: var(--site-ink); font-family: var(--site-font-heading); font-size: 30px; font-weight: 700; line-height: 1; }
.site-modern .mo-ring__label { color: var(--site-ink); font-family: var(--site-font-body); font-size: 16px; font-weight: 700; line-height: 1.4; }

/* ---------- 5. Features (home-modules component) on a light band ---------- */
.site-modern .mo-features {
    background:
        radial-gradient(45% 55% at 85% 8%, rgba(33, 101, 232, .09), transparent 70%),
        linear-gradient(180deg, #f5f8ff 0%, #eef3fd 100%);
}

/* ---------- 6. Numbers band ---------- */
.site-modern .mo-numbers { padding: 64px 24px; }
.site-modern .mo-numbers__head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.site-modern .mo-numbers__head h2 { margin: 0; color: #fff; font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; }
.site-modern .mo-numbers__head p { margin: 8px 0 0; color: rgba(255, 255, 255, .88); font-family: var(--site-font-body); font-size: 17px; }
.site-modern .mo-numbers__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.site-modern .mo-numbers__pills li { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--site-pill); background: rgba(255, 255, 255, .12); color: #fff; font-family: var(--site-font-body); font-size: 14px; font-weight: 600; }
.site-modern .mo-numbers__list { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; }
.site-modern .mo-numbers__list img { display: block; width: 40px; height: 40px; margin-bottom: 4px; opacity: .9; }

/* ---------- 7. About ---------- */
.site-modern .mo-about { padding: 88px 24px; }
.site-modern .mo-about__inner {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 56px);
    max-width: 1000px;
    margin: 0 auto;
}
.site-modern .mo-about__badge {
    display: grid;
    place-content: center;
    justify-items: center;
    width: 200px;
    height: 200px;
    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 -10px 22px rgba(33, 101, 232, .12), 0 0 0 10px rgba(33, 101, 232, .06), 0 22px 44px rgba(31, 59, 99, .16);
}
.site-modern .mo-about__badge strong { color: var(--site-blue); font-family: var(--site-font-heading); font-size: 46px; font-weight: 700; line-height: 1; }
.site-modern .mo-about__badge small { margin-top: 6px; color: var(--site-muted); font-family: var(--site-font-body); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-modern .mo-about__text > p:not(.pp-eyebrow) { margin: 14px 0 0; color: #3f4d61; font-family: var(--site-font-body); font-size: 16px; line-height: 1.75; }
.site-modern .mo-about__link { display: inline-flex; gap: 6px; margin-top: 16px; color: var(--site-blue); font-family: var(--site-font-body); font-size: 16px; font-weight: 700; text-decoration: none; }
.site-modern .mo-about__link:hover { text-decoration: underline; }

/* ---------- 8. Portfolio logos ---------- */
.site-modern .mo-portfolio { padding: 0 24px 88px; }
.site-modern .mo-portfolio__inner { max-width: 1100px; margin: 0 auto; }
.site-modern .mo-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.site-modern .mo-logos a {
    display: grid;
    place-items: center;
    height: 130px;
    padding: 22px 26px;
    border: 1px solid #e4ebf6;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 59, 99, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-modern .mo-logos img { display: block; max-width: 100%; max-height: 70px; object-fit: contain; filter: grayscale(.2); transition: filter .25s ease; }
@media (hover: hover) {
    .site-modern .mo-logos a:hover { transform: translateY(-4px); border-color: #c1d5f6; box-shadow: 0 16px 34px rgba(31, 59, 99, .1); }
    .site-modern .mo-logos a:hover img { filter: none; }
}
.site-modern .mo-logos a:focus-visible { outline: 3px solid var(--site-blue); outline-offset: 3px; }

/* ---------- 9. Video ---------- */
.site-modern .mo-video { padding: 0 24px 88px; scroll-margin-top: 100px; }
.site-modern .mo-video__inner { max-width: 900px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .site-modern .mo-rings { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
    .site-modern .mo-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .site-modern .mo-hero__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .site-modern .mo-hero__lead { margin-inline: auto; }
    .site-modern .mo-hero__actions { justify-content: center; }
    .site-modern .mo-hero__visual { order: -1; max-width: 460px; width: 100%; margin: 0 auto; min-height: 360px; }
    .site-modern .mo-service, .site-modern .mo-service--reverse { grid-template-columns: minmax(0, 1fr); gap: 20px; text-align: center; }
    .site-modern .mo-service--reverse .mo-service__disc { order: 0; }
    .site-modern .mo-steps__list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    /* Mobile: numbers on the left, the line runs along them (never under the text) */
    .site-modern .mo-steps__list::before { display: none; }
    .site-modern .mo-steps__list li:not(:last-child)::after { content: ''; position: absolute; left: 31px; top: 64px; bottom: -32px; width: 2px; background: linear-gradient(180deg, rgba(141, 182, 255, .7), rgba(141, 182, 255, .2)); }
    .site-modern .mo-steps__list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; align-items: start; text-align: left; }
    .site-modern .mo-steps__n { grid-row: span 3; margin: 0; }
    .site-modern .mo-steps__list h3 { margin-top: 16px; }
    .site-modern .mo-steps__list p { margin: 6px 0 0; max-width: none; }
    .site-modern .mo-numbers__list { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
    .site-modern .mo-numbers__list li + li { border-left: 0; }
    .site-modern .mo-about__inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
}
@media (max-width: 760px) {
    .site-modern .mo-hero { padding: 120px 16px 48px; }
    .site-modern .mo-hero h1 { font-size: clamp(34px, 10vw, 44px); }
    .site-modern .mo-hero__lead { font-size: 16px; }
    .site-modern .mo-hero__actions .site-button { flex: 1 1 auto; }
    .site-modern .mo-chip { padding: 8px 11px; }
    .site-modern .mo-chip strong { font-size: 12px; }
    .site-modern .mo-chip small { font-size: 11px; }
    .site-modern .mo-chip__icon { flex-basis: 28px; width: 28px; height: 28px; }
    .site-modern :is(.mo-services, .mo-steps, .mo-opinions, .mo-about) { padding: 56px 16px; }
    .site-modern :is(.mo-portfolio, .mo-video) { padding: 0 16px 56px; }
    .site-modern.site-shop :is(.mo-services, .mo-opinions, .mo-about, .mo-portfolio, .mo-video) h2,
    .site-modern .mo-steps h2 { font-size: clamp(22px, 6.4vw, 28px); }
    .site-modern .mo-service { padding: 26px 20px; }
    .site-modern .mo-service__disc { width: 110px; height: 110px; }
    .site-modern .mo-service h3 { font-size: 20px; }
    .site-modern .mo-service p { font-size: 15px; }
    .site-modern .mo-ring__circle { width: 130px; height: 130px; }
    .site-modern .mo-ring__inner { width: 102px; height: 102px; }
    .site-modern .mo-ring__inner strong { font-size: 24px; }
    .site-modern .mo-ring__label { font-size: 14px; }
    .site-modern .mo-numbers { padding: 48px 16px; }
    .site-modern .mo-about__badge { width: 150px; height: 150px; }
    .site-modern .mo-about__badge strong { font-size: 36px; }
    .site-modern .mo-logos a { height: 100px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .site-modern .mo-ring__circle { animation: none; }
    .site-modern .mo-logos a, .site-modern .mo-logos img { transition: none; }
    .site-modern .mo-logos a:hover { transform: none; }
}
