/* ==========================================================================
   FSINET — Web index. Design tokens, base layout, header, footer.
   ========================================================================== */

:root {
    /* Colors */
    --color-primary:        #6387e6;
    --color-primary-light:  #9ab2f4;
    --color-bg:             #f3f2f7;
    --color-text:           #1c2232;
    --color-text-dark:      #0a0a0b;
    --color-text-muted:     #595959;
    --color-neutral:        #9a9696;
    --color-white:          #ffffff;
    --grad-from:            #e3ebff;
    --grad-to:              #adc3ff;
    --color-text-muted-2:   #7e7e7e;
    --color-error:          #ff0000;
    --color-error-bg:       #fff2f2;

    --font-ui-tabs:   'Manrope', 'Rubik', sans-serif;
    --font-ui-button: 'Inter', 'Rubik', sans-serif;

    /* Radii */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Type scale */
    --h1: 48px;
    --h2: 40px;
    --h3: 32px;
    --h4: 24px;
    --b2: 16px;
    --b1: 14px;

    /* Layout */
    --pad-x: 128px;
    --gap-section: 64px;

    --font-base: 'Rubik', 'Open Sans', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-base);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main { display: flex; flex-direction: column; flex: 1 0 auto; }

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

a { color: inherit; text-decoration: none; }

b, strong { font-weight: 700; }

/* Layout helpers ---------------------------------------------------------- */

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

.page {
    display: flex;
    flex-direction: column;
    gap: var(--gap-section);
    padding-top: 32px;
    padding-bottom: 64px;
}

/* Rotated glow blob used behind illustrations ----------------------------- */
.glow {
    position: absolute;
    border-radius: 90px;
    background: radial-gradient(circle at 32% 30%, var(--grad-from) 0%, var(--grad-to) 100%);
    transform: rotate(45deg);
    z-index: 0;
    pointer-events: none;
}

/* Typography -------------------------------------------------------------- */
.h1 { font-size: var(--h1); font-weight: 500; line-height: 1.2; }
.h2 { font-size: var(--h2); font-weight: 500; line-height: 1.2; }
.h3 { font-size: var(--h3); font-weight: 500; line-height: 1.2; }
.h4 { font-size: var(--h4); font-weight: 500; line-height: 1.2; }
.text-muted { color: var(--color-text-muted); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: var(--color-white);
    width: 100%;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.site-header__logo { display: block; }
.site-header__logo img { width: 215px; height: 50px; }

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 48px;
}

.site-nav a {
    font-size: var(--b2);
    color: var(--color-text-muted);
    padding: 16px 0;
    display: inline-block;
    white-space: nowrap;
    transition: color .15s ease;
}
.site-nav a:hover { color: var(--color-primary); }
.site-nav a.is-active { color: var(--color-primary); }

/* Hamburger (hidden on desktop) */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: #878282;
    border-radius: 2px;
    margin: 5px 0;
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Footer module (copyright + social)
   ========================================================================== */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 8px 0;
}
.site-footer__copy {
    flex: 1 0 0;
    min-width: 300px;
    font-size: var(--b1);
    line-height: 20px;
    color: #000;
    opacity: .5;
}
.site-footer__social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}
.site-footer__social a { display: block; }
.site-footer__social img { width: 24px; height: 24px; }
