  html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  :root {
  --bg-main: #eef2ec;
  --bg-section: #dfe8dd;
  --bg-card: rgba(255, 255, 255, 0.86);

  --text-main: #1f2a24;
  --text-muted: #5d6b63;

  --accent: #2f5d50;
  --accent-dark: #24483e;
  --accent-soft: #8faa9a;
  --accent-light: #d9e4dc;
  --accent-warm: #b68a5a;

  --border-soft: rgba(47, 93, 80, 0.16);
  --shadow-soft: 0 18px 45px rgba(31, 42, 36, 0.16);
}

  html,
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

    img,
    svg {
      max-width: 100%;
    }

    body.no-scroll {
  overflow: hidden;
    }

    body.focus-mode .navbar,
    body.focus-mode .to-top,
    body.focus-mode .lang-switch {
      opacity: 0;
      pointer-events: none;
    }

  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: #0b110d;
  }

  .start-hero {
    position: relative;
    isolation: isolate;

    min-height: 100svh;
    width: 100%;

    display: flex;
    align-items: start;

    overflow: hidden;

    color: #f4f6f1;

    background:
      radial-gradient(
        circle at 72% 42%,
        rgba(96, 125, 68, 0.13),
        transparent 32%
      ),
      radial-gradient(
        circle at 10% 86%,
        rgba(55, 83, 64, 0.16),
        transparent 34%
      ),
      linear-gradient(
        125deg,
        #090c0a 0%,
        #0d110e 48%,
        #111812 100%
      );
  }

  .start-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    pointer-events: none;

    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.025) 1px,
        transparent 1px
      ),
      linear-gradient(
        rgba(255, 255, 255, 0.018) 1px,
        transparent 1px
      );

    background-size: 72px 72px;

    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.75),
      transparent 92%
    );
  }

  .start-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;

    height: 180px;

    z-index: 3;
    pointer-events: none;

    background: linear-gradient(
      to bottom,
      rgba(9, 12, 10, 0) 0%,
      rgba(9, 14, 11, 0.35) 35%,
      rgba(10, 16, 12, 0.78) 70%,
      #0b110d 100%
    );
  }

  .start-hero__grid {
    position: relative;
    z-index: 2;

    width: min(1240px, calc(100% - 64px));
    min-height: 100svh;

    margin: 0 auto;
    padding: 72px 0 120px;

    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.75fr);
    align-items: center;
    gap: clamp(48px, 8vw, 120px);
  }

  /* ---------- CONTENT ---------- */

  .start-hero__content {
    position: relative;
    z-index: 3;

    max-width: 660px;
  }

  .start-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 28px;

    color: #8ca55c;

    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .start-hero__eyebrow-line {
    width: 38px;
    height: 1px;

    background: #8ca55c;
  }

  .start-hero__title {
    margin: 0 0 26px;

    font-size: clamp(64px, 7vw, 106px);
    font-weight: 760;
    line-height: 0.84;
    letter-spacing: -0.065em;

    color: #f5f6f2;
  }

  .start-hero__title span {
    display: block;
  }

  .start-hero__roles {
    display: flex;
    flex-direction: column;
    gap: 4px;

    margin-bottom: 22px;

    color: #91ac58;

    font-size: clamp(18px, 2vw, 25px);
    font-weight: 650;
    line-height: 1.2;
  }

  .start-hero__description {
    max-width: 550px;
    margin: 0 0 30px;

    color: rgba(232, 237, 229, 0.72);

    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.65;
  }

  /* ---------- BUTTONS ---------- */

  .start-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;

    margin-bottom: 52px;
  }

  .start-hero__btn {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 12px 20px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
      transform 0.25s ease,
      color 0.25s ease,
      background 0.25s ease,
      border-color 0.25s ease,
      box-shadow 0.25s ease;
  }

  .start-hero__btn span {
    transition: transform 0.25s ease;
  }

  .start-hero__btn:hover span {
    transform: translateX(4px);
  }

  .start-hero__btn--primary {
    color: #ffffff;

    background: linear-gradient(
      135deg,
      #627d34,
      #405a24
    );

    border: 1px solid rgba(155, 189, 88, 0.26);

    box-shadow:
      0 14px 30px rgba(28, 46, 20, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .start-hero__btn--primary:hover {
    transform: translateY(-2px);

    background: linear-gradient(
      135deg,
      #718d3d,
      #4a652b
    );

    box-shadow:
      0 18px 38px rgba(28, 46, 20, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .start-hero__btn--secondary {
    color: rgba(245, 247, 242, 0.82);

    background: transparent;

    border: 1px solid rgba(255, 255, 255, 0.13);
  }

  .start-hero__btn--secondary:hover {
    color: #ffffff;

    transform: translateY(-2px);

    border-color: rgba(149, 180, 89, 0.42);

    background: rgba(255, 255, 255, 0.04);
  }

  /* ---------- STATS ---------- */

  .start-hero__stats {
    display: flex;
    align-items: stretch;
    gap: 0;

    width: fit-content;

    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .start-hero__stat {
    min-width: 124px;

    padding: 22px 26px 0 0;
    margin-right: 26px;

    border-right: 1px solid rgba(255, 255, 255, 0.09);
  }

  .start-hero__stat:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
  }

  .start-hero__stat strong {
    display: block;

    margin-bottom: 4px;

    color: #91ad55;

    font-size: 21px;
    font-weight: 760;
    line-height: 1;
  }

  .start-hero__stat span {
    display: block;

    color: rgba(238, 241, 235, 0.52);

    font-size: 11px;
    line-height: 1.35;
  }

  /* ---------- VISUAL ---------- */

  .start-hero__visual {
    position: relative;

    min-height: 640px;

    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

.start-hero__photo-wrap {
  --light-x: 50%;
  --light-y: 50%;

  position: relative;
  z-index: 2;

  width: min(100%, 510px);
  height: min(74vh, 720px);

  overflow: hidden;

  border-radius: 2px;
  background: #090b0a;

  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.055);

  transition:
    box-shadow 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}


/* Затемнення поверх фото */
.start-hero__photo-wrap::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 2;

  pointer-events: none;

  background:
    linear-gradient(
      to right,
      rgba(8, 11, 9, 0.22),
      transparent 38%
    ),
    linear-gradient(
      to top,
      rgba(6, 8, 7, 0.52),
      transparent 40%
    );
}


/* Сріблясте світло по контуру */
.start-hero__photo-wrap::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 4;

  padding: 1.5px;

  border-radius: inherit;
  pointer-events: none;

  background:
    radial-gradient(
      circle 210px at var(--light-x) var(--light-y),
      rgba(255, 255, 255, 0.95) 0%,
      rgba(224, 234, 229, 0.72) 18%,
      rgba(181, 198, 190, 0.32) 42%,
      transparent 72%
    );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  mask-composite: exclude;

  opacity: 0;

  transition: opacity 0.35s ease;
}


.start-hero__photo-wrap:hover::after {
  opacity: 1;
}


.start-hero__photo-wrap:hover {
  box-shadow:
    0 38px 100px rgba(0, 0, 0, 0.54),
    0 0 38px rgba(214, 229, 222, 0.11),
    0 0 0 1px rgba(226, 237, 232, 0.1);
}


/* Саме фото */
.start-hero__photo {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center 18%;

  filter:
    grayscale(1)
    contrast(1.04)
    brightness(0.77);

  transform: scale(1.035);

  transition:
    transform 1.1s cubic-bezier(.22, 1, .36, 1),
    filter 0.7s ease;
}


.start-hero__photo-wrap:hover .start-hero__photo {
  transform: scale(1.06);

  filter:
    grayscale(0.92)
    contrast(1.06)
    brightness(0.82);
    }

    .start-hero__photo-shine {
      position: absolute;
      top: -20%;
      left: -75%;
      z-index: 3;

      width: 42%;
      height: 140%;

      pointer-events: none;

      opacity: 0;

      background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(220, 230, 225, 0.03) 28%,
        rgba(245, 250, 247, 0.16) 46%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(225, 235, 230, 0.13) 56%,
        transparent 74%
      );

      filter: blur(2px);

      transform:
        translateX(0)
        skewX(-16deg);
    }

    .start-hero__photo-wrap:hover .start-hero__photo-shine {
  animation: photo-glass-shine 1.15s cubic-bezier(.22, 1, .36, 1);
    }

    @keyframes photo-glass-shine {
      0% {
        left: -75%;
        opacity: 0;
      }

      15% {
        opacity: 0.75;
      }

      70% {
        opacity: 0.6;
      }

      100% {
        left: 140%;
        opacity: 0;
      }
    }

  /* ---------- DECORATION ---------- */

  .start-hero__dots {
    position: absolute;
    z-index: 4;

    top: 21%;
    left: -18px;

    width: 50px;

    display: grid;
    grid-template-columns: repeat(4, 4px);
    gap: 8px;
  }

  .start-hero__dots span {
    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: rgba(137, 170, 75, 0.72);
  }

  .start-hero__corner {
    position: absolute;
    z-index: 5;

    width: 32px;
    height: 32px;

    pointer-events: none;
  }

  .start-hero__corner--top {
    top: 80px;
    right: -10px;

    border-top: 2px solid rgba(137, 170, 75, 0.68);
    border-right: 2px solid rgba(137, 170, 75, 0.68);
  }

  .start-hero__corner--bottom {
    right: -10px;
    bottom: -5px;

    border-right: 2px solid rgba(137, 170, 75, 0.68);
    border-bottom: 2px solid rgba(137, 170, 75, 0.68);
  }

  .start-hero__glow {
    position: absolute;
    z-index: 0;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(100px);
  }

  .start-hero__glow--left {
    left: -180px;
    bottom: -180px;

    width: 420px;
    height: 420px;

    background: rgba(52, 79, 54, 0.14);
  }

  .start-hero__glow--right {
    top: 12%;
    right: -160px;

    width: 420px;
    height: 420px;

    background: rgba(99, 126, 56, 0.11);
  }

  /* ---------- SCROLL ---------- */

    .start-hero__scroll {
    position: absolute;
    z-index: 5;

    left: 50%;
    bottom: 34px;

    width: 92px;
    height: 92px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 14px;

    transform: translateX(-50%);

    color: rgba(239, 242, 236, 0.48);
    text-decoration: none;

    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    border: 1px solid transparent;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0);
    box-shadow: none;

    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);

    transition:
      color 0.35s ease,
      background 0.35s ease,
      border-color 0.35s ease,
      box-shadow 0.35s ease,
      backdrop-filter 0.35s ease,
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .start-hero__scroll span:last-child {
    display: block;
    font-size: 18px;

    animation: startHeroScroll 1.8s ease-in-out infinite;

    transition:
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      color 0.35s ease;
  }

  .start-hero__scroll:hover {
    color: #a6c566;

    transform:
      translateX(-50%)
      translateY(-6px)
      scale(1.04);

    background: rgba(255, 255, 255, 0.055);

    border-color: rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);

    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.36),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(255, 255, 255, 0.025),
      0 0 28px rgba(138, 173, 85, 0.14);
  }

  .page-wrapper {
    position: relative;
    z-index: 1;

    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    margin: 0;
    border-radius: 0;
    box-shadow: none;

    background:
      linear-gradient(
        to bottom,
        #0b110d 0px,
        #18221b 90px,
        #718076 210px,
        #dfe8dd 360px,
        #eef2ec 520px
      );
  }


