@layer reset, tokens, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
  img { display: block; max-width: 100%; height: auto; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
  ul { list-style: none; }
  input, textarea { font: inherit; }
  table { border-collapse: collapse; width: 100%; }
}

@layer tokens {
  :root {
    --c-bg: #FAF3E6;
    --c-bg-alt: #F1E3CE;
    --c-surface: #FFFCF7;
    --c-ink: #2B2118;
    --c-ink-soft: #6B5B4C;
    --c-ink-faint: #90806E;
    --c-primary: #B75B3B;
    --c-primary-dark: #8F4128;
    --c-primary-light: #E3A98A;
    --c-accent: #C89A45;
    --c-secondary: #48513F;
    --c-line: rgba(43, 33, 24, 0.14);
    --c-line-strong: rgba(43, 33, 24, 0.4);
    --c-white: #FFFDF9;

    --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
    --sp-5: 1.5rem; --sp-6: 2rem; --sp-8: 3rem; --sp-10: 4rem;
    --sp-12: 5rem; --sp-16: 6rem; --sp-20: 8rem;

    --radius-sm: 8px; --radius-md: 16px; --radius-lg: 28px; --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(43,33,25,.07), 0 1px 1px rgba(43,33,25,.04);
    --shadow-md: 0 6px 18px -4px rgba(43,33,25,.18), 0 2px 6px rgba(43,33,25,.08);
    --shadow-lg: 0 26px 50px -14px rgba(43,33,25,.3), 0 8px 20px -8px rgba(43,33,25,.16);
    --shadow-polaroid: 0 18px 34px -12px rgba(43,33,25,.4), 0 5px 12px rgba(43,33,25,.16), 0 1px 0 rgba(255,255,255,.7) inset;

    --font-head: 'Schibsted Grotesk', sans-serif;
    --font-body: 'Schibsted Grotesk', sans-serif;
    --font-hand: 'Caveat', cursive;

    --ease: cubic-bezier(.22,.68,.36,1);
  }
}

@layer layout {
  body {
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: var(--font-body);
    line-height: 1.65;
    font-size: 16px;
  }
  h1,h2,h3,h4 { font-family: var(--font-head); color: var(--c-ink); line-height: 1.15; letter-spacing: -0.01em; }
  main { display: block; }
  .container { max-width: 1240px; margin-inline: auto; padding-inline: var(--sp-5); }

  .sec { padding-block: var(--sp-16); }
  .sec-in { max-width: 1240px; margin-inline: auto; padding-inline: var(--sp-5); }
  .sec-in-wide { max-width: 1240px; margin-inline: auto; padding-inline: var(--sp-5); text-align: center; margin-bottom: var(--sp-10); }
  .sec-alt { background: var(--c-bg-alt); }
  .sec-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; margin-block: var(--sp-3) var(--sp-5); }
  .sec-lead { max-width: 680px; color: var(--c-ink-soft); font-size: 1.05rem; margin-bottom: var(--sp-8); }
  .eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary-dark); margin-bottom: var(--sp-2); }
  .center-eyebrow, .center-title { display: block; text-align: center; }

  .split { display: grid; grid-template-columns: 1fr; gap: var(--sp-10); align-items: center; }
  @media (min-width: 900px) {
    .split { grid-template-columns: 1.05fr .95fr; gap: var(--sp-12); }
    .split.rev { grid-template-columns: .95fr 1.05fr; }
    .split.rev > *:first-child { order: 2; }
    .split.rev > *:last-child { order: 1; }
  }

  .split-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); margin-top: var(--sp-6); }
  @media (min-width: 640px) { .split-grid { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1000px) { .split-grid { grid-template-columns: repeat(4, 1fr); } }
}

