/* Base */
body {
    background-color: #0F0F0F;
    color: #FFF6DD;
    margin: 0;

    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 400;
}

/* Utility: line breaks that should only appear on mobile */
br.only-mobile {
    display: none;
}
/* Headings */
h1, h2, h3, h4 {
    font-family: 'Anta', system-ui, sans-serif;
    font-weight: 400;
    margin: 0;
}
/* Header / Navigation */
header,
nav {
    font-family: 'Anta', system-ui, sans-serif;
    position: sticky;
  top: 0;
  z-index: 1000;
}
/* Buttons */
button,
.button {
    font-family: 'Anta', system-ui, sans-serif;
    font-weight: 400;
}

/* Brand Gradient (Linear) */
:root {
    --brand-gradient: linear-gradient(to bottom right,
        #F59A06 14%,
        #F04E06 50%,
        #770D0D 100%
    );
    /* Approximate visible height of the sticky header (used to size the "below header" viewport) */
    --sticky-header-height: 104px;
}

/* Header */
header {
    padding: 25px 0;
}

header .container {
    display: flex;
    justify-content: center;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 169px;
    width: 100%;
    max-width: 1216px;
    padding: 13px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    height: 18px;
    width: auto;
    display: block;
}

.header-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.header-nav-links li {
    margin: 0;
}

.header-nav-links a {
    color: #FFF6DD;
    text-decoration: none;
    font-size: 15px;
    line-height: 20px;
    white-space: nowrap;
    transition: color 0.3s ease;
    cursor: pointer;
}

