/* ═══════════════════════════════════════════════════
       DESIGN TOKENS
    ═══════════════════════════════════════════════════ */
    :root {
      --paper:        #ffffff;
      --ink:          #000b16;
      --bg-blue:      #0066ff;
      --bg-orange:    #f8a70f;
      --bg-red:       #ee1c23;
      --bg-green:     #72aa4c;
      --text-light:   #f2f2f2;
      --white-5:      rgba(255,255,255,0.05);
      --white-20:     rgba(255,255,255,0.20);
      --grey-3:       rgba(0,11,22,0.03);
      --grey-20:      rgba(31,29,30,0.20);
      --grid-line:    rgba(18,44,95,0.10);

      --radius-main:  22px;
      --radius-m:     8px;
      --radius-btn:   12px;

      --space-xs:     4px;
      --space-m:      9px;
      --space-l:      13px;
      --space-xl:     17px;
      --space-3xl:    25px;
      --space-4xl:    32px;
      --space-6xl:    49px;

      --font:         'Cabin', sans-serif;
    }

    /* ═══════════════════════════════════════════════════
       RESET & BASE
    ═══════════════════════════════════════════════════ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      background: #000b16;
      font-family: var(--font);
      display: flex;
      flex-direction: column;
      gap: 22px;
      padding: 22px;
      isolation: isolate;
    }

    /* ═══════════════════════════════════════════════════
       SHARED LAYOUT PRIMITIVES
    ═══════════════════════════════════════════════════ */

    /* Every section is a full-width flex row */
    .section {
      display: flex;
      gap: var(--space-xs);
      align-items: stretch;
      width: 100%;
      position: relative;
      z-index: 0;
    }

    /* Fluid rails — grow to fill viewport beyond inner container */
    .section__rail {
      flex: 1 1 0;
      min-width: 0;
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
    }

    /* 1312px inner container — holds the actual panels */
    .section__inner {
      flex: 0 0 1312px;
      max-width: 1312px;
      display: flex;
      gap: var(--space-xs);
      align-items: stretch;
    }
    @media (max-width: 1364px) { .section__inner { flex: 1 1 0; } }

    /* Shared eyebrow chip */
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: var(--space-m) var(--space-l);
      border-radius: var(--radius-m);
      backdrop-filter: blur(1.25px);
      -webkit-backdrop-filter: blur(1.25px);
      width: fit-content;
    }
    .eyebrow--light {
      background: var(--white-5);
      border: 1px solid var(--white-20);
    }
    .eyebrow--dark {
      background: var(--grey-3);
      border: 1px solid var(--grey-20);
    }
    @keyframes dot-pulse {
      0%, 100% { opacity: 1;    transform: scale(1); }
      50%       { opacity: 0.55; transform: scale(0.82); }
    }

    .eyebrow__dot {
      width: 4px; height: 4px;
      border-radius: 2.5px;
      flex-shrink: 0;
      animation: dot-pulse 2.4s ease-in-out infinite;
    }
    .eyebrow--light .eyebrow__dot { background: #fff; }
    .eyebrow--dark  .eyebrow__dot { background: var(--ink); }
    .eyebrow__label {
      font-weight: 500;
      font-size: 12px;
      line-height: 1;
      letter-spacing: -0.04em;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .eyebrow--light .eyebrow__label { color: var(--text-light); }
    .eyebrow--dark  .eyebrow__label { color: var(--ink); }

    /* Shared text panel */
    .text-panel {
      flex: 0 0 420px;
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: var(--space-3xl);
      gap: 32px;
    }

    .text-panel__info {
      display: flex;
      flex-direction: column;
      gap: 32px;
    }

    .text-panel__heading {
      font-weight: 400;
      font-size: 48px;
      line-height: 48px;
      letter-spacing: -0.045em;
      margin-top: -8px;
    }

    .text-panel__body {
      display: flex;
      flex-direction: column;
      gap: 16px;
      max-width: 330px;
    }

    .text-panel__body p {
      font-weight: 400;
      font-size: 16px;
      line-height: 1;
      letter-spacing: -0.01em;
    }

    /* Shared image panel */
    .image-panel {
      flex: 1 1 0;
      min-width: 0;
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
      position: relative;
      overflow: hidden;
    }

    .image-panel img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
    }


    /* ═══════════════════════════════════════════════════
       1. HERO
    ═══════════════════════════════════════════════════ */
    .hero { height: 636px; }

    .hero .section__rail {
      background-color: var(--paper);
    }

    .hero__card {
      flex: 0 0 1312px;
      max-width: 1312px;
      position: relative;
      background: var(--paper);
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
      overflow: hidden;
      display: flex;
      flex-direction: row;
      align-items: flex-end;
      padding: var(--space-3xl) var(--space-3xl) var(--space-6xl);
    }
    @media (max-width: 1364px) { .hero__card { flex: 1 1 0; } }

    /* Grid lines */
    .hero__grid {
      position: absolute;
      inset: 0;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0 8px;
      padding: 0 var(--space-3xl);
      pointer-events: none;
      z-index: 0;
    }
    .hero__grid-col { border-left: 1px solid var(--grid-line); height: 100%; }
    .hero__grid-col:last-child { border-right: 1px solid var(--grid-line); }

    .hero__content {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: var(--space-4xl);
      flex: 1 1 0;
      min-width: 0;
    }

    .hero__heading {
      font-weight: 400;
      font-size: 96px;
      line-height: 96px;
      letter-spacing: -0.05em;
      color: var(--ink);
    }

    .hero__image {
      position: relative;
      flex: 0 0 320px;
      height: 320px;
      align-self: flex-end;
      z-index: 1;
      pointer-events: none;
    }
    .hero__image img {
      position: absolute;
      left: -17.81%; top: -26.43%;
      width: 128.59%; height: 156.69%;
      max-width: none;
      object-fit: contain;
    }

    .about-page .hero__content {
      flex: 0 0 654px;
      max-width: 654px;
    }
    .about-page .hero__image {
      position: absolute;
      left: 56.25%;
      top: 176px;
      width: 384px;
      height: 236px;
      flex: none;
      align-self: auto;
      margin: 0;
    }
    .about-page .text-panel {
      flex: 1 1 0;
      min-width: 0;
    }
    .about-page .text-panel__info {
      width: min(420px, 100%);
    }
    .about-page .text-panel__heading {
      white-space: nowrap;
    }
    .about-page .origami .image-panel img {
      object-position: center bottom;
    }
    .about-page .kde-sidlime .image-panel img {
      object-position: center center;
    }

    /* ═══════════════════════════════════════════════════
       2. KTO SME
    ═══════════════════════════════════════════════════ */
    .kto-sme { height: 472px; }
    .kto-sme .section__rail,
    .kto-sme .text-panel,
    .kto-sme .image-panel { background: var(--bg-blue); }
    .kto-sme .text-panel__heading,
    .kto-sme .text-panel__body p { color: var(--text-light); }


    /* ═══════════════════════════════════════════════════
       3. ORIGAMI
    ═══════════════════════════════════════════════════ */
    .origami { height: 472px; }
    .origami .section__rail,
    .origami .text-panel,
    .origami .image-panel { background: var(--bg-orange); }
    .origami .text-panel__heading,
    .origami .text-panel__body p { color: var(--ink); }

    /* ═══════════════════════════════════════════════════
       4. KDE SÍDLIME
    ═══════════════════════════════════════════════════ */
    .kde-sidlime { height: 472px; }
    .kde-sidlime .section__rail,
    .kde-sidlime .text-panel,
    .kde-sidlime .image-panel { background: var(--bg-red); }
    .kde-sidlime .text-panel__heading,
    .kde-sidlime .text-panel__body p { color: var(--text-light); }

    /* ═══════════════════════════════════════════════════
       5. KONTAKT
    ═══════════════════════════════════════════════════ */
    .kontakt { height: 280px; }
    .kontakt .section__rail { background: var(--bg-blue); }

    .kontakt__panel {
      flex: 0 0 1312px;
      max-width: 1312px;
      background: var(--bg-blue);
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 32px;
      padding: var(--space-3xl);
    }
    @media (max-width: 1364px) { .kontakt__panel { flex: 1 1 0; } }

    .kontakt__deco-svg {
      position: absolute;
      /* Centre the SVG and let it span the full panel width */
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    .kontakt__heading {
      position: relative; z-index: 1;
      font-weight: 400;
      font-size: 48px;
      line-height: 1;
      letter-spacing: -0.0267em;
      color: var(--paper);
      text-align: center;
      white-space: nowrap;
    }

    .kontakt__btn {
      position: relative; z-index: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: var(--space-l) var(--space-xl);
      background: var(--paper);
      border: 1px solid var(--paper);
      border-radius: var(--radius-btn);
      cursor: pointer;
      text-decoration: none;
      transition: background 0.15s ease, color 0.15s ease;
    }
    .kontakt__btn:hover { background: transparent; }
    .kontakt__btn:hover .kontakt__btn-label { color: var(--paper); }
    .kontakt__btn-label {
      font-weight: 400;
      font-size: 14px;
      line-height: 1;
      letter-spacing: -0.01em;
      text-transform: uppercase;
      color: var(--bg-blue);
      white-space: nowrap;
    }

    /* ═══════════════════════════════════════════════════
       RESPONSIVE
    ═══════════════════════════════════════════════════ */
    @media (max-width: 1364px) {
      .section__rail { display: none; }
    }

    @media (max-width: 900px) {
      body { padding: 4px; gap: 4px; }

      .hero,
      .kto-sme,
      .origami,
      .kde-sidlime { height: auto; }
      .kontakt { height: auto; }

      .section__rail { display: none; }

      /* Hero */
      .hero__card {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px 40px;
        gap: 24px;
      }
      .hero__content { order: 1; }
      .hero__heading { font-size: 48px; line-height: 48px; }
      .hero__image {
        order: 0;
        position: static;
        width: 100%; flex: none; height: 220px;
        align-self: stretch;
      }
      .hero__image img { position: static; width: 100%; height: 100%; object-fit: contain; }

      /* Shared text+image sections */
      .section__inner { flex-direction: column; width: 100%; }
      .text-panel { flex: none; width: 100%; }
      .image-panel { flex: none; height: 300px; }

      /* Kto sme: image above text */
      .kto-sme .image-panel { order: -1; }

      /* Kde sídlime: image above text */
      .kde-sidlime .image-panel { order: -1; }

      /* Kontakt */
      .kontakt__panel { padding: 48px 24px; }
      .kontakt__heading { font-size: 32px; white-space: normal; text-align: center; }
    }

    /* ═══════════════════════════════════════════════════
       6. FOOTER
    ═══════════════════════════════════════════════════ */
    .footer { height: 221px; }
    .footer .section__rail { background: #f1f6f8; }

    .footer__panel {
      flex: 0 0 1312px;
      max-width: 1312px;
      background: #f1f6f8;
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 26px 28px;
    }
    @media (max-width: 1364px) { .footer__panel { flex: 1 1 0; } }

    /* Grid lines */
    .footer__grid {
      position: absolute;
      inset: 0;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0 8px;
      padding: 0 var(--space-3xl);
      pointer-events: none;
      z-index: 0;
    }
    .footer__grid-col { border-left: 1px solid var(--grid-line); height: 628px; }
    .footer__grid-col:last-child { border-right: 1px solid var(--grid-line); }

    /* Left: logo + socials */
    .footer__left {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 169px;
      width: 102px;
      flex-shrink: 0;
    }

    .footer__logo {
      display: block;
      width: 102px;
      height: 46px;
      flex-shrink: 0;
      color: var(--ink);
      transition: color 0.15s ease;
    }
    a:hover .footer__logo { color: var(--bg-blue); }
    .footer__logo-eye { fill: #F2F2F2 !important; }

    .footer__socials {
      display: flex;
      gap: 24px;
      align-items: center;
    }

    .footer__social-link {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      color: var(--ink);
      transition: color 0.15s;
    }
    .footer__social-link:hover { color: var(--bg-blue); }
    .footer__social-link svg { width: 24px; height: 24px; }

    /* Right: nav links */
    .footer__nav {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 17.8px;
      align-items: flex-end;
    }

    .footer__nav a {
      font-weight: 400;
      font-size: 14px;
      line-height: 1.2;
      letter-spacing: -0.01em;
      text-transform: uppercase;
      color: var(--ink);
      text-decoration: none;
      white-space: nowrap;
      transition: color 0.15s;
    }
    .footer__nav a:hover { color: var(--bg-blue); }

    /* Responsive */
    @media (max-width: 900px) {
      .footer { height: auto; }
      .footer .section__rail { display: none; }
      .footer__panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        padding: 32px 24px;
      }
      .footer__nav { align-items: flex-start; }
    }
  

    /* ═══════════════════════════════════════════
       CMS PROJECT DETAIL — styles
    ═══════════════════════════════════════════ */

    .group { display: flex; flex-direction: column; gap: var(--space-xs); }

    .project-back-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: fit-content;
      font: 500 13px/1 var(--font);
      letter-spacing: -0.02em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.86);
      text-decoration: none;
      transition: color 0.15s ease;
    }

    .project-back-link:hover {
      color: #fff;
    }

    /* ── Meta bar ────────────────────────────── */
    .meta-inner {
      flex: 0 0 1312px; max-width: 1312px;
      display: flex; gap: var(--space-xs);
    }
    @media (max-width: 1364px) { .meta-inner { flex: 1 1 0; } }

    .meta-card {
      flex: 1 1 0; min-width: 0;
      background: var(--paper);
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
      padding: var(--space-3xl);
      display: flex; flex-direction: column;
      justify-content: space-between;
      min-height: 160px;
    }

    .meta-card__icon {
      display: flex;
      align-items: flex-start;
    }

    .meta-card__icon svg path,
    .meta-card__icon svg rect {
      fill: var(--ink);
    }

    .meta-card__content {
      display: flex; flex-direction: column; gap: 6px;
    }

    .meta-card__label {
      font: 500 12px/1 var(--font);
      letter-spacing: -0.04em; text-transform: uppercase;
      color: rgba(0,11,22,0.5);
    }

    .meta-card__value {
      font: 400 16px/1.5 var(--font);
      letter-spacing: -0.01em; color: var(--ink);
    }

    /* ── Gallery (2-col: left stacked, right tall) ── */
    .gallery-inner {
      flex: 0 0 1312px; max-width: 1312px;
      display: flex; gap: var(--space-xs);
      height: 850px;
    }
    @media (max-width: 1364px) { .gallery-inner { flex: 1 1 0; } }

    .gallery-col {
      flex: 1 1 0; min-width: 0;
    }

    .gallery-col--stacked {
      display: flex; flex-direction: column; gap: var(--space-xs);
    }

    .gallery-img {
      flex: 1 1 0; min-height: 0;
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
      overflow: hidden; position: relative;
      background: var(--bg-blue);
    }

    /* Full-height right panel */
    .gallery-col--tall {
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
      overflow: hidden; position: relative;
      background: var(--bg-blue);
    }

    .gallery-img img,
    .gallery-col--tall img {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover; object-position: top center;
    }

    /* ── Info (description + tags) ───────────── */
    .info-inner {
      flex: 0 0 1312px; max-width: 1312px;
      display: flex; gap: var(--space-xs);
    }
    @media (max-width: 1364px) { .info-inner { flex: 1 1 0; } }

    .info-card {
      flex: 1 1 0; min-width: 0;
      background: var(--paper);
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
      padding: var(--space-3xl);
      display: flex; flex-direction: column;
      justify-content: space-between; gap: 16px;
    }

    .info-card__label {
      font: 500 12px/1 var(--font);
      letter-spacing: -0.04em; text-transform: uppercase;
      color: rgba(0,11,22,0.5);
    }

    .info-card__text {
      font: 400 16px/1.5 var(--font);
      letter-spacing: -0.01em; color: var(--ink);
    }

    .info-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }

    .info-card__tag {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 9px 13px;
      background: var(--grey-3); border: 1px solid var(--grey-20);
      border-radius: var(--radius-m);
      font: 500 12px/1 var(--font);
      letter-spacing: -0.04em; text-transform: uppercase; color: var(--ink);
    }
    .info-card__tag::before {
      content: ''; width: 4px; height: 4px;
      background: var(--ink); border-radius: 2.5px; flex-shrink: 0;
    }

    /* ── Canvas panels (full-width SVG displays) ─ */
    .canvas-inner {
      flex: 0 0 1312px; max-width: 1312px;
    }
    @media (max-width: 1364px) { .canvas-inner { flex: 1 1 0; } }

    .canvas-panel {
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
      overflow: hidden;
    }
    .canvas-panel svg,
    .canvas-panel img {
      width: 100%; height: auto; display: block;
    }

    /* ── Related projects (text+image rows like projects.html) ── */
    .proj-header-inner {
      flex: 0 0 1312px; max-width: 1312px;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 24px; padding: 40px var(--space-3xl); text-align: center;
      background: var(--paper);
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
    }
    @media (max-width: 1364px) { .proj-header-inner { flex: 1 1 0; } }

    /* Project row: text left + image right (same as projects.html) */
    .project-row {
      flex: 0 0 1312px; max-width: 1312px;
      display: flex; gap: var(--space-xs);
    }
    @media (max-width: 1364px) { .project-row { flex: 1 1 0; } }

    .project-text {
      flex: 0 0 654px;
      background: var(--paper);
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
      padding: var(--space-3xl);
      display: flex; flex-direction: column;
      justify-content: center; gap: 80px;
    }

    .project-info { display: flex; flex-direction: column; gap: 42px; }
    .project-title-group { display: flex; flex-direction: column; gap: 20px; }

    .project-title {
      font: 400 32px/32px var(--font);
      letter-spacing: -0.025em; color: var(--ink);
    }

    .project-desc {
      font: 400 16px/1 var(--font);
      letter-spacing: -0.01em; color: var(--ink);
    }

    .project-meta { display: flex; flex-direction: column; gap: 24px; }

    .project-meta__row {
      display: flex; justify-content: space-between;
      align-items: flex-end; padding-bottom: 1px;
      border-bottom: 1px solid var(--grey-20);
    }

    .project-meta__label {
      font: 500 12px/1 var(--font);
      letter-spacing: -0.04em; text-transform: uppercase; color: var(--ink);
    }

    .project-meta__value {
      font: 400 14px/1 var(--font);
      letter-spacing: -0.01em; color: var(--ink);
    }

    .project-tags { display: flex; flex-wrap: wrap; gap: 8px; }

    .project-tag {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 9px 13px;
      background: var(--grey-3); border: 1px solid var(--grey-20);
      border-radius: var(--radius-m);
      font: 400 14px/1 var(--font);
      letter-spacing: -0.01em; color: var(--ink);
    }
    .project-tag::before {
      content: ''; width: 4px; height: 4px;
      background: var(--ink); border-radius: 2.5px; flex-shrink: 0;
    }

    .project-image {
      flex: 1 1 0; min-width: 0;
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
      position: relative; overflow: hidden;
    }

    .project-image img {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover; object-position: center;
      transition: transform 0.4s ease;
    }

    .project-image:hover img {
      transform: scale(1.05);
    }

    /* ── More panel ──────────────────────────── */
    .more-inner {
      flex: 0 0 1312px; max-width: 1312px;
      background: var(--paper);
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 32px; padding: 49px var(--space-3xl);
    }
    @media (max-width: 1364px) { .more-inner { flex: 1 1 0; } }

    .more-inner__heading {
      font: 400 48px/48px var(--font);
      letter-spacing: -0.0267em; color: var(--ink); text-align: center;
    }

    /* ── Contact CTA (blue) ──────────────────── */
    .contact-cta-inner {
      flex: 0 0 1312px; max-width: 1312px;
      position: relative; overflow: hidden;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 32px; padding: var(--space-3xl); height: 323px;
      background: var(--bg-blue);
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
    }
    @media (max-width: 1364px) { .contact-cta-inner { flex: 1 1 0; } }

    .contact-cta-inner__heading {
      position: relative; z-index: 1;
      font: 400 48px/48px var(--font);
      letter-spacing: -0.0267em; color: var(--paper); text-align: center;
    }
    .contact-cta-inner .eyebrow,
    .contact-cta-inner .btn-white { position: relative; z-index: 1; }
    .contact-cta-inner .eyebrow { position: relative; z-index: 1; }

    .contact-deco {
      position: absolute; bottom: 0; left: 0; right: 0;
      width: 100%; height: auto; display: block; pointer-events: none;
    }

    /* Responsive */
    @media (max-width: 900px) {
      .meta-inner, .info-inner { flex-direction: column; }
      .gallery-inner { flex-direction: column; height: auto; }
      .gallery-col--stacked, .gallery-col--tall { min-height: 260px; }
      .gallery-img { min-height: 200px; }
      .project-row { flex-direction: column; }
      .project-text { flex: none; width: 100%; }
      .project-image { height: auto; aspect-ratio: 1 / 1; }
      .contact-cta-inner { height: auto; padding: 48px 24px; }
      .contact-cta-inner__heading { font-size: 32px; }
    }

    @media (max-width: 900px) {
      body {
        padding: 4px;
        gap: 4px;
      }

      .group { gap: var(--space-xs); }
      .section,
      .section__inner,
      .hero__card,
      .kontakt__panel,
      .home-hero__panel,
      .home-heading-panel,
      .home-platform-teaser__inner,
      .home-platforms__inner,
      .home-feature-row,
      .home-service-row,
      .home-faq-row,
      .about-row,
      .services-type-row,
      .services-intro,
      .meta-inner,
      .gallery-inner,
      .info-inner,
      .canvas-inner,
      .proj-header-inner,
      .project-row,
      .more-inner,
      .contact-cta-inner,
      .footer__panel,
      .blog-feature__panel,
      .blog-list-grid,
      .blog-pagination__panel,
      .blog-newsletter__panel,
      .contact-hero__card,
      .contact-form-inner,
      .contact-blog-header__panel,
      .contact-blog-cards__inner,
      .article-hero__panel,
      .article-body__panel,
      .pricing-grid {
        width: 100%;
        max-width: none;
      }

      .nav-wrapper { top: 33px; }
      .nav {
        width: 416px;
        max-width: calc(100vw - 48px);
      }

      .hero {
        height: 636px;
      }
      .hero__card {
        flex: 1 1 0;
        height: 100%;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        padding: var(--space-3xl);
        gap: 0;
      }
      .hero__grid { display: none; }
      .hero__content {
        width: 100%;
        gap: var(--space-4xl);
      }
      .hero__heading {
        font-size: 64px;
        line-height: 64px;
        letter-spacing: -0.04em;
        max-width: 474px;
      }
      .hero .eyebrow {
        background: transparent;
        border-color: transparent;
        padding: 13px 1px;
        gap: 12px;
      }
      .hero .eyebrow__dot {
        width: 8px;
        height: 8px;
        border-radius: 0;
        background: transparent;
        border-left: 1.5px solid #fff;
        border-bottom: 1.5px solid #fff;
        transform: rotate(45deg);
        animation: none;
      }
      .hero .eyebrow__label {
        font-size: 14px;
        font-weight: 400;
        letter-spacing: -0.01em;
      }
      .hero .eyebrow__label { font-size: 0; }
      .hero .eyebrow__label::after {
        content: "Späť";
        font-size: 14px;
      }

      .meta-inner,
      .info-inner {
        gap: var(--space-xs);
      }
      .meta-card {
        flex: none;
        min-height: 188px;
        height: 188px;
        padding: var(--space-3xl);
      }
      .meta-card__content {
        gap: 12px;
        max-width: 330px;
      }
      .meta-card__label,
      .info-card__label {
        color: var(--ink);
      }
      .meta-card__value,
      .info-card__text {
        line-height: 1;
      }

      .gallery-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4.8px;
      }
      .gallery-col,
      .gallery-col--stacked {
        display: grid;
        gap: 4.8px;
        min-height: 0;
      }
      .gallery-img {
        flex: none;
        height: 422.6px;
        min-height: 0;
      }
      .gallery-col--tall {
        height: 748.48px;
        min-height: 0;
      }

      .info-card {
        flex: none;
        height: 188px;
        padding: var(--space-3xl);
        justify-content: flex-end;
        gap: var(--space-l);
      }
      .info-card__text,
      .info-card__tags {
        max-width: 330px;
      }
      .info-card__tags {
        gap: var(--space-l);
      }
      .info-card__tag,
      .project-tag {
        font-size: 12px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: -0.04em;
        text-transform: uppercase;
      }

      .proj-header-inner,
      .more-inner {
        min-height: 166px;
        padding: var(--space-3xl);
        gap: var(--space-4xl);
      }
      .more-inner__heading {
        font-size: 48px;
        line-height: 48px;
        letter-spacing: -0.0267em;
      }

      .project-row {
        gap: var(--space-xs);
      }
      .project-image {
        flex: none;
        width: 100%;
        height: 524.41px;
        aspect-ratio: auto;
      }
      .project-text {
        flex: none;
        width: 100%;
        min-height: 444.41px;
        padding: var(--space-3xl);
        justify-content: space-between;
        gap: 32px;
      }
      .project-info {
        gap: 42px;
      }
      .project-title-group {
        gap: 20px;
      }
      .project-desc {
        line-height: 1;
      }
      .project-meta {
        gap: 24px;
      }
      .project-tags {
        gap: var(--space-xs);
        max-width: 330px;
      }

      .contact-cta-inner {
        height: 323px;
        padding: var(--space-3xl);
        gap: var(--space-4xl);
      }
      .contact-cta-inner__heading {
        font-size: 48px;
        line-height: 48px;
        letter-spacing: -0.0267em;
        white-space: nowrap;
      }
      .contact-deco {
        width: 597px;
        max-width: none;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
      }

      .footer {
        height: 223px;
      }
      .footer__panel {
        height: 223px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 26px 28px;
      }
      .footer__left {
        height: 169px;
        width: 102px;
      }
      .footer__nav {
        align-items: flex-start;
        gap: 17.8px;
      }
    }

    @media (max-width: 480px) {
      body {
        padding: 4px;
        gap: 4px;
      }
      .hero__heading,
      .more-inner__heading,
      .contact-cta-inner__heading {
        font-size: 40px;
        line-height: 40px;
      }
      .meta-card,
      .info-card,
      .project-text,
      .proj-header-inner,
      .more-inner,
      .contact-cta-inner {
        padding: 20px;
      }
      .gallery-img {
        height: 74.2vw;
      }
      .gallery-col--tall {
        height: 132vw;
      }
      .project-image {
        height: 92.5vw;
      }
      .footer__panel {
        padding: 22px;
      }
    }

    /* Buttons (missing from base CSS) */
    .btn-blue {
      display: inline-flex; align-items: center; justify-content: center;
      padding: 13px 17px;
      background: var(--bg-blue);
      border: 1px solid var(--bg-blue);
      border-radius: var(--radius-btn, 12px);
      font: 400 14px/1 var(--font);
      letter-spacing: -0.01em; text-transform: uppercase;
      color: #fff; text-decoration: none;
      cursor: pointer; transition: background .15s, color .15s; white-space: nowrap;
    }
    .btn-blue:hover { background: transparent; color: var(--bg-blue); }

    .btn-white {
      display: inline-flex; align-items: center; justify-content: center;
      padding: 13px 17px;
      background: var(--paper);
      border: 1px solid var(--paper);
      border-radius: var(--radius-btn, 12px);
      font: 400 14px/1 var(--font);
      letter-spacing: -0.01em; text-transform: uppercase;
      color: var(--bg-blue); text-decoration: none;
      cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap;
    }
    .btn-white:hover { background: transparent; border-color: var(--paper); color: var(--paper); }
    .services-type-card .btn-white { align-self: flex-start; }

    /* ═══════════════════════════════════════════════════
       NAVBAR
    ═══════════════════════════════════════════════════ */
    .nav-wrapper {
      position: fixed;
      top: 44px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 9999;
      display: flex;
      justify-content: center;
      pointer-events: none;
      transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                  opacity  0.35s ease;
    }

    .nav-wrapper--hidden {
      transform: translateX(-50%) translateY(calc(-100% - 60px));
      opacity: 0;
      pointer-events: none !important;
    }

    /* ── Shared pill shell ─────────────────────────── */
    .nav {
      pointer-events: all;
      position: relative;
      background: #ffffff;
      border: 1px solid var(--grey-20);
      border-radius: var(--radius-main);
      box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.15);
      overflow: hidden;

      /* Faster spring-like easing */
      width: 416px;
      max-width: calc(100vw - 48px);
      transition:
        width  0.2s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.2s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.12s ease;
    }

    /* ── CLOSED state ──────────────────────────────── */
    .nav--closed {
      height: 82px;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }

    .nav__closed-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 82px;
      padding: 9px 25px;
      opacity: 1;
      transition: opacity 0.08s ease;
    }
    .nav--open .nav__closed-inner {
      opacity: 0;
      pointer-events: none;
      position: absolute;
      inset: 0;
    }

    /* ── OPEN state ────────────────────────────────── */
    .nav--open {
      width: min(1000px, calc(100vw - 48px));
      height: auto; /* override — JS sets explicit px */
    }

    .nav__open-inner {
      display: flex;
      flex-direction: column;
      gap: 48px;
      padding: 32px;
      opacity: 0;
      pointer-events: none;
      position: absolute;
      inset: 0;
      width: 100%;
      transition: opacity 0.15s ease 0.06s;
    }
    .nav--open .nav__open-inner {
      opacity: 1;
      pointer-events: all;
      position: relative;
      inset: auto;
    }

    /* Open — top bar */
    .nav__open-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
    }

    /* Open — main content split */
    .nav__open-body {
      display: flex;
      align-items: stretch;
      gap: 32px;
      width: 100%;
    }

    /* Left — menu links */
    .nav__menu-list {
      flex: 0 0 auto;
      display: flex;
      flex-direction: column;
      gap: 32px;
      list-style: none;
    }

    .nav__menu-list a {
      font-family: var(--font);
      font-size: 28px;
      font-weight: 400;
      line-height: 1.04;
      letter-spacing: -0.04em;
      color: var(--ink);
      text-decoration: none;
      display: block;
      transition: color 0.15s ease;
    }
    .nav__menu-list a:hover { color: var(--bg-blue); }

    .nav__lang {
      display: flex;
      gap: 16px;
    }
    .nav__lang a {
      font-size: 28px;
      font-weight: 400;
      letter-spacing: -0.04em;
      color: var(--ink);
      text-decoration: none;
      transition: color 0.15s ease;
    }
    .nav__lang a:hover,
    .nav__lang a[aria-current] { color: var(--bg-blue); }
    .nav__lang-sep {
      font-size: 28px;
      font-weight: 400;
      letter-spacing: -0.04em;
      color: var(--ink);
    }

    /* Right — contact image card */
    .nav__contact-card {
      flex: 1 1 0;
      min-width: 0;
      border-radius: 16px;
      overflow: hidden;
      position: relative;
      min-height: 220px;
      background: var(--bg-blue);
      text-decoration: none;
      display: block;
    }
    .nav__contact-card:hover .nav__contact-label { letter-spacing: -0.06em; }

    .nav__contact-bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    .nav__contact-grad {
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.5) 100%);
      pointer-events: none;
    }

    .nav__contact-label {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font);
      font-size: 72px;
      font-weight: 400;
      line-height: 1.04;
      letter-spacing: -0.04em;
      color: var(--text-light);
      transition: letter-spacing 0.25s ease;
      z-index: 1;
    }

    /* Open — footer row */
    .nav__open-footer {
      display: flex;
      justify-content: space-between;
      font-family: var(--font);
      font-size: 16px;
      font-weight: 400;
      letter-spacing: -0.025em;
      color: rgba(31, 29, 30, 0.2);
      white-space: nowrap;
    }

    /* ── Shared elements ───────────────────────────── */
    .nav__logo-link {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 64px;
      height: 64px;
      border-radius: 999px;
      flex-shrink: 0;
      text-decoration: none;
      color: var(--ink);
      transition: color 0.15s ease;
    }
    .nav__logo-link:hover { color: var(--bg-blue); }
    .nav__logo-eye { fill: #F2F2F2 !important; }

    .nav__logo {
      width: 46px;
      height: 44px;
      display: block;
    }

    .nav__toggle-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 46px;
      height: 46px;
      padding: 10px 6px;
      border: none;
      background: none;
      cursor: pointer;
      border-radius: var(--radius-btn);
      flex-shrink: 0;
      transition: background 0.15s ease;
    }
    .nav__toggle-btn:hover { background: var(--grey-3); }
    .nav__toggle-btn:hover .nav__icon-bar { stroke: var(--bg-blue); }

    .nav__icon {
      width: 26px;
      height: 26px;
      display: block;
      /* The icon paths animate between hamburger ↔ close */
    }

    /* Hamburger bars */
    .nav__icon-bar {
      transform-origin: center;
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                  opacity   0.2s ease,
                  stroke    0.15s ease;
    }

    /* Overlay that dims the page behind the open nav */
    .nav-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 11, 22, 0.4);
      z-index: 9998;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.35s ease;
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
    }
    .nav-overlay--visible {
      opacity: 1;
      pointer-events: all;
    }

