/* ========================================
   Maltipoodle.ru - Landing Page Styles
   Light theme with AnimalSpa Blue accents
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Colors - AnimalSpa Brand */
    --color-primary: #2469F7;
    --color-primary-dark: #1a50cc;
    --color-primary-light: #4d85ff;
    --color-accent: #d959c4;
    --color-accent-light: #e580d6;

    /* Neutrals - Light Theme */
    --color-bg: #ffffff;
    --color-bg-alt: #f5f7fa;
    --color-bg-card: #ffffff;
    --color-surface: #f0f4f8;

    /* Text */
    --color-text: #1a1a2e;
    --color-text-secondary: #4a5568;
    --color-text-muted: #718096;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2164ff 0%, #4d85ff 100%);
    --gradient-accent: linear-gradient(135deg, #d959c4 0%, #e580d6 100%);
    --gradient-hero: linear-gradient(180deg, rgba(33, 100, 255, 0.05) 0%, transparent 50%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(33, 100, 255, 0.15);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-wrap: break-word; /* Добавлено: перенос длинных слов */
    word-wrap: break-word;
    hyphens: auto; /* Добавлено: автоматические переносы */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
    text-decoration: none;
}

.logo-img {
    height: 42px;
    /* Чуть уменьшил для круглого логотипа, чтобы смотрелось гармонично */
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    /* На всякий случай для круглой картинки */
}

.logo:hover {
    transform: scale(1.02);
}

.logo-text {
    color: var(--color-primary);
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--accent {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-link--accent:hover {
    color: var(--color-primary-dark);
}

/* Dropdown menu (desktop) */
.nav-dropdown {
    position: relative;
}

.nav-dropdown__toggle {
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown__toggle::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-dropdown__toggle:hover {
    color: var(--color-primary);
}

.nav-dropdown__toggle:hover::after {
    width: 100%;
}

.nav-dropdown__arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown__arrow,
.nav-dropdown.is-open .nav-dropdown__arrow {
    transform: rotate(180deg);
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: var(--space-xs) 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 100;
    list-style: none;
}

.nav-dropdown:hover .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown__menu a {
    display: block;
    padding: var(--space-xs) var(--space-md);
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown__menu a:hover {
    background: var(--color-surface);
    color: var(--color-primary);
}

/* Burger button */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.burger:hover {
    background: var(--color-surface);
}

.burger__line {
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
    transform-origin: center;
}

.burger.is-active .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.is-active .burger__line:nth-child(2) {
    opacity: 0;
}

.burger.is-active .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Body scroll lock */
body.menu-open {
    overflow: hidden;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(72px + var(--space-2xl)) 0 var(--space-2xl);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

/* Логотип перенесен в заголовок и карточки */

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(33, 100, 255, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(217, 89, 196, 0.05), transparent);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
    z-index: 2;
    /* Поднимаем текст над водяным знаком */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(33, 100, 255, 0.1);
    border: 1px solid rgba(33, 100, 255, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    width: fit-content;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-title-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-inline-logo {
    height: 1.2em;
    /* Пропорционально тексту */
    width: auto;
    opacity: 0.9;
}

.hero-title--gradient {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 500px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
    max-width: 100%;
    height: auto;
}

.hero-image:hover .hero-img {
    transform: scale(1.02) translateY(-5px);
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(33, 100, 255, 0.12) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(33, 100, 255, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(33, 100, 255, 0.4);
}

.btn--secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
    background: rgba(33, 100, 255, 0.05);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-alt);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(33, 100, 255, 0.2), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card--brand {
    background: rgba(36, 105, 247, 0.03);
    border-color: rgba(36, 105, 247, 0.1);
}

.feature-card--brand::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
    background: url('images_design/logo.svg') no-repeat center;
    background-size: contain;
    opacity: 0.06;
    z-index: -1;
    transform: rotate(-10deg);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.feature-card--brand:hover::after {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(33, 100, 255, 0.2);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.feature-card:nth-child(2) .feature-icon {
    animation-delay: 0.5s;
}

.feature-card:nth-child(3) .feature-icon {
    animation-delay: 1s;
}

.feature-card:nth-child(4) .feature-icon {
    animation-delay: 1.5s;
}

.feature-card:nth-child(5) .feature-icon {
    animation-delay: 2s;
}

.feature-card:nth-child(6) .feature-icon {
    animation-delay: 2.5s;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.feature-description {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ========================================
   Showcase Section
   ======================================== */
.showcase {
    padding: var(--space-2xl) 0;
    background: var(--color-bg);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: center;
}

.showcase-image {
    position: relative;
}

.showcase-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
}

.showcase-image:hover .showcase-img {
    transform: scale(1.02);
}

.showcase-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.showcase-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.showcase-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.showcase-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.showcase-features li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text);
    font-weight: 500;
}

.showcase-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(33, 100, 255, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(33, 100, 255, 0.3) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: var(--space-2xl) 0;
    background: var(--color-bg);
}

.cta-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(30deg);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: white;
}

.cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.cta-section .btn--primary {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-section .btn--primary:hover {
    background: var(--color-bg-alt);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-bg-alt);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* .footer-content удален */

.footer-bottom {
    text-align: center;
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.copyright a {
    color: var(--color-primary);
    font-weight: 500;
}

.copyright a:hover {
    text-decoration: underline;
}

/* ========================================
   Breadcrumbs
   ======================================== */
.breadcrumbs {
    padding: calc(72px + var(--space-sm)) 0 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.breadcrumbs__sep {
    margin: 0 0.375rem;
    opacity: 0.5;
}

.breadcrumbs__current {
    color: var(--color-text-secondary);
}

/* ========================================
   Article Page (ears.html)
   ======================================== */
.article-page {
    background: var(--color-bg);
}

.article-page .article-hero {
    padding-top: calc(72px + var(--space-2xl));
}

.article-hero {
    padding: calc(72px + var(--space-2xl)) 0 var(--space-2xl);
    background: var(--gradient-hero);
}

.article-hero__content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: start;
}

.article-hero__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.article-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 999px;
    background: rgba(33, 100, 255, 0.12);
    color: var(--color-primary);
    font-weight: 600;
    width: fit-content;
}

.article-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.article-hero__description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 640px;
}

.article-hero__meta {
    display: flex;
    gap: var(--space-md);
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.article-hero__card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.article-hero__card h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.article-hero__card ul {
    list-style: none;
    display: grid;
    gap: var(--space-sm);
}

.article-hero__card li::before {
    content: '•';
    color: var(--color-primary);
    margin-right: var(--space-xs);
}

.article-section {
    padding: var(--space-2xl) 0;
    background: var(--color-bg);
}

.article-section--alt {
    background: var(--color-bg-alt);
}

.article-section__content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: start;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}

.article-grid--wide {
    margin-top: var(--space-xl);
}

.article-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.article-card h3 {
    margin-bottom: var(--space-xs);
}

.highlight-card,
.info-card,
.warning-card,
.callout-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.highlight-card {
    border-left: 4px solid var(--color-primary);
}

.info-card {
    border-left: 4px solid var(--color-primary-light);
}

.warning-card {
    border-left: 4px solid var(--color-accent);
    background: rgba(217, 89, 196, 0.05);
}

.callout-card {
    background: var(--gradient-primary);
    color: white;
}

.callout-card a {
    color: white;
    text-decoration: underline;
}

.article-list {
    padding-left: 1.25rem;
    display: grid;
    gap: var(--space-xs);
}

.steps {
    margin-top: var(--space-xl);
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.steps ol {
    padding-left: 1.25rem;
    display: grid;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.note {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.photo-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.photo-card__placeholder {
    border-radius: var(--radius-md);
    background: var(--color-surface);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-weight: 600;
}

.photo-card figcaption {
    margin-top: var(--space-sm);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.checklist {
    margin-top: var(--space-lg);
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
}

.checklist ul {
    list-style: none;
    display: grid;
    gap: var(--space-xs);
}

.checklist li::before {
    content: '✓';
    color: var(--color-primary);
    margin-right: var(--space-xs);
}

.comparison {
    margin-top: var(--space-xl);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.comparison-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
}

.comparison-card--alert {
    border-left: 4px solid var(--color-accent);
    background: rgba(217, 89, 196, 0.05);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}

.faq-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        align-items: center;
    }

    .hero-title {
        align-items: center;
        text-align: center;
    }

    .hero-title-main {
        justify-content: center;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        order: -1;
    }

    .hero-img {
        max-width: 400px;
    }

    .showcase-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .showcase-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .showcase-text {
        align-items: center;
    }

    .showcase-features {
        justify-content: center;
    }

    .article-hero__content,
    .article-section__content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .article-section {
        padding: var(--space-xl) 0;
    }

    .highlight-card,
    .info-card,
    .warning-card,
    .callout-card,
    .article-card,
    .steps,
    .checklist,
    .comparison-card,
    .faq-card {
        padding: var(--space-md);
    }

    .article-hero__meta {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 1100px) {
    /* Burger visible */
    .burger {
        display: flex;
    }

    /* Mobile overlay visible when active */
    .mobile-overlay {
        display: block;
    }

    /* Nav-links as sidebar */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: calc(72px + var(--space-lg)) var(--space-lg) var(--space-lg);
        gap: 0;
        z-index: 1060;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-link {
        padding: var(--space-sm) 0;
        font-size: 1.0625rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link--accent {
        margin-top: var(--space-sm);
        border-bottom: none;
        text-align: center;
        background: var(--gradient-primary);
        color: white !important;
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--radius-sm);
        font-weight: 600;
    }

    /* Mobile dropdown */
    .nav-dropdown {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-dropdown__toggle {
        padding: var(--space-sm) 0;
        font-size: 1.0625rem;
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown__toggle::after {
        display: none;
    }

    .nav-dropdown__menu {
        position: static;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        min-width: 0;
        padding: 0 0 var(--space-xs) var(--space-sm);
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height var(--transition-base);
    }

    .nav-dropdown:hover .nav-dropdown__menu {
        transform: none;
    }

    .nav-dropdown.is-open .nav-dropdown__menu {
        max-height: 500px;
    }

    .nav-dropdown__menu a {
        padding: var(--space-xs) var(--space-sm);
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 768px) {


    .nav-dropdown__menu a {
        padding: var(--space-xs) var(--space-sm);
        border-radius: var(--radius-sm);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }

    .cta-card {
        padding: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .hero-title {
        font-size: 2rem;
        /* Уменьшаем, но не слишком сильно */
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .hero-img {
        max-width: 100%;
        /* Резиновая ширина */
        height: auto;
    }

    .btn {
        width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .gallery-grid {
        gap: var(--space-sm);
    }

    .article-hero__title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .section-title,
    h2 {
        font-size: clamp(1.5rem, 6vw, 2.25rem); /* Уменьшено для 320px */
        line-height: 1.2;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .article-list {
        padding-left: 1.25rem; /* Гарантированный отступ для буллет-поинтов */
    }
}
