/*
Theme Name: WarmStart Modern
Theme URI: https://warmstart.by
Author: WarmStart
Description: Современная тема для WarmStart
Version: 1.0
Text Domain: warmstart
*/body{

margin:0;

font-family:Inter,Arial,sans-serif;

background:#F1EAD7;

color:#5a2836;

}

.container{

width:92%;

max-width:1300px;

margin:auto;

}

.hero{

min-height:100vh;overflow:hidden;

display:flex;

align-items:center;

background:#f5f7fb;

}

.hero .container{

display:grid;

grid-template-columns:minmax(280px,1fr) minmax(280px,1fr);

gap:50px;

align-items:stretch;

}

.hero-left h1{

font-size:clamp(22px, 3.5vw, 42px);

line-height:1.15;

margin:25px 0;

font-weight:700;

overflow-wrap:break-word;

}

.hero-left p{

font-size:clamp(16px, 2vw, 20px);

color:#555;

max-width:520px;

}

.hero-right img{

width:100%;

border-radius:30px;

}

.badge{

display:inline-block;

padding:10px 22px;

background:#FFD54A;

border-radius:100px;

font-weight:600;

}

.btn{

display:inline-block;

margin-top:40px;

padding:18px 45px;

background:#0f2747;

color:white;

text-decoration:none;

border-radius:50px;

transition:.3s;

}

.btn:hover{

transform:translateY(-4px);

}

/* ===== Header & Logo ===== */
.header-transparent{
position:relative;
z-index:10;
background:#F1EAD7;
box-shadow:0 2px 12px rgba(0,0,0,.06);
}
.header-flex{
display:flex;
align-items:center;
justify-content:space-between;
padding:18px 0;
flex-wrap:wrap;
gap:16px;
}
.logo{
display:flex;
align-items:center;
gap:10px;
}
.logo a{
display:flex;
align-items:center;
gap:10px;
text-decoration:none;
}
.logo-icon{
display:inline-flex;
width:38px;
height:38px;
border-radius:10px;
background:#0f2747;
color:#FFD54A;
align-items:center;
justify-content:center;
font-weight:800;
font-size:18px;
font-family:Inter,Arial,sans-serif;
flex-shrink:0;
}
.logo-text{
font-size:24px;
font-weight:800;
color:#0f2747;
letter-spacing:-0.5px;
}
.main-nav ul{
list-style:none;
display:flex;
gap:28px;
margin:0;
padding:0;
flex-wrap:wrap;
}
.main-nav li{
position:relative;
}
.main-nav a{
text-decoration:none;
color:#5a2836;
font-weight:600;
font-size:16px;
padding:8px 0;
transition:.2s;
}
.main-nav a:hover{
color:#0f2747;
}
.main-nav ul ul{
display:none;
position:absolute;
top:100%;
left:0;
background:#fff;
box-shadow:0 8px 24px rgba(0,0,0,.12);
border-radius:10px;
padding:10px;
min-width:260px;
flex-direction:column;
gap:4px;
z-index:20;
}
.main-nav li.menu-open > ul{
display:flex;
}
.main-nav ul ul a{
font-weight:500;
font-size:15px;
padding:8px 12px;
border-radius:6px;
display:block;
white-space:normal;
}
.main-nav ul ul a:hover{
background:#f5f7fb;
}
.header-phone .phone-link{
font-weight:700;
color:#84434F;
font-size:18px;
text-decoration:none;
padding:10px 20px;
border:2px solid #84434F;
border-radius:50px;
transition:.2s;
}
.header-phone .phone-link:hover{
background:#84434F;
color:#fff;
}

/* ===== Readability ===== */
body{
line-height:1.6;
}
.hero-left p{
line-height:1.7;
}

/* ===== About section ===== */
.about-section{
padding:90px 0;
background:#F1EAD7;
}
.about-section .container{
max-width:900px;
}
.about-section h2{
font-size:36px;
font-weight:800;
color:#0f2747;
margin-bottom:24px;
}
.about-section p{
font-size:19px;
line-height:1.8;
color:#374151;
margin-bottom:18px;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
.hero{
height:auto;
padding:60px 0;
}
.hero .container{
grid-template-columns:1fr;
gap:40px;
}
.hero-left h1{
font-size:38px;
}
.hero-left p{
font-size:18px;
max-width:100%;
}
.header-flex{
justify-content:center;
text-align:center;
}
.main-nav ul{
justify-content:center;
gap:16px;
}
.main-nav ul ul{
position:static;
box-shadow:none;
display:none;
padding-left:12px;
margin-top:8px;
}
.about-section{
padding:50px 0;
}
.about-section h2{
font-size:28px;
}
.about-section p{
font-size:17px;
}
}