/* Homepage */
.home-hero { min-height: 720px; }
.home-hero .section__rail {
  background-image:
    linear-gradient(rgba(255,255,255,0.11) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,0.11) 1px, transparent 1px);
  background-size: 20px 20px;
}
.home-hero__panel {
  flex: 0 0 1312px;
  max-width: 1312px;
  min-height: 720px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-4xl) var(--space-3xl) var(--space-6xl);
  background: var(--bg-blue);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
}
.home-hero__panel::before,
.home-service-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.11) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.home-hero__content {
  position: relative;
  z-index: 2;
  width: min(654px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  color: var(--paper);
}
.home-hero__headline-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.home-hero__heading {
  font: 400 96px/96px var(--font);
  letter-spacing: -0.052em;
  color: var(--paper);
}
@keyframes hero-word-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-word {
  display: inline-block;
  animation: hero-word-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i) * 80ms);
}
@media (prefers-reduced-motion: reduce) {
  .hero-word { animation: none; }
}
.home-hero__copy {
  max-width: 520px;
  font: 400 16px/1 var(--font);
  letter-spacing: -0.01em;
  color: var(--paper);
}
@keyframes hero-decor-wiggle {
  0%   { transform: rotate(0deg)  scale(1); }
  20%  { transform: rotate(-4deg) scale(1.02); }
  45%  { transform: rotate(3deg)  scale(1.015); }
  65%  { transform: rotate(-2deg) scale(1.01); }
  80%  { transform: rotate(1deg)  scale(1.005); }
  100% { transform: rotate(0deg)  scale(1); }
}
.home-hero__decor {
  position: absolute;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  pointer-events: auto;
  user-select: none;
  cursor: default;
  transform-origin: center center;
}
.home-hero__decor:hover {
  animation: hero-decor-wiggle 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__decor:hover { animation: none; }
}
.home-hero__decor--clip {
  left: 132px;
  top: 86px;
  width: 111px;
}
.home-hero__decor--note {
  left: 86px;
  top: 162px;
  width: 242px;
  max-width: 18.5%;
}
.home-hero__decor--paperclip {
  right: 274px;
  top: 96px;
  width: 64px;
}
.home-hero__decor--card {
  right: 82px;
  top: 152px;
  width: 231px;
  max-width: 17.7%;
}
.home-hero__decor--pencil {
  left: 112px;
  bottom: -10px;
  width: 300px;
  max-width: 23%;
}
.home-hero__decor--phone {
  right: 70px;
  bottom: -72px;
  width: 354px;
  max-width: 27%;
}
.home-heading-panel {
  flex: 0 0 1312px;
  max-width: 1312px;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: var(--space-3xl);
  background: var(--paper);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
  text-align: center;
}
.home-heading-panel--red { background: var(--bg-red); color: var(--paper); }
.home-heading-panel__title {
  font: 400 48px/48px var(--font);
  letter-spacing: -0.0267em;
  color: currentColor;
}
.home-platform-teaser__inner,
.home-platforms__inner {
  flex: 0 0 1312px;
  max-width: 1312px;
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
}
.home-platform-teaser__inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  background: var(--paper);
  text-align: center;
}
.home-platform-teaser__inner h2,
.home-platforms__inner h2 {
  font: 400 48px/48px var(--font);
  letter-spacing: -0.0267em;
  color: var(--ink);
  text-align: center;
}
.home-platforms__inner {
  min-height: 392px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: var(--space-4xl) var(--space-3xl);
  background: #eef5f8;
}
.home-platforms__logos {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 72px;
  align-items: center;
  justify-items: center;
}
.home-platforms__logos img {
  display: block;
  max-width: 240px;
  width: 100%;
  height: 64px;
  object-fit: contain;
}