.page-wrapper > *:not(.page-atmosphere):not(.navbar):not(.to-top):not(.lang-switch) {
  position: relative;
  z-index: 1;
}

.hero-reveal,
.hero-photo-reveal {
  opacity: 0;
}

.hero-reveal {
  transform: translateY(18px);
}

.hero-photo-reveal {
  transform: scale(1.035);
}

body.hero-loaded .hero-reveal,
body.hero-loaded .hero-photo-reveal {
  opacity: 1;
  transform: none;
}

body.hero-loaded .hero-reveal {
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

body.hero-loaded .hero-photo-reveal {
  transition:
    opacity 1.15s ease,
    transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Фото проявляється першим */

body.hero-loaded .hero-photo-reveal {
  transition-delay: 0.12s;
}

/* Потім контент */

body.hero-loaded .hero-reveal--1 {
  transition-delay: 0.28s;
}

body.hero-loaded .hero-reveal--2 {
  transition-delay: 0.38s;
}

body.hero-loaded .hero-reveal--3 {
  transition-delay: 0.48s;
}

body.hero-loaded .hero-reveal--4 {
  transition-delay: 0.68s;
}

body.hero-loaded .hero-reveal--5 {
  transition-delay: 0.83s;
}

body.hero-loaded .hero-reveal--6 {
  transition-delay: 0.98s;
}

body.hero-loaded .hero-reveal--7 {
  transition-delay: 1.14s;
}

      .page {
        position: relative;
        z-index: 1;

        flex: 1;
        max-width: 1100px;
        width: 100%;

        margin: 0 auto;
        padding: 100px 24px 80px;
      }

      

      .lang-switch {
      position: fixed;
      top: 18px;
      right: 18px;
      z-index: 1001;

      display: flex;
      align-items: center;
      gap: 6px;

      padding: 8px 12px;
      border-radius: 999px;

      background: rgba(31, 42, 36, 0.72);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .lang-switch a,
    .lang-switch span {
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;
      font-size: 14px;
    }

    .lang-switch a.active {
      color: #fff;
      font-weight: 600;
    }

      .navbar {
        position: fixed;
        bottom: 18px;
        left: 16px;
        right: 16px;

        width: auto;
        max-width: 980px;
        margin: 0 auto;

        opacity: 0;
        transform: translateY(140%);
        will-change: transform, opacity;

        z-index: 1000;

        background: rgba(31, 42, 36, 0.72);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 999px;

        display: flex;
        justify-content: center;

        box-shadow: 0 18px 45px rgba(31, 42, 36, 0.28);
        transition: transform 0.3s ease, opacity 0.3s ease;
      }

      .navbar.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .navbar.hidden {
        opacity: 0;
        transform: translateY(140%);
      }

        .navbar-inner {
          width: 100%;
          padding: 10px 18px;

          display: grid;
          box-sizing: border-box;
          grid-template-columns: auto auto auto;
          align-items: center;
          justify-content: space-between;
          gap: 22px;
        }

      .nav-social{
        justify-self:center;
        display:flex;
        gap:12px;
        align-items:center;
      }

      .social{
        transition:
        transform 0.25s cubic-bezier(.4,0,.2,1),
        box-shadow 0.25s ease;
      }

      .social:hover {
        transform: translateY(-3px);
        background: rgba(217, 228, 220, 0.18);
        box-shadow: 0 8px 18px rgba(31, 42, 36, 0.28);
      }

      .nav-social__inside{
        display:none;
      }

  
      .logo {
        color: rgba(255, 255, 255, 0.92);
        font-size: 17px;
        font-weight: 750;
        letter-spacing: 0.2px;
        white-space: nowrap;
      }

      .logo span {
          color: rgba(188, 234, 226, 0.82);
        }

      .nav-links {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 14px;
        margin: 0;
        padding: 0;
      }

      .nav-links a {
        display: inline-block;
        color: rgba(255, 255, 255, 0.86);
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        position: relative;
        padding: 7px 10px;
        border-radius: 999px;
        transition: all 0.25s ease;
      }

      .nav-links a:hover {
        color: #ffffff;
        background: rgba(217, 228, 220, 0.16);
        transform: translateY(-1px);
        box-shadow: none;
      }

      .nav-links a::after {
        display: none;
      }

      .social {
        width: 34px;
        height: 34px;

        display: grid;
        place-items: center;

        border-radius: 50%;
        text-decoration: none;

        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.08);

        transition:
          transform 0.22s ease,
          background 0.22s ease,
          box-shadow 0.22s ease;
      }

      .icon {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.88);
}

      .burger {
        display: none;
        font-size: 26px;
        color: #f0ffff;
        cursor: pointer;
        user-select: none;
      }

      .menu-toggle {
        display: none;
      }


      .hero-main {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 40px;
      }

      .hero-text {
        flex: 1 1 280px;
      }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;

      margin-bottom: 16px;
      padding: 10px 18px;

      color: rgba(245, 247, 243, 0.92);

      background: rgba(18, 27, 22, 0.42);

      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 999px;

      backdrop-filter: blur(16px) saturate(125%);
      -webkit-backdrop-filter: blur(16px) saturate(125%);

      box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

      font-size: 13px;
      font-weight: 600;

      transition:
        transform .3s cubic-bezier(.22,1,.36,1),
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
    }

    .hero-badge:hover {
      transform: translateY(-2px);
      background: rgba(24, 36, 29, 0.56);
      border-color: rgba(144, 173, 90, 0.28);
      box-shadow:
        0 18px 38px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.1),
        0 0 24px rgba(144,173,90,.10);
    }

      .hero-badge span:first-child {
        color: #8fae58;
        font-size: 11px;
        flex: 0 0 auto;
      }

      .hero-badge span:last-child {
        color: rgba(245, 247, 243, 0.92);
        font-size: 13px;
        font-weight: 600;
      }

      .hero-title-glass {
        width: fit-content;
        max-width: 100%;

        padding: 18px 22px;
        margin-bottom: 18px;

        background: rgba(18, 27, 22, 0.3);

        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 18px;

        backdrop-filter: blur(18px) saturate(120%);
        -webkit-backdrop-filter: blur(18px) saturate(120%);

        box-shadow:
          0 18px 42px rgba(0, 0, 0, 0.18),
          inset 0 1px 0 rgba(255, 255, 255, 0.07);
      }

      .hero-title-glass h1 {
        margin: 0;

        color: rgba(244, 247, 243, 0.94);

        font-size: clamp(16px, 2.3vw, 24px);
        line-height: 1.12;
      }

      .hero-title-glass {
        transition:
          transform .35s cubic-bezier(.22,1,.36,1),
          background .35s ease,
          border-color .35s ease,
          box-shadow .35s ease,
          backdrop-filter .35s ease;
      }

      .hero-title-glass:hover {

        transform:
          translateY(-4px)
          scale(1.01);

        background:
          rgba(22, 33, 27, 0.42);

        border-color:
          rgba(146, 176, 90, 0.28);

        box-shadow:
          0 20px 48px rgba(0,0,0,.20),
          inset 0 1px 0 rgba(255,255,255,.10),
          0 0 26px rgba(143,174,88,.10);

        backdrop-filter:
          blur(22px)
          saturate(135%);

        -webkit-backdrop-filter:
          blur(22px)
          saturate(135%);
      }

      .hero-title-glass h1{

          transition:
          color .35s ease,
          transform .35s cubic-bezier(.22,1,.36,1);
      }

      .hero-title-glass:hover h1{

          color:#ffffff;
          transform:
          translateY(-1px);
      }
      
      .hero-main h1 {
        margin: 0;
        text-shadow: none;
        animation: none;
      }

      .hero-main p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 16px;
      }

      .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
      }

      .btn-primary,
      .btn-secondary {
        border-radius: 999px;
        padding: 10px 18px;
        border: none;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
      }

        .btn-primary {
          background: linear-gradient(135deg, #2f5d50, #24483e);
          color: #fff;
          box-shadow: 0 10px 24px rgba(47, 93, 80, 0.28);
        }

        .btn-primary:hover {
          transform: translateY(-1px) scale(1.02);
          box-shadow: 0 14px 30px rgba(47, 93, 80, 0.36);
        }

        .btn-secondary {
          background: rgba(255, 255, 255, 0.72);
          color: #2f5d50;
          border: 1px solid var(--border-soft);
        }

      .btn-secondary:hover {
        transform: translateY(-1px) scale(1.02);
        background: #ffffff;
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
      }

      .hero-tag {
        font-size: 13px;
        opacity: 0.85;
        padding-top: 12px;
      }

      .hero-visual {
        flex: 0 1 280px;
        display: flex;
        justify-content: center;
      }

      .hero-card,
      .about-box,
      .project-card {
        background: rgba(255, 255, 255, 0.82);
        border: 1px solid rgba(47, 93, 80, 0.16);
        box-shadow: 0 18px 45px rgba(31, 42, 36, 0.16);
      }

      .hero-card {
        border-radius: 18px;
        padding: 18px 18px 16px;
        max-width: 280px;
        animation: float 4s ease-in-out infinite;
      }

      @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-6px); }
      }

      .hero-card-title {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 6px;
      }

      .hero-card-text {
        font-size: 13px;
        margin-bottom: 10px;
        padding: 0 12px;
      }

      .hero-pill {
        display: inline-flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 6px;
        font-size: 11px;
      }

      .pill,
      .tag {
        background: var(--accent-light);
        border: 1px solid var(--border-soft);
        color: #2f5d50;
      }


      section {
        margin-bottom: 40px;
      }

      h2 {
        font-size: 24px;
        margin-bottom: 10px;
        color: #20342c;
      }

      .section-desc {
        font-size: 14px;
        margin-bottom: 18px;
        opacity: 0.9;
      }

      .about-grid {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
        gap: 20px;
        margin-top: 28px;
      }

      .about-box {
        border-radius: 14px;
        padding: 16px 18px;
        font-size: 14px;
        line-height: 1.5;
      }

      .about-box h3 {
        font-size: 18px;
        margin-bottom: 6px;
        color: var(--accent);
      }

      #about {
        margin-bottom: 100px;
      }

      .tag-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
        font-size: 12px;
      }

      .tag {
        background: var(--accent-light);
        padding: 4px 8px;
        border-radius: 999px;
        border: 1px solid var(--border-soft);
        color: var(--accent);
      }

