/* modern-style.css - Современный адаптивный стиль */

/* ===== Базовые сбросы ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Blogger';
    src: url('../font/blogger.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #009b97;
    --primary-dark: #007a77;
    --secondary: #a8a8a8;
    --text: #666666;
    --text-light: #8c8989;
    --bg-light: #f9f9f9;
    --border: #d9d9d9;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,155,151,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Blogger', sans-serif;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Типография ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    color: var(--primary);
    line-height: 1.2;
}

h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: clamp(24px, 3.5vw, 36px); }
h4 { font-size: clamp(20px, 3vw, 30px); }

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.text-center {
    text-align: center;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1.25rem;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 400;
}

.btn--primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn--secondary:hover {
    background-color: #8f8f8f;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== Шапка ===== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

/* Навигация */
.nav__list {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav__link {
    display: block;
    padding: 10px 20px;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.375rem;
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__item--active .nav__link::after {
    width: 70%;
}

.nav__item--active .nav__link {
    font-weight: 500;
}

/* Мобильное меню */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== Герой/слайдер ===== */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.hero__slider {
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.hero__slide {
    flex: 0 0 100%;
    position: relative;
    height: 100%;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    padding: 30px 0;
}

.hero__title {
    color: var(--white);
    margin: 0;
}

.hero__nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--white);
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(5px);
}

.hero__nav button:hover {
    background: var(--primary);
}

.hero__prev { left: 20px; }
.hero__next { right: 20px; }

.hero__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero__dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.hero__dots button.active {
    background: var(--white);
    transform: scale(1.2);
}

/* ===== Секции ===== */
.section {
    padding: 40px 0;
}

.section--about {
    background-color: var(--white);
}

.section--features {
    background-color: var(--bg-light);
}

.section--info {
    padding-top: 60px;
    padding-bottom: 60px;
}

.section__title {
    margin-bottom: 30px;
}

.section__text {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.section__actions {
    margin-top: 30px;
}

.divider {
    height: 1px;
    background-color: var(--border);
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Сетка ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ===== Карточки информации ===== */
.info-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.info-card__title {
    margin-bottom: 20px;
    font-size: 1.75rem;
}

.info-card__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.info-card__list {
    list-style: none;
    flex-grow: 1;
}

.info-card__list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-card__list i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 3px;
}

.info-card__list a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.info-card__list a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.info-card__link {
    color: var(--primary);
    text-decoration: none;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.info-card__link:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* ===== Подвал ===== */
.footer {
    background-color: var(--white);
    border-top: 1px solid var(--border);
    padding: 50px 0;
    text-align: center;
}

.footer__slogan {
    margin-bottom: 30px;
}

.footer__slogan p {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 300;
    margin: 0;
}

.footer__copyright {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ===== Адаптивность ===== */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow);
        padding: 80px 30px 30px;
        transition: var(--transition);
        z-index: 99;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav__link {
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
    }
    
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        height: 350px;
    }
    
    .hero__nav button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .grid {
        gap: 20px;
    }
    
    .info-card__title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        height: 300px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 1.125rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .logo img {
        height: 45px;
    }
}

.steps-container {
    width: 100%;
    margin: 40px 0;
    overflow: hidden;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-item {
    text-align: center;
    background: var(--white);
    padding: 25px 15px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,155,151,0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,155,151,0.3);
}

.step-title {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1.3rem;
}

.step-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
    flex-grow: 1;
}

.description-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 30px auto 0;
    padding: 0 15px;
}

/* Адаптивность для разных экранов */
@media (max-width: 900px) {
    .steps-grid {
        gap: 15px;
    }
    
    .step-item {
        padding: 20px 10px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .step-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .step-item {
        padding: 20px 12px;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .step-item {
        padding: 20px 15px;
    }
    
    .description-text {
        font-size: 1.1rem;
    }
}
/* ===== АДАПТИВНАЯ ТАБЛИЦА ЦЕН ===== */
.price-table-wrapper {
    background: var(--white);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin: 40px 0;
    overflow-x: visible; /* Убираем прокрутку, будем делать адаптивную версию */
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.price-table th {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    font-weight: 500;
    text-align: center;
}

.price-table th:first-child {
    border-top-left-radius: 12px;
}

.price-table th:last-child {
    border-top-right-radius: 12px;
}

.price-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tbody tr:hover {
    background: rgba(0,155,151,0.02);
}

.price-table .price {
    font-weight: 600;
    color: var(--primary);
}

.price-note {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: white;
    margin-left: 10px;
}

/* ===== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ===== */
@media screen and (max-width: 768px) {
    .price-table-wrapper {
        padding: 15px;
    }
    
    /* Превращаем таблицу в карточки для мобильных */
    .price-table,
    .price-table thead,
    .price-table tbody,
    .price-table th,
    .price-table td,
    .price-table tr {
        display: block;
    }
    
    /* Прячем заголовки таблицы */
    .price-table thead {
        display: none;
    }
    
    /* Каждая строка становится карточкой */
    .price-table tbody tr {
        margin-bottom: 20px;
        border: 1px solid var(--border);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    /* Каждая ячейка становится блоком */
    .price-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        border-bottom: 1px solid var(--border);
        text-align: right;
    }
    
    .price-table td:last-child {
        border-bottom: none;
    }
    
    /* Добавляем псевдо-элементы с названиями колонок */
    .price-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary);
        text-align: left;
        margin-right: 15px;
        flex: 1;
    }
    
    /* Убираем лишние отступы у strong внутри ячеек */
    .price-table td strong {
        display: inline-block;
    }
}

/* Для очень маленьких экранов */
@media screen and (max-width: 480px) {
    .price-table-wrapper {
        padding: 10px;
    }
    
    .price-table td {
        padding: 12px 10px;
        font-size: 0.95rem;
    }
}

    
    .price-note {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        white-space: nowrap;
        font-size: 0.75rem;
    }
}



/* Принудительные стили для индикатора */
.loading-indicator {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.loading-indicator .spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e0e0e0;
    border-top: 5px solid #009b97;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-indicator span {
    color: #009b97;
    font-size: 1.3rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}