@media (max-width: 1364px) {
  .home-platform-teaser__inner,
  .home-platforms__inner { flex: 1 1 0; }
}

@media (max-width: 900px) {
  .home-platform-teaser__inner { min-height: 88px; }
  .home-platforms__inner { min-height: 360px; gap: 36px; }
  .home-platform-teaser__inner h2,
  .home-platforms__inner h2 { font-size: 34px; line-height: 36px; }
  .home-platforms__logos { grid-template-columns: 1fr; gap: 24px; }
  .home-platforms__logos img { height: 52px; max-width: 230px; }
}
.home-feature-row,
.home-service-row,
.home-faq-row {
  flex: 0 0 1312px;
  max-width: 1312px;
  display: flex;
  gap: var(--space-xs);
}
.home-faq-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.home-faq-stack .section {
  width: 100%;
}
.home-faq-heading {
  border-radius: var(--radius-btn);
}
.home-feature-card,
.home-service-card,
.home-service-visual,
.home-faq-card {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
  overflow: hidden;
}
.home-feature-card {
  min-height: 265px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  padding: var(--space-3xl);
  background: var(--paper);
}
.home-feature-card--visual {
  position: relative;
  align-items: center;
  justify-content: center;
}
.home-feature-card__title,
.home-service-card__title {
  font: 400 32px/32px var(--font);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.home-feature-card__copy,
.home-service-card__copy,
.home-faq-card__answer {
  max-width: 360px;
  font: 400 16px/1 var(--font);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.home-ui-cluster {
  position: relative;
  width: min(360px, 72%);
  height: 170px;
}
.home-ui-card {
  position: absolute;
  right: 44px;
  top: 0;
  width: 194px;
  height: 124px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  color: var(--paper);
  background: var(--bg-red);
  border-radius: 11px;
  box-shadow: 5px 2px 12px rgba(0,0,0,0.24);
}
.home-ui-card strong { font: 500 18px/1.2 var(--font); }
.home-ui-card span { font: 400 10px/1 var(--font); }
.home-ui-toolbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--paper);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}
.home-tool-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-red);
}
.home-tool-dot:nth-child(2) { background: var(--bg-orange); }
.home-tool-dot:nth-child(3) { background: var(--bg-blue); }
.home-service-card,
.home-service-visual {
  min-height: 265px;
  background: var(--bg-red);
  color: var(--paper);
}
.home-service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  padding: var(--space-3xl);
}
.home-service-card__title,
.home-service-card__copy { color: var(--paper); }
.home-service-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
}
.home-service-visual__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-device {
  position: relative;
  z-index: 1;
  width: min(360px, 72%);
  aspect-ratio: 1.55;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 18px 32px rgba(0,0,0,0.22);
}
.home-device__bar,
.home-device__line {
  height: 12px;
  border-radius: 999px;
  background: rgba(0,11,22,0.12);
}
.home-device__bar {
  width: 44%;
  background: var(--bg-blue);
}
.home-device__line:nth-child(3) { width: 78%; }
.home-device__line:nth-child(4) { width: 62%; }
.home-device__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
}
.home-device__tiles span {
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(0,102,255,0.14);
}
.home-faq-card {
  min-height: 109px;
  display: flex;
  flex-direction: column;
  padding: var(--space-3xl);
  background: var(--paper);
  border-color: rgba(0,11,22,0.1);
  cursor: pointer;
}
.home-faq-card__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 24px/26px var(--font);
  letter-spacing: -0.029em;
  text-align: left;
  cursor: pointer;
}
.home-faq-card__icon {
  flex: 0 0 20px;
  margin-top: 3px;
  transition: transform 180ms ease;
  color: var(--ink);
}
.home-faq-card__answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  max-width: 612px;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease;
}
.home-faq-card.is-open .home-faq-card__answer {
  max-height: 400px;
  opacity: 1;
  margin-top: 12px;
}
.home-faq-card.is-open .home-faq-card__icon { transform: rotate(45deg); }

