:root {
    --bg-hs: 226 20%;
    --bg-primary: hsl(var(--bg-hs) 10%);
    --bg-secondary: hsl(var(--bg-hs) 15%);

    --fg-hs: 226 10%;
    --text-primary: hsl(var(--fg-hs) 95%);
    --text-secondary: hsl(var(--fg-hs) 70%);
    --text-muted: hsl(var(--fg-hs) 55%);

    --primary-color: #5845ff;

    --separator-color: hsl(var(--fg-hs) 80% / 10%);
    --linear-bg: linear-gradient(135deg, #6a59ff 0%, var(--primary-color) 100%);

    --nav-height: 65px;
    --section-padding: clamp(60px, 54px + 1.9vw, 80px);
    --portrait-padding: clamp(7rem, 7.5rem + 5.5vw, 11rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image: radial-gradient(hsl(var(--bg-hs) 20%) 0.5px, var(--bg-primary) 0.5px);
    background-size: 10px 10px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: "Quicksand", system-ui, -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all .3s ease;
}

a:hover {
    color: var(--text-secondary);
}

ul {
    list-style: none;
}

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

svg {
    fill: currentColor;
    vertical-align: middle;
    width: 1em;
    height: 1em;
}

/* -------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all .3s ease;
    border: none;
    font-size: 1rem;
    color: #fff;
}

.btn-primary {
    background: var(--linear-bg);
}

.btn-primary:hover {
    transform: scale(1.02);
}

/* -------------------------------------------------------- */

.notification {
    padding: 0;
    background: #ccffe3;
    color: var(--bg-primary);
}

.notification .container {
    padding: 15px;
    text-align: center;
}

/* -------------------------------------------------------- */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: hsl(var(--bg-hs) 10% / 90%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100%;
}

.logo h1 {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.logo h1 a {
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

.logo svg {
    width: 150px;
    height: 17px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-secondary);
    border-radius: 2px;
    margin: 5px 0;
    transition: all .3s ease;
}

.mobile-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* -------------------------------------------------------- */

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left .3s ease;
        gap: 60px;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu {
        display: block;
    }
}

/* -------------------------------------------------------- */

section {
    padding: var(--section-padding) 0;
    scroll-margin-top: var(--nav-height);
}

.section-header {
    text-align: center;
}

.section-header:not(:last-child) {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.65rem, 1.1rem + 2vw, 2.5rem);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: var(--linear-bg);
    bottom: -10px;
    left: 0;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}


.section-header p:not(:last-child) {
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .section-header {
        text-align: left;
    }
}

/* -------------------------------------------------------- */

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 1.1rem + 2vw, 2.75rem);
    line-height: 1.3;
    position: relative;
    text-wrap: balance;
}

.hero-content h1 mark {
    background: var(--linear-bg);
    margin: 0 -0.1em;
    padding: 0.05em 0.1em;
    color: var(--bg-primary);
    text-wrap: nowrap;
}

.hero-content p {
    font-size: clamp(1.2rem, 1.1rem + 0.25vw, 1.4rem);
    line-height: 1.4;
    color: var(--text-secondary);
    text-wrap: balance;
}

.hero-image {
    overflow: visible;
}

.hero-image img {
    display: block;
    border-radius: 2vw;
}

@media (min-width: 1024px) {
    .hero .container {
        flex-direction: row;
    }

    .hero-content {
        flex: 1;
        max-width: 540px;
        text-align: left;
    }

    .hero-content p {
        line-height: 1.6;
    }

    .hero-image {
        flex: 1;
    }

    .hero-image img {
        transform: scale(1.04);
        border-radius: 14px;
    }
}

/* -------------------------------------------------------- */

.kpis {
    padding: 0;
    background: linear-gradient(135deg, hsl(var(--bg-hs) 15%) 0%, hsl(var(--bg-hs) 12%) 100%);
}

.kpi-grid {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 40px;
}

.kpi-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
}

.kpi-item:not(:first-child) {
    border-top: 1px solid var(--separator-color);
}

.kpi-item strong {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.kpi-item span {
    color: var(--text-muted);
    text-wrap: balance;
}

@media (min-width: 768px) {
    .kpis {
        padding: 20px 0;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
    }

    .kpi-item:nth-child(2) {
        border: none;
    }
}

@media (min-width: 1024px) {
    .kpis {
        padding: 60px 0;
    }

    .kpi-grid {
        grid-template-columns: repeat(4, 1fr);
        column-gap: 60px;
    }

    .kpi-item {
        border: none !important;
        padding: 0 !important;
        position: relative;
    }

    .kpi-item:not(:first-child)::before {
        position: absolute;
        top: 0;
        left: -30px;
        width: 1px;
        height: 100%;
        content: '';
        display: block;
        background: var(--separator-color);
    }
}

/* -------------------------------------------------------- */

.about .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-portrait {
    display: flex;
    justify-content: center;
}

.about .section-header p {
    max-width: 720px;
}

.about-portrait img {
    width: var(--portrait-padding);
    border-radius: 50%;
    background: #fff;
    outline: 2px solid #fff;
    box-shadow: inset 1px 2px 2px hsl(var(--bg-hs) 5% / 10%);
}

@media (min-width: 768px) {
    .about .container {
        flex-direction: row;
        gap: 60px;
    }

    .about-portrait {
        display: inline-block;
        flex-shrink: 0;
    }
}

/* -------------------------------------------------------- */

.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
}

.service-item {
    text-align: center;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--linear-bg);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 20px auto;
    color: var(--text-primary);
    box-shadow: inset 1px 2px 2px hsl(var(--bg-hs) 5% / 10%);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-content h2 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    margin-bottom: 5px;
}

.service-content p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.1rem);
}

.service-content h2 + p {
    font-size: clamp(1.2rem, 0.9rem + 0.5vw, 1.3rem);
}

.service-content p:not(:last-child) {
    margin-bottom: 25px;
}


@media (min-width: 768px) {
    .services-grid::before {
        content: "";
        position: absolute;
        top: calc(var(--section-padding) * -1);
        bottom: calc(var(--section-padding) * -1);
        left: calc(var(--portrait-padding) / 2);
        width: 1px;
        background: hsl(var(--fg-hs) 80% / 15%);
        transform: translateX(-50%);
    }

    .service-item {
        display: grid;
        grid-template-columns: var(--portrait-padding) minmax(0, 720px);
        gap: 60px;
        text-align: left;
    }

    .service-icon {
        position: relative;
        z-index: 2;
        top: -.5rem;
        outline: 10px solid var(--bg-secondary);
    }
}

/* -------------------------------------------------------- */

.testimonial-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 60px;
    text-align: center;
}

.testimonial-content {
    margin: 0 auto 20px auto;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-secondary);
}

.testimonial-author strong {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* -------------------------------------------------------- */

.contact {
    background: var(--bg-secondary);
}

.contact .section-header {
    text-align: center !important;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form .form-group:nth-child(3) {
    display: none;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
}

.form-group textarea {
    height: 200px;
    resize: vertical;
}

/* -------------------------------------------------------- */

footer {
    background: var(--bg-secondary);
    padding: 0;
}

footer .container {
    border-top: 1px solid var(--separator-color);
    padding: 20px 0;
}

footer p {
    text-align: center;
    font-size: .875rem;
}

footer a {
    color: var(--text-secondary);
}

footer a:hover {
    color: var(--text-primary);
}