/* Основные стили страницы */
.calculator-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Секция Hero */
.hero-section {
    /*background: linear-gradient(135deg, #7049ba 0%, #8b6bd1 100%);*/
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), linear-gradient(160deg, #37449d 0.5%, #49649d 130%);
    color: white;
    padding: 20px 0 35px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.1"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-feature i {
    font-size: 1.3rem;
    color: #fbb346;
}

/* Контейнер калькулятора */
.calculator-container {
    margin-top: -20px;
    position: relative;
    z-index: 10;
    padding-bottom: 30px;
}

.calculator-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Заголовок калькулятора */
.calculator-header {
    background: white;
    padding: 20px 20px 0;
}

.type-selector {
    display: flex;
    gap: 3px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.type-tab {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-tab i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 3px;
    opacity: 0.7;
}

.type-tab small {
    font-size: 0.7rem;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.type-tab.active {
    background: white;
    color: #7049ba;
    box-shadow: 0 2px 8px rgba(112, 73, 186, 0.2);
}

.type-tab.active i {
    opacity: 1;
    color: #7049ba;
}

.type-tab:hover:not(.active) {
    color: #495057;
    background: rgba(255,255,255,0.5);
}

/* Содержимое калькулятора */
.calculator-content {
    padding: 0;
}

.content-tab {
    display: none;
}

.content-tab.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили формы */
.calculator-form {
    background: #fff;
    padding: 50px;
}

.slider-block {
    margin-top: 0 !important;
}
.form-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #7049ba 0%, #8b6bd1 100%);
    border-radius: 6px;
    color: white;
}

.section-header i {
    font-size: 16px;
    margin-right: 8px;
}

.section-header h3 {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 500;
}

/* Поля формы */
.form-control {
    font-size: 0.65rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    font-size: 0.6rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #495057;
}

/* Цветовой выбор */
.color-select-wrapper {
    position: relative;
}

.color-preview {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dee2e6;
}

/* Переключатели */
.custom-switch {
    padding-left: 2.5rem;
    margin-bottom: 0.8rem;
}

.custom-control-label {
    font-size: 0.6rem;
    padding-top: 0.1rem;
    color: #495057;
    font-weight: 500;
}

.substrate-options {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #7049ba;
    margin-top: 10px;
}

/* Кнопки */
.form-actions {
    margin-top: 15px;
}

.invalid-feedback {
    font-size: 0.5em;
}

.btn-calculate {
    width: 100%;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    background: linear-gradient(135deg, #7049ba 0%, #8b6bd1 100%);
    border: none;
    color: white;
    box-shadow: 0 3px 10px rgba(112, 73, 186, 0.3);
    transition: all 0.3s ease;
}

.btn-calculate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(112, 73, 186, 0.4);
}

.btn-calculate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-note {
    margin-top: 10px;
    text-align: center;
}

.form-note small {
    font-size: 0.5rem;
}

/* Результаты расчета */
.calculation-result {
    margin-top: 15px;
    display: none;
}

.calculation-result.show {
    display: block;
}

.alert-with-icon {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #d6dbe7;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.alert-with-icon i {
    font-size: 20px;
    margin-right: 10px;
    margin-top: 2px;
    color: #28a745;
}

.alert-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.alert-content h4 {
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: #37449d;
}

.alert-content p {
    font-size: 0.7rem;
    margin-bottom: 6px;
    color: #37449d;
}

.price-result {
    display: inline-flex;
    align-items: baseline;
    background: linear-gradient(135deg, #ef7f1a, #ef7f1a);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 15px 0 0 0;
}

.price-amount {
    font-size: 1.6rem;
    font-weight: 700;
    margin-right: 4px;
}

.price-currency {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Информационная секция */
.info-section {
    background: white;
    padding: 30px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.info-card {
    background: white;
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #7049ba, #fbb346);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.info-card i {
    font-size: 2rem;
    color: #7049ba;
    margin-bottom: 12px;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-card p {
    color: #6c757d;
    line-height: 1.5;
    font-size: 0.85rem;
}

/* Секция преимуществ */
.advantages {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.advantages h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: white;
}

.advantage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.advantage-item {
    padding: 15px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.advantage-item i {
    font-size: 1.8rem;
    color: #fbb346;
    margin-top: 30px;
    margin-bottom: 30px;
}

.advantage-item h4 {
    font-size: 0.6rem;
    margin-bottom: 25px;
}

.advantage-item p {
    opacity: 0.9;
    line-height: 1.4;
    font-size: 0.5rem;
}

/* CTA секция */
.cta-section {
    background: linear-gradient(135deg, #7049ba 0%, #8b6bd1 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-light:hover {
    background: white;
    color: #7049ba;
    transform: translateY(-2px);
}

/* Заголовки секций */
.text-center h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.text-center .lead {
    text-align: center;
    font-size: 0.9rem;
}

/* Стиль для prompt-опции */
select option[value=""] {
    font-size: 0.5rem;
    color: #999;
    background-color: #f8f9fa;
}

/* Стиль для обычных опций */
select option:not([value=""]) {
    color: #333;
    background-color: white;
    font-size: 0.5rem;
}

/* Стиль при наведении */
select option:hover {
    background-color: #e9ecef;
    font-size: 0.5rem;
}

.custom-select {
    font-size: 0.5rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .hero-features {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-feature {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        font-size: 1.75rem;
    }

    .type-selector {
        flex-direction: column;
    }

    .type-tab {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 10px 12px;
        font-size: 1.75rem;
    }

    .type-tab i {
        display: inline;
        margin-right: 8px;
        margin-bottom: 0;
    }

    .type-tab small {
        display: inline;
        margin-left: auto;
        font-size: 1.75rem;
    }

    .form-group label {
        font-size: 1.6rem;
    }

    .section-header h3 {
        font-size: 2rem;
    }

    .calculator-form {
        padding: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .advantage-list {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-outline-light {
        width: 100%;
        max-width: 250px;
    }

    .custom-control-label {
        font-size: 2rem;
    }

    .text-center h2 {
        font-size: 3.5rem;
    }

    .info-card h3 {
        font-size: 3.5rem;
    }

    .info-card p {
        font-size: 2rem;
    }

    .text-center .lead {
        text-align: center;
        font-size: 1.9rem;
    }

    .advantages h2 {
        font-size: 3.5rem;
    }

    .advantage-item i {
        font-size: 6rem;
    }

    .advantage-item h4 {
        font-size: 3.6rem;
    }
    .advantage-item p {
        font-size: 2rem;
    }

    .alert-content h4 {
        font-size: 2rem;
        text-align: center;
    }

    .alert-content p {
        font-size: 1.7rem;
        text-align: center;
    }

    .price-amount {
        font-size: 3rem;
    }

    .price-result {
        margin: 5px 0 5px 0;
    }

    .price-currency {
        font-size: 2.5rem;
        font-weight: 600;
    }

    .info-card i {
        font-size: 6rem;
    }

    .custom-select {
        font-size: 1.50rem;
    }

    .cta-content h2 {
        font-size: 3.5rem;
    }

    .cta-content p {
        font-size: 2.0rem;
    }

    .btn-outline-light {
        font-size: 2.0rem;
    }
}

    @media (max-width: 576px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-header {
        font-size: 1.5rem;
    }

    .form-control {
        font-size: 1.5rem;
    }
}