.projects-section {
  position: relative;
  margin-top: 60px;
  padding: 24px 0 40px;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.projects-header-text h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
  margin: 8px 0 14px;
  color: #2a433c;
}

.projects-header-text p {
  max-width: 470px;
  font-size: 16px;
  line-height: 1.55;
  color: #62706a;
}

.projects-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #b27b49;
  text-transform: uppercase;
}

.projects-archive-btn {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(47, 93, 80, 0.12);
  border-radius: 16px;
  color: #2f5d50;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(31, 42, 36, 0.08);
  transition: transform 0.25s ease;
}

.projects-archive-btn:hover {
  transform: translateY(-2px);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-areas:
    "blood telegram"
    "dune tccc";
  gap: 18px;
  align-items: stretch;
}

.project-card--blood {
  grid-area: blood;
}

.project-card--telegram {
  grid-area: telegram;
}

.project-card--dune {
  grid-area: dune;
}

.project-card--tccc {
  grid-area: tccc;
}

.project-card {
  position: relative;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(47, 93, 80, 0.10);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 32px rgba(31, 42, 36, 0.10);
}

.projects-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 20, 0.22);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.35s ease;
  z-index: 90;
}

.projects-section.focus-mode .projects-overlay {
  opacity: 1;
  pointer-events: auto;
}

