/* ============================================================
   Центр «Наши дети» — базовые стили
   Чистая адаптивная вёрстка для MODX
   ============================================================ */

:root {
   --green: #3f8f23;
   --green-deep: #2f6b18;
   --green-tint: #eef6e7;
   --green-tint-2: #f3f8ec;
   --ink: #23341a;
   --text: #3a4234;
   --muted: #6b7363;
   --soft-line: #eef0ea;
   --bg: #fbfaf7;
   /* радужные акценты из логотипа */
   --c-purple: #6a3fb0;
   --c-red: #d8392a;
   --c-gold: #f0a92a;
   --c-orange: #d4711f;
   --c-blue: #2f57c4;
   --c-sky: #4ba3dd;
   --radius: 22px;
   --shadow-card: 0 8px 26px rgba(35, 52, 26, .06);
   --shadow-soft: 0 6px 18px rgba(35, 52, 26, .05);
   --maxw: 1200px;
   
   --cookie-bg: #ffffff;
   --cookie-text: #3a4234;
   --cookie-accent: #3f8f23;      /* цвет кнопки "Принять" — подставь фирменный */
   --cookie-accent-hover: #2f6b18;
   --cookie-border: #e2e2e2;
   --cookie-shadow: 0 -4px 20px rgba(0,0,0,.12);
}

*,
*::before,
*::after {
   box-sizing: border-box
}

html {
   -webkit-text-size-adjust: 100%
}

body {
   margin: 0;
   font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
   color: var(--ink);
   background: var(--bg);
   line-height: 1.5;
   -webkit-font-smoothing: antialiased;
   min-height: 100vh;
   display: flex;
   flex-direction: column;
}

header,
footer,
main {
   width: 100%;
}

header,
footer {
   flex: none;
}

main {
   flex: 1;
}

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

a {
   color: inherit;
   text-decoration: none
}

h1,
h2,
h3,
p {
   margin: 0
}

ul {
   margin: 0;
   padding: 0;
   list-style: none
}

button {
   font-family: inherit
}

.container {
   max-width: var(--maxw);
   margin: 0 auto;
   padding: 0 24px;
   width: 100%
}

.mono {
   font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace
}

.visually-hidden {
   position: absolute;
   width: 1px;
   height: 1px;
   overflow: hidden;
   clip: rect(0 0 0 0)
}

/* ---------- Кнопки ---------- */
.btn {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   font-weight: 800;
   font-size: 16px;
   padding: 16px 28px;
   border-radius: 16px;
   cursor: pointer;
   border: none;
   transition: background .09s ease-in-out, transform .12s ease-in-out, box-shadow .15s ease;
   text-align: center;
}

.btn:hover {
   transform: translateY(-1px)
}

.btn-primary {
   background: var(--green);
   color: #fff;
   box-shadow: 0 10px 24px rgba(63, 143, 35, .28)
}
.btn-primary:hover {background: var(--green-deep);}

.btn-ghost {
   background: #fff;
   color: var(--green-deep);
   box-shadow: inset 0 0 0 2px #d7e6cb
}

.btn-ghost:hover {
        background: var(--green-deep);
    color: #fff;
    box-shadow: 0 10px 24px rgba(63, 143, 35, .28);
}

.btn-gold {
   background: var(--c-gold);
   color: #3a2400;
   box-shadow: 0 10px 24px rgba(0, 0, 0, .16)
}

