* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #202020;
    background: #f4f6ff;
}

a {
    text-decoration: none;
    color: inherit;
}

:root {
    --blue: #24459a;
    --blue-light: #315bd4;
    --blue-dark: #19367e;
    --coral: #ff5963;
    --green: #2fbd7b;
    --white: #ffffff;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
}


/* HEADER */

.header {
    height: 58px;
    background: var(--blue);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.logo span {
    color: var(--coral);
}

.nav {
    display: flex;
    gap: 30px;
    font-size: 13px;
    font-weight: 700;
}

.nav a {
    transition: .2s;
}

.nav a:hover {
    color: var(--coral);
}

.menu-button {
    display: none;
    background: transparent;
    border: 0;
    color: white;
    font-size: 28px;
    cursor: pointer;
}


/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    color: white;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255,255,255,.18),
            transparent 30%
        ),
        linear-gradient(
            120deg,
            #315ad1,
            #2448ae 55%,
            #4178e5
        );
}

.hero::before {
    content: "";
    position: absolute;

    width: 1200px;
    height: 500px;

    border-radius: 50%;

    border-top: 1px solid
        rgba(255,255,255,.15);

    transform: rotate(-12deg);

    left: -250px;
    bottom: -220px;
}

.hero-inner {
    position: relative;
    z-index: 2;

    min-height: 465px;

    display: grid;

    grid-template-columns:
        1fr 310px;

    align-items: center;

    gap: 70px;
}

.hero-content {
    padding: 40px 0;
}

.hero-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero h1 {
    margin: 0 0 18px;

    font-size:
        clamp(36px, 4vw, 50px);

    line-height: 1.08;
}

.hero h1 span {
    color: #fff;
}

.hero-text {
    max-width: 650px;

    font-size: 19px;
    line-height: 1.5;

    margin-bottom: 23px;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: grid;
    gap: 10px;

    font-size: 17px;
}

.hero-list li::before {
    content: "✓";

    color: #57e094;

    font-weight: 900;

    margin-right: 10px;
}


/* CALCULATOR */

.calculator {
    background: white;
    color: #202020;

    border-radius: 18px;

    padding: 23px;

    box-shadow:
        0 15px 35px
        rgba(0,0,0,.2);
}

.calculator h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.calculator-sub {
    color: #777;
    font-size: 12px;
    margin-bottom: 20px;
}

.field {
    margin-bottom: 15px;
}

.field label {
    display: block;

    font-size: 12px;
    font-weight: 700;

    margin-bottom: 7px;
}

.field input,
.field select {
    width: 100%;
    height: 40px;

    border: 1px solid #ddd;
    border-radius: 8px;

    padding: 0 11px;

    font-size: 14px;

    background: #fafafa;

    outline: none;
}

.field input:focus,
.field select:focus {
    border-color: var(--blue-light);
}

.calculator-result {
    background: #eef3ff;

    border-radius: 10px;

    padding: 14px;

    margin-top: 15px;
}

.result-label {
    color: #666;
    font-size: 11px;
}

.result-value {
    color: var(--blue-light);

    font-size: 26px;
    font-weight: 800;

    margin-top: 3px;
}

.result-rate {
    color: #777;
    font-size: 11px;
}

.calc-button {
    display: block;

    width: 100%;

    background: #1599ef;
    color: white;

    text-align: center;

    border-radius: 9px;

    padding: 13px;

    margin-top: 12px;

    font-size: 13px;
    font-weight: 800;
}


/* ŠTATISTIKY */

.stats {
    background: white;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,.06);
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);
}

.stat {
    text-align: center;

    padding: 24px 15px;

    border-right:
        1px solid #e8e8e8;
}

.stat:last-child {
    border-right: 0;
}

.stat-number {
    display: block;

    color: var(--blue);

    font-size: 26px;
    font-weight: 800;
}

.stat-text {
    display: block;

    color: #666;

    font-size: 12px;

    margin-top: 5px;
}


/* SEKCIE */

.section {
    padding: 75px 0;
}

.section-light {
    background:
        radial-gradient(
            ellipse at top left,
            rgba(90,120,255,.10),
            transparent 45%
        ),
        #f4f6ff;
}

