/* ===== БАЗОВЫЕ СТИЛИ ===== */
:root {
    --primary-green: #8AA68A;
    --primary-peach: #F4A896;
    --light-beige: #FDF6F0;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-gray);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #7a957a;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ===== HEADER ===== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-green);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 70px;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--white), transparent);
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    text-align: center;
}

.photographer-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.before-after {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.ba-item {
    text-align: center;
}

.ba-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.ba-item img:hover {
    transform: scale(1.05);
}

.ba-item span {
    display: block;
    font-weight: 600;
    color: var(--medium-gray);
}

/* ===== OFFER ===== */
.offer {
    background-color: var(--light-beige);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.offer-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.offer-card:hover {
    transform: translateY(-10px);
}

.offer-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(138, 166, 138, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.offer-icon i {
    font-size: 1.8rem;
    color: var(--primary-green);
}

.offer-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.offer-card p {
    color: var(--medium-gray);
}

/* ===== PORTFOLIO ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item img:hover {
    transform: scale(1.1);
}

/* ===== PRICING ===== */
.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.price-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-peach);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.price {
    margin: 20px 0;
}

.current-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    display: block;
}

.old-price {
    font-size: 1.5rem;
    color: var(--medium-gray);
    text-decoration: line-through;
    margin-left: 10px;
}

.price-note {
    color: var(--primary-peach);
    font-weight: 600;
    margin-bottom: 20px;
}

.price-features {
    list-style: none;
    text-align: left;
    margin: 30px 0;
}

.price-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features i {
    color: var(--primary-green);
    margin-right: 10px;
}

/* ===== PROCESS ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.step p {
    color: var(--medium-gray);
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background-color: var(--light-beige);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header p {
    color: var(--medium-gray);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-brand p {
    opacity: 0.8;
}

.footer-social h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-green);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--primary-peach);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--medium-gray);
}

.modal-icon {
    font-size: 4rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.modal h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.modal p {
    color: var(--medium-gray);
    margin-bottom: 25px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
    
    .current-price {
        font-size: 2.5rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .gallery-item {
        height: 200px;
    }
}

@media (min-width: 769px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .before-after {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}
/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ УЛУЧШЕНИЙ UX ===== */

/* Стили для кнопок подробностей */
.offer-details-btn {
    margin-top: 15px;
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.offer-details-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

/* Модальное окно для подробностей */
.offer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2001;
    align-items: center;
    justify-content: center;
}

.offer-modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: left;
    position: relative;
}

.offer-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--medium-gray);
}
.offer-modal h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.offer-modal p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Улучшенная адаптивность для очень маленьких экранов */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .gallery-item {
        height: 150px;
    }
}

/* Плавная анимация для появления элементов */
.offer-card, .step, .gallery-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержки для анимации */
.offer-card:nth-child(1) { animation-delay: 0.1s; }
.offer-card:nth-child(2) { animation-delay: 0.2s; }
.offer-card:nth-child(3) { animation-delay: 0.3s; }
.offer-card:nth-child(4) { animation-delay: 0.4s; }

/* Улучшение читаемости на мобильных */
@media (max-width: 768px) {
    .offer-details-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .offer-modal-content {
        padding: 25px 20px;
    }
}
/* Добавьте это в конец файла */
.offer-modal h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.offer-modal p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Отключаем анимацию появления, так как она конфликтует с IntersectionObserver */
/* ЗАКОММЕНТИРУЙТЕ или УДАЛИТЕ этот блок: */
/*
.offer-card, .step, .gallery-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offer-card:nth-child(1) { animation-delay: 0.1s; }
.offer-card:nth-child(2) { animation-delay: 0.2s; }
.offer-card:nth-child(3) { animation-delay: 0.3s; }
.offer-card:nth-child(4) { animation-delay: 0.4s; }
*/