/* ---------- Плейсхолдер фото ---------- */
.ph {
   border-radius: var(--radius);
   background: repeating-linear-gradient(45deg, #edf2e8, #edf2e8 16px, #e3eadc 16px, #e3eadc 32px);
   box-shadow: inset 0 0 0 1px #dbe5d0;
   display: flex;
   align-items: center;
   justify-content: center;
}

.ph span {
   font-family: ui-monospace, monospace;
   font-size: 13px;
   color: #7e9070;
   background: var(--bg);
   padding: 8px 16px;
   border-radius: 999px;
}

/* ============================================================
   ШАПКА
   ============================================================ */
.site-header {
   position: sticky;
   top: 0;
   z-index: 60;
   background: #fff;
   box-shadow: 0 2px 18px rgba(47, 107, 24, .07)
}

.util-bar {
   background: var(--green);
   color: #eaf6e1;
   font-size: 13px;
   font-weight: 600
}

.util-bar .container {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
   padding-top: 8px;
   padding-bottom: 8px
}

.util-info {
   display: flex;
   align-items: center;
   gap: 22px;
   flex-wrap: wrap
}

.util-info b {
   color: #fff;
   font-weight: 800
}

.util-info .lbl {
   opacity: .7
}

.util-phone {
   color: #fff;
   font-weight: 800;
   font-size: 14px;margin-left:auto;
   display: inline-flex;
   align-items: center;
   gap: 8px;
   white-space: nowrap
}

.util-phone .ico {
   width: 22px;
   height: 22px;
   border-radius: 50%;
   background: rgba(255, 255, 255, .18);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 12px
}

.header-main {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 20px;
   padding-top: 14px;
   padding-bottom: 14px
}

.brand {
   display: flex;
   align-items: center;
   gap: 14px;
   min-width: 0
}

.brand img {
   width: 58px;
   height: 58px;
   border-radius: 50%;
   object-fit: cover;
   flex: none;
   box-shadow: 0 0 0 3px var(--green-tint)
}

.brand-text {
   display: flex;
   flex-direction: column;
   min-width: 0
}

.brand-top {
   font-size: 11px;
   font-weight: 700;
   letter-spacing: .04em;
   color: var(--green);
   text-transform: uppercase;
   line-height: 1.2
}

.brand-name {
   font-size: 20px;
   font-weight: 900;
   color: var(--green-deep);
   line-height: 1.15
}

.brand-sub {
   font-size: 12px;
   font-weight: 600;
   color: var(--muted);
   line-height: 1.2
}

.main-nav {
   display: flex;
   align-items: center;
   gap: 4px
}

.main-nav a {
   padding: 10px 14px;
   border-radius: 12px;
   font-size: 15px;
   font-weight: 700;
   color: #3a4234;
   white-space: nowrap;
   transition: background .15s, color .15s
}
.main-nav li.active a {color: var(--green-deep);}
.main-nav a:hover {
   background: var(--green-tint);
   color: var(--green-deep)
}

.main-nav a.active {
   font-weight: 800;
   color: var(--green-deep);
   background: var(--green-tint)
}

.burger {
   display: none;
   width: 46px;
   height: 46px;
   border: none;
   border-radius: 14px;
   background: var(--green-tint);
   color: var(--green-deep);
   align-items: center;
   justify-content: center;
   cursor: pointer;
   flex: none;
   font-size: 22px
}

.mobile-drawer {
   display: none;
   border-top: 1px solid var(--soft-line);
   background: var(--bg);
   padding: 10px 16px 18px
}

.mobile-drawer a {
   display: block;
   padding: 13px 16px;
   border-radius: 12px;
   font-size: 16px;
   font-weight: 700;
   color: #3a4234;
   margin-top: 4px
}

.mobile-drawer a.active {
   font-weight: 800;
   color: var(--green-deep);
   background: var(--green-tint)
}

.mobile-contacts {
   margin-top: 14px;
   padding: 14px 16px;
   background: var(--green-tint);
   border-radius: 16px;
   display: flex;
   flex-direction: column;
   gap: 8px;
   font-size: 14px;
   color: var(--green-deep);
   font-weight: 600
}

.mobile-contacts .lbl {
   opacity: .6
}

.mobile-contacts a {
   color: var(--green);
   font-weight: 800;
   padding: 0;
   margin: 0
}

.site-header.open .mobile-drawer {
   display: block
}

@media (max-width:980px) {
   .main-nav {
      display: none
   }

   .burger {
      display: inline-flex
   }

   .util-info {
      display: none
   }
}

@media (max-width:560px) {
   .brand-name {
      font-size: 15px
   }

   .brand-top {
      font-size: 10px
   }

   .brand img {
      width: 50px;
      height: 50px
   }
}

/* ============================================================
   ОБЩИЕ СЕКЦИИ
   ============================================================ */
.eyebrow {
   font-size: 13px;
   font-weight: 800;
   letter-spacing: .08em;
   text-transform: uppercase;
   color: var(--c-purple)
}

.section-title {
   font-size: 34px;
   font-weight: 900;
   line-height: 1.15;
   color: var(--ink);
   margin-top: 12px
}

.lead {
   font-size: 17px;
   line-height: 1.75;
   color: #5c6654
}

/* Баннер внутренней страницы */
.page-hero {
   background: radial-gradient(700px 380px at 85% -20%, var(--green-tint), rgba(238, 246, 231, 0)), var(--bg);
   border-bottom: 1px solid var(--soft-line)
}

.page-hero .container {
   padding-top: 52px;
   padding-bottom: 48px
}

.breadcrumbs {
   font-size: 14px;
   font-weight: 700;
   color: #8a9a7d;
   margin-bottom: 30px;
   display:flex;
   align-items: center;
   gap:5px;
}
.breadcrumbs .breadcrumbs__separator {margin-left:5px;}
.breadcrumbs a {
   color: #8a9a7d
}

.breadcrumbs a:hover {
   color: var(--green-deep);
   text-decoration: underline;
}

.breadcrumbs .sep {
   opacity: .5;
   margin: 0 4px
}

.breadcrumbs .breadcrumbs__item-current {
   color: var(--green)
}

.page-hero h1 {
   font-size: 42px;
   font-weight: 900;
   line-height: 1.1
}

.page-hero p {
   font-size: 18px;
   line-height: 1.7;
   color: #5c6654;
   margin-top: 16px;
   max-width: 680px
}

/* ============================================================
   ГЛАВНАЯ
   ============================================================ */
.hero {
   position: relative;
   overflow: hidden;
   background: radial-gradient(900px 520px at 88% -10%, var(--green-tint) 0%, rgba(238, 246, 231, 0) 60%), var(--bg)
}

.hero .container {
   padding-top: 64px;
   padding-bottom: 72px;
}

.hero-grid {
   display: grid;
   grid-template-columns: 1.05fr .95fr;
   gap: 48px;
   align-items: center;
}

.badge {
   display: inline-flex;
   align-items: center;
   gap: 9px;
   background: var(--green-tint);
   color: var(--green-deep);
   font-weight: 800;
   font-size: 14px;
   padding: 8px 16px;
   border-radius: 999px
}

.badge .dot {
   width: 9px;
   height: 9px;
   border-radius: 50%;
   background: var(--green)
}

.hero h1 {
   font-size: 48px;
   line-height: 1.1;
   font-weight: 900;
   margin-top: 22px;
   letter-spacing: -.01em;
   text-wrap: balance
}

.hero h1 .accent {
   color: var(--green)
}

.hero-lead {
   font-size: 18px;
   line-height: 1.7;
   color: #5c6654;
   margin-top: 22px;
   max-width: 520px
}

.hero-actions {
   display: flex;
   gap: 14px;
   flex-wrap: wrap;
   margin-top: 30px
}

.chips {
   display: flex;
   gap: 14px;
   flex-wrap: wrap;
   margin-top: 34px
}

.chip {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   font-size: 14px;
   font-weight: 700;
   color: #3a4234
}

.chip .dot {
   width: 8px;
   height: 8px;
   border-radius: 50%
}

.hero-photo {
   position: relative
}

.hero-photo .ph {
   border-radius: 28px;
   box-shadow: inset 0 0 0 1px #dbe5d0, 0 24px 50px rgba(35, 52, 26, .1);
   position: relative;
}

.hero-photo .ph_image {
   position: relative;
   overflow: hidden;
   border-radius: 28px;
}

.hero-photo .ph_image img {
   position: relative;
   width: 100%;
   height: 100%;
}

.hero-badge {
   position: absolute;
   bottom: -18px;
   left: -18px;
   background: #fff;
   border-radius: 20px;
   padding: 16px 20px;
   box-shadow: 0 16px 36px rgba(35, 52, 26, .14);
   display: flex;
   align-items: center;
   gap: 14px
}

.avatars {
   display: flex
}

.avatars span {
   width: 34px;
   height: 34px;
   border-radius: 50%;
   border: 3px solid #fff;
   box-sizing: border-box;
   padding: 3px;
}

.avatars span img {
   width: 100%;
   height: 100%;
   border-radius: 50%;
   object-position: center;
   object-fit: cover;
}

.avatars span+span {
   margin-left: -12px
}

.hero-badge .num {
   font-size: 20px;
   font-weight: 900;
   color: var(--green-deep);
   line-height: 1.2
}

.hero-badge .cap {
   font-size: 13px;
   color: var(--muted);
   font-weight: 600
}

/* Медиа-строки текст+фото */
.media-row {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 56px;
   align-items: center
}

.media-row .ph {
   aspect-ratio: 4/3
}

.media-photo .ph {
   border-radius: 28px;
   box-shadow: inset 0 0 0 1px #dbe5d0, 0 24px 50px rgba(35, 52, 26, .1);
   position: relative;
}

.media-photo .ph_image {
   position: relative;
   overflow: hidden;
   border-radius: 28px;
   width:100%;height:100%;
}

.media-photo .ph_image img {
   position: relative;
   object-fit: cover;object-size:cover;
   width: 100%;
   height: 100%;
}

.check-list {
   margin-top: 24px;
   display: flex;
   flex-direction: column;
   gap: 12px
}

.check-list li {
   display: flex;
   align-items: flex-start;
   gap: 12px;
   font-size: 16px;
   font-weight: 600;
   color: #3a4234
}

.check-list .mark {
   flex: none;
   width: 24px;
   height: 24px;
   border-radius: 50%;
   background: var(--green-tint);
   color: var(--green);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-weight: 900
}

.quote {
   margin-top: 26px;
   background: #fff;
   border-radius: 20px;
   padding: 24px;
   box-shadow: 0 10px 30px rgba(35, 52, 26, .06);
   border-left: 5px solid var(--c-gold)
}

.quote p {
   font-size: 17px;
   font-weight: 700;
   line-height: 1.6;
   color: #3a4234;
   font-style: italic
}

/* Направления (карточки) */
.dirs-section {
   background: linear-gradient(180deg, var(--bg), var(--green-tint-2))
}

.section-head-center {
   text-align: center;
   max-width: 640px;
   margin: 0 auto 44px
}

.section-head-center h2 {
   font-size: 36px
}

.section-head-center p {
   margin-top: 16px
}

.dir-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
   display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
}