.header-nav-links a:hover {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Reusable Button Class */
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 15px;
    line-height: 20px;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.button span {
    color: inherit;
}

.button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Button Default State */
.button {
    background: var(--brand-gradient);
    color: #080707;
}

.button svg {
    color: #080707;
}

.button-arrow-path {
    stroke: currentColor;
    transition: stroke 0.3s ease;
}

/* Button Hover State */
.button:hover {
    background: #080707;
}

.button:hover span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.button:hover svg {
    color: transparent;
}

.button:hover .button-arrow-path {
    stroke: url(#button-arrow-gradient);
}

/* Reusable Reverse Button (inverse of .button) */
.button.button--reverse {
    background: #080707;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFF6DD;
}

.button.button--reverse span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.button.button--reverse svg {
    color: transparent;
}

.button.button--reverse .press-arrow-path {
    stroke: url(#press-arrow-gradient);
}

.button.button--reverse:hover {
    background: var(--brand-gradient);
    border-color: transparent;
}

.button.button--reverse:hover span {
    background: none;
    -webkit-text-fill-color: #080707;
    color: #080707;
}

.button.button--reverse:hover .press-arrow-path {
    stroke: #080707;
}

/* Press: "Get press kit" button — remove default browser focus underline/outline
   and replace with an accessible focus-visible ring (scoped to this button only). */
.press-kit-button:focus,
.press-kit-button:active {
    outline: none;
    box-shadow: none;
    text-decoration: none;
}

.press-kit-button:focus-visible {
    outline: 2px solid rgba(245, 154, 6, 0.7);
    outline-offset: 3px;
}

/* Press: "Get press kit" button — remove hover border artifact WITHOUT layout shift.
   We remove border in all states (so size never changes), and emulate the default
   1px border via inset box-shadow (does not affect layout). */
.press-kit-button.button--reverse {
    border: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.press-kit-button.button--reverse:hover {
    box-shadow: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Edge background: only for Hero + Services scope */
.edge-bg-scope {
    position: relative;
    overflow: hidden; /* prevent horizontal scroll from large SVG bounds */
    isolation: isolate; /* keep z-index layering predictable */
    /* Extend the background layer up under the sticky header so top SVGs touch page top */
    margin-top: calc(-1 * var(--sticky-header-height));
    padding-top: var(--sticky-header-height);
}

.edge-bg-layer {
    position: sticky;
    top: 0;
    height: 100svh;
    margin-bottom: -100svh; /* overlay without pushing layout down */
    pointer-events: none;
    z-index: 0;
}

.edge-bg-scope > section {
    position: relative;
    z-index: 1; /* content above background */
}

.edge-bg {
    position: absolute;
    width: min(350px, 42vw); /* 350px in Figma, scales down on smaller screens */
    height: auto;
    display: block;
}

.edge-bg--tl { top: 0; left: 0; }
.edge-bg--tr { top: 0; right: 0; }
.edge-bg--bl { bottom: 0; left: 0; }
.edge-bg--br { bottom: 0; right: 0; }

/* Hero Section */
#hero {
    display: block;
    padding: 0 0 60px;
}

#hero .container {
    width: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 106px;
    margin-bottom: 0;
}

.hero-grid {
    display: grid;
    grid-template-rows:
        calc(100svh - var(--sticky-header-height))
        calc(100svh - var(--sticky-header-height));
}

.hero-fold {
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    padding-bottom: 32px;
}

.hero-fold .hero-scroll-hint {
    margin: 0;
}

.hero-about {
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    padding-bottom: 44px; /* was 32px сhanged (desktop) to prevent About hint arrow from dipping under the next section while bobbing */
}

/* extra safety for the 8px bob animation */
.hero-about .about-hint {
    padding-bottom: 10px;
  }

.hero-visual {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* enable layering for table.svg behind the phone */
}

.hero-table {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 165%;
    height: auto;
    max-width: none;
    transform: translate(-10%, -50%);
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.hero-phone {
    max-width: 100%;
    height: auto;
    display: block;
    left: -20px;
    position: relative;
    z-index: 2; /* phone stays above table.svg */
}

.hero-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.hero-panel-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero panel: Lottie with SVG fallback (690x260) */
.hero-panel-stage {
    position: relative;
    width: 100%;
    max-width: 690px;
    aspect-ratio: 690 / 260;
}

.hero-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-lottie,
.hero-fallback {
    opacity: 1;
    transition: none;
}

/* Disable Hero Lottie (always show SVG fallback) */
#hero .hero-lottie {
    display: none;
}

.hero-fallback.is-hidden,
.hero-lottie.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-lottie {
        display: none;
    }
    .hero-fallback {
        opacity: 1 !important;
        transition: none;
    }
}

/* Phone Floating Animation */
@keyframes float-phone {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* Calmer phone float for Hero only (so other uses of float-phone stay unchanged) */
@keyframes float-phone-hero {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(0.6deg);
    }
}

.hero-phone {
    animation: float-phone-hero 5s ease-in-out infinite;
}

.float-phone {
    animation: float-phone 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero-phone,
    .float-phone {
        animation: none;
    }
}

/* Scroll Hint */
.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    margin-top: 32px;
    margin-bottom: 32px;
}

.hero-scroll-text {
    font-size: 20px;
    font-family: 'Anta', system-ui, sans-serif;
    font-weight: 400;
    opacity: 0.85;
    display: block;
}


.hero-scroll-arrow {
    font-size: 16px;
    display: block;
}

.hero-scroll-hint {
    animation: bob-hint 3s ease-in-out infinite;
}

@keyframes bob-hint {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-hint {
        animation: none;
    }
}

/* Header Mobile Responsive */
@media (max-width: 1024px) {
    :root {
        --sticky-header-height: 140px;
    }

    .header-nav {
        gap: 40px;
        flex-wrap: wrap;
    }
    
    .header-nav-links {
        gap: 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    :root {
        --sticky-header-height: 220px;
    }

    .header-nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-nav-links {
        gap: 16px;
        font-size: 14px;
    }
}

/* Text Gradient Helper (Reusable) */
.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Scroll Reveal (IntersectionObserver-driven) */
.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.8,.2,1);
    will-change: opacity, transform;
}

.js .reveal--left {
    transform: translate3d(-24px, 0, 0);
}

.js .reveal--right {
    transform: translate3d(24px, 0, 0);
}

.js .reveal--up {
    transform: translate3d(0, 16px, 0);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* About Section */
#about {
    padding: 0;
    scroll-margin-top: calc(var(--sticky-header-height) + 16px);
}

/* About: bottom corner edge SVGs (scoped to #about only) */
#about {
    position: relative;
    overflow: hidden;      /* prevents horizontal scroll from large SVG bounds */
    isolation: isolate;    /* keep z-index layering predictable */
  }
  
  #about::before,
  #about::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: min(350px, 42vw);
    height: min(350px, 42vw);
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 1; /* если нужно сделать как в hero — можно поставить 0.35 */
  }
  
  /* left bottom: bg-bottom-right.svg */
  #about::before {
    left: 0;
    background-image: url("../img/ui/bg-bottom-right.svg");
  }
  
  /* right bottom: bg-top-left.svg */
  #about::after {
    right: 0;
    background-image: url("../img/ui/bg-top-left.svg");
  }
  
  /* keep about content above the decorative layer */
  #about .about-content,
  #about .about-hint {
    position: relative;
    z-index: 1;
  }

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 0px;
}

