/* Glass Types Section */
.glass-types-section {
    width: 100%;
    background-color: #FFFFFF;
    margin-top:130px;
}
.glass-types-section .comparison__title {
    margin-bottom:0;
}
.glass-types-section .comparison__header {
    margin-bottom:0;
}
.glass-types-section__container {
    max-width: 1866px;
    margin: 0 auto;
    padding: 0 285px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Type Switcher */
.glass-types-section__type-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F6F8FA;
    border-radius: 12px 12px 0 0;
    padding: 0;
    gap: 0;
    width: 100%;
    max-width: 1294px;
    margin: 0 auto;
}

.glass-types-section__type-btn {
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.18em;
    color: #353535;
    background-color: #F6F8FA;
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 20px 54px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

.glass-types-section__type-btn:first-child {
    border-radius: 12px 12px 0 0;
}

.glass-types-section__type-btn--active {
    background-color: #1F31EF;
    color: #FFFFFF;
}

.glass-types-section__type-btn:not(.glass-types-section__type-btn--active) {
    background-color: #F6F8FA;
    color: #353535;
}

.glass-types-section__type-btn:hover:not(.glass-types-section__type-btn--active) {
    background-color: #E8ECF0;
}

/* Type Content */
.glass-types-section__type-content {
    display: none;
}

.glass-types-section__type-content--active {
    display: block;
}

.glass-types-section__title {
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.4em;
    color: #000000;
    margin: 0;

}

.glass-types-section__content {
    display: flex;
    gap: 55px;
    align-items: flex-start;
    min-height: 506px;
}

.glass-types-section__image-wrapper {
align-self: anchor-center;
}

.glass-types-section__image {
    display: block;
}

.glass-types-section__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 27px;
    min-height: 506px;
    max-width:657px;
}

/* Tabs */
.glass-types-section__tabs {
    display: flex;
    gap: 0;
    align-items: center;
}

