/*
Theme Name: ТД ТехноКонтур
Theme URI: https://test.metko.ru/
Author: ТД ТехноКонтур
Description: Индивидуальная корпоративная тема. Начальный этап: шапка, главная, подвал. Остальные шаблоны и формы будут подключены далее.
Version: 0.2.0
Requires at least: 6.5
Requires PHP: 8.2
Text Domain: technokontur
*/
:root{--red:#eb1024;--ink:#151d27;--navy:#101b28;--muted:#627080;--line:#e5e8ec;--bg:#f4f6f8;--max:1200px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:16px/1.55 Arial,Helvetica,sans-serif;color:var(--ink);background:white}a{text-decoration:none;color:inherit}img{max-width:100%;height:auto}button,input{font:inherit}.container{width:min(calc(100% - 40px),var(--max));margin:auto}.site-header{position:sticky;top:0;z-index:20;background:#fff;box-shadow:0 1px 9px #11182714}.header-inner{height:92px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:12px;flex:0 0 auto}.brand img{width:74px;height:68px;object-fit:contain}.brand strong{display:block;font-weight:900;letter-spacing:-.04em;font-size:23px;line-height:1.05}.brand strong b{color:var(--red)}.brand small{display:block;color:var(--muted);font-size:10px;line-height:1.35;max-width:174px;margin-top:5px}.main-nav{margin-left:auto}.main-nav ul{display:flex;list-style:none;gap:24px;margin:0;padding:0}.main-nav a{font-size:14px;font-weight:650}.main-nav a:hover,.site-footer a:hover{color:var(--red)}.button{display:inline-flex;justify-content:center;align-items:center;gap:12px;border:0;border-radius:7px;padding:13px 22px;background:var(--red);color:#fff;font-size:14px;font-weight:700;transition:background .15s}.button:hover{background:#bb0b1d;color:#fff}.button-outline{background:transparent;border:1px solid #fff}.button-outline:hover{background:#ffffff1b}.header-action{white-space:nowrap}.mobile-toggle{display:none;background:none;border:0;font-size:25px;cursor:pointer}.hero{background:linear-gradient(90deg,#101b28f5 0%,#101b28e0 32%,#101b2860 66%,#101b2800 100%),url('assets/images/hero.png') center/cover;min-height:520px;display:flex;align-items:center;color:#fff}.hero-content{padding:70px 0;max-width:710px}.eyebrow{color:#ff5a66;font-size:12px;letter-spacing:.1em;font-weight:800;text-transform:uppercase}.hero h1{font-size:clamp(34px,4vw,56px);line-height:1.1;letter-spacing:-.04em;margin:20px 0}.hero p{max-width:550px;color:#e0e6eb;font-size:18px}.actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}.section{padding:72px 0}.section-soft{background:var(--bg)}.section-dark{background:var(--navy);color:white}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:30px}.section h2{font-size:clamp(28px,3vw,40px);line-height:1.15;letter-spacing:-.035em;margin:0}.section-intro{margin:12px 0 0;color:var(--muted)}.link-red{color:var(--red);font-weight:700;font-size:14px}.feature-strip{border-bottom:1px solid var(--line)}.feature-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:0}.feature{padding:22px 13px;text-align:center;font-size:12px;border-right:1px solid var(--line);font-weight:700}.feature:first-child{border-left:1px solid var(--line)}.feature span{display:block;color:var(--red);font-size:27px;margin-bottom:7px}.product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}.product-card{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden;transition:transform .2s,box-shadow .2s}.product-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px #11182712}.product-card img{width:100%;height:172px;object-fit:cover;background:#e8ebef}.product-card-content{padding:15px}.product-card h3{font-size:15px;line-height:1.3;margin:0 0 12px;min-height:39px}.product-card .card-link{font-size:13px;color:var(--red);font-weight:700}.split{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:52px}.split img{width:100%;height:370px;object-fit:cover;border-radius:13px}.text p{color:#576473}.benefit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}.benefit{padding:25px;border:1px solid #384451;border-radius:10px;background:#ffffff08}.benefit strong{display:block;font-size:17px}.benefit p{margin:8px 0 0;font-size:13px;color:#ccd2d8}.benefit-icon{font-size:26px;color:#ff4654}.cta-panel{background:linear-gradient(105deg,#101b28 0%,#172a3d 100%);color:white;border-radius:15px;padding:42px;display:flex;align-items:center;justify-content:space-between;gap:25px}.cta-panel h2{max-width:700px}.cta-panel p{color:#ccd4dc}.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.article-card{border:1px solid var(--line);border-radius:10px;padding:20px;background:#fff}.article-card h3{font-size:17px;line-height:1.3}.article-card p{color:var(--muted);font-size:14px}.site-footer{background:#101722;color:#ecf1f4;padding:48px 0 20px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1.2fr;gap:30px}.site-footer h3{font-size:16px;margin:0 0 12px}.site-footer p,.site-footer a{color:#bac3cb;font-size:13px}.site-footer ul{list-style:none;padding:0;margin:0}.site-footer li{margin:8px 0}.footer-base{border-top:1px solid #394552;margin-top:36px;padding-top:18px;font-size:12px;color:#a4afba}.page-content{padding:70px 0;min-height:50vh}.page-content h1{font-size:42px}.placeholder-note{font-size:13px;color:#748090}.screen-reader-text{position:absolute;left:-10000px}.screen-reader-text:focus{position:static}.wp-block-image img{height:auto}@media(max-width:1100px){.header-inner{gap:18px}.main-nav ul{gap:12px}.brand small{display:none}.product-grid{grid-template-columns:repeat(3,1fr)}.feature-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.container{width:min(calc(100% - 30px),var(--max))}.header-inner{height:76px}.brand img{height:54px;width:58px}.brand strong{font-size:19px}.mobile-toggle{display:block;margin-left:auto}.header-action{display:none}.main-nav{display:none;position:absolute;top:76px;left:0;right:0;background:#fff;padding:14px 20px 22px;box-shadow:0 8px 14px #11182720}.main-nav.is-open{display:block}.main-nav ul{flex-direction:column;gap:14px}.hero{min-height:470px;background-position:60% center}.hero-content{padding:60px 0}.hero p{font-size:16px}.section{padding:48px 0}.section-heading{align-items:start;flex-direction:column}.feature-grid{grid-template-columns:repeat(2,1fr)}.product-grid{grid-template-columns:repeat(2,1fr);gap:12px}.product-card img{height:130px}.product-card-content{padding:12px}.split{grid-template-columns:1fr;gap:24px}.split img{height:240px}.benefit-grid,.article-grid,.footer-grid{grid-template-columns:1fr}.cta-panel{padding:28px;flex-direction:column;align-items:start}.site-footer{padding-top:36px}}@media(max-width:360px){.product-grid{grid-template-columns:1fr}.feature-grid{grid-template-columns:1fr 1fr}.hero h1{font-size:31px}}


/* === Stage 02: header and first screen; safe overrides for existing theme === */
:root{--red:#e6091f;--navy:#101b28}
.site-header{box-shadow:0 1px 0 rgba(12,24,38,.09)}
.header-inner{height:96px;gap:30px}
.brand{gap:14px}
.brand img{width:86px;height:75px;object-fit:contain}
.brand strong{font-size:24px;letter-spacing:-.035em}
.brand small{font-size:11px;max-width:190px;color:#667381}
.main-nav ul{gap:26px}
.main-nav a{font-size:14px;font-weight:700;transition:color .2s}
.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--red)}
.header-action{padding:15px 23px;font-weight:800;border-radius:6px}
.hero{position:relative;isolation:isolate;min-height:610px;background-image:linear-gradient(90deg,rgba(10,21,33,.98) 0%,rgba(10,21,33,.93) 28%,rgba(10,21,33,.73) 48%,rgba(10,21,33,.13) 76%,rgba(10,21,33,.05) 100%),url('assets/images/hero.png');background-position:center center;background-size:cover}
.hero::after{content:'';position:absolute;inset:auto 0 0;height:90px;background:linear-gradient(to top,rgba(8,18,29,.34),transparent);z-index:-1;pointer-events:none}
.hero-layout{display:flex;align-items:center;width:min(calc(100% - 40px),var(--max));min-height:610px}
.hero-content{padding:75px 0 78px;max-width:685px}
.hero-eyebrow{display:flex;align-items:center;gap:12px;color:#ff5264;font-size:12px;letter-spacing:.13em}
.eyebrow-line{display:inline-block;flex:none;width:28px;height:2px;background:var(--red)}
.hero h1{margin:24px 0 20px;font-size:clamp(43px,4.2vw,64px);line-height:1.07;letter-spacing:-.047em;font-weight:800;text-wrap:balance}
.hero-title-accent{color:#ff4052;display:block}
.hero p.hero-lead{font-size:18px;line-height:1.6;max-width:590px;color:#e8edf2;margin:0}
.hero-actions{margin-top:32px;gap:12px}
.hero-actions .button{min-height:52px;padding:14px 24px;border-radius:6px}
.hero-actions .button-outline{border-color:rgba(255,255,255,.73);background:rgba(10,21,33,.2)}
.hero-actions .button-outline:hover{background:rgba(255,255,255,.12)}
.hero-details{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:45px;font-size:12px;font-weight:650;color:#e3eaf0}
.hero-details span{display:inline-flex;align-items:center;gap:9px}
.hero-details span:before{content:'';display:inline-block;width:6px;height:6px;background:#ff4355;border-radius:50%;flex:none}
.feature-strip{background:#fff;box-shadow:0 5px 25px rgba(15,24,35,.03)}
.feature{padding:24px 10px;min-height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.feature span{line-height:1;font-size:27px;margin-bottom:12px}
#products{scroll-margin-top:110px}
#products .section-heading{margin-bottom:32px}
#products .product-card img{height:184px;object-fit:cover}
#products .product-card h3{font-size:15px}
@media(max-width:1100px){.header-inner{gap:16px}.brand img{width:72px;height:64px}.brand strong{font-size:21px}.main-nav ul{gap:13px}.hero h1{font-size:clamp(40px,5vw,57px)}.hero{background-position:56% center}}
@media(max-width:760px){.header-inner{height:76px}.brand img{height:55px;width:61px}.brand strong{font-size:19px}.hero,.hero-layout{min-height:560px}.hero{background-image:linear-gradient(90deg,rgba(10,21,33,.96) 0%,rgba(10,21,33,.83) 58%,rgba(10,21,33,.36) 100%),url('assets/images/hero.png');background-position:57% center}.hero-layout{width:min(calc(100% - 30px),var(--max))}.hero-content{padding:65px 0 56px}.hero h1{font-size:clamp(35px,8.5vw,48px)}.hero p.hero-lead{font-size:16px;max-width:510px}.hero-details{margin-top:30px;gap:8px 16px}.hero-actions .button{min-height:48px;padding:12px 18px}.feature{min-height:92px}#products .product-card img{height:145px}}
@media(max-width:430px){.hero,.hero-layout{min-height:610px}.hero h1{font-size:36px}.hero-eyebrow{font-size:10px;letter-spacing:.09em}.hero-details{display:grid;grid-template-columns:1fr;gap:8px}.hero-actions{gap:9px}.hero-actions .button{font-size:12px}.brand strong{font-size:18px}}