@media (max-width: 480px){
.hero-left h1{
font-size:28px;
}
.btn{
width:100%;
text-align:center;
padding:16px 20px;
}
.header-phone .phone-link{
font-size:15px;
padding:8px 14px;
}
}


/* ===== Sticky header, better alignment, credit ===== */
.header-transparent{
position:sticky;
top:0;
}
.header-flex{
align-items:center;
}
.main-nav ul{
align-items:center;
}
.main-nav > ul{
justify-content:flex-end;
}
.hero-right{
overflow:hidden;
height:100%;
}
.hero-right img{
display:block;
width:100%;
height:100%;
object-fit:cover;
}
.site-credit{
position:absolute;
right:20px;
bottom:8px;
font-size:12px;
color:#F1EAD7;
opacity:.7;
text-decoration:none;
}
.site-credit:hover{
opacity:1;
}
@media (max-width: 480px){
.site-credit{
font-size:11px;
padding:3px 8px;
right:8px;
bottom:6px;
}
}


/* ===== Fix button/grid overflow ===== */
.hero .container > div{
min-width:0;
}
.btn{
box-sizing:border-box;
max-width:100%;
white-space:normal;
word-break:break-word;
text-align:center;
}
.hero-left{
min-width:0;
overflow-wrap:break-word;
}


/* ===== Logo image, footer color update ===== */
.logo-img{
height:46px;
width:auto;
display:block;
}
footer[style]{
background:#84434F !important;
position:relative;
padding-bottom:28px !important;
}


/* ===== Stats & Steps ===== */
.stats-section{
background:#F1EAD7;
padding:60px 0;
}
.stats-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
text-align:center;
}
.stat-item{
display:flex;
flex-direction:column;
gap:6px;
}
.stat-num{
font-size:clamp(28px,4vw,42px);
font-weight:800;
color:#84434F;
}
.stat-label{
font-size:15px;
color:#5a2836;
}
.steps-section{
padding:70px 0;
}
.steps-section h2{
text-align:center;
font-size:clamp(24px,3vw,32px);
color:#0f2747;
margin-bottom:40px;
}
.steps-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:24px;
}
.step-item{
display:flex;
flex-direction:column;
gap:10px;
text-align:center;
padding:20px;
background:#fff;
border-radius:14px;
box-shadow:0 4px 16px rgba(0,0,0,.06);
}
.step-num{
font-size:32px;
font-weight:800;
color:#FFD54A;
background:#0f2747;
width:48px;
height:48px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
margin:0 auto;
}
.step-text{
font-size:15px;
color:#374151;
}
@media (max-width: 900px){
.stats-grid{
grid-template-columns:1fr;
gap:20px;
}
.steps-grid{
grid-template-columns:1fr 1fr;
}
}
@media (max-width: 480px){
.steps-grid{
grid-template-columns:1fr;
}
}


/* ===== Reduce main content images by 1.5x, gallery grid ===== */
.wp-block-image img{
max-width:66.6%;
height:auto;
display:block;
margin:0 auto;
border-radius:16px;
}
.gallery-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:16px;
margin-top:20px;
}
.gallery-grid img{
width:100%;
aspect-ratio:2/3;
height:auto;
object-fit:cover;
border-radius:12px;
display:block;
}
@media (max-width: 900px){
.wp-block-image img{
max-width:90%;
}
.gallery-grid{
grid-template-columns:1fr 1fr;
}
}
@media (max-width: 480px){
.gallery-grid{
grid-template-columns:1fr;
}
}


/* ===== Lightbox for gallery ===== */
.gallery-grid img{
cursor:zoom-in;
transition:.2s;
}
.gallery-grid img:hover{
opacity:.85;
}
.lightbox-overlay{
position:fixed;
inset:0;
background:rgba(15,20,30,.92);
display:none;
align-items:center;
justify-content:center;
z-index:99999;
cursor:zoom-out;
padding:20px;
}
.lightbox-overlay.active{
display:flex;
}
.lightbox-overlay img{
max-width:92%;
max-height:92%;
border-radius:10px;
box-shadow:0 10px 40px rgba(0,0,0,.5);
}


/* ===== Left-align submenu text ===== */
.main-nav ul ul{
text-align:left;
}
.main-nav ul ul a{
text-align:left;
}