@media (max-width: 1364px) {
  .home-hero__panel,
  .home-heading-panel,
  .home-feature-row,
  .home-service-row,
  .home-faq-row { flex: 1 1 0; }
}

@media (max-width: 900px) {
  .home-hero { min-height: auto; }
  .home-hero__panel {
    min-height: 720px;
    padding: 88px 24px 44px;
    align-items: center;
  }
  .home-hero__heading {
    font-size: 64px;
    line-height: 64px;
    letter-spacing: -0.04em;
  }
  .home-hero__copy { white-space: normal; }
  .home-hero__decor--clip { left: 20px; top: 52px; width: 74px; }
  .home-hero__decor--note { left: 16px; top: 112px; width: 126px; max-width: 30%; }
  .home-hero__decor--paperclip { right: 96px; top: 54px; width: 42px; }
  .home-hero__decor--card { right: 16px; top: 102px; width: 118px; max-width: 28%; }
  .home-hero__decor--pencil { left: -12px; bottom: -8px; width: 190px; max-width: 42%; }
  .home-hero__decor--phone { right: -48px; bottom: -54px; width: 226px; max-width: 50%; }
  .home-heading-panel { min-height: 180px; }
  .home-heading-panel__title {
    font-size: 34px;
    line-height: 36px;
  }
  .home-feature-row,
  .home-service-row,
  .home-faq-row {
    width: 100%;
    max-width: none;
    flex-direction: column;
  }
  .home-feature-card,
  .home-service-card,
  .home-service-visual { min-height: 250px; }
  .home-faq-card { min-height: 180px; }
  .home-faq-card__toggle {
    font-size: 20px;
    line-height: 22px;
  }
}

@media (max-width: 1364px) {
  .about-page .hero__image {
    left: 56%;
    width: min(30vw, 384px);
  }
}

@media (max-width: 900px) {
  .about-page .kto-sme,
  .about-page .origami,
  .about-page .kde-sidlime {
    flex-direction: column;
  }
  .about-page .hero__content {
    flex: none;
    width: 100%;
    max-width: none;
  }
  .about-page .hero__image {
    position: absolute;
    left: auto;
    right: 56px;
    top: 132px;
    width: min(44vw, 240px);
    height: 165px;
  }
  .about-page .hero .eyebrow {
    background: var(--grey-3);
    border-color: var(--grey-20);
    padding: var(--space-m) var(--space-l);
    gap: 6px;
  }
  .about-page .hero .eyebrow__dot {
    width: 4px;
    height: 4px;
    border: 0;
    border-radius: 2.5px;
    background: var(--ink);
    transform: none;
    animation: dot-pulse 2.4s ease-in-out infinite;
  }
  .about-page .hero .eyebrow__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
  }
  .about-page .hero .eyebrow__label::after {
    content: none;
  }
  .about-page .text-panel__heading {
    white-space: normal;
  }
}

    /* Navbar floats over content — no body padding needed */

/* ═══════════════════════════════════════════════════
   WHAT WE BUILD — shared across index + sluzby
═══════════════════════════════════════════════════ */
.services-type-row {
  flex: 0 0 1312px;
  max-width: 1312px;
  display: flex;
  gap: var(--space-xs);
  align-items: stretch;
  min-height: 290px;
}
@media (max-width: 1364px) { .services-type-row { flex: 1 1 0; } }

.services-type-card {
  flex: 0 0 calc(50% - 2px);
  width: calc(50% - 2px);
  min-width: 0;
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
  background: var(--bg-red);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4xl);
  padding: var(--space-3xl);
}
.services-type-card__info { display: flex; flex-direction: column; gap: 20px; }
.services-type-card__title {
  font: 400 32px/32px var(--font);
  letter-spacing: -0.025em;
  color: var(--paper);
}
.services-type-card__desc {
  font: 400 16px/1 var(--font);
  letter-spacing: -0.01em;
  color: var(--paper);
  max-width: 460px;
}

.services-type-visual {
  flex: 0 0 calc(50% - 2px);
  width: calc(50% - 2px);
  min-width: 0;
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
  background: var(--bg-red);
  position: relative;
  overflow: hidden;
}
.services-type-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


@media (max-width: 900px) {
  .services-type-row { flex-direction: column; min-height: auto; }
  .services-type-card { flex: none; width: 100%; min-height: 260px; }
  .services-type-visual { flex: none; width: 100%; min-height: 200px; }
  .services-type-row > .services-type-card { order: 1; }
  .services-type-row > .services-type-visual { order: 2; }
  .services-type-card__title { font-size: 24px; line-height: 28px; }
}

/* ─── INDEX — BENEFITS BENTO ──────────────────────────── */
.bft-section {
  --bft-gap: 4px;
  --bft-pad: 25px;
  --bft-radius: var(--radius-main);
  --bft-ink-gray: rgba(0,11,22,0.6);
  --bft-paper-dark: #f1f6f8;
  display: flex;
  flex-direction: column;
  gap: var(--bft-gap);
}
.bft-row {
  display: grid;
  grid-template-columns: 1fr minmax(0, 654px) minmax(0, 654px) 1fr;
  gap: var(--bft-gap);
  align-items: stretch;
}
.bft-row-header,
.bft-row-footer { grid-template-columns: 1fr minmax(0, 1312px) 1fr; }
.bft-row-header { height: 156px; }
.bft-row-r2, .bft-row-r3, .bft-row-r4,
.bft-row-r5, .bft-row-r6, .bft-row-r7 { height: 265px; }
.bft-row-footer { height: 98px; }
.bft-side {
  background: var(--paper);
  border: 1px solid var(--grey-20);
  border-radius: var(--bft-radius);
}
.bft-card {
  background: var(--paper);
  border: 1px solid var(--grey-20);
  border-radius: var(--bft-radius);
  overflow: hidden;
  position: relative;
  min-width: 0;
}
.bft-card-pad { padding: var(--bft-pad); }
.bft-cursor-zone,
.bft-cursor-zone * { cursor: none !important; }

