/* CSS Reset & Variables */
:root {
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', Helvetica, Arial, sans-serif;
    --color-text-main: #222222;
    --color-text-muted: #666666;
    --color-bg-body: #ffffff;
    --color-bg-grid: #70758f; /* Muted blue/purple from reference */
    --color-bg-footer: #1e2434; /* Dark navy from reference */
    --color-border: #e0e0e0;
    --color-accent: #3b5998;
    --max-width: 1200px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: #ffffff;
    color: var(--color-text-main);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary:hover {
    background-color: #f0f0f0;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.5);
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Header */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    padding: 8px 15px;
    border-radius: 20px;
    width: 250px;
}

.search-bar img {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    opacity: 0.5;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    width: 100%;
}

.logo a {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--color-text-main);
}

.header-spacer {
    width: 250px;
}

.main-nav {
    margin-top: 20px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.main-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 65vh;
    min-height: 500px;
    background-color: #f0f0f0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    width: 80%;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-overlay h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-btn {
    background: rgba(255,255,255,0.8);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn img {
    width: 14px;
    height: 14px;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* Editor's Picks */
.editors-picks {
    margin-bottom: 80px;
}

.picks-header h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}

.picks-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.pick-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
}

.pick-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pick-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-text-muted);
    line-height: 1;
    min-width: 30px;
}

.category {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.pick-text h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.pick-text h3 a:hover {
    text-decoration: underline;
}

.pick-text p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.picks-featured img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 20px;
}

.picks-featured h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin: 10px 0;
}

.picks-featured p {
    color: var(--color-text-muted);
}

/* Colored Grid Section */
.recipes-grid-section {
    background-color: var(--color-bg-grid);
    padding: 60px 0;
    color: #ffffff;
}

.grid-header h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
}

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

.grid-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 10px;
}

