:root {
    --black-color: #000000;
    --white-color: #ffffff;
    --outline-color: #30C88F;
    --text-color-1: #9597A5;
    --text-color-2: #2D314D;
    --hero-bg-color: #f2f2f2;
    --main-bg-color: #f4f5f7;
    --footer-bg-color: #2D314D;
    --gradient-primary: linear-gradient(134.71deg, rgb(51, 211, 94) -43.027%, rgb(42, 182, 217) 56.553%);
    --transition: all 0.3s ease;
}

/* ===================== GLOBAL ===================== */
html {
    box-sizing: border-box;
    height: 100%;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

*:focus {
    outline: 2px dashed var(--outline-color);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--text-color-1);
}

h1, h2, h3, h4 {
    margin: 0;
}

p {
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: "Public Sans", "Arial", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    background-color: var(--hero-bg-color);
    color: var(--text-color-1);
    overflow-x: hidden;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

/* ===================== LOADER ===================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--main-bg-color);
    border-top-color: var(--outline-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================== CONTAINER ===================== */
.container {
    width: 100%;
    max-width: 1150px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================== BTN PRIMARY ===================== */
.btn-primary {
    display: inline-block;
    padding: 8px 30px;
    border-radius: 22px;
    background: var(--gradient-primary);
    color: var(--white-color);
    font-size: 14px;
    font-weight: 500;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary:hover {
    color: var(--text-color-2);
    background: var(--white-color);
    border-color: var(--outline-color);
}

/* ===================== HEADER ===================== */
.site-header {
    background-color: var(--white-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}

.site-header-logo-link img {
    transition: var(--transition);
}

.site-header-logo-link img:hover {
    opacity: 0.8;
}

.site-nav-list {
    display: flex;
    align-items: center;
}

.site-nav-link {
    font-size: 14px;
    line-height: 1;
    letter-spacing: -0.11px;
    padding-bottom: 20px;
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.site-nav-link:hover,
.site-nav-link.active {
    color: var(--footer-bg-color);
    border-color: var(--outline-color);
}

.site-nav-item:not(:last-child) {
    margin-right: 30px;
}

.site-header-button {
    padding: 6px 30px;
    border: 2px solid transparent;
    color: var(--white-color);
    font-size: 14px;
    font-weight: 500;
    border-radius: 22px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.site-header-button:hover {
    color: var(--text-color-2);
    background: var(--white-color);
    border-color: var(--outline-color);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color-2);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
}

/* ===================== HERO ===================== */
.hero-section {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 660px;
}

.hero-section-container {
    padding-top: 170px;
    padding-bottom: 170px;
}

.hero-img {
    position: absolute;
    right: -90px;
    top: -120px;
    z-index: 1;
    width: 728px;
    height: auto;
}

.hero-big-img {
    position: absolute;
    z-index: 0;
    top: -260px;
    right: -390px;
    width: 1271px;
    height: auto;
}

.hero-section-info {
    position: relative;
    z-index: 2;
}

.hero-section-info h1 {
    color: var(--footer-bg-color);
    font-size: 56px;
    font-weight: 100;
    line-height: 64px;
    letter-spacing: -1px;
    max-width: 400px;
    margin-bottom: 24px;
}

.hero-section-info p {
    letter-spacing: -0.28px;
    max-width: 450px;
    margin-bottom: 36px;
}

/* ===================== ABOUT SECTION ===================== */
.about-site-section-wrapper {
    padding-top: 96px;
    padding-bottom: 94px;
}

.about-site-info-wrapper {
    margin-bottom: 72px;
}

.about-site-info-wrapper h2 {
    color: var(--footer-bg-color);
    font-size: 40px;
    font-weight: 100;
    line-height: 64px;
    letter-spacing: -0.71px;
    margin-bottom: 16px;
}

.about-site-info-wrapper p {
    letter-spacing: -0.28px;
    max-width: 550px;
}

.about-site-cards-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.about-site-card-wrapper {
    flex: 1;
}

.about-site-card-wrapper img {
    margin-bottom: 40px;
}

.about-site-card-wrapper h3 {
    color: var(--footer-bg-color);
    font-size: 24px;
    font-weight: 300;
    line-height: 28px;
    letter-spacing: -0.43px;
    margin-bottom: 26px;
}

.about-site-card-wrapper p {
    color: var(--text-color-1);
    font-size: 16px;
    line-height: 26px;
    letter-spacing: -0.25px;
}

/* ===================== ARTICLES SECTION ===================== */
.articles-section {
    background-color: var(--main-bg-color);
    padding-top: 80px;
    padding-bottom: 80px;
}

.articles-section-container h2 {
    color: var(--footer-bg-color);
    font-size: 40px;
    font-weight: 300;
    line-height: 64px;
    letter-spacing: -0.71px;
    margin-bottom: 40px;
}

.article-cards-wrapper {
    display: flex;
    align-items: stretch;
    gap: 30px;
}

.article-card-wrapper {
    border-radius: 5px;
    background-color: var(--white-color);
    flex: 1;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.article-card-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.article-card-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-content {
    padding: 24px;
}

.auth-name {
    font-size: 10px;
    line-height: 18px;
    letter-spacing: -0.16px;
    margin-bottom: 8px;
}

.article-card-wrapper h3 {
    color: var(--footer-bg-color);
    font-size: 16px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: -0.29px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.article-card-wrapper:hover h3 {
    color: var(--outline-color);
}

.article-info {
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.2px;
}

/* ===================== FOOTER ===================== */
.site-footer {
    background-color: var(--footer-bg-color);
    padding-top: 50px;
    padding-bottom: 50px;
    margin-top: auto;
}

.site-footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-footer-logo-link img {
    margin-bottom: 55px;
    transition: var(--transition);
}

.site-footer-logo-link img:hover {
    opacity: 0.8;
}

.socials-list {
    display: flex;
    align-items: center;
}

.social-item:not(:last-child) {
    margin-right: 13px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.site-footer-nav {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.site-footer-nav-list {
    min-width: 140px;
}

.site-footer-nav-item:not(:last-child) {
    margin-bottom: 8px;
}

.site-footer-nav-item a {
    color: var(--white-color);
    font-size: 15px;
    line-height: 26px;
    letter-spacing: -0.23px;
    transition: var(--transition);
}

.site-footer-nav-item a:hover {
    color: var(--outline-color);
}

.site-footer-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.site-footer-button-wrapper .btn-primary {
    margin-bottom: 24px;
}

.site-footer-button-wrapper p {
    opacity: 0.5;
    color: var(--white-color);
    font-size: 15px;
    line-height: 26px;
    letter-spacing: 0.20px;
}

/* ===================== RESPONSIVE — TABLET (max-width: 1024px) ===================== */
@media (max-width: 1024px) {
    .hero-section-container {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .hero-section-info h1 {
        font-size: 44px;
        line-height: 52px;
    }

    .about-site-cards-wrapper {
        flex-wrap: wrap;
        gap: 24px;
    }

    .about-site-card-wrapper {
        flex: 1 1 calc(50% - 12px);
    }

    .article-cards-wrapper {
        flex-wrap: wrap;
        gap: 24px;
    }

    .article-card-wrapper {
        flex: 1 1 calc(50% - 12px);
    }

    .site-footer-container {
        flex-wrap: wrap;
        gap: 40px;
        justify-content: center;
        text-align: center;
    }

    .site-footer-button-wrapper {
        align-items: center;
        width: 100%;
    }

    .socials-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .site-footer-nav {
        gap: 40px;
    }
}

/* ===================== RESPONSIVE — MOBILE (max-width: 768px) ===================== */
@media (max-width: 768px) {
    /* Hamburger visible */
    .hamburger {
        display: flex;
    }

    .site-header-button {
        display: none;
    }

    /* Mobile overlay */
    .mobile-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, var(--text-color-2), transparent);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 90;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile nav */
    .site-nav {
        position: fixed;
        top: 72px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 400px;
        background-color: var(--white-color);
        border-radius: 8px;
        padding: 24px;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 105;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }

    .site-nav.active {
        opacity: 1;
        visibility: visible;
    }

    .site-nav-list {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .site-nav-item:not(:last-child) {
        margin-right: 0;
    }

    .site-nav-link {
        font-size: 16px;
        color: var(--text-color-2);
        padding-bottom: 4px;
        border-bottom: none;
    }

    .site-nav-link:hover,
    .site-nav-link.active {
        border-bottom: none;
        color: var(--outline-color);
    }

    /* Hero mobile */
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        min-height: auto;
    }

    .hero-section-container {
        padding-top: 32px;
        padding-bottom: 40px;
    }

    .hero-img {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        z-index: 1;
    }

    .hero-big-img {
        position: absolute;
        top: -200px;
        left: -100px;
        right: auto;
        width: 150%;
    }

    .hero-section-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-section-info h1 {
        font-size: 32px;
        line-height: 40px;
        max-width: 100%;
    }

    .hero-section-info p {
        max-width: 100%;
        font-size: 16px;
        line-height: 24px;
    }

    /* About mobile */
    .about-site-section-wrapper {
        padding-top: 60px;
        padding-bottom: 60px;
        text-align: center;
    }

    .about-site-info-wrapper {
        margin-bottom: 48px;
    }

    .about-site-info-wrapper h2 {
        font-size: 32px;
        line-height: 40px;
    }

    .about-site-info-wrapper p {
        max-width: 100%;
    }

    .about-site-cards-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .about-site-card-wrapper {
        max-width: 400px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-site-card-wrapper img {
        margin-bottom: 24px;
    }

    .about-site-card-wrapper h3 {
        margin-bottom: 16px;
    }

    .about-site-card-wrapper p {
        text-align: center;
    }

    /* Articles mobile */
    .articles-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .articles-section-container h2 {
        font-size: 32px;
        line-height: 40px;
        text-align: center;
        margin-bottom: 28px;
    }

    .article-cards-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .article-card-wrapper {
        max-width: 400px;
        width: 100%;
    }

    /* Footer mobile */
    .site-footer {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .site-footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .socials-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .site-footer-logo-link img {
        margin-bottom: 32px;
    }

    .socials-list {
        gap: 8px;
    }

    .site-footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .site-footer-nav-list {
        min-width: auto;
        text-align: center;
    }

    .site-footer-button-wrapper {
        align-items: center;
        width: 100%;
    }
}

/* ===================== RESPONSIVE — SMALL MOBILE (max-width: 480px) ===================== */
@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-section-info h1 {
        font-size: 28px;
        line-height: 36px;
    }

    .hero-section-info p {
        font-size: 14px;
        line-height: 22px;
    }

    .about-site-info-wrapper h2,
    .articles-section-container h2 {
        font-size: 26px;
        line-height: 34px;
    }
}

/* ===================== BODY NO SCROLL (when mobile menu is open) ===================== */
body.no-scroll {
    overflow: hidden;
}