.project-focus-card {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  perspective: 1400px;
}

.projects-section.focus-mode .project-focus-card:not(.is-active) {
  opacity: 0.35;
  filter: blur(2px);
  transform: scale(0.95);
}

.project-focus-card.is-active {
  position: fixed;
  inset: 0;
  margin: auto;

  width: min(860px, calc(100vw - 48px));
  height: min(720px, calc(100vh - 80px));

  z-index: 120;
  transform: none;
  opacity: 1;
  filter: none;
}

.project-focus-card.is-active .project-card-inner {
  height: 100%;
  min-height: 0;
}

.project-focus-card.is-active .project-card-back {
  height: 100%;
  max-height: none;
  overflow-y: auto;
  filter: none;
  backdrop-filter: none;
}

.project-card-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.project-focus-card.is-active .project-card-inner {
  min-height: 620px;
  max-height: calc(100vh - 80px);
}

.project-focus-card.is-active .project-card-back {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.project-focus-card.is-flipped .project-card-inner {
  transform: rotateY(180deg);
}

.project-card-face {
  min-height: 100%;
  height: 100%;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(47, 93, 80, 0.10);
  box-shadow: 0 24px 60px rgba(31, 42, 36, 0.18);
  padding: 22px;
}

.projects-section.focus-mode ~ .navbar,
body.focus-mode .navbar {
  opacity: 0;
  pointer-events: none;
}

.project-card--blood .project-card-front {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: center;
  height: 100%;
}

.project-card--horizontal {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: stretch;
}

.project-card--horizontal .project-card-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.project-card--telegram,
.project-card--tccc {
  display: flex;
  flex-direction: column;
}

.project-card--telegram .project-actions,
.project-card--tccc .project-actions {
  margin-top: auto;
}

.project-focus-card {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  perspective: 1400px;
}

.project-card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);

  display: flex;
  flex-direction: column;
  gap: 14px;

  overflow-y: auto;
}