/* ─── BENTO: Cursor follower ──────────── */
#bft-cursor-follow {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  display: none;
  will-change: transform;
}

.bft-cf-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 22px;
  z-index: 2;
}

.bft-cf-bubble {
  position: absolute;
  top: 22px;
  left: 25px;
  background: #0066ff;
  color: white;
  font: 400 14px/1 var(--font);
  letter-spacing: -0.14px;
  padding: 12px 20px;
  border-radius: 2px 24px 24px 24px;
  box-shadow: 4px 4px 5px rgba(46, 144, 250, 0.16);
  white-space: nowrap;
  z-index: 1;
}
.bft-h1 {
  font: 400 48px/1 var(--font);
  letter-spacing: -0.027em;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}
.bft-h3 {
  font: 400 32px/1 var(--font);
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 330px;
}
.bft-p {
  font: 400 16px/1.55 var(--font);
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 330px;
}
.bft-num {
  font: 400 52px/1 var(--font);
  letter-spacing: -0.05em;
  color: var(--ink);
}
.bft-caption {
  font: 400 18px/1.33 var(--font);
  letter-spacing: -0.02em;
  color: var(--bft-ink-gray);
  opacity: 0.5;
}
.bft-text-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  height: 100%;
}
.bft-header-centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.bft-footer-centre {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bft-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  background: rgba(0,11,22,0.03);
  border: 1px solid var(--grey-20);
  border-radius: 8px;
}
.bft-eyebrow-dot {
  width: 4px; height: 4px;
  background: var(--ink);
  border-radius: 2.5px;
  flex-shrink: 0;
}
.bft-eyebrow-label {
  font: 400 12px/1 var(--font);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.tokens-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  height: 100%;
  width: 100%;
  padding: 24px;
}
.mini-card {
  background: var(--bft-paper-dark);
  border-radius: 11px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  width: 194px;
  padding: 13px;
  transition: border-radius .3s cubic-bezier(.4,0,.2,1), background .3s cubic-bezier(.4,0,.2,1);
}
.mini-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.avatar-group { display: flex; }
.avatar { width: 21px; height: 21px; border-radius: 50%; border: 1.5px solid white; margin-left: -6px; }
.avatar:first-child { margin-left: 0; }
.av-dark  { background: #000; color: white; font-size: 8px; display:flex; align-items:center; justify-content:center; }
.av-gray1 { background: #b4b4b4; }
.av-gray2 { background: #918a8a; }
.mini-title { font: 400 17px/1.3 var(--font); color: var(--ink); margin-bottom: 5px; height: calc(17px * 1.3); overflow: hidden; display: flex; align-items: center; transition: font-family .2s ease; }
.mini-body  { font-size: 8.5px; color: var(--ink); line-height: 1.4; }
.three-dots { font-size: 18px; color: var(--ink); line-height: 1; letter-spacing: 1px; }
.cr-toolbar { background: white; box-shadow: 0 8px 24px rgba(0,0,0,0.15); padding: 16px; border-radius: 4px; display: inline-flex; gap: 48px; align-items: flex-start; white-space: nowrap; flex-shrink: 0; }
.cr-group { display: flex; gap: 24px; align-items: flex-start; flex-shrink: 0; }
.cr-btn { width: 24px; height: 24px; padding: 0; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 4px; flex-shrink: 0; transition: background .12s ease; }
.cr-btn:hover { background: rgba(0,11,22,0.06); }
.cr-btn:active { transform: scale(0.92); }
.cr-btn svg { width: 24px; height: 24px; display: block; pointer-events: none; }
.cr-btn svg path { fill: black; }
.cr-btn[data-group="icon-radius"].active svg path,
.cr-btn[data-group="font"].active svg path { fill: #0066ff; }
.cr-btn[data-group="color"].active svg circle { stroke: #0066ff; stroke-width: 2; }
.chart-card { padding: 0; }
.chart-info { position: absolute; top: 25px; left: 25px; display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.stat-row { display: flex; align-items: center; gap: 9px; }
.chart-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.editor-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; }
.editor-inner { display: inline-flex; flex-direction: column; align-items: stretch; gap: 48px; }
.editor-title { font: 400 52px/1 var(--font); letter-spacing: -0.05em; color: var(--ink); text-align: center; }
.editor-toolbar { background: white; box-shadow: 0 8px 24px rgba(0,0,0,0.15); padding: 16px; border-radius: 8px; display: inline-flex; gap: 48px; align-items: flex-start; }
.editor-group { display: flex; gap: 24px; align-items: center; }
.ed-btn { width: 24px; height: 24px; padding: 0; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 4px; flex-shrink: 0; transition: background .12s ease; }
.ed-btn:hover { background: rgba(0,11,22,0.06); }
.ed-btn:active { transform: scale(0.92); }
.ed-btn svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.ed-btn svg path { fill: #000b16; }
.ed-btn.active svg path { fill: #0066ff; }
.drag-handle { width: 18px; height: 34px; background: rgba(0,11,22,0.12); border: 1px solid rgba(0,11,22,0.05); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: ew-resize; flex-shrink: 0; z-index: 3; }
.drag-handle:hover { background: rgba(0,11,22,0.2); }
.handle-lines { display: flex; gap: 2.5px; }
.handle-line { width: 1.8px; height: 23px; background: rgba(0,11,22,0.35); border-radius: 4px; }
.app-list-item { display: flex; align-items: center; gap: 5px; }
.app-avatar { width: 14px; height: 14px; border-radius: 50%; background: rgba(0,11,22,0.25); flex-shrink: 0; }
.app-pill { width: 28px; height: 12px; background: #0066ff; border-radius: 3px; flex-shrink: 0; }
.play-btn { width: 26px; height: 26px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1; }
.play-btn::after { content: ''; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid #333; margin-left: 2px; }
.press-card { display: flex; align-items: center; justify-content: center; }
.press-btn { background: #0066ff; border: none; border-radius: 26px; padding: 28px 37px; font: 400 30px/1 var(--font); letter-spacing: -0.01em; text-transform: uppercase; color: white; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.press-btn:hover  { transform: scale(1.03); box-shadow: 0 8px 30px rgba(0,102,255,0.35); }
.press-btn:active { transform: scale(0.97); }

/* ─── ABOUT ─────────────────────────────── */
.about-row {
  display: flex;
  align-items: stretch;
  flex: 0 0 1312px;
  max-width: 1312px;
  gap: 4px;
}
.about-row > * {
  flex: 0 0 calc(50% - 2px);
  width: calc(50% - 2px);
  min-width: 0;
}
@media (max-width: 1364px) {
  .about-row { flex: 1 1 0; }
}

/* ─── SERVICES ──────────────────────────── */
.services-hero { height: 636px; }
.services-hero .section__rail { background: var(--paper); }
.services-hero .hero__card { align-items: flex-end; }
.services-hero .hero__content { max-width: 580px; gap: var(--space-4xl); }
.services-hero .hero__heading { color: var(--ink); }

.services-hero__rings {
  position: absolute;
  right: 5%;
  top: 0;
  width: 34%;
  max-width: 440px;
  z-index: 1;
  pointer-events: none;
}
.services-hero__rings img { width: 100%; height: auto; display: block; }

.services-intro {
  flex: 0 0 1312px;
  max-width: 1312px;
  background: var(--bg-blue);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4xl);
  padding: 48px var(--space-3xl);
  text-align: center;
  min-height: 210px;
}
@media (max-width: 1364px) { .services-intro { flex: 1 1 0; } }

.services-intro__text {
  font: 400 48px/1.15 var(--font);
  letter-spacing: -0.03em;
  color: var(--paper);
  max-width: 680px;
}

.service-card {
  flex: 1 1 0;
  min-width: 0;
  min-height: 400px;
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.service-card__body {
  flex: 1 1 0;
  min-height: 0;
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-card__icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}
.service-card__image {
  flex: 1 1 0;
  min-height: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background-color: #eef5f8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.service-card__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.service-card__title {
  font: 400 22px/22px var(--font);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.service-card__desc {
  font: 400 14px/1.45 var(--font);
  letter-spacing: -0.01em;
  color: var(--ink);
}

@media (max-width: 900px) {
  .services-hero { height: auto; }
  .services-hero .hero__card {
    flex-direction: column;
    align-items: flex-start;
    padding: 88px 24px 44px;
    gap: 24px;
  }
  .services-hero .hero__heading { font-size: 64px; line-height: 64px; }
  .services-hero__rings { position: static; width: 50%; max-width: 200px; align-self: flex-end; }
  .services-hero .hero__grid { display: none; }
  .services-intro__text { font-size: 24px; line-height: 28px; }
  .home-feature-row { flex-direction: column; }
  .service-card__image { height: 160px; }
}
@media (max-width: 480px) {
  .services-hero .hero__heading { font-size: 64px; line-height: 64px; }
  .services-intro__text { font-size: 20px; line-height: 26px; }
  .services-type-card__title { font-size: 24px; line-height: 28px; }
}

/* ─── PROJECTS ──────────────────────────── */
.projects-hero { height: 636px; }
.projects-hero .section__rail { background: var(--paper); }
.projects-hero .hero__card {
  align-items: flex-end;
  justify-content: flex-start;
}
.projects-hero .hero__content {
  max-width: 654px;
  gap: var(--space-4xl);
}
.projects-hero .hero__heading { color: var(--ink); }

.projects-hero__pen {
  position: absolute;
  right: 6%;
  top: 60px;
  width: 36%;
  max-width: 456px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}
.projects-hero__pen img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.projects-cta__heading {
  position: relative;
  z-index: 1;
  font: 400 48px/48px var(--font);
  letter-spacing: -0.0267em;
  color: var(--paper);
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .projects-hero { height: auto; }
  .projects-hero .hero__card {
    flex-direction: column;
    align-items: flex-start;
    padding: 88px 24px 44px;
    gap: 24px;
  }
  .projects-hero .hero__heading { font-size: 64px; line-height: 64px; }
  .projects-hero__pen {
    position: static;
    width: 60%;
    max-width: 280px;
    margin: 0 auto;
  }
  .projects-hero .hero__grid { display: none; }
  .projects-cta__heading { white-space: normal; font-size: 34px; line-height: 38px; }
}
@media (max-width: 480px) {
  .projects-hero .hero__heading { font-size: 64px; line-height: 64px; }
}

/* ─── BLOG ───────────────────────────────── */
.blog-page .nav__logo-img { display: block; width: 64px; height: 64px; }
.blog-page .footer__logo { object-fit: contain; object-position: left center; }
.blog-page .footer__social-link img { display: block; width: 24px; height: 24px; object-fit: contain; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-hero .hero__content { max-width: 720px; }
.blog-hero .hero__heading { max-width: 760px; }
.blog-mobile-break { display: none; }

.blog-feature { height: 323px; }
.blog-feature .section__rail { background: var(--bg-blue); }

.blog-feature__panel {
  flex: 0 0 1312px;
  max-width: 1312px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-3xl);
  background: var(--bg-blue);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
  color: var(--paper);
  text-decoration: none;
  isolation: isolate;
}
@media (max-width: 1364px) { .blog-feature__panel { flex: 1 1 0; } }

.blog-feature__copy {
  position: relative;
  z-index: 2;
  width: 380px;
  max-width: 45%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.blog-feature__meta { display: flex; flex-direction: column; gap: 12px; }

.blog-feature__date,
.blog-card__date {
  font: 500 12px/1 var(--font);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: rgba(0, 11, 22, 0.6);
}
.blog-feature__date { color: var(--text-light); }

.blog-feature__title {
  font: 400 48px/1 var(--font);
  letter-spacing: -0.0267em;
  color: var(--paper);
}
.blog-feature__desc {
  max-width: 380px;
  font: 400 16px/1.05 var(--font);
  letter-spacing: -0.01em;
  color: var(--text-light);
}

.blog-feature__image {
  position: absolute;
  top: -1px;
  right: 156px;
  bottom: -1px;
  width: min(40vw, 511px);
  z-index: 1;
  pointer-events: none;
}
.blog-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.blog-tags { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 7px; }
.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: var(--radius-m);
  border: 1px solid var(--grey-20);
  background: var(--grey-3);
  font: 500 12px/1 var(--font);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--ink);
  backdrop-filter: blur(1.25px);
  -webkit-backdrop-filter: blur(1.25px);
}
.blog-tag::before { content: ""; width: 4px; height: 4px; border-radius: 2.5px; background: currentColor; flex-shrink: 0; }
.blog-tag--light { border-color: rgba(255,255,255,0.6); background: var(--white-5); color: var(--text-light); }

.blog-list-row { height: 464px; }
.blog-list-row .section__rail { background: var(--paper); }

.blog-list-grid {
  flex: 0 0 1312px;
  max-width: 1312px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-xs);
  align-items: stretch;
}
@media (max-width: 1364px) { .blog-list-grid { flex: 1 1 0; } }

.blog-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,11,22,0.15);
  border-radius: var(--radius-main);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.blog-card:hover { border-color: rgba(0,102,255,0.45); transform: translateY(-2px); }

.blog-card__image {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  background: #bebebe;
  border-radius: var(--radius-main) var(--radius-main) 0 0;
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.94);
  transition: transform .2s ease;
}
.blog-card:hover .blog-card__image img { transform: scale(1.025); }

.blog-card__content {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  background: var(--paper);
}
.blog-card__meta { display: flex; flex-direction: column; gap: 16px; }
.blog-card__title { max-width: 285px; font: 400 24px/26px var(--font); letter-spacing: -0.029em; color: var(--ink); }
.blog-card__desc { font: 400 16px/1.05 var(--font); letter-spacing: -0.01em; color: var(--ink); }

.blog-pagination { min-height: 64px; }
.blog-pagination .section__rail { background: var(--paper); }
.blog-pagination__panel {
  flex: 0 0 1312px;
  max-width: 1312px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3xl);
  background: var(--paper);
  border: 1px solid rgba(0,11,22,0.1);
  border-radius: var(--radius-main);
}
@media (max-width: 1364px) { .blog-pagination__panel { flex: 1 1 0; } }

.blog-pagination__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 39px;
  padding: 13px 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  font: 400 14px/1 var(--font);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  transition: color .15s ease, background .15s ease;
}
.blog-pagination__link:hover { color: var(--bg-blue); background: var(--grey-3); }
.blog-pagination__link.is-disabled { opacity: .35; pointer-events: none; }
.blog-pagination__arrow { font-size: 18px; line-height: 1; }

.blog-newsletter { height: 323px; }
.blog-newsletter .section__rail { background: var(--bg-red); }
.blog-newsletter__panel {
  flex: 0 0 1312px;
  max-width: 1312px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: var(--space-3xl);
  background: var(--bg-red);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
  color: var(--paper);
}
@media (max-width: 1364px) { .blog-newsletter__panel { flex: 1 1 0; } }

.blog-newsletter__art {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.blog-newsletter__heading,
.blog-newsletter .eyebrow,
.blog-newsletter__form { position: relative; z-index: 1; }

.blog-newsletter__heading {
  max-width: 520px;
  font: 400 48px/1 var(--font);
  letter-spacing: -0.0267em;
  text-align: center;
  color: var(--paper);
}
.blog-newsletter__form { display: flex; gap: 12px; align-items: center; }
.blog-newsletter__input {
  width: 212px;
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-btn);
  background: var(--paper);
  padding: 13px 17px;
  font: 400 14px/1 var(--font);
  letter-spacing: -0.01em;
  color: var(--ink);
  outline: none;
}
.blog-newsletter__input::placeholder { color: rgba(31,29,30,0.2); }
.blog-newsletter__submit { flex-shrink: 0; }
.blog-newsletter__status {
  position: relative;
  z-index: 1;
  min-height: 17px;
  font: 500 14px/1.2 var(--font);
  letter-spacing: -0.01em;
  color: var(--paper);
}
.blog-newsletter__status.is-error { color: var(--ink); }

@media (max-width: 1180px) {
  .blog-list-row { height: auto; }
  .blog-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-card { min-height: 464px; }
}
@media (max-width: 900px) {
  .blog-page { overflow-x: hidden; }
  .blog-page .nav { width: calc(100vw - 48px); max-width: calc(100vw - 48px); }
  .blog-page .section,
  .blog-hero .hero__card,
  .blog-feature__panel,
  .blog-list-grid,
  .blog-pagination__panel,
  .blog-newsletter__panel { width: 100%; max-width: 100%; min-width: 0; }
  .blog-hero { height: auto; }
  .blog-hero .hero__card { min-height: 520px; height: auto; padding: 120px 24px 44px; }
  .blog-hero .hero__heading { font-size: 64px; line-height: 64px; letter-spacing: -0.04em; white-space: normal; }
  .blog-hero .eyebrow { background: var(--grey-3) !important; border-color: var(--grey-20) !important; padding: var(--space-m) var(--space-l) !important; gap: 6px !important; }
  .blog-hero .eyebrow__dot { width: 4px !important; height: 4px !important; }
  .blog-hero .eyebrow__label { font-size: 12px !important; }
  .blog-hero .eyebrow__label::after { content: none !important; }
  .blog-feature { height: auto; }
  .blog-feature__panel { min-height: 560px; padding: 24px; }
  .blog-feature__copy { width: 100%; max-width: none; }
  .blog-feature__title, .blog-newsletter__heading { font-size: 34px; line-height: 38px; }
  .blog-feature__desc { max-width: 100%; line-height: 1.25; }
  .blog-feature__image { position: relative; right: auto; top: auto; bottom: auto; width: calc(100% + 48px); height: 230px; margin-top: -24px; margin-left: -24px; margin-right: -24px; border-radius: var(--radius-main) var(--radius-main) 0 0; overflow: hidden; }
  .blog-list-grid { grid-template-columns: 1fr; }
  .blog-card { min-height: 0; }
  .blog-card__image { height: 210px; flex: none; }
  .blog-card__content { flex: none; }
  .blog-card__title { max-width: none; }
  .blog-pagination { min-height: auto; }
  .blog-pagination__panel { padding: 18px; }
  .blog-newsletter { height: auto; }
  .blog-newsletter__panel { min-height: 323px; padding: 48px 24px; }
  .blog-newsletter__form { width: min(100%, 360px); flex-direction: column; }
  .blog-newsletter__input, .blog-newsletter__submit { width: 100%; }
}
@media (max-width: 480px) {
  .blog-hero .hero__heading { font-size: 64px; line-height: 64px; }
  .blog-mobile-break { display: block; }
}

/* ─── CONTACT ────────────────────────────── */
.contact-hero { height: 636px; }
.contact-hero .section__rail { background: var(--paper); }
.contact-hero__card {
  flex: 0 0 1312px;
  max-width: 1312px;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--space-3xl) var(--space-3xl) var(--space-6xl);
}
@media (max-width: 1364px) { .contact-hero__card { flex: 1 1 0; } }

.contact-hero__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 8px;
  padding: 0 var(--space-3xl);
  pointer-events: none;
  z-index: 0;
}
.contact-hero__grid-col { border-left: 1px solid var(--grid-line); height: 100%; }
.contact-hero__grid-col:last-child { border-right: 1px solid var(--grid-line); }

.contact-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
  max-width: 680px;
}
.contact-hero__heading { font: 400 96px/96px var(--font); letter-spacing: -0.05em; color: var(--ink); }

.contact-hero__marker {
  position: absolute;
  right: 177px;
  top: 133px;
  width: 177px;
  height: 323px;
  z-index: 1;
  pointer-events: none;
}
.contact-hero__marker img { width: 100%; height: 100%; object-fit: contain; }

.contact-form-section { height: 725px; }
.contact-form-inner {
  flex: 0 0 1312px;
  max-width: 1312px;
  display: flex;
  gap: var(--space-xs);
  align-items: stretch;
}
@media (max-width: 1364px) { .contact-form-inner { flex: 1 1 0; } }

.contact-form-visual {
  flex: 1 1 0;
  min-width: 0;
  background: #72aa4c;
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-phone {
  width: 190px; height: 380px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 30px;
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-phone__notch { width: 54px; height: 5px; background: rgba(255,255,255,0.4); border-radius: 3px; margin: 0 auto 10px; flex-shrink: 0; }
.contact-phone__msg { padding: 8px 10px; border-radius: 10px; font: 400 9px/1.4 var(--font); max-width: 78%; flex-shrink: 0; }
.contact-phone__msg--in { background: rgba(255,255,255,0.22); color: rgba(255,255,255,0.9); align-self: flex-start; }
.contact-phone__msg--out { background: var(--bg-blue); color: #fff; align-self: flex-end; }
.contact-phone__spacer { flex: 1 1 0; }
.contact-phone__bar { height: 34px; background: rgba(255,255,255,0.15); border-radius: 17px; display: flex; align-items: center; padding: 0 12px; gap: 8px; flex-shrink: 0; }
.contact-phone__bar-dot { width: 6px; height: 6px; background: rgba(255,255,255,0.5); border-radius: 50%; flex-shrink: 0; }
.contact-phone__bar-line { flex: 1 1 0; height: 2px; background: rgba(255,255,255,0.25); border-radius: 1px; }

.contact-form-panel {
  flex: 1 1 0;
  min-width: 0;
  background: #f1f6f8;
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-form-panel__top { display: flex; flex-direction: column; gap: var(--space-4xl); }
.contact-form-panel__heading { font: 400 48px/40px var(--font); letter-spacing: -0.045em; color: var(--ink); max-width: 420px; }
.contact-form-panel__desc { font: 400 16px/1 var(--font); letter-spacing: -0.01em; color: var(--ink); max-width: 330px; }

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form__row { display: flex; gap: 32px; }
.contact-form__field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 0; min-width: 0; }
.contact-form__label { font: 500 12px/1 var(--font); letter-spacing: -0.04em; text-transform: uppercase; color: var(--ink); }

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  background: var(--paper);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-btn);
  padding: 13px 17px;
  font: 400 14px/1 var(--font);
  font-family: var(--font);
  letter-spacing: -0.01em;
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form__input::placeholder,
.contact-form__textarea::placeholder { color: var(--grey-20); }
.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus { border-color: var(--bg-blue); }

.contact-form__select-wrap { position: relative; }
.contact-form__select { cursor: pointer; padding-right: 40px; -moz-appearance: none; -webkit-appearance: none; appearance: none; background-color: var(--paper); background-image: none; color: var(--ink); }
.contact-form__chevron { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); pointer-events: none; display: flex; align-items: center; }
.contact-form__chevron svg { width: 8px; height: 5px; display: block; }

.contact-form__custom-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-btn);
  padding: 13px 17px;
  font: 400 14px/1 var(--font);
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.contact-form__custom-select:focus,
.contact-form__custom-select[aria-expanded="true"] { border-color: var(--bg-blue); }

.contact-form__options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--paper);
  border: 1px solid var(--grey-20);
  border-radius: 22px;
  padding: 8px;
  list-style: none;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  flex-direction: column;
  gap: 4px;
  display: none;
}
.contact-form__options.is-open { display: flex; }
.contact-form__option { padding: 14px 20px; border-radius: 22px; font: 400 14px/1 var(--font); letter-spacing: -0.01em; color: var(--ink); cursor: pointer; transition: background 0.12s, color 0.12s; }
.contact-form__option:hover,
.contact-form__option.is-selected { background: var(--bg-blue); color: var(--paper); }

