/* ===== CSS Variables ===== */
:root {
    --primary: #142434;
    --primary-light: #1e3449;
    --secondary: #c9ad98;
    --secondary-light: #d5bfae;
    --tertiary: #ebe3e0;
    --tertiary-light: #f2ece9;
    --background: #f9f6ef;
    --background-dark: #f0ece2;
    --white: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    --transition-slow: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ===== Section ===== */
.section {
    padding: 100px 0;
}

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

.section-light {
    background-color: var(--tertiary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.section-dark .section-subtitle,
.section-header.light .section-subtitle {
    color: var(--tertiary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

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

.btn-primary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

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

.btn-block {
    width: 100%;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn.loading .btn-loader {
    display: inline-block;
}

.btn.loading span:not(.btn-loader) {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
    background-color: transparent;
}
@media (max-width: 1024px) {
    .header {
        background-color: var(--primary);
        padding: 12px 0;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }
}

.header.scrolled {
    background-color: var(--primary);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--white);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: var(--white);
}

.mobile-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: var(--primary);
}

.mobile-nav.active {
    max-height: 300px; /* Достаточно большое значение */
}

.mobile-nav-list {
    padding: 20px 0;
}

.mobile-nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 10px 0;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--secondary);
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
}
.logo-image {
    height: 30px; /* Настройте под нужный размер */
    width: auto;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 36, 52, 0.8) 0%, rgba(20, 36, 52, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding-top: 200px;
    color: var(--white);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-nav-prev {
    left: 20px;
}

.hero-nav-next {
    right: 20px;
}

.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.hero-indicator {
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-indicator.active {
    background: var(--secondary);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-content {
        padding-top: 150px;
    }
    
    .hero-nav {
        width: 40px;
        height: 40px;
    }
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    transition: var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 250px;
    height: 250px;
    background-color: var(--secondary);
    z-index: 0;
}

.about-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

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

.feature-icon {
    color: var(--secondary);
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image-decoration {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 640px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--background);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-slow);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background-color: var(--tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--secondary);
    color: var(--primary);
    transform: rotateY(360deg);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-gray);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Team Section ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-member {
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition-slow);
}

.team-member:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.team-member-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.team-member:hover .team-member-image img {
    transform: scale(1.1);
}

.team-member-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 36, 52, 0.95) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.team-member:hover .team-member-overlay {
    opacity: 1;
}

.team-member-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(20px);
    transition: var(--transition);
}

.team-member:hover .team-member-contacts {
    transform: translateY(0);
}

.team-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tertiary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.team-contact:hover {
    color: var(--secondary);
}

.team-member-info {
    padding: 25px;
}

.team-member-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.team-member-position {
    color: var(--text-gray);
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Testimonials Section ===== */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 400px;
    background-color: var(--white);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-slow);
}

.testimonial-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.star-filled {
    color: var(--secondary);
    fill: var(--secondary);
}

.testimonial-quote-icon {
    color: var(--secondary);
    margin-bottom: 20px;
}

.testimonial-text {
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 25px;
}

.testimonial-author {
    padding-top: 20px;
    border-top: 1px solid var(--tertiary);
}

.testimonial-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.testimonial-position {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background-color: var(--primary);
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 300px;
    }
}

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.contact-info-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info-text {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail {
    display: flex;
    gap: 20px;
}

.contact-detail-icon {
    width: 50px;
    height: 50px;
    background-color: var(--tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
}

.contact-detail-content h4 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.contact-detail-content a {
    color: var(--text-gray);
    transition: var(--transition);
}

.contact-detail-content a:hover {
    color: var(--secondary);
}

.contact-detail-content p {
    color: var(--text-gray);
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(201, 173, 152, 0.1);
}

.form-message {
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo .logo-text {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
}

.footer-description {
    margin-top: 20px;
    color: var(--tertiary);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    color: var(--tertiary);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact ul li {
    color: var(--tertiary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--tertiary);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--white);
    padding: 50px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--tertiary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--secondary);
    transform: rotate(90deg);
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 30px;
}

@media (max-width: 640px) {
    .modal-content {
        padding: 30px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}