@layer components {

  
  .hdr {
    position: sticky; top: 0; z-index: 300;
    background: rgba(250, 243, 230, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
  }
  .hdr::after {
    content: ""; position: absolute; left: 50%; bottom: -1px; height: 1px; width: 100%;
    background: var(--c-line-strong);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform .55s var(--ease);
  }
  .hdr.is-scrolled::after { transform: translateX(-50%) scaleX(1); }
  .hdr-in {
    max-width: 1280px; margin-inline: auto; padding: var(--sp-3) var(--sp-5);
    display: flex; align-items: center; gap: var(--sp-6);
  }
  .hdr-logo { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; flex-shrink: 0; }
  .hdr-nav { flex: 1; display: none; }
  .hdr-nav ul { display: flex; gap: var(--sp-6); }
  .hdr-nav a { font-size: .95rem; font-weight: 500; color: var(--c-ink-soft); position: relative; padding-block: var(--sp-2); transition: color .3s var(--ease); }
  .hdr-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--c-primary); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .hdr-nav a:hover, .hdr-nav a.active { color: var(--c-ink); }
  .hdr-nav a:hover::after, .hdr-nav a.active::after { transform: scaleX(1); }
  .hdr-cta {
    display: none; font-weight: 600; font-size: .9rem; padding: .65rem 1.3rem;
    background: var(--c-primary); color: var(--c-white); border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm); transition: all .3s var(--ease); white-space: nowrap;
  }
  .hdr-cta:hover { background: var(--c-primary-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
  .hdr-burger { width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-left: auto; }
  .hdr-burger span { width: 22px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .hdr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hdr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hdr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  @media (min-width: 900px) {
    .hdr-nav { display: block; }
    .hdr-cta { display: inline-block; }
    .hdr-burger { display: none; }
  }

  .hdr-mob { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); border-top: 1px solid transparent; }
  .hdr-mob.is-open { max-height: 600px; border-top: 1px solid var(--c-line); }
  .hdr-mob-list { padding: var(--sp-3) var(--sp-5); display: flex; flex-direction: column; }
  .hdr-mob-item { border-bottom: 1px solid var(--c-line); }
  .hdr-mob-item > a { display: block; padding: var(--sp-4) 0; font-weight: 500; min-height: 44px; }
  .hdr-mob-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: var(--sp-4) 0; font-weight: 500; min-height: 44px; }
  .hdr-mob-trigger i { transition: transform .3s var(--ease); font-size: .8rem; color: var(--c-ink-faint); }
  .hdr-mob-item.is-open .hdr-mob-trigger i { transform: rotate(180deg); }
  .hdr-mob-sub { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); display: flex; flex-direction: column; }
  .hdr-mob-item.is-open .hdr-mob-sub { max-height: 300px; padding-bottom: var(--sp-3); }
  .hdr-mob-sub a { padding: var(--sp-2) 0 var(--sp-2) var(--sp-4); color: var(--c-ink-soft); font-size: .92rem; min-height: 40px; display: flex; align-items: center; }
  @media (min-width: 900px) { .hdr-mob { display: none; } }

  
  .hero { min-height: 78vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--sp-16) var(--sp-5); }
  .hero-in { max-width: 780px; }
  .hero-eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-primary-dark); font-weight: 600; margin-bottom: var(--sp-6); }
  .hero-word { font-size: clamp(3.4rem, 13vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--c-ink); margin-bottom: var(--sp-6); }
  .hero-word .char { display: inline-block; opacity: 0; transform: translateY(24px); animation: charIn .7s var(--ease) forwards; animation-delay: calc(var(--char-index) * 40ms); }
  @keyframes charIn { to { opacity: 1; transform: translateY(0); } }
  .hero-sub { font-size: 1.1rem; color: var(--c-ink-soft); max-width: 560px; margin: 0 auto var(--sp-8); }

  .btn-ghost {
    display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: .95rem;
    padding: .85rem 1.8rem; border: 1.5px solid var(--c-ink); border-radius: var(--radius-full);
    transition: all .35s var(--ease); min-height: 48px;
  }
  .btn-ghost:hover { background: var(--c-ink); color: var(--c-white); gap: var(--sp-3); }

  .btn-solid {
    display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: .95rem;
    padding: .9rem 1.9rem; background: var(--c-primary); color: var(--c-white); border-radius: var(--radius-full);
    box-shadow: var(--shadow-md); transition: all .35s var(--ease); min-height: 48px;
  }
  .btn-solid:hover { background: var(--c-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

  .link-arrow { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--c-primary-dark); transition: gap .3s var(--ease); }
  .link-arrow:hover { gap: var(--sp-3); }

  
  .polaroid-row { display: flex; flex-wrap: wrap; gap: var(--sp-6); justify-content: center; padding: var(--sp-6); }
  .polaroid {
    background: var(--c-white); padding: var(--sp-3) var(--sp-3) var(--sp-6); border-radius: 4px;
    box-shadow: var(--shadow-polaroid); width: 200px; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  }
  .polaroid img { border-radius: 2px; aspect-ratio: 4/5; object-fit: cover; filter: sepia(.12) saturate(1.15) contrast(1.02); }
  .polaroid figcaption { font-family: var(--font-hand); font-size: 1.3rem; text-align: center; margin-top: var(--sp-3); color: var(--c-ink-soft); }
  .polaroid:hover { transform: rotate(0deg) scale(1.03) !important; box-shadow: var(--shadow-lg); }
  .rot-l { transform: rotate(-4deg); }
  .rot-r { transform: rotate(3deg); }
  .rot-l2 { transform: rotate(-2deg); }
  .polaroid-solo { width: min(340px, 100%); }
  .polaroid-lg { width: min(440px, 100%); }
  .polaroid-lg img { aspect-ratio: 5/4; }

  
  .sec-moments .sec-txt p { margin-bottom: var(--sp-4); color: var(--c-ink-soft); }
  .sec-moments .sec-txt p:last-child { margin-bottom: 0; }

  
  .principle-list { display: flex; flex-direction: column; gap: var(--sp-6); }
  .principle-item { display: flex; gap: var(--sp-5); align-items: flex-start; padding-bottom: var(--sp-6); border-bottom: 1px solid var(--c-line); }
  .principle-item:last-child { border-bottom: none; padding-bottom: 0; }
  .principle-no { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--c-primary-light); flex-shrink: 0; width: 3rem; }
  .principle-item h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }
  .principle-item p { color: var(--c-ink-soft); font-size: .96rem; }

  
  .zig { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); align-items: center; max-width: 1240px; margin: 0 auto var(--sp-16); padding-inline: var(--sp-5); }
  .zig:last-child { margin-bottom: 0; }
  .zig-media { display: flex; justify-content: center; }
  .zig-txt h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: var(--sp-3); }
  .zig-txt p { color: var(--c-ink-soft); margin-bottom: var(--sp-3); }
  @media (min-width: 900px) {
    .zig { grid-template-columns: 1fr 1fr; gap: var(--sp-12); }
    .zig-rev .zig-media { order: 2; }
    .zig-rev .zig-txt { order: 1; }
  }

  
  .res-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
  @media (min-width: 640px) { .res-grid { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1100px) { .res-grid { grid-template-columns: repeat(4, 1fr); } }
  .res-crd {
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-md);
    padding: var(--sp-6) var(--sp-5); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  }
  .res-crd:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--c-primary-light); }
  .crd-ico { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--c-bg-alt); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--c-primary); margin-bottom: var(--sp-4); }
  .crd-txt h3 { font-size: 1.05rem; margin-bottom: var(--sp-2); }
  .crd-txt p { font-size: .92rem; color: var(--c-ink-soft); }

  
  .kurs-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); max-width: 1240px; margin: 0 auto; padding-inline: var(--sp-5); }
  @media (min-width: 700px) { .kurs-grid { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1100px) { .kurs-grid { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; } }
  .kurs-crd {
    display: block; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
    padding: var(--sp-6); box-shadow: var(--shadow-sm); transition: all .35s var(--ease); border-left: 4px solid var(--c-primary-light);
  }
  .kurs-crd:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-left-color: var(--c-primary); }
  .kurs-crd.featured { grid-row: span 2; background: linear-gradient(150deg, var(--c-bg-alt), var(--c-surface)); border-left-width: 6px; }
  .kurs-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary-dark); background: rgba(183,91,59,.1); padding: .25rem .7rem; border-radius: var(--radius-full); margin-bottom: var(--sp-3); }
  .kurs-crd h3 { font-size: 1.2rem; margin-bottom: var(--sp-3); }
  .kurs-crd.featured h3 { font-size: 1.5rem; }
  .kurs-crd p { color: var(--c-ink-soft); font-size: .95rem; margin-bottom: var(--sp-4); }

  
  .sec-cta { padding-block: var(--sp-16); }
  .cta-box {
    max-width: 780px; margin: 0 auto; text-align: center; padding: var(--sp-12) var(--sp-6);
    background: var(--c-secondary); color: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
  }
  .cta-box h2 { color: var(--c-white); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: var(--sp-6); }
  .cta-hand { font-family: var(--font-hand); font-size: 1.6rem; color: var(--c-accent); margin-bottom: var(--sp-4); }
  .cta-box .btn-solid { background: var(--c-accent); color: var(--c-ink); }
  .cta-box .btn-solid:hover { background: var(--c-primary-light); }

  
  .method-list, .step-list { display: flex; flex-direction: column; gap: var(--sp-6); }
  .method-item h3 { display: flex; align-items: center; gap: var(--sp-2); font-size: 1.1rem; margin-bottom: var(--sp-2); }
  .method-item h3 i { color: var(--c-primary); }
  .method-item p, .step-item p { color: var(--c-ink-soft); font-size: .95rem; }
  .step-item { border-left: 3px solid var(--c-primary-light); padding-left: var(--sp-5); }
  .step-no { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-primary-dark); margin-bottom: var(--sp-1); }
  .step-item h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }

  
  .note-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: var(--sp-5); box-shadow: var(--shadow-sm); }
  .note-card h3 { font-size: 1rem; margin-bottom: var(--sp-2); color: var(--c-primary-dark); }
  .note-card p { font-size: .92rem; color: var(--c-ink-soft); }

  
  .check-list { margin: var(--sp-5) 0; display: flex; flex-direction: column; gap: var(--sp-2); }
  .check-list li { display: flex; align-items: center; gap: var(--sp-2); font-size: .92rem; color: var(--c-ink-soft); }
  .check-list i { color: var(--c-primary); }

  
  .quote-wide { position: relative; border-radius: var(--radius-lg); overflow: hidden; max-width: 1100px; margin: 0 auto; min-height: 340px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
  .quote-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(.2) brightness(.55); }
  .quote-wide-txt { position: relative; z-index: 2; text-align: center; padding: var(--sp-8); max-width: 640px; }
  .quote-wide-txt .cta-hand { color: var(--c-white); font-size: clamp(1.6rem, 3vw, 2.3rem); }

  
  .page-hero { padding: var(--sp-16) var(--sp-5) var(--sp-10); text-align: center; }
  .page-hero-in { max-width: 680px; margin: 0 auto; }
  .page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: var(--sp-4); }
  .page-hero p { color: var(--c-ink-soft); font-size: 1.05rem; }
  .page-hero-legal { background: var(--c-bg-alt); }

  
  .contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-10); max-width: 1240px; margin: 0 auto; padding-inline: var(--sp-5); }
  @media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; } }
  .contact-info .polaroid { margin-bottom: var(--sp-6); }
  .contact-detail { margin-bottom: var(--sp-5); }
  .contact-detail h3 { font-size: .95rem; display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-1); color: var(--c-primary-dark); }
  .contact-detail p { color: var(--c-ink-soft); font-size: .95rem; }
  .response-note { background: var(--c-bg-alt); padding: var(--sp-5); border-radius: var(--radius-md); border-left: 3px solid var(--c-accent); }

  .map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--c-line); }

  
  .frm-acc-item { border: 1px solid var(--c-line); border-radius: var(--radius-md); margin-bottom: var(--sp-4); overflow: hidden; background: var(--c-surface); box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease); }
  .frm-acc-item.is-open { box-shadow: var(--shadow-md); border-color: var(--c-primary-light); }
  .frm-acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: var(--sp-5); font-weight: 600; min-height: 56px; }
  .frm-acc-head i { transition: transform .3s var(--ease); color: var(--c-ink-faint); }
  .frm-acc-item.is-open .frm-acc-head i { transform: rotate(180deg); }
  .frm-acc-body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); padding: 0 var(--sp-5); }
  .frm-acc-item.is-open .frm-acc-body { max-height: 600px; padding-bottom: var(--sp-5); }
  .frm label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: var(--sp-2); color: var(--c-ink-soft); }
  .frm input[type="text"], .frm input[type="email"], .frm textarea {
    width: 100%; padding: .8rem 1rem; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
    background: var(--c-bg); margin-bottom: var(--sp-4); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); min-height: 48px;
  }
  .frm textarea { min-height: 120px; resize: vertical; }
  .frm input:focus, .frm textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(183,91,59,.15); }
  .frm-check { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: .9rem; font-weight: 400; margin-bottom: var(--sp-5); }
  .frm-check input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--c-primary); }

  
  .legal-wrap { max-width: 860px; margin: 0 auto; padding-inline: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-8); }
  .faq-item h2, .faq-item h3 { font-size: 1.2rem; margin-bottom: var(--sp-3); color: var(--c-primary-dark); }
  .faq-item p { color: var(--c-ink-soft); }
  .legal-table { margin-top: var(--sp-3); border: 1px solid var(--c-line); border-radius: var(--radius-sm); overflow: hidden; }
  .legal-table td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--c-line); font-size: .92rem; color: var(--c-ink-soft); }
  .legal-table tr:last-child td { border-bottom: none; }
  .legal-table td:first-child { font-weight: 600; color: var(--c-ink); width: 40%; }

  
  .thanks-sec { padding-block: var(--sp-20); }
  .thanks-wrap { max-width: 600px; margin: 0 auto; text-align: center; }
  .quote-card {
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
    padding: var(--sp-10) var(--sp-6); box-shadow: var(--shadow-lg); margin-bottom: var(--sp-10); position: relative;
  }
  .quote-mark { font-size: 1.6rem; color: var(--c-primary-light); margin-bottom: var(--sp-4); }
  .quote-text { font-family: var(--font-hand); font-size: 1.8rem; color: var(--c-ink); line-height: 1.3; margin-bottom: var(--sp-4); }
  .quote-source { font-size: .82rem; color: var(--c-ink-faint); text-transform: uppercase; letter-spacing: .06em; }
  .thanks-wrap h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: var(--sp-4); }
  .thanks-wrap p { color: var(--c-ink-soft); margin-bottom: var(--sp-8); }

  
  .cookie-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--c-secondary); color: var(--c-white);
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
    padding: var(--sp-4) var(--sp-6);
    transform: translateY(-100%); transition: transform .5s var(--ease);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
  }
  .cookie-banner.is-visible { transform: translateY(0); }
  .cookie-txt { font-size: .88rem; max-width: 640px; color: rgba(255,255,255,.9); }
  .cookie-actions { display: flex; gap: var(--sp-3); flex-shrink: 0; flex-wrap: wrap; }
  .cookie-btn { padding: .6rem 1.1rem; border-radius: var(--radius-full); font-size: .85rem; font-weight: 600; transition: all .3s var(--ease); min-height: 44px; white-space: nowrap; }
  .cookie-btn-ghost { color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.3); }
  .cookie-btn-ghost:hover { background: rgba(255,255,255,.1); }
  .cookie-btn-outline { background: transparent; border: 1px solid rgba(255,255,255,.5); color: var(--c-white); }
  .cookie-btn-outline:hover { background: rgba(255,255,255,.12); }
  .cookie-btn-solid { background: var(--c-accent); color: var(--c-ink); }
  .cookie-btn-solid:hover { background: var(--c-primary-light); }
  @media (max-width: 720px) {
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-actions { justify-content: center; }
  }

  .cookie-modal { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; background: rgba(43,33,24,.55); padding: var(--sp-5); }
  .cookie-modal.is-visible { display: flex; }
  .cookie-modal-in { background: var(--c-surface); border-radius: var(--radius-lg); max-width: 520px; width: 100%; padding: var(--sp-8); box-shadow: var(--shadow-lg); max-height: 85vh; overflow-y: auto; }
  .cookie-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-6); }
  .cookie-modal-close { font-size: 1.6rem; line-height: 1; width: 40px; height: 40px; }
  .cookie-cat { border-bottom: 1px solid var(--c-line); padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); }
  .cookie-cat-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: var(--sp-2); }
  .cookie-cat-head input { width: 20px; height: 20px; accent-color: var(--c-primary); }
  .cookie-cat p { font-size: .85rem; color: var(--c-ink-soft); }
  .cookie-modal-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); flex-wrap: wrap; }
}