.dir-card {
   background: #fff;
   border-radius: var(--radius);
   
   padding: 28px;
   box-shadow: var(--shadow-card);
   display: block;
   transition: transform .15s, box-shadow .15s;
   
       width: 100%;
    max-width: calc((100% - 40px) / 3);
}
}

.dir-card:hover {
   transform: translateY(-3px);
   box-shadow: 0 14px 32px rgba(35, 52, 26, .1)
}

.dir-ico {
   width: 52px;
   height: 52px;
   border-radius: 16px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 24px
}

.dir-card h3 {
   font-size: 20px;
   font-weight: 800;
   margin: 18px 0 8px
}

.dir-card p {
   font-size: 15px;
   line-height: 1.65;
   color: var(--muted)
}

/* Блок помощи */
.help-band {
   background: var(--green-deep);
   border-radius: 32px;
   padding: 48px;
   position: relative;
   overflow: hidden
}

.help-band::after {
   content: "";
   position: absolute;
   top: -60px;
   right: -40px;
   width: 240px;
   height: 240px;
   border-radius: 50%;
   background: rgba(255, 255, 255, .06)
}

.help-grid {
   display: grid;
   grid-template-columns: 1.1fr .9fr;
   gap: 40px;
   align-items: center;
   position: relative
}

.help-grid .eyebrow {
   color: #bfe0a8
}

.help-grid h2 {
   color: #fff;
   font-size: 34px;
   font-weight: 900;
   line-height: 1.15;
   margin-top: 12px
}

.help-grid p {
   font-size: 17px;
   line-height: 1.7;
   color: #d3e6c6;
   margin: 16px 0 24px;
   max-width: 460px
}

.req-card {
   background: #fff;
   border-radius: 22px;
   padding: 24px;
   display: flex;
   gap: 20px;
   align-items: center;
   box-shadow: 0 18px 40px rgba(0, 0, 0, .18)
}
@media screen and (max-width: 480px) {
    .req-card {
        flex-direction:column;
    }
}
.req-qr {
   width: 120px;
   height: 120px;
   flex: none;
   border-radius: 16px;
   background: repeating-linear-gradient(45deg, #edf2e8, #edf2e8 8px, #dbe5d0 8px, #dbe5d0 16px);
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: inset 0 0 0 1px #cdd9c2
}

.req-qr span {
   font-family: ui-monospace, monospace;
   font-size: 11px;
   color: #7e9070;
   font-weight: 700
}

.req-text {
   font-size: 14px;
   line-height: 1.7;
   color: #3a4234
}

.req-text .ttl {
   font-weight: 900;
   color: var(--green-deep);
   font-size: 15px;
   margin-bottom: 6px
}

.req-text .purpose {
   margin-top: 6px;
   color: var(--c-orange);
   font-weight: 700
}

/* ============================================================
   О НАС
   ============================================================ */
.grid-3 {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px
}

.grid-3 .dir-card {width:100%;max-width:100%;}

.grid-2 {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 20px
}

.info-card {
   background: #fff;
   border-radius: var(--radius);
   padding: 30px;
   box-shadow: var(--shadow-card)
}

.info-card.t-purple {
   border-top: 5px solid var(--c-purple)
}

.info-card.t-blue {
   border-top: 5px solid var(--c-blue)
}

.info-card.t-gold {
   border-top: 5px solid var(--c-gold)
}

.info-card h3 {
   font-size: 20px;
   font-weight: 800;
   margin-bottom: 12px
}

.info-card p {
   font-size: 15px;
   line-height: 1.7;
   color: #5c6654
}

.doc-row {
   background: #fff;
   border-radius: 20px;
   padding: 22px 24px;
   box-shadow: var(--shadow-card);
   display: flex;
   align-items: center;
   gap: 18px
}

.doc-row .ico {
   width: 54px;
   height: 54px;
   flex: none;
   border-radius: 14px;
   background: var(--green-tint);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 24px
}

.doc-row .meta {
   flex: 1
}

.doc-row .meta b {
   display: block;
   font-size: 17px;
   font-weight: 800
}

.doc-row .meta small {
   font-size: 14px;
   color: #8a9a7d
}

.doc-row .dl {
   background: var(--green-tint);
   color: var(--green-deep);
   font-weight: 800;
   font-size: 14px;
   padding: 11px 18px;
   border-radius: 12px;
   white-space: nowrap;
   transition: color .06s ease-in-out, background .09s ease-in-out, transform .12s ease-in-out, box-shadow .15s ease;
    box-shadow: 0 10px 24px rgba(63, 143, 35, 0)
}

.doc-row .dl:hover {
    background: var(--green-deep);
    color:white;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(63, 143, 35, .28)
}

.doc-link {
   background: #fff;
   border-radius: 16px;
   padding: 18px 22px;
   box-shadow: var(--shadow-soft);
   display: flex;
   align-items: center;
   gap: 16px;
      transition: color .06s ease-in-out, background .09s ease-in-out, transform .12s ease-in-out, box-shadow .15s ease;
    box-shadow: 0 10px 24px rgba(63, 143, 35, 0)
}

.doc-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(63, 143, 35, .28)
}

.doc-link .ico {
   width: 44px;
   height: 44px;
   flex: none;
   border-radius: 11px;
   background: var(--green-tint);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 20px
}

.doc-link .name {
   flex: 1;
   font-weight: 700;
   font-size: 16px
}

.doc-link .open {
   color: var(--green);
   font-weight: 800;
   font-size: 14px;
   white-space: nowrap
}

/* ============================================================
   КОМАНДА
   ============================================================ */
.team-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 22px
}

.team-card {
   background: #fff;
   border-radius: var(--radius);
   padding: 18px;
   box-shadow: var(--shadow-card);
   text-align: center
}

