/* Avantaj layout refinement 2026-10-20.
   Add AFTER the site's original CSS; no brand, hero asset, widget, reviews or calculators are replaced. */
:root {
  --av-ink: #102e2b;
  --av-deep: #123b35;
  --av-cream: #f7f5ee;
  --av-pale: #ecf2eb;
  --av-border: rgba(17,55,49,.13);
  --av-radius: 19px;
  --av-gap: clamp(13px, 1.55vw, 22px);
}
*,*::before,*::after {box-sizing:border-box}
html {scroll-behavior:smooth;scroll-padding-top:95px}
body {overflow-x:hidden}
body .container {width: min(1440px, calc(100% - clamp(32px, 6vw, 104px)));max-width:1440px;margin-inline:auto}
/* Readable header navigation, same header structure and unchanged branding */
body .header .nav {gap:clamp(12px,1.45vw,23px)}
body .header .nav a {font-size:15.5px;font-weight:650;line-height:1.4;white-space:nowrap;letter-spacing:-.015em}
body .header .header-inner {gap:clamp(14px,1.8vw,28px)}
body .header .header-phone {white-space:nowrap}
/* Balanced sectional rhythm. Height grows when user text or form controls need room. */
body main > section:not(.hero) {min-height:520px;padding-block:clamp(39px,3.6vw,55px)}
body main > section:not(.hero) > .container {width:min(1440px,calc(100% - clamp(32px,6vw,104px)))}
body main > .statement {display:flex;align-items:center;min-height:520px;padding-block:clamp(39px,3.6vw,55px)}
body main > section .section-heading {margin-bottom:clamp(20px,2vw,29px);gap:20px}
body main > section .section-heading h2 {margin-bottom:0}
body main > section .section-heading p {max-width:430px}
body main > section h2 {line-height:1.07}
body main > section :where(h3,p,ul) {overflow-wrap:break-word}
body main > section .section-photo {position:relative;margin:0;overflow:hidden;border-radius:var(--av-radius);background:#bed0c2;min-width:0;isolation:isolate}
body main > section .section-photo::after {content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,rgba(13,48,39,.16),transparent 55%)}
body main > section .section-photo img {display:block;width:100%;height:100%;min-height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.22,.75,.27,1);transform:scale(1.005)}
@media(hover:hover){body main > section .section-photo:hover img{transform:scale(1.045)}}
body main > .has-section-photo {background:var(--av-pale)}
body main > .has-section-photo:nth-of-type(4n) {background:var(--av-cream)}
body main > .has-section-photo .section-photo {box-shadow:0 12px 30px rgba(14,47,40,.085)}
/* Company: merge why-Avantaj into one compact section, no duplicate standalone band. */
body #company .statement-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:13px;align-items:start}
body #company .statement-grid > .section-label {font-size:12px}
body #company .company-body {display:grid;gap:20px;min-width:0}
body #company .company-overview {display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);align-items:start;gap:clamp(30px,4vw,72px)}
body #company .company-copy h2 {max-width:640px;font-size:clamp(34px,3.2vw,49px);margin:0 0 15px}
body #company .company-copy > p {max-width:620px;margin:0 0 20px;line-height:1.6}
body #company .company-facts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 0}
body #company .company-facts > div {border-top:1px solid var(--av-border);padding-top:13px;min-width:0}
body #company .company-facts strong {display:block;font-size:clamp(14px,1.05vw,18px)}
body #company .company-facts span {display:block;margin-top:5px;font-size:12px}
body #company .company-why {border:1px solid var(--av-border);border-radius:var(--av-radius);padding:clamp(18px,2vw,29px);background:#fffdf8}
body #company .company-why h3 {font-size:clamp(25px,2vw,33px);line-height:1.13;margin:10px 0 10px}
body #company .company-why > p {font-size:14px;line-height:1.52;margin:0 0 19px;max-width:580px}
body #company .company-why .value-points {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 15px}
body #company .company-why .value-points > div {display:flex;flex-direction:column;gap:7px;margin:0;padding:12px;background:var(--av-pale);border:1px solid var(--av-border);border-radius:12px;min-width:0}
body #company .company-why .value-points div > span {color:#35765e;font-weight:750;font-size:11px}
body #company .company-why .value-points b {font-size:13px;line-height:1.25}
body #company .company-why .value-points p {font-size:11.5px;line-height:1.38;margin:0}
body #company .company-why > a {font-size:13px;margin-top:2px}
body #company .accreditation {display:grid;grid-template-columns:auto 1fr;align-items:center;gap:16px;border-radius:15px;padding:17px 22px;margin:0}
body #company .accreditation .accreditation-mark {flex-shrink:0}
body #company .accreditation h3 {font-size:18px;margin:4px 0}
body #company .accreditation p {font-size:12.5px;line-height:1.46;margin:0}
/* One visual tile + two equal-height information cards */
body #services .service-grid {display:grid;grid-template-columns:minmax(0,.92fr) repeat(2,minmax(0,1fr));align-items:stretch;gap:var(--av-gap)}
body #services .service-grid > .section-photo {min-height:375px}
body #services .service-card {display:flex;flex-direction:column;min-width:0;min-height:375px;padding:clamp(20px,1.9vw,28px);border-radius:var(--av-radius)}
body #services .service-card h3 {font-size:clamp(24px,2.1vw,31px);margin:16px 0 12px}
body #services .service-card > p {font-size:14px;line-height:1.5;margin-bottom:13px}
body #services .service-card ul {font-size:13.5px;line-height:1.5;margin:0 0 13px;padding-left:19px}
body #services .service-top {align-items:center}
body #services .service-detail {margin-top:9px;overflow:hidden;max-height:0;opacity:0;padding:0;transition:max-height .28s ease,opacity .2s ease}
body #services .service-card:has(.detail-trigger[aria-expanded="true"]) .service-detail,
body #services .service-card.is-expanded .service-detail,
body #services .service-card.is-open .service-detail {max-height:260px;opacity:1}
body #services .service-card .card-action {margin-top:auto}
/* Equal-format cards, one coherent media tile. */
body #formats .format-grid {display:grid;grid-template-columns:minmax(0,1.05fr) repeat(2,minmax(0,1fr));gap:var(--av-gap);align-items:stretch}
body #formats .format-grid > .section-photo {min-height:290px}
body #formats .format-card {display:flex;flex-direction:column;min-height:290px;border-radius:var(--av-radius);padding:clamp(22px,2.4vw,35px)}
body #formats .format-card h3 {font-size:clamp(23px,2vw,31px);line-height:1.13}
body #formats .format-card p {font-size:14px;line-height:1.55}
body #formats .format-card .format-foot {margin-top:auto}
body #formats .format-link {display:inline-flex;margin-top:21px}
/* People section: compact cards and one-row brief at desktop */
body #people .people-grid {align-items:stretch;gap:var(--av-gap)}
body #people .people-card {min-height:256px;padding:clamp(20px,2vw,28px);display:flex;flex-direction:column}
body #people .people-card h3 {font-size:clamp(21px,1.75vw,28px);margin:13px 0 8px}
body #people .people-card p,body #people .people-card li {font-size:13.5px;line-height:1.42}
body #people .people-card .people-action {margin-top:auto;align-self:start}
body #people .quick-brief {margin-top:18px;padding:20px;gap:12px}
body #people .quick-brief h3 {font-size:21px;margin:5px 0}
body #people .quick-brief p {font-size:12px;margin:0}
body #people .quick-brief :where(input,select) {max-width:100%}
/* Cost section: remove only the prose beneath calculator, preserve disclaimer inside result. */
body #calculator .calculator-layout {gap:var(--av-gap);align-items:stretch}
body #calculator :where(.calc-form,.calc-result) {padding:clamp(19px,2.2vw,31px);border-radius:var(--av-radius)}
body #calculator .calc-form {min-width:0}
body #calculator .calc-result {min-width:0}
body #calculator .estimate-foot {display:none !important}
body #calculator .section-heading {margin-bottom:18px}
body #calculator,body #scope{padding-block:32px}
/* Responsibility image tile and existing interactive panels (IDs and data-attrs kept). */
body #scope .responsibility-switch {margin-bottom:20px}
body #scope .responsibility-showcase {display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.9fr);gap:var(--av-gap);align-items:stretch}
body #scope .responsibility-showcase > .section-photo {min-height:325px}
body #scope .responsibility-panels {min-width:0}
body #scope .responsibility-panel {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--av-gap);height:100%}
body #scope .responsibility-panel[hidden] {display:none !important}
body #scope .responsibility-card {height:100%;min-width:0;padding:clamp(19px,2vw,27px);border-radius:var(--av-radius)}
body #scope .responsibility-card h3 {font-size:clamp(20px,1.7vw,25px);margin:12px 0}
body #scope .responsibility-card li {font-size:13px;line-height:1.5}
body #scope .responsibility-note {margin-top:18px;margin-bottom:13px;font-size:13px}
/* Working situations and process are retained and compressed. */
body .situations .situations-grid {gap:var(--av-gap)}
body .situations .situations-grid > div {padding:clamp(18px,1.9vw,27px);border-radius:var(--av-radius)}
body .situations .situations-grid h3 {font-size:clamp(19px,1.8vw,27px)}
body .situations .process-inline {margin-top:20px;padding:23px}
/* FAQ: retail-photo tile between heading and current disclosure controls. */
body .faq-section .faq-layout {display:grid;grid-template-columns:minmax(0,.77fr) minmax(0,1fr) minmax(0,1.3fr);gap:clamp(20px,2.4vw,33px);align-items:stretch}
body .faq-section .faq-layout > .section-photo {min-height:360px}
body .faq-section .faq-layout > div:first-child {align-self:center}
body .faq-section .faq-layout > .faq-list {align-self:center;min-width:0}
body .faq-section .faq-list summary {font-size:15px;font-weight:650;padding:16px 9px}
body .faq-section .faq-list details p {font-size:13px;line-height:1.55;margin:0 9px 14px}
/* Reviews and map: same successful original styles, only outer content width changes. */
body #reviews .review-grid {gap:var(--av-gap)}
body #reviews .review-card {min-width:0}
body #map .map-frame {overflow:hidden;border-radius:var(--av-radius)}
/* Photo between contact text and unchanged functional form. */
body #contact .contact-layout {display:grid;grid-template-columns:minmax(0,.91fr) minmax(0,.87fr) minmax(0,1.18fr);gap:clamp(16px,1.7vw,25px);align-items:stretch}
body #contact .contact-layout > .section-photo {min-height:465px}
body #contact .contact-copy {min-width:0;align-self:center}
body #contact .contact-copy h2 {font-size:clamp(35px,3vw,49px)}
body #contact .contact-copy > p {font-size:14px;max-width:330px}
body #contact .direct-contact {min-width:0}
body #contact .direct-contact strong {font-size:clamp(17px,1.4vw,21px)}
body #contact .lead-form {min-width:0;padding:clamp(20px,2.1vw,30px);border-radius:var(--av-radius)}
body #contact .lead-form input,body #contact .lead-form select,body #contact .lead-form textarea {max-width:100%}
/* Visual focus and accessibility */
body :where(a,button,input,select,textarea,summary):focus-visible {outline:3px solid #5cb68c;outline-offset:3px}
body :where(.section-photo,img) {max-width:100%}
[hidden] {display:none!important}
@media(max-width:1280px){
 body .header .nav a{font-size:14.5px}
 body #company .company-overview{gap:27px}
 body #company .company-why .value-points{grid-template-columns:1fr}
 body #company .company-why .value-points>div{display:grid;grid-template-columns:23px .8fr 1.2fr;align-items:center;min-height:auto}
 body #contact .contact-layout{grid-template-columns:minmax(0,.95fr) minmax(0,1.3fr)}
 body #contact .contact-layout>.section-photo{grid-column:1;grid-row:2;min-height:245px;max-height:245px}
 body #contact .contact-copy{grid-column:1;grid-row:1}
 body #contact .lead-form{grid-column:2;grid-row:1/span 2}
}
@media(max-width:1100px){
 body #services .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body #services .service-grid>.section-photo{grid-column:1/-1;min-height:215px;max-height:215px}
 body #services .service-card{min-height:345px}
 body #formats .format-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body #formats .format-grid>.section-photo{grid-column:1/-1;min-height:220px;max-height:220px}
 body #scope .responsibility-showcase{grid-template-columns:minmax(0,1fr)}
 body #scope .responsibility-showcase>.section-photo{max-height:240px;min-height:240px}
 body .faq-section .faq-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 body .faq-section .faq-layout>div:first-child{grid-column:1/-1}
 body .faq-section .faq-layout>.section-photo{min-height:330px}
}
@media(max-width:800px){
 body .container,body main>section:not(.hero)>.container{width:calc(100% - 36px)}
 body .header .nav a{font-size:16px}
 body main>section:not(.hero),body main>.statement{min-height:auto;padding-block:47px}
 body main>section .section-heading{margin-bottom:22px}
 body #company .company-overview{grid-template-columns:minmax(0,1fr)}
 body #company .company-why .value-points{grid-template-columns:repeat(3,minmax(0,1fr))}
 body #company .company-why .value-points>div{display:flex}
 body #people .people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body #scope .responsibility-panel{grid-template-columns:repeat(2,minmax(0,1fr))}
 body #contact .contact-layout{grid-template-columns:1fr 1fr}
 body #contact .contact-copy{grid-column:1/-1;grid-row:auto}
 body #contact .contact-layout>.section-photo{grid-column:1;grid-row:auto;min-height:320px;max-height:none}
 body #contact .lead-form{grid-column:2;grid-row:auto}
}
@media(max-width:650px){
 body .container,body main>section:not(.hero)>.container{width:calc(100% - 30px)}
 body main>section:not(.hero),body main>.statement{padding-block:38px}
 body main>section h2{font-size:clamp(30px,8vw,40px)}
 body #company .company-copy h2{font-size:clamp(30px,8vw,40px)}
 body #company .company-why .value-points{grid-template-columns:1fr}
 body #company .company-why .value-points>div{display:grid;grid-template-columns:23px 1fr;gap:4px 8px}
 body #company .company-why .value-points>div p{grid-column:2}
 body #company .company-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 body #company .company-facts strong{font-size:13px}
 body #company .company-facts span{font-size:11px}
 body #company .accreditation{padding:16px;grid-template-columns:1fr}
 body #company .accreditation .accreditation-mark{display:none}
 body #services .service-grid,body #formats .format-grid,body #people .people-grid {grid-template-columns:1fr}
 body #services .service-grid>.section-photo,body #formats .format-grid>.section-photo{grid-column:1;min-height:240px;max-height:260px}
 body #services .service-card,body #formats .format-card{min-height:auto}
 body #scope .responsibility-panel{grid-template-columns:1fr}
 body #scope .responsibility-card{height:auto}
 body .faq-section .faq-layout{grid-template-columns:1fr}
 body .faq-section .faq-layout>div:first-child{grid-column:1}
 body .faq-section .faq-layout>.section-photo{min-height:240px;max-height:270px}
 body #contact .contact-layout{grid-template-columns:1fr}
 body #contact .contact-copy,body #contact .lead-form,body #contact .contact-layout>.section-photo{grid-column:1;grid-row:auto}
 body #contact .contact-layout>.section-photo{min-height:240px;max-height:260px}
 body #contact .contact-copy h2{font-size:clamp(32px,9vw,42px)}
 body #calculator .calculator-layout{grid-template-columns:1fr}
 body #people .quick-brief{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 body #people .quick-brief-copy,body #people .quick-brief>.button{grid-column:1/-1}
}
@media(max-width:370px){body #people .quick-brief{grid-template-columns:1fr}body #people .quick-brief-copy,body #people .quick-brief>.button{grid-column:1}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}body main>section .section-photo img{transition:none}}


/* v1.1.0 refinements: mission, richer personnel grid, brand icons, unified block rhythm */
body #company .mission-box{margin:0 0 20px;padding:14px 18px;border-left:4px solid #67b28c;background:#eef5ef;border-radius:0 14px 14px 0;color:#173c34;font-weight:700;line-height:1.58;max-width:650px}
body #people .people-grid-rich{grid-template-columns:repeat(3,minmax(0,1fr))}
body #people .people-card{overflow:hidden}
body #people .people-media{margin:-2px -2px 16px;border-radius:16px;overflow:hidden;height:176px;background:#dce6df}
body #people .people-media img{display:block;width:100%;height:100%;object-fit:cover}
body #people .people-card ul{margin:0 0 14px;padding-left:18px}
body #people .people-card li+li{margin-top:3px}
body #people .people-card .people-index{display:block;font-size:11px;font-weight:800;color:#35765e;letter-spacing:.06em}
body #people .quick-brief{grid-template-columns:1.7fr repeat(4,minmax(120px,1fr)) auto}
body .footer .social-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px;align-items:center}
body .footer .social-link{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:999px;border:0;background:transparent;transition:transform .18s ease}
body .footer .social-link:hover{transform:translateY(-2px)}
body .footer .social-icon{width:38px;height:38px;display:block}
body .footer .social-link--telegram,body .footer .social-link--whatsapp,body .footer .social-link--vk,body .footer .social-link--hh{color:inherit;background:transparent}
body .footer .footer-links a,body .footer .footer-links span{font-size:13px}
body .footer .footer-legal-links a,body .footer .footer-legal-links button{font-size:12px}
@media(max-width:1100px){body #people .people-grid-rich{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){body #people .people-grid-rich{grid-template-columns:1fr}body #people .people-media{height:210px}}


/* v1.2.0 legal pages + compact section rhythm */
body.av-legal-page main{background:#f7f5ee}
body.av-legal-page .legal-section{padding:52px 0 58px;min-height:calc(100vh - 180px)}
body.av-legal-page .legal-container{display:flex;justify-content:center}
body.av-legal-page .legal-copy{width:min(860px,100%);background:#fff;border:1px solid rgba(17,55,49,.10);border-radius:24px;padding:38px 42px;box-shadow:0 16px 44px rgba(17,55,49,.06)}
body.av-legal-page .legal-copy h1{font-size:44px;line-height:1.08;margin:10px 0 20px}
body.av-legal-page .legal-content p,body.av-legal-page .legal-content li{font-size:15px;line-height:1.68;color:#27403a}
body.av-legal-page .legal-content h2{font-size:28px;line-height:1.18;margin:30px 0 12px}
body.av-legal-page .legal-content ul{padding-left:22px;margin:10px 0 0}
body.av-legal-page .footer{margin-top:0}
@media(max-width:800px){body.av-legal-page .legal-section{padding:34px 0 42px}body.av-legal-page .legal-copy{padding:24px 20px;border-radius:18px}body.av-legal-page .legal-copy h1{font-size:34px}body.av-legal-page .legal-content h2{font-size:24px}}
