:root {
    --graf-blue-900: #101b2d;
    --graf-blue-800: #173254;
    --graf-blue-700: #1f5f8e;
    --graf-blue-100: #eaf2f7;
    --graf-cyan: #2b7da6;
    --graf-yellow: #c79a35;
    --graf-red: #cf463f;
    --graf-green: #4b8c63;
    --graf-ink: #111722;
    --graf-muted: #656d78;
    --graf-border: rgba(17, 23, 34, 0.12);
    --graf-white: #ffffff;
    --graf-soft: #fbf8f1;
    --graf-linen: #f1eadc;
    --graf-sand: #dccaa9;
    --graf-shadow: 0 26px 70px rgba(17, 23, 34, 0.12);
    --graf-radius-lg: 22px;
    --graf-radius-md: 14px;
    --graf-radius-sm: 8px;
    --graf-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--graf-ink);
    background: var(--graf-soft);
    line-height: 1.68;
    text-rendering: optimizeLegibility;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(199,154,53,0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(199,154,53,0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 76%);
    z-index: -1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--graf-yellow); }
p { margin-top: 0; }
strong { font-weight: 850; }

.container {
    width: min(100% - 44px, var(--graf-container));
    margin-inline: auto;
}

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    z-index: 9999;
    top: 16px;
    left: 16px;
    width: auto;
    height: auto;
    padding: 12px 16px;
    clip: auto;
    background: var(--graf-yellow);
    color: var(--graf-white);
    border-radius: 3px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 248, 241, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(17, 23, 34, 0.08);
}
.topbar {
    background: transparent;
    color: var(--graf-muted);
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(17, 23, 34, 0.07);
}
.topbar__inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.topbar__inner > span {
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.72rem;
    font-weight: 800;
}
.topbar__contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { color: var(--graf-ink); font-weight: 760; }
.topbar a:hover { color: var(--graf-yellow); }
.navbar {
    min-height: 86px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 26px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--graf-ink);
    min-width: 232px;
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(17, 23, 34, 0.2);
    background: var(--graf-blue-900);
    color: var(--graf-yellow);
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: -0.05em;
}
.brand__text { display: grid; line-height: 1.02; }
.brand__text strong {
    font-size: 0.86rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--graf-muted);
}
.brand__text em {
    font-size: 1.46rem;
    font-style: normal;
    font-weight: 950;
    color: var(--graf-ink);
    letter-spacing: 0.09em;
}
.custom-logo-link img { max-width: 250px; height: auto; }
.primary-nav { justify-self: end; }
.menu,
.footer-menu { list-style: none; margin: 0; padding: 0; }
.menu--primary { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.menu--primary > li { position: relative; }
.menu--primary a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 7px 10px;
    color: var(--graf-ink);
    font-size: 0.93rem;
    font-weight: 800;
    text-transform: lowercase;
    letter-spacing: 0.035em;
}
.menu--primary a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 5px;
    height: 2px;
    background: var(--graf-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}
.menu--primary a:hover::after,
.menu--primary .current-menu-item > a::after,
.menu--primary .current-menu-ancestor > a::after { transform: scaleX(1); }
.menu--primary a:hover,
.menu--primary .current-menu-item > a,
.menu--primary .current-menu-ancestor > a { color: var(--graf-ink); }
.menu--primary .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    display: grid;
    min-width: 270px;
    padding: 12px;
    margin: 10px 0 0;
    list-style: none;
    background: var(--graf-white);
    border: 1px solid var(--graf-border);
    box-shadow: 0 22px 55px rgba(17,23,34,0.13);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}
.menu--primary li:hover > .sub-menu,
.menu--primary li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.menu--primary .sub-menu a {
    justify-content: flex-start;
    width: 100%;
    border-radius: 0;
    white-space: normal;
}
.menu--primary .sub-menu .sub-menu {
    left: calc(100% + 6px);
    top: 0;
}
.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--graf-border);
    border-radius: 0;
    background: var(--graf-white);
    cursor: pointer;
}
.nav-toggle span:not(.screen-reader-text) {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--graf-blue-900);
}

