/*
Theme Name: Nesterenko
Description: Чистая адаптивная тема личного блога Михаила Нестеренко.
Version: 1.2.0
Requires PHP: 8.0
Text Domain: nesterenko
*/
:root{--ink:#202e3c;--muted:#687684;--blue:#0c3657;--accent:#176799;--line:#dce4eb;--paper:#fff;--wash:#f5f7fa}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--wash);font:17px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}a{color:var(--accent);text-decoration:none}a:hover{color:var(--blue)}a:focus-visible,summary:focus-visible{outline:3px solid #64afe1;outline-offset:5px}img{max-width:100%;height:auto}button,input,textarea{font:inherit}.skip-link{position:absolute;top:-100px;left:15px;padding:12px;background:#fff;z-index:20}.skip-link:focus{top:12px}.site-header{background:var(--paper);border-bottom:1px solid var(--line)}.header-inner{max-width:1140px;margin:auto;padding:28px 32px;display:flex;gap:22px;align-items:center;flex-wrap:wrap}.portrait{width:88px;height:88px;object-fit:cover;border-radius:50%;display:block}.identity{flex:1;min-width:250px}.site-title{font-size:29px;line-height:1.2;font-weight:650;letter-spacing:-.02em;color:var(--blue)}.site-tagline{margin:7px 0 0;color:var(--muted);font-size:16px}.main-nav>ul{list-style:none;display:flex;gap:26px;padding:0;margin:0;align-items:center}.main-nav a,.main-nav summary{color:var(--ink);font-size:16px}.year-nav{position:relative}.year-nav summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px}.year-nav summary::-webkit-details-marker{display:none}.year-nav summary:after{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin-top:-3px}.year-nav details[open] summary:after{transform:rotate(225deg);margin-top:4px}.year-nav ul{position:absolute;top:32px;right:0;min-width:140px;padding:9px 0;margin:0;list-style:none;max-height:65vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 12px 35px #12334b20;z-index:10}.year-nav li a{display:block;padding:7px 22px}.year-nav li a:hover{background:var(--wash)}.site-main{max-width:1040px;margin:44px auto 70px;padding:0 32px}.page-heading{margin:0 0 27px;font-size:30px;color:var(--blue);line-height:1.3}.post-list{display:flex;flex-direction:column;gap:22px}.post-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:30px 34px}.post-card time,.post-meta{color:var(--muted);font-size:15px}.post-card h2{font-size:25px;line-height:1.35;letter-spacing:-.01em;margin:8px 0 12px}.post-card h2 a{color:var(--blue)}.post-card p{margin:0;color:#445362}.card-image{float:right;max-width:220px;max-height:160px;object-fit:contain;margin:0 0 15px 25px;border-radius:7px}.post-card:after{content:"";display:block;clear:both}.read-more{display:inline-block;margin-top:15px;font-size:16px}.entry-shell{max-width:830px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:12px;padding:42px 48px}.entry-header h1{font-size:36px;line-height:1.25;color:var(--blue);letter-spacing:-.02em;margin:8px 0 18px}.entry-content{font:19px/1.75 Georgia,"Times New Roman",serif;overflow-wrap:anywhere}.entry-content p{margin:0 0 1.1em}.entry-content h2,.entry-content h3{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.35;color:var(--blue);margin-top:1.6em}.entry-content blockquote{margin:1.4em 0;padding:0 0 0 22px;border-left:3px solid #9bb7cc;color:#495969}.entry-content figure{max-width:100%;margin:1.4em 0}.entry-content figure img{display:block;max-height:1100px;object-fit:contain}.entry-content figcaption{font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--muted);margin-top:8px}.entry-content iframe{max-width:100%;border:0}.entry-content table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}.entry-content td,.entry-content th{padding:7px 10px;border:1px solid var(--line)}.entry-content pre{white-space:pre-wrap}.entry-content ul,.entry-content ol{padding-left:26px}.entry-content .alignleft{float:left;margin:0 22px 12px 0}.entry-content .alignright{float:right;margin:0 0 12px 22px}.entry-footer{margin-top:32px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted);font-size:15px}.entry-nav{display:flex;justify-content:space-between;gap:25px;font-size:16px;margin-top:30px}.pagination{margin:32px 0;display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.page-numbers{padding:7px 13px;border:1px solid var(--line);background:#fff;border-radius:6px}.page-numbers.current{background:var(--blue);color:#fff}.site-footer{max-width:1140px;margin:auto;padding:28px 32px 38px;color:var(--muted);border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:15px}.social-links{display:flex;gap:22px}.empty-state{padding:40px;background:#fff;border-radius:12px}.contact-links{display:flex;gap:15px;flex-wrap:wrap;margin:25px 0}.contact-links a{padding:12px 20px;border:1px solid var(--line);border-radius:8px;font:17px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}.contact-links a:hover{background:var(--wash)}
@media(max-width:740px){.header-inner{padding:22px 20px;gap:15px}.portrait{width:70px;height:70px}.identity{min-width:180px}.site-title{font-size:25px}.main-nav{width:100%;padding-top:8px}.main-nav>ul{gap:25px}.year-nav ul{left:0;right:auto}.site-main{margin:28px auto 45px;padding:0 16px}.post-card{padding:23px}.post-card h2{font-size:23px}.card-image{max-width:120px;max-height:100px;margin-left:15px}.entry-shell{padding:28px 23px}.entry-header h1{font-size:29px}.entry-content{font-size:18px;line-height:1.7}.entry-content .alignleft,.entry-content .alignright{float:none;margin:15px 0}.site-footer{padding:23px 20px}.page-heading{font-size:27px}.entry-nav{flex-direction:column}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Согласованная новостная вёрстка, 2 ноября 2026. */
:root{--blue:#144a85;--ink:#203143;--muted:#596c7d;--wash:#fff;--header-wash:#eaf4fc}
body{background:#fff}.site-header{background:var(--header-wash);border-top:7px solid #d4e8f8}.header-inner{padding:28px 32px 24px}.portrait{width:65px;height:65px}.site-title{font-size:29px;color:#15304c}.site-tagline{font-size:16px}.navigation-bar{border-bottom:1px solid var(--line);background:#fff}.navigation-inner{max-width:1140px;margin:auto;padding:12px 32px;display:flex;align-items:center;gap:25px;flex-wrap:wrap}.site-search{margin-left:auto;display:flex;align-items:center;gap:10px}.site-search input{width:170px;min-width:0;border:0;border-bottom:1px solid #aebfce;border-radius:0;padding:6px 0;color:var(--ink);background:#fff}.site-search button{padding:5px 10px;border:1px solid var(--line);background:#fff;color:var(--blue);border-radius:4px;cursor:pointer}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.site-main{max-width:1140px;margin:30px auto 55px}.news-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:40px}.news-feed{min-width:0}.page-heading{font-size:20px;padding-bottom:12px;border-bottom:3px solid var(--blue);margin-bottom:24px}.post-list{gap:0}.post-card{padding:0 0 25px;margin:0 0 25px;border:0;border-bottom:1px solid var(--line);border-radius:0}.post-card h2{font-size:24px;margin:7px 0 10px;color:#15304c}.post-card h2 a{color:#15304c}.post-card time{font-size:16px}.lead-post h2{font-size:34px;line-height:1.25}.post-card p{font-size:17px;color:var(--ink)}.card-image{width:130px;max-width:32%;max-height:110px;border-radius:0;margin:0 0 14px 20px;object-fit:contain}.lead-image{display:block;width:auto;max-width:100%;max-height:360px;object-fit:contain;margin:18px 0 0}.read-more{font-size:16px;margin-top:12px}.sidebar-block{margin-bottom:32px}.news-sidebar h2{font-size:20px;line-height:1.35;color:#15304c;margin:0 0 14px}.small-post{border-bottom:1px solid var(--line);padding:14px 0}.small-post:first-of-type{padding-top:0}.small-post time{font-size:16px;color:var(--muted)}.small-post h3{font-size:17px;font-weight:500;line-height:1.4;margin:6px 0 0}.small-post h3 a{color:#15304c}.archive-years{display:flex;gap:10px 20px;flex-wrap:wrap}.subscribe-block{padding:22px;background:#edf4fa;border-top:3px solid var(--blue)}.subscribe-block p{font-size:16px;color:var(--muted);margin:0}.subscribe-links{display:flex;gap:12px 18px;flex-wrap:wrap;margin-top:15px}.all-contacts{display:inline-block;margin-top:18px}.pagination{justify-content:flex-start}.entry-shell{border:0;border-radius:0;padding:15px 0 35px}.entry-content{font-size:19px}.social-links{flex-wrap:wrap}.contact-links a{min-height:44px}.site-footer{font-size:16px}.site-search input:focus-visible,.site-search button:focus-visible{outline:3px solid #64afe1;outline-offset:3px}
@media(max-width:740px){.header-inner{padding:23px 20px}.portrait{width:60px;height:60px}.site-title{font-size:25px}.identity{min-width:0}.site-tagline{font-size:16px}.navigation-inner{padding:12px 20px;gap:16px}.main-nav{width:auto;padding:0}.main-nav>ul{gap:22px}.site-search{margin-left:0;width:100%}.site-search input{flex:1;width:100%}.site-main{padding:0 20px;margin-top:25px}.news-layout{grid-template-columns:1fr;gap:20px}.lead-post h2{font-size:29px}.post-card{padding:0 0 23px}.post-card h2{font-size:24px}.lead-post h2{font-size:29px}.entry-shell{padding:0 0 20px}.entry-content{font-size:18px}.news-sidebar{border-top:1px solid var(--line);padding-top:25px}.card-image{width:110px}.site-footer{padding:23px 20px}.social-links{gap:12px 20px}}

.video-player{width:100%;margin:18px 0 0}.video-player iframe,.entry-content iframe{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0}.entry-content iframe{margin:20px 0}.post-card .video-player{max-width:740px}

/* Светлая схема также при системном тёмном режиме и Auto Dark Theme. */
:root{color-scheme:only light;--paper:#fff;--wash:#fff}
html,body{background-color:#fff;color:#203143}
.site-header{background-color:#eaf4fc}.navigation-bar,.site-main,.post-card,.entry-shell,.site-footer{background-color:#fff}
input,button,textarea,select{color-scheme:only light}

.post-excerpt{font-size:17px;line-height:1.65;color:var(--ink);overflow-wrap:anywhere}.article-badge{display:inline-block;margin-left:12px;padding:1px 8px;border-radius:4px;background:#edf4fa;color:#144a85;font-size:16px;line-height:1.6;font-weight:500}.article-badge:hover{background:#dcecf8}.entry-content a{overflow-wrap:anywhere}