.about-visual {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo {
    width: 179px;
    height: 179px;
    max-width: 100%;
    height: auto;
    display: block;
}

.about-text {
    flex: 1;
    min-width: 0;
    max-width: 560px;
}

.about-text p {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 20px;
    line-height: 1.925;
    color: #FFF6DD;
    margin: 0;
}

.about-strong {
    font-weight: 700;
}

/* About Hint */
.about-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    margin-top: 32px;
    margin-bottom: 32px;
}

.about-hint-text {
    font-family: 'Anta', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 20px;
    display: block;
}

.about-hint-arrow {
    display: block;
}
.hero-scroll-arrow img, .about-hint-arrow img {
    width: 16px;
    height: 16px;
    display: block;
}

/* add this right here */
.hero-scroll-text,
.about-hint-text {
  line-height: 20px;
}

/* About Entrance Animations */
@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-visual {
    animation: slide-in-left 750ms ease-out;
}

.about-text {
    animation: slide-in-right 750ms ease-out 150ms both;
}

@media (prefers-reduced-motion: reduce) {
    .about-visual,
    .about-text {
        animation: none;
    }
}

/* About Hint Animation */
.about-hint {
    animation: bob-hint 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .about-hint {
        animation: none;
    }
}

/* About Mobile Responsive */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-visual {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .about-logo {
        width: 150px;
    }
    
    .about-text {
        width: 100%;
    }
    
    #about {
        padding: 60px 0;
    }
}

/* Services Section */
#services {
    padding: 80px 0;
}

.services-header {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.services-title-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.services-subtitle {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 20px;
    color: #FFF6DD;
    text-align: center;
    margin: 0 0 60px 0;
}

.services-cards {
    display: flex;
    gap: 24px;
    margin-bottom: 60px;
}

/* Reusable Card (shared visuals) */
.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Fix: allow card hover when card also uses scroll-reveal (transform conflict) */
.js .card.reveal.is-visible:hover {
    transform: translate3d(0, -4px, 0) scale(1.01);
}

.services-card {
    flex: 1;
}

.services-card-title {
    font-family: 'Anta', system-ui, sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: #FFF6DD;
    margin: 0 0 24px 0;
}

.services-card-list {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 15px;
    color: #CFC6B8;
    list-style: none;
    padding: 0;
    margin: 0 0 auto 0;
    line-height: 1.6;
}

.services-card-list li {
    margin-bottom: 12px;
}

.services-card-list li:last-child {
    margin-bottom: 0;
}

.services-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Anta', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #FFF6DD;
    text-decoration: none;
    margin-top: 24px;
    transition: color 0.3s ease;
    cursor: pointer;
    align-self: flex-start;
}

.services-card-arrow {
    width: 6px;
    height: 11px;
    flex-shrink: 0;
    color: #FFF6DD;
    transition: transform 0.3s ease, color 0.3s ease;
}

.services-card-arrow-path {
    stroke: currentColor;
    transition: stroke 0.3s ease;
}

.services-card-link:hover {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.services-card-link:hover .services-card-arrow {
    transform: translateX(4px);
    color: transparent;
}

.services-card-link:hover .services-card-arrow-path {
    stroke: url(#services-arrow-gradient-1);
}

.services-card:nth-child(2) .services-card-link:hover .services-card-arrow-path {
    stroke: url(#services-arrow-gradient-2);
}

.services-card .button {
    margin-top: 24px;
    align-self: flex-start;
}

.services-divider {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.services-divider img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Services Mobile Responsive */
@media (max-width: 768px) {
    #services {
        padding: 60px 0;
    }
    
    .services-cards {
        flex-direction: column;
        gap: 24px;
    }
    
    .services-card {
        width: 100%;
    }
    
    .services-subtitle {
        margin-bottom: 40px;
    }
    
    .services-cards {
        margin-bottom: 40px;
    }
    
    .services-divider {
        margin-top: 40px;
    }
}

/* Products Section */
#products {
    background-color: #080707;
    padding: 80px 0;
}

.products-header {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.products-title-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.products-subtitle {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 20px;
    color: #FFF6DD;
    text-align: center;
    margin: 0 0 80px 0;
}

.products-blocks {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.products-block {
    display: flex;
    align-items: center;
    gap: 60px;
}

.products-block-wide-gap {
    gap: 185px;
}

.products-block-reverse {
    flex-direction: row-reverse;
}

.products-block-content {
    flex: 1;
    min-width: 0;
}

.products-block-title {
    font-family: 'Anta', system-ui, sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: #FFF6DD;
    margin: 0 0 24px 0;
}

.products-block-text {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #FFF6DD;
    margin: 0;
    max-width: 400px;
}

.products-block-text + .products-block-text {
    margin-top: 32px;
}

.products-point {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.products-point-icon {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.products-text-highlight {
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.products-block-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Products Mobile Responsive */
@media (max-width: 768px) {
    #products {
        padding: 60px 0;
    }
    
    .products-blocks {
        gap: 80px;
    }
    
    .products-block {
        flex-direction: column;
        gap: 40px;
    }
    
    .products-block-reverse {
        flex-direction: column;
    }
    
    .products-block-content {
        width: 100%;
    }
    
    .products-block-image {
        width: 100%;
    }
    
    .products-subtitle {
        margin-bottom: 60px;
    }
}

/* People Section */
#people .container {
    display: flex;
    justify-content: center;
}

/* People: Lottie with SVG fallback (1216x844) */
.people-stage {
    position: relative;
    width: min(100%, 1216px);
    margin: 0 auto;
    aspect-ratio: 1216 / 844;
}

.people-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.people-lottie,
.people-fallback {
    opacity: 1;
    transition: none;
}

/* Prevent initial SVG "flash" when JS is enabled (Lottie loads after first paint).
   In no-JS scenarios, fallback remains visible. If Lottie fails, JS will add
   `.is-fallback` on `.people-stage` to show the SVG again. */
html.js #people .people-fallback {
    opacity: 0;
}

html.js #people .people-stage.is-fallback .people-fallback {
    opacity: 1;
}

html.js #people .people-stage.is-fallback .people-lottie {
    opacity: 0;
}

.people-fallback.is-hidden,
.people-lottie.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .people-lottie {
        display: none;
    }

    .people-fallback {
        opacity: 1 !important;
        transition: none;
    }
}

/* Mission Section */
#mission {
    position: relative;
    overflow: hidden;
    --mission-bg-w: min(1347px, 100vw);
    --mission-bg-h: calc(var(--mission-bg-w) * 449 / 1347);
    padding-top: clamp(24px, 4vw, 64px);
}