.button,
.wp-block-button__link,
button.button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 24px;
    border: 1px solid var(--graf-blue-900);
    border-radius: 0;
    background: var(--graf-blue-900);
    color: var(--graf-white) !important;
    font-weight: 900;
    font-size: 0.82rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.button:hover,
.wp-block-button__link:hover,
button.button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    background: var(--graf-yellow);
    border-color: var(--graf-yellow);
    color: var(--graf-white) !important;
}
.button--secondary {
    background: var(--graf-white);
    color: var(--graf-blue-900) !important;
    border-color: rgba(17, 23, 34, 0.2);
}
.button--secondary:hover { color: var(--graf-white) !important; }
.button--outline {
    background: transparent;
    border-color: rgba(17, 23, 34, 0.25);
    color: var(--graf-blue-900) !important;
}
.section--blue .button--outline,
.cta-band .button--outline {
    border-color: rgba(255,255,255,0.5);
    color: var(--graf-white) !important;
}
.button--small { min-height: 42px; padding: 10px 16px; font-size: 0.72rem; }
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--graf-blue-900);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    font-size: 0.79rem;
}
.text-link::after { content: "→"; transition: transform 0.2s ease; }
.text-link:hover::after { transform: translateX(4px); }

.section { padding: 96px 0; }
.section--soft { background: var(--graf-linen); }
.section--blue { background: var(--graf-blue-900); color: rgba(255,255,255,0.86); }
.section__header { max-width: 830px; margin-bottom: 40px; }
.section__header.center { margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--graf-yellow);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.73rem;
}
h1, h2, h3, h4 {
    margin: 0 0 18px;
    color: var(--graf-ink);
    line-height: 1.02;
    letter-spacing: -0.055em;
}
.section--blue h1,
.section--blue h2,
.section--blue h3 { color: var(--graf-white); }
h1 { font-size: clamp(2.8rem, 6.4vw, 6.35rem); }
h2 { font-size: clamp(2.05rem, 4vw, 4.1rem); }
h3 { font-size: clamp(1.28rem, 2vw, 1.72rem); letter-spacing: -0.035em; }
.lead {
    font-size: clamp(1.08rem, 1.5vw, 1.24rem);
    color: var(--graf-muted);
    max-width: 730px;
}
.section--blue .lead { color: rgba(255, 255, 255, 0.78); }

