/* Vanilla CSS + Organic Nature Design для Tradycyjna Chata */

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Цветовая палитра Organic Nature */
:root {
    --primary-brown: #8B4513;
    --secondary-brown: #A0522D;
    --light-brown: #D2691E;
    --cream: #F5F5DC;
    --beige: #F5F3F0;
    --sage-green: #9CAF88;
    --dark-green: #556B2F;
    --text-dark: #2F2F2F;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --light-shadow: rgba(139, 69, 19, 0.1);
    --medium-shadow: rgba(139, 69, 19, 0.2);
}

/* Типографика */
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--beige);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    color: var(--primary-brown);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

h2 {
    font-size: 2rem;
    font-weight: bold;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

a {
    color: var(--primary-brown);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-brown);
    text-decoration: underline;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--light-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background-color: var(--cream);
    text-decoration: none;
}

.nav a.active {
    background-color: var(--primary-brown);
    color: var(--white);
}

/* Hero секция */
.hero {
    background: linear-gradient(rgba(139, 69, 19, 0.7), rgba(139, 69, 19, 0.7)), url('../img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 6rem 2rem;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--cream);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--sage-green);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--medium-shadow);
    text-decoration: none;
    color: var(--white);
}

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

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

/* Контейнеры */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

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

/* Сетка */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Карточки */
.card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--light-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--medium-shadow);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-brown);
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--light-shadow);
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--cream);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(156, 175, 136, 0.1);
}

.form-textarea {
    height: 120px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Контактная информация */
.contact-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--light-shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-brown);
}

/* Социальные сети */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    padding: 10px;
    background-color: var(--sage-green);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--white);
}

/* Footer */
.footer {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--cream);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--cream);
}

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

.footer-bottom {
    border-top: 1px solid rgba(245, 245, 220, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: var(--cream);
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--cream);
    padding: 1rem 0;
}

.breadcrumbs-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumbs-list li:not(:last-child)::after {
    content: "→";
    margin-left: 0.5rem;
    color: var(--text-light);
}

/* Структурированные данные */
.business-hours {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px var(--light-shadow);
    margin: 2rem 0;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--cream);
}

.hours-row:last-child {
    border-bottom: none;
}

/* Утилиты */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: 0 3px 15px var(--light-shadow);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--sage-green);
    outline-offset: 2px;
}