/* ============================================
   IT Duch - style.css
   Czcionki lokalne (Inter + Newsreader) + style glowne
   ============================================ */

/* ---------- FONTS (self-hosted, folder /fonts) ---------- */
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-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;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/newsreader-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/newsreader-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/newsreader-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;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/newsreader-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/newsreader-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/newsreader-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;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/newsreader-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/newsreader-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/newsreader-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;
}

/* ---------- MAIN STYLES ---------- */
/* ============================================
   IT Duch – style.css  |  Wariant C — Editorial Serif
   ============================================ */

:root {
    --clr-primary:       oklch(46% 0.09 258);
    --clr-primary-light: oklch(56% 0.09 258);
    --clr-primary-dark:  oklch(37% 0.08 258);
    --clr-accent:        oklch(56% 0.07 220);
    --clr-accent-light:  oklch(68% 0.06 220);
    --clr-dark:          oklch(21% 0.015 258);
    --clr-dark-2:        oklch(25% 0.015 258);
    --clr-text:          oklch(28% 0.012 60);
    --clr-text-muted:    oklch(48% 0.012 60);
    --clr-text-light:    oklch(62% 0.01 60);
    --clr-border:        oklch(89% 0.008 60);
    --clr-bg:            oklch(97% 0.008 70);
    --clr-bg-alt:        oklch(99% 0.005 70);
    --clr-surface:       oklch(99% 0.005 70);
    --clr-surface-hover: oklch(95% 0.01 70);
    --grad-hero:         linear-gradient(160deg, oklch(21% 0.015 258) 0%, oklch(26% 0.03 250) 100%);
    --grad-primary:      linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
    --grad-card-hover:   linear-gradient(135deg, oklch(96% 0.01 70) 0%, oklch(94% 0.02 220) 100%);
    --grad-divider-1:    linear-gradient(135deg, oklch(37% 0.08 258) 0%, oklch(46% 0.09 258) 60%, oklch(56% 0.07 220) 100%);
    --grad-divider-2:    linear-gradient(135deg, oklch(21% 0.015 258) 0%, oklch(29% 0.035 240) 100%);
    --font-heading: 'Newsreader', Georgia, serif;
    --font-main:    'Inter', system-ui, -apple-system, sans-serif;
    --text-xs:      .75rem;
    --text-sm:      .875rem;
    --text-base:    1rem;
    --text-lg:      1.125rem;
    --text-xl:      1.25rem;
    --text-2xl:     1.5rem;
    --text-3xl:     1.875rem;
    --text-4xl:     2.25rem;
    --space-1:   .25rem;
    --space-2:   .5rem;
    --space-3:   .75rem;
    --space-4:   1rem;
    --space-5:   1.25rem;
    --space-6:   1.5rem;
    --space-8:   2rem;
    --space-10:  2.5rem;
    --space-12:  3rem;
    --space-16:  4rem;
    --space-20:  5rem;
    --space-24:  6rem;
    --radius-xs:  4px;
    --radius-sm:  5px;
    --radius-md:  9px;
    --radius-lg:  14px;
    --radius-xl:  20px;
    --radius-full: 9999px;
    --shadow-xs:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm:  0 2px 8px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
    --shadow-md:  0 6px 24px rgba(0,0,0,.09), 0 2px 8px rgba(0,0,0,.06);
    --shadow-lg:  0 16px 48px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.08);
    --shadow-xl:  0 24px 64px rgba(0,0,0,.16), 0 8px 24px rgba(0,0,0,.10);
    --shadow-glow: 0 0 40px oklch(46% 0.09 258 / .16);
    --shadow-card: 0 1px 3px rgba(15,23,42,.06), 0 8px 32px rgba(15,23,42,.06);
    --shadow-card-hover: 0 8px 30px oklch(46% 0.09 258 / .12), 0 20px 60px rgba(15,23,42,.14);
    --ease-out:  cubic-bezier(.16,1,.3,1);
    --ease-in:   cubic-bezier(.4,0,1,1);
    --ease-io:   cubic-bezier(.4,0,.2,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
    --dur-fast:  150ms;
    --dur-base:  250ms;
    --dur-slow:  400ms;
    --dur-lazy:  600ms;
    --navbar-h:    72px;
    --max-width: 1200px;
    --content-px:  1.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-main); color: var(--clr-text); background: var(--clr-bg); overflow-x: hidden; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--clr-primary); text-decoration: none; transition: color var(--dur-base) var(--ease-io); }
