/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

.section {
    padding: 60px 0;
}

.section__title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #1a2a4f;
}

.section__subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn--primary {
    background: #f39c12;
    color: #1a2a4f;
}

.btn--primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.btn--secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn--secondary:hover {
    background: #f39c12;
    border-color: #f39c12;
    color: #1a2a4f;
}

/* HEADER */
.header {
    background: #1a2a4f;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__img {
    height: 50px;
    width: auto;
}

.logo__text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav__link:hover {
    color: #f39c12;
}

.header__phone {
    color: #f39c12;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
}

/* HERO */
.hero {
    background: linear-gradient(rgba(26,42,79,0.85), rgba(26,42,79,0.85)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero__content {
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero__title span {
    color: #f39c12;
}

.hero__text {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ADVANTAGES */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.advantage__icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.advantage h3 {
    margin-bottom: 10px;
    color: #1a2a4f;
}

/* SERVICES */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card__icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
    color: #1a2a4f;
}

.service-card__link {
    display: inline-block;
    margin-top: 10px;
    color: #f39c12;
    font-weight: 600;
}

/* GEOGRAPHY */
.geography {
    background: #f5f5f5;
}

.geography__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.geography__city {
    background: #fff;
    padding: 10px 20px;
    border-radius: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: 500;
    color: #1a2a4f;
}

/* PORTFOLIO */
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.portfolio__item {
    overflow: hidden;
    border-radius: 12px;
}

.portfolio__item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio__item img:hover {
    transform: scale(1.05);
}

.portfolio__cta, .prices__cta {
    text-align: center;
    margin-top: 30px;
}

/* STAGES */
.stages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

.stage-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.stage-item h3 {
    margin: 15px 0 10px;
    color: #1a2a4f;
}

/* PRICES */
.prices__table {
    overflow-x: auto;
}

.prices__table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.prices__table th, .prices__table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.prices__table th {
    background: #1a2a4f;
    color: #fff;
}

/* CALCULATOR */
.calculator {
    background: #f5f5f5;
}

.calculator__form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
}

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

.calc-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.calc-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.calc-result {
    margin: 20px 0;
    padding: 15px;
    background: #e8f4f8;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

#afterCalcBtn {
    margin-top: 15px;
    width: 100%;
}

/* PARTNERS */
.partners__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.partner {
    background: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-weight: 600;
    color: #1a2a4f;
}

/* REVIEWS */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.review p {
    font-style: italic;
    margin-bottom: 15px;
}

.review__author {
    font-weight: bold;
    color: #1a2a4f;
}

.review__stars {
    color: #f39c12;
    margin-top: 10px;
}

.reviews__cta {
    text-align: center;
    margin-top: 30px;
}

/* FAQ */
.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.faq-question {
    padding: 15px 20px;
    background: #f9f9f9;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question span {
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-question span::before,
.faq-question span::after {
    content: '';
    position: absolute;
    background: #1a2a4f;
    transition: 0.3s;
}

.faq-question span::before {
    width: 12px;
    height: 2px;
    top: 9px;
    left: 4px;
}

.faq-question span::after {
    width: 2px;
    height: 12px;
    top: 4px;
    left: 9px;
}

.faq-item.active .faq-question span::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 200px;
}

/* CONTACTS */
.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contacts__info p {
    margin-bottom: 15px;
}

.contacts__info a {
    color: #1a2a4f;
    text-decoration: none;
}

.contacts__form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacts__form input,
.contacts__form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.contacts__form textarea {
    min-height: 100px;
}

/* FOOTER */
.footer {
    background: #1a2a4f;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* SERVICE PAGE */
.service-page {
    padding: 40px 0 60px;
}

.service-page h1 {
    color: #1a2a4f;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.service-page h2 {
    color: #1a2a4f;
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.service-page h3 {
    color: #1a2a4f;
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.service-cta {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.breadcrumbs {
    margin: 100px 0 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #f39c12;
    text-decoration: none;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.price-table th, .price-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.price-table th {
    background: #1a2a4f;
    color: #fff;
}

/* MOBILE */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #1a2a4f;
        padding: 20px;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .burger {
        display: block;
    }
    
    .header__phone {
        display: none;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stages__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacts__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .service-cta {
        flex-direction: column;
    }
    
    .service-page h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .stages__grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio__grid {
        grid-template-columns: 1fr;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .advantages__grid {
        grid-template-columns: 1fr;
    }
    
    .reviews__grid {
        grid-template-columns: 1fr;
    }
    
    .hero__title {
        font-size: 1.6rem;
    }
}