/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Colors */
:root {
    --primary-dark: #2c3e50;
    --primary-blue: #34495e;
    --accent-blue: #3498db;
    --light-blue: #ecf0f1;
    --white: #ffffff;
    --gray: #7f8c8d;
    --light-gray: #bdc3c7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-full {
    width: 100%;
}

/* Section Titles */
.section-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 40px;
}

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

.section-title-light {
    color: var(--white);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    padding-top: 80px;
    padding-bottom: 40px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%232c3e50" width="1200" height="600"/><path fill="%2334495e" d="M0 300L50 275L100 300L150 250L200 300L250 275L300 300L350 250L400 300L450 275L500 300L550 250L600 300L650 275L700 300L750 250L800 300L850 275L900 300L950 250L1000 300L1050 275L1100 300L1150 250L1200 300V600H0V300Z" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Advantages Section */
.advantages {
    padding: 80px 0;
    background-color: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.advantage-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--light-blue);
    border-radius: 8px;
    transition: transform 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.advantage-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.advantage-text {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 60px 0;
    background-color: var(--light-blue);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.about-photo-placeholder {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.about-photo {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    object-fit: contain;
    display: block;
}

.about-content {
    padding-left: 20px;
}

.about-text {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.about-feature {
    display: flex;
    flex-direction: column;
}

.feature-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-dark);
}

.feature-label {
    font-size: 14px;
    color: var(--gray);
}

/* Services Section */
.services {
    padding: 60px 0 30px 0;
    background-color: var(--white);
}

.services-list {
    max-width: 900px;
    margin: 0 auto;
}

.service-item {
    border-bottom: 1px solid #e0e0e0;
}

.service-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-dark);
    text-align: left;
}

.service-toggle {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s;
}

.service-item.active .service-toggle {
    transform: rotate(45deg);
}

.service-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.service-item.active .service-content {
    max-height: 200px;
    padding-bottom: 24px;
}

.service-content p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}

/* Stages Section */
.stages {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
}

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

.stage-card {
    background-color: rgba(255,255,255,0.1);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stage-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    opacity: 0.5;
    margin-bottom: 16px;
}

.stage-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.stage-text {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* Cases Section */
.cases {
    padding: 100px 0;
    background-color: var(--white);
}

.cases-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cases-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
    flex: 1;
}

.cases-carousel::-webkit-scrollbar {
    display: none;
}

.cases-carousel .case-item {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
}

.carousel-btn {
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary-blue);
    transform: scale(1.1);
}

/* Mobile: hide buttons and show grid */
@media (max-width: 768px) {
    .carousel-container {
        display: block;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .cases-carousel {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        overflow-x: visible;
        scroll-snap-type: none;
    }
    
    .cases-carousel .case-item {
        flex: none;
    }
}

@media (max-width: 480px) {
    .cases-carousel {
        grid-template-columns: 1fr;
    }
}

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

.case-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--light-blue), #d5dbdb);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
    overflow: hidden;
}

.case-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-title {
    font-size: 14px;
    color: var(--primary-dark);
    font-weight: 500;
}

/* Why Me Section */
.why-me {
    padding: 100px 0;
    background-color: var(--light-blue);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
}

.why-icon {
    width: 28px;
    height: 28px;
    background-color: var(--primary-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.why-item p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.5;
}

/* Contacts Section */
.contacts {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
}

.contacts-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.contact-value {
    font-size: 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

.contact-value:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.social-link {
    width: 44px;
    height: 44px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

/* Contact Form */
.contacts-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
}

.form-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 24px;
    line-height: 1.4;
}

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

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-dark);
    background-color: var(--white);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-consent {
    font-size: 12px;
    color: var(--gray);
    margin-top: 16px;
    text-align: center;
}

.form-consent a {
    color: var(--primary-dark);
}

.form-success {
    text-align: center;
    padding: 40px;
}

.form-success h3 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--gray);
}

/* Footer */
.footer {
    background-color: #1a252f;
    padding: 30px 0;
}

.footer-copy {
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 40px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-features {
        justify-content: center;
    }
    
    .stages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacts-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}


@media (max-width: 768px) {
    .about-photo {
        width: 80%;
        max-width: 280px;
        height: auto;
    }
}


    .hero-title {
        font-size: 32px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .stages-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .case-title {
        font-size: 13px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .about-inner {
        display: flex;
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .about-photo {
        width: 100%;
        max-width: 250px;
        height: auto;
    }
    
    .contacts-form-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {

    .cases-carousel {

        grid-template-columns: 1fr;

    }

    .hero {
        padding-top: 120px;
    }

    .about-photo {
        max-width: 200px !important;
        width: 80% !important;
    }

}

@media (min-width: 1025px) {
    .about-photo {
        max-width: 200px;
    }
}