/*
Theme Name: dds_geukhanjikeop.ru
Author: Алексей Громов
Description: Тема для информационно-образовательного портала об экстремальных профессиях.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: extrprof
*/

:root{
  --bg:#14161C; --bg-alt:#1B1E27; --bg-head:#0E1015; --bg-foot:#0B0D12; --bg-side:#191C24;
  --text:#E8EAED; --copper:#C87A3E; --steel:#5B8DB8; --muted:#8A919E; --line:#2A2F3A;
  --f-head:"Jost","Segoe UI",Arial,sans-serif; --f-body:"Fira Sans","Segoe UI",Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{
  margin:0; overflow-x:hidden; color:var(--text); font-family:var(--f-body); font-weight:300;
  font-size:1.0625rem; line-height:1.7;
  background-color:var(--bg);
  background-image:repeating-linear-gradient(45deg, transparent 0 19px, #1A1D25 19px 20px);
  position:relative;
}
body::before{content:"";display:block;height:3px;background:var(--copper);box-shadow:0 0 8px rgba(200,122,62,.4);position:relative;z-index:3}
body::after{
  content:""; position:fixed; right:0; bottom:0; width:min(460px,45%); height:240px; pointer-events:none; z-index:0;
  background:no-repeat right bottom/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 240'%3E%3Cpath d='M0 240 L70 150 L110 185 L180 70 L230 130 L280 40 L340 140 L380 110 L460 200' fill='none' stroke='%23C87A3E' stroke-opacity='.08' stroke-width='2'/%3E%3Cpath d='M180 70 L200 95 L215 88 M280 40 L300 70 L318 62' fill='none' stroke='%23C87A3E' stroke-opacity='.08' stroke-width='1.5'/%3E%3C/svg%3E");
}
body.bg-sky::after{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 240'%3E%3Cpath d='M250 30 Q330 -10 410 30 Q370 22 330 32 Q290 22 250 30Z' fill='none' stroke='%23C87A3E' stroke-opacity='.08' stroke-width='2'/%3E%3Cpath d='M250 30 L330 150 L410 30 M290 26 L330 150 L370 26' fill='none' stroke='%23C87A3E' stroke-opacity='.08' stroke-width='1.5'/%3E%3Ccircle cx='330' cy='162' r='10' fill='none' stroke='%23C87A3E' stroke-opacity='.08' stroke-width='2'/%3E%3Cpath d='M0 240 L90 180 L150 210 L230 150 L300 200 L460 170' fill='none' stroke='%23C87A3E' stroke-opacity='.08' stroke-width='2'/%3E%3C/svg%3E");
}
.site-header,.site-main,.site-footer,.breadcrumbs-wrap{position:relative;z-index:1}

h1,h2,h3,h4,h5,h6{font-family:var(--f-head);font-weight:600;color:#fff;line-height:1.2;margin:1.6em 0 .6em;letter-spacing:.03em}
h1{font-size:clamp(2.1rem,4.6vw,3.2rem);margin-top:0}
h2{font-size:clamp(1.55rem,3vw,2.1rem);position:relative;padding-left:22px}
h2::before{content:"";position:absolute;left:0;top:.55em;width:8px;height:8px;background:var(--copper);transform:rotate(45deg);transition:transform .4s ease}
h2:hover::before{transform:rotate(135deg)}
h3{font-size:1.35rem} h4{font-size:1.15rem}
p{margin:0 0 1.1em}
a{color:var(--steel);text-decoration:none}
.entry-content a,.widget a,.breadcrumbs a,.comment-content a,.link-line{
  background:linear-gradient(var(--copper),var(--copper)) left 100%/0 1px no-repeat;
  transition:background-size .3s ease,color .2s ease;
}
.entry-content a:hover,.widget a:hover,.breadcrumbs a:hover,.comment-content a:hover,.link-line:hover{background-size:100% 1px}
:focus-visible{outline:2px solid var(--copper);outline-offset:3px}
img{max-width:100%;height:auto}
table{width:100%;border-collapse:collapse;margin:0 0 1.4em;border:1px solid var(--line)}
th,td{border:1px solid var(--line);padding:.6em .8em;text-align:left}
th{background:var(--bg-alt);font-family:var(--f-head);font-weight:500}
blockquote{margin:1.5em 0;padding:1.2em 1.5em;border-left:3px solid var(--copper);background:var(--bg-alt);border-radius:0 8px 8px 0}
pre,code{background:#0E1015;border-radius:4px}
pre{padding:1em 1.2em;overflow-x:auto}
hr{border:0;height:1px;background:var(--line);margin:2em 0}

.shell{width:min(92%,1180px);margin-inline:auto}
.shell--front{width:min(85%,1240px)}

/* Кнопки */
.btn{display:inline-block;font-family:var(--f-head);font-weight:500;font-size:1rem;letter-spacing:.03em;padding:.8em 1.6em;border-radius:4px;border:1px solid transparent;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease;line-height:1.2}
.btn-copper{background:var(--copper);color:#14161C;border-color:var(--copper)}
.btn-copper:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(200,122,62,.25);color:#14161C}
.btn-ghost{background:transparent;color:var(--text);border-color:var(--steel)}
.btn-ghost:hover{transform:translateY(-2px);background:rgba(91,141,184,.15);color:#fff}

/* Шапка */
.site-header{background:var(--bg-head);border-bottom:1px solid var(--line)}
.header-row{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1rem 0}
.brand{display:flex;align-items:center;gap:.9rem;min-width:0;color:var(--text)}
.brand-logo{width:52px;height:52px;flex:0 0 52px;display:block;object-fit:contain}
.brand svg{flex:0 0 52px;display:block}
.brand-text{min-width:0}
.brand-name{font-family:var(--f-head);font-weight:500;font-size:.95rem;line-height:1.35;color:#fff;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:560px}
.brand-desc{font-size:.8rem;color:var(--muted);margin:.2rem 0 0;line-height:1.4;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;max-width:560px}
.nav-toggle{display:none;background:none;border:1px solid var(--line);border-radius:4px;color:var(--text);padding:.5rem .7rem;cursor:pointer}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--text);margin:4px 0}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:1.6rem}
.main-nav a{font-family:var(--f-head);font-weight:500;color:var(--text);letter-spacing:.04em;padding:.3rem 0;display:block;position:relative}
.main-nav a::after{content:"";position:absolute;left:0;bottom:0;width:0;height:1px;background:var(--copper);transition:width .3s ease}
.main-nav a:hover::after,.main-nav .current-menu-item>a::after{width:100%}
.main-nav .current-menu-item>a{color:var(--copper)}

/* Хлебные крошки */
.breadcrumbs{font-size:.88rem;color:var(--muted);padding:1.3rem 0 0}
.breadcrumbs .sep{color:var(--copper);margin:0 .35rem}
.breadcrumbs span:last-child{color:var(--text)}

/* Раскладки */
.site-main{padding:2rem 0 5rem}
.layout-with-sidebar{display:flex;justify-content:space-between;align-items:flex-start;gap:6%}
.layout-with-sidebar .content-area{width:67%;min-width:0}
.layout-with-sidebar .sidebar{width:27%;min-width:0}
.layout-single{display:block}
.layout-single .content-area{width:85%;margin-left:auto;margin-right:auto;min-width:0}
.page-head{margin:1.5rem 0 2.2rem}
.page-head h1{margin:0}
.page-head p{color:var(--muted);margin:.6rem 0 0}

/* Сайдбар и виджеты */
.sidebar{background:var(--bg-side);border:1px solid var(--line);border-radius:8px;padding:1.6rem 1.5rem;color:var(--text)}
.widget{margin:0 0 2rem}
.widget:last-child{margin-bottom:0}
.widget-title{font-size:1.1rem;margin:0 0 1rem;padding-left:0;color:#fff;letter-spacing:.04em}
.widget-title::before{display:none}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{padding:.55rem 0;border-bottom:1px dashed var(--line)}
.widget li:last-child{border-bottom:0}
.sidebar .widget a{color:var(--text)}
.sidebar .widget a:hover{color:var(--copper)}
.sidebar .widget .post-date{display:block;color:var(--muted);font-size:.82rem}
.sidebar p{color:var(--text)}

/* Карточки */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:2rem}
.card{display:flex;flex-direction:column;background:var(--bg-alt);border:1px solid var(--line);border-radius:8px;overflow:hidden;min-width:0;
  box-shadow:0 8px 24px rgba(0,0,0,.4),0 -1px 0 rgba(200,122,62,.3);transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.card:hover{transform:translateY(-4px);border-color:var(--copper);box-shadow:0 14px 32px rgba(0,0,0,.55),0 -2px 0 rgba(200,122,62,.75)}
.card-thumb{padding:12px 12px 0}
.card-thumb a{display:block;border-radius:6px;overflow:hidden}
.card-thumb img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:6px}
.card-thumb-empty{display:block;width:100%;aspect-ratio:16/10;border-radius:6px;background:#0E1015 no-repeat center/70% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'%3E%3Cpath d='M0 90 L40 55 L60 70 L100 25 L130 60 L150 45 L200 85' fill='none' stroke='%23C87A3E' stroke-opacity='.45' stroke-width='2'/%3E%3C/svg%3E")}
.card-body{flex:1;display:flex;flex-direction:column;padding:1.2rem 1.4rem 1.5rem;min-width:0}
.card-meta{font-size:.82rem;color:var(--muted);margin:0 0 .5rem}
.card-meta a{color:var(--steel)}
.card-title{font-size:1.25rem;margin:0 0 .7rem;padding:0;letter-spacing:.01em}
.card-title::before{display:none}
.card-title a{color:#fff}
.card-title a:hover{color:var(--copper)}
.card-excerpt{color:#C5C9D0;font-size:.97rem;flex:1}
.card-excerpt p{margin:0 0 .5em;background:none}
.card-more{margin-top:.8rem;font-family:var(--f-head);font-weight:500;color:var(--copper);align-self:flex-start}
.card-more:hover{color:#E09A62}

/* Запись и страница */
.entry{min-width:0}
.entry-title{margin:0 0 .6rem}
.entry-meta{color:var(--muted);font-size:.9rem;margin:0 0 1.6rem}
.entry-thumb img{display:block;width:100%;border-radius:8px;margin:0 0 1.8rem}
.entry-content{overflow-wrap:break-word}
.entry-content ul li::marker{color:var(--copper)}
.entry-tags{margin-top:2rem;font-size:.9rem;color:var(--muted)}

/* Пагинация */
.pager{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:3rem}
.pager .page-numbers{display:inline-block;min-width:2.6rem;text-align:center;padding:.5rem .85rem;border:1px solid var(--line);border-radius:4px;color:var(--text);font-family:var(--f-head);background:var(--bg-alt);transition:border-color .2s ease,color .2s ease}
.pager a.page-numbers:hover{border-color:var(--copper);color:var(--copper)}
.pager .page-numbers.current{background:var(--copper);border-color:var(--copper);color:#14161C}
.pager .page-numbers.dots{border:0;background:none}

/* Главная */
.fs{padding:80px 0;position:relative}
.fs--alt{background:var(--bg-alt);border-top:1px solid rgba(200,122,62,.2)}
.sec-title{font-size:clamp(1.7rem,3.3vw,2.4rem);letter-spacing:-.01em;margin:0 0 2.5rem;padding-left:56px;position:relative}
.sec-title::before{content:"";position:absolute;left:0;top:.62em;width:40px;height:3px;background:var(--copper);transform:none}
.sec-title:hover::before{transform:none}
.route{height:4px;margin:0 15%;background:radial-gradient(circle,rgba(200,122,62,.55) 1.5px,transparent 2px) center/14px 4px repeat-x;position:relative;z-index:1}
.mini-divider{width:60px;height:1px;background:var(--copper);margin:0 auto}

.hero{position:relative;overflow:hidden;background:#0E1015;min-height:560px;display:flex;align-items:center;padding:90px 0}
.hero-img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;display:block}
.hero::before{content:"";position:absolute;inset:0;background:rgba(10,12,16,.6);z-index:1}
.hero-inner{position:relative;z-index:2}
.hero-copy{max-width:760px}
.hero h1{color:#fff;letter-spacing:.04em;margin:0 0 1.2rem}
.hero-sub{color:#8FB4D6;font-size:1.2rem;max-width:620px;margin:0 0 2.2rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:1rem}
.hero-compass{position:absolute;top:36px;right:4%;width:150px;height:150px;z-index:2;opacity:.45;pointer-events:none}

.stats{background-color:var(--bg-alt);background-image:radial-gradient(rgba(42,47,58,.3) 1.2px,transparent 1.4px);background-size:12px 12px;border-top:1px solid rgba(200,122,62,.2)}
.stats-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.stat{padding:.5rem 1.8rem;border-left:1px solid var(--line);min-width:0}
.stat:first-child{border-left:0;padding-left:0}
.stat-num{display:block;font-family:var(--f-head);font-weight:600;font-size:clamp(2.4rem,4.4vw,3.4rem);color:var(--copper);line-height:1;letter-spacing:.01em}
.stat-label{display:block;color:var(--muted);margin-top:.7rem;font-size:.98rem;line-height:1.45}

.steps{list-style:none;margin:0;padding:0;position:relative;max-width:820px}
.steps::before{content:"";position:absolute;left:19px;top:20px;bottom:20px;border-left:2px dashed rgba(200,122,62,.6)}
.step{position:relative;display:flex;gap:1.6rem;padding:0 0 2.4rem}
.step:last-child{padding-bottom:0}
.step-num{flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:var(--copper);border:1px solid var(--steel);box-shadow:0 0 0 4px var(--bg);color:#14161C;font-family:var(--f-head);font-weight:600;display:flex;align-items:center;justify-content:center;position:relative;z-index:1}
.step-body{min-width:0}
.step-body h3{margin:.35rem 0 .45rem;color:#fff;letter-spacing:.02em}
.step-body p{color:var(--muted);margin:0}

.cta{padding:80px 0}
.cta-box{position:relative;background-color:#1B1E27;
  background-image:linear-gradient(135deg,rgba(200,122,62,.1),transparent 70%),radial-gradient(rgba(42,47,58,.3) 1.2px,transparent 1.4px);
  background-size:auto,12px 12px;border:1px solid var(--line);border-radius:8px;padding:4rem 4.5rem;text-align:center}
.cta-box::before,.cta-box::after{content:"";position:absolute;top:18%;bottom:18%;width:1px;background:var(--steel);opacity:.6}
.cta-box::before{left:2rem}.cta-box::after{right:2rem}
.cta-box h2{font-size:clamp(1.7rem,3.4vw,2.5rem);margin:0 auto 1rem;max-width:720px;padding-left:0}
.cta-box h2::before{display:none}
.cta-box p{color:var(--muted);max-width:600px;margin:0 auto 2rem}
.latest-foot{margin-top:2.5rem}

/* Комментарии */
.comments{margin-top:3.5rem;border-top:1px solid var(--line);padding-top:2rem}
.comment-list{list-style:none;margin:0 0 2rem;padding:0}
.comment-list .children{list-style:none;padding-left:1.8rem}
.comment-item{background:var(--bg-alt);border:1px solid var(--line);border-radius:8px;padding:1.1rem 1.3rem;margin:0 0 1rem}
.comment-head{display:flex;flex-wrap:wrap;gap:.3rem 1rem;align-items:baseline;margin-bottom:.4rem}
.comment-author{font-family:var(--f-head);font-weight:500;color:#fff}
.comment-date{font-size:.82rem;color:var(--muted)}
.comment-respond label{display:block;font-size:.9rem;color:var(--muted);margin-bottom:.3rem}
.comment-respond input[type=text],.comment-respond input[type=email],.comment-respond input[type=url],.comment-respond textarea,.search-form input[type=search]{
  width:100%;background:#0E1015;border:1px solid var(--line);border-radius:4px;color:var(--text);padding:.7rem .9rem;font:inherit}
.comment-respond input:focus,.comment-respond textarea:focus,.search-form input:focus{border-color:var(--copper);outline:none}
.comment-respond .submit{background:var(--copper);color:#14161C;border:0;border-radius:4px;padding:.8rem 1.6rem;font-family:var(--f-head);font-weight:500;cursor:pointer}
.search-form{display:flex;gap:.6rem;max-width:520px}
.search-form button{flex:0 0 auto}
.err-code{font-family:var(--f-head);font-size:clamp(4rem,12vw,8rem);color:var(--copper);line-height:1;margin:0}

/* Подвал */
.site-footer{background:var(--bg-foot);border-top:1px solid var(--line);color:#C9CDD4;padding:4rem 0 0}
.footer-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3rem}
.site-footer .widget-title{color:#fff}
.site-footer .widget a{color:#9DBBD6}
.site-footer .widget a:hover{color:var(--copper)}
.site-footer .widget p,.site-footer .textwidget{color:#C9CDD4}
.site-footer .widget li{border-bottom-color:#1E222B}
.footer-bottom{margin-top:3rem;border-top:1px solid #1E222B;padding:1.3rem 0;font-size:.88rem;color:var(--muted)}

/* Cookie */
.cookie-banner[hidden]{display:none!important}
.cookie-banner{position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:1.2rem;max-width:880px;margin:0 auto;background:#0E1015;border:1px solid var(--copper);border-radius:8px;padding:1rem 1.4rem;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.cookie-banner p{margin:0;font-size:.92rem;color:var(--text)}

.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.alignleft{float:left;margin:0 1.5em 1em 0}.alignright{float:right;margin:0 0 1em 1.5em}.aligncenter{display:block;margin:0 auto 1em}
.wp-caption-text{color:var(--muted);font-size:.85rem}

@media (max-width:960px){
  .layout-with-sidebar{flex-direction:column}
  .layout-with-sidebar .content-area,.layout-with-sidebar .sidebar{width:100%}
  .layout-single .content-area{width:100%}
  .stats-row{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:2rem}
  .stat:nth-child(3){border-left:0;padding-left:0}
  .footer-cols{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .nav-toggle{display:block}
  .main-nav{display:none;width:100%}
  .main-nav.is-open{display:block}
  .header-row{flex-wrap:wrap}
  .main-nav ul{flex-direction:column;gap:0;padding:.5rem 0}
  .main-nav li{border-top:1px solid var(--line)}
  .main-nav a{padding:.7rem 0}
  .main-nav a::after{display:none}
  .hero-compass{width:100px;height:100px}
}
@media (max-width:600px){
  body{font-size:1rem}
  .fs,.cta{padding:56px 0}
  .shell--front{width:92%}
  .brand-desc{display:none}
  .hero{min-height:480px;padding:70px 0}
  .hero-compass{display:none}
  .stats-row{grid-template-columns:minmax(0,1fr)}
  .stat{border-left:0;padding:0 0 1.2rem;border-bottom:1px solid var(--line)}
  .stat:last-child{border-bottom:0}
  .cta-box{padding:2.6rem 1.6rem}
  .cta-box::before{left:.7rem}.cta-box::after{right:.7rem}
  .footer-cols{grid-template-columns:minmax(0,1fr);gap:2rem}
  .sec-title{padding-left:50px}
  .cookie-banner{flex-direction:column;align-items:flex-start;padding:1rem 1.2rem}
  .search-form{flex-direction:column}
  .route{margin:0 8%}
}