/* ===== Light gray page background ===== */
body{
background:#f2f2f2;
}
.about-section{
background:#f2f2f2;
}
.steps-section{
background:#f2f2f2;
}
main{
background:#f2f2f2;
}


/* ===== Lightbox navigation arrows ===== */
.lightbox-nav{
position:absolute;
top:50%;
transform:translateY(-50%);
background:rgba(255,255,255,.15);
color:#fff;
border:none;
width:50px;
height:50px;
border-radius:50%;
font-size:22px;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
transition:.2s;
z-index:100000;
}
.lightbox-nav:hover{
background:rgba(255,255,255,.3);
}
.lightbox-prev{
left:20px;
}
.lightbox-next{
right:20px;
}
@media (max-width: 480px){
.lightbox-nav{
width:40px;
height:40px;
font-size:18px;
}
.lightbox-prev{
left:8px;
}
.lightbox-next{
right:8px;
}
}


/* ===== Fix submenu alignment (align-items) ===== */
.main-nav ul ul{
align-items:stretch;
}
.main-nav ul ul li{
width:100%;
}
.main-nav ul ul a{
display:block;
width:100%;
box-sizing:border-box;
}


/* ===== Service page layout: text left, image right ===== */
.service-layout{
display:grid;
grid-template-columns:1fr 1fr;
gap:50px;
align-items:center;
}
.service-image{
order:2;
}
.service-text{
order:1;
}
.service-image .wp-block-image img{
max-width:100%;
width:100%;
border-radius:16px;
}
@media (max-width: 900px){
.service-layout{
grid-template-columns:1fr;
gap:30px;
}
.service-image{
order:1;
}
.service-text{
order:2;
}
}

/* ===== Hide title on О нас page ===== */
.page-id-127 .page-title-main{
display:none;
}


/* ===== Contact icons (Viber/Telegram) ===== */
.header-phone{
display:flex;
align-items:center;
gap:10px;
}
.contact-icon{
display:flex;
align-items:center;
justify-content:center;
width:38px;
height:38px;
border-radius:50%;
color:#fff;
transition:.2s;
flex-shrink:0;
}
.contact-icon-viber{
background:#7360F2;
}
.contact-icon-telegram{
background:#2AABEE;
}
.contact-icon:hover{
transform:translateY(-2px);
filter:brightness(1.1);
}
@media (max-width: 480px){
.header-phone{
gap:6px;
}
.contact-icon{
width:32px;
height:32px;
}
.contact-icon svg{
width:18px;
height:18px;
}
}


/* ===== Partners section ===== */
.partners-section{
padding:60px 0 90px;
}
.partners-section h2{
text-align:center;
font-size:clamp(24px,3vw,32px);
color:#0f2747;
margin-bottom:30px;
}
.partners-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:24px;
max-width:700px;
margin:0 auto;
}
.partner-card{
display:flex;
flex-direction:column;
align-items:center;
text-align:center;
gap:8px;
padding:28px 20px;
background:#fff;
border-radius:14px;
box-shadow:0 4px 16px rgba(0,0,0,.06);
text-decoration:none;
transition:.2s;
}
.partner-card:hover{
transform:translateY(-3px);
box-shadow:0 8px 24px rgba(0,0,0,.1);
}
.partner-name{
font-size:19px;
font-weight:700;
color:#84434F;
}
.partner-desc{
font-size:14px;
color:#5a6472;
}
.faq-section{
padding:60px 0px 90px;
}
.faq-section h2{
text-align:center;
font-size:clamp(24px, 3vw, 32px);
color:#0f2747;
margin-bottom:30px;
}
.faq-grid{
display:grid;
gap:16px;
max-width:800px;
margin:0 auto;
}
.faq-item{
background:#fff;
border-radius:14px;
box-shadow:0 4px 16px rgba(0,0,0,.06);
padding:20px 24px;
}
.faq-question{
font-size:17px;
font-weight:700;
color:#0f2747;
margin-bottom:8px;
}
.faq-answer{
font-size:15px;
color:#374151;
margin:0;
}
.partner-logo{
max-width:120px;
max-height:60px;
width:auto;
height:auto;
object-fit:contain;
}
@media (max-width: 600px){
.partners-grid{
grid-template-columns:1fr;
}
}

.faq-teaser{
text-align:center;
}
.faq-teaser p{
font-size:16px;
color:#374151;
max-width:600px;
margin:0 auto 10px;
}
.faq-contact-cta{
text-align:center;
margin-top:36px;
padding-top:28px;
border-top:1px solid #e5e7eb;
}
.faq-contact-cta p{
margin:4px 0;
color:#374151;
}
.faq-contact-cta a{
color:#84434F;
font-weight:700;
text-decoration:none;
}

