/* ==========================================================================
   STOLARGO LTD — Corporate styles (BEM)
   ========================================================================== */

:root {
    --color-navy: #0a1628;
    --color-navy-mid: #12253f;
    --color-navy-light: #1a3555;
    --color-cyan: #00c2d4;
    --color-cyan-dim: #0099a8;
    --color-text: #1c2a3a;
    --color-text-muted: #5a6b7d;
    --color-bg: #f5f7fa;
    --color-bg-alt: #e8eef4;
    --color-white: #ffffff;
    --color-border: #d0d8e2;
    --font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
    --container: 1100px;
    --header-h: 72px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-cyan-dim);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-navy);
}

ul,
ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* --------------------------------------------------------------------------
   Page
   -------------------------------------------------------------------------- */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-navy);
    border-bottom: 1px solid rgba(0, 194, 212, 0.2);
}

.header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 110;
    background: var(--color-white);
    padding: 4px 8px;
    border-radius: 8px;
}

.header__logo-img {
    height: 48px;
    width: auto;
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    z-index: 110;
}

.header__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    transition: transform var(--transition), opacity var(--transition);
}

.header__burger--open .header__burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger--open .header__burger-line:nth-child(2) {
    opacity: 0;
}

.header__burger--open .header__burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition), background var(--transition);
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-cyan);
}

/* --------------------------------------------------------------------------
   Overlay (mobile menu)
   -------------------------------------------------------------------------- */

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.55);
    z-index: 90;
}

.overlay--visible {
    display: block;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    background:
        linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(18, 37, 63, 0.88) 55%, rgba(0, 153, 168, 0.45) 100%),
        linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
    color: var(--color-white);
    padding: 96px 24px 88px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 194, 212, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 194, 212, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.hero__inner {
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero__brand {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 12px;
    line-height: 1.15;
}

.hero__title {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-bottom: 20px;
}

.hero__text {
    max-width: 540px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--primary {
    background: var(--color-cyan);
    color: var(--color-navy);
    border-color: var(--color-cyan);
}

.btn--primary:hover {
    background: transparent;
    color: var(--color-cyan);
    border-color: var(--color-cyan);
}

.btn--secondary {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--secondary:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

/* --------------------------------------------------------------------------
   Section
   -------------------------------------------------------------------------- */

.section {
    padding: 72px 24px;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section__inner {
    max-width: var(--container);
    margin: 0 auto;
}

.section__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-navy);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-cyan);
    display: inline-block;
}

.section__lead {
    max-width: 640px;
    color: var(--color-text-muted);
    margin: 16px 0 36px;
    font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
    max-width: 720px;
}

.about__text {
    margin-bottom: 16px;
    color: var(--color-text);
}

.about__text:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Activity
   -------------------------------------------------------------------------- */

.activity__item {
    padding: 28px 0;
    border-top: 1px solid var(--color-border);
}

.activity__item:last-child {
    border-bottom: 1px solid var(--color-border);
}

.activity__name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.activity__desc {
    color: var(--color-text-muted);
    max-width: 640px;
}

/* --------------------------------------------------------------------------
   Company info
   -------------------------------------------------------------------------- */

.company {
    border: 1px solid var(--color-border);
    background: var(--color-white);
}

.company__row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
}

.company__row:last-child {
    border-bottom: none;
}

.company__term {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.company__def {
    color: var(--color-navy);
    font-weight: 500;
}

.company__link {
    color: var(--color-cyan-dim);
    font-weight: 500;
}

.company__link:hover {
    color: var(--color-navy);
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal {
    padding: 56px 24px 80px;
}

.legal__inner {
    max-width: 800px;
    margin: 0 auto;
}

.legal__header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--color-cyan);
}

.legal__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--color-navy);
    margin-bottom: 8px;
}

.legal__updated {
    font-size: 14px;
    color: var(--color-text-muted);
}

.legal__content h2 {
    font-size: 1.25rem;
    color: var(--color-navy);
    margin: 36px 0 14px;
}

.legal__content h3 {
    font-size: 1.05rem;
    color: var(--color-navy-mid);
    margin: 24px 0 10px;
}

.legal__content h4 {
    font-size: 0.95rem;
    color: var(--color-navy-light);
    margin: 20px 0 8px;
}

.legal__content p {
    margin-bottom: 14px;
    color: var(--color-text);
}

.legal__content ul {
    margin: 0 0 16px 20px;
    list-style: disc;
}

.legal__content ul ul {
    margin-top: 8px;
    list-style: circle;
}

.legal__content li {
    margin-bottom: 6px;
    color: var(--color-text);
}

.legal__content a {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 56px 24px 0;
}

.footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 0.8fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer__logo {
    display: inline-block;
    margin-bottom: 12px;
    background: var(--color-white);
    padding: 6px 10px;
    border-radius: 8px;
}

.footer__logo-img {
    height: 52px;
    width: auto;
}

.footer__activity {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-cyan);
}

.footer__title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__contact-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 4px;
}

.footer__contact-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.footer__email {
    color: var(--color-cyan);
}

.footer__email:hover {
    color: var(--color-white);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer__link:hover {
    color: var(--color-cyan);
}

.footer__bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.footer__copy,
.footer__reg {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer__col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .header__burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 85vw);
        height: 100vh;
        background: var(--color-navy-mid);
        padding: calc(var(--header-h) + 24px) 0 32px;
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 100;
        overflow-y: auto;
        border-left: 1px solid rgba(0, 194, 212, 0.2);
    }

    .nav--open {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav__link {
        padding: 14px 28px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .hero {
        padding: 64px 20px 56px;
    }

    .section {
        padding: 56px 20px;
    }

    .company__row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 16px 18px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer__bottom {
        flex-direction: column;
    }

    body.page--menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .header__logo-img {
        height: 40px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
