/* Goltech — style strony. Jeden plik, bez frameworków. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #14222e;
  --ink-soft: #4a5965;
  --paper: #f3f5f6;
  --white: #ffffff;
  --rule: #d6dde2;
  --night: #0f0b26;          /* tło termogramu */
  --amber: #f08a1c;          /* akcent: najcieplejszy punkt skali */
  --amber-ink: #8a4300;      /* akcent na jasnym tle (kontrast AA) */
  --thermal: linear-gradient(90deg, #0e0a2a 0%, #3b137a 18%, #9a1e83 38%, #dd3b3a 58%, #f38b1e 76%, #fbd15b 90%, #fff6cf 100%);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6; font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber-ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-stretch: 80%; font-weight: 760; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 5.4vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- nagłówek ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.brand-text { font-stretch: 75%; font-weight: 800; font-size: 26px; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-weight: 500; }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--amber); border-radius: 0; }
.header-phone { text-decoration: none; font-weight: 650; white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; }
.header-phone:hover { background: #24384a; color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .header-phone { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--rule); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--amber-ink); }
  .nav .nav-phone { display: block; font-weight: 700; border-bottom: 0; }
}
.nav .nav-phone { display: none; }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--radius); font-weight: 650; text-decoration: none; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font-size: 16px; }
.btn:hover { background: #24384a; border-color: #24384a; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--white); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-bottom: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 15px; }
.hero-facts strong { color: var(--ink); font-weight: 650; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* termogram — jedyny „głośny” element strony */
.thermo { margin: 0; background: var(--night); color: #e9e6ff; border-radius: 10px; padding: 18px 18px 16px; box-shadow: 0 30px 60px -30px rgba(15, 11, 38, .55); }
.thermo-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: #aaa3d6; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.thermo-top span { white-space: nowrap; }
.thermo-top .rec { display: inline-flex; align-items: center; gap: 6px; }
.thermo-top .rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5a4a; }
.thermo-stage { position: relative; }
.thermo svg { width: 100%; height: auto; display: block; border-radius: 4px; }
.thermo svg .t { transition: fill .9s ease; }
.readout { position: absolute; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; background: rgba(15, 11, 38, .78); padding: 3px 8px; border-radius: 3px; white-space: nowrap; pointer-events: none; transition: opacity .3s; }
.scale { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 12px; font-size: 13px; font-variant-numeric: tabular-nums; color: #aaa3d6; }
.scale-bar { height: 8px; border-radius: 4px; background: var(--thermal); }
.thermo-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; background: rgba(255, 255, 255, .06); padding: 4px; border-radius: 8px; }
.thermo-switch button { font: inherit; font-size: 15px; font-weight: 600; color: #cfc9f5; background: transparent; border: 0; padding: 10px 8px; border-radius: 6px; cursor: pointer; }
.thermo-switch button[aria-pressed="true"] { background: #fff; color: var(--night); }
.thermo-note { font-size: 13px; color: #aaa3d6; margin: 10px 2px 0; max-width: none; }

/* ---------- sekcje ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.white { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.section-head p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* indeks usług: kolumny jak w spisie treści, nie karty */
.svc-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.svc-group h3 { font-size: 19px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.svc-group > p { font-size: 15px; color: var(--ink-soft); margin: 10px 0 12px; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 550; line-height: 1.35; }
.svc-list a:hover { color: var(--amber-ink); }
.tag-new { font-size: 12px; font-weight: 650; color: var(--amber-ink); margin-left: 6px; }
@media (max-width: 1000px) { .svc-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-groups { grid-template-columns: 1fr; } }

/* proces — prawdziwa sekwencja kroków */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.steps li { counter-increment: step; padding: 0 20px 0 0; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); font-weight: 750; margin-bottom: 18px; background: var(--white); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 20px; left: 40px; right: 0; height: 2px; background: var(--rule); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { padding: 0 0 0 60px; }
  .steps li::before { position: absolute; left: 0; top: -4px; margin: 0; }
  .steps li::after { top: 40px; left: 19px; right: auto; width: 2px; height: calc(100% - 16px); }
}

/* przed / po */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }
.pair { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair div { position: relative; }
.pair img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 4px; }
.pair .lbl { position: absolute; left: 8px; bottom: 8px; font-size: 13px; font-weight: 650; background: rgba(20, 34, 46, .8); color: #fff; padding: 2px 9px; border-radius: 3px; }
.pair div:last-child .lbl { background: var(--amber); color: var(--night); }

/* wideo i modele 3D: ładowane dopiero po kliknięciu */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
@media (max-width: 900px) { .media-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .media-grid { grid-template-columns: 1fr; } }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--night); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed button { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: var(--night) center / cover no-repeat; color: #fff; font: inherit; }
.embed button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,11,38,.05), rgba(15,11,38,.6)); }
.embed .play { position: absolute; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; }
.embed .play::before { content: ""; width: 34px; height: 34px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%230f0b26'/%3E%3C/svg%3E") center / 20px no-repeat; }
.embed.yt button { background-image: var(--thermal); }
.media-cap { font-size: 15px; font-weight: 550; margin: 10px 0 0; }
.media-note { font-size: 14px; color: var(--ink-soft); margin-top: 24px; }

/* zastosowania drona */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .uses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .uses { grid-template-columns: 1fr; } }
.uses figure { margin: 0; }
.uses img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }
.uses h3 { font-size: 18px; margin-bottom: 4px; }
.uses p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* zaufali nam */
.clients { columns: 2; column-gap: 48px; list-style: none; padding: 0; margin: 0; }
.clients li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 550; }
@media (max-width: 640px) { .clients { columns: 1; } }