.grid-caption {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

/* Pre-Footer Section */
.pre-footer {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.pre-footer h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.pre-footer p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Footer */
.site-footer {
    background-color: var(--color-bg-footer);
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-newsletter h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #ffffff;
    font-family: var(--font-sans);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form button {
    padding: 12px 25px;
    background-color: #ffffff;
    color: var(--color-bg-footer);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #e0e0e0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.link-column h4 {
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.link-column ul {
    list-style: none;
}

.link-column li {
    margin-bottom: 12px;
}

.link-column a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.link-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.copyright p {
    margin-bottom: 5px;
}

.disclaimer {
    font-style: italic;
    max-width: 600px;
    opacity: 0.8;
}

.policy-links a {
    margin-left: 20px;
}

.policy-links a:hover {
    color: #ffffff;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px;
    background-color: #ffffff;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--color-accent);
}

.cookie-modal.show {
    transform: translateY(0);
}

.close-cookie {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
}

.close-cookie:hover {
    opacity: 1;
}

.close-cookie img {
    width: 12px;
    height: 12px;
}

.cookie-modal h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.cookie-modal p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-cookie {
    width: 100%;
    background-color: var(--color-bg-footer);
    color: #ffffff;
    border-radius: 4px;
}

.btn-cookie:hover {
    background-color: var(--color-accent);
}

/* Responsive Design */
@media (max-width: 992px) {
    .picks-content {
        grid-template-columns: 1fr;
    }
    
    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .header-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-bar, .header-spacer {
        width: 100%;
    }
    
    .header-spacer {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-overlay h2 {
        font-size: 2.2rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        gap: 15px;
        padding: 0 10px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .policy-links a {
        margin-left: 0;
        margin-right: 15px;
        display: inline-block;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .recipe-grid {
        grid-template-columns: 1fr;
    }
    
    .pick-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-modal {
        width: calc(100% - 40px);
        bottom: 20px;
        left: 20px;
    }
}
/* Inner page styles */
/* ==========================================================================
   ESTILOS DA PÁGINA INTERNA (ARTIGO)
   ========================================================================== */

.article-page {
    background-color: var(--color-bg-body);
    padding-bottom: 60px;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Cabeçalho do Artigo */
.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.article-header h1 {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    color: var(--color-text-main);
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.article-meta .author {
    color: var(--color-text-main);
    font-weight: 600;
    margin-right: 15px;
}

/* Imagens do Artigo (Adaptativas) */
.article-featured-image {
    margin-bottom: 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-featured-image img,
.in-article-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.in-article-image {
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
}

.in-article-image figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 12px;
    font-style: italic;
}

/* Estilos de Texto e Tags HTML */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
}

.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 {
    font-family: var(--font-serif);
    color: var(--color-text-main);
    margin: 40px 0 20px;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 2.2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.article-content h3 {
    font-size: 1.8rem;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content span.highlight {
    background-color: rgba(59, 89, 152, 0.1);
    color: var(--color-accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* Estilos para Listas (ul, ol) */
.article-content ul,
.article-content ol {
    margin: 0 0 30px 20px;
    padding-left: 20px;
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 12px;
}

.article-content ul li::marker {
    color: var(--color-accent);
}

.article-content ol li::marker {
    color: var(--color-accent);
    font-weight: 700;
    font-family: var(--font-serif);
}

/* Tabela de Conteúdo (Índice) */
.table-of-contents {
    background-color: #f9f9f9;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.table-of-contents h4 {
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.table-of-contents ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 10px;
}

.table-of-contents a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.table-of-contents a::before {
    content: '→';
    margin-right: 10px;
    color: var(--color-accent);
    font-weight: bold;
}

.table-of-contents a:hover {
    color: var(--color-accent);
}

/* Estilos de Tabela */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    text-align: left;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.article-content th, 
.article-content td {
    padding: 15px 20px;
}

.article-content th {
    background-color: var(--color-bg-grid);
    color: #ffffff;
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.article-content tr {
    border-bottom: 1px solid var(--color-border);
}

.article-content tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

.article-content tr:last-of-type {
    border-bottom: 2px solid var(--color-bg-grid);
}

/* Formulários Genéricos (Comentários e Contato) */
.comments-section, 
.contact-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.comments-section h3, 
.contact-section h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 10px;
}

.comments-section p, 
.contact-section p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.custom-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.custom-form .form-group {
    margin-bottom: 20px;
}

.custom-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.custom-form input, 
.custom-form textarea, 
.custom-form select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background-color: #fafafa;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.custom-form input:focus, 
.custom-form textarea:focus, 
.custom-form select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 89, 152, 0.1);
    background-color: #ffffff;
}

.btn-submit {
    background-color: var(--color-text-main);
    color: #ffffff;
    border-radius: 6px;
    padding: 15px 30px;
    font-size: 0.9rem;
}

.btn-submit:hover {
    background-color: var(--color-accent);
    color: #ffffff;
}

.contact-section {
    background-color: #f5f7fa;
    padding: 40px;
    border-radius: 12px;
    border-top: none;
    margin-top: 40px;
}

/* Artigos Relacionados (Перелинковка) */
.related-articles {
    background-color: var(--color-bg-body);
    padding: 40px 0 80px;
    border-top: 1px solid var(--color-border);
}

.related-header h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #ffffff;
    height: 100%;
    border: 1px solid var(--color-border);
}

.related-card a:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.related-card .card-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card a:hover img {
    transform: scale(1.05);
}

.related-card .card-content {
    padding: 25px;
}

.related-card .category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 10px;
    display: block;
}

.related-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-text-main);
    line-height: 1.4;
    margin: 0;
}

/* Responsividade da Página Interna */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2.5rem;
    }
    
    .article-container {
        padding: 40px 20px;
    }
    
    .custom-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .contact-section {
        padding: 30px 20px;
    }
}
.hero-image-container {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    background: #111;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.02);
    transition:
            opacity 0.8s ease,
            visibility 0.8s ease,
            transform 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    z-index: 2;
}

.hero-slide .hero-img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 5.5s ease;
}

.hero-slide.active .hero-img {
    transform: scale(1);
}

.hero-slide .hero-overlay {
    opacity: 0;
    transform: translateY(24px);
    transition:
            opacity 0.7s ease 0.25s,
            transform 0.7s ease 0.25s;
}

.hero-slide.active .hero-overlay {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.28) 45%,
            rgba(0, 0, 0, 0.58) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    z-index: 2;
}

.slider-controls {
    position: absolute;
    z-index: 5;
}

.slider-dots .dot {
    cursor: pointer;
    transition:
            width 0.3s ease,
            background-color 0.3s ease,
            opacity 0.3s ease,
            transform 0.3s ease;
}

.slider-dots .dot.active {
    transform: scale(1.15);
    opacity: 1;
}

.slider-btn {
    transition:
            transform 0.25s ease,
            opacity 0.25s ease,
            background-color 0.25s ease;
}

.slider-btn:hover {
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 768px) {
    .hero-image-container {
        min-height: 420px;
    }

    .hero-slide .hero-img {
        min-height: 420px;
    }
}
.hero-image-container {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    background: #111;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.02);
    transition:
            opacity 0.8s ease,
            visibility 0.8s ease,
            transform 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    z-index: 2;
}

.hero-slide .hero-img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 5.5s ease;
}

.hero-slide.active .hero-img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    z-index: 2;
    width: min(760px, calc(100% - 40px));
    max-width: 760px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-overlay h2 {
    max-width: 720px;
    margin: 0 0 24px;
    text-align: center;
    line-height: 1.08;
    word-break: normal;
    overflow-wrap: normal;
}

.hero-overlay .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-slide .hero-overlay {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 24px));
    transition:
            opacity 0.7s ease 0.25s,
            transform 0.7s ease 0.25s;
}