.team-card .ph {
   aspect-ratio: 1/1;
   border-radius: 18px;
   margin-bottom: 16px
}

.team-card .ph span {
   font-size: 11px;
   background: none;
   box-shadow: none;
   padding: 0
}

.team-card .name {
   font-weight: 800;
   font-size: 17px;
   line-height: 1.25
}

.team-card .role {
   font-size: 14px;
   color: var(--muted);
   margin-top: 6px;
   line-height: 1.4
}

.team-card .bar {
   display: inline-block;
   margin-top: 12px;
   width: 34px;
   height: 4px;
   border-radius: 2px
}

/* ============================================================
   НАПРАВЛЕНИЯ (страница)
   ============================================================ */
.dir-list {
   display: flex;
   flex-direction: column;
   gap: 20px
}

.dir-item {
   background: #fff;
   border-radius: 24px;
   padding: 30px;
   box-shadow: var(--shadow-card)
}

.dir-item-inner {
   display: grid;
   grid-template-columns: 88px 1fr;
   gap: 26px;
   align-items: start
}

.dir-item .big-ico {
   width: 84px;
   height: 84px;
   border-radius: 22px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 38px
}

.dir-item h3 {
   font-size: 23px;
   font-weight: 900;
   margin-bottom: 10px
}

.dir-item p {
   font-size: 16px;
   line-height: 1.7;
   color: #5c6654
}

/* ============================================================
   СПЕЦИАЛИСТЫ
   ============================================================ */
.disp-band {
   background: var(--green-deep);
   border-radius: 22px;
   padding: 26px 30px;
   color: #fff;
   display: flex;
   align-items: center;
   gap: 22px;
   flex-wrap: wrap
}

.disp-band .ico {
   width: 56px;
   height: 56px;
   flex: none;
   border-radius: 16px;
   background: rgba(255, 255, 255, .14);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 26px
}

.disp-band .txt {
   flex: 1;
   min-width: 200px
}

.disp-band .txt b {
   font-size: 14px;
   font-weight: 700;
   color: #bfe0a8;
   letter-spacing: .04em;
   text-transform: uppercase;
   display: block
}

.disp-band .txt small {
   font-size: 15px;
   color: #d3e6c6
}

.disp-band .num {
   background: var(--c-gold);
   color: #3a2400;
   font-weight: 900;
   font-size: 20px;
   padding: 14px 26px;
   border-radius: 14px;
   white-space: nowrap
}

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

.spec-card {
   background: #fff;
   border-radius: var(--radius);
   padding: 22px;
   box-shadow: var(--shadow-card)
}

.spec-top {
   display: flex;
   align-items: center;
   gap: 16px
}

.spec-card .ph {
   width: 74px;
   min-height: 74px;
   height: auto;
   flex: none;
   border-radius: 10px;
   overflow: hidden;
}

.spec-card .ph span {
   font-size: 10px;
   background: none;
   box-shadow: none;
   padding: 0
}

.spec-card .name {
   font-weight: 800;
   font-size: 17px;
   line-height: 1.25
}

.spec-card .role {
   font-size: 14px;
   font-weight: 700;
   margin-top: 5px
}

.spec-divider {
   height: 1px;
   background: var(--soft-line);
   margin: 18px 0
}

.spec-phone {
   display: flex;
   align-items: center;
   gap: 10px;
   color: var(--green);
   font-weight: 800;
   font-size: 15px
}

.spec-phone .ico {
   width: 30px;
   height: 30px;
   border-radius: 9px;
   background: var(--green-tint);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 14px
}

/* ============================================================
   ПОМОЩЬ (страница)
   ============================================================ */
.pay-card {
   background: #fff;
   border-radius: 28px;
   padding: 40px;
   box-shadow: 0 12px 34px rgba(35, 52, 26, .07)
}

.pay-grid {
   display: grid;
   grid-template-columns: 300px 1fr;
   gap: 36px;
   align-items: center
}

.pay-qr-wrap {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 16px
}