.mission-values-bg {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: var(--mission-bg-w);
    max-width: none;
    height: auto;
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
    padding-top: clamp(24px, 4vw, 64px);
}

#mission .container {
    position: relative;
}

.mission-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: var(--mission-bg-h);
    margin: 0 auto;
    width: min(720px, 100%);
    padding: 0;
}

.mission-logo {
    flex-shrink: 0;
    width: 192px;
    max-width: 100%;
    height: auto;
    display: block;
    /* Neon glow + rare double flicker */
    filter:
        drop-shadow(0 0 10px rgba(245, 154, 6, 0.35))
        drop-shadow(0 0 24px rgba(240, 78, 6, 0.22));
    animation: mission-neon-flicker 7.5s ease-in-out infinite;
    will-change: filter, opacity;
}

@keyframes mission-neon-flicker {
    /* mostly steady glow */
    0%, 72% {
        opacity: 1;
        filter:
            drop-shadow(0 0 10px rgba(245, 154, 6, 0.35))
            drop-shadow(0 0 24px rgba(240, 78, 6, 0.22));
    }

    /* rare double flicker (2 quick pulses) */
    74% {
        opacity: 0.92;
        filter:
            drop-shadow(0 0 6px rgba(245, 154, 6, 0.18))
            drop-shadow(0 0 14px rgba(240, 78, 6, 0.12));
    }
    75.2% {
        opacity: 1;
        filter:
            drop-shadow(0 0 14px rgba(245, 154, 6, 0.55))
            drop-shadow(0 0 34px rgba(240, 78, 6, 0.28));
    }
    76.1% {
        opacity: 0.94;
        filter:
            drop-shadow(0 0 7px rgba(245, 154, 6, 0.22))
            drop-shadow(0 0 16px rgba(240, 78, 6, 0.14));
    }
    77.4% {
        opacity: 1;
        filter:
            drop-shadow(0 0 16px rgba(245, 154, 6, 0.6))
            drop-shadow(0 0 40px rgba(240, 78, 6, 0.3));
    }

    /* ease back to baseline */
    80%, 100% {
        opacity: 1;
        filter:
            drop-shadow(0 0 10px rgba(245, 154, 6, 0.35))
            drop-shadow(0 0 24px rgba(240, 78, 6, 0.22));
    }
}

@media (prefers-reduced-motion: reduce) {
    .mission-logo {
        animation: none;
        /* keep static glow, no flicker */
    }
}

.mission-statement {
    margin: 0;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #FFF6DD;
    max-width: 560px;
}

.mission-statement .text-gradient {
    font-weight: 700;
}

.mission-points {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    list-style: none;
    padding: 0;
    margin: 80px 0 80px;
    font-family: 'Anta', system-ui, sans-serif;
    font-size: 20px;
    line-height: 20px;
}

