/* Основные стили и переменные */
:root {
    --avito-blue: #00AAFF;
    --avito-purple: #A169F7;
    --avito-green: #97CF26;
    --avito-red: #FF6163;
    --text-dark: #2c2c2c;
    --text-light: #5f5f5f;
    --background-grey: #f7f8fa;
    --background-white: #ffffff;
    --font-family: 'Manrope', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-grey {
    background-color: var(--background-grey);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.cta-button {
    display: inline-block;
    background-color: var(--avito-blue);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #0088cc;
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: var(--background-white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
}

.nav-link {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--avito-blue);
}

/* Hero Section */
.hero {
    background-color: var(--background-white);
    padding: 100px 0;
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hero-content {
    max-width: 50%;
}
.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.accent-avito {
    color: var(--avito-purple);
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}
.hero-animation div {
    width: 450px;
    height: 450px;
    max-width: 100%;
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.advantage-card {
    background: var(--background-white);
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.advantage-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}
.emoji-icon {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1;
}

.advantage-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

/* Work Plan Section */
.workplan-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.workplan-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--avito-blue);
    opacity: 0.2;
    top: 0;
    bottom: 0;
    left: 20px;
}
.workplan-step {
    padding-left: 60px;
    position: relative;
    margin-bottom: 40px;
}
.workplan-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--avito-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    z-index: 2;
}
.workplan-title {
    font-size: 22px;
    margin-bottom: 5px;
}

/* Cases Section */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.case-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    cursor: pointer;
}
.case-card:hover {
    transform: translateY(-5px);
}
.case-header {
    height: 120px;
    display: flex;
    align-items: flex-start;
    padding: 20px;
}
.case-mebel { background: linear-gradient(45deg, var(--avito-green), #b6e65b); }
.case-remont { background: linear-gradient(45deg, var(--avito-red), #ff8a8c); }
.case-category {
    background: rgba(255,255,255,0.8);
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}
.case-body {
    padding: 25px;
    background: white;
}
.case-result {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
.result-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--avito-purple);
}
.result-label {
    color: var(--text-light);
    margin-left: 10px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.team-member {
    text-align: center;
}
.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid white;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.team-name {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
}
.team-role {
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(45deg, var(--avito-blue), var(--avito-purple));
    color: white;
}
.contact-section .section-title, .contact-subtitle {
    color: white;
}
.contact-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -40px auto 40px;
}
.contact-form {
    max-width: 500px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 20px;
}
.contact-form input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-family);
    box-sizing: border-box;
}
.form-button {
    width: 100%;
    background-color: var(--avito-green);
    border: none;
}
.form-button:hover {
    background-color: #82b322;
}

/* Footer */
.footer {
    background-color: #2c2c2c;
    color: #a0a0a0;
    padding: 30px 0;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-contacts a {
    color: #a0a0a0;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}
.footer-contacts a:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .section-title { font-size: 28px; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; }
.hero-animation { 
    margin-top: 40px; 
}
.hero-animation div {
    width: 300px;
    height: 300px;
}
    .header .nav, .header .header-button { display: none; } /* Скрываем для простоты, можно добавить бургер-меню */
}

.swiper {
    position: relative;
    padding: 20px 0 40px;
}

.swiper-slide {
    height: auto;
}

.case-body {
    padding: 25px;
    background: white;
    /* min-height: 250px;  <-- Эту строку мы убрали или закомментировали */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-card {
    height: auto;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--avito-purple);
    top: 35%;
}

.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-header {
    height: 120px;
    background-image: var(--case-bg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.case-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.6); /* полупрозрачный белый */
    backdrop-filter: blur(0px); /* по желанию — лёгкое размытие */
}

.case-remont::before {
    background-color: rgba(255, 255, 255, 0.6);
}

.case-category {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.8);
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin: 15px;
    display: inline-block;
}
.swiper-wrapper {
    display: flex;
}
.swiper-button-prev,
.swiper-button-next {
    color: var(--avito-purple);
    top: 40%;
    z-index: 2;
}

.case-body p {
    margin: 4px 0;           /* уменьшает отступы между абзацами */
    line-height: 1.4;        /* уменьшает межстрочный интервал */
    font-size: 16px;         /* можешь уменьшить при необходимости */
}