.pay-qr {
   width: 230px;
   height: 230px;
   border-radius: 22px;
   background: repeating-linear-gradient(45deg, #edf2e8, #edf2e8 12px, #dbe5d0 12px, #dbe5d0 24px);
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: inset 0 0 0 1px #cdd9c2
}

.pay-qr span {
   font-family: ui-monospace, monospace;
   font-size: 13px;
   color: #7e9070;
   background: var(--bg);
   padding: 8px 16px;
   border-radius: 999px;
   font-weight: 700
}

.pay-qr-wrap small {
   font-size: 14px;
   color: #8a9a7d;
   font-weight: 600
}

.pay-grid h2 {
   font-size: 26px;
   font-weight: 900;
   margin-bottom: 18px
}

.req-list {
   display: flex;
   flex-direction: column;
   gap: 12px;
   font-size: 16px;
   color: #3a4234
}

.req-list .row {
   display: flex;
   justify-content: space-between;
   gap: 16px;
   padding-bottom: 12px;
   border-bottom: 1px dashed #e3e9dc
}

.req-list .row:last-child {
   border-bottom: none;
   padding-bottom: 0
}

.req-list .k {
   color: #8a9a7d;
   font-weight: 600
}

.req-list .v {
   font-weight: 700;
   text-align: right
}

.notice {
   background: #fff7e9;
   border: 1px solid #f4dca6;
   border-radius: 20px;
   padding: 24px 28px;
   display: flex;
   align-items: flex-start;
   gap: 18px
}

.notice .ico {
   width: 46px;
   height: 46px;
   flex: none;
   border-radius: 13px;
   background: var(--c-gold);
   color: #fff;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 22px;
   font-weight: 900
}

.notice b {
   font-size: 18px;
   color: #8a5a00;
   display: block;
   margin-bottom: 6px
}

.notice p {
   font-size: 16px;
   line-height: 1.7;
   color: #6b5524
}

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

.way-card {
   background: #fff;
   border-radius: var(--radius);
   padding: 30px;
   box-shadow: var(--shadow-card);
   text-align: center
}

.way-card.t-green {
   border-top: 5px solid var(--green)
}

.way-card.t-blue {
   border-top: 5px solid var(--c-blue)
}

.way-card.t-orange {
   border-top: 5px solid var(--c-orange)
}

.way-card .ico {
   width: 56px;
   height: 56px;
   border-radius: 16px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 26px;
   margin-bottom: 16px
}

.way-card h3 {
   font-size: 19px;
   font-weight: 800;
   margin-bottom: 8px
}

.way-card p {
   font-size: 15px;
   line-height: 1.65;
   color: var(--muted)
}

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.site-footer {
   background: #23341a;
   color: #cfe0c2;
}

.site-footer .container {
   padding-top: 56px;
   padding-bottom: 28px
}

.footer-grid {
   display: grid;
   grid-template-columns: 1.4fr 1fr 1.1fr;
   gap: 40px
}

@media screen and (max-width:767px) {
    .footer-grid { grid-template-columns:1fr 1fr;}
    .footer-brand {
        grid-column-start:1;
        grid-column-end:3;
    }
}

@media screen and (max-width:560px) {
    .footer-grid { grid-template-columns:100%;}
    .footer-brand {
        grid-column-start:1;
        grid-column-end:1;
    }
}

.footer-brand .top {
   display: flex;
   align-items: center;
   gap: 14px;
   margin-bottom: 18px
}

.footer-brand img {
   width: 54px;
   height: 54px;
   border-radius: 50%;
   object-fit: cover;
   flex: none;
   background: #fff
}

.footer-brand .top small {
   font-size: 11px;
   font-weight: 700;
   letter-spacing: .04em;
   color: #9fd17f;
   text-transform: uppercase;
   display: block
}

.footer-brand .top b {
   font-size: 17px;
   font-weight: 900;
   color: #fff;
   line-height: 1.2
}

.footer-brand p {
   font-size: 14px;
   line-height: 1.7;
   color: #a9c198;
   max-width: 340px
}

.footer-brand .legal {
   margin-top: 14px;
   font-size: 13px;
   color: #8fab7c;
   line-height: 1.7
}

.footer-col h4 {
   font-size: 13px;
   font-weight: 800;
   letter-spacing: .05em;
   text-transform: uppercase;
   color: #9fd17f;
   margin-bottom: 16px
}

.footer-col .links {
   display: flex;
   flex-direction: column;
   gap: 11px
}

.footer-col .links a {
   color: #cfe0c2;
   font-size: 15px;
   font-weight: 600
}

.footer-col .links a:hover {
   color: #fff
}

.footer-contacts {
   display: flex;
   flex-direction: column;
   gap: 12px;
   font-size: 15px
}

.footer-contacts .phone {
   color: #fff;
   font-weight: 800;
   font-size: 18px
}

.footer-contacts a:hover {
   color: #fff
}

.footer-contacts .mail {
   color: #cfe0c2;
   font-weight: 600
}

.footer-contacts span {
   color: #a9c198
}

.footer-divider {
   height: 1px;
   background: rgba(255, 255, 255, .1);
   margin: 36px 0 22px
}

.footer-bottom {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 18px;
   flex-wrap: wrap
}

.footer-bottom .legal-links {
   display: flex;
   align-items: center;
   gap: 18px;
   flex-wrap: wrap;
   font-size: 13px;
   color: #8fab7c
}

@media screen and (max-width: 767px) {
    .footer-bottom .legal-links {justify-content:center;}
.footer-bottom .legal-links span {display:inline-block;width:100%;text-align:center;}
}

.footer-bottom .legal-links a {
   color: #a9c198;
   text-decoration: underline;
   text-underline-offset: 3px
}

.footer-fpg {
   display: flex;
   align-items: center;
   gap: 11px;
   font-size: 13px;
   color: #a9c198;
   font-weight: 600
}

.footer-fpg .flag {
   width: 34px;
   height: 34px;
   border-radius: 9px;
   background: rgba(255, 255, 255, .1);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 16px
}

/* ============================================================
   QR-КОД (реальное изображение)
   ============================================================ */
.req-qr-img {
   width: 120px;
   height: 120px;
   flex: none;
   border-radius: 16px;
   background: #fff;
   padding: 7px;
   box-shadow: inset 0 0 0 1px #e3e9dc
}

.pay-qr-img {
   width: 230px;
   height: 230px;
   border-radius: 20px;
   background: #fff;
   padding: 12px;
   box-shadow: inset 0 0 0 1px #e3e9dc
}

/* ============================================================
   ФОРМА ОБРАТНОЙ СВЯЗИ
   ============================================================ */
.feedback-section {
   background: linear-gradient(180deg, var(--bg), var(--green-tint-2))
}

.feedback-grid {
   display: grid;
   grid-template-columns: 1fr 1.1fr;
   gap: 48px;
   align-items: start
}

.feedback-intro h2 {
   font-size: 34px;
   font-weight: 900;
   line-height: 1.15;
   color: var(--ink);
   margin-top: 12px
}

.feedback-intro p {
   margin-top: 18px
}

.feedback-intro .contacts-mini {
   margin-top: 26px;
   display: flex;
   flex-direction: column;
   gap: 14px
}

.feedback-intro .contacts-mini a,
.feedback-intro .contacts-mini span {
   display: flex;
   align-items: center;
   gap: 12px;
   font-size: 16px;
   font-weight: 700;
   color: var(--ink)
}

.feedback-intro .contacts-mini .ico {
   width: 42px;
   height: 42px;
   flex: none;
   border-radius: 12px;
   background: var(--green-tint);
   color: var(--green-deep);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 18px
}

.form-card {
   background: #fff;
   border-radius: 28px;
   padding: 36px;
   box-shadow: var(--shadow-card)
}

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

.field {
   display: flex;
   flex-direction: column;
   gap: 7px;
   margin-bottom: 16px
}

.field label {
   font-size: 14px;
   font-weight: 700;
   color: var(--ink)
}

.field .req {
   color: var(--c-red)
}

.field input,
.field textarea {
   font-family: inherit;
   font-size: 16px;
   padding: 14px 16px;
   border: 2px solid #e3e9dc;
   border-radius: 14px;
   background: var(--bg);
   color: var(--ink);
   width: 100%;
   transition: border-color .15s
}

.field input:focus,
.field textarea:focus {
   outline: none;
   border-color: var(--green)
}

.field textarea {
   resize: vertical;
   min-height: 110px
}

.field.invalid input,
.field.invalid textarea {
   border-color: var(--c-red)
}

.field .err {
   display: none;
   font-size: 13px;
   color: var(--c-red);
   font-weight: 600
}

.field.invalid .err {
   display: block
}

.consent {
   display: flex;
   align-items: flex-start;
   gap: 11px;
   font-size: 14px;
   color: var(--muted);
   line-height: 1.55;
   margin-bottom: 20px
}

.consent input {
   width: 20px;
   height: 20px;
   flex: none;
   margin-top: 2px;
   accent-color: var(--green)
}

.consent a {
   color: var(--green);
   text-decoration: underline
}

.consent.invalid {
   color: var(--c-red)
}

.form-note {
   margin-top: 14px;
   font-size: 13px;
   color: var(--muted);
   text-align: center
}

.form-success {
   
   background: var(--green-tint);
   border: 1px solid #c9e3b6;
   border-radius: 18px;
   padding: 22px 24px;
   text-align: center
}

.form-success.show {
   display: block
}

.form-success .ico {
   width: 54px;
   height: 54px;
   margin: 0 auto 12px;
   border-radius: 50%;
   background: var(--green);
   color: #fff;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 26px;
   font-weight: 900
}

.form-success b {
   font-size: 19px;
   color: var(--green-deep);
   display: block;
   margin-bottom: 6px
}

.form-success p {
   font-size: 15px;
   color: #5c6654
}

.is-hidden {
   display: none
}

/* ============================================================
   ОТСТУПЫ СЕКЦИЙ
   ============================================================ */
.sec {
   padding-top: 64px
}

.sec-sm {
   padding-top: 36px
}

.pb-lg {
   padding-bottom: 88px
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width:900px) {
   .hero-grid {
      grid-template-columns: 1fr;
      gap: 32px
   }

   .media-row {
      grid-template-columns: 1fr;
      gap: 28px
   }

   .media-row.rev .media-photo {
      order: 1
   }

   .dir-grid {
      grid-template-columns: 1fr 1fr
   }

   .help-grid {
      grid-template-columns: 1fr;
      gap: 28px
   }

   .grid-3,
   .grid-2 {
      grid-template-columns: 1fr
   }

   .team-grid {
      grid-template-columns: repeat(3, 1fr)
   }

   .spec-grid {
      grid-template-columns: repeat(2, 1fr)
   }

   .feedback-grid {
      grid-template-columns: 1fr;
      gap: 32px
   }
}

@media (max-width:760px) {
   .pay-grid {
      grid-template-columns: 1fr;
      gap: 24px
   }

   .ways-grid {
      grid-template-columns: 1fr
   }
}

@media (max-width:680px) {
   .team-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 16px
   }

   .section-title,
   .page-hero h1 {
      font-size: 30px
   }

   .hero h1 {
      font-size: 34px
   }

   .help-band {
      padding: 32px 24px
   }

   .pay-card {
      padding: 28px 22px
   }
}