.hero {
    position: relative;
    overflow: hidden;
    padding: 112px 0 96px;
    background: linear-gradient(90deg, var(--graf-soft) 0 62%, #eadfc9 62% 100%);
    color: var(--graf-ink);
}
.hero::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 38%;
    background: linear-gradient(135deg, rgba(17,23,34,0.05), rgba(199,154,53,0.14));
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
.hero::after {
    content: "GRAF";
    position: absolute;
    left: min(4vw, 58px);
    bottom: -38px;
    color: rgba(17,23,34,0.035);
    font-size: clamp(5rem, 14vw, 15rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.08em;
    pointer-events: none;
}
.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
    align-items: center;
    gap: 58px;
}
.hero__copy { max-width: 720px; }
.hero .eyebrow { color: var(--graf-yellow); }
.hero h1 { color: var(--graf-ink); max-width: 760px; }
.hero h1 span { color: var(--graf-yellow); }
.hero .lead { color: #4f5763; }
.hero__actions,
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border: 1px solid rgba(17,23,34,0.13);
    background: rgba(255,255,255,0.52);
    color: var(--graf-ink);
    font-size: 0.88rem;
    font-weight: 850;
}
.hero-card {
    position: relative;
    overflow: hidden;
    min-height: 585px;
    padding: 0;
    border: 12px solid var(--graf-white);
    background: var(--graf-white);
    box-shadow: 0 34px 85px rgba(17,23,34,0.18);
}
.hero-card::before {
    content: "";
    position: absolute;
    inset: -14px;
    border: 1px solid rgba(17,23,34,0.12);
    pointer-events: none;
    z-index: 4;
}
.graf-slider {
    position: relative;
    height: 100%;
    min-height: 560px;
    overflow: hidden;
    background: var(--graf-blue-900);
}
.graf-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.75s ease;
}
.graf-slide.is-active { opacity: 1; }
.graf-slide img { width: 100%; height: 100%; object-fit: cover; }
.graf-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(17, 23, 34, 0.74));
}
.graf-slide figcaption {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 24px;
    z-index: 2;
    color: var(--graf-white);
    font-weight: 900;
    font-size: 1.06rem;
}
.graf-slider__dots {
    position: absolute;
    z-index: 3;
    left: 26px;
    top: 24px;
    display: flex;
    gap: 8px;
}
.graf-slider__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.48);
}
.graf-slider__dot.is-active { width: 28px; border-radius: 999px; background: var(--graf-yellow); }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(17,23,34,0.14);
    color: var(--graf-ink);
    background: rgba(255,255,255,0.44);
    font-weight: 850;
    font-size: 0.88rem;
}
.social-links a:hover { background: var(--graf-blue-900); border-color: var(--graf-blue-900); color: var(--graf-white); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.card {
    position: relative;
    overflow: hidden;
    padding: 32px;
    background: var(--graf-white);
    border: 1px solid var(--graf-border);
    box-shadow: 0 18px 48px rgba(17, 23, 34, 0.06);
}
.card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--graf-yellow);
    opacity: 0;
    transition: opacity .2s ease;
}
.card:hover::before { opacity: 1; }
.card--blue { background: var(--graf-blue-900); color: rgba(255,255,255,0.86); }
.card--blue h3 { color: var(--graf-white); }
.card__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border: 1px solid rgba(17,23,34,0.12);
    background: var(--graf-linen);
    color: var(--graf-blue-900);
    font-weight: 950;
    font-size: 1.34rem;
}
.card--blue .card__icon { background: rgba(255,255,255,0.1); color: var(--graf-yellow); border-color: rgba(255,255,255,0.16); }
.card p:last-child { margin-bottom: 0; }
.media-card {
    min-height: 420px;
    overflow: hidden;
    background: var(--graf-white);
    border: 10px solid var(--graf-white);
    box-shadow: var(--graf-shadow);
}
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { display: grid; gap: 15px; margin: 26px 0; padding: 0; list-style: none; }
.feature-list li {
    position: relative;
    padding-left: 35px;
    font-weight: 760;
}
.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 18px;
    height: 2px;
    background: var(--graf-yellow);
}

.split-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}
.split-feature--reverse { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.split-feature__media {
    position: relative;
    min-height: 500px;
    margin: 0;
    border: 12px solid var(--graf-white);
    box-shadow: var(--graf-shadow);
    overflow: hidden;
}
.split-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.split-feature__media::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 120px;
    height: 120px;
    background: var(--graf-yellow);
    opacity: .9;
    mix-blend-mode: multiply;
}
.offer-doskonale {
    background: linear-gradient(90deg, var(--graf-linen), var(--graf-soft));
}
.offer-doskonale__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 46px;
    align-items: start;
}
.consult-card {
    position: sticky;
    top: 140px;
    padding: 32px;
    background: var(--graf-white);
    border: 1px solid var(--graf-border);
    box-shadow: var(--graf-shadow);
}
.consult-card h3 { margin-bottom: 10px; }
.mini-contact-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 28px;
    padding: 0;
    list-style: none;
}
.mini-contact-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(17,23,34,0.09);
    font-weight: 760;
}
.mini-contact-list span { color: var(--graf-muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.premium-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.gallery-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.1;
    background: var(--graf-linen);
}
.gallery-card:nth-child(2n) { aspect-ratio: 1 / 0.9; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-card:hover img { transform: scale(1.055); }
.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.45);
    pointer-events: none;
}
.home-contact-band {
    background: var(--graf-blue-900);
    color: rgba(255,255,255,0.86);
}
.home-contact-band h2 { color: var(--graf-white); }
.home-contact-band .lead { color: rgba(255,255,255,0.78); }

