/* Базовые стили - Mobile First подход */

:root {
    /* Современная палитра - мягкие синий + зелёный */
    --primary-color: #4da6ff;
    --primary-hover: #3399ff;
    --primary-dark: #1a88ff;
    --secondary-color: #52d982;
    --secondary-hover: #3dcc6f;
    --accent-blue: #5b9fff;
    --accent-green: #66e699;
    --success-color: #52d982;
    --danger-color: #ff5c7a;
    --warning-color: #ffb84d;
    
    /* Фоны с градиентами - более светлые */
    --bg-color: #1a2332;
    --bg-secondary: #243447;
    --bg-card: #2d3f54;
    --bg-gradient: linear-gradient(135deg, #1a2332 0%, #243447 50%, #2d3f54 100%);
    
    /* Текст - улучшенная контрастность */
    --text-color: #e8f0ff;
    --text-light: #a8b8d0;
    --text-bright: #ffffff;
    
    /* Границы и эффекты - более мягкие */
    --border-color: rgba(77, 166, 255, 0.25);
    --border-glow: rgba(77, 166, 255, 0.4);
    --shadow: 0 4px 20px rgba(77, 166, 255, 0.1);
    --shadow-md: 0 8px 30px rgba(77, 166, 255, 0.15);
    --shadow-lg: 0 12px 40px rgba(82, 217, 130, 0.2);
    --glow: 0 0 15px rgba(77, 166, 255, 0.3);
    --glow-green: 0 0 15px rgba(82, 217, 130, 0.3);
    
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(77, 166, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(82, 217, 130, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: var(--text-bright);
    text-shadow: 0 2px 8px rgba(77, 166, 255, 0.2);
}

h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.logo-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    transition: var(--transition);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(77, 166, 255, 0.3);
    line-height: 1.2;
}

.logo-text-domain {
    font-size: 0.7em;
    font-weight: 400;
    color: var(--text-light);
    opacity: 0.85;
}

.logo-link:hover {
    text-decoration: none;
}

.logo-link:hover .logo-icon {
    opacity: 0.9;
    filter: brightness(1.1);
    transform: scale(1.05);
}

.logo-link:hover .logo-text {
    filter: brightness(1.15);
    text-shadow: 0 0 15px rgba(77, 166, 255, 0.5);
}

/* Навигация */
.nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
}

.nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.nav.active {
    display: block;
}

.nav-list {
    list-style: none;
    padding: 0;
}

.nav-item {
    border-bottom: 1px solid var(--border-color);
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-link {
    display: block;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transition: height 0.3s;
}

.nav-link:hover {
    background: rgba(77, 166, 255, 0.08);
    text-decoration: none;
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.nav-link:hover::before {
    height: 60%;
}

/* Выпадающее меню */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    content: '▼';
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.7rem;
    transition: transform 0.3s;
    vertical-align: middle;
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown.active .dropdown-menu,
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    line-height: 1.4;
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background: rgba(77, 166, 255, 0.1);
    color: var(--primary-color);
    padding-left: 1.25rem;
    text-decoration: none;
}

/* Мобильная версия выпадающего меню */
@media (max-width: 767px) {
    .nav-item.dropdown {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item.dropdown:last-child {
        border-bottom: none;
    }

    .dropdown-menu {
        position: static !important;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border: none;
        border-top: 1px solid var(--border-color);
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
        background-color: rgba(36, 52, 71, 0.5);
        min-width: auto;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-link {
        padding-left: 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown-link:last-child {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item.dropdown:last-child .dropdown-link:last-child {
        border-bottom: none;
    }
}

/* Основной контент */
.main {
    min-height: calc(100vh - 200px);
    padding: 2.5rem 0;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(77, 166, 255, 0.3);
}

.breadcrumbs-separator {
    margin: 0 0.5rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(77, 166, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(77, 166, 255, 0.4), var(--glow);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
    color: white;
    text-decoration: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-green));
    color: white;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(82, 217, 130, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--secondary-hover), var(--secondary-color));
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(82, 217, 130, 0.4), var(--glow-green);
    transform: translateY(-2px);
}

.btn-success:hover::before {
    left: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: rgba(26, 35, 50, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-links li {
    line-height: 1.3;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Карточки */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card:hover::before {
    opacity: 1;
}

.card h3 a {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-title {
    margin-bottom: 1rem;
}

/* Секции */
.section {
    margin-bottom: 3rem;
}

.section-title {
    margin-bottom: 1.5rem;
}

/* Блок навигации (Содержание) */
.content-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.content-nav h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-bright);
}

.content-nav ul {
    margin: 0;
    padding-left: 1.5rem;
    columns: 2;
    column-gap: 2rem;
    list-style: none;
    padding-left: 0;
}

.content-nav li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.25rem;
}

.content-nav li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
}

.content-nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.content-nav a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .content-nav ul {
        columns: 1;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-link {
        gap: 0.5rem;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.hero-trust li {
    color: var(--text-light);
    font-size: 0.9375rem;
    position: relative;
    padding-left: 1.5rem;
}

.hero-trust li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.benefit:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.benefit h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-bright);
}

.benefit p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* CTA Section */
.cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.08), rgba(82, 217, 130, 0.08));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* TOC Section */
.toc {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc li {
    margin: 0;
}

.toc a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.toc a:hover {
    background: rgba(77, 166, 255, 0.1);
    color: var(--primary-color);
    text-decoration: none;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card-micro {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* FAQ Section */
.faq {
    margin-top: 3rem;
}

.faq h2 {
    margin-bottom: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}

.faq-item h3 {
    padding: 1.25rem;
    background: rgba(36, 52, 71, 0.5);
    margin: 0;
    font-size: 1.125rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-item h3:hover {
    background: rgba(77, 166, 255, 0.08);
    color: var(--primary-color);
}

.faq-item > div {
    padding: 1.25rem;
    padding-top: 0;
}

.faq-item p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.faq-item p:last-child {
    margin-bottom: 0;
}

/* Списки */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Таблицы */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.15), rgba(82, 217, 130, 0.15));
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
}

tr:hover {
    background: rgba(77, 166, 255, 0.08);
    box-shadow: 0 0 8px rgba(77, 166, 255, 0.15);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-md), var(--glow);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-color);
}

/* Утилиты */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-light);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Адаптивность для планшетов и десктопов */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 2rem;
    }

    .header-content {
        padding: 1rem 2rem;
    }

    .nav-toggle {
        display: none;
    }

    .nav {
        display: block;
        position: static;
        background: none;
        border: none;
        box-shadow: none;
    }

    .nav-list {
        display: flex;
        gap: 1.5rem;
    }

    .nav-item {
        border-bottom: none;
    }

    .nav-link {
        padding: 0.5rem 0;
    }

    /* Десктопная версия выпадающего меню */
    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin-top: 0.5rem;
        background-color: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
        min-width: 220px;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-link {
        padding: 0.5rem 1rem;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .dropdown-link:last-child {
        border-bottom: none;
    }

    .dropdown-link:hover {
        padding-left: 1.25rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .main {
        padding: 3.5rem 0;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero-trust {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .toc ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .main {
        padding: 4.5rem 0;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Lazy load изображений */
img {
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

