:root {
    --color-primary: #A15F47;
    --color-primary-dark: #8B5039;
    --color-primary-light: #C17A5F;
    --color-secondary: #EFE1CE;
    --color-secondary-dark: #E0D0BB;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --color-gray: #6B6B6B;
    --color-gray-light: #F5F5F5;
    --font-family: 'Aboreto', serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 20px rgba(161, 95, 71, 0.1);
    --shadow-medium: 0 8px 30px rgba(161, 95, 71, 0.15);
    --shadow-strong: 0 12px 40px rgba(161, 95, 71, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow: hidden;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 120px;
    height: auto;
    animation: heartbeat 1.2s ease-in-out infinite;
}

.loader-text {
    font-size: 2rem;
    color: var(--color-primary);
    letter-spacing: 0.3em;
    animation: heartbeat 1.2s ease-in-out infinite;
    text-align: center;
    padding: 0 20px;
    white-space: nowrap;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.08);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.08);
    }
    70% {
        transform: scale(1);
    }
}

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

.container-wide {
    max-width: 1400px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition-smooth);
    overflow-x: hidden;
}

header.scrolled {
    background-color: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    transition: var(--transition-smooth);
    max-width: 100%;
    width: 100%;
}

header.scrolled .header-inner {
    padding: 15px 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 0.2em;
    transition: var(--transition-smooth);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.8;
}

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

.nav-menu a {
    color: var(--color-black);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-shrink: 0;
    margin-left: auto;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 998;
    overflow: hidden;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 1rem;
    letter-spacing: 0.15em;
    margin-bottom: 25px;
    color: var(--color-secondary);
}

.footer-section p,
.footer-section a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 2;
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: var(--color-secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-bottom a:hover {
    color: var(--color-secondary);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-family);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

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

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

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

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--color-black);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-gray);
    letter-spacing: 0.05em;
    margin-bottom: 50px;
}

.page-header {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(161, 95, 71, 0.1) 0%, transparent 100%);
}

.page-header-content {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1rem;
    color: var(--color-gray);
    letter-spacing: 0.1em;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    color: var(--color-black);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    border: 1px solid var(--color-secondary-dark);
    background-color: var(--color-white);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 100vw;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: var(--transition-smooth);
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    .nav-menu a::after {
        bottom: -8px;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    header {
        background-color: var(--color-white);
    }

    .header-inner {
        padding: 15px 20px;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .loader-text {
        font-size: 1.3rem;
        letter-spacing: 0.15em;
    }

    .header-inner {
        padding: 15px 20px;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 0.15em;
    }

    .nav-menu a {
        font-size: 1.5rem;
        letter-spacing: 0.08em;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .page-header {
        height: 40vh;
        min-height: 300px;
    }

    .page-header h1 {
        font-size: 2rem;
        letter-spacing: 0.15em;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .loader-text {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .header-inner {
        padding: 12px 15px;
    }

    .logo {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .menu-toggle {
        padding: 8px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }
}
