/* Секции */

section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

section.fade-in {
    opacity: 1;
    transform: translateY(0);
}


/* Главная секция */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero_content {
    max-width: 650px;
    z-index: 1;
    text-align: center;
    margin: 0 auto;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #334155;
}

.hero_buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero_buttons .btn_outline {
    background: var(--primary-gradient) !important;
    color: white !important;
    border: none !important;
    box-shadow: var(--shadow-light) !important;
}

.hero_buttons .btn_outline:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover) !important;
}


/* Секция "О нас" */

#about {
    padding: 80px 0;
    text-align: center;
}

.about_content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.main_block_tex span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    margin-bottom: 16px;
    transition: background 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.main_block:hover .main_block_tex span {
    background: rgba(37, 99, 235, 0.12);
}

.main_block_tex img {
    width: 28px;
    height: 28px;
    filter: brightness(0.7) saturate(0.5);
    opacity: 0.8;
}

.about_text {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
}

.main_block_tex_bottom {
    margin-top: 50px;
    max-width: 600px;
    margin: 50px auto 0;
}


/* Секция отзывов */

.review {
    padding: 70px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.slider_container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding: 10px 0 40px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: calc(33.333% - 16px);
    scroll-snap-align: start;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.review-name {
    background: var(--primary-color);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
}

.review-date,
.review-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.review-subtitle {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.review-title,
.review-text {
    color: var(--text-primary);
}

.review-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.review-text {
    margin-bottom: 16px;
    line-height: 1.5;
}

.review-status {
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.review-status img {
    transform: rotate(-90deg);
    display: inline-block;
    transform-origin: center;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: bold;
    color: var(--text-primary);
}

.review-rating img {
    width: 18px;
    height: 18px;
}


/* Стрелки слайдера */

.prev-button,
.next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: white;
    border: 2px solid #e2e8f0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0.9;
}

.prev-button:hover,
.next-button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.prev-button {
    left: -60px;
}

.next-button {
    right: -60px;
}


/* Форма контактов */

.contact {
    padding: 80px 0 60px;
    background: transparent;
}

#form {
    background: var(--glass-strong-bg);
    backdrop-filter: blur(6px);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 520px;
    margin: 0 auto;
}


/* Промо-блок */

.promo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    margin: 0 auto 40px;
    max-width: 800px;
    width: 90%;
    backdrop-filter: blur(4px);
}

.promo div {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    padding: 0 16px;
}