/* ==========================================================================
   Pracownia Modelowania i Analizy Danych – GIG-PIB
   Plain CSS, no build step. Colours and fonts are custom properties below.
   Layout and look follow the previous WordPress (The7) site.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  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: "Open Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-italic-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-italic-latin.woff2") format("woff2");
  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 Awesome 6 Free (icons CC BY 4.0, font SIL OFL 1.1) */
@font-face {
  font-family: "FA Solid";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../fonts/fa-solid-900.woff2") format("woff2");
}
@font-face {
  font-family: "FA Regular";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/fa-regular-400.woff2") format("woff2");
}
/* Pe-icon-7-stroke (Pixeden, free license) – the four icons on the home page */
@font-face {
  font-family: "Pe-icon-7-stroke";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/pe-icon-7-stroke.woff") format("woff");
}

/* ---------- Tokens ---------- */
:root {
  --green: #008142;          /* accent: buttons, links, icons on white */
  --green-dark: #006b37;
  --teal: #3bbaa8;           /* icons on black */
  --blue: #1e73be;           /* "industry" icons on Oferta */
  --black: #000;
  --bar: #0d0d0d;            /* header bar */
  --text: #85868c;           /* body text on black */
  --text-on-white: #747579;  /* body text in white boxes (a bit darker for contrast) */
  --heading: #333;
  --white: #fff;
  --muted: #b4b5bb;
  --title-bg: #f2f2f2;
  --font: "Open Sans", Helvetica, Arial, Verdana, sans-serif;
  --wrap: 1200px;
  --gutter: 25px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 20px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 10px; top: -100px; z-index: 1000;
  padding: 10px 16px; background: var(--green); color: var(--white);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 10px; color: var(--white); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Icons ---------- */
.ico { display: inline-block; font-style: normal; font-weight: 900; font-family: "FA Solid"; line-height: 1; speak: never; }
.ico--r { font-family: "FA Regular"; font-weight: 400; }
.ico-cloud::before { content: "\f0c2"; }
.ico-cubes::before { content: "\f1b3"; }
.ico-gears::before { content: "\f085"; }
.ico-leaf::before { content: "\f06c"; }
.ico-industry::before { content: "\f275"; }
.ico-star::before { content: "\f005"; }
.ico-folder-open::before { content: "\f07c"; }
.ico-users::before { content: "\f0c0"; }
.ico-thumbs-up::before { content: "\f164"; }
.ico-trophy::before { content: "\f091"; }
.ico-th::before { content: "\f00a"; }
.ico-th-large::before { content: "\f009"; }
.ico-list-alt::before { content: "\f022"; }
.ico-flask::before { content: "\f0c3"; }
.ico-book::before { content: "\f02d"; }
.ico-quote::before { content: "\f10e"; }
.ico-calendar::before { content: "\f073"; }
.ico-address-card::before { content: "\f2bb"; }
.ico-rocket::before { content: "\f135"; }
.ico-angle-right::before { content: "\f105"; }
.ico-arrow-right::before { content: "\f061"; }
.ico-comments::before { content: "\f086"; }
.ico-mobile::before { content: "\f3cd"; }
.ico-envelope::before { content: "\f0e0"; }
.ico-location::before { content: "\f3c5"; }
.ico-clock::before { content: "\f017"; }
.ico-road::before { content: "\f018"; }
.ico-arrow-up::before { content: "\f062"; }
.pe { display: inline-block; font-family: "Pe-icon-7-stroke"; font-style: normal; font-weight: 400; line-height: 1; speak: never; }
.pe-light::before { content: "\e643"; }
.pe-display::before { content: "\e65d"; }
.pe-science::before { content: "\e619"; }
.pe-chat::before { content: "\e66d"; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: var(--green); color: var(--white);
  border: 0; border-radius: 3px;
  font: 700 14px/16px var(--font);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--green-dark); color: #ededed; }
.btn--s { padding: 8px 14px; font-size: 12px; line-height: 14px; }
.btn--l { padding: 14px 26px; font-size: 18px; line-height: 22px; }
.btn--l .ico { font-size: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 0 12px 0 20px;
  background: var(--bar);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 0 15px rgba(0,0,0,.6); }
.site-header__name {
  margin-right: auto;
  color: var(--white); font-weight: 700; font-size: 15px; text-decoration: none;
  opacity: 0; transition: opacity .3s;
}
.site-header.is-scrolled .site-header__name, .site-header__name:focus-visible { opacity: 1; }
.site-header__name:hover { color: var(--white); }
.home .site-header:not(.is-scrolled) { background: transparent; }
.menu-toggle {
  width: 42px; height: 42px; padding: 0;
  display: none; align-items: center; justify-content: center;
  background: var(--black); border: 0; border-radius: 50%; cursor: pointer;
}
.menu-toggle__lines, .menu-toggle__lines::before, .menu-toggle__lines::after {
  display: block; width: 22px; height: 3px; background: var(--white); border-radius: 2px;
  transition: transform .3s, background-color .3s;
}
.menu-toggle__lines { position: relative; }
.menu-toggle__lines::before, .menu-toggle__lines::after { content: ""; position: absolute; left: 0; }
.menu-toggle__lines::before { top: -7px; }
.menu-toggle__lines::after { top: 7px; }
.menu-open .menu-toggle__lines { background: transparent; }
.menu-open .menu-toggle__lines::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle__lines::after { transform: translateY(-7px) rotate(-45deg); }

/* Without JavaScript the menu is a plain row of links in the header bar */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.main-nav a { color: var(--white); font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); }

