/* eurobilans.eu - the only stylesheet. System fonts, no external requests. */
:root {
  --navy: #023e7c;
  --navy-2: #0a2f57;
  --navy-3: #06213f;
  --blue: #2a86c9;
  --teal: #6ec6d4;
  --teal-soft: #e6f5f8;
  --text: #24303d;
  --muted: #5b6774;
  --line: #dfe6ed;
  --paper: #ffffff;
  --paper-2: #f4f7fa;
  --radius: 8px;
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0b5aa6; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy-3); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--teal); color: var(--navy-3); padding: .6em 1em; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Top bar */
.topbar { background: var(--navy-3); color: #cfdbe8; font-size: .875rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; padding-top: .5rem; padding-bottom: .5rem; }
.topbar .group { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--teal); }
.topbar .dot::before {
  content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .5em;
  background: var(--teal); border-radius: 50%; vertical-align: .1em;
}

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-top: .7rem; padding-bottom: .7rem; }
.brand img { width: 210px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.6rem; }
.nav a {
  color: var(--navy-3); text-decoration: none; font-weight: 700; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .04em; padding: .35rem 0; border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.nav .nav-call a {
  display: inline-block; background: var(--navy); color: #fff; border: 0; border-radius: var(--radius);
  padding: .55rem 1rem; text-transform: none; letter-spacing: 0; font-size: .95rem;
}
.nav .nav-call a:hover { background: var(--blue); }

/* Buttons */
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; letter-spacing: .02em; font-size: .95rem;
  background: var(--teal); color: var(--navy-3); border: 2px solid var(--teal);
}
.btn:hover { background: #8fd5e0; border-color: #8fd5e0; color: var(--navy-3); }
.btn-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy-3); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.actions.flush { margin-top: 0; }
.actions.center { justify-content: center; }
.checks.spaced { margin-top: 2rem; }
.note { margin-top: 2rem; color: var(--muted); }

/* Hero */
.hero {
  position: relative; color: #eef4fa; background: var(--navy-3) right center / cover no-repeat;
  background-image: linear-gradient(90deg, rgba(4, 28, 56, .95) 0%, rgba(4, 28, 56, .82) 42%, rgba(4, 28, 56, .15) 100%), url("/assets/img/hero-1600.jpg");
}
.hero .wrap { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 span { color: var(--teal); }
.hero p { max-width: 34rem; font-size: 1.15rem; color: #dbe6f1; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-3); background: var(--teal); padding: .25rem .6rem; border-radius: 3px; margin-bottom: 1rem;
}

/* Page head (subpages) */
.page-head {
  color: #dbe6f1; background: var(--navy-3) center / cover no-repeat;
  background-image: linear-gradient(90deg, rgba(4, 28, 56, .94) 0%, rgba(4, 28, 56, .8) 60%, rgba(4, 28, 56, .6) 100%), url("/assets/img/pasek-1600.jpg");
}
.page-head .wrap { padding-top: 3.25rem; padding-bottom: 3.25rem; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head .lead { max-width: 44rem; margin: 0; font-size: 1.1rem; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.25rem) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.12rem; }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.top { align-items: start; }
}

.photo { border-radius: var(--radius); box-shadow: 0 14px 34px rgba(6, 33, 63, .14); }
.photo-frame { position: relative; max-width: 540px; padding: 0 1.5rem 1.5rem 0; }
.photo-frame::before {
  content: ""; position: absolute; right: 0; bottom: 0; width: 70%; height: 70%;
  background: var(--teal); border-radius: var(--radius);
}
.photo-frame .photo { position: relative; }

/* Facts band */
.facts {
  color: #fff; background: var(--navy-3) center / cover no-repeat;
  background-image: linear-gradient(rgba(4, 28, 56, .8), rgba(4, 28, 56, .8)), url("/assets/img/pasek-1600.jpg");
}
.facts .wrap { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-top: 2.75rem; padding-bottom: 2.75rem; }
.fact strong { display: block; font-size: clamp(1.8rem, 3.6vw, 2.4rem); line-height: 1.1; color: var(--teal); }
.fact span { color: #dbe6f1; }

/* Check list */
.checks { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.checks li { position: relative; padding: .35rem 0 .35rem 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .62rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--teal) no-repeat center / 70%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%2306213f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.checks.ruled li { border-bottom: 1px solid var(--line); }
.checks.ruled li:last-child { border-bottom: 0; }

/* Cards */
.cards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards.c2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; border-top: 4px solid var(--teal);
}
.card h3 { margin-bottom: .5em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .more { font-weight: 700; text-decoration: none; }
.icon {
  display: inline-flex; align-items: center; justify-content: center; width: 2.8rem; height: 2.8rem; margin-bottom: 1rem;
  border-radius: 50%; background: var(--teal-soft); color: var(--navy);
}
.icon svg { width: 1.45rem; height: 1.45rem; }

/* Service lists (offer page) */
.service { scroll-margin-top: 6rem; }
.service + .service { margin-top: 3rem; }
.service-grid { display: grid; gap: .25rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .service-grid { grid-template-columns: 1fr 1fr; } }
.forms { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.forms li { background: var(--teal-soft); color: var(--navy-3); font-weight: 600; padding: .35rem .8rem; border-radius: 999px; font-size: .95rem; }

.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.toc a {
  display: inline-block; padding: .45rem .9rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem;
  color: #fff; border: 1px solid rgba(255, 255, 255, .45);
}
.toc a:hover { background: var(--teal); border-color: var(--teal); color: var(--navy-3); }

/* Long text */
.prose { max-width: 48rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }

/* Offices */
.office { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.office h2, .office h3 { margin-bottom: .2em; }
.office .hours { color: var(--muted); margin-bottom: 1rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list .label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list .value { font-size: 1.2rem; font-weight: 700; color: var(--navy-3); }
.contact-list .value a { color: var(--navy-3); text-decoration-color: var(--teal); text-decoration-thickness: 3px; }
.contact-list .map { font-size: .95rem; }

/* CTA band */
.cta { background: var(--teal); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.cta h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta p { margin: .3rem 0 0; color: var(--navy-3); }

/* Footer */
.site-footer { background: var(--navy-3); color: #b3c3d4; font-size: .95rem; }
.site-footer a { color: #eaf1f8; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding: 3rem 0 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .brand { display: inline-block; background: #fff; padding: .6rem .8rem; border-radius: var(--radius); margin-bottom: 1rem; }
.site-footer .brand img { width: 170px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  border-top: 1px solid #1c3a5c; padding: 1.25rem 0 1.5rem; font-size: .85rem; color: #8ea3ba;
}
.footer-bottom a { color: #b3c3d4; }

/* 404 */
.notfound { text-align: center; }
.notfound .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: .5rem; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; }
  .nav ul { justify-content: center; gap: .25rem 1.1rem; }
  .topbar .wrap, .topbar .group { justify-content: center; text-align: center; }
  .hero { background-image: linear-gradient(rgba(4, 28, 56, .86), rgba(4, 28, 56, .86)), url("/assets/img/hero-960.jpg"); background-position: 70% center; }
  .cta .wrap { text-align: center; justify-content: center; }
}
