/* Shared visual language with edu-plus.ru, using locally served brand assets. */
@font-face{font-family:Montserrat;src:url('fonts/montserrat-400.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Montserrat;src:url('fonts/montserrat-500.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:Montserrat;src:url('fonts/montserrat-600.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:Montserrat;src:url('fonts/montserrat-700.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}

:root{--navy:#2a2a32;--blue:#257646;--mint:#5cc489;--ink:#2a2a32;--muted:#60656a;--line:#e0e7e1;--surface:#faf5f5;--radius:16px;--container:1200px;--brand:#4cb873;--olive:#6c770e;--olive-hover:#555e0b}
body{font-family:Montserrat,Arial,sans-serif;font-weight:400;color:var(--ink);background:#fff}
h1,h2,h3{font-weight:700;letter-spacing:-.025em;line-height:1.25}
h1{font-size:clamp(2rem,4vw,3rem)}
h2{font-size:clamp(1.7rem,3vw,2.15rem)}
.container{width:min(var(--container),calc(100% - 80px))}
.eyebrow{font-size:.65rem;letter-spacing:.13em;font-weight:600;color:var(--blue)}
.section{padding-block:76px}
.section-heading{margin-bottom:32px;align-items:center}
.section-heading .eyebrow{margin-bottom:13px}
.section-heading h2{font-size:2rem}
.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{background:var(--olive);color:white;border-color:transparent;border-radius:5px;font-family:inherit;font-weight:600;min-height:46px;padding:12px 22px;font-size:.875rem;box-shadow:none}
.button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.woocommerce #respond input#submit:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover{background:var(--olive-hover);color:white;box-shadow:0 5px 16px #343a1614;transform:translateY(-2px)}
.button.secondary{background:transparent;color:var(--blue);border:1px solid #62b583;border-radius:16px;font-weight:500}
.button.secondary:hover{background:#eaf6ee;color:#205f3a;border-color:var(--brand)}
.button.small{min-height:44px;padding:10px 14px;font-size:.75rem}
.text-link{color:var(--blue);font-size:.8125rem}

.topline{background:#24242c;color:#77cf98}
.topline .container{padding-block:4px;font-size:.625rem}
.site-header{background:#2a2a32;color:white;border:0;backdrop-filter:none;box-shadow:0 2px 12px #00000014}
.header-inner{min-height:64px;gap:28px}
.brand-image{display:block;width:242px;max-width:100%;height:auto}
.primary-nav{gap:25px;font-size:.8125rem}
.primary-nav a{color:#f6f6f6}
.primary-nav a:hover{color:#7dd99f}
.primary-nav a:after{background:var(--brand)}
.header-actions{gap:15px}
.cart-link{font-size:.75rem}
.cart-count{background:var(--brand);color:#172b1e;font-weight:700}
.icon-button{color:#edf5ef}
.cart-link:hover,.icon-button:hover{color:#7dd99f}

.edu-hero{position:relative;isolation:isolate;overflow:hidden;background:#34413d;color:white}
.edu-hero-background{position:absolute;z-index:-1;inset:-90px 0;background:linear-gradient(#1c302426,#14332138),url('images/education-background.jpg') center/cover no-repeat;will-change:transform}
.edu-hero-content{text-align:center;padding-top:52px;padding-bottom:52px}
.edu-hero .eyebrow{color:#ccefd8;margin-bottom:16px}
.edu-hero h1{font-size:2.6rem;line-height:1.22;margin:0 0 18px;font-weight:700;letter-spacing:-.025em}
.edu-hero-description{font-size:.9375rem;line-height:1.8;color:#f5f7f5;margin-bottom:35px}

.solutions-section{background:var(--surface)}
.solutions-grid{gap:24px}
.solution-card{background:#fff;border:1px solid #e2e9e2;border-radius:16px;padding:29px;min-height:345px}
.solution-card:hover{transform:translateY(-5px);box-shadow:0 15px 35px #23452b0d;border-color:#8bc8a2}
.solution-card-top{flex-direction:row;justify-content:flex-start;gap:15px;font-size:.5625rem;color:#66766a}
.solution-card-top svg{width:38px;height:38px;color:var(--brand)}
.solution-card h3{font-size:1.6rem;line-height:1.28;letter-spacing:-.03em;margin:25px 0 18px}
.solution-card strong{font-size:.8125rem;line-height:1.6;font-weight:600}
.solution-card p{font-size:.8125rem;line-height:1.8;color:var(--muted);min-height:68px;margin-bottom:22px}
.solution-card .text-link{padding-top:18px;border-top:1px solid var(--line)}
.solutions-more{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:23px;padding-top:0;border:0}
.solutions-more a{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px;font-size:.75rem;line-height:1.65;color:#465c4c}
.solutions-more a:hover{color:var(--blue);border-color:#8bc8a2}
.solutions-more span{color:var(--brand)}
.services-section{gap:70px;grid-template-columns:.9fr 1.1fr}
.services-intro h2{font-size:2.2rem}
.services-intro p:not(.eyebrow){font-size:.9375rem;max-width:370px;line-height:1.8}
.service-list h3{font-size:1.3rem;letter-spacing:-.015em}
.service-list p{font-size:.8125rem}
.service-list>a>span{color:var(--brand);font-size:.75rem}
.service-list>a>svg{color:var(--blue)}
.service-list>a:hover{background:#f5faf6}
.education-link{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:30px 34px;border:1px solid #c7dfcf;border-radius:16px;background:#f3f9f4;margin-bottom:72px}
.education-link>div{display:flex;align-items:center;gap:22px}
.education-link>div>svg{width:35px;height:35px;color:var(--blue)}
.education-link h2{font-size:1.2rem;margin:0 0 7px}
.education-link p{font-size:.8125rem;margin:0;color:var(--muted)}
.education-link .button{flex:none}

.site-footer{background:var(--navy);color:#eaf0ed;padding-top:50px}
.footer-grid{grid-template-columns:1.3fr 1fr 1fr;gap:45px;padding-bottom:37px}
.footer-brand .brand-image{width:280px}
.footer-grid p{color:#bec7c1;font-size:.8125rem;line-height:1.9}
.footer-grid h2{font-size:.875rem;color:#80d79f;font-weight:600;letter-spacing:0}
.footer-grid>div>a:not(.brand){color:#e6ece8;font-size:.75rem;line-height:1.8}
.footer-grid a:hover{color:#7dd99f}
.footer-bottom{border-color:#51545a;color:#bfc7c2;font-size:.6875rem;padding-block:23px}

.page-main,.shop-main{padding-top:43px}
.catalog-heading h1{font-size:2.4rem;max-width:900px}
.catalog-heading>p:last-child{font-size:.9375rem}
.catalog-search{border-radius:8px;background:#f7f8f7;border-color:#d6e1d9}
.catalog-sidebar a[aria-current=page]{background:#e8f4ec;color:var(--blue)}
.catalog-sidebar a:hover{background:#f0f7f2;color:var(--blue)}
.sidebar-help{background:#f1f7f2;border-color:#d5e5d9}
.sidebar-help>svg{color:var(--brand)}
.product-card{border-radius:14px;border-color:#dee7e0;background:#fff}
.product-card:hover{border-color:#90c9a3;box-shadow:0 10px 24px #193f2510}
.product-icon{background:#e9f5ec;color:var(--blue)}
.product-card h3{font-size:1.07rem;line-height:1.5;letter-spacing:-.02em}
.product-card .price{color:var(--ink)}
.product-code{color:#6c776f}
.woocommerce nav.woocommerce-pagination ul li span.current,.woocommerce nav.woocommerce-pagination ul li a:hover{background:#e5f2e9;color:var(--blue)}
.zifra-product-overview{display:grid;grid-template-columns:120px minmax(0,1fr);gap:32px;align-items:start;margin-bottom:36px}
.woocommerce div.product .zifra-product-overview div.images{float:none;width:120px;min-height:120px;padding:10px;margin:0;background:#f6f8f6;border-radius:12px;align-self:start}
.woocommerce div.product .zifra-product-overview div.images img{width:auto;max-width:100px;height:auto;max-height:100px;margin:0 auto;object-fit:contain}
.woocommerce div.product .zifra-product-overview div.summary{float:none;width:100%;max-width:none;margin:0;min-width:0}
.woocommerce div.product .zifra-product-overview .product_title{text-align:left;hyphens:none;word-break:normal;overflow-wrap:normal}
.zifra-product-overview .single-product-intro,.zifra-product-overview .woocommerce-product-details__short-description{white-space:normal;hyphens:none;word-break:normal;overflow-wrap:normal}
.zifra-no-product-image .zifra-product-overview{grid-template-columns:minmax(0,1fr)}
.zifra-video{position:relative;aspect-ratio:16/9;width:100%;max-width:960px;background:#20252a;border-radius:12px;overflow:hidden}
.zifra-video iframe{display:block;position:absolute;inset:0;width:100%;height:100%;border:0}
.prose .zifra-video-link{font-size:.8125rem;margin:10px 0 26px}
@media(max-width:600px){.zifra-product-overview{grid-template-columns:minmax(0,1fr);gap:18px}.woocommerce div.product .zifra-product-overview div.images{width:88px;min-height:88px;padding:8px}.woocommerce div.product .zifra-product-overview div.images img{max-width:72px;max-height:72px}.zifra-video{border-radius:8px}}
.woocommerce div.product .product_title{font-size:2.35rem}
.zifra-no-product-image.woocommerce div.product div.summary{float:none;width:100%;max-width:900px}
.zifra-no-product-image.woocommerce div.product .summary .product_title{text-align:left}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--blue)}
.woocommerce-checkout #payment{background:#f3f7f3}
.woocommerce-checkout #payment div.payment_box{background:#e1ebe2;color:#354238}
.woocommerce-checkout #payment div.payment_box:before{border-bottom-color:#e1ebe2}
.woocommerce .woocommerce-message,.woocommerce .woocommerce-info{background:#f0f6f1;border-top-color:var(--blue)}
.woocommerce-info:before{color:var(--blue)}
.woocommerce .woocommerce-MyAccount-navigation li.is-active a{background:var(--blue);color:#fff}
.contact-panel{background:#f2f8f3;border-color:#cce1d2}
.contact-decoration{color:#b0d7bd}
.zifra-account-note{padding:24px 28px;margin:0 0 30px;background:#f0f7f2;border:1px solid #d5e5d9;border-radius:12px;color:#405b48;max-width:920px}
.support-chat{font-size:.875rem;line-height:1.75;scroll-margin-top:90px}
.support-chat-intro{padding:22px 24px;background:#f0f7f2;border:1px solid #d5e5d9;border-radius:12px;margin-bottom:22px}
.support-chat-intro strong{display:block;color:var(--ink);font-size:1.0625rem}
.support-chat-intro p{margin:8px 0 0}
.support-chat-actions{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}
.support-chat .support-chat-messages,.support-chat .children{list-style:none;padding:0;margin:20px 0}
.support-chat .children{margin:14px 0 0 20px}
.support-chat .comment-body{padding:20px;border:1px solid #dce7df;border-radius:12px;background:#fff;margin-bottom:14px;overflow-wrap:anywhere}
.support-chat .comment-author{font-weight:600;color:var(--ink)}
.support-chat .comment-metadata{font-size:.75rem;color:#65766b}
.support-chat .comment-content p{margin:10px 0}
.support-chat .reply{font-size:.8125rem;font-weight:600}
.support-chat .comment,.support-chat .comment-respond{scroll-margin-top:90px}
.support-chat .comment-respond{margin-top:24px}
.support-chat .comment-reply-title{font-size:1.25rem}
.support-chat .comment-reply-title small{display:block;font-size:.8125rem;margin-top:8px}
.support-chat label{display:block;font-weight:600;margin-bottom:8px}
.support-chat textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;padding:14px;border:1px solid #cbd9cf;border-radius:10px;font:inherit;resize:vertical;background:#fff;color:var(--ink)}
.support-chat-notice,.support-chat .comment-awaiting-moderation{padding:12px 16px;background:#eef6e5;border-radius:8px;color:#3f5b29}
@media(max-width:600px){.support-chat-intro,.support-chat .comment-body{padding:16px}.support-chat .children{margin-left:12px}.support-chat-actions .button{width:100%;text-align:center}}
.zifra-account-note strong{display:block;color:var(--ink);font-size:1rem;margin-bottom:10px}
.zifra-account-note p{font-size:.875rem;line-height:1.8;margin:0 0 10px}
.zifra-account-note p:last-child{margin-bottom:0}
.woocommerce .woocommerce-account-fields{padding:20px 22px;margin:20px 0;background:#f0f7f2;border:1px solid #d5e5d9;border-radius:12px}
.woocommerce .woocommerce-account-fields .create-account{margin:0}
.woocommerce .woocommerce-account-fields label{font-weight:600}
.woocommerce .zifra-checkout-account-note{font-size:.8125rem;line-height:1.75;color:#506659;margin:10px 0 0}

/* BetterDocs uses a 4vh sticky offset and z-index 9999 in category archives. */
body .betterdocs-wrapper{--zifra-docs-top:calc(var(--zifra-sticky-header-height,64px) + 16px)}
body .betterdocs-wrapper .betterdocs-content-wrapper .betterdocs-sidebar.betterdocs-sidebar-layout-7{z-index:1}
body .betterdocs-wrapper .betterdocs-content-wrapper .betterdocs-sidebar.betterdocs-full-sidebar-left .betterdocs-sidebar-content,
body .betterdocs-wrapper .betterdocs-content-wrapper .betterdocs-sidebar.betterdocs-full-sidebar-right .right-sidebar-toc-container{top:var(--zifra-docs-top);max-height:calc(100vh - var(--zifra-docs-top) - 16px);max-height:calc(100dvh - var(--zifra-docs-top) - 16px)}

@media(min-width:1600px){:root{--container:1200px}}
@media(max-width:1150px){
    .container{width:calc(100% - 56px)}.header-inner{gap:25px}.brand-image{width:230px}.primary-nav{gap:17px;font-size:.75rem}.header-actions{gap:10px}
    .solution-card{padding:25px}.solution-card h3{font-size:1.4rem}
    .education-link{padding:26px}.education-link .button{font-size:.75rem}.services-section{gap:40px}
}
@media(max-width:900px){
    .brand-image{width:210px}.header-inner{gap:17px}.primary-nav{gap:14px}.header-actions{gap:0}
    .solution-card-top{gap:10px}.solution-card-top>span{max-width:110px;font-size:.5rem}.solution-card h3{font-size:1.25rem}.solution-card{padding:23px 20px}.solution-card strong{font-size:.75rem}
    .solutions-more{grid-template-columns:repeat(2,minmax(0,1fr))}.section-heading h2{font-size:1.8rem}.education-link{align-items:flex-start;flex-direction:column;gap:22px}.footer-grid{gap:25px}
}
@media(max-width:760px){
    .container{width:calc(100% - 40px)}.topline .container{font-size:.5625rem;padding-block:4px}.header-inner{min-height:58px;gap:8px}.brand-image{width:205px}.primary-nav{border-color:#4b4d50;font-size:.8125rem;padding-block:13px 20px}.header-actions{gap:0}.menu-toggle{margin-left:0}.cart-count{width:19px;height:19px}
    .edu-hero-content{padding-block:39px}.edu-hero h1{font-size:1.9rem;line-height:1.3;letter-spacing:-.035em}.edu-hero .eyebrow{font-size:.5rem;letter-spacing:.08em;margin-bottom:16px}.edu-hero-description{font-size:.8125rem;line-height:1.9;margin-bottom:28px}.desktop-only{display:none}
    .section{padding-block:49px}.section-heading{gap:19px;margin-bottom:26px}.section-heading h2{font-size:1.65rem}.section-heading .eyebrow{font-size:.5625rem}.solution-card{padding:27px;min-height:295px}.solution-card h3{font-size:1.65rem;margin-block:23px 15px}.solution-card strong{font-size:.875rem}.solution-card p{font-size:.8125rem;min-height:0}.solution-card-top>span{max-width:none;font-size:.5rem}.solution-card .text-link{font-size:.75rem}
    .solutions-more{gap:10px}.solutions-more a{font-size:.6875rem;padding:13px;min-height:64px}.services-section{grid-template-columns:1fr;gap:24px}.services-intro h2{font-size:1.9rem}.services-intro p:not(.eyebrow){font-size:.875rem}.service-list h3{font-size:1.125rem}.service-list>a{padding-block:23px}.education-link{padding:24px;margin-bottom:48px}.education-link>div{align-items:flex-start;gap:14px}.education-link h2{font-size:1.1rem}.education-link p{font-size:.75rem}.education-link>div>svg{width:27px;height:27px}.education-link .button{width:100%;font-size:.75rem;padding-inline:12px}
    .footer-grid{grid-template-columns:1fr 1fr;gap:27px 20px}.footer-brand .brand-image{width:265px}.footer-grid h2{font-size:.75rem}.footer-grid>div>a:not(.brand){font-size:.6875rem}.footer-bottom{font-size:.5625rem;gap:10px}.catalog-heading h1,.page-main h1{font-size:1.9rem}.catalog-heading>p:last-child{font-size:.8125rem}.catalog-search input{min-width:0}.woocommerce div.product .product_title{font-size:1.8rem}.woocommerce-checkout h3{font-size:1.4rem}
}
@media(max-width:360px){.brand-image{width:175px}.edu-hero h1{font-size:1.65rem}.solutions-more{grid-template-columns:1fr}}

/* The full product content now lives directly below its title. */
.zifra-product-overview .single-product-description {
    max-width: 100%;
    margin: 24px 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.zifra-product-overview .single-product-description > :first-child { margin-top: 0; }
.zifra-product-overview .single-product-description > :last-child { margin-bottom: 0; }
.zifra-product-overview .single-product-description p { margin-bottom: 1.1em; }
.zifra-product-overview .single-product-description ul,
.zifra-product-overview .single-product-description ol { padding-left: 1.4em; }
.zifra-product-overview .single-product-description li { margin-bottom: .5em; }
.zifra-product-overview .single-product-description img:not(.emoji) { max-width: 100%; height: auto; }
.zifra-product-overview .single-product-description iframe,
.zifra-product-overview .single-product-description video { max-width: 100%; }

/* Applied coupons share the discount colour in cart and checkout totals. */
.woocommerce .cart_totals table.shop_table tr.cart-discount > th,
.woocommerce .cart_totals table.shop_table tr.cart-discount > td,
.woocommerce table.woocommerce-checkout-review-order-table tr.cart-discount > th,
.woocommerce table.woocommerce-checkout-review-order-table tr.cart-discount > td {
    vertical-align: middle;
}
@media (max-width: 768px) {
    .woocommerce .cart_totals table.shop_table_responsive tr.cart-discount > td::before { line-height: 44px; }
}
.woocommerce tr.cart-discount th,
.woocommerce tr.cart-discount td,
.woocommerce tr.cart-discount .woocommerce-Price-amount { color: #ce3047; }
.woocommerce a.woocommerce-remove-coupon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 4px;
    border-radius: 8px;
    vertical-align: middle;
    background: transparent;
    color: #ce3047;
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
}
.woocommerce a.woocommerce-remove-coupon:hover { color: #ae1730; background: #fff0f2; }
.woocommerce a.woocommerce-remove-coupon:focus-visible { outline: 2px solid #ce3047; outline-offset: 2px; }

/* A light search field in the dark header, matching edu-plus.ru. */
.site-header .header-inner { gap: 22px; }
.site-header .brand-image { width: 220px; }
.site-header .primary-nav { margin-left: 0; gap: 18px; white-space: nowrap; }
.header-search {
    display: flex;
    flex: 1 1 250px;
    min-width: 170px;
    max-width: 320px;
    margin: 0 0 0 auto;
    border: 1px solid #98aba4;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}
.header-search input {
    width: 100%;
    min-width: 0;
    height: 40px;
    border: 0;
    border-radius: 0;
    padding: 9px 12px;
    background: #fff;
    color: #2a2a32;
    font-size: .8125rem;
    line-height: 1.4;
}
.header-search input::placeholder { color: #6d7875; opacity: 1; }
.header-search button {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: #667e74;
    color: #fff;
}
.header-search button:hover { background: #326d4c; }
.header-search button svg { width: 21px; height: 21px; }
.header-search:focus-within { outline: 2px solid #8be0a9; outline-offset: 3px; }
.header-search input:focus-visible,.header-search button:focus-visible { outline: 2px solid #347b50; outline-offset: -3px; }
@media (max-width: 1050px) {
    .site-header .header-inner { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 8px; }
    .site-header .header-actions { margin-left: 0; order: 2; }
    .site-header .menu-toggle { display: inline-flex; order: 3; margin-left: 0; }
    .site-header .primary-nav { display: none; order: 5; width: 100%; border-top: 1px solid #4b4d50; padding-block: 10px; }
    .site-header .primary-nav.open { display: flex; flex-wrap: wrap; }
    .header-search { max-width: none; }
}
@media (max-width: 760px) {
    .site-header .header-inner { gap: 8px; padding-bottom: 10px; }
    .site-header .brand-image { width: 205px; }
    .site-header .header-actions { margin-left: auto; }
    .header-search { order: 4; flex-basis: 100%; margin: 0; }
    .header-search input { height: 42px; font-size: 1rem; }
}
@media (max-width: 360px) {
    .site-header .brand-image { width: 170px; }
}
