/*
Theme Name: H2O Water Wave FIX
Theme URI: https://h2o-voda.ru/
Author: H2O
Description: Трёхколоночная журнальная тема для сайта о воде, реках, озёрах и морях. Три колонки сохраняются на планшетах и телефонах.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: h2o-water-wave
*/

:root{
  --h2o-primary:#087fa8;
  --h2o-primary-deep:#075b7d;
  --h2o-secondary:#31b6c9;
  --h2o-sky:#eaf9fd;
  --h2o-mist:#f6fbfd;
  --h2o-ink:#153743;
  --h2o-muted:#607b84;
  --h2o-line:#cfe7ee;
  --h2o-card:#ffffff;
  --h2o-shadow:0 12px 34px rgba(21,77,96,.09);
  --h2o-radius:18px;
  --h2o-container:1480px;
  --h2o-left:220px;
  --h2o-right:270px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:#e9f6fa}
body{
  margin:0;
  min-width:760px; /* намеренно: трёхколоночная сетка сохраняется на телефонах */
  color:var(--h2o-ink);
  background:
    radial-gradient(circle at 10% 4%, rgba(49,182,201,.10), transparent 26rem),
    linear-gradient(180deg,#f8fdff 0,#eef9fc 26rem,#f7fbfc 100%);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.68;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto}
a{color:var(--h2o-primary-deep);text-decoration:none;transition:color .18s ease,opacity .18s ease,transform .18s ease}
a:hover{color:var(--h2o-primary)}
button,input,textarea,select{font:inherit}

.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.site-header{
  position:relative;
  z-index:10;
  color:#fff;
  box-shadow:0 8px 30px rgba(5,77,104,.20);
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(4,41,72,.38), rgba(6,96,133,.34)),
    linear-gradient(115deg,var(--h2o-primary-deep) 0%,var(--h2o-primary) 45%,var(--h2o-secondary) 100%);
}
.site-header:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(4,46,73,.35) 0%, rgba(0,87,128,.18) 58%, rgba(255,255,255,0) 100%),
    url("assets/images/header-wave.png") center/cover no-repeat;
  opacity:.98;
  pointer-events:none;
}
.site-header:after{
  content:"";
  position:absolute;
  left:-5%;
  width:110%;
  height:44px;
  bottom:-28px;
  background:#f7fcfe;
  border-radius:50%;
  transform:rotate(1deg);
  pointer-events:none;
}