.contact-form__textarea { height: 120px; resize: none; }

.contact-form__check-row { display: flex; align-items: flex-start; gap: 8px; }
.contact-form__check { width: 13px; height: 13px; border: 1px solid var(--grey-20); border-radius: 2.5px; flex-shrink: 0; margin-top: 2px; cursor: pointer; accent-color: var(--bg-blue); }
.contact-form__check-label { font: 400 16px/1 var(--font); letter-spacing: -0.01em; color: var(--ink); max-width: 330px; }
.contact-form__check-label strong { font-weight: 700; }
.contact-form__status { min-height: 17px; font: 500 14px/1.2 var(--font); letter-spacing: -0.01em; color: var(--bg-blue); }
.contact-form__status.is-error { color: var(--bg-red); }

.contact-form__submit { align-self: flex-end; }

.contact-blog-header .section__rail { background: var(--paper); }
.contact-blog-header__panel {
  flex: 0 0 1312px;
  max-width: 1312px;
  background: var(--paper);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4xl);
  padding: var(--space-3xl);
  text-align: center;
  min-height: 220px;
}
@media (max-width: 1364px) { .contact-blog-header__panel { flex: 1 1 0; } }
.contact-blog-header__heading { font: 400 48px/48px var(--font); letter-spacing: -0.0267em; color: var(--ink); }

