/*
 * TOPKINETO overrides — loaded after libs.css and main.min.css.
 *
 * main.min.css is the purchased template's compiled bundle (sources are not in
 * the repo), so changes live here instead of being patched into the bundle.
 */

/* ---------------------------------------------------------------------------
 * Typeface: Open Sans 3 variable (Google Fonts, SIL OFL — fonts/opensans-vf/OFL.txt),
 * one file for every weight 300–800, subset to Latin + Latin Extended
 * (all Romanian letters). Replaces 10 static Open Sans 1.10 files (403 KB -> 59 KB).
 * ------------------------------------------------------------------------- */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
             src: url("../fonts/opensans-vf/OpenSans-VF.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap;
             src: url("../fonts/opensans-vf/OpenSans-Italic-VF.woff2") format("woff2"); }

/* ---------------------------------------------------------------------------
 * Type scale: every text size on the site is one of these 8 steps.
 * Body text stays 16px on phones too (smaller is hard to read, and iOS zooms
 * into form fields under 16px); headings grow with the viewport (clamp), from
 * the phone size to the desktop size. Weights: 400 text, 600 UI, 700 headings,
 * 800 display. Headings are sentence case (the theme uppercased them all).
 * ------------------------------------------------------------------------- */
:root {
    --fs-xs: 13px;                                   /* counters, badges, fine print */
    --fs-sm: 14px;                                   /* meta, navigation, top bar, captions */
    --fs-base: 16px;                                 /* body text */
    --fs-lg: 18px;                                   /* lead paragraphs, h4, card titles */
    --fs-h3: clamp(19px, 17.5px + .4vw, 22px);
    --fs-h2: clamp(23px, 19px + 1vw, 30px);
    --fs-h1: clamp(28px, 22px + 1.6vw, 40px);
    --fs-display: clamp(34px, 24px + 2.8vw, 56px);   /* home slider headline */
    --lh-text: 1.65;
    --lh-heading: 1.25;
}

/* ---------------------------------------------------------------------------
 * Layout stability
 * vendor.js sets body margin-top = header height only after it runs, which
 * shifted the whole page down after first paint (CLS 0.40 on the home page).
 * Reserve the same space up front; the script then sets an identical value.
 * ------------------------------------------------------------------------- */
body.sticky_header { margin-top: 49.984px; }
@media (min-width: 992px) {
    body.sticky_header { margin-top: 79.984px; } /* + desktop top bar */
}
@media (max-width: 767px) {
    body.sticky_header { margin-top: 39.734px; }
}

/* Owl Carousel hides .owl-carousel until its JS has run, so the home hero was
 * 0px tall at first paint and then grew to 330/545px, pushing the page down
 * (CLS). Show the first slide until the carousel initializes. */
.owl-carousel:not(.owl-loaded) { display: block; }
.owl-carousel:not(.owl-loaded) > *:not(:first-child) { display: none; }