.header-inner{
  width:min(calc(100% - 34px),var(--h2o-container));
  margin:0 auto;
  min-height:116px;
  padding:22px 0 27px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  position:relative;
  z-index:2;
}
.branding{display:flex;align-items:center;gap:15px;min-width:0}
.custom-logo-link,.h2o-custom-logo-link{display:flex;align-items:center;justify-content:flex-start;flex:0 0 auto}
.custom-logo,.h2o-header-logo{display:block;object-fit:contain;object-position:left center}
.site-title{
  margin:0;
  font-size:clamp(30px,3vw,46px);
  line-height:1;
  font-weight:800;
  letter-spacing:-.045em;
}
.site-title a{color:#fff}
.site-description{margin:8px 0 0;color:rgba(255,255,255,.87);font-size:14px;line-height:1.35;max-width:460px}
.water-mark{
  width:52px;height:52px;flex:0 0 52px;border-radius:50% 50% 55% 45%;
  background:rgba(255,255,255,.17);border:1px solid rgba(255,255,255,.32);
  display:grid;place-items:center;box-shadow:inset 0 0 0 7px rgba(255,255,255,.04)
}
.water-mark svg{width:26px;height:34px;fill:#fff}

.header-search{width:310px;max-width:31vw;position:relative}
.header-search .search-form{margin:0}
.search-form{display:flex;position:relative}
.search-form label{flex:1;display:block}
.search-field{
  width:100%;height:44px;border:1px solid var(--h2o-line);border-radius:999px;
  padding:0 49px 0 17px;color:var(--h2o-ink);background:#fff;outline:none;
  box-shadow:0 4px 18px rgba(4,62,83,.05)
}
.search-field:focus{border-color:var(--h2o-secondary);box-shadow:0 0 0 3px rgba(49,182,201,.13)}
.search-submit{
  position:absolute;right:4px;top:4px;width:36px;height:36px;border:0;border-radius:50%;
  background:var(--h2o-primary);color:#fff;cursor:pointer;font-size:0
}
.search-submit:before{content:"⌕";font-size:23px;line-height:1}
.header-search .search-field{border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.96)}

.primary-nav{position:relative;z-index:4;background:rgba(255,255,255,.96);border-bottom:1px solid #dceef3}
.primary-nav-inner{width:min(calc(100% - 34px),var(--h2o-container));margin:0 auto;display:flex;align-items:center;min-height:50px;gap:16px}
.primary-nav ul{display:flex;flex-wrap:wrap;align-items:center;gap:5px;list-style:none;margin:0;padding:0}
.primary-nav li{position:relative}
.primary-nav a{display:block;padding:12px 15px;border-radius:10px;color:#24505e;font-weight:650;font-size:14px}
.primary-nav a:hover,.primary-nav .current-menu-item>a,.primary-nav .current_page_item>a{background:var(--h2o-sky);color:var(--h2o-primary-deep)}
.primary-nav .sub-menu{display:none;position:absolute;left:0;top:100%;min-width:220px;padding:8px;background:#fff;border:1px solid var(--h2o-line);border-radius:12px;box-shadow:var(--h2o-shadow);z-index:20}
.primary-nav li:hover>.sub-menu{display:block}
.primary-nav .sub-menu li{width:100%}
.primary-nav .sub-menu a{padding:9px 11px}

.site-wrap{width:min(calc(100% - 34px),var(--h2o-container));margin:26px auto 40px}
.water-grid{
  display:grid;
  grid-template-columns:var(--h2o-left) minmax(0,1fr) var(--h2o-right);
  gap:22px;
  align-items:start;
  min-width:726px;
}
.site-main{min-width:0}
.sidebar{min-width:0}
.sidebar-sticky{position:sticky;top:16px}

.widget,.sidebar-card,.content-panel,.post-card,.article-card,.page-card,.archive-intro,.hero-panel{
  background:rgba(255,255,255,.97);
  border:1px solid var(--h2o-line);
  border-radius:var(--h2o-radius);
  box-shadow:var(--h2o-shadow);
}
.widget,.sidebar-card{padding:18px;margin:0 0 18px}
.widget-title,.sidebar-title{
  margin:0 0 13px;padding:0 0 10px;border-bottom:1px solid var(--h2o-line);
  font-size:16px;line-height:1.25;color:#16495b;font-weight:800;
}
.widget-title:before,.sidebar-title:before{content:"";display:inline-block;width:7px;height:7px;margin:0 7px 2px 0;border-radius:50%;background:var(--h2o-secondary);box-shadow:0 0 0 4px rgba(49,182,201,.11)}
.widget ul,.sidebar-list{list-style:none;margin:0;padding:0}
.widget li,.sidebar-list li{border-bottom:1px solid #edf5f7;padding:8px 0;font-size:13.5px;line-height:1.4}
.widget li:last-child,.sidebar-list li:last-child{border-bottom:0;padding-bottom:0}
.widget li:first-child,.sidebar-list li:first-child{padding-top:0}
.widget .children{margin:7px 0 0 10px;padding-left:9px;border-left:2px solid #e2f1f5}
.widget a,.sidebar-list a{color:#315d6b}
.widget a:hover,.sidebar-list a:hover{color:var(--h2o-primary)}

.sidebar-search .search-field{height:40px;font-size:13px}
.sidebar-search .search-submit{width:32px;height:32px;top:4px}

.popular-mini{display:grid;grid-template-columns:58px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid #edf5f7}
.popular-mini:first-of-type{padding-top:0}
.popular-mini:last-child{border-bottom:0;padding-bottom:0}
.popular-mini-thumb{width:58px;height:58px;border-radius:11px;overflow:hidden;background:linear-gradient(135deg,#dff5fb,#b9e4ee);display:block}
.popular-mini-thumb img{width:100%;height:100%;object-fit:cover}
.popular-mini-title{font-size:12.8px;line-height:1.35;font-weight:700;color:#2c5967}
.popular-mini-meta{font-size:11px;color:#81979f;margin-top:3px}

.hero-panel{position:relative;overflow:hidden;margin-bottom:20px;padding:28px 30px;background:linear-gradient(130deg,#fff 0%,#edfaff 100%)}
.hero-panel:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;right:-75px;top:-90px;background:radial-gradient(circle at 35% 35%,rgba(255,255,255,.95),rgba(49,182,201,.24) 52%,rgba(8,127,168,.06) 72%,transparent 73%)}
.hero-kicker{display:inline-flex;align-items:center;gap:7px;margin-bottom:8px;color:var(--h2o-primary);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}
.hero-kicker:before{content:"";width:20px;height:3px;border-radius:4px;background:var(--h2o-secondary)}
.hero-title{margin:0;max-width:650px;font-size:clamp(28px,3vw,42px);line-height:1.08;letter-spacing:-.035em;color:#0e485c}
.hero-text{margin:12px 0 0;max-width:700px;color:#58747e;font-size:15px}

.section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:24px 2px 14px}
.section-heading h2{margin:0;font-size:24px;line-height:1.2;color:#143f4d}
.section-heading a{font-size:12px;font-weight:700}
.posts-list{display:grid;gap:14px}
.post-card{overflow:hidden;display:grid;grid-template-columns:190px minmax(0,1fr);min-height:146px}
.post-card-image{display:block;min-height:146px;background:linear-gradient(135deg,#dff7fc 0,#a9dfe9 55%,#d9f5f8 100%);overflow:hidden;position:relative}
.post-card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.post-card:hover .post-card-image img{transform:scale(1.025)}
.post-card-image.no-image:before{content:"";position:absolute;width:62px;height:82px;left:50%;top:50%;transform:translate(-50%,-51%) rotate(45deg);border-radius:65% 35% 65% 35%;background:rgba(255,255,255,.54);box-shadow:inset 0 0 0 1px rgba(255,255,255,.6)}
.post-card-body{padding:17px 20px 16px;min-width:0}
.post-card-cat{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--h2o-primary);margin-bottom:5px}
.post-card-title{margin:0 0 7px;font-size:20px;line-height:1.24;color:#193f4d}
.post-card-title a{color:inherit}
.post-card-title a:hover{color:var(--h2o-primary)}
.post-card-excerpt{margin:0;color:#617982;font-size:13.5px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.post-card-meta{margin-top:9px;font-size:11px;color:#8da0a7}

.article-card,.page-card,.archive-intro{padding:28px 31px}
.article-header{margin-bottom:20px}
.breadcrumbs{margin-bottom:12px;font-size:11.5px;color:#859aa2;line-height:1.4}
.breadcrumbs a{color:#6e8992}
.entry-title{margin:0;color:#123f4e;font-size:clamp(28px,3vw,40px);line-height:1.15;letter-spacing:-.025em}
.entry-meta{display:flex;flex-wrap:wrap;gap:12px;margin-top:11px;color:#80959d;font-size:11.5px}
.entry-featured{margin:21px 0;border-radius:15px;overflow:hidden;background:#e3f4f8}
.entry-featured img{width:100%;display:block}
.article-lead{font-size:17px;color:#4f6d78;border-left:4px solid var(--h2o-secondary);padding-left:16px;margin:18px 0}

.entry-content{font-size:16.5px;line-height:1.78;color:#244953}
.entry-content p{margin:0 0 1.25em}
.entry-content h2,.entry-content h3,.entry-content h4{color:#123f4e;line-height:1.25;scroll-margin-top:20px}
.entry-content h2{font-size:27px;margin:1.55em 0 .62em;padding-bottom:9px;border-bottom:1px solid #dcedf1}
.entry-content h3{font-size:21px;margin:1.4em 0 .5em}
.entry-content h4{font-size:18px;margin:1.25em 0 .45em}
.entry-content a{text-decoration:underline;text-decoration-color:#9dd8e5;text-underline-offset:2px}
.entry-content ul,.entry-content ol{padding-left:1.4em}
.entry-content li{margin:.3em 0}
.entry-content blockquote{margin:1.5em 0;padding:15px 18px;border-left:4px solid var(--h2o-primary);background:var(--h2o-mist);border-radius:0 12px 12px 0;color:#47656f}
.entry-content table{width:100%;border-collapse:separate;border-spacing:0;margin:1.4em 0;border:1px solid var(--h2o-line);border-radius:12px;overflow:hidden;font-size:14px}
.entry-content th{background:#e8f8fc;color:#16495b;font-weight:800}
.entry-content th,.entry-content td{padding:10px 12px;border-right:1px solid var(--h2o-line);border-bottom:1px solid var(--h2o-line);text-align:left;vertical-align:top}
.entry-content tr:last-child td{border-bottom:0}.entry-content th:last-child,.entry-content td:last-child{border-right:0}
.entry-content img{border-radius:14px}
.entry-content figure{max-width:100%}.entry-content figcaption{font-size:12px;color:#7a9199;text-align:center;margin-top:5px}

/* Содержание, в том числе типовые плагины TOC */
.entry-content #toc_container,.entry-content .ez-toc-container,.entry-content .lwptoc,.entry-content .toc,.entry-content nav[aria-label*="Содержание"]{
  margin:1.4em 0;padding:16px 19px;border:1px solid #cce8ef;border-radius:14px;background:#f4fbfd;box-shadow:none
}
.entry-content #toc_container p.toc_title,.entry-content .ez-toc-title-container,.entry-content .lwptoc_title{font-weight:800;color:#154a5b}

.post-taxonomy{margin-top:24px;padding-top:16px;border-top:1px solid var(--h2o-line);font-size:12px;color:#789098}
.post-tags a{display:inline-block;margin:5px 5px 0 0;padding:5px 9px;border-radius:999px;background:#eef8fa;color:#51717c;text-decoration:none;font-size:11px}
.post-tags a:hover{background:#dff2f7;color:var(--h2o-primary-deep)}

.archive-intro{margin-bottom:16px;background:linear-gradient(135deg,#fff,#f0fbfe)}
.archive-title{margin:0;font-size:30px;color:#123f4e;line-height:1.15}
.archive-description{margin-top:10px;color:#607a83;font-size:14px}
.archive-description p{margin:.45em 0}

.pagination,.nav-links{display:flex;flex-wrap:wrap;gap:7px;margin:22px 0 0}
.page-numbers,.nav-links a,.nav-links span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 11px;border:1px solid var(--h2o-line);border-radius:10px;background:#fff;color:#426672;font-size:12px}
.page-numbers.current{background:var(--h2o-primary);border-color:var(--h2o-primary);color:#fff}

.post-navigation{margin-top:18px;padding:15px 0;border-top:1px solid var(--h2o-line);border-bottom:1px solid var(--h2o-line)}
.post-navigation .nav-links{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:15px}
.post-navigation a{height:auto;border:0;background:transparent;padding:0;display:block;font-weight:700;line-height:1.4}
.post-navigation .nav-next{text-align:right}

.comments-area{margin-top:18px;background:#fff;border:1px solid var(--h2o-line);border-radius:var(--h2o-radius);box-shadow:var(--h2o-shadow);padding:24px 28px}
.comments-title,.comment-reply-title{font-size:21px;color:#153f4d}
.comment-list{list-style:none;padding:0}
.comment-body{padding:15px 0;border-bottom:1px solid #e8f1f3}
.comment-meta{font-size:12px}.comment-content{font-size:14px}
.comment-form label{display:block;font-size:12px;font-weight:700;margin-bottom:4px}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;border:1px solid var(--h2o-line);border-radius:10px;padding:10px 12px;outline:none;background:#fbfeff}
.comment-form textarea{min-height:130px}
.comment-form input:focus,.comment-form textarea:focus{border-color:var(--h2o-secondary);box-shadow:0 0 0 3px rgba(49,182,201,.10)}
.submit,.wp-block-button__link,.button{border:0;border-radius:999px;padding:10px 18px;background:var(--h2o-primary);color:#fff!important;cursor:pointer;text-decoration:none!important;font-weight:700}

.author-box{display:grid;grid-template-columns:84px minmax(0,1fr);gap:18px;align-items:start;margin-top:24px;padding:22px 0 2px;border-top:1px solid var(--h2o-line);background:#fff}
.author-avatar img{display:block;width:84px;height:84px;object-fit:cover;border-radius:50%;box-shadow:0 4px 16px rgba(13,77,99,.10)}
.author-content{min-width:0}
.author-name{margin:1px 0 7px;font-size:20px;line-height:1.25;font-weight:800;color:#173d49}
.author-name a{color:inherit}
.author-bio{margin:0;color:#61777f;font-size:14px;line-height:1.65}.author-bio p{margin:0 0 .6em}.author-bio p:last-child{margin-bottom:0}
.author-site{margin-top:7px;font-size:12px}
.author-site a{font-weight:700}

.site-footer{
  margin-top:38px;
  background:
    linear-gradient(180deg, rgba(3,37,58,.86) 0%, rgba(6,70,100,.84) 42%, rgba(8,83,120,.88) 100%),
    url("assets/images/footer-wave.png") center/cover no-repeat;
  color:#ffffff;
  position:relative;
  overflow:hidden;
}
.site-footer:before{content:"";position:absolute;left:-5%;top:-32px;width:110%;height:52px;background:#f7fbfc;border-radius:50%;transform:rotate(-1deg)}
.site-footer:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 26%, rgba(0,0,0,.12) 100%);pointer-events:none}
.footer-inner{width:min(calc(100% - 34px),var(--h2o-container));margin:0 auto;padding:54px 0 25px;display:grid;grid-template-columns:1.3fr .8fr .9fr;gap:30px;position:relative;z-index:1}
.footer-title{font-weight:800;font-size:20px;color:#fff;margin-bottom:8px}
.footer-text{font-size:13px;color:#ffffff;max-width:540px}
.footer-text a,.footer-widget a{color:#ffffff;text-decoration:underline;text-underline-offset:2px}
.footer-menu{list-style:none;padding:0;margin:0}
.footer-menu li{margin:5px 0}
.footer-menu a{color:#ffffff;font-size:13px;font-weight:700}
.footer-menu a:hover,.footer-text a:hover,.footer-widget a:hover{color:#dff8ff}
.footer-widget,.footer-widget *{color:#ffffff}
.footer-widget ul{list-style:none;margin:0;padding:0}
.footer-widget li{margin:5px 0}
.footer-bottom{width:min(calc(100% - 34px),var(--h2o-container));margin:0 auto;padding:14px 0 20px;border-top:1px solid rgba(255,255,255,.18);font-size:12px;color:#ffffff;display:flex;justify-content:space-between;gap:20px;position:relative;z-index:1}

.no-results{padding:24px;background:#fff;border:1px solid var(--h2o-line);border-radius:var(--h2o-radius)}

/* Gutenberg */
.alignwide{margin-left:-18px;margin-right:-18px;max-width:calc(100% + 36px)}
.alignfull{margin-left:-31px;margin-right:-31px;max-width:calc(100% + 62px);width:calc(100% + 62px)}
.wp-caption{max-width:100%}

/* Tablet: сетка остаётся трёхколоночной */
@media (max-width:980px){
  :root{--h2o-left:160px;--h2o-right:185px}
  .site-wrap,.header-inner,.primary-nav-inner,.footer-inner,.footer-bottom{width:calc(100% - 22px)}
  .water-grid{gap:14px;grid-template-columns:160px minmax(380px,1fr) 185px}
  .widget,.sidebar-card{padding:13px}.widget-title,.sidebar-title{font-size:14px}.widget li,.sidebar-list li{font-size:12px}
  .post-card{grid-template-columns:150px minmax(0,1fr)}
  .post-card-title{font-size:18px}.post-card-body{padding:14px 15px}
  .article-card,.page-card,.archive-intro{padding:23px 24px}
  .entry-content{font-size:15.5px}
  .header-search{width:230px}
}

/* Phone: никаких перестроений в одну колонку. Сохраняем всю сетку и даём горизонтальный просмотр. */
@media (max-width:620px){
  body{min-width:760px}
  :root{--h2o-left:150px;--h2o-right:170px}
  .header-inner{min-height:92px;padding:16px 0 23px}
  .site-title{font-size:30px}.site-description{font-size:12px}.water-mark{width:44px;height:44px;flex-basis:44px}.water-mark svg{width:21px}
  .header-search{width:190px}
  .primary-nav a{padding:10px 11px;font-size:12px}
  .site-wrap{margin-top:16px}
  .water-grid{grid-template-columns:150px minmax(400px,1fr) 170px;gap:10px;min-width:740px}
  .widget,.sidebar-card{border-radius:13px;padding:11px;margin-bottom:10px;box-shadow:0 5px 18px rgba(21,77,96,.07)}
  .widget-title,.sidebar-title{font-size:13px;margin-bottom:9px;padding-bottom:7px}
  .widget li,.sidebar-list li{font-size:11px;padding:6px 0}
  .popular-mini{grid-template-columns:42px 1fr;gap:7px}.popular-mini-thumb{width:42px;height:42px}.popular-mini-title{font-size:10.5px}.popular-mini-meta{display:none}
  .hero-panel{padding:21px 22px;border-radius:15px}.hero-title{font-size:28px}.hero-text{font-size:13px}
  .post-card{grid-template-columns:130px minmax(0,1fr);border-radius:14px}.post-card-title{font-size:16px}.post-card-excerpt{font-size:12px;-webkit-line-clamp:2}.post-card-body{padding:12px}
  .article-card,.page-card,.archive-intro{padding:20px;border-radius:15px}.entry-title{font-size:28px}.entry-content{font-size:15px}.entry-content h2{font-size:23px}.entry-content h3{font-size:19px}
  .footer-inner{grid-template-columns:1.2fr .8fr .8fr;padding-top:49px}.footer-bottom{font-size:10px}
}


.site-header .site-title a,.site-header .site-description,.site-header .header-search{position:relative;z-index:2}



/* Надёжная читаемость подвала, включая резервное меню WordPress */
.site-footer,
.site-footer p,
.site-footer span,
.site-footer li,
.site-footer div,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .footer-title,
.site-footer .footer-text,
.site-footer .footer-bottom,
.site-footer a,
.site-footer ul a,
.site-footer .footer-menu a,
.site-footer .footer-widget,
.site-footer .footer-widget *{color:#ffffff !important}
.site-footer a:hover{opacity:.88}




/* Размер основного текста */
body{font-size:var(--h2o-base-font,18px)}
.entry-content{font-size:calc(var(--h2o-base-font,18px) + 1px)!important;line-height:1.82}
.post-card-excerpt{font-size:calc(var(--h2o-base-font,18px) - 2px)}
.site-description{font-size:14px}
@media (max-width:980px){
  .entry-content{font-size:var(--h2o-base-font,17px)!important}
}
@media (max-width:620px){
  .entry-content{font-size:var(--h2o-base-font,17px)!important}
}

/* Комментарии */
.comments-area{
  margin-top:24px;
  background:#ffffff;
  border:1px solid var(--h2o-line);
  border-radius:18px;
  box-shadow:0 10px 30px rgba(21,77,96,.07);
  padding:28px 30px;
}
.comments-heading-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.comments-title,.comment-reply-title{margin:0;color:#153f4d;font-size:24px;line-height:1.25}
.comments-title span{display:inline-flex;min-width:30px;height:30px;align-items:center;justify-content:center;margin-left:7px;padding:0 9px;border-radius:999px;background:#e9f8fc;color:var(--h2o-primary);font-size:14px;vertical-align:2px}
.comment-list,.comment-list .children{list-style:none!important;margin:0;padding:0}
.comment-list .children{margin:14px 0 0 42px;padding-left:18px;border-left:2px solid #d9edf2}
.h2o-comment-item{margin:0 0 14px;padding:0!important}
.h2o-comment-card{display:grid;grid-template-columns:56px minmax(0,1fr);gap:16px;padding:18px 20px;border:1px solid #dbeef3;border-radius:15px;background:#fbfeff}
.bypostauthor>.h2o-comment-card{background:#f4fbfd;border-color:#c5e7ef}
.h2o-comment-avatar img{width:56px;height:56px;border-radius:50%;display:block;object-fit:cover}
.h2o-comment-header{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:8px}
.h2o-comment-author,.h2o-comment-author a{font-size:16px;font-weight:800;color:#173f4d}
.h2o-comment-date{font-size:12px;color:#79919a;white-space:nowrap}
.h2o-comment-content{font-size:var(--h2o-base-font,18px);line-height:1.7;color:#294b56}
.h2o-comment-content p{margin:.3em 0 .8em}
.h2o-comment-actions{display:flex;gap:14px;align-items:center;margin-top:8px}
.h2o-comment-actions a{font-size:13px;font-weight:700;color:var(--h2o-primary)}
.h2o-comment-edit{display:inline-flex}
.comment-awaiting-moderation{margin:4px 0 8px;padding:7px 10px;border-radius:9px;background:#fff8dc;color:#7a6420;font-size:13px}
.comment-navigation .nav-links{margin:16px 0}
.comment-respond{margin-top:26px;padding-top:24px;border-top:1px solid #e2eff3}
.comment-form{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
.comment-form-comment,.comment-notes,.logged-in-as,.form-submit,.comment-form-cookies-consent{grid-column:1/-1}
.comment-form p{margin:0}
.comment-form label{display:block;margin-bottom:6px;font-size:14px;font-weight:750;color:#355b68}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;border:1px solid #cfe5eb;border-radius:12px;padding:11px 13px;background:#fbfeff;color:#244953;font-size:16px;outline:none}
.comment-form textarea{min-height:150px;resize:vertical}
.comment-form input:focus,.comment-form textarea:focus{border-color:var(--h2o-secondary);box-shadow:0 0 0 3px rgba(49,182,201,.12)}
.h2o-comment-submit{padding:11px 20px!important;font-size:15px!important}
.comments-closed{font-size:15px;color:#6f8790}
@media (max-width:620px){
  .comments-area{padding:20px}
  .comment-list .children{margin-left:24px;padding-left:12px}
  .h2o-comment-card{grid-template-columns:46px minmax(0,1fr);gap:12px;padding:14px}
  .h2o-comment-avatar img{width:46px;height:46px}
  .h2o-comment-header{display:block}
  .h2o-comment-date{display:block;margin-top:2px}
}

/* Кнопки прокрутки: работают без JavaScript */
.h2o-page-bottom-anchor{width:1px;height:1px;position:relative}
.h2o-scroll-buttons{
  position:fixed!important;
  right:22px!important;
  bottom:22px!important;
  z-index:2147483000!important;
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  pointer-events:auto!important;
}
.h2o-scroll-btn{
  width:54px!important;
  height:54px!important;
  padding:0!important;
  border:1px solid rgba(36,91,112,.12)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.97)!important;
  box-shadow:0 10px 28px rgba(20,61,85,.18)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-decoration:none!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  cursor:pointer!important;
}
.h2o-scroll-btn span{width:15px;height:15px;display:block;border-left:3px solid #6d73e6;border-top:3px solid #6d73e6}
.h2o-scroll-up span{transform:rotate(45deg) translate(3px,3px)}
.h2o-scroll-down span{transform:rotate(225deg) translate(3px,3px)}
.h2o-scroll-btn:hover{background:#fff!important;box-shadow:0 13px 32px rgba(20,61,85,.22)!important}
.h2o-scroll-btn:focus-visible{outline:3px solid rgba(109,115,230,.22);outline-offset:2px}
@media (max-width:620px){
  .h2o-scroll-buttons{right:14px!important;bottom:14px!important}
  .h2o-scroll-btn{width:48px!important;height:48px!important;border-radius:12px!important}
}


/* 1.5 — резервное оформление стандартной разметки комментариев.
   Оно срабатывает даже если сторонний плагин меняет callback WordPress. */
.comments-area .comment-list > li,
.comments-area .comment-list .children > li{
  list-style:none!important;
  margin:0 0 16px!important;
  padding:0!important;
}
.comments-area .comment-body:not(.h2o-comment-card){
  margin:0!important;
  padding:18px 20px!important;
  border:1px solid #d7eaf0!important;
  border-radius:15px!important;
  background:#fbfeff!important;
  box-shadow:0 5px 16px rgba(20,73,91,.05)!important;
}
.comments-area .comment-author{display:flex;align-items:center;gap:12px;margin-bottom:5px}
.comments-area .comment-author .avatar{width:52px!important;height:52px!important;border-radius:50%!important;object-fit:cover!important;margin:0!important;float:none!important}
.comments-area .comment-author .fn,.comments-area .comment-author .fn a{font-size:16px!important;font-weight:800!important;color:#173f4d!important}
.comments-area .comment-meta,.comments-area .comment-metadata{font-size:13px!important;color:#78919a!important;margin:0 0 12px!important}
.comments-area .comment-content{font-size:var(--h2o-base-font,18px)!important;line-height:1.72!important;color:#294b56!important}
.comments-area .reply,.comments-area .comment-edit-link{display:inline-block;margin-top:8px;margin-right:14px;font-size:14px!important;font-weight:700!important}
.comments-area .children{list-style:none!important;margin:14px 0 0 38px!important;padding:0 0 0 18px!important;border-left:2px solid #d8edf2!important}
.comments-area .children .comment-body:not(.h2o-comment-card){background:#f4fbfd!important}


/* Рубрики и вложенные списки */
.widget ul ul,.sidebar-list ul,.widget .children,.sidebar-list .children{list-style:none;padding-left:0}
.widget_categories > ul > li,
.sidebar-list > li{padding:0;border-bottom:1px solid #edf5f7}
.widget_categories > ul > li:last-child,
.sidebar-list > li:last-child{border-bottom:0}
.widget_categories li,
.sidebar-list li{position:relative}
.widget_categories li a,
.sidebar-list li a{display:block;padding:10px 0 10px 18px;position:relative;line-height:1.45}
.widget_categories li a:before,
.sidebar-list li a:before{content:"";position:absolute;left:0;top:1.03em;width:7px;height:7px;border-radius:50%;background:#8fcfdf;box-shadow:0 0 0 3px rgba(49,182,201,.09)}
.widget_categories .children,
.sidebar-list .children{margin:0 0 8px 10px;padding:0 0 0 14px;border-left:2px solid #deeff4}
.widget_categories .children li,
.sidebar-list .children li{border-bottom:1px solid #f1f7f9}
.widget_categories .children li:last-child,
.sidebar-list .children li:last-child{border-bottom:0}
.widget_categories .children li a,
.sidebar-list .children li a{padding:8px 0 8px 18px;color:#446774;font-size:13px}
.widget_categories .children li a:before,
.sidebar-list .children li a:before{width:6px;height:6px;top:1.02em;background:#b3dbe5;box-shadow:none}

/* Кнопки прокрутки */
.h2o-scroll-buttons{pointer-events:auto}
.h2o-scroll-btn{display:block;width:56px;height:56px;border-radius:16px;overflow:hidden;text-decoration:none;box-shadow:0 12px 26px rgba(18,70,98,.18);transition:transform .18s ease, box-shadow .18s ease, filter .18s ease}
.h2o-scroll-btn:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 16px 30px rgba(18,70,98,.22);filter:saturate(1.05)}
.h2o-scroll-btn img{display:block;width:56px;height:56px}
@media (max-width:620px){
  .h2o-scroll-buttons{right:12px!important;bottom:12px!important;gap:10px!important}
  .h2o-scroll-btn,.h2o-scroll-btn img{width:50px;height:50px;border-radius:15px}
}


/* 1.7 — точная геометрия рубрик */
.widget_categories .children,
.sidebar-list .children{
  margin-top:9px!important;
  margin-bottom:11px!important;
}
.widget_categories > ul > li > a,
.sidebar-list > li > a{
  padding-top:10px!important;
  padding-bottom:10px!important;
}
.widget_categories > ul > li.menu-item-has-children > a,
.sidebar-list > li.cat-parent > a{
  padding-bottom:12px!important;
}
.widget_categories .children > li:first-child > a,
.sidebar-list .children > li:first-child > a{
  padding-top:9px!important;
}

/* 1.7 — DALL·E-картинка и есть кнопка: никакого белого CSS-квадрата вокруг */
.h2o-scroll-btn,
.h2o-scroll-btn:hover,
.h2o-scroll-btn:focus,
.h2o-scroll-btn:active{
  width:64px!important;
  height:64px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  display:block!important;
  line-height:0!important;
}
.h2o-scroll-btn img{
  display:block!important;
  width:64px!important;
  height:64px!important;
  max-width:none!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
}
.h2o-scroll-btn:hover{
  transform:translateY(-2px) scale(1.04)!important;
  filter:saturate(1.05)!important;
}
.h2o-scroll-btn:focus-visible{
  outline:2px solid rgba(30,163,198,.32)!important;
  outline-offset:3px!important;
  border-radius:18px!important;
}
@media (max-width:620px){
  .h2o-scroll-btn,.h2o-scroll-btn img{width:58px!important;height:58px!important}
}