.contact-blog-cards { height: 464px; }
.contact-blog-cards .section__rail { background: var(--paper); }
.contact-blog-cards__inner {
  flex: 0 0 1312px;
  max-width: 1312px;
  display: flex;
  gap: var(--space-xs);
  align-items: stretch;
}
@media (max-width: 1364px) { .contact-blog-cards__inner { flex: 1 1 0; } }

.contact-blog-cards__inner .blog-card { flex: 1 1 0; }

.blog-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-card__tag { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; background: var(--grey-3); border: 1px solid var(--grey-20); border-radius: var(--radius-m); font: 500 12px/1 var(--font); letter-spacing: -0.04em; text-transform: uppercase; color: var(--ink); backdrop-filter: blur(1.25px); }
.blog-card__tag::before { content: ''; width: 4px; height: 4px; background: var(--ink); border-radius: 2.5px; flex-shrink: 0; }

@media (max-width: 900px) {
  .contact-hero { height: auto; }
  .contact-hero__card {
    min-height: 620px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 88px 24px 44px;
    gap: 24px;
  }
  .contact-hero__content {
    width: 100%;
    max-width: 100%;
  }
  .contact-hero__heading { font-size: 64px; line-height: 64px; }
  .contact-hero__marker {
    position: absolute;
    right: 16px;
    top: 168px;
    width: 120px;
    height: 220px;
  }
  .contact-hero__grid { display: none; }
  .contact-form-section { height: auto; }
  .contact-form-visual { display: none; }
  .contact-form-inner { flex-direction: column; }
  .contact-form-panel { min-height: auto; }
  .contact-form__row { flex-direction: column; gap: 12px; }
  .contact-blog-header__heading { font-size: 34px; line-height: 38px; }
  .contact-blog-cards { height: auto; }
  .contact-blog-cards__inner { flex-direction: column; }
  .contact-blog-cards__inner .blog-card { flex: none; }
}
@media (max-width: 480px) {
  .contact-hero__heading { font-size: 64px; line-height: 64px; }
  .contact-blog-header__heading { font-size: 28px; line-height: 32px; }
}

/* ─── ARTICLE TEMPLATE ───────────────────── */
.article-page .nav__logo-img { display: block; width: 64px; height: 64px; }
.article-page .footer__logo { object-fit: contain; object-position: left center; }
.article-page .footer__social-link img { display: block; width: 24px; height: 24px; object-fit: contain; }

.article-tags,
.blog-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.article-tag,
.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: var(--radius-m);
  border: 1px solid var(--grey-20);
  background: var(--grey-3);
  font: 500 12px/1 var(--font);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--ink);
  backdrop-filter: blur(1.25px);
  -webkit-backdrop-filter: blur(1.25px);
}
.article-tag::before,
.blog-tag::before { content: ""; width: 4px; height: 4px; border-radius: 2.5px; background: currentColor; flex-shrink: 0; }
.article-tag--light,
.blog-tag--light { border-color: rgba(255,255,255,0.6); background: var(--white-5); color: var(--text-light); }

.article-hero {
  --article-accent: var(--bg-blue);
  height: 636px;
}
.article-hero--red { --article-accent: var(--bg-red); }
.article-hero--blue { --article-accent: var(--bg-blue); }
.article-hero--orange { --article-accent: var(--bg-orange); }
.article-hero--green { --article-accent: var(--bg-green); }
.article-hero .section__rail { background: var(--article-accent); }
.article-hero__panel {
  flex: 0 0 1312px;
  max-width: 1312px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3xl) var(--space-3xl) var(--space-6xl);
  background: var(--article-accent);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
  color: var(--paper);
  isolation: isolate;
}
@media (max-width: 1364px) { .article-hero__panel { flex: 1 1 0; } }

.article-hero__image { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.article-hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; opacity: .78; }

.article-hero__content { position: relative; z-index: 1; width: min(100%, 780px); display: flex; flex-direction: column; gap: 32px; }
.article-hero__title { font: 400 96px/96px var(--font); letter-spacing: -0.05em; color: var(--paper); }

.article-body .section__rail { background: var(--paper); }
.article-body__panel {
  flex: 0 0 1312px;
  max-width: 1312px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: var(--space-3xl);
  background: var(--paper);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
}
@media (max-width: 1364px) { .article-body__panel { flex: 1 1 0; } }

.article-back { display: inline-flex; align-items: center; gap: 12px; width: fit-content; min-height: 39px; padding: 13px 1px; border-radius: 4px; color: var(--ink); text-decoration: none; font: 400 14px/1 var(--font); letter-spacing: -0.01em; text-transform: uppercase; transition: color .15s ease; }
.article-back:hover { color: var(--bg-blue); }
.article-back__arrow { font-size: 18px; line-height: 1; }

.article-meta { width: min(100%, 984px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--grey-20); padding-bottom: 1px; font: 500 12px/1 var(--font); letter-spacing: -0.04em; text-transform: uppercase; color: var(--ink); }
.article-content { width: min(100%, 984px); display: flex; flex-direction: column; gap: 32px; }
.article-section { display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.article-section h2 { font: 400 32px/32px var(--font); letter-spacing: -0.025em; color: var(--ink); }
.article-section p { font: 400 16px/1 var(--font); letter-spacing: -0.01em; color: var(--ink); }

.article-image { width: 100%; aspect-ratio: 1092 / 365; overflow: hidden; border: 1px solid var(--grey-20); border-radius: 4.8px; background: #eef5f8; }
.article-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }

.article-related { height: 464px; }
.article-related .section__rail { background: var(--paper); }
.article-related + .blog-newsletter { margin-top: 22px; }

@media (max-width: 1180px) {
  .article-related { height: auto; }
  .blog-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-card { min-height: 464px; }
}
@media (max-width: 900px) {
  .article-page { overflow-x: hidden; }
  .article-page .nav { width: calc(100vw - 48px); max-width: calc(100vw - 48px); }
  .article-page .section,
  .article-hero__panel,
  .article-body__panel,
  .blog-list-grid,
  .blog-newsletter__panel { width: calc(100vw - 44px); max-width: calc(100vw - 44px); min-width: 0; }
  .article-hero__panel,
  .article-body__panel,
  .blog-list-grid,
  .blog-newsletter__panel { flex: 1 1 0; flex-basis: auto; }
  .article-hero { height: auto; }
  .article-hero__panel { min-height: 520px; padding: 120px 24px 44px; }
  .article-hero__title { font-size: 64px; line-height: 64px; letter-spacing: -0.04em; }
  .article-body__panel { padding: 24px; overflow: hidden; }
  .article-meta { width: 100%; max-width: 100%; gap: 18px; }
  .article-content { width: 100%; max-width: 100%; }
  .article-section h2 { font-size: 28px; line-height: 30px; }
  .article-section p { line-height: 1.3; overflow-wrap: anywhere; }
  .article-image { aspect-ratio: 16 / 9; }
  .blog-list-grid { grid-template-columns: 1fr; }
  .blog-card { min-height: 0; }
  .blog-card__image { height: 210px; flex: none; }
  .blog-card__content { flex: none; }
  .blog-card__title { max-width: none; }
  .blog-newsletter { height: auto; }
  .blog-newsletter__panel { min-height: 323px; padding: 48px 24px; }
  .blog-newsletter__heading { font-size: 34px; line-height: 38px; }
  .blog-newsletter__form { width: min(100%, 360px); flex-direction: column; gap: 12px; }
  .blog-newsletter__input, .blog-newsletter__submit { width: 100%; }
}
@media (max-width: 480px) {
  .article-page .section,
  .article-hero__panel,
  .article-body__panel,
  .blog-list-grid,
  .blog-newsletter__panel { width: calc(100vw - 24px); max-width: calc(100vw - 24px); }
  .article-hero__title { font-size: 64px; line-height: 64px; }
  .article-meta { flex-direction: column; align-items: flex-start; }
}

/* ── Remove 1312px cap so inner containers fill full width at 1313–1364px ── */
@media (max-width: 1364px) {
  .section__inner,
  .hero__card,
  .kontakt__panel,
  .footer__panel,
  .meta-inner,
  .gallery-inner,
  .info-inner,
  .canvas-inner,
  .proj-header-inner,
  .project-row,
  .more-inner,
  .contact-cta-inner,
  .services-type-row,
  .about-row,
  .services-intro,
  .blog-feature__panel,
  .blog-list-grid,
  .blog-pagination__panel,
  .blog-newsletter__panel,
  .contact-hero__card,
  .contact-form-inner,
  .contact-blog-header__panel,
  .contact-blog-cards__inner,
  .article-hero__panel,
  .article-body__panel,
  .home-platform-teaser__inner,
  .home-platforms__inner,
  .home-hero__panel,
  .home-heading-panel,
  .home-feature-row,
  .home-service-row,
  .home-faq-row { max-width: 100%; }
}

/* ─── PAGE TYPES — SHARED (prez / pricing) ──────────────── */
.prez-hero { height: 636px; }
.prez-hero .section__rail { background: var(--bg-red); }
.prez-hero .hero__card {
  background: var(--bg-red);
  align-items: flex-end;
  overflow: hidden;
  padding: var(--space-3xl) var(--space-3xl) var(--space-6xl);
}
.prez-hero .hero__card::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: 0;
  height: 296px;
  background: linear-gradient(to top, var(--bg-red) 49.8%, rgba(238,28,35,0));
  pointer-events: none;
  z-index: 1;
}
.prez-hero .hero__grid { display: none; }
.prez-hero .hero__content { flex: 0 0 654px; max-width: 654px; gap: var(--space-4xl); padding: 0; z-index: 2; }
.prez-hero .hero__heading { color: var(--paper); font: 400 96px/96px var(--font); letter-spacing: -0.05em; }
.prez-hero__visual { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.prez-hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

.prez-intro-section .section__rail,
.prez-detail-section .section__rail { background: #f1f6f8; }

.prez-intro-panel,
.prez-detail-grid,
.prez-pricing-panel,
.pricing-grid { flex: 0 0 1312px; max-width: 1312px; min-width: 0; }
@media (max-width: 1364px) {
  .prez-intro-panel,
  .prez-detail-grid,
  .prez-pricing-panel,
  .pricing-grid { flex: 1 1 0; }
}

.prez-intro-panel {
  min-height: 269px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-4xl);
  padding: var(--space-3xl);
  background: #f1f6f8;
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
}
.prez-content__left-heading { width: min(638px, 100%); font: 400 48px/48px var(--font); letter-spacing: -0.0267em; color: var(--ink); }
.prez-content__left-body { width: min(638px, 100%); font: 400 16px/1 var(--font); letter-spacing: -0.01em; color: var(--ink); }

.prez-detail-grid { min-height: 1287px; width: 100%; display: flex; gap: var(--space-xs); align-items: stretch; }
.prez-detail-card,
.prez-detail-blank { flex: 0 0 calc(50% - 2px); min-width: 0; background: #f1f6f8; border: 1px solid var(--grey-20); border-radius: var(--radius-main); }
.prez-detail-card { padding: var(--space-3xl); }
.prez-detail-example { padding: 0; overflow: hidden; display: flex; align-items: stretch; justify-content: center; }
.prez-detail-example img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: top center; display: block; }
.prez-detail-content { width: min(620px, 100%); display: flex; flex-direction: column; gap: 64px; }
.prez-detail-block { display: flex; flex-direction: column; gap: var(--space-4xl); }
.prez-sub-heading { font: 400 32px/32px var(--font); letter-spacing: -0.025em; color: var(--ink); }
.prez-sub-body { font: 400 16px/1 var(--font); letter-spacing: -0.01em; color: var(--ink); }
.prez-items { display: flex; flex-direction: column; gap: var(--space-4xl); }
.prez-item { display: flex; flex-direction: column; gap: 12px; }
.prez-item__name { font: 700 18px/24px var(--font); letter-spacing: -0.02em; color: var(--ink); }
.prez-item__desc { font: 400 16px/1 var(--font); letter-spacing: -0.01em; color: var(--ink); }

.prez-pricing-head .section__rail,
.prez-pricing-cards-section .section__rail { background: var(--paper); }
.prez-pricing-panel {
  min-height: 204px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4xl);
  padding: var(--space-3xl);
  background: var(--paper);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
  text-align: center;
}
.prez-pricing-heading { font: 400 48px/80px var(--font); letter-spacing: -0.0267em; color: var(--ink); }