.mission-points li {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.mission-points li::before {
    content: "•";
    color: #F59A06;
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 768px) {
    .mission-values-bg {
        width: 140%;
    }

    #mission .container {
        padding-top: 110px;
        padding-bottom: 90px;
    }

    .mission-content {
        min-height: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mission-points {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 80px 0 80px;
    }
}

/* Careers Section */
#careers {
    padding: 120px 0 140px;
}

.careers-header {
    text-align: center;
    margin-bottom: 70px;
}

.careers-title-image {
    display: block;
    margin: 0 auto 18px;
    width: min(202px, 100%);
    height: auto;
}

.careers-subtitle {
    margin: 0;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #FFF6DD;
}

.careers-cards {
    display: flex;
    gap: 36px;
}

.careers-card {
    flex: 1;
    min-height: 214px;
}

.careers-card-meta {
    margin: 0 0 10px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 15px;
    line-height: 20px;
    color: rgba(255, 246, 221, 0.55);
}

.careers-card-title {
    margin: 0 0 28px;
    font-family: 'Anta', system-ui, sans-serif;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 400;
    color: #FFF6DD;
}

.careers-card-row {
    margin: 0 0 14px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 15px;
    line-height: 20px;
}

.careers-card-row:last-child {
    margin-bottom: 0;
}

.careers-card-label {
    font-weight: 700;
    color: #FFF6DD;
}

.careers-card-value {
    color: rgba(255, 246, 221, 0.55);
}

.careers-card-actions .careers-card-title {
    margin-bottom: 40px;
}

.careers-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.careers-button {
    align-self: flex-start;
}

.careers-divider {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.careers-divider img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    #careers {
        padding: 90px 0 110px;
    }

    .careers-title-image {
        width: min(170px, 100%);
    }

    .careers-cards {
        flex-direction: column;
        gap: 24px;
    }

    .careers-divider {
        margin-top: 40px;
    }
}

/* Blog Section */
#blog {
    padding: 120px 0 140px;
}

.blog-header {
    text-align: center;
    margin-bottom: 70px;
}

.blog-title-image {
    display: block;
    margin: 0 auto 18px;
    width: min(972px, 100%);
    height: auto;
}

.blog-subtitle {
    margin: 0;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #FFF6DD;
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.blog-card {
    position: relative;
    padding-bottom: 96px;
}

.blog-quote-mark {
    margin: 0 0 18px;
    font-family: 'Anta', system-ui, sans-serif;
    font-size: 36px;
    line-height: 1;
    color: rgba(255, 246, 221, 0.55);
}

.blog-excerpt {
    margin: 0 0 28px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 246, 221, 0.85);
    max-width: 320px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    min-height: 96px;
}

.blog-card-title {
    margin: 0 0 26px;
    font-family: 'Anta', system-ui, sans-serif;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 400;
    color: #FFF6DD;
    max-width: 320px;
}

.blog-button {
    position: absolute;
    left: 32px;
    bottom: 32px;
}

/* Right image card (not glass) */
.blog-card-image {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-image-overlay {
    position: static;
}

.blog-card-image .blog-button {
    position: absolute;
    left: 32px;
    bottom: 32px;
}

.blog-divider {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.blog-divider img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    #blog {
        padding: 90px 0 110px;
    }

    .blog-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-image {
        height: 360px;
    }

    .blog-card {
        padding-bottom: 96px;
    }

    .blog-divider {
        margin-top: 60px;
    }
}

/* Press Section */
#press {
    background: #080707;
    padding: 140px 0 20px; /* было: 140px 0 */
}

.press-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 120px;
}

.press-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.press-media {
    width: 280px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.press-kit-image {
    width: min(302px, 90vw);
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.press-right {
    flex: 1;
    min-width: 0;
}

.press-title {
    margin: 0 0 28px;
    font-family: 'Anta', system-ui, sans-serif;
    font-size: 64px;
    line-height: 1.05;
    font-weight: 400;
    color: #FFF6DD;
}

@media (max-width: 1024px) {
    .press-layout {
        gap: 64px;
    }

    .press-title {
        font-size: 52px;
    }
}

@media (max-width: 768px) {
    #press {
        padding: 110px 0 60px; /* было: 110px 0 */
    }

    .press-layout {
        flex-direction: column;
        align-items: center;
        gap: 60px;
        text-align: center;
    }

    .press-right {
        width: 100%;
    }

    .press-title {
        font-size: 46px;
    }
}

/* Footer */
#footer {
    background: #080707;
 padding: 48px 0 30px; /* было: 70px 0 56px */
}

