/**
 * Стили для специфичных секций лендинга
 */

/* ===== Фоновые изображения секций ===== */
.section-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

/* Обеспечиваем что контент поверх фона */
.section > .container {
    position: relative;
    z-index: 1;
}

/* ===== О компании ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

.feature-image {
    margin-bottom: 20px;
}

.feature-img {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about-visual {
    width: 100%;
}

.about-image-wrapper {
    position: relative !important;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 0 !important;
    top: 0 !important; /* убираем возможное смещение */
}

.about-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(166, 124, 82, 0.15), rgba(229, 222, 211, 0.15));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
    filter: brightness(1.02);
}

.about-image-wrapper:hover::after {
    opacity: 1;
}

/* ===== Каталог ===== */
.catalog-hero {
    position: relative;
    padding: 140px 0 120px;
    overflow: hidden;
    z-index: 1;
}

.catalog-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.catalog-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.catalog-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 1200px;
}

.catalog-hero__title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.catalog-hero__subtitle {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-hero__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.catalog-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.catalog-section--cta {
    background: var(--bg-gradient);
    color: white;
}

.catalog-section__header {
    text-align: center;
    margin-bottom: 60px;
}

.catalog-section__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.catalog-section__title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    margin-bottom: 16px;
}

.catalog-section__description {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.catalog-card {
    height: 100%;
}

.catalog-section__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    color: white;
}

.catalog-section__cta h2 {
    font-size: 2.25rem;
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.catalog-section__cta p {
    max-width: 640px;
    font-size: 1.125rem;
}

/* ===== Персонализация ===== */
.personalization-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    object-fit: contain;
}

.about-features {
    display: grid;
    gap: 30px;
    margin-top: 0 !important;
    margin-bottom: 0;
    padding-top: 0 !important;
    align-self: flex-start !important; /* выравнивание по верхнему краю */
}

.feature-item {
    padding: 24px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
    align-self: start; /* выравнивание по верхнему краю */
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    color: var(--primary-color);
    margin-bottom: 16px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Слайдер До/После ===== */
.before-after-slider {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

/* ===== AuraCloud Слайдер До/После ===== */
.before-after-slider {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-image {
    z-index: 1;
}

.after-image {
    z-index: 2;
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
    display: block;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(166, 124, 82, 0.9);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.before-label {
    left: 20px;
}

.after-label {
    right: 20px;
    text-align: right;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #A67C52;
    z-index: 4;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.slider-line {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #A67C52, #CFAE6D);
    border-radius: 2px;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    background: #A67C52;
    border: 3px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: ew-resize;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(166, 124, 82, 0.3);
}

.slider-button:hover {
    background: #CFAE6D;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(166, 124, 82, 0.4);
}

.slider-button svg {
    width: 20px;
    height: 20px;
}

.after-image {
    clip-path: inset(0 50% 0 0);
}

.slider-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: 600;
    border-radius: 4px;
    font-size: 0.875rem;
}

.before-image .slider-label {
    left: 20px;
}

.after-image .slider-label {
    right: 20px;
    text-align: right;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: white;
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
}

.handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-50%);
}

.handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

.slider-caption {
    text-align: center;
    padding: 16px;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ===== Продукция ===== */
.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    display: none; /* скрыто полностью */
    font-weight: 600;
    backdrop-filter: blur(6px);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    width: auto;
    display: inline-block;
    white-space: nowrap;
}

.product-featured-badge {
    display: none !important;
}

.product-content {
    padding: 24px;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1C1C1C;
}

/* ===== Услуги ===== */
.service-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0;
}

.service-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.service-media--placeholder svg {
    width: 72px;
    height: 72px;
    color: var(--primary-color);
}

.service-card:hover .service-media img {
    transform: scale(1.08);
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 24px 32px;
    height: 100%;
    background-color: var(--bg-white);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.service-description {
    color: var(--text-secondary);
    margin: 0;
}

.service-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.service-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-cta {
    align-self: flex-start;
    background: linear-gradient(135deg, #8B6B47 0%, #6B5B3F 100%);
    border-color: #8B6B47;
    color: #FFFFFF;
}

.service-cta:hover {
    background: linear-gradient(135deg, #CFAE6D 0%, #B8956B 100%);
    border-color: #CFAE6D;
    color: #1C1C1C;
}

/* ===== Персонализация ===== */
.personalization-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.personalization-block-reverse {
    grid-template-columns: 1fr 1fr;
}

.personalization-block-reverse .personalization-visual {
    order: 2;
}

.personalization-block-reverse .personalization-text {
    order: 1;
}

.personalization-visual {
    display: flex;
    justify-content: center;
}

.visual-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--border-radius);
    color: white;
}

.personalization-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.personalization-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.personalization-features {
    list-style: none;
    margin-bottom: 32px;
}

.personalization-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
}

.personalization-features svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.personalization-divider {
    text-align: center;
    margin: 60px 0;
    color: var(--border-color);
}

.personalization-info {
    margin-top: 60px;
}

.info-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
}

.info-card h4 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.info-card p {
    margin-bottom: 24px;
    opacity: 0.9;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: var(--transition);
}

.info-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* ===== Отзывы ===== */
.reviews-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.review-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-avatar {
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.reviewer-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.review-rating {
    display: flex;
    gap: 4px;
}

.star-icon {
    color: var(--border-color);
}

.star-icon.filled {
    color: var(--secondary-color);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.125rem;
    margin-bottom: 20px;
}

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

.slider-navigation {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.slider-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

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

.slider-dot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.reviews-summary {
    margin-top: 60px;
    text-align: center;
}

.summary-rating {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-count {
    color: var(--text-secondary);
}

/* ===== Блог ===== */
.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 0.875rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.blog-link:hover {
    gap: 12px;
}

/* ===== Контакты ===== */
.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.contacts-info,
.contacts-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
}

.contacts-info {
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    flex-shrink: 0;
    color: var(--primary-color);
}

.contact-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-text a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    margin-top: 0;
    padding: 28px;
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        max-width: 100%;
    }
}

/* Footer styles defined in main.css */
