/*
Theme Name:   inTOOLS Child
Theme URI:    https://intools.pl
Description:  Child theme of Hello Elementor for intools.pl (visual identity carried over from the legacy Drupal 7 site, modernised and responsive).
Author:       Paweł Witkowski / inTOOLS
Template:     hello-elementor
Version:      0.6.5
Text Domain:  intools-child
License:      GNU General Public License v2 or later
*/

:root {
  /* Palette extracted from the legacy Drupal 7 theme (see audit/visual-identity.md) */
  --intools-black:       #000000;
  --intools-white:       #ffffff;
  --intools-text:        #333333;   /* legacy #444, darkened slightly for contrast */
  --intools-accent:      #0096d7;
  --intools-accent-dark: #0072b9;
  --intools-border:      #cccccc;
  --intools-border-soft: #eeeeee;
  --intools-muted:       #777777;
  --intools-bg-soft:     #f5f7f9;

  --intools-font-body:    Arial, Helvetica, sans-serif;
  --intools-font-heading: Arial, Helvetica, sans-serif;
  --intools-font-light:   "Helvetica Neue", Arial, Helvetica, sans-serif;
  --intools-container:    1200px;
  --intools-gutter:       20px;

  --e-global-color-primary:   var(--intools-black);
  --e-global-color-secondary: var(--intools-text);
  --e-global-color-text:      var(--intools-text);
  --e-global-color-accent:    var(--intools-accent);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--intools-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--intools-text);
  background: var(--intools-white);
}
h1, h2, h3, h4, h5, h6 { font-family: var(--intools-font-heading); color: #000; line-height: 1.25; }
a { color: var(--intools-accent); text-decoration: none; }
a:hover, a:focus { color: var(--intools-accent-dark); text-decoration: underline; }
.site-main, .page-content { max-width: none !important; width: 100%; margin: 0; padding: 0; }
/* Missing data placeholders: invisible for visitors, a quiet hint for logged-in editors only */
.it-ph, .it-ph-li { display: none; }
.logged-in .it-ph { display: inline; color: #8a6d00; font-size: .78em; border-bottom: 1px dotted #b59a2c; opacity: .8; }
.logged-in .it-ph-li { display: list-item; opacity: .85; }
.it-form-local-note { padding: 14px; border: 1px dashed #999; color: #666; }

/* ============ Top bar ============ */
.it-topbar { background: var(--intools-black); color: var(--intools-white); font-size: .85rem; }
.it-topbar__inner { max-width: var(--intools-container); margin: 0 auto; padding: 0 var(--intools-gutter); min-height: 29px; display: flex; justify-content: space-between; align-items: center; }
.it-topbar a { color: var(--intools-white); }
.it-topbar a:hover { color: var(--intools-accent); text-decoration: none; }
.it-lang { list-style: none; display: flex; gap: .9rem; margin: 0; padding: 0; }
.it-lang a { color: #9a9a9a; padding: 4px 2px; display: inline-block; }
.it-lang .is-current a { color: #fff; font-weight: 700; }
.it-topbar__links { display: flex; gap: 1.2rem; }

/* ============ Banner: animated line + balls ============ */
/* --k = scale of the whole line (set before first paint in wp_head and by banner.js). Positions are in stage units (2600 x 785), so everything scales proportionally. */
:root { --bh: calc(785px * var(--k, .8)); --ball: 12px; }
.it-banner { position: relative; height: calc(785px * var(--k, .8)); background: #fff; overflow: hidden; }
.it-logo { position: absolute; left: max(20px, calc(50% - 570px)); top: 48px; z-index: 3; line-height: 0; }
.it-logo img { width: 280px; height: auto; display: block; }
.it-stage { position: absolute; left: 50%; top: 0; width: calc(2600px * var(--k, .8)); height: 100%; transform: translateX(-50%); }
.it-line-wrap { position: absolute; inset: 0; }
.it-line { position: absolute; left: 0; top: 0; width: 2600px; height: 785px; display: block; overflow: visible; transform: scale(var(--k, .8)); transform-origin: 0 0; }
.it-line__path { vector-effect: non-scaling-stroke; }
.it-dots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.it-dot, .it-ask { pointer-events: auto; }
.it-dot, .it-ask { position: absolute; left: calc(var(--x) * var(--k, .8)); top: calc(var(--y) * var(--k, .8)); display: flex; align-items: center; gap: 10px; font-family: var(--intools-font-light); font-weight: 300; font-size: .95rem; color: #111; white-space: nowrap; z-index: 2; }
.it-dot { transform: translate(calc(var(--ball) / -2), -50%); }
.it-dot--l { flex-direction: row-reverse; transform: translate(calc(-100% + var(--ball) / 2), -50%); }
.it-ball { flex: 0 0 var(--ball); width: var(--ball); height: var(--ball); border-radius: 50%; background: var(--intools-accent); box-shadow: 0 0 0 0 rgba(0,150,215,.0); transition: box-shadow .25s, scale .25s; will-change: transform; position: relative; z-index: 2; }
.it-dot__label { background: rgba(255,255,255,.85); padding: 1px 4px; border-radius: 2px; transition: opacity .45s ease, translate .45s ease, color .2s; }
.it-dot:hover, .it-dot:focus-visible { color: var(--intools-accent-dark); text-decoration: none; z-index: 4; }
.it-dot:hover .it-ball, .it-dot:focus-visible .it-ball, .it-dot.is-active .it-ball { box-shadow: 0 0 0 6px rgba(0,150,215,.25); scale: 1.2; }
.it-dot.is-star { font-weight: 700; color: var(--intools-accent-dark); }
.it-dot.is-star .it-ball { flex-basis: calc(var(--ball) + 4px); width: calc(var(--ball) + 4px); height: calc(var(--ball) + 4px); margin: -2px; box-shadow: 0 0 0 5px rgba(0,150,215,.28); }
.it-ask { transform: translate(calc(-100% + 27px), -50%); font-size: 1.05rem; transition: opacity .5s ease; }
.it-ask img { width: 54px; height: 55px; display: block; }
.it-ask:hover { text-decoration: none; color: var(--intools-accent-dark); }
.it-ask:hover img { content: url("assets/img/qmark-hover.png"); }
.it-hint, .it-bubble { display: none; }

/* before the balls arrive */
.js-anim .it-dot:not(.is-in) { pointer-events: none; }
.js-anim .it-dot:not(.is-in) .it-dot__label { opacity: 0; }
.js-anim .it-dot--r:not(.is-in) .it-dot__label { translate: -8px 0; }
.js-anim .it-dot--l:not(.is-in) .it-dot__label { translate: 8px 0; }
.js-anim .it-ask:not(.is-in) { opacity: 0; pointer-events: none; }

/* ---- tablet + phone (< 1100px): the whole line is scaled to the screen; labels move into a bubble (tap a ball, then the bubble) ---- */
@media (max-width: 1099px) {
  :root { --ball: 14px; }
  .it-banner { height: auto; padding: 14px 0 10px; }
  .it-logo { position: relative; left: auto; top: auto; display: block; width: 200px; margin: 0 auto 4px; }
  .it-logo img { width: 200px; }
  .it-stage { position: relative; left: auto; top: auto; transform: none; width: 100%; height: auto; padding-top: calc(785px * var(--k)); }
  .it-line-wrap, .it-dots { inset: 0 auto auto 50%; width: calc(2600px * var(--k)); height: calc(785px * var(--k)); transform: translateX(-50%); }
  .it-line__path { stroke-width: 1.6; }
  .it-dots { pointer-events: auto; }
  .it-dot { pointer-events: none; }
  .it-dot__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; white-space: nowrap; } /* stays in the DOM for screen readers; the visible label is the bubble */
  .it-dot.is-star { font-weight: 300; }
  .it-dot.is-star .it-ball { box-shadow: 0 0 0 4px rgba(0,150,215,.28); }
  .it-dot.is-active { z-index: 5; }
  .it-hint { display: block; margin: 2px 0 0; text-align: center; font-size: .85rem; color: #666; padding: 0 var(--intools-gutter); }
  .it-ask { position: static; transform: none; justify-content: center; margin: 4px auto 0; width: max-content; min-height: 48px; font-size: 1rem; }
  .it-ask img { width: 44px; height: 45px; }
  .it-bubble { position: absolute; z-index: 6; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: #000; color: #fff; border-radius: 22px; font-family: var(--intools-font-light); font-size: 1rem; line-height: 1.2; white-space: nowrap; max-width: calc(100vw - 16px); text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); pointer-events: auto; }
  .it-bubble { opacity: 0; pointer-events: none; transition: opacity .26s ease, background .2s; }
  .it-bubble.is-on { opacity: 1; pointer-events: auto; }
  .it-bubble::after { content: "→"; color: var(--intools-accent); font-weight: 700; }
  .it-bubble::before { content: ""; position: absolute; left: var(--ax, 50%); bottom: -6px; width: 12px; height: 12px; background: #000; transform: translateX(-50%) rotate(45deg); }
  .it-bubble.is-below::before { bottom: auto; top: -6px; }
  .it-bubble:hover, .it-bubble:focus-visible { background: var(--intools-accent-dark); color: #fff; }
  .it-bubble:hover::before, .it-bubble:focus-visible::before { background: var(--intools-accent-dark); }
  .js-anim .it-dot:not(.is-in) .it-dot__label { translate: 0 0; }
}
@media (max-width: 480px) {
  :root { --ball: 15px; }
  .it-logo, .it-logo img { width: 170px; }
  .it-bubble { font-size: .95rem; }
}

/* ============ Subpage header: static, narrow (logo + horizontal slice of the black line) ============ */
.it-subhead { position: relative; height: 150px; background: #fff; overflow: hidden; }
.it-subline { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.it-subline__path { vector-effect: non-scaling-stroke; }
.it-logo.it-logo--sub { position: absolute; left: max(20px, calc(50% - 570px)); top: 50%; transform: translateY(-50%); width: auto; margin: 0; display: block; }
.it-logo--sub img { width: 190px; }
@media (min-width: 1100px) { .it-subhead { height: 160px; } .it-logo--sub img { width: 210px; } }
@media (max-width: 767px) {
  .it-subhead { height: 96px; }
  .it-logo.it-logo--sub { left: 14px; background: #fff; box-shadow: 0 0 10px 10px #fff; } /* keeps the line from running through the logo */
  .it-logo--sub img { width: 122px; }
}

/* ============ Circle arrow icons: Details (right) / Back (left) ============ */
.it-arrow { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; line-height: 0; text-decoration: none; vertical-align: middle; transition: transform .18s ease; }
.it-arrow__svg { display: block; width: 32px; height: 32px; }
.it-arrow__svg circle { fill: var(--intools-accent); transition: fill .18s ease; }
a:hover > .it-arrow .it-arrow__svg circle, .it-arrow:hover .it-arrow__svg circle, .it-arrow:focus-visible .it-arrow__svg circle, a:focus-visible > .it-arrow .it-arrow__svg circle { fill: var(--intools-accent-dark); }
a:hover > .it-arrow--next, .it-arrow--next:hover, .it-work__link:hover .it-arrow--next { transform: translateX(3px); }
a:hover > .it-arrow--prev, .it-arrow--prev:hover { transform: translateX(-3px); }
.it-arrow:focus-visible { outline: 3px solid var(--intools-accent); outline-offset: 0; }
.elementor-widget-html.it-arrow-wrap .it-arrow { margin-left: -6px; }
@media (prefers-reduced-motion: reduce) { .it-arrow { transition: none; transform: none !important; } }

/* ============ Menu: stacked black bars ============ */
.it-menu-toggle { display: none; }
.it-bars { list-style: none; margin: 0; padding: 0; }
.it-bars li { margin: 0 0 2px; background: var(--intools-black); }
.it-bars li:last-child { margin-bottom: 0; }
.it-bars a {
  display: flex; align-items: center; gap: 14px; min-height: 50px;
  padding: 0 var(--intools-gutter) 0 max(var(--intools-gutter), calc((100% - var(--intools-container)) / 2));
  color: var(--intools-white); text-transform: uppercase; font-size: .95rem; letter-spacing: .02em; text-decoration: none;
}
.it-bars a::before { content: ""; flex: 0 0 32px; height: 32px; background: center / contain no-repeat; }
.it-bars a:hover, .it-bars a:focus-visible,
.it-bars .current-menu-item > a, .it-bars .current-menu-ancestor > a { background: var(--intools-accent); color: #fff; }
.it-bars .it-ico-firma a::before { background-image: url("assets/img/icons/firma.png"); }
.it-bars .it-ico-oferta a::before { background-image: url("assets/img/icons/oferta.png"); }
.it-bars .it-ico-ojs a::before { background-image: url("assets/img/icons/technologie.png"); }
.it-bars .it-ico-portfolio a::before { background-image: url("assets/img/icons/realizacje.png"); }
.it-bars .it-ico-kontakt a::before { background-image: url("assets/img/icons/kontakt.png"); }
.it-footer { margin-top: 0; border-top: 2px solid #fff; }
.it-footer__line { background: #111; color: #bbb; font-size: .85rem; }
.it-footer__line p { max-width: var(--intools-container); margin: 0 auto; padding: 14px var(--intools-gutter); }
.it-footer__line a { color: #fff; }

/* ============ Page title strip ============ */
.it-titlestrip { background: var(--intools-accent); color: #fff; text-align: center; padding: 14px var(--intools-gutter); }
.it-titlestrip h1 { margin: 0; color: #fff; font-size: 1.15rem; font-weight: 400; text-transform: uppercase; letter-spacing: .05em; }

/* ============ Content sections (Elementor containers) ============ */
.it-section { padding-top: 56px; padding-bottom: 56px; padding-left: var(--intools-gutter); padding-right: var(--intools-gutter); }
.it-section > .e-con-inner { max-width: var(--intools-container); }
.it-section:nth-of-type(even):not(.it-highlight):not(.it-contact) { background: var(--intools-bg-soft); }
.it-section .it-h2 .elementor-heading-title { font-size: 1.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 .6em; }
.it-section .it-h2 .elementor-heading-title::after { content: ""; display: block; width: 56px; height: 4px; background: var(--intools-accent); margin-top: .5em; }
.it-section .it-text { font-size: 1.05rem; max-width: 80ch; }
.it-section .it-text p { margin: 0 0 1em; }
.it-section .it-text ul, .it-section .it-text ol { margin: 0 0 1.2em; padding-left: 0; }
.it-section .it-text ol { padding-left: 1.5em; }
.it-section .it-text ul { list-style: none; }
.it-section .it-text ul li { padding: 0 0 .35em 31px; background: url("assets/img/kulka.png") no-repeat 0 -31px; min-height: 26px; }
.it-section .it-text ol li { padding-bottom: .4em; }

.it-hero { padding-top: 64px; padding-bottom: 64px; }
.it-hero .it-h2 .elementor-heading-title { font-size: clamp(1.7rem, 4vw, 2.6rem); text-transform: none; letter-spacing: 0; max-width: 40ch; }
.it-hero .it-text { font-size: 1.2rem; }
.it-hero .it-text p.it-small { font-size: .95rem; line-height: 1.6; color: #555; margin-bottom: .7em; max-width: 72ch; }
.it-highlight, .it-highlight .it-text, .it-highlight h2 { background-color: transparent; }
.it-highlight { background: var(--intools-accent); }
.it-highlight .it-h2 .elementor-heading-title, .it-highlight .it-text, .it-highlight .it-text li { color: #fff; }
.it-highlight .it-h2 .elementor-heading-title::after { background: #fff; }
.it-highlight .it-text ul li { background-image: none; position: relative; }
.it-highlight .it-text ul li::before { content: ""; position: absolute; left: 6px; top: .55em; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.it-highlight .it-text a { color: #fff; text-decoration: underline; }
.it-contact { background: #111; }
.it-contact .it-h2 .elementor-heading-title, .it-contact .it-text, .it-contact .it-text li { color: #fff; }
.it-contact .it-text a { color: #7fd3ff; }

/* cards: responsive grid */
.it-cards { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 24px; width: 100%; margin-top: 12px; }
.it-card { background: #fff; border: 1px solid var(--intools-border-soft); border-top: 4px solid var(--intools-accent); padding: 22px 22px 20px !important; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .2s, transform .2s; align-content: flex-start; }
.it-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.it-card .it-h3 .elementor-heading-title { margin: 0 0 .5em; font-size: 1.05rem; text-transform: uppercase; font-weight: 700; letter-spacing: .02em; }
.it-card .it-text { font-size: .98rem; }
.it-featured-card { grid-column: 1 / -1; }
.it-featured .it-cards { grid-template-columns: 1fr; }
.it-featured .it-card { border-top-color: #000; }

/* buttons */
.it-btns { display: flex !important; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.it-btn .elementor-button, .elementor-button.it-btn { background: var(--intools-accent); color: #fff; border-radius: 24px; padding: 11px 26px; font-family: var(--intools-font-body); font-size: .95rem; font-weight: 700; text-transform: none; transition: background .2s; }
.it-btn .elementor-button:hover { background: var(--intools-accent-dark); color: #fff; text-decoration: none; }
.it-btn.it-btn--2 .elementor-button { background: transparent; color: var(--intools-accent-dark); border: 2px solid var(--intools-accent); padding: 9px 24px; }
.it-btn.it-btn--2 .elementor-button:hover { background: var(--intools-accent); color: #fff; }
.it-highlight .it-btn .elementor-button, .it-contact .it-btn .elementor-button { background: #fff; color: #000; }
.it-highlight .it-btn .elementor-button:hover, .it-contact .it-btn .elementor-button:hover { background: #000; color: #fff; }
.it-card .it-btn .elementor-button { padding: 7px 20px; font-size: .88rem; }

/* ============ Responsive ============ */
@media (max-width: 767px) {
  body { font-size: 1rem; }
  .it-topbar__links a:first-child { display: none; }
  .it-menu-toggle { display: block; width: 100%; background: #000; color: #fff; border: 0; border-top: 2px solid #fff; border-radius: 0; text-align: left; text-transform: uppercase; font-size: .95rem; min-height: 50px; padding: 0 var(--intools-gutter); position: relative; }
  .it-menu-toggle::after { content: "☰"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; }
  .it-menu-toggle[aria-expanded="true"]::after { content: "✕"; }
  .it-nav:not(.is-open) { display: none; }
  .it-bars a { padding-left: var(--intools-gutter); }
  .it-section { padding-top: 36px; padding-bottom: 36px; }
  .it-hero { padding-top: 36px; padding-bottom: 36px; }
  .it-section .it-h2 .elementor-heading-title { font-size: 1.35rem; }
  .it-dot { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) { .it-bubble { transition: none !important; } * { transition: none !important; scroll-behavior: auto !important; } }

/* Elementor heading/text colours must follow our palette, not the default kit */
.it-section .elementor-heading-title { color: #000; font-family: var(--intools-font-heading); }
.it-highlight .elementor-heading-title, .it-contact .elementor-heading-title { color: #fff; }
.it-section .elementor-widget-text-editor, .it-section .elementor-widget-text-editor p { color: inherit; font-family: var(--intools-font-body); }
.it-section .it-text { color: var(--intools-text); }
.it-highlight .it-text, .it-contact .it-text { color: #fff; }
.it-section .elementor-widget-container { color: inherit; }

/* Elementor container defaults (10px padding) neutralised; we control spacing ourselves */
.e-con.it-btns, .e-con.it-cards { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; padding: 0 !important; }
.e-con.it-section { --padding-top: 56px; --padding-bottom: 56px; --padding-left: 20px; --padding-right: 20px; padding: 56px 20px !important; --margin-top: 0px; --margin-bottom: 0px; }
.e-con.it-hero { padding-top: 64px !important; padding-bottom: 64px !important; }
.e-con.it-card { --padding-top: 22px; --padding-right: 22px; --padding-bottom: 20px; --padding-left: 22px; padding: 22px 22px 20px !important; }
.it-section .e-con-inner { padding: 0 !important; }
.it-section .elementor-widget:not(:last-child) { margin-bottom: 0; }
.it-section .elementor-widget-heading .elementor-heading-title { margin: 0 0 .6em; }
.it-card .elementor-widget-heading .elementor-heading-title { margin: 0 0 .5em; }
@media (max-width: 767px) {
  .e-con.it-section { padding: 36px 16px !important; }
  .e-con.it-hero { padding-top: 36px !important; padding-bottom: 36px !important; }
}

/* ============ Accordion on the home page (black bars that expand in place) ============ */

.e-con.it-acc { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --gap: 0px; padding: 0 !important; gap: 0 !important; display: block !important; }
.e-con.it-acc-item { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; padding: 0 !important; gap: 0 !important; display: block !important; margin: 0 0 2px; background: #000; }
.e-con.it-acc-panel { padding: 0 !important; display: block !important; background: #fff; }
.it-acc-title { margin: 0 !important; }
.it-acc-title .elementor-heading-title { margin: 0 !important; font-size: .95rem !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .02em; color: #fff !important; background: #000; transition: background .2s; }
/* no-JS: headings look like bars, content stays visible */
.it-acc-title .elementor-heading-title { display: block; padding: 14px var(--intools-gutter) 14px max(var(--intools-gutter), calc((100% - var(--intools-container)) / 2)); }
.it-acc.js-acc .it-acc-title .elementor-heading-title { padding: 0; }
.it-acc-btn {
  all: unset; box-sizing: border-box; width: 100%; min-height: 50px; display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 0 var(--intools-gutter) 0 max(var(--intools-gutter), calc((100% - var(--intools-container)) / 2));
  color: #fff; text-transform: uppercase; font: 400 .95rem/1.2 var(--intools-font-body); letter-spacing: .02em; position: relative;
}
.it-acc-btn::before { content: ""; flex: 0 0 32px; height: 32px; background: center / contain no-repeat; }
.it-acc-btn::after { content: ""; position: absolute; right: max(var(--intools-gutter), calc((100% - var(--intools-container)) / 2 + var(--intools-gutter))); top: 50%; width: 9px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.it-acc-item.is-open .it-acc-btn::after { transform: translateY(-30%) rotate(-135deg); }
.it-acc-btn:hover, .it-acc-btn:focus-visible { background: var(--intools-accent); }
.it-acc-btn:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.it-acc-item.is-open .it-acc-btn { background: var(--intools-accent); }
.it-acc-item.is-open .it-acc-btn::before { animation: it-spin .9s ease-in-out 1; }
@keyframes it-spin { to { transform: rotate(360deg); } }
.it-ico-o-firmie .it-acc-btn::before, .it-ico-o-firmie .it-acc-title .elementor-heading-title { }
.it-ico-o-mnie .it-acc-btn::before { background-image: url("assets/img/icons/o-mnie.png"); }
.it-ico-o-firmie .it-acc-btn::before { background-image: url("assets/img/icons/firma.png"); }
.it-ico-oferta .it-acc-btn::before { background-image: url("assets/img/icons/oferta.png"); }
.it-ico-open-journal-systems .it-acc-btn::before { background-image: url("assets/img/icons/technologie.png"); }
.it-ico-portfolio .it-acc-btn::before { background-image: url("assets/img/icons/realizacje.png"); }
.it-ico-kontakt .it-acc-btn::before { background-image: url("assets/img/icons/kontakt.png"); }
.it-acc.js-acc .it-acc-panel { overflow: hidden; transition: height .45s ease; }
.it-acc.js-acc .it-acc-panel[hidden] { display: none !important; }
.e-con.it-section.it-acc-body { padding-top: 40px !important; padding-bottom: 40px !important; }
.it-acc-body:nth-of-type(even) { background: transparent; }
.it-acc-body.it-highlight { background: var(--intools-accent) !important; }
.it-acc-body .it-cards { margin-top: 18px; }
@media (max-width: 767px) { .e-con.it-section.it-acc-body { padding-top: 28px !important; padding-bottom: 28px !important; } .it-acc-btn { min-height: 56px; } }
@media (prefers-reduced-motion: reduce) { .it-acc.js-acc .it-acc-panel { transition: none; } .it-acc-item.is-open .it-acc-btn::before { animation: none; } }
.home .it-footer nav { display: none; }   /* home: the accordion above already is the navigation */

/* ====== Realizacje (portfolio): list cards (shortcode [intools_realizacje]) and single ====== */
.it-works { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.it-work { margin: 0; padding: 0; background: #fff; border: 1px solid var(--intools-border-soft); border-top: 4px solid var(--intools-accent); box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .2s, transform .2s; }
.it-work:hover, .it-work:focus-within { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.it-work.is-featured { border-top-color: #000; }
.it-work__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.it-work__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--intools-bg-soft); border-bottom: 1px solid var(--intools-border-soft); }
.it-work__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .4s; }
.it-work:hover .it-work__img img { transform: scale(1.03); }
.it-work__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.it-work__meta { font-size: .78rem; color: var(--intools-muted); letter-spacing: .03em; text-transform: uppercase; }
.it-work__title { font-size: 1.05rem; font-weight: 700; color: #000; text-transform: uppercase; letter-spacing: .02em; line-height: 1.25; }
.it-work__excerpt { font-size: .92rem; color: var(--intools-text); line-height: 1.45; }
.it-work__more { margin-top: auto; margin-left: -6px; padding-top: 4px; }
.it-work__link:focus-visible { outline: 3px solid var(--intools-accent); outline-offset: 2px; }
.it-acc-body .it-works { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.it-acc-body.it-highlight .it-work { color: var(--intools-text); }
.it-sc { width: 100%; }

.it-work-single { padding: 36px var(--intools-gutter) 64px; }
.it-work-single__inner { max-width: var(--intools-container); margin: 0 auto; }
.it-work-single__back { margin-left: -6px; }
.it-work-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: start; margin-top: 16px; }
.it-work-single__meta { margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.it-work-single__meta div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; border-bottom: 1px solid var(--intools-border-soft); padding-bottom: 8px; }
.it-work-single__meta dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--intools-muted); padding-top: .15em; }
.it-work-single__meta dd { margin: 0; font-weight: 600; word-break: break-word; }
.it-work-single__content { font-size: 1.05rem; max-width: 70ch; }
.it-work-single__content p { margin: 0 0 1em; }
.it-btn-link { display: inline-block; background: var(--intools-accent); color: #fff !important; padding: 9px 22px; border-radius: 22px; font-weight: 700; font-size: .9rem; text-decoration: none; }
.it-btn-link:hover { background: var(--intools-accent-dark); }
.it-work-single__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.it-shot { display: block; border: 1px solid var(--intools-border); background: var(--intools-bg-soft); overflow: hidden; max-height: 320px; }
.it-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.it-shot--main { grid-column: 1 / -1; max-height: 520px; }
.it-shot:focus-visible { outline: 3px solid var(--intools-accent); }
.it-work-single__nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--intools-border-soft); font-size: .92rem; }
.it-work-single__nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--intools-accent-dark); font-weight: 700; text-decoration: none; max-width: 48%; }
.it-work-single__nav a[rel=next] { margin-left: auto; text-align: right; }
.it-lightbox { border: 0; padding: 0; background: #000; max-width: 96vw; max-height: 96vh; overflow: auto; }
.it-lightbox::backdrop { background: rgba(0,0,0,.8); }
.it-lightbox img { display: block; max-width: 100%; height: auto; }
.it-lightbox__close { position: fixed; top: 12px; right: 18px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 860px) { .it-work-single__grid { grid-template-columns: 1fr; gap: 24px; } .it-work-single__meta div { grid-template-columns: 7.5em 1fr; } }

/* Elementor Pro form (contact page) */
.it-form { max-width: 760px; }
.it-form .elementor-field-label { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #000; }
.it-form .elementor-field-textual { border: 1px solid var(--intools-border) !important; border-radius: 0 !important; background: #fff; padding: 10px 12px; font-size: 1rem; }
.it-form .elementor-field-textual:focus { outline: 3px solid var(--intools-accent); outline-offset: 0; border-color: var(--intools-accent) !important; }
.it-form .elementor-button { background: var(--intools-accent) !important; color: #fff !important; border-radius: 22px !important; font-weight: 700; padding: 12px 28px; }
.it-form .elementor-button:hover { background: var(--intools-accent-dark) !important; }
.it-form .elementor-message-success { color: #0a6b2a; } .it-form .elementor-message-danger { color: #b00020; }

.it-dot__label, .it-dot a, .it-ask a, .it-ask__text { text-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 8px #fff; }

/* anchors reached from the banner line: no focus ring on the scroll target, a little room above */
[id][tabindex="-1"]:focus { outline: none; }
.it-section[id], .it-card[id] { scroll-margin-top: 18px; }

/* "O mnie" / "About me" accordion item on the home page: name heading, former hero headline (h1) and intro text inside the panel */
.it-omnie .it-omnie-name .elementor-heading-title { font-size: clamp(1.45rem, 3.2vw, 2.1rem); font-weight: 700; text-transform: none; letter-spacing: 0; max-width: 40ch; margin: 0 0 .5em; }
.it-omnie .it-omnie-lead .elementor-heading-title { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: 0; max-width: 46ch; margin: 0 0 .8em; }
.it-omnie .it-omnie-lead .elementor-heading-title::after { content: ""; display: block; width: 56px; height: 4px; background: var(--intools-accent); margin-top: .6em; }
.it-omnie .it-text p { font-size: 1rem; line-height: 1.6; max-width: 72ch; }
.it-omnie .it-omnie-name .elementor-heading-title::after { display: none; }

/* Desktop: the "Zapytaj o wycenę ?" call-to-action sits in its own strip directly under the line (like on phones), not among the service balls on the line */
@media (min-width: 1100px) {
  .it-banner { height: calc(785px * var(--k, .8) + 76px); }
  .it-ask { left: 50%; top: auto; bottom: 10px; transform: translateX(-50%); }
}
