* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {

    --color-primary: #1D89E4;
    --color-hover: #48A1EA;
    --color-dark: #222222;
    --color-light: #f2f2f2;

    /*  */
    --primary-shade-40: #37135b;
    --primary-shade-80: #12061e;

    /* ========= BODY ========= */
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;

    /* ========= HEADINGS ========= */
    --h1: clamp(1.375rem, 2.8vw, 2rem);
    --h2: calc(var(--h1) * 0.75);
    --h3: calc(var(--h1) * 0.625);

    /* ========= LINE HEIGHT ========= */
    --lh-body: 1.6;
    --lh-heading: 1.25;

    /* === Space=== */
    --space-section: clamp(3rem, 6vw, 6rem);

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;

    /*  */
    --radius-lg: 1.25rem;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-v31-latin-ext-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-v31-latin-ext-regular.woff2') format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
}

/* Hero */
.hero {
    padding-block: var(--space-section);
    min-height: 600px;
    display: flex;
    background-image: radial-gradient(var(--color-primary), var(--primary-shade-80));
}

.hero-container {
    max-width: 1140px;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding-inline: var(--space-4);
}

.hero-content {
    flex: 1 1 400px;
}

.hero-content h1 {
    font-family: 'Montserrat';
    margin-bottom: 16px;
    color: var(--color-light);
    text-align: left;
}

.hero-content span {
    color: var(--color-primary);
}

.hero-content p {
    margin-bottom: 32px;
    font-size: 18px;
    color: var(--color-light);
    letter-spacing: 1px;
    line-height: 1.6;
    text-align: left;
}

.hero-media {
    flex: 0.5 1 400px;
    height: auto;
    object-fit: cover;
}

.hero-media img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
}

.hero-actions {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 24px;
}

.btn {
    display: inline-block;
    padding: 16px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.btn-primary {
    border: 2px solid var(--color-primary);
    color: var(--color-light);
    transition: all 0.3s ease-in-out;
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-light);

}

.btn-secondary {
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    color: var(--color-light);
    transition: all 0.3s ease-in-out;
}

.btn-secondary:hover {
    border: 2px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-light);
}


/* Features */
.section-about {
    padding-block: var(--space-section);
    background-color: var(--color-light);
    padding-inline: var(--space-4);
}

.container {
    max-width: 1140px;
    margin-inline: auto;
}


.section-header {
    margin-bottom: clamp(2rem, 5vw, 4rem);
    line-height: var(--lh-body);
    color: var(--text-primary);
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-dark);
    margin-bottom: var(--space-8);
}

.section-header p {
    margin-bottom: var(--space-4);
    opacity: 0.85;
    font-size: 18px;
    color: var(--color-dark);
    letter-spacing: 1px;
    line-height: 1.6;
    text-align: left;
}

/* Boxy */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;

}

.feature {
    flex: 1 1 350px;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    background-color: #fff;
}

.feature-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.feature-title {
    margin-bottom: .5rem;
    color: var(--color-dark);
    text-align: center;
}

.feature-text {
    font-size: 1rem;
    line-height: var(--lh-body);
}

/*  Dlaczego warto nas wybrać */
.why {
    padding-block: var(--space-section);
    background-color: var(--color-dark);
    padding-inline: 16px;

}

.why-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    color: #fff;
}

.why-content {}

.why h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-8);
    text-align: center;
    color: var(--color-light);
}

.why ul {
    list-style-type: none;
}

.why li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.why li::before {
    content: '';
    background-image: url("../svg/check_24dp_1D89E4_FILL0_wght400_GRAD0_opsz24.svg");
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;

}

.why-image {
    width: 400px;
    height: auto;
    position: relative;
}

.why-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
            rgba(0, 0, 0, 0) 30%,
            rgba(0, 0, 0, 0.6) 100%);

}

.why-image img {
    width: 100%;
    height: 100%;
}

/* Services */
.services {
    padding-block: var(--space-section);
    padding-inline: 16px;
    background-color: var(--color-light);
    color: var(--color-dark);
}

.services .container {
    max-width: 1140px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    max-width: 1140px;
    margin: 0 auto 64px;
}

.services-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-family: 'Montserrat';
    margin-bottom: var(--space-8);
}

.services-header p {
    opacity: 0.85;
    font-size: 18px;
    color: var(--color-dark);
    letter-spacing: 1px;
    line-height: 1.6;
    text-align: left;
}

.services-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.service-box {
    flex: 1 1 300px;
    background: rgba(255, 255, 255, 0.05);
    background-color: #fff;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.service-box:hover {
    transform: translateY(-6px);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-box h3 {
    margin-bottom: 12px;
    font-family: 'Montserrat';
}

.service-box p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: left;
}

.btn-three {
    color: var(--color-light);
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    transition: transparent 0.3s, background 0.3s;
}

.btn-three:hover {
    background-color: transparent;
    color: var(--color-dark);

}

/* Faq */
.faq {
    padding-block: var(--space-section);
    padding-inline: 16px;
}

.faq-container {
    max-width: 1140px;
    margin: 0 auto;
    color: var(--color-light);
}

.faq-title {
    margin-inline: auto;
    margin-bottom: 2rem;
    color: var(--color-dark);
    text-align: center;
}

.faq-title h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-family: 'Montserrat';
    margin-bottom: var(--space-8);
}

details {
    background-color: var(--color-dark);
    padding: 0.5rem 1rem;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
}

details>p {
    padding-block: 1rem;
}

/* footer */
.footer {
    background-color: var(--color-dark);
    padding-block: 64px;
    color: var(--color-light);
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;

}

.footer-container p {
    text-align: center;
}

.footer-container a {
    text-decoration: none;
    color: var(--color-light);
}

.back-to-top {
    background-color: var(--color-primary);
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 40px;
    right: 50px;
}