@media (max-width:560px) {
   .dir-grid {
      grid-template-columns: 1fr
   }

   .spec-grid {
      grid-template-columns: 1fr
   }

   .dir-item-inner {
      grid-template-columns: 1fr;
      gap: 14px
   }

   .footer-bottom {
      flex-direction: column;
      align-items: flex-start
   }

   .form-row {
      grid-template-columns: 1fr
   }

   .form-card {
      padding: 28px 22px
   }
}

@media (max-width:420px) {
   .team-grid {
      grid-template-columns: 1fr
   }

   .container {
      padding: 0 18px
   }
   
   .header-main {padding-top:10px;padding-bottom:15px;}
}

/* ============================================================
   Доп. стили только для страницы 404.
   Воздушный дизайн с плавающими элементами
   ============================================================ */
.error-page {
   display: flex;
   align-items: center;
   box-sizing: border-box;
   padding-bottom: 60px;
}

.error-page .container {
   text-align: center;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 40px;
}

.error-figure {
   position: relative;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 60px 80px;
   margin-bottom: 20px;
}

.error-num {
   display: inline-flex;
   align-items: baseline;
   gap: 20px;
   font-size: 220px;
   font-weight: 900;
   line-height: 1;
   letter-spacing: -0.03em;
}

/* Стеклянные цифры */
.error-num span {
   position: relative;
   display: inline-block;

   /* Цветная обводка */
   -webkit-text-stroke: 3px var(--stroke-color);
   text-stroke: 3px var(--stroke-color);

   /* Тень для эффекта стекла */
   text-shadow:
      0 0 20px rgba(255, 255, 255, 0.4),
      0 0 40px rgba(255, 255, 255, 0.2),
      0 4px 8px rgba(0, 0, 0, 0.1);

   /* Фильтр для дополнительного блура снаружи */
   filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));

   padding: 10px 20px;
}


/* Шарики */
.error-dot {
   position: absolute;
   width: 16px;
   height: 16px;
   border-radius: 50%;
   box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.12),
      0 0 30px rgba(167, 139, 250, 0.2),
      inset 0 -2px 4px rgba(0, 0, 0, 0.1);
   backdrop-filter: blur(4px);
   -webkit-backdrop-filter: blur(4px);
   transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
   animation: errFloat 4.5s ease-in-out infinite;
}

.error-dot::after {
   content: '';
   position: absolute;
   top: 3px;
   left: 3px;
   width: 5px;
   height: 5px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.6);
}

@keyframes errFloat {

   0%,
   100% {
      transform: translateY(0);
   }

   50% {
      transform: translateY(-9px);
   }
}

@media (prefers-reduced-motion: reduce) {
   .error-dot {
      animation: none;
   }
}

