:root {
  --blue: #0968d8;
  --blue-dark: #07366f;
  --ink: #10284b;
  --muted: #5e718a;
  --line: #dce8f7;
  --soft: #f4f9ff;
  --white: #fff;
  --shadow: 0 18px 45px rgba(16, 40, 75, .12);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 88px 0; scroll-margin-top: 96px; }
.eyebrow { margin: 0 0 10px; color: var(--blue); text-transform: uppercase; font-size: .78rem; font-weight: 660; letter-spacing: .08em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.12rem, 4.15vw, 3.85rem); font-weight: 760; max-width: 620px; }
h1 span { color: var(--blue); display: block; }
h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
h3 { font-size: 1rem; }
p { margin: 16px 0 0; }
.lead { font-size: 1.16rem; color: var(--ink); }
.lead strong, .lead span { display: block; font-weight: 680; }
.lead strong { font-size: 1.29rem; }
.subtitle, .soft-line { color: var(--blue); font-weight: 560; }
.subtitle { font-size: 1.38rem; line-height: 1.35; }

.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(220,232,247,.9); backdrop-filter: blur(16px);
}
.nav { min-height: 88px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 1px; color: var(--blue); line-height: 1.03; }
.logo img { width: 62px; height: 62px; object-fit: contain; }
.logo strong { display: block; font-size: .92rem; font-weight: 500; text-transform: uppercase; }
.logo small { display: block; margin-top: 2px; font-size: .78rem; font-weight: 400; color: var(--blue); }
.menu { margin-left: auto; margin-right: 24px; display: flex; align-items: center; gap: 24px; font-size: 1.025rem; font-weight: 500; }
.menu a { position: relative; padding: 31px 0 18px; color: #1e3c64; }
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 13px; height: 1px;
  background: var(--blue); transform: scaleX(0); transform-origin: left center;
  transition: transform .38s ease; border-radius: 999px;
}
.menu a:hover { color: var(--blue); }
.menu a:hover::after { transform: scaleX(1); }
.phone-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 24px; border-radius: 6px; font-weight: 850; transition: .2s ease;
}
.phone-btn { gap: 10px; background: var(--blue); color: #fff; box-shadow: none; font-weight: 600; }
.phone-btn svg, .btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: none; }
.btn.secondary { color: var(--blue); border: 1px solid var(--blue); background: transparent; box-shadow: none; font-weight: 600; }
.btn.light { background: #fff; color: var(--blue-dark); }
.phone-btn:hover, .btn:hover { transform: translateY(-1px); }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 10px 14px; font-weight: 800; color: var(--blue); }