.section-white {
    background: white;
}

.section-title {
    text-align: center;

    color: var(--blue);

    font-size: 34px;

    margin:
        0 0 12px;

    font-weight: 800;
}

.section-subtitle {
    text-align: center;

    color: #666;

    max-width: 700px;

    margin:
        0 auto 42px;

    font-size: 16px;

    line-height: 1.6;
}


/* INVESTIČNÉ KARTY */

.investment-cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.investment-card {
    position: relative;

    background: white;

    border-radius: 18px;

    padding: 30px;

    text-align: center;

    box-shadow:
        0 8px 25px
        rgba(0,0,0,.08);

    transition: .25s;
}

.investment-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 35px
        rgba(0,0,0,.12);
}

.investment-card.featured {
    border:
        3px solid var(--blue-light);
}

.card-badge {
    position: absolute;

    top: -13px;
    left: 50%;

    transform:
        translateX(-50%);

    background:
        var(--blue-light);

    color: white;

    padding:
        6px 15px;

    border-radius: 20px;

    font-size: 10px;

    font-weight: 800;
}

.card-years {
    color: #777;

    font-size: 13px;

    font-weight: 600;
}

.investment-card h3 {
    color: var(--blue);

    font-size: 24px;

    margin: 12px 0;
}

.card-yield {
    color: var(--coral);

    font-size: 38px;

    font-weight: 800;

    margin: 12px 0 3px;
}

.card-description {
    color: #666;

    font-size: 14px;

    line-height: 1.55;

    min-height: 67px;
}

.card-btn {
    display: block;

    background:
        var(--blue-light);

    color: white;

    border-radius: 9px;

    padding: 13px;

    margin-top: 20px;

    font-size: 13px;

    font-weight: 800;
}


/* AKO TO FUNGUJE */

.how-section {
    background:
        radial-gradient(
            ellipse at center,
            rgba(100,130,255,.08),
            transparent 60%
        ),
        #f4f6ff;
}

.steps {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.step {
    background: white;

    border-radius: 15px;

    padding: 28px 20px;

    text-align: center;

    box-shadow:
        0 7px 22px
        rgba(0,0,0,.08);
}

.step-icon {
    width: 65px;
    height: 65px;

    border-radius: 50%;

    background: #edf2ff;

    display: flex;

    align-items: center;
    justify-content: center;

    margin:
        0 auto 17px;

    font-size: 30px;
}

.step-number {
    color: var(--blue);

    font-weight: 800;

    font-size: 13px;

    margin-bottom: 7px;
}

.step h3 {
    font-size: 16px;

    margin:
        0 0 10px;
}

.step p {
    color: #666;

    font-size: 13px;

    line-height: 1.5;

    margin: 0;
}


/* TABUĽKA */

.rates {
    max-width: 900px;
    margin: auto;
}

.rate-table {
    background: white;

    border-radius: 17px;

    overflow: hidden;

    box-shadow:
        0 8px 25px
        rgba(0,0,0,.08);
}

.rate-header,
.rate-row {
    display: grid;

    grid-template-columns:
        1fr 180px;

    align-items: center;
}

.rate-header {
    background: var(--blue);

    color: white;

    padding: 18px 25px;

    font-size: 14px;

    font-weight: 800;
}

.rate-row {
    padding: 18px 25px;

    border-bottom:
        1px solid #eee;

    font-size: 15px;
}

.rate-row:last-child {
    border-bottom: 0;
}

.rate-row strong {
    color: var(--coral);

    text-align: center;

    font-size: 22px;
}

.table-note {
    color: #777;

    font-size: 12px;

    margin-top: 14px;

    text-align: center;
}


/* DÔVERA */

.trust {
    background: white;
}

.trust-grid {
    display: grid;

    grid-template-columns:
        .8fr 1.2fr;

    gap: 70px;

    align-items: center;
}

.trust-big {
    color: var(--blue);

    font-size: 110px;

    font-weight: 900;

    line-height: .8;
}

.trust-big span {
    display: block;

    color: #555;

    font-size: 18px;

    margin-top: 25px;
}

.trust-copy h2 {
    color: var(--blue);

    font-size: 35px;

    margin: 0 0 18px;
}

.trust-copy p {
    color: #666;

    font-size: 16px;

    line-height: 1.65;
}


/* SECURITY */

.security {
    background: var(--blue);

    color: white;
}

.security .section-title {
    color: white;
}

.security .section-subtitle {
    color:
        rgba(255,255,255,.82);
}

.security-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 22px;
}