.footer-top {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 46px;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 9999px;
    border: 1px solid #FFF6DD;
    background: #080707;
    color: #FFF6DD;
    text-decoration: none;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 15px;
    line-height: 20px;
    font-weight: 400;
    transition: background 0.25s ease, color 0.25s ease;
}

.footer-pill:hover {
    background: #FFF6DD;
    color: #080707;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.footer-logo img {
    height: 18px;
    width: auto;
    display: block;
}

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

.footer-nav-links a {
    font-family: 'Anta', system-ui, sans-serif;
    font-size: 15px;
    line-height: 20px;
    color: #FFF6DD;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.footer-nav-links a:hover {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.footer-social-link {
    width: 41px;
    height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-social-link img {
    width: 41px;
    height: 41px;
    display: block;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom small {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 15px;
    line-height: 20px;
    color: #FFF6DD;
}

@media (max-width: 768px) {
    #footer {
        padding: 40px 0 48px; /* было: 56px 0 48px */
    }

    .footer-main {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 28px;
    }

    .footer-nav-links {
        flex-wrap: wrap;
        row-gap: 14px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-visual {
        width: 100%;
    }

    .hero-table {
        width: 140%;
        transform: translate(-50%, -50%);
    }
    
    .hero-panel {
        width: 100%;
    }
    
    #hero {
        padding: 0 0 80px;
    }
}

/* =========================================================
   Mobile polish overrides (append-only; keeps desktop intact)
   ========================================================= */

/* Desktop defaults for new header elements */
.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.header-menu-toggle {
    display: none; /* only visible on mobile */
}


@media (max-width: 768px) {
    /* Hard stop for mobile horizontal overflow:
       - border-box ensures padding/border do not push elements beyond 100% width
       - overflow-x hidden prevents 1px scrollbars from anti-aliasing artifacts */
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    body {
        overflow-x: hidden;
    }

    /* Header: compact + hamburger */
    :root {
        --sticky-header-height: 104px;
    }

    header {
        padding: 12px 0;
    }

    .header-nav {
        position: relative; /* anchor the dropdown menu */
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 12px;
    }

    /* Order: burger (left) → logo → actions (right) */
    .header-menu-toggle { order: 0; }
    .header-logo { order: 1; }
    .header-actions { order: 2; }

    /* Hide full nav links by default on mobile; show as dropdown when open */
    .header-nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px;
        border-radius: 16px;
        background: rgba(15, 15, 15, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.10);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 50;
    }

    .header-nav.is-open .header-nav-links {
        display: flex;
    }

    .header-nav-links a {
        white-space: normal;
    }

    .header-menu-toggle {
        display: inline-flex;
        width: 42px;
        height: 42px;
        border-radius: 9999px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.06);
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        position: relative;
        z-index: 60; /* stay above dropdown */
    }

    .header-menu-icon {
        width: 18px;
        height: 2px;
        background: #FFF6DD;
        position: relative;
        display: block;
    }

    .header-menu-icon::before,
    .header-menu-icon::after {
        content: "";
        position: absolute;
        left: 0;
        width: 18px;
        height: 2px;
        background: #FFF6DD;
    }

    .header-menu-icon::before { top: -6px; }
    .header-menu-icon::after { top: 6px; }

    /* Hero: simplify for mobile */
    .hero-visual {
        display: none;
    }

    .hero-grid {
        display: block;
    }

    .hero-fold,
    .hero-about {
        display: block;
        padding-bottom: 16px;
    }

    /* Hero/About vertical rhythm: keep the "statement" feel and tighten spacing */
    .hero-fold { padding-bottom: 8px; }
    .hero-about { padding-bottom: 8px; }

    .hero-content {
        gap: 16px;
    }

    /* Hero: use the mobile artwork aspect ratio so it can scale full-width */
    .hero-panel-stage {
        width: 100%;
        max-width: none;
        aspect-ratio: 377 / 382;
        margin: 16px 0;
    }

    #hero {
        padding: 24px 0 72px;
    }

    .hero-scroll-hint {
        display: none;
        margin-top: 18px;
        margin-bottom: 0;
    }

    /* About: cleaner centering */
    .about-logo {
        width: 120px;
    }

    .about-text {
        max-width: 36ch;
        margin: 0 auto;
        width: 100%;
    }

    .about-content {
        gap: 32px;
        align-items: center;
        text-align: center;
    }

    .about-text p {
        font-size: 17px;
        line-height: 1.7;
        text-align: center;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .about-hint {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    /* About: keep content vertically centered between the two hint phrases */
    #about {
        padding: 40px 0 20px; /* more breathing room in About */
        display: flex;
        flex-direction: column;
    }

    #about .about-content {
        flex: 1;
        justify-content: center;
    }

    #about .about-hint {
        margin-top: 28px;
        margin-bottom: 0;
    }

    /* Services: hide subtitle + prevent overflow */
    .services-subtitle {
        display: none;
    }

    .services-card-list li {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .services-card {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .services-card.card {
        padding: 20px;
    }

    .services-cards {
        width: 100%;
    }

    /* Disable hover lift on mobile to avoid sticky hover states */
    .card:hover {
        transform: none;
        box-shadow: none;
    }

    /* Hide divider-3 blocks on mobile */
    .services-divider,
    .careers-divider,
    .blog-divider {
        display: none;
    }

    /* First screen (mobile): hide About content; keep only the hint */
    #about .about-content {
        display: none !important;
    }

    /* First screen (mobile): hide About decorative CSS corner SVGs (#about::before/#about::after) */
    #about::before,
    #about::after {
        content: none !important;
        background-image: none !important;
        display: none !important;
    }

    /* About hint: allow manual line-break only on mobile */
    br.only-mobile {
        display: inline;
    }


    /* Products: hide subtitle on mobile */
    .products-subtitle {
        display: none;
        margin: 0;
    }

    /* Products: mobile-only reorder for "New approaches" so the image is seen first */
    .products-block--new-approaches .products-block-image { order: 0; }
    .products-block--new-approaches .products-block-content { order: 1; }

    /* Tighten the gap from Hero/About into Products */
    #hero { padding-bottom: 40px; }
    #products { padding: 48px 0; }

    /* Mission: center background and keep it within viewport */
    .mission-values-bg {
        width: min(1347px, 100vw);
        left: 50%;
        transform: translateX(-50%);
    }

    #mission .container {
        padding-top: 0;
        padding-bottom: 40px;
    }

    .mission-content {
        min-height: var(--mission-bg-h);
    }

    .mission-points {
        margin: 48px 0;
    }

    /* Tighten Mission → Careers and Careers → Blog spacing (mobile only) */
    #careers {
        padding: 56px 0 64px;
    }

    #blog {
        padding: 56px 0 72px;
    }

    /* Blog: hide subtitle on mobile */
    .blog-subtitle {
        display: none;
    }
}