a:hover { color: var(--clr-primary-dark); }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-primary-light); border-radius: var(--radius-full); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--content-px); }
.section { padding: var(--space-24) 0; }

h1, h2, h3, h4 { font-family: var(--font-heading); }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(11,18,33,.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,.07);
    color: #94a3b8; padding: var(--space-4) var(--space-6);
    display: flex; align-items: center; gap: var(--space-6);
    z-index: 9999;
    transform: translateY(110%);
    transition: transform .55s var(--ease-out);
    flex-wrap: wrap;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { flex: 1; font-size: var(--text-sm); line-height: 1.65; min-width: 240px; }
.cookie-banner a { color: var(--clr-accent); border-bottom: 1px solid rgba(6,182,212,.35); padding-bottom: 1px; }
.cookie-btn {
    background: var(--grad-primary); color: #fff; border: none;
    padding: .6rem 1.5rem; border-radius: var(--radius-full);
    cursor: pointer; font-size: var(--text-sm); font-weight: 600;
    transition: all var(--dur-base); box-shadow: 0 2px 12px oklch(46% 0.09 258 / .26);
    position: relative; overflow: hidden;
}
.cookie-btn:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 20px oklch(46% 0.09 258 / .38); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--navbar-h); z-index: 1000;
    transition: all var(--dur-slow) var(--ease-io);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,.06), var(--shadow-sm);
    border-bottom-color: var(--clr-border);
}
.nav-container {
    max-width: var(--max-width); margin: 0 auto; padding: 0 var(--content-px);
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 700; color: #fff; letter-spacing: -0.5px; transition: color var(--dur-base); }
.navbar.scrolled .nav-logo { color: var(--clr-text); }
.nav-logo span { color: var(--clr-accent); }
.navbar.scrolled .nav-logo span { color: var(--clr-primary); }
.nav-menu { display: flex; align-items: center; gap: var(--space-8); }

.nav-link {
    color: rgba(255,255,255,.85); font-weight: 500; font-size: var(--text-sm);
    position: relative; transition: color var(--dur-base);
    padding-bottom: 3px;
}
.nav-link::after {
    content: '';
    position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--clr-primary);
    transition: width var(--dur-slow) var(--ease-spring);
    border-radius: var(--radius-full);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: #fff; }
.navbar.scrolled .nav-link { color: var(--clr-text-muted); }
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active { color: var(--clr-primary); }

.lang-switch {
    border: 1.5px solid rgba(255,255,255,.4);
    padding: .3rem .8rem; border-radius: var(--radius-full);
    font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
    transition: all var(--dur-base);
}
.lang-switch:hover { background: rgba(255,255,255,.12); }
.navbar.scrolled .lang-switch { border-color: var(--clr-border); color: var(--clr-text-muted); }
.navbar.scrolled .lang-switch:hover { background: var(--clr-surface-hover); }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: none; cursor: pointer; width: 36px; height: 36px; z-index: 1100;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: all var(--dur-base); border-radius: 2px; }
.navbar.scrolled .nav-toggle span { background: var(--clr-text); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative; height: 100vh; min-height: 640px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.parallax-bg { position: absolute; inset: -25%; background: var(--grad-hero); z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(11,18,33,.25) 0%, rgba(11,18,33,.7) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; max-width: 800px; animation: heroFadeIn 1s var(--ease-out) both; }

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 600; line-height: 1.12;
    margin-bottom: var(--space-4);
    color: #f5f7fb;
    animation: heroFadeIn 1s .15s var(--ease-out) both;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.4vw, 1.3rem); margin-bottom: var(--space-10);
    color: rgba(203,213,225,.88);
    animation: heroFadeIn 1s .3s var(--ease-out) both;
}
.hero-content .btn {
    animation: heroFadeIn 1s .5s var(--ease-out) both;
}

