/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Manrope', sans-serif; color: #111614; background: #fff; }

:root {
    --nv-green:       #6bb476;
    --nv-green-dark:  #4d9659;
    --nv-green-light: #edf6ef;
    --nv-black:       #111614;
    --nv-dark:        #0e1512;
    --nv-gray:        #6b7280;
    --nv-gray-light:  #f5f6f5;
    --nv-border:      #e5e7eb;
    --page-width:     1240px;
    --page-pad:       32px;
}

ul.article-toc__list li::before{
    display: none;
}
.main > .container {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width:100% !important;
    padding-inline: 0px !important;
    width: 100% !important;
}
.container {
        margin-left: auto !important;
    margin-right: auto !important;
    max-width: calc(var(--theme-page-width, 1500px) + calc(var(--theme-page-width-padding, 32px) * 2) - var(--theme-page-width-diff, 0px)) !important;
    padding-inline: var(--theme-page-width-padding, 32px) !important;
    width: 100% !important;
}
.main > .container .maxwidth-theme.wide- {
    max-width: 100%;
    padding-inline: 0 !important;
}

/* ═══════════════════════════════════════
   ТИПОГРАФИЯ
═══════════════════════════════════════ */
.section-title {
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}
.section-lead {
    font-size: 17px;
    line-height: 1.8;
    color: #6b7280;
    max-width: 760px;
}
.section-header { margin-bottom: 40px; }

/* ═══════════════════════════════════════
   КНОПКИ
═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}
.btn-green { background: var(--nv-green); color: #fff; }
.btn-green:hover {
    background: var(--nv-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(107,180,118,0.4);
    color: #fff;
}

/* ═══════════════════════════════════════
   СЕКЦИИ
═══════════════════════════════════════ */
.section        { padding: 80px 0; }
.section--white { background: #fff; }
.section--gray  { background: var(--nv-gray-light); }
.section--dark  { background: var(--nv-dark); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
    background: #fff;
    position: relative;
    overflow: hidden;
    padding: 64px 0 72px;
    border-bottom: 1px solid var(--nv-border);
}
.hero__pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url(https://new.novotels.ru/local/pattern-01.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    pointer-events: none;
}
.hero__grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(107,180,118,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107,180,118,0.1) 1px, transparent 1px),
        linear-gradient(rgba(107,180,118,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107,180,118,0.04) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
    mask-image: radial-gradient(ellipse 90% 100% at 70% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 90% 100% at 70% 50%, black 20%, transparent 80%);
}
.hero .container { position: relative; z-index: 3; }

.hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 20px;
}
.hero__breadcrumb a { color: var(--nv-green); text-decoration: none; transition: color 0.2s; }
.hero__breadcrumb a:hover { color: var(--nv-green-dark); }

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(107,180,118,0.3);
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--nv-green-dark);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 28px;
    background: rgba(107,180,118,0.06);
}
.hero__tag-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--nv-green);
    animation: blink 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero__cols {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}
.hero__title {
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #111614;
    margin-bottom: 18px;
}
.hero__title em { font-style: normal; color: var(--nv-green-dark); }
.hero__lead {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 560px;
}
.hero__meta { display: flex; gap: 20px; flex-wrap: wrap; }
.hero__meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}
.hero__meta-item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--nv-green); }

.hero__stat-card {
    background: #fff;
    border: 1.5px solid var(--nv-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.hero__stat-card__label {
    padding: 14px 24px;
    border-bottom: 1px solid var(--nv-border);
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--nv-gray-light);
}
.hero__stat-list { padding: 8px 24px; }
.hero__stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--nv-border);
}
.hero__stat-item:last-child { border-bottom: none; }
.hero__stat-num {
    font-size: 28px;
    font-weight: 900;
    color: #111614;
    letter-spacing: -0.03em;
    line-height: 1;
    flex-shrink: 0;
}
.hero__stat-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    text-align: right;
}

/* ═══════════════════════════════════════
   ФИЛЬТРЫ
═══════════════════════════════════════ */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 16px 20px;
    background: var(--nv-gray-light);
    border: 1.5px solid var(--nv-border);
    border-radius: 14px;
}
.filters-bar__label {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-right: 4px;
}
.filters-bar__divider {
    width: 1px;
    height: 20px;
    background: var(--nv-border);
    margin: 0 8px;
}
.filter-btn {
    padding: 7px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--nv-border);
    background: #fff;
    color: #374151;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.filter-btn:hover { border-color: var(--nv-green); color: var(--nv-green-dark); }
.filter-btn--active {
    background: var(--nv-green-light);
    border-color: rgba(107,180,118,0.4);
    color: var(--nv-green-dark);
}

/* ═══════════════════════════════════════
   ГРИД КЕЙСОВ — 2 В РЯД
═══════════════════════════════════════ */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ═══════════════════════════════════════
   КАРТОЧКА КЕЙСА