.security-card {
    background:
        rgba(255,255,255,.10);

    border:
        1px solid
        rgba(255,255,255,.20);

    border-radius: 17px;

    padding: 30px;
}

.security-card h3 {
    margin:
        0 0 14px;

    font-size: 23px;
}

.security-card p {
    margin: 0;

    font-size: 15px;

    line-height: 1.65;

    color:
        rgba(255,255,255,.87);
}


/* RECENZIE */

.reviews {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;

    max-width: 900px;

    margin: auto;
}

.review {
    background: white;

    border-radius: 20px;

    padding: 30px;

    text-align: center;

    box-shadow:
        0 8px 25px
        rgba(0,0,0,.09);
}

.stars {
    color: #ffad00;

    font-size: 23px;

    letter-spacing: 3px;

    margin-bottom: 20px;
}

.review p {
    font-size: 15px;

    line-height: 1.6;

    margin:
        0 0 20px;
}

.review-name {
    font-weight: 800;
}

.review-city {
    color: #777;

    font-size: 12px;

    margin-top: 5px;
}


/* CTA */

.cta {
    background: var(--blue);

    color: white;

    padding: 60px 0;
}

.cta-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.cta h2 {
    margin:
        0 0 10px;

    font-size: 34px;
}

.cta p {
    margin: 0;

    color:
        rgba(255,255,255,.82);
}

.cta-button {
    background: var(--coral);

    color: white;

    padding:
        17px 28px;

    border-radius: 10px;

    font-weight: 800;

    white-space: nowrap;
}


/* FOOTER */

.footer {
    background: var(--blue-dark);

    color: white;

    padding: 25px 0;
}

.footer-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;
}

.footer-logo {
    font-size: 18px;

    font-weight: 900;
}

.footer-logo span {
    color: var(--coral);
}

.footer-text {
    color:
        rgba(255,255,255,.7);

    font-size: 12px;
}


/* TABLET */

@media (max-width: 850px) {

    .menu-button {
        display: block;
    }

    .nav {
        display: none;

        position: absolute;

        top: 58px;
        left: 0;
        right: 0;

        background:
            var(--blue);

        padding: 15px 20px;

        flex-direction: column;

        gap: 0;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 13px 5px;

        border-bottom:
            1px solid
            rgba(255,255,255,.1);
    }

    .hero-inner {
        grid-template-columns: 1fr;

        gap: 25px;

        padding:
            45px 0;
    }

    .calculator {
        max-width: 430px;

        width: 100%;

        margin: auto;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(3),
    .stat:nth-child(4) {
        border-top:
            1px solid #e8e8e8;
    }

    .investment-cards {
        grid-template-columns: 1fr;

        max-width: 500px;

        margin: auto;
    }

    .steps {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .reviews {
        grid-template-columns: 1fr;

        max-width: 500px;
    }

    .cta-inner {
        flex-direction: column;

        align-items: flex-start;
    }
}


/* MOBIL */

@media (max-width: 520px) {

    .container {
        width:
            calc(100% - 28px);
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-text {
        font-size: 17px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 29px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .stat-number {
        font-size: 21px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .rate-header,
    .rate-row {
        grid-template-columns:
            1fr 90px;
    }

    .rate-header,
    .rate-row {
        padding-left: 15px;
        padding-right: 15px;
    }

    .rate-row {
        font-size: 13px;
    }

    .rate-row strong {
        font-size: 19px;
    }

    .trust-big {
        font-size: 80px;
    }

    .trust-copy h2 {
        font-size: 29px;
    }

    .cta h2 {
        font-size: 29px;
    }

    .cta-button {
        width: 100%;

        text-align: center;
    }

    .footer-inner {
        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }
}