/* Reset & Base */
:root {
    --header-bg: #bc3650;
    --text-color: #222222;
    --text-light: #575760;
    --accent-red: #ff0000;
    --white: #ffffff;
    --bg-gray: #f7f8f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--header-bg);
    color: var(--white);
    padding: 15px 0;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: underline;
    color: var(--white);
    letter-spacing: 1px;
}

/* Nav */
.main-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    opacity: 0.8;
}

/* Lang Switcher */
.lang-switcher {
    position: relative;
    cursor: pointer;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

.lang-switcher .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    color: var(--text-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    flex-direction: column;
    gap: 0;
    min-width: 120px;
    z-index: 100;
    padding: 5px 0;
}

.lang-switcher:hover .dropdown {
    display: flex;
}

.lang-switcher .dropdown li a {
    display: block;
    padding: 8px 15px;
    font-size: 14px;
}

.lang-switcher .dropdown li a:hover {
    background-color: #f0f0f0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
}

/* Content */
.content-area {
    background-color: var(--white);
    padding: 40px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

h1 {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none; /* Убрано подчеркивание */
}

h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 26px;
    text-align: center;
    margin: 30px 0 20px;
    line-height: 1.2em;
    font-weight: 400;
    color: var(--text-color);
}

h3 {
    font-size: 20px;
    margin: 20px 0 10px;
    font-weight: 700;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
}

article ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

article ul li {
    margin-bottom: 5px;
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

.hero-image {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

/* Buttons */
.btn-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.btn-red {
    background-color: var(--accent-red);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-red:hover {
    background-color: #cc0000;
    opacity: 1;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f3f3f3;
    font-weight: 700;
}

/* Slider */
.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.slider-wrapper {
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev { left: 10px; }
.next { right: 10px; }

.slider-arrow:hover {
    background: rgba(0,0,0,0.8);
}

/* FAQ Accordion */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

summary {
    padding: 15px 40px 15px 15px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    position: relative;
    background-color: #f9f9f9;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 18px;
}

details[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 15px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

/* Comments */
.comments-section {
    background-color: var(--white);
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comment-form {
    margin-bottom: 40px;
    background: #fcfcfc;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    scroll-margin-top: 100px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 80px;
    margin-bottom: 15px;
    font-family: inherit;
}

.comment-form .input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form input {
    width: 50%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-submit {
    background-color: #07B290;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

.btn-submit:hover {
    background-color: #059678;
}

.comment {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 700;
    color: #00B38F;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.comment-text {
    color: #555;
    font-size: 15px;
}

.reply-link {
    font-size: 12px;
    color: #00B38F;
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
    transition: opacity 0.3s;
}

.reply-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: var(--header-bg);
    color: #b2b2be;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

/* Cookie Banner Styles - GLOBAL */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    color: var(--white);
    padding: 15px 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
}

.cookie-banner a {
    text-decoration: underline;
    color: var(--white);
}

.cookie-banner a:hover {
    opacity: 0.8;
}

.btn-cookie {
    background-color: var(--white);
    color: var(--header-bg);
    border: none;
    padding: 8px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.3s;
}

.btn-cookie:hover {
    background-color: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
    .content-area, .comments-section {
        padding: 20px;
    }
    
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        padding: 20px;
        z-index: 999;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lang-switcher {
        border-left: none;
        padding-left: 0;
        width: 100%;
    }

    .lang-switcher .dropdown {
        position: static;
        box-shadow: none;
        background-color: rgba(0,0,0,0.1);
        color: white;
    }
    
    .lang-switcher .dropdown li a {
        color: white;
    }
    
    .comment-form .input-group {
        flex-direction: column;
    }
    
    .comment-form input {
        width: 100%;
    }

    /* Cookie Mobile Adjustments */
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }
}