@layer utilities {
  .text-center { text-align: center; }
  .mt-0 { margin-top: 0; }
  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}


.ftr { background: var(--c-secondary); color: rgba(255,255,255,.85); margin-top: auto; }
.ftr-in { max-width: 1240px; margin: 0 auto; padding: var(--sp-16) var(--sp-5) var(--sp-8); display: grid; grid-template-columns: 1fr; gap: var(--sp-8); }
@media (min-width: 780px) { .ftr-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.ftr-col h4 { color: var(--c-white); font-size: .95rem; margin-bottom: var(--sp-4); letter-spacing: .04em; }
.ftr-col a { display: block; font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: var(--sp-2); transition: color .3s var(--ease); }
.ftr-col a:hover { color: var(--c-accent); }
.ftr-col p { font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: var(--sp-2); }
.ftr-brand .hdr-logo { color: var(--c-white); margin-bottom: var(--sp-4); }
.ftr-brand p { max-width: 320px; }
.ftr-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: var(--sp-5); text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); }

html, body { height: 100%; }
body { display: flex; flex-direction: column; }
main { flex: 1; }

@media (max-width: 599px) {
  .sec { padding-block: var(--sp-10); }
  .polaroid { width: 150px; }
  .kurs-crd.featured { grid-row: auto; }
}