/* =========================================================
   Breakpoint-specific polish (append-only; keeps existing layouts intact)
   Targets: 375 / 768 / 1024 / 2560+
   ========================================================= */

/* 1) ~375px: keep header in one row by compacting the Reach out button (hide text, keep arrow) */
@media (max-width: 375px) {
    .header-reachout {
        padding: 8px 10px;
        gap: 0;
        min-width: 42px;
        justify-content: center;
    }

    .header-reachout span {
        display: none;
    }

    .header-reachout svg {
        margin: 0;
    }
}

/* 2) ~768px (tablet-ish): make Products mobile title reach container edges like Services/Blog */
@media (min-width: 700px) and (max-width: 820px) {
    #products .products-header {
        display: block; /* override flex-centering so the <picture> can truly fill the row */
        margin-left: -20px;
        margin-right: -20px;
    }

    #products .products-header picture {
        display: block;
        width: 100%;
    }

    #products .products-title-image {
        width: 100%;
        max-width: none;
        display: block;
    }
}

/* 3) ~1024px: reduce Products "hand iPhone" image to give text more room */
@media (min-width: 900px) and (max-width: 1100px) {
    :root {
        /* Keep Products visuals consistent on ~1024px (match "iphones-and-logos" and the hand image) */
        --products-visual-w-1024: min(520px, 44vw);
    }

    .products-block--new-approaches .products-block-image img {
        width: var(--products-visual-w-1024);
        height: auto;
        max-width: none;
    }

    /* Match the size of the "iphones-and-logos" visual to the hand image at this breakpoint */
    .products-block-wide-gap .products-block-image img.float-phone {
        width: var(--products-visual-w-1024);
        height: auto;
        max-width: none;
    }

    /* Allow the text column to breathe a bit more (it was capped globally at 400px) */
    .products-block--new-approaches .products-block-text {
        max-width: 520px;
    }
}

/* 3) ~1024px: Hero visual adjustments (hide table.svg, nudge phone right without breaking its transform animation) */
@media (min-width: 900px) and (max-width: 1100px) {
    .hero-table {
        display: none;
    }

    /* Keep animation-driven transform; use relative positioning offset instead */
    .hero-phone {
        left: 20px;
    }
}

