.title {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-m);
}

.container{
    margin-top: var(--space-3xl);
}

.tabs-wrapper {
    margin: 0 auto;
}

.tabs-header {
    position: relative;
    display: flex;
    justify-content: space-around;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: var(--space-xs) var(--space-m);
    font-size: var(--fs-xs);

    color: var(--accent-text-light-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.tab-btn.active {
    color: var(--bg-green); /* колір активного тексту */
    font-weight: var(--fw-bold);
}

/* Ковзна лінія */
.tab-line {
    position: absolute;
    bottom: -2px; /* накладається на нижню рамку */
    height: 3px;
    background-color: var(--bg-green); /* колір лінії */
    border-radius: 2px;
    /* Плавне ковзання позиції (left) та зміни ширини (width) */
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Контент форм */
.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding-top: var(--space-m);
    
}

.tab-pane.active {
    display: block;
    opacity: 1;
}
iframe {
    margin-bottom: var(--space-4xl);
}

.reg-iframe{
    width: 670px;
    height: 740px;
}

@media (min-width: 560px) and (max-width: 1024px){
    .tab-btn {
        font-size: var(--fs-s);
    }
}

@media (max-width: 560px) {
    .reg-iframe{
        width: 320px;
        height: 640px;
    }

    .title {
        margin-bottom: var(--space-xs);
    }

    .container{
        margin-top: var(--space-m);
    }

    .tab-btn {
        padding: var(--space-2xs) var(--space-s);
        font-size: var(--fs-xs);
    }

    /* Контент форм */
    .tab-pane {
        padding-top: var(--space-m);
        
    }

    .tab-pane.active {
        display: block;
        opacity: 1;
    }
    iframe {
        margin-bottom: var(--space-4xl);
    }

    .tabs-wrapper{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}