.pricing-grid { min-height: 472px; width: 100%; display: flex; gap: var(--space-xs); align-items: stretch; }
.pricing-card {
  flex: 1 1 0;
  min-width: 0;
  min-height: 472px;
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-main);
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
}
.pricing-card__inner { min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.pricing-card--featured { border-color: var(--grey-20); }
.pricing-card__main { display: flex; flex-direction: column; gap: var(--space-4xl); }
.pricing-card__headline { display: flex; flex-direction: column; gap: 20px; }
.pricing-card__top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 17px; }
.pricing-card__tier { font: 700 12px/1 var(--font); letter-spacing: -0.033em; text-transform: uppercase; color: var(--ink); }
.pricing-card__badge {
  position: absolute;
  top: -9px;
  right: 0;
  font: 500 12px/1 var(--font);
  letter-spacing: -0.033em;
  text-transform: uppercase;
  color: var(--bg-blue);
  background: rgba(0,102,255,0.05);
  border: 1px solid rgba(0,102,255,0.2);
  border-radius: var(--radius-btn);
  padding: var(--space-m) var(--space-l);
  white-space: nowrap;
}
.pricing-card__price-group { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.pricing-card__from { font: 400 16px/1 var(--font); letter-spacing: -0.01em; color: var(--ink); }
.pricing-card__price { font: 400 64px/64px var(--font); letter-spacing: -0.04em; color: var(--ink); }
.pricing-card--featured .pricing-card__price { color: var(--bg-blue); }
.pricing-card__features { list-style: disc; display: flex; flex-direction: column; gap: 12px; padding-left: 27px; margin: 0; }
.pricing-card__feature { font: 400 18px/24px var(--font); letter-spacing: -0.02em; color: var(--ink); }
.pricing-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 17px;
  border-radius: var(--radius-btn);
  font: 400 14px/1 var(--font);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pricing-card__cta:hover {
  background: rgba(0, 11, 22, 0.05);
  border-color: var(--ink);
  color: var(--ink);
}
.pricing-card--featured .pricing-card__cta { background: var(--bg-blue); color: var(--paper); border-color: var(--bg-blue); }
.pricing-card--featured .pricing-card__cta:hover { background: transparent; color: var(--bg-blue); }

.prez-web-types .home-heading-panel { min-height: 156px; }
.prez-web-types .services-type-row { min-height: 265px; }
.prez-web-types .services-type-card { min-height: 265px; justify-content: flex-end; gap: var(--space-4xl); }
.prez-web-types .services-type-card__desc { max-width: 604px; line-height: 1; }

@media (max-width: 900px) {
  .section, .group,
  .prez-hero .hero__card,
  .prez-intro-panel,
  .prez-detail-grid,
  .prez-pricing-panel,
  .pricing-grid,
  .prez-web-types .services-type-row,
  .prez-web-types .services-type-card,
  .prez-web-types .services-type-visual { width: auto; max-width: 100%; min-width: 0; }
  .section, .group { width: calc(100vw - 44px); align-self: center; }
  .prez-hero .hero__card,
  .prez-intro-panel,
  .prez-detail-grid,
  .prez-pricing-panel,
  .pricing-grid,
  .prez-web-types .services-type-row { width: 100%; }
  .prez-hero { height: auto; }
  .prez-hero .hero__card { min-height: 620px; padding: 88px 24px 44px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 24px; }
  .prez-hero .hero__heading { font-size: 64px; line-height: 64px; letter-spacing: -0.04em; }
  .prez-hero__visual { inset: 0; }
  .prez-hero .hero__content { flex: none; width: 100%; }
  .prez-intro-panel { min-height: auto; padding: 40px 24px; }
  .prez-content__left-heading, .prez-pricing-heading { font-size: 34px; line-height: 36px; }
  .prez-content__left-heading, .prez-content__left-body, .prez-pricing-heading,
  .prez-sub-heading, .prez-sub-body, .prez-item__name, .prez-item__desc,
  .prez-web-types .services-type-card__title,
  .prez-web-types .services-type-card__desc { max-width: 100%; overflow-wrap: break-word; }
  .prez-detail-content,
  .prez-detail-block,
  .prez-items,
  .prez-item { width: min(620px, calc(100vw - 72px)) !important; max-width: min(620px, calc(100vw - 72px)) !important; min-width: 0; }
  .prez-sub-body,
  .prez-item__name,
  .prez-item__desc { width: 100%; max-width: 100%; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
  .prez-pricing-heading { font-size: 30px; line-height: 32px; }
  .prez-detail-grid, .pricing-grid { flex-direction: column; min-height: auto; }
  .prez-detail-card, .prez-detail-blank { flex: none; width: 100%; min-height: auto; }
  .prez-detail-blank { display: none; }
  .prez-detail-card { padding: 40px 24px; }
  .prez-sub-heading { font-size: 26px; line-height: 28px; white-space: normal; }
  .prez-pricing-panel { min-height: 180px; }
  .pricing-card, .pricing-card__inner { min-height: auto; }
  .pricing-card__inner { gap: 32px; padding-top: 32px; }
  .pricing-card__badge { position: absolute; top: 0; right: 0; }
  .pricing-card__price { font-size: 52px; line-height: 56px; }
  .pricing-card__feature { font-size: 16px; line-height: 22px; }
  .prez-web-types .services-type-card { order: 1; }
  .prez-web-types .services-type-visual { order: 2; }
}
@media (max-width: 600px) {
  .section, .group { width: min(366px, calc(100vw - 24px)); align-self: center; }
}
@media (max-width: 480px) {
  .section, .group { width: min(366px, calc(100vw - 24px)); align-self: flex-start; }
  .nav-wrapper { left: 12px; transform: none; }
  .nav-wrapper.nav-wrapper--hidden { transform: translateY(calc(-100% - 60px)); }
  .nav { width: min(366px, calc(100vw - 24px)); max-width: none; }
  .prez-detail-content,
  .prez-detail-block,
  .prez-items,
  .prez-item,
  .prez-sub-heading,
  .prez-sub-body,
  .prez-item__name,
  .prez-item__desc {
    width: calc(100vw - 96px) !important;
    max-width: calc(100vw - 96px) !important;
  }
  .prez-sub-heading {
    font-size: 24px;
    line-height: 28px;
    overflow-wrap: anywhere;
  }
}

/* ─── PAGE-TYPE OVERRIDES ────────────────── */
.landing-page .prez-intro-panel { min-height: 205px; }

.e-shop-page .prez-intro-panel { min-height: 205px; }
@media (max-width: 900px) {
  .e-shop-page .prez-hero .hero__heading { font-size: 64px; line-height: 64px; }
}

.portfolio-page .prez-hero .hero__heading { white-space: nowrap; }
.portfolio-page .prez-intro-panel { min-height: 205px; }
@media (max-width: 900px) {
  .portfolio-page .prez-hero .hero__heading { font-size: 64px; line-height: 64px; white-space: normal; }
}

/* Mobile full-bleed content */
.proj-header-inner h2 {
  line-height: 42px !important;
}

@media (max-width: 900px) {
  body {
    width: 100%;
    max-width: 100vw;
    padding: 4px;
    gap: 22px;
    overflow-x: hidden;
  }

  .section,
  .group,
  .bft-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-self: stretch;
  }

  .section__rail,
  .bft-side {
    display: none !important;
  }

  .section > :not(.section__rail) {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .bft-row,
  .bft-row-header,
  .bft-row-footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: auto;
    gap: var(--bft-gap);
  }

  .bft-card {
    width: 100%;
    max-width: 100%;
    min-height: 240px;
    min-width: 0;
  }

  .bft-header-centre,
  .bft-footer-centre {
    min-height: 180px;
  }

  .bft-card-pad {
    padding: 24px;
  }

  .bft-row-r3 > .bft-card-pad,
  .bft-row-r5 > .bft-card-pad,
  .bft-row-r7 > .bft-card-pad {
    order: 1;
  }

  .bft-row-r3 > .chart-card,
  .bft-row-r5 > .bft-card:not(.bft-card-pad),
  .bft-row-r7 > .press-card {
    order: 2;
  }

  .home-hero__content,
  .home-hero__headline-group,
  .article-hero__content,
  .bft-text-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero__heading,
  .home-hero__heading,
  .home-heading-panel__title,
  .home-platform-teaser__inner h2,
  .home-platforms__inner h2,
  .bft-h1,
  .bft-h3,
  .article-hero__title,
  .contact-hero__heading,
  .prez-hero .hero__heading {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .bft-h1 {
    font-size: 34px;
    line-height: 36px;
  }

  .bft-h3 {
    font-size: 26px;
    line-height: 28px;
  }

  .home-hero__heading {
    max-width: calc(100vw - 48px);
    font-size: 64px;
    line-height: 64px;
  }

  .article-hero__title {
    max-width: calc(100vw - 48px);
    font-size: clamp(36px, 8.5vw, 48px);
    line-height: 1.08;
  }

  .home-hero__copy,
  .bft-h3,
  .bft-p,
  .article-section h2,
  .article-section p {
    width: 100%;
    max-width: calc(100vw - 48px);
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .article-content,
  .article-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .bft-p {
    line-height: 1.45;
  }

  h2 {
    font-size: 42px !important;
  }

  .proj-header-inner h2 {
    line-height: 34px !important;
  }

  .editor-card {
    padding-top: 48px;
  }

  .nav__contact-label {
    font-size: 28px;
  }

  .about-row {
    flex-direction: column;
  }

  .about-row > * {
    flex: none;
    width: 100%;
  }
}

/* Fluid container guard: rails must disappear at the same breakpoint
   where 1312px content panels start shrinking. */
@media (max-width: 1364px) {
  .section__rail {
    display: none !important;
  }

  .section > :not(.section__rail) {
    flex: 1 1 auto;
    min-width: 0;
  }
}
