@import url('https://fonts.googleapis.com/css2?family=Exo:ital,wght@0,100..900;1,100..900&display=swap');

#teka-main {
    box-sizing: border-box;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    font-family: 'Exo', sans-serif;
    color: #4A4A49;
    background-color: #ffffff;
    overflow: hidden;
}

@media (max-width: 960px) {
    #teka-main {
        max-width: 680px;
    }
}

@media (max-width: 680px) {
    #teka-main {
        max-width: 320px;
    }
}

#teka-main * {
    box-sizing: border-box;
}

#teka-main .lazy {
    display: block;
    width: 100%;
    height: auto;
}

/* Header */
#teka-main .logo-bar {
    background-color: #c8102e;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 95%;
    margin: auto;
}

#teka-main .logo-bar--logo {
    max-width: 400px;
    width: 60%;
    height: auto;
}

#teka-main .header-hero {
    width: 95%;
    margin: auto;
    display: block;
}

/* Titles */
#teka-main .main-title {
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    color: #4A4A49;
    margin: 64px 0;
    letter-spacing: 0.5px;
}

#teka-main .section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: #4A4A49;
    margin: 48px 16px 28px;
    letter-spacing: 0.5px;
}

/* Top Icon Grid */
#teka-main .top-icon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: 95%;
    margin: auto;
    margin-bottom: 48px;
}

#teka-main .top-icon-card {
    width: calc(25% - 12px);
    padding: 32px;
    text-align: center;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#teka-main .top-icon-card::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    background-color: #fff;
    width: 100%;
    height: 90%;
    z-index: 1;
    transition: height 0.3s ease-in-out;
}

#teka-main .top-icon-card::after {
    border: 2px solid #c8102e;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 14px;
}

#teka-main .top-icon-card:hover::before {
    height: 0
}

@media (max-width: 680px) {
    #teka-main .top-icon-card {
        width: calc(50% - 8px);
    }
}

#teka-main .top-icon-card--img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 48px;
    z-index: 2;
}

#teka-main .top-icon-card--title {
    font-size: 13px;
    font-weight: 700;
    color: #4A4A49;
    margin: 0;
    line-height: 1.3;
    z-index: 2;
}

/* Main Overview Section */
#teka-main .overview-wrapper {
    width: 95%;
    margin: auto;
    margin-bottom: 48px;
}

#teka-main .overview-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 64px;
}

#teka-main .overview-col {
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

#teka-main .overview-col:first-child {
    text-align: right;
}

#teka-main .overview-col.col-hero {
    width: 30%;
    text-align: center;
}

@media (max-width: 680px) {
    #teka-main .overview-col {
        order: 2;
    }

    #teka-main .overview-col.col-hero {
        order: 1;
    }

    #teka-main .overview-col,
    #teka-main .overview-col.col-hero {
        width: 100%;
    }

    #teka-main .overview-col:first-child {
        text-align: left;
    }
}

#teka-main .overview-card--title {
    font-size: 18px;
    font-weight: 700;
    color: #4A4A49;
    margin-bottom: 16px;
    border-bottom: 1px solid #c8102e;
    padding-bottom: 16px;
}

#teka-main .overview-card--desc {
    font-size: 13px;
    line-height: 1.5;
    color: #333333;
    margin: 0;
}

#teka-main .overview-hero-img {
    max-width: 256px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Thumbs Strip */
#teka-main .thumbs-strip {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

#teka-main .thumbs-strip--img {
    max-width: 208px;
    width: 23.5%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 680px) {
    #teka-main .thumbs-strip {
        gap: 0;
    }

    #teka-main .thumbs-strip--img {
        width: 50%;
    }
}

/* Feature Blocks */
#teka-main .features-wrapper {
    width: 95%;
    margin: auto;
    margin-bottom: 48px;
}

#teka-main .feature-full {
    text-align: center;
    margin-bottom: 48px;
}

#teka-main .feature-full--ico {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
}

#teka-main .feature-full--title {
    font-size: 16px;
    font-weight: 700;
    color: #4A4A49;
    margin-bottom: 12px;
}

#teka-main .feature-full--desc {
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    max-width: 600px;
    margin: 0 auto 20px;
}

#teka-main .feature-full--img {
    width: 100%;
}

#teka-main .feature-row {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
}

@media (min-width: 681px) {
    #teka-main .feature-row:after {
        border: 1px solid #c8102e;
        height: 100%;
        left: 50%;
        content: '';
        position: absolute;
        top: 0;
    }
}

#teka-main .feature-col {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

#teka-main .feature-col--ico {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
}

#teka-main .feature-col--title {
    font-size: 18px;
    font-weight: 700;
    color: #4A4A49;
    margin-bottom: 10px;
}

#teka-main .feature-col--desc {
    font-size: 13px;
    line-height: 1.55;
    color: #333333;
    margin-bottom: 16px;
    min-height: 75px;
}

#teka-main .feature-col--img {
    width: 100%;
    aspect-ratio: 490/350;
    object-fit: cover;
    margin-top: auto;
}

/* Inspirations Section */
#teka-main .inspirations-wrapper {
    width: 95%;
    margin: auto;
    margin-bottom: 48px;
}

#teka-main .inspirations-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 680px) {
    #teka-main .inspirations-grid {
        gap: 0;
    }
}

#teka-main .inspirations-grid--img {
    flex: 1;
    min-width: 250px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Warto wiedzieć Section */
#teka-main .warto-wiedziec-wrapper {
    width: 95%;
    margin: auto;
}

#teka-main .warto-wiedziec-box {
    position: relative;
    overflow: hidden;
    min-height: 218px;
    display: flex;
}

#teka-main .warto-wiedziec-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    z-index: 1;
}

#teka-main .warto-wiedziec-content {
    position: relative;
    z-index: 2;
    padding: 36px 32px 36px 0;
    display: flex;
    gap: 20px;
    color: #ffffff;
}

@media (max-width: 680px) {
    #teka-main .warto-wiedziec-bg {
        object-position: left center;
    }
    #teka-main .warto-wiedziec-content {
        flex-direction: column;
    }

    #teka-main .warto-wiedziec-title,
    #teka-main .warto-wiedziec-txt {
        padding-left: 32px;
    }
}

#teka-main .warto-wiedziec-ico {
    width: 200px;
    height: 44px;
    flex-shrink: 0;
}

#teka-main .warto-wiedziec-title {
    font-size: 32px;
    font-weight: 400;
    margin: 0 0 16px;
}

#teka-main .warto-wiedziec-txt {
    font-size: 13px;
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
    width: 90%;
    max-width: 560px;
}