.project-card-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.project-card h3,
.project-card-front h3 {
  font-size: 20px;
  line-height: 1.25;
  color: #2a433c;
  margin: 0;
}

.project-description {
  font-size: 15px;
  line-height: 1.6;
  color: #5f6d67;
  margin: 0;
}

.project-badge {
  display: inline-block;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 10px;
  background: #e2ebe4;
  color: #45665a;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 4px;
}

.project-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef2ec;
  border: 1px solid rgba(47, 93, 80, 0.10);
  font-size: 12px;
  color: #607067;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.project-btn--primary {
  background: #375a4e;
  color: #fff;
  box-shadow: 0 10px 24px rgba(55, 90, 78, 0.25);
}

.project-btn--primary:hover {
  transform: translateY(-2px);
  background: #2f5045;
}

.project-btn--ghost {
  background: #edf2ee;
  color: #465b53;
  border: 1px solid rgba(47, 93, 80, 0.14);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 0;
  color: #b27b49;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.project-preview {
  height: 100%;
}

.project-preview-mockup {
  height: 100%;
  min-height: 260px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #f8f5f1 0%, #fffdfb 100%);
  border: 1px solid rgba(47, 93, 80, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  gap: 20px;
}

.project-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.project-back-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.project-back-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-warm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.project-back-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  color: var(--accent-dark);
}