/* With JavaScript: hamburger + full-screen overlay */
.js .menu-toggle { display: inline-flex; position: relative; z-index: 120; }
.js .main-nav {
  position: fixed; inset: 0; z-index: 110;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.92);
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility 0s .35s;
}
.menu-open .main-nav { opacity: 1; visibility: visible; transition: opacity .35s; }
.js .main-nav ul { flex-direction: column; align-items: center; gap: 6px; }
.js .main-nav a { display: block; padding: 4px 10px; font-size: 24px; line-height: 1.5; }
.menu-open { overflow: hidden; }

/* ---------- Page title band ---------- */
.page-title {
  margin-top: 60px;
  height: 180px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--title-bg); text-align: center;
}
.page-title h1 { margin: 0; color: var(--heading); font-size: 34px; line-height: 44px; }
.breadcrumbs { margin: 5px 0 0; padding: 0; list-style: none; display: flex; gap: 6px; font-size: 13px; line-height: 23px; color: #9a9ba1; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #c8c9ce; }
.breadcrumbs a { color: #9a9ba1; text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); }

/* ---------- Generic sections ---------- */
.section { padding: 70px 0; }
.section--tight { padding-top: 0; }
.box { background: var(--white); color: var(--text-on-white); }

.section-title { margin: 0 0 50px; text-align: center; }
.section-title h2 {
  margin: 0 0 6px;
  color: #6e6f74; font-size: 18px; line-height: 27px; text-transform: uppercase;
}
.section-title__sep { display: flex; align-items: center; justify-content: center; gap: 10px; color: #6e6f74; font-size: 16px; }
.section-title__sep::before, .section-title__sep::after { content: ""; width: 50px; height: 3px; background: #6e6f74; }

.grid { display: grid; gap: 50px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Icon box on black (Pracownia: patents, resources …) */
.icon-box { margin-bottom: 30px; }
.icon-box__icon { display: block; margin: 0 auto 20px; color: var(--teal); font-size: 60px; text-align: center; }
.icon-box h3 { margin-bottom: 15px; color: var(--white); font-size: 20px; text-align: center; }
.icon-box ul { font-size: 14px; line-height: 24px; }
.icon-box ul ul { margin: 6px 0 10px; }
.icon-box p { font-size: 14px; line-height: 24px; margin-bottom: 10px; }

/* Offer cards (4 columns) */
.offer-card { text-align: center; }
.offer-card > .ico { display: block; margin-bottom: 20px; color: var(--teal); font-size: 64px; }
.offer-card h2, .offer-card h3 { margin-bottom: 15px; color: var(--white); font-size: 20px; line-height: 26px; }
.offer-card p { font-size: 14px; line-height: 24px; }
.offer-card .btn { margin-top: 10px; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 90px 0 60px;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 440px); justify-content: center; align-items: center; gap: 40px; }
.hero__text { position: relative; padding-left: 40px; }
.hero__text::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 4px; height: 100%; max-height: 350px; background: var(--green);
  transform-origin: top; animation: grow-y 1.8s cubic-bezier(.77,0,.18,1) both;
}
.hero h1 { margin: 0; color: var(--white); font-weight: 400; line-height: 1.05; }
.hero__big { display: block; font-size: clamp(56px, 6.8vw, 104px); line-height: 1.15; text-transform: uppercase; animation: slide-in 1.8s cubic-bezier(.77,0,.18,1) both; }
.hero__sub { display: block; margin-top: 10px; font-size: clamp(26px, 3.2vw, 46px); text-transform: uppercase; animation: slide-in 1.8s .1s cubic-bezier(.77,0,.18,1) both; }
.hero__sub { white-space: nowrap; }
.hero__lead { margin: 30px 0 0; max-width: 663px; color: var(--white); font-size: clamp(19px, 1.8vw, 26px); line-height: 1.4; animation: fade-in 1.5s .8s both; }
.hero__badge {
  position: absolute; top: 6px; left: 470px;
  width: 114px; height: 114px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 4px solid var(--green); border-radius: 50%;
  color: var(--green); font-size: 16px; font-weight: 700; line-height: 20px; text-decoration: none; text-align: center;
  animation: fade-in 1.5s 1.2s both, pulse 1.6s 4s ease-in-out infinite alternate;
  transition: border-color .3s, background-color .3s, color .3s;
}
.hero__badge span:first-child { font-size: 14px; }
.hero__badge:hover, .hero__badge:focus-visible { border-color: #007aff; background: rgba(0,122,255,.1); color: var(--white); }
.hero__links { display: flex; flex-wrap: wrap; gap: 30px 0; margin: 45px 0 0; padding: 0; list-style: none; }
.hero__links a {
  width: 150px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--white); font-size: 22px; font-weight: 700; line-height: 32px; text-decoration: none;
  transition: color .3s;
}
.hero__links .pe { color: var(--teal); font-size: 84px; transition: opacity .3s, transform .3s; }
.hero__links a:hover, .hero__links a:focus-visible { color: var(--teal); }
.hero__links a:hover .pe, .hero__links a:focus-visible .pe { opacity: .75; transform: scale(.9); }
.hero__links li { animation: rise 1.8s .6s cubic-bezier(.77,0,.18,1) both; }
.hero__links li:nth-child(2) { animation-delay: .7s; }
.hero__links li:nth-child(3) { animation-delay: .8s; }
.hero__links li:nth-child(4) { animation-delay: .9s; }

/* Logo: transparent tiles in a black PNG over a slowly rotating gradient disc */
.hero__logo { position: relative; width: 150%; aspect-ratio: 1; margin: 0 -25%; overflow: hidden; border-radius: 50%; }
.hero__logo::before {
  content: ""; position: absolute; inset: 2%;
  border-radius: 50%;
  background: linear-gradient(0deg, #dc242e 6%, #dc242e 25%, #ffbd36 45%, #ffbd36 50%, #20b9b7 74%, #20b9b7 94%);
  animation: spin 24s linear infinite;
}
.hero__logo img { position: relative; width: 100%; height: 100%; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes slide-in { from { transform: translateX(-60px); opacity: 0; clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(60px); } }
@keyframes pulse { to { transform: scale(.96); } }

/* ---------- O pracowni ---------- */
.about { padding: 0 0 70px; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.44fr) minmax(0, 1fr); gap: 50px; }
.about__box { padding: 50px 50px 40px; font-size: 18px; line-height: 27px; }
.about__box h2 { margin: 0 0 20px; color: var(--heading); font-size: 34px; line-height: 44px; text-align: center; }
.about__box h2::after { content: ""; display: block; width: 100px; height: 4px; margin: 20px auto 0; background: var(--green); }
.about__box p { margin-bottom: 10px; }
.about__box ul { margin-bottom: 10px; }
.about__img { width: 100%; height: 100%; object-fit: cover; }

.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 60px 0 0; padding: 0; list-style: none; text-align: center; }
.counters .ico { color: var(--green); font-size: 32px; }
.counters strong { display: block; padding: 8px 0 0; color: var(--heading); font-size: 34px; line-height: 44px; }
.counters span { display: block; color: var(--heading); font-weight: 700; font-size: 18px; }

/* ---------- Oferta: area boxes ---------- */
.area { padding: 50px; margin-bottom: 50px; font-size: 15px; line-height: 1.55; }
.area > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 45px; color: var(--heading); font-size: 30px; line-height: 1.3; }
.area > h2 .ico { flex: 0 0 auto; color: var(--green); font-size: 72px; }
.area h3 { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 10px; color: var(--heading); font-size: 17px; line-height: 1.4; }
.area h3 .ico { flex: 0 0 26px; color: var(--green); font-size: 22px; text-align: center; }
.area h3 .ico-industry { color: var(--blue); }
.area p, .area ul { margin: 0 0 30px; }
.area p + ul { margin-top: -22px; }
.area strong { color: #555; }
.area__sep { height: 0; margin: 10px auto 50px; width: 69%; border: 0; border-top: 3px dashed var(--green); }

/* ---------- Testimonials ---------- */
.testimonials { padding: 70px 0 60px; text-align: center; }
.quote-slider { position: relative; max-width: 800px; margin: 0 auto; }
.quote { margin: 0; }
.js .quote:not(.is-active) { display: none; }
.quote p { margin: 0 0 20px; color: var(--white); font-size: 24px; font-style: italic; line-height: 36px; }
.quote footer { color: var(--teal); font-weight: 700; font-size: 18px; }
.quote-slider__nav { display: none; justify-content: center; gap: 12px; margin-top: 25px; }
.js .quote-slider__nav { display: flex; }
.quote-slider__nav button {
  width: 14px; height: 14px; padding: 0;
  border: 2px solid var(--green); border-radius: 50%; background: transparent; cursor: pointer;
}
.quote-slider__nav button[aria-current="true"] { background: var(--green); }

/* ---------- Call to action ---------- */
.cta { padding: 0 0 50px; }
.cta__box { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 30px; padding: 45px 50px; text-align: center; }
.cta__lead { margin: 0; color: var(--green); font-size: 28px; line-height: 1.2; }
.cta__big { display: block; color: var(--heading); font-size: 60px; line-height: 1.1; }
.cta__hours { margin: 0; color: var(--green); font-weight: 700; font-size: 19px; }
.cta__phone { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 700; font-size: 32px; line-height: 1.3; text-decoration: none; }
.cta__phone:hover { color: var(--green); }

/* ---------- Projekty ---------- */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 37px; align-items: start; margin-bottom: 70px; }
.projects__col { display: grid; gap: 27px; }
.project img { width: 100%; aspect-ratio: 7 / 4; object-fit: cover; background: var(--white); }
.project__body { margin-top: 23px; padding: 18px 20px 12px; border: 3px solid var(--white); font-size: 14px; line-height: 23px; }
.project h3 { margin: 0 0 15px; color: var(--white); font-size: 18px; line-height: 18px; text-align: center; }
.project p, .project ul { margin-bottom: 12px; }
.project a { color: #4ea3ff; }

/* ---------- Kontakt ---------- */
.contact-box { padding: 50px 30px 60px; text-align: center; }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li + li { margin-top: 32px; }
.contact-list .ico { display: block; margin-bottom: 14px; color: var(--green); font-size: 32px; }
.contact-list h2 { margin: 0 0 4px; color: var(--green); font-size: 14px; line-height: 20px; }
.contact-list p, .contact-list a { margin: 0; color: var(--heading); font-weight: 700; font-size: 18px; line-height: 28px; text-decoration: none; }
.contact-list a:hover { color: var(--green); }
.contact-list .contact-list__big { font-size: 28px; line-height: 36px; }

/* ---------- Plain text pages (Deklaracja dostępności, 404) ---------- */
.prose-box { padding: 50px 60px; font-size: 16px; line-height: 1.65; }
.prose-box h2 { margin: 1.6em 0 .5em; color: var(--heading); font-size: 24px; }
.prose-box h3 { margin: 1.3em 0 .4em; color: var(--heading); font-size: 19px; }
.prose-box > :first-child, .prose-box section:first-child > :first-child { margin-top: 0; }
.prose-box a:not(.btn) { color: var(--green-dark); }

/* ---------- 404 ---------- */
.notfound {
  min-height: calc(100vh - 60px); min-height: calc(100svh - 60px);
  margin-top: 60px;
  display: flex; align-items: center;
  padding: 60px 0;
}
.notfound__inner { display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 380px); justify-content: center; align-items: center; gap: 60px; }
.notfound__text { position: relative; padding-left: 40px; }
.notfound__text::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; background: var(--green); }
.notfound__code {
  display: inline-block; margin: 0 0 10px;
  font-size: clamp(110px, 16vw, 200px); font-weight: 700; line-height: .9; letter-spacing: -.02em;
  color: var(--teal);
  background: linear-gradient(90deg, #dc242e 0%, #ffbd36 50%, #20b9b7 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: slide-in 1.4s cubic-bezier(.77,0,.18,1) both;
}
.notfound h1 { margin: 0 0 15px; color: var(--white); font-size: clamp(26px, 3.2vw, 40px); font-weight: 400; text-transform: uppercase; }
.notfound__lead { max-width: 560px; margin: 0 0 30px; color: #c9cacf; font-size: 18px; line-height: 1.6; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 15px; margin: 0 0 45px; }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--green); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--green); color: var(--white); }
.notfound__hint { margin: 0 0 15px; color: var(--text); font-size: 15px; text-transform: uppercase; letter-spacing: .05em; }
.notfound .hero__links { margin-top: 0; }
.notfound .hero__links a { width: 130px; font-size: 18px; }
.notfound .hero__links .pe { font-size: 64px; }
.notfound .hero__logo { width: 100%; margin: 0; }

/* ---------- Footer ---------- */
.footer-widgets { padding: 50px 0 30px; font-size: 14px; line-height: 21px; }
.footer-widgets .grid { gap: 50px; }
.footer-widgets h2 { margin: 0 0 15px; color: var(--white); font-size: 15px; line-height: 23px; }
.footer-widgets p { margin: 0 0 10px; }
.footer-widgets a { color: var(--text); }
.footer-widgets a:hover { color: var(--white); }
.contact-info { margin: 0; padding: 0; list-style: none; }
.contact-info li { margin-bottom: 15px; }
.contact-info b { display: block; color: var(--white); font-weight: 400; margin-bottom: 4px; }
.contact-info a { text-decoration: none; }
.skills { margin: 0; padding: 0; list-style: none; }
.skills li { margin-top: 15px; color: var(--white); }
.skill-bar { height: 6px; margin-top: 6px; background: #1a1a1a; }
.skill-bar span {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(-45deg, var(--green) 0 10px, #1f9a5d 10px 20px);
  transition: width 1.5s ease;
}
.skills.is-visible .skill-bar--100 span, html:not(.js) .skill-bar--100 span { width: 100%; }
.skills.is-visible .skill-bar--80 span, html:not(.js) .skill-bar--80 span { width: 80%; }
.skills.is-visible .skill-bar--70 span, html:not(.js) .skill-bar--70 span { width: 70%; }

.bottom-bar { padding: 18px 0 22px; font-size: 15px; line-height: 23px; }
.bottom-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 30px; }
.bottom-bar p { margin: 0; }
.bottom-bar ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.bottom-bar a { color: var(--text); text-decoration: none; }
.bottom-bar a:hover, .bottom-bar a[aria-current="page"] { color: var(--white); text-decoration: underline; }

.scroll-top {
  position: fixed; right: 10px; bottom: 10px; z-index: 90;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4); color: var(--white); text-decoration: none; border-radius: 2px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transition: opacity .3s; }
.scroll-top:hover { background: var(--green); color: var(--white); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta__box { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 990px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__logo { order: -1; width: min(70vw, 300px); margin: 0 auto; }
  .hero__text { padding-left: 0; }
  .hero__sub { white-space: normal; }
  .hero__text::before, .hero__badge { display: none; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__links { justify-content: center; }
  .notfound__inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .notfound .hero__logo { order: -1; width: min(50vw, 200px); margin: 0 auto; }
  .notfound__text { padding-left: 0; }
  .notfound__text::before { display: none; }
  .notfound__lead { margin-left: auto; margin-right: auto; }
  .notfound__actions { justify-content: center; }
  .about__grid { grid-template-columns: 1fr; }
  .about__img { max-height: 420px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; gap: 20px; }
  .projects { grid-template-columns: 1fr; gap: 27px; max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .site-header__name { display: none; }
  .site-header__cta span { display: none; }
  .site-header__cta { padding: 12px; }
  .page-title { height: 140px; }
  .page-title h1 { font-size: 28px; line-height: 36px; }
  .section { padding: 50px 0; }
  .grid--4 { grid-template-columns: 1fr; }
  .about__box, .area, .prose-box { padding: 30px 20px; }
  .area > h2 { font-size: 24px; }
  .area > h2 .ico { font-size: 48px; }
  .cta__box { padding: 30px 20px; }
  .cta__big { font-size: 44px; }
  .cta__phone { font-size: 26px; }
  .counters { grid-template-columns: 1fr; }
  .hero__links { gap: 20px 10px; }
  .hero__links a { width: 130px; font-size: 18px; }
  .hero__links .pe { font-size: 72px; }
  .quote p { font-size: 19px; line-height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