.scroll-indicator { position: absolute; bottom: var(--space-8); left: 50%; transform: translateX(-50%); z-index: 4; opacity: .7; }
.scroll-indicator span {
    display: block; width: 26px; height: 42px;
    border: 2px solid rgba(255,255,255,.5); border-radius: 13px; position: relative;
}
.scroll-indicator span::after {
    content: ''; position: absolute; top: 6px; left: 50%;
    transform: translateX(-50%); width: 4px; height: 6px;
    background: #fff; border-radius: var(--radius-full);
    animation: scrollBounce 1.8s infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    75%        { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

/* ============================================
   BUTTONS + RIPPLE
   ============================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .78rem 2rem; border-radius: var(--radius-full);
    font-weight: 600; font-size: var(--text-sm); cursor: pointer;
    transition: all var(--dur-base) var(--ease-spring); border: 2px solid transparent;
    position: relative; overflow: hidden;
}
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 2px 12px oklch(46% 0.09 258 / .26); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 28px oklch(46% 0.09 258 / .38); color: #fff; }
.btn-primary:active { transform: translateY(-1px) scale(0.99); }

.btn-secondary { background: transparent; color: var(--clr-primary); border-color: var(--clr-primary); }
.btn-secondary:hover { background: var(--clr-primary); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 16px oklch(46% 0.09 258 / .26); }

.btn-full { width: 100%; }

.btn-spinner {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff; border-radius: 50%;
    animation: spin .65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ripple {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.3);
    transform: scale(0);
    animation: rippleAnim .7s var(--ease-out);
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(2.5); opacity: 0; }
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 600; color: var(--clr-text); margin-bottom: var(--space-4); }
.section-title-center { text-align: center; }
.section-title-center::after {
    content: ''; display: block; width: 52px; height: 3px;
    background: var(--clr-primary); border-radius: var(--radius-full);
    margin: var(--space-4) auto 0;
    transition: width var(--dur-slow) var(--ease-out);
}
.section-title-center:hover::after { width: 80px; }
.section-subtitle { font-size: var(--text-lg); color: var(--clr-text-muted); margin-bottom: var(--space-12); max-width: 580px; text-align: center; margin-left: auto; margin-right: auto; }

/* ============================================
   ANIMACJE WEJŚCIA
   ============================================ */
[data-animate],
[data-animate-child] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--dur-lazy) var(--ease-out),
                transform var(--dur-lazy) var(--ease-out);
}
[data-animate].animated,
[data-animate-child].animated {
    opacity: 1;
    transform: translateY(0);
}
.services-grid.animated,
.about-badges.animated {
    opacity: 1; transform: none;
}

/* ============================================
   SERVICES
   ============================================ */
.services-header { text-align: center; margin-bottom: var(--space-16); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }

.service-card {
    background: var(--clr-surface); border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--clr-border);
    transition: transform .5s var(--ease-out), box-shadow .4s ease, border-color .4s ease;
    position: relative; overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    cursor: default;
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, oklch(46% 0.09 258 / .05), transparent);
    transition: left .55s var(--ease-out);
    pointer-events: none;
}
.service-card:hover::before { left: 140%; }
.service-card:hover { box-shadow: var(--shadow-card-hover); border-color: oklch(46% 0.09 258 / .16); }