/* pasek kontaktu */
.cta { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.cta .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 64px; align-items: center; }
.cta h2 { margin-bottom: 12px; }
.cta p { color: #c3ced6; margin: 0; }
.cta-lines { display: grid; gap: 8px; }
.cta-lines a { color: #fff; text-decoration: none; font-stretch: 85%; font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; }
.cta-lines a:hover { color: var(--amber); }
.cta-lines span { display: block; font-size: 14px; color: #93a3ae; font-weight: 500; font-stretch: 100%; }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- podstrona usługi ---------- */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); background: var(--white); border-bottom: 1px solid var(--rule); }
.crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.page-head h1 { max-width: 22ch; font-size: clamp(34px, 4.6vw, 54px); }
.page-head .lead { margin-bottom: 0; }
.page-body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 48px; padding-bottom: 80px; }
@media (max-width: 900px) { .page-body .wrap { grid-template-columns: 1fr; } }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1em; max-width: 68ch; }
.prose li { padding-left: 22px; position: relative; margin-bottom: 10px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
.prose figure { margin: 0 0 36px; }
.prose figure img { border-radius: var(--radius); width: 100%; max-height: 420px; object-fit: cover; }
.aside-box { background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 24px; position: sticky; top: 96px; }
.aside-box h2 { font-size: 21px; margin-bottom: 8px; }
.aside-box p { font-size: 15px; color: var(--ink-soft); }
.aside-box .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.aside-related { margin-top: 28px; }
.aside-related h3 { font-size: 16px; margin-bottom: 4px; }
.aside-related a { display: block; font-size: 15px; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }

/* o firmie */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about img { border-radius: 8px; }
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .certs { grid-template-columns: 1fr 1fr; } }
.certs a { text-decoration: none; display: block; }
.certs img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.certs span { display: block; font-size: 14px; margin-top: 8px; font-weight: 550; }

/* kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-big a { display: block; text-decoration: none; font-stretch: 82%; font-weight: 750; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; margin-bottom: 4px; }
.contact-big small { display: block; color: var(--ink-soft); font-size: 15px; margin-bottom: 24px; }
.data-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; }
.data-list dt { color: var(--ink-soft); }
.data-list dd { margin: 0; font-weight: 550; }

/* ---------- stopka ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--rule); padding: 40px 0 28px; font-size: 15px; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 16px; color: var(--ink); font-stretch: 100%; margin-bottom: 8px; }
.site-footer a { color: var(--ink-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 20px; font-size: 14px; }
.eu-poster { max-width: 820px; }
.eu-poster img { border: 1px solid var(--rule); }

.notfound { min-height: 50vh; display: grid; align-content: center; }
