/* Leerfolio.com - Основные стили */

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные переменные цветов из шаблона */
:root {
    --primary-bg: #FDFBF5;
    --accent-yellow: #FDCB6E;
    --accent-orange: #FDCF70;
    --accent-blue: #A8DADC;
    --accent-coral: #F1A1A1;
    --text-dark: #333333;
    --text-light: #888888;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Основные стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* Хедер */
.header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
}

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

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--accent-yellow);
}

.cta-button {
    background-color: var(--accent-yellow);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--accent-orange);
}

/* Бургер меню */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Мобильное меню */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 5px 15px var(--shadow);
    padding: 20px;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

/* Основной контент */
.main-content {
    margin-top: 80px;
}

/* Секции */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

/* Кнопки */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-yellow);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-orange);
    transform: translateY(-2px);
}

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

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

/* Цветные акценты */
.accent-blue {
    background-color: var(--accent-blue);
    color: var(--white);
}

.accent-orange {
    background-color: var(--accent-orange);
    color: var(--white);
}

.accent-coral {
    background-color: var(--accent-coral);
    color: var(--white);
}

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

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

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

.form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

/* Изображения */
.image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
    margin: 20px 0;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

/* FAQ аккордеон */
.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px var(--shadow);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
    color: var(--text-light);
}

.faq-answer.active {
    display: block;
}

.faq-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Футер */
.footer {
    background-color: var(--primary-bg);
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

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

.contact-info {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}


.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
    color: var(--text-light);
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .card {
        padding: 20px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* About Page Layout */
.about-story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-story-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-story-layout > div:last-child {
        order: 2; /* Изображение будет снизу на мобильных */
    }
    
    .about-story-layout > div:first-child {
        order: 1; /* Текст будет сверху на мобильных */
    }
}

/* Cookie Banner Styles */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid var(--accent-yellow);
    box-shadow: 0 -5px 20px var(--shadow);
    z-index: 10000;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.cookie-banner-text p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 14px;
}

.cookie-banner-text a {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: var(--accent-yellow);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background-color: var(--accent-orange);
    transform: translateY(-2px);
}

.cookie-btn-decline {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.cookie-btn-decline:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

.cookie-btn-settings {
    background-color: var(--accent-blue);
    color: var(--white);
}

.cookie-btn-settings:hover {
    background-color: #7BB3C1;
    transform: translateY(-2px);
}

.cookie-btn-secondary {
    background-color: #f0f0f0;
    color: var(--text-dark);
}

.cookie-btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Cookie Settings Styles */
.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.cookie-category h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.cookie-category p {
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-toggle.disabled {
    opacity: 0.6;
}

.cookie-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-yellow);
}

.cookie-toggle label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    #cookie-banner {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* Contact Section Styles */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info-section h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item h4 {
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.opening-hours {
    margin-bottom: 40px;
}

.opening-hours h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.opening-hours-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
}

.opening-hours-card p {
    margin-bottom: 10px;
}

.opening-hours-card p:last-child {
    margin-bottom: 0;
}

.why-choose h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.why-choose ul {
    list-style: none;
    padding: 0;
}

.why-choose li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.why-choose li span {
    color: var(--accent-yellow);
    margin-right: 10px;
}

.contact-form-card {
    padding: 40px;
    opacity: 1;
    transform: translateY(0px);
    transition: opacity 0.6s, transform 0.6s;
}

.contact-form-card h3 {
    font-size: 28px;
    margin-bottom: 30px;
}

/* Mobile Responsive for Contact Section */
@media (max-width: 768px) {
    .contact-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info-section h2 {
        font-size: 28px;
    }
    
    .contact-form-card {
        padding: 30px;
    }
    
    .contact-form-card h3 {
        font-size: 24px;
    }
}