.project-back-intro {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.project-back-section {
  border-top: 1px solid rgba(47, 93, 80, 0.10);
  padding-top: 14px;
}

.project-back-section h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 750;
  color: var(--accent-dark);
}

.project-back-section p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.project-back-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.project-back-list li {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.project-back-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef2ec;
  border: 1px solid rgba(47, 93, 80, 0.10);
  font-size: 12px;
  color: var(--text-muted);
}

.project-back-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-back-meta {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(238, 242, 236, 0.85);
  border: 1px solid rgba(47, 93, 80, 0.08);
  border-radius: 16px;
  padding: 12px;
}

.project-card-front--simple {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.project-card-front--dune {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: stretch;
  height: 100%;
}

.project-focus-card.project-card--horizontal {
  display: block;
}

.project-card-front--dune {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: stretch;
  height: 100%;
}

.project-card-front--dune .project-image {
  height: 100%;
  min-height: 220px;
}

.project-card-front--dune .project-card-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

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

.project-meta-label {
  font-size: 11px;
  color: #7b8881;
}

.project-meta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
}

.blood-preview-text h4 {
  font-size: 28px;
  line-height: 1.15;
  color: #73423a;
  margin: 0 0 12px;
}

.blood-preview-text p {
  font-size: 14px;
  line-height: 1.5;
  color: #6f6a66;
  margin: 0 0 16px;
}