.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--graf-linen), var(--graf-soft));
    color: var(--graf-ink);
    border-bottom: 1px solid rgba(17,23,34,0.08);
}
.page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -120px;
    width: 360px;
    height: 360px;
    background: rgba(199,154,53,0.18);
    transform: rotate(35deg);
}
.page-hero--compact { padding: 82px 0 68px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 950px; }
.page-hero .lead { max-width: 760px; }
.content-wrap { padding: 66px 0 88px; }
.content-wrap--narrow { max-width: 880px; }
.content-wrap a:not(.button) { color: var(--graf-blue-700); font-weight: 800; }
.content-wrap h2 { margin-top: 42px; }
.content-wrap ul, .content-wrap ol { padding-left: 1.25rem; }
.content-wrap li { margin-bottom: 10px; }
.featured-media { margin: 0 0 36px; overflow: hidden; }

.offer-tree,
.shop-grid,
.material-grid { display: grid; gap: 24px; }
.offer-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offer-item {
    display: grid;
    gap: 12px;
    padding: 28px;
    background: var(--graf-white);
    border: 1px solid var(--graf-border);
    box-shadow: 0 18px 40px rgba(17,23,34,0.06);
}
.offer-item__tag { color: var(--graf-yellow); font-weight: 950; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; }
.offer-subnav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.offer-subnav a { padding: 8px 12px; border: 1px solid rgba(17,23,34,0.12); background: var(--graf-soft); color: var(--graf-blue-900); font-weight: 850; }
.offer-subnav a:hover { background: var(--graf-blue-900); color: var(--graf-white); }

.notice {
    padding: 18px 20px;
    background: var(--graf-linen);
    border: 1px solid rgba(199,154,53,0.28);
    color: var(--graf-blue-900);
    font-weight: 760;
}
.notice--success { background: #eef8f1; border-color: rgba(75,140,99,0.28); }
.notice--error { background: #fff0ef; border-color: rgba(207,70,63,0.25); }

.graf-form,
.comment-form,
.search-form { display: grid; gap: 16px; }
.graf-form label { display: grid; gap: 7px; font-weight: 850; color: var(--graf-blue-900); }
.graf-form input,
.graf-form textarea,
.graf-form select,
.search-field,
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea, select {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid var(--graf-border);
    border-radius: 0;
    background: var(--graf-white);
    color: var(--graf-ink);
    font: inherit;
    outline: none;
}
.graf-form textarea, textarea { min-height: 150px; resize: vertical; }
.graf-form input:focus,
.graf-form textarea:focus,
.graf-form select:focus,
.search-field:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--graf-yellow);
    box-shadow: 0 0 0 4px rgba(199,154,53,0.14);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.graf-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

.student-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: start;
}
.student-box {
    padding: 30px;
    background: var(--graf-white);
    border: 1px solid var(--graf-border);
    box-shadow: 0 18px 48px rgba(17,23,34,0.07);
}
.material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.material-card {
    padding: 26px;
    background: var(--graf-white);
    border: 1px solid var(--graf-border);
}
.material-card h3 { font-size: 1.25rem; }
.material-meta { color: var(--graf-muted); font-size: 0.92rem; }
.account-header {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    margin-bottom: 24px;
    background: var(--graf-blue-900);
    color: rgba(255,255,255,0.86);
}
.account-header h2 { color: var(--graf-white); margin-bottom: 6px; }

.product-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
.product-card,
.post-card {
    overflow: hidden;
    background: var(--graf-white);
    border: 1px solid var(--graf-border);
    box-shadow: 0 18px 48px rgba(17,23,34,0.06);
}
.product-card__media,
.post-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--graf-linen); }
.product-card__media img,
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.product-card:hover img,
.post-card:hover img { transform: scale(1.04); }
.product-card__body,
.post-card__body { padding: 26px; }
.product-card__type,
.post-card__date { margin: 0 0 10px; color: var(--graf-yellow); font-weight: 950; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }
.product-card__price {
    display: inline-flex;
    margin: 8px 0 18px;
    padding: 6px 11px;
    background: var(--graf-linen);
    color: var(--graf-blue-900);
    font-weight: 950;
}
.pagination-wrap { margin-top: 36px; }
.nav-links { display: flex; justify-content: center; gap: 10px; }
.nav-links a,
.nav-links span { padding: 8px 13px; background: var(--graf-white); border: 1px solid var(--graf-border); }

