/*
Theme Name: TPSK Roof
Theme URI: https://example.com/
Author: OpenAI
Description: Тема для Торгово-промышленной строительной компании: кровля, фасады, заборы, окна и перегородки.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: tpsk-roof
*/

:root{--ink:#0e1c2b;--navy:#10273a;--navy2:#0a1a29;--yellow:#ffd21c;--yellow2:#f7bf00;--muted:#66717c;--line:#e7eaed;--paper:#fff;--soft:#f6f7f8;--radius:18px;--shadow:0 16px 46px rgba(13,30,45,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Manrope,Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.5}img{max-width:100%;height:auto;display:block}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.container{width:min(1180px,calc(100% - 40px));margin:auto}.site-header{position:sticky;top:0;z-index:99;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(14,28,43,.08)}.header-inner{height:78px;display:grid;grid-template-columns:280px 1fr auto;gap:26px;align-items:center}.brand{display:flex;gap:12px;align-items:center;font-weight:900;line-height:1.05}.brand img{width:68px;height:50px;object-fit:contain}.brand-text{font-size:14px;text-transform:uppercase;letter-spacing:.01em}.primary-nav{display:flex;gap:24px;justify-content:center;font-size:14px;font-weight:700}.primary-nav a{opacity:.78}.primary-nav a:hover{opacity:1}.header-actions{display:flex;align-items:center;gap:12px}.header-phone{font-weight:900;white-space:nowrap}.header-phone small{display:block;font-size:11px;font-weight:600;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 22px;border-radius:12px;font-weight:900;border:1px solid transparent;cursor:pointer;transition:.2s}.btn-primary{background:linear-gradient(180deg,#ffdc38,#ffc400);color:#101820;box-shadow:0 9px 24px rgba(255,198,0,.24)}.btn-outline{background:#fff;border-color:#bac1c8}.btn-dark{background:#10273a;color:#fff}.hero{position:relative;overflow:hidden;background:#f4f6f8}.hero-bg{position:absolute;inset:0;background:url('assets/images/hero.jpg') center/cover no-repeat}.hero-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.92) 32%,rgba(255,255,255,.15) 66%,rgba(255,255,255,.06) 100%)}.hero .container{position:relative;z-index:2;min-height:520px;display:flex;align-items:center}.hero-copy{width:54%;padding:56px 0}.eyebrow{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.18em;color:#43627b}.hero h1{font-size:56px;line-height:.98;margin:0 0 20px;letter-spacing:-.045em}.hero h1 mark{background:linear-gradient(180deg,transparent 48%,#ffdf4c 48%);color:inherit;padding:0 .06em}.hero p{font-size:20px;max-width:650px;color:#374657;margin:0 0 28px}.hero-cta{display:flex;gap:12px;flex-wrap:wrap}.hero-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:34px}.mini-benefit{display:flex;gap:11px;align-items:center;font-size:13px;font-weight:800}.ico{width:36px;height:36px;border-radius:50%;background:var(--yellow);display:grid;place-items:center;font-size:18px;flex:0 0 auto}.section{padding:70px 0}.section.soft{background:#f6f7f8}.section-title-row{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}.section-title{font-size:40px;line-height:1.05;margin:0;letter-spacing:-.035em}.section-sub{color:var(--muted);margin:7px 0 0}.solutions{display:grid;grid-template-columns:repeat(7,1fr);gap:12px}.solution-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 8px 28px rgba(18,36,52,.05);display:flex;flex-direction:column;min-width:0}.solution-card img{width:100%;aspect-ratio:1.45/1;object-fit:cover}.solution-body{padding:15px;display:flex;flex:1;flex-direction:column}.solution-card h3{font-size:17px;line-height:1.08;margin:0 0 8px}.solution-card p{font-size:13px;line-height:1.38;color:var(--muted);margin:0 0 13px}.round-link{width:34px;height:34px;border-radius:50%;background:var(--yellow);display:grid;place-items:center;margin-top:auto;margin-left:auto;font-weight:900}.process{background:linear-gradient(135deg,var(--navy2),var(--navy));color:#fff;position:relative;overflow:hidden}.process:after,.program:after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:42px 42px;opacity:.35;pointer-events:none}.process .container,.program .container{position:relative;z-index:2}.process .section-title{color:#fff}.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:0;border-top:1px solid rgba(255,255,255,.14);border-bottom:1px solid rgba(255,255,255,.14)}.step{padding:28px 24px;border-right:1px solid rgba(255,255,255,.1);position:relative}.step:last-child{border-right:0}.step-num{width:34px;height:34px;border-radius:50%;background:var(--yellow);color:var(--ink);display:grid;place-items:center;font-weight:900;margin-bottom:16px}.step h3{font-size:17px;margin:0 0 8px}.step p{font-size:13px;color:#c7d2dc;margin:0}.rafters{padding:44px 0;background:#fff}.rafters-grid{display:grid;grid-template-columns:1fr 1.25fr .9fr;gap:24px;align-items:stretch}.rafters-panel,.rafters-side{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px}.rafters-photo{border-radius:18px;overflow:hidden}.rafters-photo img{width:100%;height:100%;min-height:310px;object-fit:cover}.check{display:flex;gap:10px;margin:12px 0}.check:before{content:'✓';width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--yellow);font-weight:900;flex:0 0 auto}.materials{display:grid;grid-template-columns:repeat(7,1fr);gap:10px}.material{border-radius:12px;overflow:hidden;border:1px solid var(--line);background:#fff}.material img{aspect-ratio:1.5/1;object-fit:cover}.material span{display:block;padding:9px 10px;font-size:12px;font-weight:900}.oldtile{padding:0;background:#f8f6f0}.oldtile-wrap{display:grid;grid-template-columns:1fr 1fr;min-height:390px}.oldtile-image{background:url('assets/images/old-tile.jpg') center/cover no-repeat}.oldtile-copy{padding:55px;display:flex;flex-direction:column;justify-content:center;background-image:linear-gradient(90deg,rgba(255,255,255,.8),rgba(255,255,255,.98)),repeating-linear-gradient(0deg,transparent 0 39px,rgba(14,28,43,.035) 40px)}.oldtile-copy h2{font-size:42px;margin:0 0 8px}.program{background:linear-gradient(135deg,#0a1d2e,#132f47);color:#fff;padding:58px 0;position:relative;overflow:hidden}.program-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:40px;align-items:center}.program h2{font-size:40px;line-height:1.05;margin:0 0 14px}.program p{color:#c8d3dd;font-size:17px}.program-shot{background:#fff;border-radius:18px;padding:10px;box-shadow:0 28px 70px rgba(0,0,0,.28)}.program-shot img{border-radius:12px}.lead-section{padding:70px 0;background:#fff}.lead-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:50px;align-items:center}.lead-card{border:1px solid var(--line);box-shadow:var(--shadow);border-radius:18px;padding:28px}.field{display:grid;gap:7px;margin-bottom:13px}.field label{font-size:13px;font-weight:800}.field input,.field textarea{width:100%;border:1px solid #ccd2d8;border-radius:10px;padding:13px 14px;background:#fff;outline:0}.field input:focus,.field textarea:focus{border-color:#e8b400;box-shadow:0 0 0 3px rgba(255,210,28,.18)}.field textarea{min-height:100px;resize:vertical}.form-note{font-size:11px;color:#7a858f;margin-top:10px}.site-footer{background:#0a1a29;color:#fff;padding:28px 0}.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:30px;align-items:center}.footer-brand{display:flex;gap:12px;align-items:center;font-weight:900}.footer-brand img{width:64px}.footer-nav{display:flex;gap:18px;font-size:13px;color:#c7d2dc;flex-wrap:wrap}.footer-contact{justify-self:end;text-align:right}.messengers{display:flex;gap:8px;align-items:center}.messenger{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:900}.wa{background:#23c763}.tg{background:#29a9ea}.max{background:#7257ff}.floating-messengers{position:fixed;right:18px;bottom:18px;z-index:90;display:flex;gap:8px;background:rgba(255,255,255,.95);border:1px solid #e7eaed;padding:8px;border-radius:50px;box-shadow:0 14px 40px rgba(0,0,0,.15)}.mobile-toggle{display:none}.page-hero{padding:70px 0;background:#f5f7f8}.page-content{padding:55px 0}.page-content h1{font-size:46px}.placeholder{padding:45px;border:1px dashed #b8c0c7;background:#fafbfc;border-radius:18px}.notice{padding:12px 15px;border-radius:10px;background:#eef9ef;color:#216b2e;margin-bottom:15px}.error{background:#fff0f0;color:#8d2323}.honeypot{position:absolute;left:-99999px}
@media(max-width:1100px){.header-inner{grid-template-columns:230px 1fr auto}.primary-nav{gap:14px}.solutions,.materials{grid-template-columns:repeat(4,1fr)}.hero h1{font-size:48px}.hero-copy{width:60%}}
@media(max-width:860px){.container{width:min(100% - 28px,720px)}.site-header{position:relative}.header-inner{height:70px;grid-template-columns:1fr auto}.brand{max-width:250px}.brand img{width:50px;height:42px}.brand-text{font-size:11px}.primary-nav{display:none;position:absolute;top:70px;left:0;right:0;background:#fff;padding:18px 20px;box-shadow:0 18px 40px rgba(0,0,0,.12);flex-direction:column}.primary-nav.is-open{display:flex}.header-actions .header-phone,.header-actions .btn{display:none}.mobile-toggle{display:grid;width:42px;height:42px;border:1px solid #d7dde2;border-radius:10px;background:#fff;place-items:center;font-size:22px}.hero-bg{position:relative;height:260px;background-position:60% center}.hero-bg:after{background:linear-gradient(0deg,rgba(246,247,248,.94),rgba(246,247,248,.1))}.hero .container{min-height:0;display:block}.hero-copy{width:100%;padding:30px 0 42px}.hero h1{font-size:41px}.hero p{font-size:17px}.hero-benefits{grid-template-columns:1fr}.section{padding:50px 0}.section-title{font-size:34px}.section-title-row{align-items:flex-start;flex-direction:column}.solutions,.materials{grid-template-columns:repeat(2,1fr)}.steps{grid-template-columns:1fr}.step{border-right:0;border-bottom:1px solid rgba(255,255,255,.1)}.rafters-grid,.program-grid,.lead-grid,.footer-grid,.oldtile-wrap{grid-template-columns:1fr}.rafters-photo{order:-1}.oldtile-image{min-height:290px}.oldtile-copy{padding:36px 24px}.oldtile-copy h2{font-size:34px}.program h2{font-size:34px}.footer-contact{justify-self:start;text-align:left}.floating-messengers{right:12px;bottom:12px}.solution-card h3{font-size:16px}}
@media(max-width:520px){.container{width:calc(100% - 22px)}.hero-bg{height:210px}.hero h1{font-size:35px}.hero-copy{padding-top:22px}.hero-cta .btn{width:100%}.solutions,.materials{grid-template-columns:1fr 1fr}.solution-body{padding:12px}.solution-card p{font-size:12px}.section-title{font-size:31px}.rafters-panel,.rafters-side{padding:20px}.lead-card{padding:20px}.program{padding:44px 0}.program-grid{gap:24px}.floating-messengers{display:none}.footer-grid{gap:20px}.footer-nav{gap:12px}.oldtile-copy{padding:30px 20px}}
\n\n/* v1.1 targeted refinements */
.primary-nav{flex-wrap:nowrap;white-space:nowrap;gap:18px;font-size:13px}
.primary-nav a{white-space:nowrap}
.header-inner{grid-template-columns:265px minmax(0,1fr) auto;gap:18px}

.solution-card img{aspect-ratio:1.55/1;object-position:center}
.solution-card{min-height:0}
.solution-body{padding:14px 14px 15px}
.solution-card h3{font-size:16px;line-height:1.12}
.solution-card p{font-size:12.5px;line-height:1.38}

.rafters{padding:34px 0;background:#fff}
.rafters-grid{grid-template-columns:1fr 1.3fr .9fr;gap:20px;align-items:stretch}
.rafters-panel,.rafters-side{padding:26px;border-radius:16px}
.rafters-photo{border-radius:16px;min-height:0}
.rafters-photo img{min-height:260px;max-height:320px;object-fit:cover;object-position:center}
.rafters-side{display:flex;flex-direction:column;justify-content:center}
.rafters-side .btn{align-self:flex-start}

.section.soft{padding:50px 0}
.materials{gap:12px}
.material img{aspect-ratio:1.65/1;object-fit:cover}
.material span{padding:10px 11px;font-size:12px}

.oldtile-wrap{min-height:330px}
.oldtile-image{background-position:center;background-size:cover}
.oldtile-copy{padding:46px 50px}
.oldtile-copy h2{font-size:40px}

.windows-feature{padding:58px 0;background:#fff;border-top:1px solid var(--line)}
.windows-feature-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:44px;align-items:center}
.windows-feature-copy h2{font-size:40px;line-height:1.05;margin:6px 0 14px;letter-spacing:-.035em}
.windows-feature-copy p{font-size:17px;color:var(--muted);margin:0 0 20px}
.windows-feature-points{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;margin:0 0 24px}
.windows-feature-points span{position:relative;padding-left:24px;font-size:14px;font-weight:700}
.windows-feature-points span:before{content:'✓';position:absolute;left:0;top:0;width:17px;height:17px;border-radius:50%;display:grid;place-items:center;background:var(--yellow);font-size:11px;color:var(--ink)}
.windows-feature-visual{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.windows-feature-visual figure{margin:0;border-radius:16px;overflow:hidden;border:1px solid var(--line);background:#fff;box-shadow:0 10px 30px rgba(13,30,45,.07)}
.windows-feature-visual img{width:100%;aspect-ratio:1.3/1;object-fit:cover}
.windows-feature-visual figcaption{padding:12px 14px;font-weight:900}

@media(max-width:1180px){.header-inner{grid-template-columns:235px minmax(0,1fr) auto;gap:12px}.primary-nav{gap:12px;font-size:12px}.brand-text{font-size:12px}.header-phone{font-size:13px}.header-actions .btn{padding:0 15px}}
@media(max-width:860px){.primary-nav{white-space:normal}.primary-nav a{white-space:normal}.windows-feature-grid{grid-template-columns:1fr}.windows-feature-copy h2{font-size:34px}.rafters-grid{grid-template-columns:1fr}.rafters-photo{order:0}.rafters-photo img{max-height:none;min-height:260px}.oldtile-wrap{grid-template-columns:1fr}.oldtile-image{min-height:300px}}
@media(max-width:520px){.solutions{grid-template-columns:1fr 1fr}.solution-card p{display:block}.solution-card img{aspect-ratio:1.35/1}.windows-feature{padding:44px 0}.windows-feature-points{grid-template-columns:1fr}.windows-feature-visual{grid-template-columns:1fr 1fr;gap:8px}.windows-feature-visual figcaption{padding:10px;font-size:12px}.oldtile-copy h2{font-size:32px}.oldtile-copy{padding:28px 20px}}

/* v1.2 Roof Modern integration */
.program-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.btn-outline-light{border-color:rgba(255,255,255,.55);color:#fff;background:transparent}
.btn-outline-light:hover{border-color:#fff;background:rgba(255,255,255,.08)}
.calculator-page{background:#f5f7f8}
.calculator-head{padding:34px 0 20px;background:#fff;border-bottom:1px solid var(--line)}
.calculator-head h1{font-size:40px;line-height:1.05;margin:4px 0 8px;letter-spacing:-.035em}
.calculator-head p{margin:0;color:var(--muted);font-size:16px}
.calculator-shell{width:100%;padding:18px 14px 36px;overflow-x:auto}
.calculator-shell>[data-roof-modern]{width:100%!important;max-width:none!important;margin:0 auto;min-height:650px}
.calculator-missing{margin:40px 0;padding:24px;border:1px solid #f0c44c;background:#fff9df;border-radius:14px}
@media(max-width:860px){.program-actions .btn{flex:1 1 220px}.calculator-head{padding:26px 0 16px}.calculator-head h1{font-size:32px}.calculator-shell{padding:10px 0 24px}.calculator-shell>[data-roof-modern]{min-height:720px}}
