/* Grupa AVD — wspólny arkusz stylów: strona główna + artykuły. Jedno źródło designu dla całej witryny. */
  :root{
    --navy: #1b2027;
    --navy-2: #232a33;
    --blue: #275bb6;
    --blue-deep: #1c4693;
    --green: #027445;
    --paper: #f4f5f3;
    --paper-2: #eceae4;
    --ink: #1b2027;
    --ink-soft: #565f6b;
    --steel: #8a919c;
    --line: #d8d5cc;
    --white: #ffffff;
    --radius: 2px;
  }

  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  body{
    margin:0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1,h2,h3{
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0;
    color: var(--navy);
  }
  .mono{
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  a{ color: inherit; }
  img{ display:block; max-width:100%; }
  .wrap{
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
  }
  section{ position: relative; }
  section[id]{ scroll-margin-top: 96px; }

  /* hazard divider */
  .hazard{
    height: 8px;
    background: repeating-linear-gradient(
      -45deg,
      var(--navy),
      var(--navy) 14px,
      var(--blue) 14px,
      var(--blue) 28px
    );
    opacity: 0.9;
  }

  /* ---------- HEADER ---------- */
  header{
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 3px solid var(--blue);
    box-shadow: 0 2px 10px rgba(27,32,39,0.06);
  }
  .header-inner{
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 32px;
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 24px;
  }
  .brand{
    display:flex;
    align-items:center;
    gap: 12px;
  }
  .brand a{ display:flex; align-items:center; line-height:0; }
  .brand img{ height: 46px; width:auto; }
  nav{
    display:flex;
    align-items:center;
    gap: 28px;
  }
  nav a{
    color: var(--ink-soft);
    text-decoration:none;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color .15s;
  }
  nav a:hover, nav a:focus-visible{ color: var(--blue); }
  .btn-call{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    background: var(--blue);
    color:#fff !important;
    padding: 9px 16px;
    border-radius: var(--radius);
    text-decoration:none;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s;
  }
  .btn-call:hover{ background: var(--blue-deep); }
  .nav-toggle{ display:none; }

  /* ---------- HERO ---------- */
  .hero{
    background: var(--navy);
    color: #fff;
    overflow: hidden;
  }
  .hero-grid{
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
    min-height: 560px;
  }
  .hero-copy{
    padding: 72px 48px 72px 32px;
    display:flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
  }
  .eyebrow{
    color: #9fb4dd;
    font-size: 0.72rem;
    font-weight: 600;
  }
  .eyebrow::before{
    content:"";
    display:inline-block;
    width: 22px;
    height: 2px;
    background: var(--green);
    margin-right: 10px;
    vertical-align: middle;
  }
  .hero h1{
    color:#fff;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 0.98;
    font-weight: 700;
  }
  .hero h1 span{
    display:block;
    color: #b9c6da;
    font-size: 0.36em;
    letter-spacing: 0.08em;
    margin-top: 10px;
    font-weight: 500;
  }
  .hero p{
    max-width: 46ch;
    color: #c9cfd8;
    font-size: 1.03rem;
  }
  .hero-actions{
    display:flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
  }
  .btn{
    display:inline-flex;
    align-items:center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: var(--radius);
    text-decoration:none;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    transition: all .15s;
  }
  .btn-primary{
    background: var(--blue);
    color: #fff;
  }
  .btn-primary:hover{ background: var(--blue-deep); }
  .btn-outline{
    border-color: rgba(255,255,255,0.35);
    color: #fff;
  }
  .btn-outline:hover{ border-color:#fff; background: rgba(255,255,255,0.06); }
  .btn svg{ width:17px; height:17px; flex-shrink:0; }

  .hero-meta{
    display:flex;
    gap: 28px;
    margin-top: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.12);
    flex-wrap: wrap;
  }
  .hero-meta div{ font-size: 0.82rem; }
  .hero-meta .mono{ color: var(--steel); font-size: 0.66rem; display:block; margin-bottom: 4px;}
  .hero-meta strong{ color:#fff; font-weight:600; }

  .hero-photo{
    position: relative;
    overflow: hidden;
  }
  .hero-photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.03);
  }
  .hero-photo::after{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(100deg, rgba(27,32,39,0.55) 0%, rgba(27,32,39,0.05) 30%, transparent 55%);
  }
  .hero-photo .tag{
    position:absolute;
    left: 22px;
    bottom: 26px;
    z-index: 2;
  }

  /* ---------- TAG (signature element) ---------- */
  .tag{
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--navy);
    color: #fff;
    padding: 7px 12px 7px 26px;
    border-radius: 1px;
    transform: rotate(-2deg);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    position: relative;
    display:inline-block;
  }
  .tag::before{
    content:"";
    position:absolute;
    left: 9px; top: 50%;
    transform: translateY(-50%);
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--paper);
    border: 1.5px solid #000;
  }
  .tag.blue{ background: var(--blue); }
  .tag.green{ background: var(--green); }

  /* ---------- SECTION HEADS ---------- */
  .section{ padding: 96px 0; }
  .section-head{
    max-width: 640px;
    margin-bottom: 64px;
  }
  .section-head .eyebrow{ color: var(--blue); }
  .section-head .eyebrow::before{ background: var(--green); }
  .section-head h2{
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    margin-top: 10px;
    color: var(--navy);
  }
  .section-head p{
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: 1.02rem;
    max-width: 56ch;
  }

  /* ---------- ABOUT ---------- */
  .about{ background: var(--white); }
  .about-grid{
    display:grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items:center;
  }
  .about-photo{
    position: relative;
    max-width: 320px;
    margin: 0 auto;
  }
  .about-photo .frame{
    border: 1px solid var(--line);
    padding: 10px;
    background: var(--paper);
  }
  .about-photo img{
    width:100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: saturate(0.95);
  }
  .about-photo .tag{
    position:absolute;
    top: -14px;
    right: -18px;
  }
  .about-text p{
    color: var(--ink-soft);
    margin: 0 0 18px;
    font-size: 1.02rem;
  }
  .about-text p:last-child{ margin-bottom:0; }
  .about-text strong{ color: var(--navy); }
  .facts{
    display:grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }
  .facts .mono{ font-size: 0.64rem; color: var(--steel); display:block; margin-bottom:6px; }
  .facts div span{ font-size: 0.93rem; color: var(--navy); font-weight: 600; display:block; }

  /* ---------- SERVICES ---------- */
  .services{ background: var(--paper-2); }
  .service-row{
    display:grid;
    grid-template-columns: 340px 1fr;
    gap: 56px;
    align-items:center;
    padding: 58px 0;
    border-top: 1px solid var(--line);
  }
  .service-row:last-child{ border-bottom: 1px solid var(--line); }
  .service-row.rev{ grid-template-columns: 1fr 340px; }
  .service-row.rev .service-photo{ order:2; }
  .service-row.rev .service-text{ order:1; }

  .service-photo{ position: relative; max-width: 300px; }
  .service-row.rev .service-photo{ justify-self:end; }
  .service-photo .frame{
    background: var(--white);
    border: 1px solid var(--line);
    padding: 8px;
  }
  .service-photo img{
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
  }
  .service-photo .tag{
    position:absolute;
    top: -12px;
    left: -14px;
  }
  .service-row.rev .service-photo .tag{ left:auto; right:-14px; }

  .service-text h3{
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 14px;
  }
  .service-text p{
    color: var(--ink-soft);
    font-size: 1rem;
    max-width: 54ch;
    margin:0;
  }

  /* ---------- FACILITY ---------- */
  .facility{ background: var(--navy); color:#fff; }
  .facility .section-head .eyebrow{ color:#9fb4dd; }
  .facility .section-head h2{ color:#fff; }
  .facility .section-head p{ color:#c9cfd8; }
  .facility-text h2{ color:#fff; }
  .facility-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items:center;
  }
  .facility-photo{ position: relative; max-width: 360px; }
  .facility-photo .frame{
    border: 1px solid rgba(255,255,255,0.18);
    padding: 10px;
  }
  .facility-photo img{
    width:100%;
    aspect-ratio: 3/4;
    object-fit: cover;
  }
  .facility-photo .tag{ position:absolute; top:-14px; right:-16px; }
  .facility-list{
    list-style:none;
    margin: 26px 0 0;
    padding:0;
    display:grid;
    gap: 14px;
  }
  .facility-list li{
    display:flex;
    gap: 12px;
    font-size: 0.98rem;
    color: #dfe3e8;
    align-items:flex-start;
  }
  .facility-list li::before{
    content:"";
    width: 8px; height:8px;
    background: var(--green);
    margin-top: 7px;
    flex-shrink:0;
  }
  .facility-text p{ color:#c9cfd8; margin: 0 0 8px; max-width: 50ch; }

  /* ---------- CONTACT ---------- */
  .contact{ background: var(--white); }
  .contact-grid{
    display:grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
  }
  .contact-card{
    background: var(--navy);
    color:#fff;
    padding: 40px 34px;
    align-self: start;
  }
  .contact-card h3{
    color:#fff;
    font-size: 1.2rem;
    margin-bottom: 24px;
  }
  .contact-item{
    display:flex;
    gap: 14px;
    margin-bottom: 22px;
    align-items:flex-start;
  }
  .contact-item svg{ width:20px; height:20px; flex-shrink:0; margin-top:2px; color: var(--green); }
  .contact-item .mono{ color: var(--steel); font-size: 0.62rem; display:block; margin-bottom:4px; }
  .contact-item a, .contact-item span.val{
    color:#fff; text-decoration:none; font-size: 1rem; font-weight:500;
  }
  .contact-item a:hover{ color: #9fb4dd; }
  .contact-btns{
    display:flex;
    flex-direction:column;
    gap: 12px;
    margin-top: 28px;
  }
  .contact-btns .btn{ justify-content:center; }

  .map-wrap{
    display:flex;
    flex-direction: column;
    gap: 16px;
  }
  .map-actions{
    display:flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  .map-actions .btn{
    padding: 12px 18px;
    font-size: 0.86rem;
  }
  .map-actions .btn-primary{ background: var(--blue); color:#fff; }
  .map-actions .btn-primary:hover{ background: var(--blue-deep); }
  .map-actions .btn-ghost{
    background: var(--paper-2);
    color: var(--navy);
    border-color: var(--line);
  }
  .map-actions .btn-ghost:hover{ background: var(--line); }
  .map-frame{
    border: 1px solid var(--line);
    padding: 8px;
    background: var(--paper);
  }
  .map-frame iframe{
    width: 100%;
    height: 380px;
    border: 0;
    display:block;
  }

  /* ---------- FOOTER ---------- */
  footer{
    background: var(--navy-2);
    color: var(--steel);
    padding: 34px 0;
    font-size: 0.82rem;
  }
  .footer-inner{
    display:flex;
    justify-content: space-between;
    align-items:center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-inner .brand{
    background: #fff;
    padding: 6px 12px;
  }
  .footer-inner .brand img{ height: 26px; }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 920px){
    .section{ padding: 64px 0; }
    .section-head{ margin-bottom: 44px; }
    nav{ display:none; }
    .hero-grid{ grid-template-columns: 1fr; min-height: auto; }
    .hero-photo{ height: 320px; order:-1; }
    .hero-copy{ padding: 48px 24px; }
    .about-grid{ grid-template-columns: 1fr; gap: 48px; }
    .facility-grid{ grid-template-columns: 1fr; }
    .facility-photo{ margin: 0 auto; }
    .service-row, .service-row.rev{
      grid-template-columns: 1fr;
      gap: 26px;
    }
    .service-row.rev .service-photo{ order:1; justify-self:start; }
    .service-row.rev .service-text{ order:2; }
    .service-photo{ max-width: 220px; }
    .contact-grid{ grid-template-columns: 1fr; }
    .wrap, .header-inner{ padding-left: 20px; padding-right: 20px; }
    .facts{ grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 480px){
    .hero-actions{ flex-direction: column; align-items: stretch; }
    .facts{ grid-template-columns: 1fr; }
  }

  :focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }

  /* ---------- SCROLL REVEAL ---------- */
  .reveal{
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
  }
  .reveal.is-visible{
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-group .reveal:nth-child(2){ transition-delay: .08s; }
  .reveal-group .reveal:nth-child(3){ transition-delay: .16s; }

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

  /* ---------- ARTICLE PAGES ---------- */
  .article-hero{
    background: var(--navy);
    color:#fff;
    padding: 56px 0 64px;
  }
  .breadcrumb{
    display:flex;
    flex-wrap:wrap;
    gap: 8px;
    align-items:center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 26px;
  }
  .breadcrumb a{ color: var(--steel); text-decoration:none; }
  .breadcrumb a:hover{ color:#fff; }
  .breadcrumb span.sep{ opacity:0.5; }
  .breadcrumb span.current{ color:#fff; }

  .article-hero h1{
    color:#fff;
    font-size: clamp(2.1rem, 4vw, 3rem);
    max-width: 18ch;
    line-height: 1.05;
  }
  .article-hero .lede{
    margin-top: 20px;
    max-width: 62ch;
    color: #c9cfd8;
    font-size: 1.08rem;
  }
  .article-hero-meta{
    display:flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 28px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--steel);
  }
  .article-hero-meta span{ display:inline-flex; align-items:center; gap:8px; }
  .article-hero-meta span::before{
    content:"";
    width:6px; height:6px;
    background: var(--green);
    display:inline-block;
  }

  .article-cover{
    max-width: 1180px;
    margin: -34px auto 0;
    padding: 0 32px;
  }
  .article-cover .frame{
    border: 1px solid var(--line);
    background: var(--white);
    padding: 10px;
    box-shadow: 0 18px 40px rgba(27,32,39,0.14);
  }
  .article-cover img{
    width:100%;
    max-height: 420px;
    object-fit: cover;
  }

  .article-body{
    max-width: 760px;
    margin: 0 auto;
    padding: 76px 32px 40px;
  }
  .article-body h2{
    font-size: 1.5rem;
    color: var(--navy);
    margin: 48px 0 16px;
  }
  .article-body h2:first-child{ margin-top:0; }
  .article-body p{
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin: 0 0 18px;
    line-height: 1.75;
  }
  .article-body ul{
    margin: 0 0 20px;
    padding-left: 22px;
    color: var(--ink-soft);
  }
  .article-body ul li{
    margin-bottom: 10px;
    font-size: 1.02rem;
    line-height: 1.6;
  }
  .article-body p a, .article-body ul a{
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: rgba(39,91,182,0.35);
    text-underline-offset: 3px;
  }
  .article-body p a:hover, .article-body ul a:hover{ text-decoration-color: var(--blue); }
  .article-body .btn{
    color: #fff !important;
    text-decoration: none !important;
  }
  .article-body strong{ color: var(--navy); }

  .callout{
    background: var(--paper-2);
    border-left: 3px solid var(--blue);
    padding: 26px 28px;
    margin: 36px 0;
    display:flex;
    justify-content: space-between;
    align-items:center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .callout p{
    margin:0;
    color: var(--navy);
    font-weight: 500;
    font-size: 1rem;
    max-width: 40ch;
  }
  .callout .btn{ white-space:nowrap; }

  .source-note{
    font-size: 0.86rem;
    color: var(--steel);
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 40px;
  }
  .source-note a{ color: var(--ink-soft); }

  .related{
    background: var(--paper-2);
    padding: 72px 0 88px;
  }
  .related .wrap > .eyebrow{ display:block; margin-bottom: 14px; }
  .related h2{
    font-size: 1.7rem;
    color: var(--navy);
    margin-bottom: 34px;
  }
  .related-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  .related-card{
    background: var(--white);
    border: 1px solid var(--line);
    padding: 26px 24px;
    text-decoration:none;
    display:block;
    transition: border-color .15s, transform .15s;
  }
  .related-card:hover{ border-color: var(--blue); transform: translateY(-2px); }
  .related-card .mono{
    font-size: 0.62rem;
    color: var(--blue);
    display:block;
    margin-bottom: 10px;
  }
  .related-card h3{
    font-size: 1.08rem;
    color: var(--navy);
    margin: 0 0 8px;
  }
  .related-card p{
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin:0;
    line-height:1.5;
  }

  .home-return{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    color: var(--steel);
    text-decoration:none;
    font-size: 0.86rem;
    font-weight: 500;
  }
  .home-return:hover{ color:#fff; }
  .home-return svg{ width:15px; height:15px; }

  .footer-links{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 0 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer-links .col h4{
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7380;
    margin: 0 0 14px;
    font-weight: 500;
  }
  .footer-links .col a{
    display:block;
    color: #b6bcc4;
    text-decoration:none;
    font-size: 0.86rem;
    margin-bottom: 10px;
    line-height:1.4;
  }
  .footer-links .col a:hover{ color:#fff; }

  @media (max-width: 780px){
    .related-grid{ grid-template-columns: 1fr; }
    .footer-links{ grid-template-columns: 1fr 1fr; }
    .article-cover{ margin-top: -20px; }
  }
  @media (max-width: 560px){
    .footer-links{ grid-template-columns: 1fr; }
    .callout{ flex-direction:column; align-items:flex-start; }
  }
