/* kinolog.life — seam3: мягкие переходы между блоками по всему сайту.
   Правило: каждая цветная лента начинается и заканчивается кремом #fffdf7,
   поэтому соседние блоки встречаются на одном цвете — без ровной линии. */
:root{--kl-cream:#fffdf7;--kl-blue:#e8f5f9}

/* 1. Подвал: голубой проявляется из крема, а не начинается линией. */
html body .kl-footer{background-color:#e8f5f9!important;background-image:linear-gradient(180deg,#fffdf7 0,rgba(255,253,247,.82) 40px,rgba(255,253,247,.35) 95px,rgba(255,253,247,0) 150px)!important;padding-top:96px!important;border-top:0!important;box-shadow:none!important}
@media(max-width:700px){html body .kl-footer{padding-top:80px!important;background-image:linear-gradient(180deg,#fffdf7 0,rgba(255,253,247,.8) 34px,rgba(255,253,247,.3) 80px,rgba(255,253,247,0) 120px)!important}}

/* 2. Услуги и статьи (landing v2/v3). */
/* акварельная панель: кремовый низ */
html body.kl-service-v3 .v3-watercolor-panel{background-image:linear-gradient(180deg,rgba(255,253,247,0) 0,rgba(255,253,247,0) calc(100% - 230px),rgba(255,253,247,.6) calc(100% - 120px),#fffdf7 100%),linear-gradient(180deg,#fffdf7 0%,#fffdf7 48px,rgba(255,253,247,.92) 100px,rgba(255,253,247,.55) 160px,rgba(255,254,248,.18) 260px),var(--v3-desktop)!important;background-size:100% 100%,100% 100%,cover!important;background-position:center,center top,center bottom!important;background-repeat:no-repeat!important;padding-bottom:110px!important}
/* голубые ленты: крем сверху, если перед ними не герой и не строка разделов */
html body.kl-service-v3 main :is(.v2-section,.v3-watercolor-panel,.seo-home-section,.kl-before-meeting) + .v2-section:is(.v2-when,.v2-lead),
html body.kl-service-v3 main .v2-section.v2-faq + .v2-section.v2-lead,
html body.kl-service-v3 #allrecords .v2-section + .v2-section.v2-lead{background-color:#e8f5f9!important;background-image:linear-gradient(180deg,#fffdf7 0%,rgba(255,253,247,.75) 60px,rgba(232,245,249,0) 170px,rgba(232,245,249,0) calc(100% - 170px),rgba(255,253,247,.75) calc(100% - 60px),#fffdf7 100%),linear-gradient(180deg,#e8f5f9eb,#e8f5f9f5),var(--v3-desktop)!important;background-size:100% 100%,cover,cover!important;background-position:center,center 35%,center 35%!important;background-repeat:no-repeat!important;padding-top:max(110px,var(--kl-band-pt,0px))!important}
html body.kl-service-v3 main :is(.v2-section,.v3-watercolor-panel,.seo-home-section,.kl-before-meeting) + .v2-section:is(.v2-when,.v2-lead):before,
html body.kl-service-v3 main .v2-section.v2-faq + .v2-section.v2-lead:before{display:none!important}
/* FAQ: края в чистый крем */
html body.kl-service-v3 main .v2-section.v2-faq{background-image:linear-gradient(180deg,#fffdf7 0,rgba(255,253,247,0) 120px,rgba(255,253,247,0) calc(100% - 120px),#fffdf7 100%),linear-gradient(90deg,#fffdf7f5,#fffdf7d9,#fffdf7f5),var(--v3-desktop)!important;background-size:100% 100%,100% 100%,cover!important;background-position:center,center,center top!important;background-repeat:no-repeat!important}
html body.kl-service-v3 main .v2-section.editorial-light{background-image:linear-gradient(180deg,#fffdf7 0,rgba(255,253,247,0) 120px,rgba(255,253,247,0) calc(100% - 120px),#fffdf7 100%),linear-gradient(90deg,#fffdf7f5,#fffdf7d9,#fffdf7f5),var(--v3-desktop)!important;background-size:100% 100%,100% 100%,cover!important;background-position:center,center,center top!important;background-repeat:no-repeat!important}
@media(max-width:700px){
 html body.kl-service-v3 .v3-watercolor-panel{background-image:linear-gradient(180deg,rgba(255,253,247,0) 0,rgba(255,253,247,0) calc(100% - 190px),rgba(255,253,247,.6) calc(100% - 100px),#fffdf7 100%),linear-gradient(180deg,#fffdf7 0%,#fffdf7 48px,rgba(255,253,247,.92) 100px,rgba(255,253,247,.55) 160px,rgba(255,254,248,.18) 260px),var(--v3-mobile,var(--v3-desktop))!important;padding-bottom:90px!important}
 html body.kl-service-v3 main :is(.v2-section,.v3-watercolor-panel,.seo-home-section,.kl-before-meeting) + .v2-section:is(.v2-when,.v2-lead),
 html body.kl-service-v3 main .v2-section.v2-faq + .v2-section.v2-lead,
 html body.kl-service-v3 #allrecords .v2-section + .v2-section.v2-lead{background-image:linear-gradient(180deg,#fffdf7 0%,rgba(255,253,247,.75) 50px,rgba(232,245,249,0) 140px,rgba(232,245,249,0) calc(100% - 140px),rgba(255,253,247,.75) calc(100% - 50px),#fffdf7 100%),linear-gradient(180deg,#e8f5f9ed,#e8f5f9f0),var(--v3-mobile,var(--v3-desktop))!important;padding-top:90px!important}
 html body.kl-service-v3 main .v2-section.v2-faq,html body.kl-service-v3 main .v2-section.editorial-light{background-image:linear-gradient(180deg,#fffdf7 0,rgba(255,253,247,0) 100px,rgba(255,253,247,0) calc(100% - 100px),#fffdf7 100%),linear-gradient(90deg,#fffdf7ef,#fffdf7e6),var(--v3-mobile,var(--v3-desktop))!important}
}

/* 3. «Перед первой встречей» и похожие блоки ссылок на услугах — акварельная лента с карточками. */
html body .kl-before-meeting{position:relative;background-color:#e8f5f9;background-image:linear-gradient(180deg,#fffdf7 0%,rgba(255,253,247,.7) 60px,rgba(232,245,249,0) 160px,rgba(232,245,249,0) calc(100% - 160px),rgba(255,253,247,.7) calc(100% - 60px),#fffdf7 100%),linear-gradient(180deg,#e8f5f9e6,#e8f5f9f2),var(--v3-desktop,url('/images/services/watercolor.webp'));background-size:100% 100%,cover,cover;background-position:center,center 40%,center 40%;background-repeat:no-repeat;padding:120px 24px 130px;color:#3a2a1f}
html body .kl-before-meeting .kl-before-meeting__inner{max-width:1100px;margin:0 auto;text-align:center}
html body .kl-before-meeting .eyebrow{margin:0 0 12px;font:500 15px/1.4 Gilroy,Arial,sans-serif;letter-spacing:.04em;color:#6b4122}
html body .kl-before-meeting h2{margin:0 0 14px;font-family:Foglihten,Georgia,serif;font-weight:400;font-size:clamp(30px,3.2vw,44px);line-height:1.15;color:#52351f;text-transform:uppercase}
html body .kl-before-meeting__lead{max-width:640px;margin:0 auto 34px;font:400 18px/1.55 Gilroy,Arial,sans-serif;color:#3a2a1f}
html body .kl-link-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;text-align:left}
html body a.kl-link-card{display:grid;grid-template-columns:200px minmax(0,1fr);align-items:stretch;min-height:170px;background:rgba(255,255,255,.96);border-radius:18px;overflow:hidden;box-shadow:0 10px 30px #52351f12;color:#3a2a1f!important;text-decoration:none!important;transition:transform .15s,box-shadow .15s}
html body a.kl-link-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px #52351f1c}
html body .kl-link-card__media{margin:0;background:#f3efe6}
html body .kl-link-card__media img{display:block;width:100%;height:100%;object-fit:cover}
html body .kl-link-card__body{display:flex;flex-direction:column;justify-content:center;gap:14px;padding:22px 24px}
html body .kl-link-card__tag{font:500 13px/1.3 Gilroy,Arial,sans-serif;color:#6b4122;letter-spacing:.03em}
html body .kl-link-card h3{margin:0;font:600 20px/1.3 Gilroy,Arial,sans-serif;color:#3a2a1f}
html body .kl-link-card__action{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;padding:10px 16px;border-radius:10px;background:#6b4122;color:#fff;font:600 14px/1.2 Gilroy,Arial,sans-serif}
@media(max-width:900px){html body .kl-link-cards{grid-template-columns:1fr}}
@media(max-width:700px){html body .kl-before-meeting{padding:90px 16px 100px;background-image:linear-gradient(180deg,#fffdf7 0%,rgba(255,253,247,.7) 50px,rgba(232,245,249,0) 130px,rgba(232,245,249,0) calc(100% - 130px),rgba(255,253,247,.7) calc(100% - 50px),#fffdf7 100%),linear-gradient(180deg,#e8f5f9e6,#e8f5f9f2),var(--v3-mobile,var(--v3-desktop,url('/images/services/watercolor.webp')))}
 html body a.kl-link-card{grid-template-columns:1fr;min-height:0}
 html body .kl-link-card__media{aspect-ratio:16/9}
 html body .kl-link-card__body{padding:18px 18px 20px}
 html body .kl-link-card h3{font-size:18px}
 html body .kl-before-meeting__lead{font-size:16px;margin-bottom:24px}}

/* 4. Главная: SEO-блок под Tilda — кремовые края, без смены оттенка. */
html body #allrecords .seo-home-section{background-color:#fffdf7!important;background-image:linear-gradient(180deg,#fffdf7 0,rgba(232,245,249,.55) 45%,#fffdf7 100%)!important;padding-top:90px!important;padding-bottom:110px!important}

/* 5. Библиотека, рубрики и породы: все ленты встречаются на креме. */
html body.kl-library :is(.breed-history,.breed-lifestyle,.breed-puppy,.puppy-selection,.breed-compare):after{background:linear-gradient(180deg,rgba(255,253,247,0) 0%,#fffdf7 100%)!important}
html body.kl-library :is(.breed-history,.breed-lifestyle,.breed-puppy,.puppy-selection,.breed-compare){background:linear-gradient(180deg,#fffdf7 0,rgba(255,253,247,0) 120px,rgba(255,253,247,0) calc(100% - 120px),#fffdf7 100%),linear-gradient(#fffdf7e8,#fffdf7ef),url('/images/services-v3/bg-obedience-desktop.webp') center/cover!important}
/* сразу под голубой строкой разделов — без кремовой полосы сверху */
html body.kl-library .section-nav + section:before,
html body.kl-library .section-nav + article > section:first-child:before{display:none!important}
html body.kl-library .section-nav{background:#e8f5f9!important}
/* плоские голубые ленты внутри статей библиотеки и на породах */
html body.kl-library :is(.content-section--mechanism,.content-section--steps,.breed-alternatives,.content-section--faq,.content-section--soft){background:linear-gradient(180deg,#fffdf7 0,#f4f9fa 110px,#f4f9fa calc(100% - 110px),#fffdf7 100%)!important}
html body.kl-library .breed-alternatives{background:linear-gradient(180deg,#fffdf7 0,#e8f5f9 120px,#e8f5f9 calc(100% - 120px),#fffdf7 100%)!important}

/* 6. Старые Tilda-страницы пород и реабилитации: нижний край героя растворяется. */
html body .qa-simple-hero{position:relative}
html body .qa-simple-hero:after{content:'';position:absolute;left:0;right:0;bottom:0;height:220px;pointer-events:none;background:linear-gradient(180deg,rgba(255,253,247,0) 0%,rgba(255,253,247,.7) 55%,#fffdf7 100%);z-index:0}
html body .qa-simple-hero>*{position:relative;z-index:1}
html body.kl-media-legacy #allrecords>.t-rec[data-record-type="131"]{background-color:#fffdf7!important}

/* 7. Главная (только безопасный CSS поверх блоков; меню t450 и элементы t396 не меняются). */
html body #rec1358214771 .kinolog-services-v2{background:linear-gradient(180deg,#e8f5f9 0,#e8f5f9 calc(100% - 130px),#fff 100%)!important;padding-bottom:130px!important}
html body #allrecords #recseosections + .seo-home-section,html body #allrecords .seo-home-section{background-image:linear-gradient(180deg,#fff 0,#fffdf7 90px,rgba(232,245,249,.55) 50%,#fffdf7 100%)!important}
@media(max-width:959px){
 html body #rec1359321181 .t396__artboard{background:linear-gradient(180deg,#fff 0,#f6ffeb 45%,#f6ffeb 55%,#fff 100%)!important}
 html body #rec1340714421 .t396__artboard:before{content:'';position:absolute;left:0;right:0;top:0;height:140px;z-index:0;pointer-events:none;background:linear-gradient(180deg,#e8f5f9 0,rgba(232,245,249,.6) 45%,rgba(232,245,249,0) 100%)}
}
/* 8. Породы: полоса таймлайна навыков — мягкие края. */
html body.kl-library .skill-timeline{background:linear-gradient(180deg,rgba(255,255,255,0) 0,#fff 90px,#fff calc(100% - 90px),rgba(255,255,255,0) 100%)!important}
/* 9. Tilda-породы на телефоне: верхний край картинки героя растворяется в креме. */
@media(max-width:700px){
 html body .qa-simple-hero{background:linear-gradient(180deg,#fffdf7 0,#fffdf7 calc(100% - 138.9vw),rgba(255,253,247,0) calc(100% - 138.9vw + 170px)) 0 0/100% 100% no-repeat,var(--qa-simple-mobile) center bottom/100% auto no-repeat #fffdf7!important}
}

/* 10. Главная: блок «Полезные материалы и услуги» (#recseosections) в стиле сайта. */
html body #allrecords #recseosections.kl-home-links{background-color:#e8f5f9!important;background-image:linear-gradient(180deg,#fff 0%,rgba(255,255,255,.7) 60px,rgba(232,245,249,0) 160px,rgba(232,245,249,0) calc(100% - 160px),rgba(255,253,247,.7) calc(100% - 60px),#fffdf7 100%),linear-gradient(180deg,#e8f5f9e6,#e8f5f9f2),url('/images/services/watercolor.webp')!important;background-size:100% 100%,cover,cover!important;background-position:center,center,center!important;background-repeat:no-repeat!important;padding:120px 24px 130px!important;font-family:Gilroy,Arial,sans-serif}
html body #recseosections.kl-home-links h2{font-family:Foglihten,Georgia,serif!important;font-weight:400!important;font-size:35px!important;line-height:1.3!important;text-transform:uppercase;color:#52351f!important;margin:0 0 14px!important}
html body .kl-link-pills{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;text-align:left;max-width:1100px;margin:0 auto}
html body a.kl-link-pill{position:relative;display:flex;flex-direction:column;gap:8px;min-height:112px;padding:22px 56px 22px 24px;background:rgba(255,255,255,.96);border-radius:16px;box-shadow:0 10px 28px #52351f12;color:#3a2a1f!important;text-decoration:none!important;transition:transform .15s,box-shadow .15s}
html body a.kl-link-pill:hover{transform:translateY(-2px);box-shadow:0 14px 34px #52351f1c}
html body .kl-link-pill__tag{font:500 13px/1.3 Gilroy,Arial,sans-serif;color:#6b4122;letter-spacing:.03em}
html body .kl-link-pill__title{font:600 18px/1.35 Gilroy,Arial,sans-serif;color:#3a2a1f}
html body a.kl-link-pill b{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;background:#6b4122;color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px}
html body #allrecords #recseosections.kl-home-links + .seo-home-section{background-image:linear-gradient(180deg,#fffdf7 0,rgba(232,245,249,.55) 50%,#fffdf7 100%)!important}
@media(max-width:900px){html body .kl-link-pills{grid-template-columns:1fr;gap:14px}}
@media(max-width:700px){html body #allrecords #recseosections.kl-home-links{padding:90px 16px 100px!important}html body #recseosections.kl-home-links h2{font-size:26px!important}html body a.kl-link-pill{min-height:0;padding:18px 54px 18px 18px}}

/* 11. Доводка после аудита seam3. */
html body.kl-library :is(.content-section--story){background:linear-gradient(180deg,#fffdf7 0,#f4f9fa 110px,#f4f9fa calc(100% - 110px),#fffdf7 100%)!important}
html body.kl-library .section-nav + section{background-image:linear-gradient(180deg,#e8f5f9 0,rgba(232,245,249,0) 120px),linear-gradient(rgba(232,245,249,.91),rgba(232,245,249,.91)),url('/images/services/watercolor.webp')!important;background-size:100% 100%,100% 100%,cover!important}
html body.t-body .kl-footer{background-image:linear-gradient(180deg,#fffefb 0,rgba(255,254,251,.82) 40px,rgba(255,253,247,.35) 95px,rgba(255,253,247,0) 150px)!important}
html body #rec1939215171 .t-cover__filter{background-image:linear-gradient(180deg,rgba(255,253,247,0) 0,rgba(255,253,247,0) calc(100% - 240px),rgba(255,253,247,.75) calc(100% - 90px),#fffdf7 100%)!important}
html body.kl-library main>nav.crumbs{background:transparent!important}
@media(max-width:700px){
 html body.kl-library .library-hero:before{content:'';position:absolute;left:0;right:0;bottom:0;height:calc(138.9vw + 2px);pointer-events:none;z-index:0;background:linear-gradient(180deg,#fffdf7 0,rgba(255,253,247,.6) 70px,rgba(255,253,247,0) 170px)}
 html body.kl-library .library-hero>*{position:relative;z-index:1}
 html body #rec1939215171 .t-cover__filter{background-image:linear-gradient(180deg,#fffdf7 0,#fffdf7 calc(100% - 138.9vw),rgba(255,253,247,0) calc(100% - 138.9vw + 170px),rgba(255,253,247,0) calc(100% - 200px),#fffdf7 100%)!important}
}