.service-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, oklch(95% 0.012 70), oklch(91% 0.025 220));
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-5);
    transition: all var(--dur-slow) var(--ease-spring);
}
.service-card:hover .service-icon {
    background: var(--grad-primary);
    transform: scale(1.12) rotate(-4deg);
    box-shadow: 0 4px 16px oklch(46% 0.09 258 / .26);
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--clr-primary); transition: stroke var(--dur-base); }
.service-card:hover .service-icon svg { stroke: #fff; }
.service-card h3 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-3); color: var(--clr-text); }
.service-card p { font-size: var(--text-sm); color: var(--clr-text-muted); line-height: 1.65; }

/* ============================================
   DIVIDERS
   ============================================ */
.parallax-divider {
    position: relative; height: 300px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.parallax-divider-bg { position: absolute; inset: -35%; background-size: cover; background-position: center; }
.parallax-divider-1 .parallax-divider-bg { background: var(--grad-divider-1); }
.parallax-divider-2 .parallax-divider-bg { background: var(--grad-divider-2); }
.parallax-divider-content { position: relative; z-index: 3; text-align: center; }
.parallax-divider-content p {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 600; color: #fff;
    font-style: italic; text-shadow: 0 2px 24px rgba(0,0,0,.3);
    opacity: 0; transform: translateY(20px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.parallax-divider.in-view .parallax-divider-content p { opacity: 1; transform: translateY(0); }

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--clr-bg-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.about-text p { font-size: var(--text-lg); color: var(--clr-text-muted); margin-bottom: var(--space-8); }

.about-badges {
    background: var(--clr-bg); border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6);
}
.badges-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--clr-text-light); font-weight: 600; margin-bottom: var(--space-5); }
.badge-list { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.badge-item {
    font-family: var(--font-heading);
    font-size: var(--text-sm); font-weight: 600; color: var(--clr-primary-dark);
    background: linear-gradient(135deg, oklch(95% 0.012 70), oklch(91% 0.025 220)); border: 1px solid oklch(46% 0.09 258 / .16);
    border-radius: var(--radius-sm); padding: .5rem 1rem;
    transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) ease;
}
.badge-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--clr-bg); }
.contact-header { text-align: center; margin-bottom: var(--space-16); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-10); }
.contact-info { display: flex; flex-direction: column; gap: var(--space-5); }

.contact-item {
    display: flex; align-items: flex-start; gap: var(--space-4);
    background: var(--clr-surface); border: 1px solid var(--clr-border);
    border-radius: var(--radius-md); padding: var(--space-5) var(--space-6);
    transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) ease, border-color var(--dur-base) ease;
}
.contact-item:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); border-color: oklch(46% 0.09 258 / .16); }

.contact-icon {
    width: 46px; height: 46px; min-width: 46px;
    background: linear-gradient(135deg, oklch(95% 0.012 70), oklch(91% 0.025 220));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--dur-base) var(--ease-spring);
}
.contact-item:hover .contact-icon { background: var(--grad-primary); transform: scale(1.1) rotate(-4deg); }
.contact-icon svg { width: 22px; height: 22px; stroke: var(--clr-primary); transition: stroke var(--dur-base); }
.contact-item:hover .contact-icon svg { stroke: #fff; }
.contact-icon .icon-fb path { fill: var(--clr-primary); transition: fill var(--dur-base); }
.contact-item:hover .contact-icon .icon-fb path { fill: #fff; }

.contact-label { font-size: var(--text-xs); text-transform: uppercase; color: var(--clr-text-light); font-weight: 600; margin-bottom: var(--space-1); }
.contact-item a { font-size: var(--text-base); font-weight: 600; color: var(--clr-text); transition: color var(--dur-base); }
.contact-item:hover a { color: var(--clr-primary); }

.contact-form-wrap {
    background: var(--clr-surface); border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg); padding: var(--space-8);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--dur-slow) ease;
}
.contact-form-wrap:focus-within {
    box-shadow: var(--shadow-card-hover), 0 0 0 3px oklch(46% 0.09 258 / .1);
}

