/*
 * АльянсМедСервис - Основные стили
 * Полностью переписанная версия
 */

@font-face {
    font-family: 'Inter';
    src: url('/public/fonts/inter/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/public/fonts/inter/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/public/fonts/inter/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/public/fonts/inter/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --header-h: 85px;
    --hero-side-gap: 24px;
    --hero-max-width: 1600px;
    --page-bg: rgb(244 244 244 / var(--tw-bg-opacity, 1));
    --brand-blue: #2b8feb;
    --brand-blue-dark: #106cb5;
    --offcanvas-w: clamp(260px, 25vw, 420px);
    --section-gap-y: 32px;
    --section-gap-y-mobile: 24px;
    --surface-radius-lg: 28px;
    --surface-radius-md: 24px;
    --surface-radius-sm: 20px;
    --button-radius: 16px;
    --chip-radius: 18px;
    --surface-border-brand: 1px solid rgba(43, 143, 235, 0.12);
    --surface-border-soft: 1px solid rgba(148, 163, 184, 0.18);
    --surface-border-hover: rgba(43, 143, 235, 0.28);
    --surface-shadow-shell: 0 28px 80px rgba(15, 23, 42, 0.08);
    --surface-shadow-shell-strong: 0 28px 60px rgba(24, 45, 74, 0.08);
    --surface-shadow-card: 0 18px 40px rgba(15, 23, 42, 0.08);
    --surface-shadow-card-hover: 0 26px 52px rgba(15, 23, 42, 0.13);
    --surface-shadow-brand-hover: 0 30px 68px rgba(43, 143, 235, 0.16);
    --surface-shadow-cta: 0 16px 34px rgba(43, 143, 235, 0.28);
    --motion-lift-sm: translateY(-2px);
    --motion-lift-md: translateY(-4px);
    --motion-lift-lg: translateY(-6px);
    --content-pad-lg: 32px;
    --content-pad-md: 28px;
    --content-pad-sm: 24px;
    --grid-gap-lg: 24px;
    --grid-gap-md: 18px;
    --grid-gap-sm: 14px;
}

/* ========================================
   Base
   ======================================== */
body {
    font-family: 'Inter';
    padding-top: var(--header-h);
    min-height: 100vh;
    background-color: var(--page-bg);
    color: #2f2f2f;
    line-height: 1.6;
}

.u-sheet {
    width: min(var(--hero-max-width), calc(100vw - 2 * var(--hero-side-gap)));
    margin-left: auto;
    margin-right: auto;
}

.company-page,
.work-page {
    padding: var(--content-pad-sm) 0 72px;
}

.company-hero,
.company-section,
.work-hero,
.work-section {
    padding: 0 0 var(--section-gap-y);
}

/* ========================================
   Internal Hero
   ======================================== */
.inner-hero__shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: 0;
    overflow: hidden;
    border: var(--surface-border-brand);
    border-radius: var(--surface-radius-lg);
    background:
        radial-gradient(circle at top left, rgba(43, 143, 235, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff, #f5f9fd);
    box-shadow: var(--surface-shadow-shell);
}

.inner-hero__shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        url('/public/img/spider-l.svg') left center / 260px no-repeat,
        url('/public/img/spider-r.svg') right top / 220px no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.inner-hero__copy,
.inner-hero__side {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.inner-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 36px 40px;
}

.inner-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(43, 143, 235, 0.1);
    color: var(--brand-blue-dark);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.inner-hero__title {
    margin: 0;
    color: var(--brand-blue);
    font-size: 40px;
    line-height: 1.18;
    font-weight: 800;
    text-transform: uppercase;
}

.inner-hero__lead {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.72;
}

.inner-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.inner-hero__actions .inner-hero__cta--secondary:hover {
    background: var(--brand-blue-dark);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--surface-shadow-cta);
}

.inner-hero__actions .inner-hero__cta--secondary:hover + .inner-hero__cta--primary {
    background: var(--page-bg);
    border-color: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    box-shadow: none;
}

.inner-hero__side {
    display: grid;
    gap: var(--grid-gap-md);
    align-content: start;
    padding: var(--content-pad-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(244, 248, 252, 0.88));
}

.inner-hero__side--stacked {
    grid-template-rows: minmax(240px, 1fr) auto;
}

.inner-hero__media {
    min-height: 240px;
    border-radius: var(--surface-radius-md);
    background:
        radial-gradient(circle at top left, rgba(43, 143, 235, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(245, 249, 253, 0.96), rgba(227, 239, 248, 0.9));
    border: 1px solid rgba(43, 143, 235, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.inner-hero__stats {
    display: grid;
    gap: var(--grid-gap-sm);
}

.inner-hero-stat {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(43, 143, 235, 0.14);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.inner-hero-stat strong {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
}

.inner-hero-stat p,
.inner-hero-stat span {
    margin: 0;
    color: #5a6878;
    font-size: 15px;
    line-height: 1.65;
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (min-width: 1199px) {
    .mobile {
        display: none !important;
    }
}

@media (max-width: 1199px) {
    .nomobile {
        display: none !important;
    }

    .inner-hero__shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .company-page,
    .work-page {
        padding-bottom: 56px;
    }

    .company-hero,
    .company-section,
    .work-hero,
    .work-section {
        padding-bottom: var(--section-gap-y-mobile);
    }

    .inner-hero__copy,
    .inner-hero__side {
        padding: 20px;
    }

    .inner-hero__title {
        font-size: 29px;
    }

    .inner-hero__actions .landing-button {
        width: 100%;
    }

    .inner-hero__media {
        min-height: 220px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .landing-button,
    .cookie-btn,
    .header-nav-link,
    .header-contact-link,
    .u-nav-link {
        -webkit-tap-highlight-color: transparent;
    }

    .landing-button.is-tapped,
    .cookie-btn.is-tapped {
        transform: var(--motion-lift-sm);
        filter: brightness(0.96);
        box-shadow: var(--surface-shadow-cta);
    }

    .header-nav-link.is-tapped,
    .header-contact-link.is-tapped,
    .u-nav-link.is-tapped {
        color: #000 !important;
        opacity: 0.82;
    }
}
