/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ===== BODY ===== */
body {
    background: #ffffff;
    color: #1c2b3a;
}

/* ===== HEADER (FIXED) ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1f2d3d;
    padding: 18px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* ===== CONTAINER ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HEADER CONTENT ===== */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
}

/* ===== NAVIGATION ===== */
.nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 25px;
    font-size: 15px;
}

.nav a:hover {
    text-decoration: underline;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 140px 0 80px; /* відступ зверху через fixed header */
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ===== TEXT ===== */
.hero-text {
    max-width: 520px;
}

.hero-text h1 {
    font-size: 44px;
    color: #760387;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ===== BUTTON ===== */
.btn {
    background: #8d02a1;
    color: #ffffff;
    border: none;
    padding: 14px 26px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #3a5f8a;
}

/* ===== IMAGE ===== */
.hero-image img {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        display: none;
    }

    .hero-image img {
        width: 300px;
        height: 300px;
    }
}
/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.how-inner {
    max-width: 800px;
    text-align: center;
}

.how-it-works h2 {
    font-size: 36px;
    color: #760387;
    margin-bottom: 30px;
}

.how-it-works p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #1c2b3a;
}

/* декоративні фігури */
.how-it-works::after,
.how-it-works::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: #aeb4e4;
    opacity: 0.25;
    border-radius: 40% 60% 55% 45%;
    z-index: 0;
}

.how-it-works::before {
    top: 40px;
    right: 40px;
}

.how-it-works::after {
    bottom: 40px;
    left: 40px;
}

/* щоб текст був над фігурами */
.how-inner {
    position: relative;
    z-index: 1;
}
/* ===== ADVANTAGES ===== */
.advantages {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.advantages-title {
    text-align: center;
    font-size: 36px;
    color: #760387;
    margin-bottom: 60px;
}

/* grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* card */
.adv-card {
    background: #f5c0fc;
    border-radius: 8px;
    padding: 35px 25px;
    text-align: center;
    color: #0b3a8f;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.adv-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.adv-card p {
    font-size: 16px;
    line-height: 1.6;
}

/* decorative shapes */
.advantages::before,
.advantages::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background: #8b7bdb;
    opacity: 0.85;
    border-radius: 40% 60% 55% 45%;
    z-index: 0;
}

.advantages::before {
    bottom: 40px;
    left: -60px;
}

.advantages::after {
    top: 40px;
    right: -60px;
}

/* щоб контент був поверх фігур */
.advantages .container {
    position: relative;
    z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE FIX ===== */

/* планшети */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-image img {
        width: 340px;
        height: 340px;
    }
}

/* телефони */
@media (max-width: 768px) {

    /* header */
    .header-inner {
        flex-direction: column;
        gap: 12px;
    }

    .nav {
        display: none;
    }

    /* hero */
    .hero {
        padding: 120px 0 60px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-image img {
        width: 260px;
        height: 260px;
    }

    /* how it works */
    .how-it-works h2 {
        font-size: 28px;
    }

    /* advantages */
    .advantages-title {
        font-size: 28px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* дуже маленькі екрани */
@media (max-width: 480px) {

    .hero-text h1 {
        font-size: 26px;
    }

    .btn {
        width: 100%;
        padding: 14px 0;
    }
}
/* ===== TEAM SECTION ===== */
.team {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.team-title {
    text-align: center;
    font-size: 36px;
    color: #0b3a8f;
    margin-bottom: 60px;
}

/* grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* card */
.team-card {
    background: #f2f5f9;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.team-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #c3d0e0;
    margin: 0 auto 20px;
}

.team-card h3 {
    font-size: 18px;
    color: #0b3a8f;
    margin-bottom: 8px;
}

.team-card p {
    font-size: 15px;
    color: #4a5d73;
}

/* ===== PURPLE ELLIPSES ===== */
.team::before,
.team::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background: #401268;
    opacity: 0.8;
    border-radius: 50%;
    z-index: 0;
}

/* зліва вгорі */
.team::before {
    top: -80px;
    left: -80px;
}

/* справа посередині */
.team::after {
    top: 50%;
    right: -120px;
    transform: translateY(-50%);
}

/* контент поверх еліпсів */
.team .container {
    position: relative;
    z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-title {
        font-size: 28px;
    }
}

/* ===== TEAM SECTION ===== */
.team {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.team-title {
    text-align: center;
    font-size: 36px;
    color: #0b3a8f;
    margin-bottom: 60px;
}

/* grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* card */
.team-card {
    background: #f2f5f9;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 0.8s ease both;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* photo */
.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    margin: 0 auto 20px;
}

/* text */
.team-card h3 {
    font-size: 18px;
    color: #0b3a8f;
    margin-bottom: 6px;
}

.team-card p {
    font-size: 15px;
    color: #4a5d73;
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PURPLE ELLIPSES ===== */
.team::before,
.team::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    background: #a855f7;
    opacity: 0.8;
    border-radius: 50%;
    z-index: 0;
}

/* зліва вгорі */
.team::before {
    top: -100px;
    left: -100px;
}

/* справа посередині */
.team::after {
    top: 50%;
    right: -140px;
    transform: translateY(-50%);
}

/* контент поверх еліпсів */
.team .container {
    position: relative;
    z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-title {
        font-size: 28px;
    }
}

/* ===== QR SECTION ===== */
.qr-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.qr-inner {
    display: flex;
    justify-content: flex-start;
}

/* grid */
.qr-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

/* card */
.qr-card {
    text-align: center;
}

.qr-title {
    font-size: 18px;
    font-weight: 600;
    color: #8b6fdc;
    margin-bottom: 12px;
}

/* qr image */
.qr-card img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
}

/* ===== ATOM DECOR (right) ===== */
.qr-section::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -200px;
    width: 650px;
    height: 650px;
    background-image: url("atom.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.45;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .qr-grid {
        justify-content: center;
    }
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    margin: 0;
    overflow-x: hidden;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

h1 {
    font-size: clamp(28px, 5vw, 56px);
}

h2 {
    font-size: clamp(22px, 4vw, 40px);
}

p {
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.6;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
}

nav {
    display: flex;
    gap: 24px;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

    .hero,
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 30px 0;
    }

    button {
        width: 100%;
    }
}

.decor {
    position: absolute;
    z-index: -1;
}

@media (max-width: 768px) {
    .decor {
        opacity: 0.3;
        transform: scale(0.7);
    }
}