.hero-slide.active .hero-overlay {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.28) 45%,
            rgba(0, 0, 0, 0.58) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.slider-controls {
    position: absolute;
    z-index: 5;
}

.slider-dots .dot {
    cursor: pointer;
    transition:
            width 0.3s ease,
            background-color 0.3s ease,
            opacity 0.3s ease,
            transform 0.3s ease;
}

.slider-dots .dot.active {
    transform: scale(1.15);
    opacity: 1;
}

.slider-btn {
    transition:
            transform 0.25s ease,
            opacity 0.25s ease,
            background-color 0.25s ease;
}

.slider-btn:hover {
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 768px) {
    .hero-image-container {
        min-height: 420px;
    }

    .hero-slide .hero-img {
        min-height: 420px;
    }

    .hero-overlay {
        width: calc(100% - 28px);
    }

    .hero-overlay h2 {
        font-size: 30px;
        line-height: 1.12;
    }
}
.pre-footer {
    background: #f7f0e6;
    padding: 80px 20px 70px;
    border-top: 8px solid #6f7388;
}

.pre-footer .container {
    max-width: 820px;
    margin: 0 auto;
}

.pre-footer h2 {
    margin: 0 0 18px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    color: #1f1f1f;
    letter-spacing: -0.03em;
}

.pre-footer p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.75;
    color: #4d5b6b;
}

.references {
    background: #fffaf3;
    padding: 42px 20px 34px;
    border-top: 1px solid rgba(122, 31, 43, 0.08);
}

.references .container {
    max-width: 1140px;
    margin: 0 auto;
}

.references h2 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
    color: #1f1f1f;
    letter-spacing: -0.02em;
}

.references p {
    max-width: 980px;
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: #263241;
}

.references a {
    color: #7a1f2b;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(122, 31, 43, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.references a:hover {
    color: #d99a3d;
    border-color: #d99a3d;
}

@media (max-width: 768px) {
    .pre-footer {
        padding: 58px 18px 52px;
    }

    .pre-footer h2 {
        font-size: 28px;
    }

    .pre-footer p {
        font-size: 16px;
        line-height: 1.65;
    }

    .references {
        padding: 34px 18px 30px;
    }

    .references h2 {
        font-size: 23px;
    }

    .references p {
        font-size: 15px;
        line-height: 1.65;
    }
}
.references .container {
    max-width: 1140px;
    margin: 0 auto;
    background: #ffffff;
    padding: 28px 32px;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(31, 31, 31, 0.06);
    border: 1px solid rgba(122, 31, 43, 0.08);
}
.official-sources {
/*    background: #eef7ee;*/
    padding: 70px 20px 72px;
}

.official-sources .container {
    max-width: 1180px;
    margin: 0 auto;
}

.sources-header {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.sources-header span {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1aa64a;
}

.sources-header h2 {
    margin: 0 0 16px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    color: #061426;
    letter-spacing: -0.03em;
}

.sources-header p {
    margin: 0;
    font-size: 17px;
    line-height: 1.75;
    color: #36536b;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.source-card {
    display: block;
    min-height: 145px;
    padding: 22px 18px 20px;
    background: #ffffff;
    border: 1px solid #d9e4dc;
    border-top: 3px solid #1aa64a;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.source-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
    color: #061426;
}

.source-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #36536b;
}

.source-card:hover {
    transform: translateY(-4px);
    border-color: #1aa64a;
    box-shadow: 0 16px 35px rgba(6, 20, 38, 0.08);
}

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

@media (max-width: 640px) {
    .official-sources {
        padding: 54px 18px 56px;
    }

    .sources-header {
        margin-bottom: 26px;
    }

    .sources-header h2 {
        font-size: 27px;
    }

    .sources-header p {
        font-size: 15px;
        line-height: 1.65;
    }

    .sources-grid {
        grid-template-columns: 1fr;
    }

    .source-card {
        min-height: auto;
    }
}