/* Contact page: click-to-load Google Maps placeholder (see contact.php). */
.map .map-placeholder {
    height: 100%; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; text-align: center; background: #e9edf2; color: #304770;
}
.map .map-placeholder p { margin: 0; font-size: var(--fs-base); font-weight: 600; }
.map .map-placeholder .map-directions { font-size: var(--fs-xs); color: #304770; text-decoration: underline; }
.map .map-placeholder.loading .btn { opacity: .6; }

/* ---------------------------------------------------------------------------
 * Contrast (WCAG AA 4.5:1). The template put white text on the light brand
 * blue #82c5ff: 1.85:1 — buttons ("Află mai multe", "Trimite", "Programează-te")
 * and light-blue panels (.skincolored_section: price-plan titles, team cards).
 * The light blue stays; text on it becomes dark navy (7.2:1).
 * ------------------------------------------------------------------------- */
:root { --tk-navy: #304770; --tk-ink: #1f2f4f; --tk-blue: #1c96ff; --tk-light: #82c5ff; }

.btn-primary,
.btn-primary:focus { color: var(--tk-ink) !important; }
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active { background-color: var(--tk-navy) !important; border-color: var(--tk-navy) !important; color: #fff !important; }
.btn-primary:focus-visible, .btn-secondary:focus-visible { outline: 3px solid var(--tk-blue); outline-offset: 2px; }
.btn-sm { font-size: var(--fs-xs); letter-spacing: .02em; }

.skincolored_section,
.skincolored_section h1, .skincolored_section h2, .skincolored_section h3,
.skincolored_section h4, .skincolored_section h5, .skincolored_section h6,
.skincolored_section p, .skincolored_section li, .skincolored_section span,
.skincolored_section a:not(.btn) { color: var(--tk-ink) !important; }

/* Links inside form checkbox labels inherit the label colour (dark on the grey
 * Contact panel, white on the navy appointment panel) and stay underlined. */
.checkboxList a { color: inherit !important; text-decoration: underline; }
/* GDPR consent (the checkbox whose label links to the privacy policy): fine print. */
.checkboxList .checkbox label:has(a), .checkboxList .checkbox label:has(a) span { font-size: 12px; line-height: 1.45; font-weight: 400; }
/* Message field: can grow taller, never wider than the form. */
.your-question textarea { resize: vertical; max-width: 100%; }
.tk-form-programari-online .your-question textarea { min-height: 140px; }

/* Cookie banner blue: white text needs a deeper shade than #1c96ff (3.1:1). */
#cc-main { --cc-bg: #1a73c7 !important; --cc-footer-bg: #1666b0 !important; }

/* Price plans: discount badge white on coral #fb706a was 2.9:1; old price grey 3.9:1. */
.pricing_plan .pricing_plan_discount { background-color: #c93c35 !important; }
.pricing_plan .old_price { color: #666 !important; }

/* ---------------------------------------------------------------------------
 * Compact page headers (inner pages). The photo strip took 300px on desktop;
 * on phones a second, mobile-only copy of the same photo was stacked above it
 * (up to 570px before any content on /echipa).
 * ------------------------------------------------------------------------- */
@media (min-width: 768px) {
    /* The title/description overlay sits at the bottom of the strip. With a long
     * title and description it covered the whole photo and ran into the social
     * icons, so the strip grows with its text and always shows ~130px of photo. */
    .head_panel > .full_width_photo.parallax-window { height: auto !important; min-height: 220px !important;
        display: flex; flex-direction: column; justify-content: flex-end; padding-top: 130px; }
    .head_panel .only-on-desktop .hgroup { position: relative; bottom: auto; }
}
@media (max-width: 767px) {
    .head_panel > .visible-xs-block.full_width_photo { display: none !important; }
}

/* ---------------------------------------------------------------------------
 * Price plans: category tabs and "Ce include" disclosure (topkineto_plans).
 * ------------------------------------------------------------------------- */
.plan-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 28px; padding: 0 15px; }
.plan-tab {
    border: 2px solid var(--tk-navy); background: #fff; color: var(--tk-navy); padding: 9px 16px; border-radius: 2px;
    font-weight: 700; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .02em; cursor: pointer; white-space: nowrap;
}
.plan-tab:hover { background: #eaf3ff; }
.plan-tab.active { background: var(--tk-navy); color: #fff; }
.plan-tab:focus-visible { outline: 3px solid var(--tk-blue); outline-offset: 2px; }
.plan-tab-count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 5px; border-radius: 10px; font-size: var(--fs-xs); line-height: 18px; background: rgba(48,71,112,.12); }
.plan-tab.active .plan-tab-count { background: rgba(255,255,255,.25); }
@media (max-width: 767px) {
    .plan-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
    .plan-tabs::-webkit-scrollbar { display: none; }
}
.plan-panel[hidden] { display: none; }

.plan-includes { margin: 4px 0 14px; text-align: left; }
.plan-includes summary { cursor: pointer; color: var(--tk-navy); font-weight: 700; text-align: center; list-style: none; }
.plan-includes summary::-webkit-details-marker { display: none; }
.plan-includes summary::after { content: " ▾"; }
.plan-includes[open] summary::after { content: " ▴"; }
.plan-includes ul { margin: 10px 0 0; padding-left: 20px; }
.plan-includes li { margin: 2px 0; }
.plan-meta { color: #555; font-size: var(--fs-sm); }

/* Team grid (page_list "staff-style"): two people per row on phones. */
@media (max-width: 767px) {
    .team_members_grid > [class*="col-"] { padding-left: 6px; padding-right: 6px; }
    .team_member.teaser_box { margin-bottom: 12px; }
    .team_member .desc, .team_member .team_social { display: none; }
    .team_member .hgroup h4 { font-size: var(--fs-xs); line-height: 1.3; margin: 8px 0 0; }
    .team_member .hgroup p { font-size: var(--fs-xs); line-height: 1.35; margin-top: 4px !important;
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .team_member .content { padding: 8px 8px 12px; }
    .team_member .link .btn { font-size: var(--fs-xs); padding: 6px 8px; white-space: normal; }
}

/* Therapist profile (cvpage): booking CTA and collapsible CV sections. */
.cv-actions { margin: 18px 0 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.cv-actions .btn { margin: 0; }
.cv-section { border-top: 1px solid rgba(255,255,255,.2); padding: 4px 0; max-width: 900px; }
.cv-section:last-of-type { border-bottom: 1px solid rgba(255,255,255,.2); }
.cv-section > summary {
    cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative;
    font-size: var(--fs-lg); font-weight: 700; color: #92cddc; letter-spacing: .02em;
}
.cv-section > summary::-webkit-details-marker { display: none; }
.cv-section > summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; font-weight: 400; color: #fff; }
.cv-section[open] > summary::after { content: "–"; }
.cv-section > summary:focus-visible { outline: 2px solid #92cddc; outline-offset: 2px; }
.cv-section > *:not(summary) { line-height: 1.6; }
.cv-section ul { padding-left: 20px; }

/* Content block template "Carduri afecțiuni" (conditions list as cards). */
.tk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; margin: 24px 0 32px; }
.tk-card { background: #fff; border-top: 4px solid var(--tk-light); padding: 18px 18px 16px; display: flex; flex-direction: column;
           box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: box-shadow .2s, transform .2s; }
.tk-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-2px); }
.tk-card-title { font-weight: 700 !important; font-size: var(--fs-lg) !important; line-height: 1.3 !important; margin: 0 0 10px !important; text-transform: none !important; }
.tk-card-title a { color: var(--tk-navy) !important; text-decoration: none; }
.tk-card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.tk-card { position: relative; }
.tk-card-body { color: #444; font-size: var(--fs-sm); line-height: 1.55;
                display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tk-card-body p { margin: 0 0 6px; font-size: inherit; line-height: inherit; }
.tk-card-more { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--tk-navy); font-size: var(--fs-sm); }
@media (max-width: 767px) { .tk-card-body { -webkit-line-clamp: 3; } .tk-cards { gap: 12px; } }

/* Content block template "Portofoliu". */
.tk-portfolio { margin: 10px 0 30px; }
.tk-stats { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tk-stats li { background: var(--tk-navy); color: #fff; padding: 16px 14px; text-align: center; font-size: var(--fs-xs); line-height: 1.35; }
.tk-stats strong { display: block; font-size: var(--fs-h1); line-height: 1.1; font-weight: 800; color: var(--tk-light); margin-bottom: 6px; }
.tk-stats span { display: block; } /* label: styled on the li, so it works with or without the span */
.tk-portfolio-h { font-size: var(--fs-h2) !important; margin: 0 0 14px !important; }
.tk-highlights { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 34px; }
.tk-highlight { background: #fff; border-left: 4px solid var(--tk-light); padding: 16px 18px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tk-highlight h3 { font-size: var(--fs-lg) !important; margin: 0 0 6px !important; text-transform: none !important; color: var(--tk-navy); font-weight: 700 !important; }
.tk-highlight p { font-size: var(--fs-sm); line-height: 1.5; margin: 0 0 8px; color: #444; }
.tk-highlight a, .tk-entries a { font-weight: 700; color: var(--tk-navy); white-space: nowrap; }
.tk-psection { background: #fff; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.tk-psection > summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative; font-weight: 700; font-size: var(--fs-lg); color: var(--tk-navy); }
.tk-psection > summary::-webkit-details-marker { display: none; }
.tk-psection > summary::after { content: "+"; position: absolute; right: 18px; top: 11px; font-size: 26px; font-weight: 400; }
.tk-psection[open] > summary::after { content: "–"; }
.tk-count { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 10px; font-size: var(--fs-xs); line-height: 20px; background: #eaf3ff; }
.tk-entries { list-style: none; margin: 0; padding: 0 18px 12px; }
.tk-entries li { padding: 10px 0; border-top: 1px solid #eee; font-size: var(--fs-sm); line-height: 1.55; }
.tk-entries li strong { color: #222; }
.tk-chips { list-style: none; margin: 0; padding: 0 18px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tk-chips li { background: #f5f7fa; padding: 10px 12px; font-size: var(--fs-xs); line-height: 1.4; }
.tk-chips li strong { display: block; font-size: var(--fs-sm); color: var(--tk-navy); }
.tk-chips li span { color: #555; }

/* Home: "De ce TOPKINETO?" (Content block with the tk-stats tiles). */
.tk-trust { padding: 12px 0 12px; }
.tk-trust-title { text-align: center; margin: 0 0 22px !important; }
.tk-trust .tk-stats { margin-bottom: 10px; }
.tk-stats a { display: block; color: inherit; text-decoration: none; height: 100%; }
.tk-stats li:has(a):hover { background: #22355a; }

/* Desktop top bar in the fixed header (elements/header.php). */
.tk-topbar { display: none; }
@media (min-width: 992px) {
    .tk-topbar { display: block; background: #1f2f4f; color: #dfe7f3; font-size: var(--fs-xs); line-height: 20px; padding: 6px 0; }
    .tk-topbar p { display: flex; gap: 22px; align-items: center; margin: 0; font-size: inherit; line-height: inherit; }
    .tk-topbar p:empty { display: none; }
    .tk-topbar i { color: var(--tk-light); margin-right: 4px; }
    .tk-topbar-right { margin-left: auto; display: flex; gap: 20px; }
    .tk-topbar a { color: #fff !important; font-weight: 600; text-decoration: none; }
    .tk-topbar a:hover { color: var(--tk-light) !important; }
}
/* Portfolio: client logos (file set "Logo clienti"). */
.tk-logos { list-style: none; padding: 0; margin: 0 0 34px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tk-logos li { background: #fff; display: flex; align-items: center; justify-content: center; height: 90px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.tk-logos img { max-width: 100%; max-height: 60px; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.tk-logos li:hover img { filter: none; opacity: 1; }
.tk-chips li.has-logo img { display: block; max-height: 36px; max-width: 120px; object-fit: contain; margin-bottom: 8px; }

/* Light-blue panels *with a photo* (.skincolored_section.transparent-film, e.g.
 * the "Program" hours box): a 50% light-blue film left text hard to read in any
 * colour. A deeper blue film (58%) with white text instead. */
.skincolored_section.transparent-film:before { background-color: rgb(35 80 120 / 58%) !important; }
.skincolored_section.transparent-film,
.skincolored_section.transparent-film h1, .skincolored_section.transparent-film h2, .skincolored_section.transparent-film h3,
.skincolored_section.transparent-film h4, .skincolored_section.transparent-film h5, .skincolored_section.transparent-film h6,
.skincolored_section.transparent-film p, .skincolored_section.transparent-film li, .skincolored_section.transparent-film span,
.skincolored_section.transparent-film td, .skincolored_section.transparent-film th,
.skincolored_section.transparent-film a:not(.btn) { color: #fff !important; }

/* Buttons with an icon box (.with-icon): the icon sits on its own navy square,
 * so it stays white even though the button text is navy. */
.btn.with-icon i, .btn.with-icon .fa, .btn.with-icon [class*="fa-"] { color: #fff !important; }

/* Logged in: Concrete's toolbar (#ccm-toolbar, fixed, 48px) covered the fixed
 * site header. Move the header below it and add the same space to the page
 * offset (vendor.js sets body margin inline, hence !important). */
body:has(#ccm-toolbar) .header { top: 48px; }
body.sticky_header:has(#ccm-toolbar) { margin-top: calc(49.984px + 48px) !important; }
@media (min-width: 992px) { body.sticky_header:has(#ccm-toolbar) { margin-top: calc(79.984px + 48px) !important; } }
@media (max-width: 767px) { body.sticky_header:has(#ccm-toolbar) { margin-top: calc(39.734px + 48px) !important; } }

/* Top bar icons via CSS, so editing the text in the Content block can't lose them. */
.tk-topbar .tb-hours::before, .tk-topbar .tb-address::before, .tk-topbar .tb-phone::before, .tk-topbar .tb-email::before {
    font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--tk-light); margin-right: 6px; display: inline-block;
}
.tk-topbar .tb-hours::before { content: "\f017"; font-weight: 400; }
.tk-topbar .tb-address::before { content: "\f124"; }
.tk-topbar .tb-phone::before { content: "\f095"; }
.tk-topbar .tb-email::before { content: "\f0e0"; font-weight: 400; }

/* CV: "Referințe" section in smaller type. */
.cv-section-small > *:not(summary) { font-size: var(--fs-xs); line-height: 1.5; opacity: .9; }
.cv-section-small li { margin-bottom: 4px; }

/* Portfolio (Express list template): photos on highlight cards, avatars in lists. */
.tk-highlight.has-photo { padding: 0; display: flex; flex-direction: column; border-left: 0; border-top: 4px solid var(--tk-light); }
.tk-highlight-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.tk-highlight.has-photo .tk-highlight-body { padding: 14px 18px 16px; }
.tk-entries li.has-avatar { display: flex; gap: 12px; align-items: flex-start; }
.tk-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 48px; }

.tk-photo-placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--tk-navy), #1f2f4f);
    color: var(--tk-light); font-size: 44px; font-weight: 800; letter-spacing: .04em; }

/* ---------------------------------------------------------------------------
 * Page template "Afecțiune" (condition pages).
 * ------------------------------------------------------------------------- */
.tk-condition-body { font-size: var(--fs-base); line-height: 1.7; }
.tk-condition-body p { margin: 0 0 14px; }
/* One heading style on every condition page, whether the heading is a link
 * (to a detail page) or not: navy, light-blue accent bar; linked ones only add
 * an arrow. Sizes: h2 = the h3 step (pages list 10–20 items), h3 = lg. */
.tk-condition-h2, .tk-condition-body h2 { font-size: var(--fs-h3) !important; font-weight: 700 !important; line-height: 1.3 !important;
                   margin: 32px 0 10px !important; text-transform: none !important; letter-spacing: 0 !important;
                   color: var(--tk-navy) !important; padding-left: 12px; border-left: 4px solid var(--tk-light); }
.tk-condition-body h3:not(.tk-card-title) { font-size: var(--fs-lg) !important; font-weight: 700 !important; line-height: 1.35 !important;
                   margin: 22px 0 6px !important; text-transform: none !important; color: var(--tk-navy) !important; }
.tk-condition-body h2:first-child { margin-top: 0 !important; }
.tk-condition-body h2 a, .tk-condition-body h3 a { color: inherit !important; text-decoration: none; }
.tk-condition-body h2 a::after, .tk-condition-body h3:not(.tk-card-title) a::after { content: " \2192"; color: var(--tk-blue); font-weight: 400; }
.tk-condition-body h2 a:hover, .tk-condition-body h3:not(.tk-card-title) a:hover { color: var(--tk-blue) !important; text-decoration: underline; text-underline-offset: 3px; }
.tk-cards-compact { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tk-cards-compact .tk-card-title { font-size: var(--fs-base) !important; }
.tk-condition-aside { margin-top: 6px; }
@media (min-width: 992px) { .tk-condition-aside { position: sticky; top: 100px; } }
.tk-book { background: var(--tk-navy); color: #fff; padding: 22px 22px 18px; margin-bottom: 18px; }
.tk-book h2 { color: #fff !important; font-size: var(--fs-h3) !important; margin: 0 0 8px !important; text-transform: none !important; }
.tk-book p { color: #dfe7f3; font-size: var(--fs-sm); line-height: 1.5; margin: 0 0 14px; }
.tk-book .btn { display: block; width: 100%; margin-bottom: 10px; }
.tk-book-phone { display: block; text-align: center; color: #fff !important; font-size: var(--fs-sm); }
.tk-book-phone strong { color: var(--tk-light); }
.tk-siblings { background: #fff; padding: 16px 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 18px; }
.tk-siblings h2 { font-size: var(--fs-sm) !important; margin: 0 0 8px !important; text-transform: uppercase; color: #666; letter-spacing: .03em; }
.tk-siblings ul { list-style: none; margin: 0; padding: 0; }
.tk-siblings li a { display: block; padding: 7px 0; border-top: 1px solid #eee; color: var(--tk-navy); font-size: var(--fs-sm); text-decoration: none; }
.tk-siblings li:first-child a { border-top: 0; }
.tk-siblings li.active a { font-weight: 700; color: #222; }
.tk-siblings li a:hover { color: var(--tk-blue); }
@media (max-width: 400px) { .tk-cards, .tk-cards-compact { grid-template-columns: 1fr; } } /* 360px min would overflow small phones */
.plan-group-title { text-align: center; font-size: var(--fs-h3) !important; margin: 26px 0 16px !important; color: var(--tk-navy); text-transform: none !important; }
.plan-group-title[hidden] { display: none; }

/* Images keep their proportions. The template had max-width:100% but not
 * height:auto, so an image with a height attribute (e.g. Image block
 * width="1600" height="1103") was squeezed horizontally and kept its full
 * height. The attributes stay: browsers use them to reserve space. */
img { height: auto; }

/* ---------------------------------------------------------------------------
 * Type scale applied to the theme (main.min.css had 44 different sizes,
 * repeated per breakpoint and per "section_header" style).
 * ------------------------------------------------------------------------- */
body, p, li, td, th, dd, dt, blockquote, .entry .entry_text, .testimonial p, label, .form-control, .btn {
    font-size: var(--fs-base);
}
body, p, li, dd, .entry .entry_text { line-height: var(--lh-text); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { line-height: var(--lh-heading); text-transform: none; font-weight: 700; }
h1, .h1, article.post h1.post_title, .head_panel .hgroup.fancy .title h1 { font-size: var(--fs-h1); }
h2, .h2, .h1-like-h2, .section_header h2, .section_header.fancy h2, .section_header.thin h2, .section_header.elegant h2 { font-size: var(--fs-h2); }
h3, .h3, article.post h2.post_title, .section_header h3, .section_header.fancy h3, .section_header.thin h3, .section_header.elegant h3 { font-size: var(--fs-h3); }
h4, .h4, .section_header h4, .section_header.fancy h4, .section_header.thin h4, .section_header.elegant h4, .department h4 { font-size: var(--fs-lg); }
h5, .h5, .section_header h5, .section_header.elegant h5 { font-size: var(--fs-base); }
h6, .h6, .section_header h6, .section_header.fancy h6, .section_header.thin h6, .section_header.elegant h6 {
    font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .04em;
}
/* the short section titles on the home page keep their uppercase label style */
.section_header h2, .section_header h3, .col_header { text-transform: uppercase; letter-spacing: .02em; }
.lead, .post_subtitle, .head_panel .hgroup .subtitle p, .head_panel .hgroup.fancy .subtitle p,
.section_header p, .section_header.fancy p, .section_header.thin p, .caption .inner p.desc { font-size: var(--fs-lg); font-weight: 400; line-height: 1.55; }
.btn-lg, .btn.btn-big { font-size: var(--fs-lg); }
h1 small, h2 small, h3 small, h4 small, .btn-sm, .btn-xs, small, .small, .pricing_plan .old_price, .section_header.elegant p { font-size: var(--fs-sm); }
.pricing_plan .the_price { font-size: var(--fs-h3); }
/* navigation and top bar */
.menu_container ul.main_menu li a, .top_menu_container ul.main_menu li a { font-size: var(--fs-sm); }
.menu_container ul.main_menu li ul.menu-dropdown li a, .top_menu_container ul.main_menu li ul.menu-dropdown li a { font-size: var(--fs-sm); }
/* home slider (Owl captions) */
.caption .inner .t1, .caption.caption-flat .inner .t1, .caption.caption-fancy .inner .t1 { font-size: var(--fs-display); font-weight: 800; line-height: 1.1; }
.caption .inner .t2, .caption.caption-fancy .inner .t2, .caption.caption-elegant .inner .t2 { font-size: var(--fs-h2); }
.caption .inner .t3, .caption.caption-fancy .inner .t3, .caption.caption-elegant .inner .t3 { font-size: var(--fs-h3); }
/* 900 is not in Open Sans (max 800); say what renders */
[style*="font-weight: 900"], strong, b { font-weight: 700; }
/* content headings (Content blocks): room above, close to their text */
/* not inside the theme's tiles and coloured panels (home entries of any colour, boxes, teasers, price plans) */
.main h2:not(:first-child):not(:is(.entry, .secondary_section, .skincolored_section, .boxed, .teaser_box, .pricing_plan) *),
.main h3:not(:first-child):not(:is(.entry, .secondary_section, .skincolored_section, .boxed, .teaser_box, .pricing_plan) *) { margin-top: 1.4em; }
.main h2, .main h3, .main h4 { margin-bottom: .5em; }

/* Teaser boxes (home "services" tiles etc.): card titles, not section headings */
.teaser_box h2, .teaser_box .hgroup h2 { font-size: clamp(19px, 18px + .15vw, 20px); line-height: 1.3; }

/* Home: Contact | Programări online | Program. The theme's same-height script
 * gives Contact and Program the same height (the form in the middle may be
 * taller); the photo box inside Program fills its column. */
@media (min-width: 992px) {
    .same_height_col.no-padding { display: flex; flex-direction: column; }
    .same_height_col.no-padding > .boxed { flex: 1; }
}
}

/* 404 page (theme page_not_found.php) */
.tk-404 { padding: 36px 0 48px; }
.tk-404 .ccm-search-block-form { margin: 18px 0 22px; max-width: 760px; }
.tk-404 .tk-card-title { font-size: var(--fs-lg) !important; }

/* Home: the 8 service teasers (Programul TOP 10, +START RAPID…). Floated
 * columns of unequal height snagged on each other (a shorter card left a gap
 * and pushed the next one to its own row); as a flex row every card in a row
 * gets the height of the tallest. */
@media (min-width: 768px) {
    .row:has(> [class*="col-"] > .teaser_box.same_height_col) { display: flex; flex-wrap: wrap; }
    .row:has(> [class*="col-"] > .teaser_box.same_height_col)::before,
    .row:has(> [class*="col-"] > .teaser_box.same_height_col)::after { display: none; }
    .row:has(> [class*="col-"] > .teaser_box.same_height_col) > [class*="col-"]:has(> .teaser_box) { display: flex; }
    .row:has(> [class*="col-"] > .teaser_box.same_height_col) > [class*="col-"] > .teaser_box { flex: 1; height: auto !important; min-height: 0 !important; }
}

/* Price plans: group titles are <h2>, plan names <h3> (was the other way round). */
.pricing_plan .plan_title h3 { font-size: clamp(18px, 17px + .2vw, 20px); line-height: 1.3; margin: 0 !important; padding: 0; font-weight: 700; position: relative; }
.plan-group-title { font-weight: 700; }

/* ---------------------------------------------------------------------------
 * Team cards (page_list "staff-style") and page template "Echipa".
 * ------------------------------------------------------------------------- */
.main .tk-team-section { padding: 10px 0 20px; } /* .main: beats the theme's ".main section { padding: 55px 0 }" */
.tk-team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.tk-member { position: relative; background: #fff; border-top: 4px solid var(--tk-light); box-shadow: 0 1px 3px rgba(0,0,0,.08);
             display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.tk-member:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-2px); }
.tk-member-photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.tk-member-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.tk-member-name { font-size: var(--fs-lg) !important; line-height: 1.3 !important; margin: 0 0 6px !important; text-transform: none !important; }
.tk-member-name a { color: var(--tk-navy); text-decoration: none; }
.tk-member-name a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.tk-member-desc { font-size: var(--fs-sm); line-height: 1.55; color: #444; margin: 0 0 10px;
                  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tk-member-more { margin-top: auto; font-weight: 700; font-size: var(--fs-sm); color: var(--tk-navy); }
.tk-member-mail { position: absolute; right: 14px; bottom: 14px; z-index: 1; color: var(--tk-navy); }
@media (max-width: 767px) {
    .tk-team { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tk-member-body { padding: 10px 10px 12px; }
    .tk-member-name { font-size: var(--fs-base) !important; }
    .tk-member-desc { display: none; }
}

.tk-kicker { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tk-blue); margin: 0 0 6px !important; }
.main .tk-about-intro { padding: 40px 0 18px; }
.tk-about-intro h2 { margin: 0 0 12px !important; }
.tk-about-intro-text { max-width: 820px; }
.tk-about p, .tk-about p[style] { text-align: left !important; }
.tk-about p span[style*="color"] { color: inherit !important; }
.main .tk-story { padding: 12px 0 8px; }
.tk-story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; }
.tk-story-card { background: #fff; padding: 24px 26px 18px; border-left: 4px solid var(--tk-light); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.tk-story-card h2 { font-size: var(--fs-h3) !important; margin: 0 0 12px !important; color: var(--tk-navy); }
.tk-story-card p { font-size: var(--fs-base); }
.tk-story-sub { font-weight: 700; color: var(--tk-navy); }
@media (max-width: 520px) { .tk-story-grid { grid-template-columns: 1fr; } .tk-story-card { padding: 18px 16px 12px; } }
.main .tk-about-cta { padding: 28px 0 48px; }
.tk-book-wide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 26px 30px; margin: 0; }
.tk-book-wide p { margin: 0 !important; }
.tk-book-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 240px; }
.tk-book-actions .btn { margin: 0; }