.service-partner{
background:#fff;
border-radius:14px;
box-shadow:0 4px 16px rgba(0,0,0,.06);
padding:24px 28px;
margin-top:20px;
}
.service-partner h3{
color:#0f2747;
margin-bottom:8px;
font-size:19px;
}
.service-partner p{
color:#374151;
font-size:15px;
margin:0;
}
.service-partner a{
color:#84434F;
font-weight:700;
text-decoration:none;
}
.faq-item summary.faq-question{
cursor:pointer;
list-style:none;
padding-right:24px;
position:relative;
}
.faq-item summary.faq-question::-webkit-details-marker{
display:none;
}
.faq-item summary.faq-question::after{
content:'+';
position:absolute;
right:0;
top:0;
font-weight:400;
color:#84434F;
font-size:22px;
}
.faq-item[open] summary.faq-question::after{
content:'\2212';
}
.faq-item .faq-answer{
margin-top:10px;
}


/* ===== Фоновое фото в hero (реальный объект вместо стокового фото) ===== */
.hero {
background-image: linear-gradient(rgba(20, 16, 18, 0.62), rgba(20, 16, 18, 0.62)), url('https://warmstart.by/wp-content/themes/warmstart-modern/assets/img/uberi-butylku-i-provoda-s-pola_hxdP224uUbejfL3zjF8o_w_tXrQqrLKTymkT3spwGk6qA.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}

.hero .container {
grid-template-columns: 1fr;
}

.hero-left h1 {
color: #ffffff;
}

.hero-left p {
color: rgba(255, 255, 255, 0.92);
}


/* ===== Главная: центрируем текст hero ===== */
.hero-left {
text-align: center;
}
.hero-left p {
margin-left: auto;
margin-right: auto;
}

/* ===== Услуги: картинка справа -> фон блока, текст по центру ===== */
.service-layout {
display: block;
position: relative;
border-radius: 20px;
overflow: hidden;
padding: 70px 40px;
min-height: 420px;
}
.service-layout .service-image {
position: absolute;
inset: 0;
z-index: 0;
}
.service-layout .service-image .wp-block-image,
.service-layout .service-image figure {
height: 100%;
margin: 0;
}
.service-layout .service-image img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 0;
}
.service-layout .service-image::after {
content: "";
position: absolute;
inset: 0;
background: rgba(20, 16, 18, 0.62);
}
.service-layout .service-text {
position: relative;
z-index: 1;
text-align: center;
max-width: 720px;
margin: 0 auto;
}
.service-layout .service-text,
.service-layout .service-text p,
.service-layout .service-text h1,
.service-layout .service-text h2,
.service-layout .service-text h3,
.service-layout .service-text li {
color: #ffffff !important;
}
.service-layout .service-text ul,
.service-layout .service-text ol {
text-align: left;
display: inline-block;
margin: 16px auto;
}
.service-faq-cta {
text-align: center;
margin-top: 20px;
}

@media (max-width: 900px) {
.service-layout {
padding: 50px 24px;
min-height: 360px;
}
}


/* ===== Категории на странице FAQ (якоря со страниц услуг) ===== */
.faq-category-heading {
scroll-margin-top: 110px;
font-size: clamp(20px, 2.5vw, 26px);
color: rgb(15, 39, 71);
text-align: center;
margin: 30px 0 4px;
}
.faq-grid > .faq-category-heading:first-child {
margin-top: 0;
}


/* ===== Услуги: фон на всю ширину экрана ===== */
.service-layout {
width: 100vw;
max-width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
border-radius: 0;
box-sizing: border-box;
}


/* ===== Форма заявки ===== */
.wsr-form-wrap {
max-width: 640px;
margin: 0 auto;
background: #ffffff;
border-radius: 20px;
box-shadow: 0 4px 24px rgba(0,0,0,0.08);
padding: 40px;
box-sizing: border-box;
}
.wsr-field {
margin-bottom: 22px;
}
.wsr-field label {
display: block;
font-weight: 600;
margin-bottom: 8px;
color: rgb(15, 39, 71);
}
.wsr-field input[type="text"],
.wsr-field input[type="tel"],
.wsr-field input[type="email"],
.wsr-field select,
.wsr-field textarea {
width: 100%;
box-sizing: border-box;
padding: 14px 16px;
border: 1px solid #e0e0e0;
border-radius: 12px;
font-size: 16px;
font-family: inherit;
background: #fafafa;
}
.wsr-field input:focus,
.wsr-field select:focus,
.wsr-field textarea:focus {
outline: none;
border-color: rgb(15, 39, 71);
background: #fff;
}
.wsr-field textarea {
resize: vertical;
}
.wsr-field input[type="file"] {
width: 100%;
padding: 12px;
border: 2px dashed #d5d5d5;
border-radius: 12px;
background: #fafafa;
box-sizing: border-box;
}
.wsr-hint {
font-size: 13px;
color: #888;
margin: 8px 0 0;
}
.wsr-form .btn {
width: 100%;
border: none;
cursor: pointer;
font-size: 17px;
margin-top: 10px;
}
.wsr-success {
text-align: center;
font-size: 18px;
color: #1a7a3c;
background: #eafaf0;
border-radius: 14px;
padding: 30px;
}
.wsr-error {
text-align: center;
color: #a12222;
background: #fbeaea;
border-radius: 12px;
padding: 16px;
margin-bottom: 20px;
}
@media (max-width: 600px) {
.wsr-form-wrap {
padding: 24px 18px;
border-radius: 14px;
}
}

/* ===== Кнопка "Подать заявку" в hero и на страницах услуг ===== */
.cta-request-btn {
text-align: center;
margin-top: 24px;
}
.btn-secondary {
background: transparent;
border: 2px solid currentColor;
color: inherit;
}


/* ===== Кнопка "Подать заявку" - акцентный цвет ===== */
.btn-request {
background: rgb(255, 213, 74);
color: rgb(15, 39, 71) !important;
}

/* ===== Заголовок услуги по центру ===== */
.page-title-main {
text-align: center;
}

/* ===== Услуги: выравнивание фона и текста ===== */
.service-layout {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.service-layout .service-image img {
object-fit: cover;
object-position: center center;
}
.service-layout .service-text {
width: 100%;
}


/* ===== Кнопки камеры/галереи в форме заявки ===== */
.wsr-file-buttons {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.wsr-file-hidden {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
opacity: 0;
}
.wsr-file-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 12px 18px;
border: 1px solid #d5d5d5;
border-radius: 12px;
background: #fafafa;
color: rgb(15, 39, 71);
font-weight: 600;
font-size: 14px;
cursor: pointer;
transition: 0.2s;
}
.wsr-file-btn:hover {
background: #f0f0f0;
}
.wsr-file-list {
font-size: 13px;
color: #444;
margin-top: 10px;
word-break: break-word;
}
@media (max-width: 480px) {
.wsr-file-buttons {
flex-direction: column;
}
.wsr-file-btn {
width: 100%;
justify-content: center;
box-sizing: border-box;
}
}

.service-hero{
width:100%;
height:360px;
background-size:cover;
background-position:center;
background-repeat:no-repeat;
border-radius:14px;
margin-bottom:28px;
}
.article-img{
width:100%;
height:200px;
object-fit:cover;
border-radius:10px;
margin-bottom:14px;
}
@media (max-width:768px){
.service-hero{height:220px;}
}

.category-heading{
scroll-margin-top:100px;
color:#0f2747;
border-bottom:2px solid #FFD54A;
padding-bottom:8px;
margin-top:36px;
}

.main-nav li:hover > ul,
.main-nav li:focus-within > ul{
display:flex;
}


/* ===== Partners: icons + hover info ===== */
.partners-grid{grid-template-columns:repeat(3,1fr);max-width:960px;}
.partner-card{position:relative;overflow:hidden;justify-content:center;min-height:130px;}
.partner-brand{display:flex;align-items:center;justify-content:center;gap:12px;}
.partner-icon{width:48px;height:48px;object-fit:contain;flex:none;}
.partner-card .partner-logo-text{font-size:24px;font-weight:800;letter-spacing:.5px;line-height:1;}
.partner-info{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:12px 16px;background:#84434F;color:#F1EAD7;font-size:15px;line-height:1.5;font-weight:600;opacity:0;transition:opacity .25s;z-index:2;border-radius:14px;}
.partner-card:hover .partner-info,.partner-card:focus-visible .partner-info{opacity:1;}
@media (hover:none){
.partner-info{position:static;opacity:1;background:none;color:#5a6472;font-size:14px;padding:6px 0 0;}
}
@media (max-width:760px){
.partners-grid{grid-template-columns:1fr;max-width:420px;}
}