.cta-band {
    position: relative;
    overflow: hidden;
    padding: 58px;
    background: var(--graf-blue-900);
    color: rgba(255,255,255,0.86);
    box-shadow: var(--graf-shadow);
}
.cta-band::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(199,154,53,0.22);
}
.cta-band h2 { color: var(--graf-white); }
.cta-band > * { position: relative; z-index: 1; }

.site-footer {
    background: #0d121b;
    color: rgba(255,255,255,0.76);
}
.site-footer h2 { color: var(--graf-white); font-size: 1.18rem; letter-spacing: -0.02em; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 0.9fr;
    gap: 48px;
    padding: 70px 0 52px;
}
.site-footer a { color: var(--graf-white); }
.site-footer a:hover { color: var(--graf-yellow); }
.social-links--footer a { background: rgba(255,255,255,0.06); color: var(--graf-white); border-color: rgba(255,255,255,0.14); }
.footer-menu { display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom__inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

.wp-block-image img { border: 8px solid var(--graf-white); box-shadow: 0 18px 48px rgba(17,23,34,.08); }
.wp-block-quote { border-left: 4px solid var(--graf-yellow); padding-left: 20px; color: var(--graf-muted); }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table td,
.wp-block-table th { border: 1px solid var(--graf-border); padding: 10px 12px; }

@media (max-width: 1100px) {
    .navbar { grid-template-columns: auto auto auto; }
    .nav-toggle { display: inline-block; justify-self: end; }
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 16px 22px 24px;
        background: var(--graf-soft);
        border-top: 1px solid var(--graf-border);
        box-shadow: 0 18px 38px rgba(17,23,34,0.12);
    }
    body.nav-open .primary-nav { display: block; }
    .menu--primary { display: grid; justify-content: stretch; gap: 6px; }
    .menu--primary a { width: 100%; justify-content: flex-start; }
    .menu--primary .sub-menu {
        position: static;
        display: grid;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin: 4px 0 6px 16px;
        min-width: 0;
        background: var(--graf-white);
    }
    .menu--primary .sub-menu .sub-menu { left: auto; top: auto; }
    .header-cta { justify-self: end; }
    .hero { background: var(--graf-soft); }
    .hero::before { width: 100%; opacity: .35; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero-card { min-height: 440px; }
    .graf-slider { min-height: 420px; }
    .grid-3, .product-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .student-panel { grid-template-columns: 1fr; }
    .split-feature,
    .split-feature--reverse,
    .offer-doskonale__grid { grid-template-columns: 1fr; }
    .consult-card { position: static; }
    .premium-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .container { width: min(100% - 30px, var(--graf-container)); }
    .topbar__inner { justify-content: center; text-align: center; }
    .topbar__contact { display: none; }
    .navbar { min-height: 72px; gap: 10px; }
    .brand { min-width: 0; }
    .brand__mark { width: 48px; height: 48px; font-size: 1.75rem; }
    .brand__text strong { font-size: 0.68rem; }
    .brand__text em { font-size: 1.08rem; }
    .header-cta { display: none; }
    .hero { padding: 74px 0 58px; }
    .hero h1 { font-size: clamp(2.6rem, 14vw, 4.5rem); }
    .hero-card { min-height: 340px; border-width: 8px; }
    .graf-slider { min-height: 325px; }
    .section { padding: 64px 0; }
    .grid-3, .grid-2, .offer-tree, .material-grid, .product-grid, .post-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
    .premium-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .split-feature__media { min-height: 340px; }
    .cta-band { padding: 36px 24px; }
    .account-header { align-items: flex-start; flex-direction: column; }
    .footer-bottom__inner { justify-content: center; text-align: center; }
    .button, .wp-block-button__link, button.button, input[type="submit"] { width: 100%; }
    .social-links a { width: auto; }
}


/* Uzupełnienie paska social media po odświeżeniu 1.1.0 */
.topbar__social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}
.topbar__social::before {
    content: "social media";
    color: var(--graf-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.topbar__social a {
    font-weight: 760;
}
@media (max-width: 1100px) {
    .topbar__social { display: none; }
}