.glass-types-section__tab {
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.18em;
    color: #353535;
    background-color: #FFFFFF;
    border: none;
    border-radius: 14px 14px 0 0;
    padding: 5px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.glass-types-section__tab:first-child {
    border-radius: 6px 6px 0 0;
}

.glass-types-section__tab--active {
    background-color: #1F31EF;
    color: #FFFFFF;
}

.glass-types-section__tab:not(.glass-types-section__tab--active) {
    background-color: #FFFFFF;
    color: #353535;
}

.glass-types-section__tab:hover:not(.glass-types-section__tab--active) {
    background-color: #F6F8FA;
}

/* Tab Content */
.glass-types-section__tab-content {
    display: none;
}

.glass-types-section__tab-content--active {
    display: block;
}

/* Characteristics */
.glass-types-section__characteristics {
    display: flex;
    flex-direction: column;
    gap: 10px;

}

.glass-types-section__characteristic-item {
    display: flex;
    align-items: center;

    padding: 0;
    text-align-last: left;
}

.glass-types-section__characteristic-label {
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2em;
    text-align: center;
    color: #353535;
    flex: 1;
}

.glass-types-section__characteristic-value {
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2em;
    text-align: center;
    color: #353535;
    flex-shrink: 0;
}

/* Pricing */
.glass-types-section__pricing {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
}

.glass-types-section__pricing-title {
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.4em;
    color: #000000;
    margin: 0;
}

.glass-types-section__pricing-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.glass-types-section__pricing-item {
    display: flex;
    align-items: flex-end;
    gap: 0;
    padding: 0;
    position: relative;
}

.glass-types-section__pricing-label {
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #000000;
    flex: 1;
    position: relative;
    padding-right: 0;
    background-color: #FFFFFF;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    min-width: 0;
}

.glass-types-section__pricing-label::after {
    content: '.............................................................................................';
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #000000;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
    min-width: 0;
    margin-left: 4px;
    margin-right: 8px;
}

.glass-types-section__pricing-value-wrapper {
    display: flex;

    gap: 4px;
    flex-shrink: 0;
    background-color: #FFFFFF;
    padding-left: 0;
    z-index: 2;
    position: relative;
}

.glass-types-section__pricing-value {
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.4em;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #353535;
}

.glass-types-section__pricing-badge {
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.4em;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #353535;
}

/* Button */
.glass-types-section__button {
    width: 100%;
    padding: 20px 30px;
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.18em;
    text-transform: uppercase;
    color: #FFFFFF;
    background-color: #ED1E79;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.glass-types-section__button:hover {
    filter: brightness(0.95);
}

.glass-types-section__button:active {
    transform: translateY(0);
}

/* Description Tab Content */
.glass-types-section__description {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4em;
    color: #353535;
}

.glass-types-section__description p {
    margin: 0;
}

/* Hide pricing in description tab */
.glass-types-section__info:has(.glass-types-section__tab-content[data-content="description"].glass-types-section__tab-content--active) .glass-types-section__pricing {
    display: none;
}

.glass-types-section__info:has(.glass-types-section__tab-content[data-content="description"].glass-types-section__tab-content--active) .glass-types-section__button {
    margin-top: 0;
}

/* Адаптивность */

/* Большие ноутбуки (1440px - 1919px) */
@media screen and (max-width: 1919px) and (min-width: 1385px) {
    .glass-types-section__container {
        padding: 0 120px;
    }

    .glass-types-section__type-switcher {
        max-width: 100%;
    }

    .glass-types-section__type-btn {
        padding: 18px 40px;
        font-size: 18px;
    }
}

/* Планшеты и ноутбуки (768px - 1385px) */
@media screen and (max-width: 1385px) and (min-width: 768px) {
    .glass-types-section {
        padding: 60px 0;
    }

    .glass-types-section__container {
        padding: 0 40px;
        gap: 30px;
    }

    .glass-types-section__type-switcher {
        flex-wrap: wrap;
        border-radius: 12px;
    }

    .glass-types-section__type-btn {
        padding: 16px 24px;
        font-size: 16px;
        flex: 1 1 calc(50% - 2px);
        min-width: calc(50% - 2px);
    }

    .glass-types-section__type-btn:first-child {
        border-radius: 12px 0 0 0;
    }

    .glass-types-section__type-btn:nth-child(2) {
        border-radius: 0 12px 0 0;
    }

    .glass-types-section__type-btn:nth-child(3) {
        border-radius: 0 0 0 12px;
    }

    .glass-types-section__type-btn:nth-child(4) {
        border-radius: 0 0 12px 0;
    }

    .glass-types-section__content {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
        align-items: center;
    }

    .glass-types-section__image-wrapper {
        width: 100%;
        max-width: 526px;
        height: auto;
        margin: 0 auto;
    }

    .glass-types-section__image {
        width: 100%;
        height: auto;
    }

    .glass-types-section__info {
        min-height: auto;
        max-width: 100%;
        width: 100%;
    }

    .glass-types-section__title {
        font-size: 20px;
        text-align: left;
    }

    .glass-types-section__tabs {
        flex-wrap: nowrap;
    }

    .glass-types-section__tab {
        font-size: 18px;
        padding: 8px 24px;
        flex: 1;
    }

    .glass-types-section__characteristics {
        width: 100%;
    }

    .glass-types-section__characteristic-item {
        gap: 20px;
        justify-content: space-between;
    }

    .glass-types-section__characteristic-label {
        text-align: left;
        flex: 0 0 auto;
    }

    .glass-types-section__characteristic-value {
        text-align: right;
        flex: 0 0 auto;
    }

    .glass-types-section__pricing-title {
        font-size: 20px;
    }

    .glass-types-section__pricing-label {
        font-size: 18px;
    }

    .glass-types-section__pricing-value {
        font-size: 22px;
    }

    .glass-types-section__pricing-label::after {
        margin-right: 8px;
    }
}

@media screen and (max-width: 767px) {
    .glass-types-section {
        padding: 40px 0;
    }

    .glass-types-section__container {
        padding: 0 20px;
        gap: 24px;
    }

    .glass-types-section__type-switcher {
        flex-direction: column;
        border-radius: 12px;
        gap: 0;
    }

    .glass-types-section__type-btn {
        padding: 20px 20px;
        font-size: 20px;
        width: 100%;
        flex: 1 1 100%;
        border-radius: 0;
        white-space: normal;
    }

    .glass-types-section__type-btn:first-child {
        border-radius: 12px 12px 0 0;
    }

    .glass-types-section__type-btn:last-child {
        border-radius: 0 0 12px 12px;
    }

    .glass-types-section__title {
        font-size: 20px;
        text-align: left;
    }

    .glass-types-section__content {
        flex-direction: column;
        gap: 24px;
        min-height: auto;
        align-items: flex-start;
    }

    .glass-types-section__image-wrapper {
        width: 100%;
        height: auto;

        margin: 0 auto;
    }

    .glass-types-section__image {
        width: 100%;
        height: auto;
    }

    .glass-types-section__info {
        gap: 24px;
        min-height: auto;
        max-width: 100%;
        width: 100%;
    }

    .glass-types-section__tabs {
        flex-wrap: wrap;
    }

    .glass-types-section__tab {
        font-size: 16px;
        padding: 8px 20px;
        flex: 1;
        min-width: calc(50% - 4px);
    }

    .glass-types-section__tab:first-child {
        border-radius: 12px 12px 0 0;
    }

    .glass-types-section__characteristics {
        width: 100%;
        gap: 12px;
    }

    .glass-types-section__characteristic-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
        border-bottom: 1px solid #DEE2E6;
        text-align-last: left;
    }

    .glass-types-section__characteristic-item:last-child {
        border-bottom: none;
    }

    .glass-types-section__characteristic-label,
    .glass-types-section__characteristic-value {
        text-align: left;
        width: 100%;
    }

    .glass-types-section__pricing-title {
        font-size: 20px;
    }

    .glass-types-section__pricing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
        border-bottom: 1px solid #DEE2E6;
    }

    .glass-types-section__pricing-item:last-child {
        border-bottom: none;
    }

    .glass-types-section__pricing-label {
        font-size: 18px;
        width: 100%;
        display: block;
    }

    .glass-types-section__pricing-label::after {
        display: none;
    }

    .glass-types-section__pricing-value-wrapper {
        align-items: flex-start;
    }

    .glass-types-section__pricing-value {
        font-size: 20px;
    }

    .glass-types-section__button {
        padding: 16px 24px;
        font-size: 14px;
        margin-top: 0;
    }
}

