:root {
    --primary-color: #2C3E50;
    --secondary-color: #E67E22;
    --secondary-hover: #fa8b31;
    --accent-color: #27AE60;
    --text-color: #333333;
    --text-light: #7f8c8d;
    --background-light: #F9F9F9;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Софт тень для премиум вида */
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.header-item i {
    color: var(--secondary-color);
}

.header-socials {
    display: flex;
    gap: 15px;
}

.header-socials a {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.header-socials a:hover {
    color: var(--secondary-color);
}

.header-contacts {
    text-align: right;
}

.phone {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.schedule {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.burger-menu {
    display: none;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0;
    background-color: var(--primary-color);
    background-image: url('img/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(44, 62, 80, 0.8));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-content {
    text-align: center;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.floating-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    background: white;
    /* Fallback */
}

.img-2 {
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Services Slider */
.services {
    background-color: var(--white);
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.cards-wrapper {
    display: flex;
    gap: 30px;
    overflow: hidden;
    padding: 20px 0;
    /* Space for shadow */
    width: 100%;
    justify-content: center;
}

/* On mobile, standard wrapping */
@media (max-width: 768px) {
    .cards-wrapper {
        flex-wrap: wrap;
    }
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(39, 174, 96, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-icon i {
    font-size: 2rem;
    color: var(--accent-color);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.slider-btn {
    background: var(--white);
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
    display: none;
    /* Hidden on desktop for this layout */
}

/* Steps (Cyclic) */
.steps {
    background-color: var(--background-light);
}

.cycle-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto;
    /* border: 1px dashed #ccc;  Debug guide */
    border-radius: 50%;
}

.cycle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    z-index: 10;
    box-shadow: 0 0 0 10px rgba(44, 62, 80, 0.1);
}

.cycle-step {
    position: absolute;
    width: 180px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    z-index: 5;
    opacity: 0.8;
}

.cycle-step.active {
    transform: scale(1.1);
    opacity: 1;
    border: 2px solid var(--secondary-color);
    z-index: 6;
}

/* Positioning steps around the circle */
.step-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.step-2 {
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
}

.step-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.step-4 {
    top: 50%;
    left: -50px;
    transform: translateY(-50%);
}

/* Adjusted positions for visual balance */
.step-1 {
    top: 20px;
    left: 50%;
    margin-left: -90px;
    transform: none;
}

.step-2 {
    top: 50%;
    right: 0;
    margin-top: -60px;
    transform: none;
}

.step-3 {
    bottom: 20px;
    left: 50%;
    margin-left: -90px;
    transform: none;
}

.step-4 {
    top: 50%;
    left: 0;
    margin-top: -60px;
    transform: none;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    line-height: 30px;
    margin-bottom: 10px;
    font-weight: bold;
}

.cycle-arrow {
    position: absolute;
    font-size: 2rem;
    color: var(--text-light);
    opacity: 0.3;
}

/* Positioning arrows */
.arrow-1 {
    top: 20%;
    right: 20%;
    transform: rotate(45deg);
}

.arrow-2 {
    bottom: 20%;
    right: 20%;
    transform: rotate(45deg);
}

.arrow-3 {
    bottom: 20%;
    left: 20%;
    transform: rotate(45deg);
}

.arrow-4 {
    top: 20%;
    left: 20%;
    transform: rotate(45deg);
}

/* Mobile fallback for steps */
@media (max-width: 768px) {
    .cycle-container {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .cycle-center,
    .cycle-arrow {
        display: none;
    }

    .cycle-step {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 0;
        width: 100%;
        max-width: 300px;
    }
}

/* Benefits */
.benefit-card {
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.benefit-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.benefit-text {
    padding: 25px;
}

.benefit-text h3 {
    margin-bottom: 10px;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.stars {
    color: #f1c40f;
    font-size: 0.9rem;
}

.review-text {
    font-style: italic;
    color: var(--text-color);
}

/* Contacts */
.contacts-section {
    padding-bottom: 0;
    /* Map touches footer */
}

.contacts-wrapper {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.map-container {
    flex: 2;
    min-height: 400px;
}

.contacts-info-block {
    flex: 1;
    padding: 40px;
    background: var(--primary-color);
    color: white;
    min-width: 300px;
}

.contacts-info-block h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
}

.reviews-count {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.count-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}

.count-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: #233140;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-weight: bold;
    font-size: 1.2rem;
}

.footer-socials a {
    color: white;
    margin-left: 15px;
    font-size: 1.2rem;
}

.footer-socials a:hover {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
    }

    .hero-left,
    .hero-right {
        display: none;
        /* Hide 3D elements on tablets for simplicity or layout nicely */
    }

    .header-info,
    .header-contacts {
        display: none;
        /* Simplify header */
    }

    .burger-menu {
        display: block;
    }

    .slider-btn {
        display: block;
        /* Show arrows on mobile if needed or rely on scroll */
    }

    /* Mobile Fixes for Contacts and Map */
    .contacts-wrapper {
        flex-direction: column;
    }

    .map-container {
        min-height: 300px;
        order: 2;
    }

    .contacts-info-block {
        order: 1;
        width: 100%;
        padding: 30px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-socials {
        margin-top: 10px;
    }
}