/* 4) 2560+ (QHD / 16:10): scale layout density without changing Hero/About hint positioning */
@media (min-width: 2400px) {
    /* Global scale: keep it close to 1920 feel */
    .container { max-width: 1600px; }
    body { font-size: 22px; }
    .header-nav { max-width: 1600px; }
  
    /* Titles: slightly larger, but not huge */
    .services-title-image { width: min(740px, 100%); }
    .products-title-image { width: min(1100px, 100%); }
    .blog-title-image { width: min(1100px, 100%); }
    .careers-title-image { width: min(240px, 100%); }
  
    /* Hero right panel: keep reasonable */
    .hero-panel-stage { max-width: 1000px; }
  
    /* Hero left visuals: modest increase only */
    #hero .hero-content { gap: 380px; }
  
    /* table ~ close to default (165%), just a touch bigger */
    #hero .hero-table {
      width: 175%;
      transform: translate(-10%, -50%);
    }
  
    /* phone: controlled, cannot “explode” */
    #hero .hero-phone {
      max-width: none;
      width: clamp(260px, 12vw, 340px);
      height: auto;
      left: -10px; /* небольшой возврат к исходному, чтобы не “утопить” вправо */
    }
  
    /* About (2560+): keep your background + card */
    #about {
      background-image: url("../img/about/bg-about-2560.svg");
      background-repeat: no-repeat;
      background-position: center center;
      background-size: contain;
    }
  
    #about .about-content {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.10);
      border-radius: 16px;
      padding: 32px;
  
      width: min(800px, 100%);
      margin: 0 auto;
  
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 40px;
    }

    /* Header (2560+): scale up typography + spacing so it feels like 1920 */
    header { padding: 32px 0; } /* было меньше */
    
    .header-nav {
        padding: 16px 28px; /* больше воздуха внутри “glass” */
        gap: 80px;          /* больше расстояние между группами (лого / меню / кнопка) */
    }
    
    .header-logo img {
        height: 30px; /* было 18px */
    }
    
    .header-nav-links {
        gap: 50px; /* было 28px */
    }
    
    .header-nav-links a {
        font-size: 22px;   /* было 15px */
        line-height: 22px;
    }
    
    .header-reachout {
        padding: 10px 18px; /* было 8px 16px */
        font-size: 22px;
        line-height: 22px;
    }

    /* Header button arrow (2560+): make the arrow icon bigger */
    .header-reachout svg {
        width: 22px;  /* было 16px */
        height: 22px; /* было 16px */
    }
    
    /* Products title (2560+): make <picture> fill the row, then image can scale */
    #products .products-header {
    display: block;           /* instead of flex-centering */
    margin: 0 auto; /* <-- центрирует */
    }
    
    #products .products-header picture {
    display: block;
    margin: 0 auto; /* <-- центрирует */
    width: 90%;
  }
  
  #products .products-title-image {
    display: block;
    width: 90%;              /* fills container (up to your .container max-width) */
    max-width: none;
    margin: 0 auto; /* <-- центрирует */
  }

  /* Products (2560+): make the "hand iPhone" image larger (New approaches only) */
  #products .products-block--new-approaches .products-block-image img {
    width: min(1000px, 60vw);
    max-width: none;
    height: auto;
  }

  /* Products (2560+): make the animated iphones-and-logos.svg larger (keep animation safe) */
  #products .products-block-wide-gap .products-block-image img.float-phone {
    width: min(620px, 40vw);
    max-width: none;
    height: auto;
  }

  /* People (2560+): corner edge backgrounds pinned to viewport edges (same logic as Hero) */
  #people {
    position: relative;
    overflow-x: clip; /* prevent horizontal scroll from large SVG bounds */
    isolation: isolate; /* predictable layering */
  }

  /* Important: keep these corner SVGs scoped to the People section (do NOT follow page scroll past #people). */
  #people .people-edge-bg-layer {
    display: block !important; /* override inline display:none */
    position: absolute;
    inset: 0; /* pin to the section box: top aligns with #people top, bottom aligns with #people bottom */
    pointer-events: none;
    z-index: 0;
  }

  #people .container,
  #people .people-stage {
    position: relative;
    z-index: 1; /* content above background */
  }

  #people .people-bg {
    position: absolute;
    width: min(350px, 42vw); /* match Hero corner sizing */
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
  }

  #people .people-bg--tl { top: 0; left: 0; }
  #people .people-bg--tr { top: 0; right: 0; }
  #people .people-bg--bl { bottom: 0; left: 0; }
  #people .people-bg--br { bottom: 0; right: 0; }

    /* All buttons */
    .button {
      font-size: 22px;
      line-height: 22px;
      padding: 10px 18px;
      gap: 10px;
    }
  
    .button svg {
      width: 22px;
      height: 22px;
    }
  }