.blood-preview-text button {
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: #3d5e52;
  color: #fff;
  cursor: pointer;
}

.blood-drop {
  width: 120px;
  height: 160px;
  background: radial-gradient(circle at 35% 30%, #ffb9b0, #b21d18 70%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: rotate(45deg);
  box-shadow: 0 12px 24px rgba(178, 29, 24, 0.25);
}


/* =========================
   PROJECT IMAGE
========================= */

.project-image {
  border-radius: 16px;
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.project-image--dune {
  background:
    linear-gradient(rgba(20, 22, 24, 0.15), rgba(20, 22, 24, 0.4)),
    url("https://m.media-amazon.com/images/I/81Ua99CURsL._AC_UF1000,1000_QL80_.jpg");
}


/* =========================
   PROJECT TEXT ELEMENTS
========================= */

.project-list {
  margin: 0;
  padding-left: 18px;
  color: #5f6d67;
  line-height: 1.6;
}

.project-soon {
  color: #b27b49;
  font-weight: 600;
  font-size: 14px;
}



.site-footer {
  text-align: center;
  padding: 36px 20px 40px;
  margin-top: 20px;

  color: rgba(31, 42, 36, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 6px;
  color: rgba(31, 42, 36, 0.55);
}



.indent {
  display: block;
  text-indent: 40px;
  margin-top: 8px;
  line-height: 1.5;
}


.to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #003b46;
  font-size: 22px;
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.2s ease;
  z-index: 9999;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  transform: scale(1.08);
}


/* =========================
   ANIMATIONS
========================= */

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   ADAPTIVE: TABLET
========================= */
@media (max-width: 980px) {
  .start-hero {
    min-height: auto;
  }

  .start-hero__grid {
    width: min(100% - 40px, 760px);
    min-height: auto;

    padding: 110px 0 80px;

    grid-template-columns: 1fr;
    gap: 56px;
  }

  .start-hero__content {
    max-width: 620px;
  }

  .start-hero__title {
    font-size: clamp(62px, 12vw, 96px);
  }

  .start-hero__visual {
    min-height: auto;
  }

  .start-hero__photo-wrap {
    width: min(100%, 560px);
    height: min(78vh, 700px);
  }

  .start-hero__dots {
    left: calc(50% - min(50%, 280px) - 15px);
  }

  .start-hero__scroll {
    display: none;
  }
}

/* ==================================================
   START HERO — MOBILE
================================================== */

  @media (max-width: 620px) {
    .start-hero__grid {
      width: calc(100% - 32px);

      padding: 92px 0 62px;

      gap: 40px;
    }

    .start-hero__eyebrow {
      margin-bottom: 20px;

      font-size: 10px;
      letter-spacing: 0.1em;
    }

    .start-hero__eyebrow-line {
      width: 24px;
    }

    .start-hero__title {
      margin-bottom: 22px;

      font-size: clamp(54px, 17vw, 78px);
      line-height: 0.86;
    }

    .start-hero__roles {
      font-size: 18px;
    }

    .start-hero__description {
      max-width: 440px;

      font-size: 15px;
      line-height: 1.55;
    }

    .start-hero__actions {
      width: 100%;
      margin-bottom: 40px;
    }

    .start-hero__btn {
      flex: 1 1 100%;
      width: 100%;
    }

    .start-hero__stats {
      width: 100%;

      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .start-hero__stat {
      min-width: 0;

      margin-right: 12px;
      padding: 18px 12px 0 0;
    }

    .start-hero__stat strong {
      font-size: 17px;
    }

    .start-hero__stat span {
      font-size: 9px;
    }

    .start-hero__visual {
      width: 100%;
    }

    .start-hero__photo-wrap {
      width: 100%;
      height: min(128vw, 610px);
    }

    .start-hero__photo {
      object-position: center 16%;
    }

    .start-hero__dots {
      top: -18px;
      left: 10px;
    }

    .start-hero__corner--top {
      top: -13px;
      right: -5px;
    }

    .start-hero__corner--bottom {
      right: -5px;
      bottom: -12px;
    }
  }

@media (max-width: 760px) {
  .projects-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "blood"
      "telegram"
      "dune"
      "tccc";
  }

  .project-card--blood .project-card-front {
    grid-template-columns: 1fr;
  }

  .project-card-front--dune {
    grid-template-columns: 1fr;
  }

  .project-image {
    min-height: 260px;
  }

  .project-preview-mockup {
    min-height: 240px;
  }

  /*
    На мобільній версії активна картка працює як модальне вікно,
    без 3D-перевороту. Це стабільніше для iPhone/Safari.
  */
  .project-focus-card.is-active {
    position: fixed;

    top: max(16px, env(safe-area-inset-top));
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;

    width: auto;
    height: auto;
    max-height: none;

    margin: 0;
    z-index: 120;

    transform: none;
    opacity: 1;
    filter: none;
    overflow: hidden;
  }

  .project-focus-card.is-active .project-card-inner {
    height: 100%;
    min-height: 0 !important;
    max-height: none !important;
    transform-style: flat;
  }

  .project-focus-card.is-active.is-flipped .project-card-inner {
    transform: none !important;
  }

  .project-focus-card.is-active.is-flipped .project-card-front {
    display: none;
  }

  .project-focus-card.is-active.is-flipped .project-card-back {
    position: relative;
    inset: auto;
    transform: none !important;

    height: 100%;
    min-height: 0;
    max-height: none !important;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;

    padding-bottom: 90px;
  }
}


/* =========================
   ADAPTIVE: NAVBAR
========================= */

@media (max-width: 768px) {
  .page-wrapper {
    min-height: auto;
    display:block;
  }

  .page {
    flex:none;
    min-height: 0;
    padding-bottom: 40px;
  }

  .site-footer {
    margin-top: 0;
    padding-bottom: 100px;
  }

  .navbar {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));

    width: auto;
    max-width: none;
    margin: 0;

    border-radius: 24px;

    z-index: 9999;
  }

  .navbar.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .navbar.hidden {
    opacity: 0;
    transform: translateY(calc(140% + env(safe-area-inset-bottom)));
    pointer-events: none;
  }

  .navbar-inner {
    grid-template-columns: 1fr auto;
    padding: 10px 14px;
  }

  .logo {
    font-size: 15px;
  }

  .nav-social {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav-links {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);

    width: min(240px, calc(100vw - 24px));

    display: none;
    flex-direction: column;
    gap: 0;

    padding: 10px 0;

    background: rgba(31, 42, 36, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;

    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  }

  .menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 10px 14px;
  }
}


@media (max-width: 560px) {
  .project-card {
    padding: 16px;
  }

  .project-focus-card {
    padding: 0;
  }

  .project-card-back {
    padding: 18px;
  }

  .project-back-meta {
    grid-template-columns: 1fr;
  }

  .blood-drop {
    width: 82px;
    height: 112px;
  }

  .blood-preview-text h4 {
    font-size: 23px;
  }
}


@media (max-width: 480px) {
  .hero-main {
    gap: 18px;
  }

  .hero-main h1 {
    font-size: 26px;
  }
}