.hero {
  position: relative; min-height: 720px; display: flex; align-items: stretch; padding: 0; overflow: hidden;
  background: linear-gradient(90deg, #fbfcfd 0%, #f3f5f8 100%, #f3f5f8 100%);
}
.hero-grid { width: 100%; max-width: none; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: stretch; gap: 0; }
.hero-copy {
  position: relative; z-index: 3; width: auto; max-width: 620px; align-self: center;
  margin-left: max(20px, calc((100vw - 1240px) / 2)); padding: 92px 48px 92px 0;
}
.hero-eyebrow { margin: 0 0 10px; color: #0b1729; text-transform: uppercase; font-size: .91rem; font-weight: 500; letter-spacing: .08em; }
.hero-line {
  display: block; width: 54px; height: 2px; margin: 28px 0 30px; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #6da4ef); transform-origin: left center;
  transition: width .5s cubic-bezier(.22, 1, .36, 1), opacity .35s ease; opacity: .9;
}
.hero-copy:hover .hero-line { width: 50%; opacity: 1; }
.hero-text { font-size: 1.16rem; color: var(--ink); }
.actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 32px; }
.call-cta, .service-cta { gap: 10px; }
.call-cta span { font-weight: 500; }
.call-cta b { font-weight: 650; }
.trust-list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-weight: 560; font-size: .92rem; }
.trust-list li { display: flex; align-items: center; gap: 12px; }
.hero .trust-list li:last-child { margin-left: -5px; }
.trust-list img { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
.about .trust-list li { display: flex; align-items: center; gap: 12px; padding-left: 0; }
.hero-media {
  position: relative; z-index: 1; min-height: 720px; display: block; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.3) 7%, rgba(0,0,0,.82) 16%, #000 26%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.3) 7%, rgba(0,0,0,.82) 16%, #000 26%);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; transform: scale(1.08); transform-origin: 72% center; border-radius: 0; }
.ebook-badge {
  position: absolute; left: 22%; bottom: 86px; z-index: 3; width: 156px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
  background: radial-gradient(circle at 50% 12%, rgba(255,255,255,.95), rgba(255,255,255,0) 34%), linear-gradient(180deg, #fff 0%, #f5f8ff 100%); color: var(--blue); border: 1px solid rgba(9,104,216,.10); backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px rgba(30,60,120,.14), 0 10px 24px rgba(30,60,120,.08), 0 2px 6px rgba(255,255,255,.6) inset; font-weight: 600; line-height: 1.28; letter-spacing: .075em; cursor: pointer;
  animation: badgeFloat 6s ease-in-out infinite; transition: transform .38s ease, box-shadow .38s ease, border-color .38s ease;
}
.ebook-badge img { width: 33px; height: 33px; object-fit: contain; transform: translateY(-5px); }
.ebook-badge span { display: block; font-size: .84rem; text-transform: uppercase; }
.ebook-badge small { display: block; color: #45628f; font-size: .72rem; font-weight: 500; letter-spacing: .02em; }
.ebook-badge:hover {
  animation-play-state: paused; transform: translateY(-6px) scale(1.05); border-color: rgba(9,104,216,.22);
  box-shadow: 0 34px 72px rgba(30,60,120,.18), 0 12px 28px rgba(30,60,120,.10), 0 0 0 8px rgba(9,104,216,.045), 0 2px 6px rgba(255,255,255,.7) inset;
}
.ebook.highlight { animation: ebookGlow 1.45s ease; }
@keyframes badgeFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes ebookGlow { 0%, 100% { box-shadow: 0 12px 30px rgba(16,40,75,.06); } 45% { box-shadow: 0 0 0 5px rgba(9,104,216,.10), 0 20px 48px rgba(9,104,216,.16); } }

.section-head { text-align: center; margin-bottom: 42px; } .section-hover-title { display: inline-block; } #oferta { padding: 60px 0; }
.section-head.left { text-align: left; margin-bottom: 24px; }
.reviews-head { display: inline-grid; justify-items: start; position: relative; left: 50%; transform: translateX(-50%); }
.section-line {
  display: block; width: 54px; height: 2px; margin-top: 16px; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #6da4ef); transition: width .5s cubic-bezier(.22, 1, .36, 1);
}
.reviews-head:hover .section-line { width: 50%; }
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.service-card, .review-card, .ebook, .accordion details {
  border: 1px solid var(--line); background: rgba(255,255,255,.92); border-radius: 8px; box-shadow: 0 12px 30px rgba(16,40,75,.06);
}
.service-card { min-height: 210px; padding: 26px 18px; text-align: center; box-shadow: none; transition: transform .32s ease, border-color .32s ease, background .32s ease; }
.service-icon { width: 72px; height: 72px; margin: 0 auto 18px; display: grid; place-items: center; transition: transform .38s cubic-bezier(.22, 1, .36, 1); }
.service-icon img { width: 100%; height: 100%; object-fit: contain; transition: transform .38s cubic-bezier(.22, 1, .36, 1); }
.service-card h3 { color: var(--blue); min-height: 56px; }
.service-card:hover { transform: translateY(-1px); border-color: rgba(9,104,216,.24); background: #fff; } .service-card:hover .service-icon { transform: scale(1.01); } .service-card:hover .service-icon img { transform: scale(1.025); }

.section.about { background: #eceff7; padding-top: 0 !important; padding-bottom: 0 !important; overflow: hidden; }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 0; align-items: stretch; }
.portrait-wrap { position: relative; align-self: stretch; min-height: 0; }
.portrait-wrap::before { content: ""; position: absolute; inset: 0 0 0 calc(max(20px, (100vw - 1240px) / 2) * -1); background: url("assets/podolog-bydgoszcz-malgorzata-krajewska.png") center top/cover no-repeat; }
.portrait-wrap::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 34%; background: linear-gradient(90deg, rgba(236,239,247,0), #eceff7); pointer-events: none; }
.portrait { display: none; }
.about .split > div:not(.portrait-wrap) { padding: 70px 0; align-self: center; }
.about-title::after, .section-hover-title::after { content: ""; display: block; width: 54px; height: 2px; margin-top: 16px; border-radius: 999px; background: linear-gradient(90deg, var(--blue), #6da4ef); transition: width .5s cubic-bezier(.22, 1, .36, 1); }
.about-title:hover::after, .section-hover-title:hover::after { width: 50%; }
.trust-list.inline { grid-template-columns: repeat(3, 1fr); margin-top: 34px; }

.orthotics { padding: 0; background: linear-gradient(90deg, transparent 0 40%, rgba(239,247,255,.12) 40% 100%), url("assets/wkladki-ortopedyczne.png") 100% center/60% 100% no-repeat; }
.orthotics-grid { display: grid; grid-template-columns: 2fr 3fr; min-height: 430px; }
.blue-panel { position: relative; color: #fff; padding: 64px 64px 64px 0; background: transparent; z-index: 1; }
.blue-panel::before { content: ""; position: absolute; inset: 0 -150px 0 calc((1240px - 100vw) / 2); z-index: -1; background: linear-gradient(135deg, #052b5e, #075db9); clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%); }
.blue-panel h2, .blue-panel .eyebrow { color: #fff; }
.blue-panel .eyebrow { opacity: .9; }
.blue-panel .eyebrow { font-weight: 600; }
.blue-panel h2 { font-size: clamp(1.75rem, 2.55vw, 2.45rem); font-weight: 650; }
.blue-panel p { color: #e6f1ff; max-width: 520px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: currentColor; font-weight: 900; }
.orthotics-image { min-height: 430px; }

.faq-ebook { background: #fff; padding-top: 44px; padding-bottom: 44px; } .two-columns { display: grid; grid-template-columns: 2fr 3fr; gap: 28px; align-items: stretch; }
.two-columns > div, .two-columns > .ebook { background: #f5f8fd; border: 0; border-radius: 10px; box-shadow: none; } .two-columns > div { padding: 34px; } .faq-ebook h2 { font-size: clamp(1.2rem, 1.55vw, 1.55rem); }
.accordion { display: grid; gap: 8px; } .faq-ebook .accordion details, .faq-ebook .ebook { box-shadow: none; }
.accordion details { position: relative; overflow: visible; z-index: 1; transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
.accordion details:hover { border-color: rgba(9,104,216,.24); background: #fff; transform: translateY(-1px); }
.accordion details[open] { z-index: 20; border-color: rgba(9,104,216,.26); border-radius: 8px 8px 0 0; }
.accordion summary { position: relative; cursor: pointer; padding: 12px 44px 12px 18px; font-weight: 560; color: var(--ink); list-style: none; transition: color .25s ease, padding-left .25s ease; }
.accordion summary::-webkit-details-marker { display: none; } .accordion summary::after { content: ""; position: absolute; right: 18px; top: 50%; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--blue); transform: translateY(-45%) rotate(-90deg); transition: transform .25s ease; }
.accordion details[open] summary::after { transform: translateY(-45%) rotate(0deg); }
.accordion details > p { position: absolute; top: calc(100% - 1px); left: -1px; right: -1px; z-index: 10; margin: 0; padding: 0 18px 16px; color: var(--muted); background: #fff; border: 1px solid rgba(9,104,216,.26); border-top: 0; border-radius: 0 0 8px 8px; animation: faq-answer-in .34s cubic-bezier(.2,.75,.25,1) both; }
.accordion details > p::before { content: ""; display: block; width: 64px; height: 1px; margin: 0 0 14px; background: var(--blue); }
@keyframes faq-answer-in { 0% { opacity: 0; clip-path: inset(0 0 100% 0); filter: blur(3px); transform: translateY(-8px) scaleY(.94); } 70% { opacity: 1; filter: blur(0); } 100% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); } }
.ebook { padding: 34px; position: relative; overflow: hidden; display: grid; gap: 18px; }
.ebook-main { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; align-items: center; }
.ebook-cover { width: 223%; height: auto; filter: drop-shadow(0 10px 10px rgba(16,40,75,.10)); transform: translateX(-20px) rotate(7deg); transform-origin: center; transition: transform .35s ease, filter .35s ease; }
.ebook-cover:hover { filter: drop-shadow(0 13px 14px rgba(16,40,75,.13)); transform: translateX(-20px) rotate(7deg) scale(1.1); }
input { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 6px; padding: 0 16px; font: inherit; }
.form-note { min-height: 24px; color: var(--blue); font-weight: 750; }

.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.reviews { padding-top: 0; padding-bottom: 50px; }
.reviews h2 { font-size: clamp(1.75rem, 2.6vw, 2.35rem); }
.review-card { display: grid; min-height: 250px; padding: 26px; overflow: hidden; box-shadow: none; }
.review-layer { grid-area: 1 / 1; transition: opacity .7s ease, filter .7s ease; }
.review-next { opacity: 0; filter: blur(1.5px) contrast(.98); }
.review-grid.is-resetting .review-layer { transition: none; }
.review-grid.is-dissolving .review-current { opacity: 0; filter: blur(1.5px) contrast(.98); }
.review-grid.is-dissolving .review-next { opacity: 1; filter: blur(0) contrast(1); }
.review-stars { color: #ffb400; letter-spacing: .06em; }
.review-dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.review-dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 1px solid var(--blue-dark); background: transparent; cursor: pointer; transition: background .18s ease, border-color .18s ease, box-shadow .2s ease, transform .2s ease; }
.review-dots button.active { background: var(--blue-dark); }
.review-dots button:hover, .review-dots button:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(9,104,216,.1); transform: scale(1.22); outline: none; }
blockquote { margin: 14px 0; color: #24405f; font-style: italic; }
figcaption { color: var(--muted); font-size: .9rem; }

.contact { background: linear-gradient(135deg, #06356d, #0870df); color: #fff; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 54px; align-items: center; }
.contact-phone { display: block; margin: 18px 0; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1; }
address { margin-top: 22px; font-style: normal; }
.contact p, .contact address { color: #e6f1ff; }
iframe { width: 100%; min-height: 360px; border: 0; border-radius: 8px; box-shadow: var(--shadow); }
.footer { padding: 9px 0; background: #052b5e; color: #d8e9ff; font-size: .9rem; }
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; }
.mobile-call { display: none; }

@media (max-width: 1020px) {
  .nav { min-height: 74px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .menu { display: none; position: absolute; left: 20px; right: 20px; top: 76px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
  .menu.open { display: grid; gap: 4px; }
  .menu a { padding: 12px; border: 0; }
  .menu a::after { display: none; }
  .phone-btn { display: none; }
  .split, .orthotics-grid, .two-columns, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr); }
  .hero-copy { max-width: 560px; margin-left: 20px; padding: 72px 32px 72px 0; }
  .hero-media { min-height: 460px; }
  .ebook-badge { width: 136px; left: 18%; bottom: 66px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .orthotics { background: linear-gradient(135deg, #052b5e, #075db9); }
  .blue-panel { padding: 48px 32px; }
  .blue-panel::before { display: none; }
  .orthotics-image { display: none; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1240px); }
  .section { padding: 45px 0; }
  .logo span { font-size: .78rem; }
  .hero { min-height: auto; display: block; padding: 0; }
  .hero-grid { grid-template-columns: 1fr; width: 100%; max-width: none; }
  .hero-copy { width: min(100% - 28px, 1240px); max-width: none; margin: 0 auto; padding: 21px 0 28px; }
  .actions { flex-direction: column; }
  .btn, .phone-btn { width: 100%; }
  .trust-list, .trust-list.inline, .services-grid, .review-grid { grid-template-columns: 1fr; }
  .trust-list { margin-top: 30px; } .hero .trust-list { display: none; }
  .hero-media { height: 320px; min-height: 0; margin: 0; border-radius: 0; -webkit-mask-image: none; mask-image: none; }
  .hero-media img { transform: none; border-radius: 0; }
  .ebook-badge { width: 118px; left: auto; right: 18px; bottom: 34px; }
  .ebook-badge img { width: 26px; height: 26px; }
  .ebook-badge span { font-size: .72rem; }
  .ebook-badge small { font-size: .64rem; }
  .portrait-wrap { min-height: 360px; margin: 0 -14px; } .portrait-wrap::before { inset: 0; } .portrait-wrap::after { display: none; } .portrait { border-radius: 8px; } .service-card { min-height: auto; } .review-card { min-height: 180px; padding: 20px; }
  .ebook, .ebook-main, .ebook-fields { grid-template-columns: 1fr; }
  .ebook { padding: 26px; }
  .ebook-cover { width: 240px; margin: 0 auto; } .orthotics { padding: 0; } .orthotics-grid { width: 100%; } .orthotics-image { display: block; min-height: 260px; background: url("assets/wkladki-ortopedyczne.png") center/cover no-repeat; }
  .footer { padding-bottom: 82px; }
  .footer .container { display: block; }
  .mobile-call { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; min-height: 54px; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-weight: 650; box-shadow: 0 -10px 26px rgba(9,104,216,.22); }
}
