/* === MAIN CSS — loaded via preload/stylesheet === */

/* ── Section base ── */
.sec{padding:72px 0}
.sec--light{background:var(--light)}
.sec__head{text-align:center;margin-bottom:48px}
.sec__tag{display:inline-block;color:var(--blue);font-size:.73rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;margin-bottom:10px}
.sec__title{font-size:clamp(1.6rem,3vw,2.25rem);font-weight:800;color:var(--txt);line-height:1.2;margin-bottom:12px}
.sec__sub{font-size:1.0625rem;color:var(--muted);max-width:580px;margin:0 auto;line-height:1.7}

/* ── Solutions cards ── */
.sol-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom:60px}
.sol-card{background:var(--bg);border:1px solid var(--border);border-radius:16px;overflow:hidden;transition:box-shadow .2s,transform .2s;display:flex;flex-direction:column}
.sol-card:hover{box-shadow:var(--sh-lg);transform:translateY(-3px)}
.sol-card__badge{display:inline-block;background:#EFF6FF;color:var(--blue);font-size:.7rem;font-weight:700;letter-spacing:.05em;padding:4px 11px;border-radius:100px;margin:18px 18px 0}
.sol-card__title{font-size:1.25rem;font-weight:700;padding:10px 18px 0;color:var(--txt)}
.sol-card__img{margin:12px 18px;height:175px;border-radius:10px;overflow:hidden;background:linear-gradient(135deg,#DBEAFE,#EFF6FF);flex-shrink:0}
.sol-card__img img{width:100%;height:100%;object-fit:cover}
.sol-card__list{padding:0 18px;margin-bottom:10px;flex:1}
.sol-card__list li{display:flex;align-items:flex-start;gap:8px;font-size:.875rem;color:var(--txt2);padding:6px 0;border-bottom:1px solid var(--border)}
.sol-card__list li:last-child{border-bottom:0}
.sol-card__list li::before{content:'✓';color:var(--green);font-weight:700;flex-shrink:0;margin-top:1px}
.sol-card__link{display:flex;align-items:center;gap:6px;color:var(--blue);font-size:.9rem;font-weight:600;padding:12px 18px 18px;text-decoration:none;margin-top:auto}
.sol-card__link:hover{text-decoration:underline}

/* ── Process steps ── */
.steps-wrap{margin-top:8px}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0;position:relative}
.steps::before{content:'';position:absolute;top:27px;left:calc(12.5% + 16px);right:calc(12.5% + 16px);height:2px;background:repeating-linear-gradient(to right,var(--blue) 0,var(--blue) 8px,transparent 8px,transparent 16px);z-index:0}
.step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 12px}
.step__num{width:54px;height:54px;border-radius:50%;background:var(--bg);border:2px solid var(--blue);display:flex;align-items:center;justify-content:center;font-size:1.25rem;font-weight:800;color:var(--blue);margin-bottom:14px}
.step__title{font-size:1rem;font-weight:700;margin-bottom:6px;color:var(--txt)}
.step__desc{font-size:.825rem;color:var(--muted);line-height:1.55}

/* ── REHAU profiles ── */
.prof-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.prof-card{background:var(--bg);border:1px solid var(--border);border-radius:16px;padding:24px 20px;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.prof-card:hover{box-shadow:var(--sh);transform:translateY(-2px)}
.prof-card--hit{border-color:var(--blue);background:linear-gradient(160deg,#EFF6FF 0%,#DBEAFE 100%)}
.prof-card__tag{font-size:.68rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.prof-card__name{font-size:1.125rem;font-weight:700;margin-bottom:8px;color:var(--txt)}
.prof-card__desc{font-size:.875rem;color:var(--muted);margin-bottom:14px;line-height:1.55;flex:1}
.prof-card__price{font-size:1.625rem;font-weight:800;color:var(--blue);margin-bottom:3px;line-height:1}
.prof-card__note{font-size:.73rem;color:var(--muted);margin-bottom:20px}
.prof-card .btn{width:100%}

/* Badges */
.badge{display:inline-block;font-size:.68rem;font-weight:700;padding:2px 8px;border-radius:100px;vertical-align:middle;margin-left:6px}
.badge--hit{background:#D1FAE5;color:#065F46}
.badge--new{background:#EDE9FE;color:#6D28D9}

/* ── Why GARDIS ── */
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.why-item{text-align:center;padding:32px 20px;background:var(--bg);border-radius:16px;border:1px solid var(--border);transition:box-shadow .2s}
.why-item:hover{box-shadow:var(--sh)}
.why-item__ico{width:64px;height:64px;border-radius:16px;background:#EFF6FF;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;color:var(--blue)}
.why-item__title{font-size:1.0625rem;font-weight:700;margin-bottom:8px;color:var(--txt)}
.why-item__text{font-size:.875rem;color:var(--muted);line-height:1.65}

/* ── Reviews ── */
.rev-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.rev-card{background:var(--bg);border:1px solid var(--border);border-radius:16px;padding:24px}
.rev-card__stars{color:#F59E0B;font-size:1.05rem;letter-spacing:3px;margin-bottom:12px}
.rev-card__text{font-size:.9rem;color:var(--txt2);line-height:1.75;margin-bottom:16px}
.rev-card__author{display:flex;align-items:center;gap:12px}
.rev-card__avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,var(--blue),#60A5FA);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:1.125rem;flex-shrink:0}
.rev-card__name{font-weight:600;font-size:.9rem;color:var(--txt)}
.rev-card__date{font-size:.78rem;color:var(--muted)}

/* ── Lead form / CTA ── */
.cta-sec{background:linear-gradient(135deg,#1e3a5f 0%,var(--blue) 100%);padding:72px 0}
.cta-sec .sec__title{color:#fff}
.cta-sec .sec__sub{color:rgba(255,255,255,.75)}
.cta-form{max-width:520px;margin:0 auto}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.form-input{width:100%;padding:14px 18px;border-radius:var(--r);border:2px solid rgba(255,255,255,.2);background:rgba(255,255,255,.1);color:#fff;font-size:1rem;font-family:inherit;outline:none;transition:border-color .15s}
.form-input::placeholder{color:rgba(255,255,255,.5)}
.form-input:focus{border-color:rgba(255,255,255,.55);background:rgba(255,255,255,.15)}
.form-input.error{border-color:#FCA5A5}
.cta-form .btn{width:100%;margin-top:4px;padding:16px 24px;font-size:1.0625rem}
.cta-form__note{text-align:center;font-size:.78rem;color:rgba(255,255,255,.55);margin-top:10px}
.cta-form__note a{color:rgba(255,255,255,.7)}
.form-success{display:none;text-align:center;padding:28px 16px;font-size:1.125rem;color:#fff;background:rgba(22,163,74,.2);border-radius:var(--r);border:1px solid rgba(22,163,74,.4)}
.form-success-inline{text-align:center;padding:20px 16px;color:var(--green);display:flex;flex-direction:column;align-items:center;gap:12px}
.form-success-inline p{font-size:1rem;font-weight:600;margin:0}

/* ── FAQ ── */
.faq-list{max-width:780px;margin:0 auto}
.faq-item{border-bottom:1px solid var(--border)}
.faq-item:first-child{border-top:1px solid var(--border)}
.faq-q{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0;cursor:pointer;font-size:1.0625rem;font-weight:600;color:var(--txt);background:none;border:none;width:100%;text-align:left;user-select:none}
.faq-q:hover{color:var(--blue)}
.faq-q svg{flex-shrink:0;color:var(--blue);transition:transform .25s}
.faq-item.open .faq-q svg{transform:rotate(180deg)}
.faq-a{display:none;font-size:.9375rem;color:var(--txt2);line-height:1.75;padding-bottom:18px;padding-right:40px}
.faq-item.open .faq-a{display:block}

/* ── WhatsApp float ── */
.wa-btn{position:fixed;bottom:24px;right:24px;z-index:999;width:58px;height:58px;background:#25D366;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 18px rgba(37,211,102,.45);transition:transform .2s,box-shadow .2s;text-decoration:none}
.wa-btn:hover{transform:scale(1.1);box-shadow:0 6px 26px rgba(37,211,102,.55)}

/* ── Footer ── */
.footer{background:#111827;color:#9CA3AF}

/* Experience badges */
.footer__badges{background:#1a2436;padding:24px 0;border-bottom:1px solid #374151}
.badges-row{display:flex;justify-content:center;gap:40px;align-items:center;flex-wrap:wrap}
.badge-exp{display:flex;align-items:center;gap:12px;color:#fff}
.badge-exp__ico{width:46px;height:46px;border-radius:12px;background:rgba(29,78,216,.35);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#93C5FD}
.badge-exp__val{font-size:1.25rem;font-weight:800;line-height:1}
.badge-exp__lbl{font-size:.72rem;color:#9CA3AF;margin-top:2px}

/* Footer body */
.footer__body{padding:48px 0 36px}
.footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1.2fr 1fr;gap:36px}
.footer__col-title{color:#fff;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;margin-bottom:16px}
.footer__links{display:flex;flex-direction:column;gap:9px}
.footer__links a{color:#9CA3AF;font-size:.875rem;transition:color .15s}
.footer__links a:hover{color:#fff}

/* Contacts column */
.footer__contacts{}
.footer__socials{display:flex;gap:8px;margin-bottom:16px}
.footer__soc{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;transition:opacity .15s;text-decoration:none}
.footer__soc:hover{opacity:.82}
.footer__soc--wa{background:#25D366;color:#fff}
.footer__soc--tg{background:#229ED9;color:#fff}
.footer__soc--vk{background:#0077FF;color:#fff}
.footer__contact-item{font-size:.875rem;margin-bottom:8px;line-height:1.4}
.footer__contact-item a{color:#D1D5DB;font-weight:600;transition:color .15s}
.footer__contact-item a:hover{color:#fff}

/* Copyright */
.footer__bottom{border-top:1px solid #374151;padding:20px 0}
.footer__bottom-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:.8rem}

/* ── Breadcrumbs ── */
.breadcrumbs ol{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.breadcrumbs li{display:flex;align-items:center;gap:6px;font-size:.875rem;color:rgba(255,255,255,.7)}
.breadcrumbs li:not(:last-child)::after{content:'/';opacity:.5}
.breadcrumbs a{color:rgba(255,255,255,.85);text-decoration:none}
.breadcrumbs a:hover{color:#fff}
.breadcrumbs span{color:#fff}

/* ── Shared utilities ── */
.text-center{text-align:center}
.mt-8{margin-top:8px}
.mt-12{margin-top:12px}
.mt-24{margin-top:24px}
.mt-36{margin-top:36px}
.mt-48{margin-top:48px}

/* ── Inner page hero ── */
.inner-hero{min-height:72vh}
.inner-hero__inner{position:relative;z-index:2;width:100%;padding:48px 0 56px}
.inner-hero__title{font-size:clamp(1.9rem,4vw,3.2rem);font-weight:800;line-height:1.15;color:var(--txt);margin:20px 0 14px;max-width:700px}
.inner-hero__sub{font-size:1rem;color:var(--txt2);margin-bottom:28px;max-width:560px;line-height:1.65}
.inner-hero__form{max-width:480px}
.inner-hero__form-row{display:flex;gap:10px}
.inner-hero__input{flex:1;padding:14px 18px;border-radius:var(--r);border:2px solid var(--border);font-size:1rem;font-family:inherit;outline:none;transition:border-color .15s;background:#fff}
.inner-hero__input:focus{border-color:var(--blue)}
.inner-hero__form-note{font-size:.75rem;color:var(--muted);margin-top:9px}

/* ── Inner content ── */
.inner-content{max-width:820px;margin:0 auto}
.inner-content h2{font-size:1.75rem;font-weight:700;margin:36px 0 14px;color:var(--txt)}
.inner-content h3{font-size:1.25rem;font-weight:600;margin:28px 0 10px;color:var(--txt)}
.inner-content p{margin-bottom:16px;line-height:1.8;color:var(--txt2);font-size:1rem}
.inner-content ul,.inner-content ol{padding-left:22px;margin-bottom:16px}
.inner-content li{margin-bottom:8px;line-height:1.7;color:var(--txt2)}
.inner-content table{width:100%;border-collapse:collapse;margin:24px 0;font-size:.9rem}
.inner-content th,.inner-content td{padding:10px 14px;border:1px solid var(--border);text-align:left}
.inner-content th{background:var(--light);font-weight:600;color:var(--txt)}

/* ── Related articles ── */
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.related-card{display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--border);border-radius:16px;overflow:hidden;text-decoration:none;transition:box-shadow .2s,transform .2s}
.related-card:hover{box-shadow:var(--sh-lg);transform:translateY(-3px)}
.related-card__img{height:130px;background:linear-gradient(135deg,#DBEAFE,#EFF6FF)}
.related-card__body{padding:18px}
.related-card__tag{font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--blue);margin-bottom:8px}
.related-card__title{font-size:.9375rem;font-weight:600;color:var(--txt);line-height:1.45}
.related-card:hover .related-card__title{color:var(--blue)}

/* ── Article template ── */
.article-wrap{padding-bottom:0}
.article-header{padding:48px 0 36px;background:var(--light);border-bottom:1px solid var(--border)}
.art-tag{display:inline-block;color:var(--blue);font-size:.73rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;margin-bottom:12px}
.article-title{font-size:clamp(1.7rem,3.5vw,2.75rem);font-weight:800;color:var(--txt);line-height:1.2;margin:0 0 16px;max-width:800px}
.article-lead{font-size:1.125rem;color:var(--muted);line-height:1.7;max-width:720px;margin-bottom:12px}
.article-date{font-size:.8125rem;color:var(--muted)}
.article-layout{display:grid;grid-template-columns:1fr 300px;gap:48px;padding:48px 0 64px;align-items:start}
.article-body h2{font-size:1.6rem;font-weight:700;margin:36px 0 14px;color:var(--txt)}
.article-body h3{font-size:1.2rem;font-weight:600;margin:24px 0 10px;color:var(--txt)}
.article-body p{margin-bottom:18px;line-height:1.85;color:var(--txt2);font-size:1rem}
.article-body ul,.article-body ol{padding-left:24px;margin-bottom:18px}
.article-body li{margin-bottom:8px;line-height:1.7;color:var(--txt2)}
.article-body a{color:var(--blue);text-decoration:underline;text-decoration-thickness:1px}
.article-body img{border-radius:12px;max-width:100%;height:auto;margin:24px 0}
.article-body table{width:100%;border-collapse:collapse;margin:24px 0}
.article-body td,.article-body th{padding:10px 14px;border:1px solid var(--border);font-size:.9375rem}
.article-body th{background:var(--light);font-weight:600}
.aside-card{background:var(--bg);border:1px solid var(--border);border-radius:16px;padding:24px;margin-bottom:20px}
.aside-card--links{padding:20px 24px}
.aside-card__label{font-size:.8125rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}
.aside-card__text{font-size:.9rem;color:var(--txt2);line-height:1.6;margin-bottom:16px}
.aside-card__btn{display:block;text-align:center;margin-bottom:12px;font-size:.9375rem}
.aside-card__wa{display:flex;align-items:center;gap:8px;justify-content:center;color:var(--green);font-size:.9rem;font-weight:600;text-decoration:none}
.aside-card__wa:hover{text-decoration:underline}
.aside-links{display:flex;flex-direction:column;gap:0}
.aside-links a{display:block;padding:8px 0;font-size:.875rem;color:var(--txt2);border-bottom:1px solid var(--border);text-decoration:none;transition:color .15s}
.aside-links a:hover{color:var(--blue)}
.aside-links li:last-child a{border-bottom:none}

/* ── Catalog (stati) ── */
.cat-hero{padding:56px 0 40px;background:var(--light);border-bottom:1px solid var(--border)}
.cat-hero__title{font-size:clamp(1.8rem,4vw,3rem);font-weight:800;color:var(--txt);margin:16px 0 12px;line-height:1.2}
.cat-hero__sub{font-size:1.0625rem;color:var(--muted);max-width:560px;line-height:1.7}
.cat-empty{max-width:600px;margin:0 auto;text-align:center;padding:48px 0}
.cat-empty p{font-size:1rem;color:var(--txt2);margin-bottom:16px;line-height:1.7}
.cat-empty__links{margin-top:24px;display:flex;flex-direction:column;gap:10px;align-items:center}
.cat-empty__links a{color:var(--blue);font-size:.9375rem;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.art-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.art-card{display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--border);border-radius:16px;overflow:hidden;text-decoration:none;transition:box-shadow .2s,transform .2s}
.art-card:hover{box-shadow:var(--sh-lg);transform:translateY(-3px)}
.art-card__img{height:180px;overflow:hidden;background:linear-gradient(135deg,#DBEAFE,#EFF6FF);display:flex;align-items:center;justify-content:center;color:var(--blue)}
.art-card__img img{width:100%;height:100%;object-fit:cover}
.art-card__img-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--blue)}
.art-card__body{padding:20px;flex:1;display:flex;flex-direction:column;gap:8px}
.art-card__tag{font-size:.7rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--blue)}
.art-card__title{font-size:1rem;font-weight:600;color:var(--txt);line-height:1.45;flex:1}
.art-card:hover .art-card__title{color:var(--blue)}
.art-card__desc{font-size:.875rem;color:var(--muted);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.art-card__more{font-size:.8125rem;font-weight:600;color:var(--blue);margin-top:4px}

/* ── Responsive — main sections ── */
@media(max-width:1024px){
  .prof-grid{grid-template-columns:repeat(2,1fr)}
  .why-grid{grid-template-columns:repeat(2,1fr)}
  .footer__grid{grid-template-columns:1fr 1fr}
  .art-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .sec{padding:48px 0}
  .sol-grid{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr 1fr;gap:24px}
  .steps::before{display:none}
  .rev-grid{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .footer__bottom-inner{flex-direction:column;text-align:center}
  .badges-row{gap:20px}
  .related-grid{grid-template-columns:1fr}
  .inner-hero__form-row{flex-direction:column}
  .inner-hero__input{width:100%}
  .art-grid{grid-template-columns:1fr}
  .article-layout{grid-template-columns:1fr}
  .article-aside{display:none}
}
@media(max-width:480px){
  .prof-grid{grid-template-columns:1fr}
  .why-grid{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .footer__grid{grid-template-columns:1fr}
  .badge-exp{min-width:140px}
}