.error-actions {
   display: flex;
   gap: 20px;
   justify-content: center;
   flex-wrap: wrap;
   margin-top: 20px;
   animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
   from {
      opacity: 0;
      transform: translateY(30px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* Адаптивность */
@media (max-width: 560px) {
   .error-num {
      font-size: 80px;
      gap: 10px;
   }

   .error-num span {
      -webkit-text-stroke: 2px var(--stroke-color);
      padding: 5px 10px;
   }

   .error-figure {
      padding: 30px 20px;
   }

   .error-dot {
      width: 12px;
      height: 12px;
   }

   .error-actions {
      flex-direction: column;
      align-items: center;
      gap: 12px;
   }
}

.page-hero__error {
   border-bottom: unset;
}

.cookie-banner{
    position: fixed;
    left: 50%;
    width:100%;
    bottom: 0;
    z-index: 9999;
    
    color: var(--cookie-text);
    
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;

    transform: translateY(100%) translateX(-50%);
    opacity: 0;
    transition: transform .4s ease, opacity .4s ease;
    pointer-events: none;
  }

  .cookie-banner.is-visible{
    transform: translateY(0) translateX(-50%);
    opacity: 1;
    pointer-events: auto;
  }

  .cookie-banner__inner{
      border-radius: 22px 22px 0 0;
      background: var(--cookie-bg);
      border-top: 1px solid var(--cookie-border);
    box-shadow: var(--cookie-shadow);
        max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px 48px 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
  }

  .cookie-banner__text{
    flex: 1 1 320px;
    margin: 0;
  }

  .cookie-banner__actions{
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .cookie-banner__accept{
    background: var(--cookie-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .09s ease-in-out, transform .12s ease-in-out, box-shadow .15s ease;
    box-shadow: 0 10px 24px rgba(63, 143, 35, .28)
  }

  .cookie-banner__accept:hover{
    background: var(--cookie-accent-hover);
    transform: translateY(-1px)
  }

  .cookie-banner__close{
    position: absolute;
    top: 0px;
    right: 3px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--cookie-text);
    cursor: pointer;
    padding: 4px;
    opacity: .6;
    transition: opacity .2s ease;    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    
  }

  .cookie-banner__close:hover{
    opacity: 1;
    color: red;
  }

  @media (max-width: 600px){
    .cookie-banner__inner{
      padding: 16px 40px 16px 16px;
    }
    .cookie-banner__actions{
      width: 100%;
      justify-content: flex-start;
    }
  }
  
  .cookie-banner__icon, .cookie-banner__icon .emoji {
      width:48px;max-width:48px;
  }
  
  .emoji {width:50%;max-width:32px;}
  
  @keyframes stripes-move {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 90px 90px;
  }
}

.d-none {
    display: none !important;
}

/* ============================================================
   Попап успешной отправки
   ============================================================ */
.popup.thnx {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 52, 26, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.popup.thnx .form-success {
    position: relative;
    background: #fff;
    padding: 48px 40px 40px;
    border-radius: 28px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 24px 60px rgba(35, 52, 26, 0.2);
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup.thnx .ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--green-tint);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
}

.popup.thnx b {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: var(--green-deep);
    margin-bottom: 10px;
    line-height: 1.3;
}

.popup.thnx p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Кнопка-крестик */
.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green-tint);
    border: none;
    font-size: 18px;
    color: var(--green);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, transform 0.12s;
    line-height: 1;
}

.popup-close:hover {
    background: var(--c-red);
    color: #fff;
    transform: scale(1.05);
}

.popup.thnx b {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

.contents {box-sizing: border-box;    padding-top: 56px;
    padding-bottom: 88px;}

.contents .container {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
}

/* Заголовки */
.contents h2 {
  font-size: 28px;
  font-weight: 800;
  color: #2e7d32; /* базовый зелёный */
  margin: 40px 0 20px;
  line-height: 1.3;
}

.contents h3 {
  font-size: 22px;
  font-weight: 700;
  color: #388e3c;
  margin: 32px 0 16px;
}

.contents h4 {
  font-size: 19px;
  font-weight: 700;
  color: #43a047;
  margin: 24px 0 12px;
}

.contents h5,
.contents h6 {
  font-size: 17px;
  font-weight: 700;
  color: #4caf50;
  margin: 20px 0 10px;
}

/* Параграфы */
.contents p {
  margin: 0 0 18px;
}

.contents p:last-child {
  margin-bottom: 0;
}

/* Курсив / акценты */
.contents i,
.contents em {
  font-style: italic;
  color: #2e7d32;
}

.contents strong,
.contents b {
  font-weight: 800;
  color: #1b5e20;
}

/* Ссылки */
.contents a {
  color: #43a047;
  text-decoration: underline;
  text-decoration-color: rgba(67, 160, 71, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contents a:hover {
  color: #2e7d32;
  text-decoration-color: #2e7d32;
}

/* Списки */
.contents ul,
.contents ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.contents ul li,
.contents ol li {
  margin-bottom: 10px;
  padding-left: 6px;
}

.contents ul {
  list-style: none;
}

.contents ul li {
  position: relative;
  padding-left: 26px;
}

.contents ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #66bb6a;
}

/* Радужные акценты на маркерах — по кругу через nth-child */
.contents ul li:nth-child(6n+1)::before { background: #ef5350; }
.contents ul li:nth-child(6n+2)::before { background: #ffa726; }
.contents ul li:nth-child(6n+3)::before { background: #ffee58; }
.contents ul li:nth-child(6n+4)::before { background: #66bb6a; }
.contents ul li:nth-child(6n+5)::before { background: #42a5f5; }
.contents ul li:nth-child(6n+6)::before { background: #ab47bc; }

.contents ol {
  counter-reset: item;
}

.contents ol li {
  counter-increment: item;
}

/* Цитаты */
.contents blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: #f1f8f2;
  border-left: 4px solid #4caf50;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #2e5931;
}

.contents blockquote p {
  margin-bottom: 0;
}

.contents blockquote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 14px;
  color: #689f70;
}

/* Таблицы */
.contents table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(46, 125, 50, 0.08);
}

.contents th {
  background: #4caf50;
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
}

.contents td {
  padding: 12px 18px;
  border-bottom: 1px solid #e6f0e7;
}

.contents tr:last-child td {
  border-bottom: none;
}

.contents tr:nth-child(even) td {
  background: #f7fbf7;
}

/* Article-обёртка (если контент разбит на статьи/блоки) */
.contents article {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e6f0e7;
}

.contents article:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Горизонтальная линия */
.contents hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, #ef5350, #ffa726, #ffee58, #66bb6a, #42a5f5, #ab47bc);
  border-radius: 2px;
  margin: 32px 0;
}

/* Код (на случай инлайн-примеров) */
.contents code {
  background: #f1f8f2;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  color: #2e7d32;
} 

/* ===== Адаптивность ===== */

/* Планшеты */
@media (max-width: 768px) {
  .contents .container {
    font-size: 15px;
    line-height: 1.65;
  }

  .contents h2 {
    font-size: 24px;
    margin: 32px 0 16px;
  }

  .contents h3 {
    font-size: 20px;
    margin: 26px 0 14px;
  }

  .contents h4 {
    font-size: 18px;
    margin: 20px 0 10px;
  }

  .contents h5,
  .contents h6 {
    font-size: 16px;
  }

  .contents p {
    margin-bottom: 16px;
  }

  .contents blockquote {
    padding: 16px 18px;
    margin: 22px 0;
  }

  .contents ul,
  .contents ol {
    padding-left: 20px;
  }
}

/* Мобильные */
@media (max-width: 480px) {
  .contents .container {
    font-size: 14px;
    line-height: 1.6;
  }

  .contents h2 {
    font-size: 21px;
    margin: 26px 0 14px;
  }

  .contents h3 {
    font-size: 18px;
    margin: 22px 0 12px;
  }

  .contents h4 {
    font-size: 16px;
  }

  .contents p {
    margin-bottom: 14px;
  }

  .contents ul li,
  .contents ol li {
    margin-bottom: 8px;
    padding-left: 20px;
  }

  .contents ul li::before {
    width: 6px;
    height: 6px;
    top: 8px;
  }

  .contents blockquote {
    padding: 14px 16px;
    border-left-width: 3px;
    font-size: 14px;
  }

  /* Таблицы на мобильных — горизонтальный скролл вместо сжатия */
  .contents table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }

  .contents th,
  .contents td {
    padding: 10px 14px;
    font-size: 13px;
  }

  .contents article {
    margin-bottom: 24px;
    padding-bottom: 24px;
  }

  .contents hr {
    margin: 24px 0;
  }
}
.f-carousel {
  --f-carousel-slide-width: calc(100% / 3);
  --f-carousel-slide-gap: 20px;
  --f-carousel-gap: 20px;
  --f-button-next-pos: -10px;
  --f-button-prev-pos: -10px;
  width: 100%;
  position: relative;
  padding: 0 0 20px;
  margin-top: 30px;
  box-sizing: border-box;
}

.f-carousel__dots {
    margin-bottom:0;
}
.f-carousel__viewport {
  margin: 0;
}

.f-carousel__slide {
  padding: 0 10px;
}

.f-carousel__slide a {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
}

.f-carousel__slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .f-carousel {
    --f-carousel-slide-width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px) {
  .f-carousel {
    --f-carousel-slide-width: 100%;
  }
}

/* ===== Навигация (стрелки) ===== */
.f-carousel .f-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.f-carousel .f-button:hover {
  background: #f5f5f5;
}

.f-carousel .f-button.is-prev {
  left: 12px;
}

.f-carousel .f-button.is-next {
  right: 12px;
}

.f-carousel .f-button.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.f-carousel .f-button svg {
  width: 20px;
  height: 20px;
  color: #2e7d32;
}

/* ===== Пагинация (точки) ===== */
.f-carousel .f-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.f-carousel .f-dots__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8e6c9;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.f-carousel .f-dots__dot.is-selected {
  background: #4caf50;
  transform: scale(1.3);
}

.contents .f-carousel__dots li {
  padding: unset;
  padding-left: 0;
  margin-bottom:0;
}

.contents .f-carousel__dots li:before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

footer .brand-top {color: #9fd17f;}
footer .brand-name {color: white;}
footer .brand-sub {color: #cfe0c2;}


/* ============================================================
   ЦИТАТА-БЛОК
   ============================================================ */
.quote-block {
   background: #ffffff;
   border-radius: 24px;
   padding: 20px;
   box-shadow: 0 12px 36px rgba(35, 52, 26, 0.08);
   border-left: 6px solid var(--c-gold);
   max-width: 880px;
   margin: 30px auto 0;
   position: relative;
}

.quote-block .quote-mark {
   font-size: 64px;
   line-height: 0.8;
   color: var(--c-gold);
   opacity: 0.2;
   font-family: Georgia, 'Times New Roman', serif;
   display: block;
}

.quote-block .quote-mark-top {
   margin-bottom: -10px;
}

.quote-block .quote-mark-bottom {
   margin-top: -10px;
   text-align: right;
}

.quote-block .quote-text {
   font-size: 24px;
   font-weight: 800;
   line-height: 1.45;
   color: var(--ink);
   font-style: italic;
   margin: 0;
}

.quote-block .quote-text-highlight {
   font-size: 20px;
   font-weight: 700;
   line-height: 1.4;
   color: var(--green-deep);
   margin: 12px 0 0 0;
   font-style: italic;
}

.quote-block .quote-footer {
   margin-top: 24px;
   padding-top: 20px;
   border-top: 2px solid var(--soft-line);
   font-style: normal;
}

.quote-block .quote-source {
   font-size: 15px;
   font-weight: 700;
   color: var(--muted);
   letter-spacing: 0.04em;
   font-style: normal;
}

.quote-block .quote-meta {
   font-size: 13px;
   font-weight: 600;
   color: var(--muted);
   letter-spacing: 0.02em;
}

/* Лаконичный вариант */
.quote-simple {
   background: #ffffff;
   border-radius: 20px;
   padding: 36px 44px;
   box-shadow: 0 10px 30px rgba(35, 52, 26, 0.06);
   border-left: 6px solid var(--c-gold);
   max-width: 820px;
   margin: 0 auto;
   position: relative;
}

.quote-simple .quote-mark {
   font-size: 48px;
   line-height: 0.8;
   color: var(--c-gold);
   opacity: 0.25;
   font-family: Georgia, 'Times New Roman', serif;
   display: block;
}

.quote-simple .quote-mark-top {
   margin-bottom: -8px;
}

.quote-simple .quote-mark-bottom {
   margin-top: -8px;
   text-align: right;
}

.quote-simple .quote-text {
   font-size: 24px;
   font-weight: 800;
   line-height: 1.5;
   color: var(--ink);
   font-style: italic;
   margin: 0;
}

.quote-simple .quote-footer {
   margin-top: 20px;
   font-style: normal;
}

.quote-simple .quote-source {
   font-size: 16px;
   font-weight: 800;
   color: var(--green-deep);
   font-style: normal;
}

.quote-simple .quote-meta {
   font-size: 14px;
   font-weight: 600;
   color: var(--muted);
   margin-left: 12px;
}

/* Вариант с использованием существующего класса .quote */
blockquote.quote {
   max-width: 820px;
   margin: 0 auto;
   position: relative;
}

blockquote.quote .quote-mark {
   font-size: 40px;
   line-height: 0.8;
   color: var(--c-gold);
   opacity: 0.2;
   font-family: Georgia, 'Times New Roman', serif;
   display: block;
}

blockquote.quote .quote-mark-top {
   margin-bottom: -6px;
}

blockquote.quote .quote-mark-bottom {
   margin-top: -6px;
   text-align: right;
}

blockquote.quote p {
   font-size: 24px;
   font-weight: 800;
   line-height: 1.5;
   color: var(--ink);
   font-style: italic;
   margin: 0;
}

blockquote.quote footer {
   margin-top: 16px;
   font-style: normal;
   font-size: 15px;
   font-weight: 700;
   color: var(--green-deep);
}

/* Адаптив для цитат */
@media (max-width: 768px) {
   .quote-block {
      padding: 20px;
   }
   
   .quote-block .quote-text {
      font-size: 22px;
   }
   
   .quote-block .quote-text-highlight {
      font-size: 19px;
   }
   
   .quote-block .quote-mark {
      font-size: 48px;
   }
   
   .quote-simple {
      padding: 28px 24px;
   }
   
   .quote-simple .quote-text {
      font-size: 20px;
   }
   
   .quote-simple .quote-mark {
      font-size: 36px;
   }
}

@media (max-width: 480px) {
   .quote-block {
      padding: 20px;
      border-left-width: 4px;
   }
   
   .quote-block .quote-text {
      font-size: 18px;
   }
   
   .quote-block .quote-text-highlight {
      font-size: 17px;
   }
   
   .quote-block .quote-mark {
      font-size: 36px;
   }
   
   .quote-simple {
      padding: 20px 18px;
   }
   
   .quote-simple .quote-text {
      font-size: 17px;
   }
   
   .quote-simple .quote-mark {
      font-size: 28px;
   }
   
   blockquote.quote .quote-mark {
      font-size: 28px;
   }
   
   blockquote.quote p {
      font-size: 18px;
   }
}

.video {width:100%;display:block;position:relative;margin-bottom:30px; border-radius: var(--radius);box-shadow: var(--shadow-card);}
.video::before {content:'';position:relative;display:block;width:100%;padding-top:56.25%;}
.video video, .video iframe {overflow:hidden;border-radius: var(--radius);
    position:absolute;top:0;left:0;width:100%;height:100%;
}