/* ===== СБРОС ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    background: #f5f7fb;
    color: #222;
    margin: 0;
    padding: 0;
}

/* ===== КОНТЕЙНЕР ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
header {
    background: #0f0f0f;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 100px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    will-change: transform;
}

header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo {
    height: 130px;
    width: auto;
    max-height: 150px;
    object-fit: contain;
}

.logo-link:hover {
    opacity: 0.9;
    transition: opacity 0.3s;
}

/* Бургер-меню (скрыто на десктопе) */
.burger-menu {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 150;
}

.burger-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.burger-menu span:nth-child(1) { top: 0; }
.burger-menu span:nth-child(2) { top: 8px; }
.burger-menu span:nth-child(3) { top: 16px; }

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

header nav {
    display: flex;
    gap: 30px;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    padding: 0;
    background: none;
    border: none;
}

header nav a:hover {
    color: #b58b5f;
}

.header-btn {
    background: #b58b5f;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-btn:hover {
    background: #9a7348;
}

/* ===== HERO ===== */
#hero {
    height: calc(100vh - 100px);
    min-height: 600px;
    width: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/hero-bg.jpg') center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

#hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btn {
    padding: 16px 40px;
    font-size: 18px;
    background: #b58b5f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
}

.hero-btn:hover {
    background: #9a7348;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-decoration: none;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(20px); }
    60% { transform: translateX(-50%) translateY(10px); }
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    font-weight: 600;
    color: #222;
    position: relative;
    padding-bottom: 20px;
}

section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #b58b5f;
}

/* ===== ABOUT (с двумя фото команды) ===== */
#about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: #555;
}

.about-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 40px auto;
}

.about-image-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-image-item:hover {
    transform: translateY(-5px);
}

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

/* ===== SERVICES (НОВЫЙ БЛОК) ===== */
.services {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.services-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

.service-item {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background 0.3s ease;
}

.service-item:hover .service-icon {
    background: #b58b5f;
}

.service-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: filter 0.3s ease;
}

.service-item:hover .service-icon-img {
    filter: brightness(1);
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.service-item p {
    color: #666;
    line-height: 1.7;
    font-size: 15px;
}

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

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-card h3 {
    padding: 20px 20px 5px;
    font-size: 1.2rem;
    color: #333;
}

.project-card p {
    padding: 0 20px 20px;
    color: #b58b5f;
    font-weight: 600;
}

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

.review-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.review-card p:first-child {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
}

.review-author {
    color: #b58b5f;
    font-weight: 600;
    text-align: right;
}

/* ===== PRICING ===== */
#pricing {
    background-color: #fff;
    padding: 80px 0;
}

.pricing-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.price-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 40px 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.price-card--popular {
    border: 2px solid #b58b5f;
    position: relative;
    background: #fff;
    transform: scale(1.02);
}

.price-card--popular::before {
    content: 'Рекомендуем';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #b58b5f;
    color: white;
    padding: 5px 25px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.price-card__title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    min-height: 60px;
}

.price-card__value {
    font-size: 32px;
    font-weight: 700;
    color: #b58b5f;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.price-card__features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.price-card__features li {
    padding: 8px 0 8px 25px;
    color: #555;
    position: relative;
    line-height: 1.5;
}

.price-card__features li::before {
    content: '✓';
    color: #b58b5f;
    position: absolute;
    left: 0;
    font-weight: 700;
}

.price-card__btn {
    background: transparent;
    border: 2px solid #b58b5f;
    color: #b58b5f;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-card__btn:hover {
    background: #b58b5f;
    color: white;
}

.price-card--popular .price-card__btn {
    background: #b58b5f;
    color: white;
}

.price-card--popular .price-card__btn:hover {
    background: #9a7348;
    border-color: #9a7348;
}

/* ===== FOOTER ===== */
footer {
    background: #0f0f0f;
    color: white;
    text-align: left;
    padding: 60px 0 30px;
}

footer h2 {
    color: white;
    margin-bottom: 40px;
    text-align: center;
}

footer h2:after {
    background: white;
}

.footer-info {
    max-width: 800px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 16px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.footer-item:last-child {
    border-bottom: none;
}

.footer-icon {
    font-size: 24px;
    min-width: 40px;
    color: #b58b5f;
}

.footer-text {
    flex: 1;
}

.footer-text strong {
    color: #b58b5f;
    font-weight: 600;
    margin-bottom: 5px;
    display: inline-block;
}

.footer-text a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-text a:hover {
    color: #b58b5f;
}

.footer-disclaimer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-disclaimer p {
    color: #999;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.footer-copyright {
    color: #666 !important;
    font-size: 13px !important;
}

/* ===== КНОПКА НАВЕРХ ===== */
.scrollToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #b58b5f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.scrollToTop.visible {
    opacity: 1;
    visibility: visible;
}

.scrollToTop:hover {
    background: #9a7348;
    transform: translateY(-3px);
}

.scrollToTop svg {
    width: 24px;
    height: 24px;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.modal__content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.modal__close:hover {
    color: #b58b5f;
}

.modal__title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.modal__subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.modal__field {
    margin-bottom: 20px;
}

.modal__input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.modal__input:focus {
    outline: none;
    border-color: #b58b5f;
}

.modal__submit {
    width: 100%;
    padding: 16px;
    background: #b58b5f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.modal__submit:hover {
    background: #9a7348;
}

.modal__policy {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}

.modal__success {
    text-align: center;
    padding: 20px 0;
}

.modal__success-icon {
    width: 80px;
    height: 80px;
    background: #b58b5f;
    color: white;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
}

.modal__success-btn {
    background: #b58b5f;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

.modal__success-btn:hover {
    background: #9a7348;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }

    .price-card--popular {
        grid-column: span 2;
        order: -1;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background: #0f0f0f;
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        gap: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }

    header nav.active {
        display: flex;
    }

    header nav a {
        font-size: 18px;
        padding: 10px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    header nav a:last-child {
        border-bottom: none;
    }

    .header-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .logo {
        height: 50px;
    }

    #hero {
        height: calc(100vh - 100px);
        min-height: 500px;
    }

    #hero h1 {
        font-size: 32px;
    }

    #hero p {
        font-size: 16px;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 28px;
    }

    .services .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-item {
        padding: 30px 20px;
    }

    .service-icon {
        width: 80px;
        height: 80px;
        padding: 15px;
    }

    .service-item h3 {
        font-size: 20px;
    }

    .footer-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .footer-icon {
        margin-bottom: 5px;
    }

    .footer-disclaimer p {
        font-size: 12px;
        padding: 0 15px;
    }

    .scrollToTop {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }

    .scrollToTop svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .header-btn {
        display: none;
    }

    .burger-menu {
        margin-left: auto;
    }

    #hero {
        min-height: 400px;
    }

    .services .services-grid {
        grid-template-columns: 1fr;
    }
}