═══════════════════════════════════════ */
.case-card {
    background: #fff;
    border: 1.5px solid var(--nv-border);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.case-card:hover {
    border-color: rgba(107,180,118,0.45);
    box-shadow: 0 8px 40px rgba(107,180,118,0.1);
    transform: translateY(-2px);
}

.case-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.case-card__geo {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    margin-left: auto;
}

.industry-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.industry-badge--medicine { background: #eff6ff; color: #1d4ed8; border: 1px solid rgba(59,130,246,0.2); }
.industry-badge--industry { background: #fef3c7; color: #92400e; border: 1px solid rgba(245,158,11,0.2); }
.industry-badge--fuel     { background: #fef2f2; color: #991b1b; border: 1px solid rgba(239,68,68,0.2); }

.case-card__title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111614;
    line-height: 1.25;
}
.case-card__desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.65;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--nv-border);
}

/* Метрики */
.case-metrics {
    display: flex;
    gap: 8px;
}
.case-metric {
    flex: 1;
    background: var(--nv-gray-light);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.case-metric--full { flex: 0 0 100%; text-align: center; }
.case-metric__num {
    font-size: 22px;
    font-weight: 900;
    color: #111614;
    letter-spacing: -0.03em;
    line-height: 1;
}
.case-metric--full .case-metric__num { font-size: 26px; }
.case-metric__label {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 600;
    line-height: 1.3;
}

/* Результат */
.case-result {
    font-size: 13px;
    font-weight: 600;
    color: var(--nv-green-dark);
    background: var(--nv-green-light);
    border: 1px solid rgba(107,180,118,0.25);
    border-radius: 10px;
    padding: 12px 16px;
    line-height: 1.6;
}

/* Теги */
.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.case-tag {
    padding: 4px 10px;
    background: #f9fafb;
    border: 1.5px solid var(--nv-border);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

/* Ссылка */
.case-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--nv-green-light);
    border: 1.5px solid rgba(107,180,118,0.3);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--nv-green-dark);
    text-decoration: none;
    transition: all 0.2s;
    margin-top: auto;
}
.case-link svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform 0.2s; }
.case-link:hover { background: var(--nv-green); border-color: var(--nv-green); color: #fff; }
.case-link:hover svg { transform: translateX(3px); }

/* ═══════════════════════════════════════
   ПИСЬМА
═══════════════════════════════════════ */
.letters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.letter-card {
    background: #fff;
    border: 1.5px solid var(--nv-border);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.letter-card:hover {
    border-color: rgba(107,180,118,0.4);
    box-shadow: 0 4px 20px rgba(107,180,118,0.08);
}
.letter-card__ico {
    width: 52px; height: 52px;
    background: var(--nv-green-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nv-green-dark);
}
.letter-card__ico svg { width: 28px; height: 28px; }
.letter-card__name { font-size: 14px; font-weight: 700; color: #111614; line-height: 1.4; }
.letter-card__geo  { font-size: 12px; color: #9ca3af; font-weight: 500; }

/* ═══════════════════════════════════════
   CTA
═══════════════════════════════════════ */
.cta {
    padding: 100px 0;
    background: var(--nv-dark);
    position: relative;
    overflow: hidden;
    text-align: center;
    border-top: 1px solid rgba(107,180,118,0.1);
}
.cta__glow {
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107,180,118,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.cta .container { position: relative; z-index: 1; }
.cta__inner { max-width: 680px; margin: 0 auto; }
.cta__eyebrow {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(107,180,118,0.3);
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--nv-green);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: rgba(107,180,118,0.08);
}
.cta__title {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}
.cta__text {
    font-size: 16px;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    margin-bottom: 12px;
}
.cta__actions { margin-top: 32px; }

/* ═══════════════════════════════════════
   АНИМАЦИИ
═══════════════════════════════════════ */
.text-animate-1 {
    opacity: 0;
    transform: translateY(35px);
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), opacity 0.5s ease;
}
.text-animate-1._active { opacity: 1; transform: translateY(0); }

.text-animate-2 {
    opacity: 0;
    transform: translateY(35px);
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), opacity 0.5s ease;
    transition-delay: 0.15s;
}
.text-animate-2._active { opacity: 1; transform: translateY(0); }

.image-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.22,1,0.36,1);
}
.image-fade-up._active { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════
   АДАПТИВ
═══════════════════════════════════════ */
@media (max-width: 1000px) {
    .cases-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .hero__cols { grid-template-columns: 1fr; gap: 32px; }
    .letters-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .section { padding: 56px 0; }
    .cta { padding: 64px 0; }
    :root { --page-pad: 20px; }
    .hero { padding: 52px 0 60px; }
    .filters-bar { gap: 6px; }
    .filters-bar__divider { display: none; }
    .case-card { padding: 20px; }
    .case-metrics { flex-wrap: wrap; }
}