.form-group { margin-bottom: var(--space-5); position: relative; }

.form-group input,
.form-group textarea {
    width: 100%; padding: .9rem 1.1rem;
    background: var(--clr-bg); border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm); font-family: var(--font-main);
    font-size: var(--text-sm); outline: none;
    transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease, background var(--dur-base) ease;
}
.form-group input:hover,
.form-group textarea:hover { border-color: var(--clr-primary-light); }
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 4px oklch(46% 0.09 258 / .1);
    background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--clr-text-light); transition: opacity var(--dur-base); }
.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder { opacity: .5; }

.form-status {
    margin-top: var(--space-4); padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-sm); font-size: var(--text-sm);
    display: none; text-align: center;
    align-items: center; gap: var(--space-2); justify-content: center;
}
.form-status.success {
    display: flex; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
    animation: statusIn .4s var(--ease-out);
}
.form-status.error {
    display: flex; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
    animation: statusIn .4s var(--ease-out);
}
@keyframes statusIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.status-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    font-size: 12px; font-weight: 700;
}
.form-status.success .status-icon { background: #bbf7d0; color: #166534; }
.form-status.error .status-icon { background: #fecaca; color: #991b1b; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15%       { transform: translateX(-8px); }
    30%       { transform: translateX(7px); }
    45%       { transform: translateX(-5px); }
    60%       { transform: translateX(4px); }
    75%       { transform: translateX(-2px); }
    90%       { transform: translateX(1px); }
}
.shake { animation: shake .55s var(--ease-io); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--clr-dark); color: #94a3b8; padding: var(--space-16) 0 var(--space-8); position: relative; }
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-10);
    padding-bottom: var(--space-10); border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand .nav-logo { color: #fff; font-size: var(--text-2xl); margin-bottom: var(--space-4); display: inline-block; }
.footer-brand p { font-size: var(--text-sm); color: #64748b; max-width: 280px; }
.footer-links h4, .footer-contact h4 { font-size: var(--text-xs); text-transform: uppercase; color: #475569; font-weight: 700; margin-bottom: var(--space-5); }
.footer-links ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a, .footer-contact a {
    font-size: var(--text-sm); color: #64748b;
    transition: color var(--dur-base), transform var(--dur-base);
    display: inline-flex; align-items: center; gap: var(--space-2);
}
.footer-links a:hover, .footer-contact a:hover { color: #e2e8f0; transform: translateX(3px); }

.footer-contact { display: flex; flex-direction: column; gap: var(--space-3)}
.footer-fb-icon { display: inline-flex; align-items: center; }
.footer-fb-icon svg path { fill: #64748b; transition: fill var(--dur-base); }
.footer-fb-icon:hover svg path { fill: #e2e8f0; }

.footer-bottom { padding-top: var(--space-8); text-align: center; }
.footer-bottom p { font-size: var(--text-xs); color: #334155; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: min(320px, 85vw); height: 100dvh;
        background: #0b1221;
        flex-direction: column; justify-content: center; align-items: flex-start;
        padding: var(--space-10) var(--space-8); gap: var(--space-6);
        transition: right var(--dur-slow) var(--ease-out);
        z-index: 1050; border-left: 1px solid rgba(255,255,255,.06);
        transform: translateZ(0);
    }
    .nav-menu.open { right: 0; }
    .nav-link { font-size: var(--text-xl); color: #fff !important; }
    .nav-overlay {
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 1040;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--dur-slow) var(--ease-io);
    }
    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
        right: min(320px, 85vw);
    }
    .services-grid { grid-template-columns: 1fr; }
    .badge-list { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    .service-card { transform-style: flat; }
}

/* ============================================
   ACCESSIBILITY – prefers-reduced-motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    [data-animate], [data-animate-child] { opacity: 1; transform: none; }
}
