:root {
  --ink: #1c1d22;
  --muted: #5f6064;
  --paper: #ffffff;
  --panel: #f6f6f6;
  --line: #d7e7e5;
  --accent: #9bdeda;
  --accent-hover: #b5ebe7;
  --night: #1c1c23;
  --shell: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  font-family: "Bai Jamjuree", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
p { font-size: 17px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.shell { width: min(var(--shell), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px 18px; background: var(--accent); color: #000; }
.skip-link:focus { top: 16px; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; color: #fff; }
.header-inner { min-height: 98px; display: flex; align-items: center; gap: 38px; }
.brand { flex: 0 0 176px; }
.brand img { width: 176px; height: auto; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(22px, 2.2vw, 38px); }
.desktop-nav a { white-space: nowrap; color: #fff; font-size: 14px; font-weight: 400; text-decoration: none; }
.desktop-nav > a:not(.button) { padding-block: 12px; }
.desktop-nav > a:not(.button):hover { color: var(--accent); }
.menu-toggle, .mobile-nav { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: 0; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .015em; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #14191a !important; }
.button-primary:hover { background: var(--accent-hover); }
.button-header { min-width: 184px; }
.button-arrow::after { content: ""; width: 8px; height: 8px; margin-left: 22px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.button-dark { width: 100%; border: 0; background: var(--night); color: #fff; cursor: pointer; }
.button-dark:hover { background: #303038; }

.hero { position: relative; min-height: 742px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; background: url("assets/images/energetikai-audit-hero.webp") 52% 46% / cover no-repeat; transform: scale(1.005); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,7,8,.73) 0%, rgba(6,7,8,.60) 43%, rgba(6,7,8,.18) 70%, rgba(6,7,8,.16) 100%); }
.hero-content { position: relative; min-width: 0; padding-top: 115px; }
.hero h1 { max-width: 900px; margin: 0; font-size: clamp(52px, 4.9vw, 72px); font-weight: 600; line-height: 1.03; letter-spacing: -.035em; }
.hero-word { white-space: nowrap; }
.hero-lead { max-width: 600px; margin: 34px 0 0; color: rgba(255,255,255,.92); font-size: 17px; font-weight: 600; line-height: 1.55; }
.hero .button { margin-top: 38px; }

.section { padding: 94px 0; scroll-margin-top: 88px; }
.section h2, .facility-section h2 { margin: 0; font-size: clamp(28px, 2.2vw, 34px); font-weight: 300; line-height: 1.25; letter-spacing: -.015em; }
.center-heading { max-width: 880px; margin: 0 auto 58px; text-align: center; }
.center-heading p { max-width: 760px; margin: 32px auto 0; color: var(--muted); line-height: 1.65; }
.center-heading strong { font-weight: 600; color: #44454a; }
.center-action { margin-top: 58px; text-align: center; }

.audit-reasons { padding-top: 92px; }
.audit-reasons h2 { text-align: center; }
.reason-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 66px; }
.reason-card { min-height: 292px; padding: 18px 40px 26px; }
.reason-card + .reason-card { border-left: 1px solid var(--line); }
.reason-card img { width: 46px; height: 46px; margin-bottom: 28px; object-fit: contain; }
.reason-card h3 { min-height: 58px; margin: 0 0 16px; font-size: 21px; font-weight: 600; line-height: 1.25; }
.reason-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.review-section { padding-top: 58px; }
.review-box { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 438px; background: var(--panel); overflow: visible; }
.review-media { min-height: 438px; margin: 0; overflow: hidden; }
.review-media img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 49%; transition: transform .55s ease; }
.review-media:hover img { transform: scale(1.035); }
.review-mark { position: absolute; z-index: 3; left: 50%; top: 0; width: 116px; height: 116px; display: grid; place-items: center; background: var(--accent); transform: translate(-50%, -50%); }
.review-mark img { width: 48px; height: 48px; }
.review-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 76px clamp(58px, 6vw, 98px); background: var(--panel); }
.review-copy h2 { max-width: 500px; font-size: clamp(30px, 2.5vw, 38px); }
.review-copy p { max-width: 510px; margin: 32px 0 0; color: var(--muted); line-height: 1.65; }
.review-copy .button { margin-top: 34px; }

.audit-results { padding-top: 104px; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.result-card { min-height: 320px; padding: 50px 50px 46px; }
.result-card + .result-card { border-left: 1px solid var(--line); }
.result-card img { width: 48px; height: 48px; margin-bottom: 28px; object-fit: contain; }
.result-card h3 { margin: 0 0 18px; font-size: 22px; font-weight: 500; line-height: 1.25; }
.result-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.facility-section { scroll-margin-top: 88px; }
.facility-layout { display: grid; grid-template-columns: 1fr 1fr; max-width: 1440px; margin-inline: auto; }
.facility-media { position: relative; min-height: 650px; margin: 0; overflow: hidden; background: #d9dcdb; }
.facility-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: 0; transform: scale(1.015); transition: opacity .7s ease, transform 5s ease; }
.facility-slide.is-active { opacity: 1; transform: scale(1.045); }
.facility-carousel-controls { position: absolute; z-index: 2; left: 32px; bottom: 28px; display: flex; gap: 9px; padding: 10px 12px; background: rgba(20, 22, 23, .56); backdrop-filter: blur(4px); }
.facility-carousel-controls button { width: 24px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.48); cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.facility-carousel-controls button.is-active { width: 38px; background: var(--accent); }
.facility-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(54px, 6vw, 92px); }
.facility-copy h2 { margin-bottom: 34px; font-size: 27px; font-weight: 500; }
.facility-list article { display: grid; grid-template-columns: 54px 1fr; gap: 24px; padding: 29px 20px; border-bottom: 1px solid #e3e3e3; }
.facility-list article:last-child { border-bottom: 0; }
.facility-list img { width: 44px; height: 44px; margin-top: 2px; object-fit: contain; }
.facility-list h3 { margin: 0 0 11px; font-size: 21px; font-weight: 500; }
.facility-list p { max-width: 430px; margin: 0; color: var(--muted); line-height: 1.6; }

.process-section { background: var(--night); color: #fff; }
.process-section h2 { text-align: center; color: rgba(255,255,255,.92); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 64px 0 0; padding: 0; list-style: none; }
.process-grid li { padding: 0 30px; }
.process-grid li > span { display: block; color: rgba(255,255,255,.88); font-size: 76px; font-weight: 300; line-height: 1; }
.process-grid h3 { margin: 28px 0 14px; font-size: 21px; font-weight: 600; }
.process-grid p { margin: 0; color: rgba(255,255,255,.67); line-height: 1.65; }
.process-section .center-action { margin-top: 68px; }

.expertise-section { padding-block: 112px 94px; background: var(--panel); }
.expertise-section .center-heading { margin-bottom: 62px; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1040px; margin-inline: auto; }
.expertise-card { padding: 16px 52px; }
.expertise-card img { width: 48px; height: 48px; margin-bottom: 28px; object-fit: contain; }
.expertise-card h3 { margin: 0 0 18px; font-size: 22px; font-weight: 500; line-height: 1.28; }
.expertise-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.consultation-benefits { background: #101816; color: #fff; }
.consultation-benefits h2 { text-align: center; color: #f2f7f6; }
.consultation-benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 6vw, 100px); margin-top: 72px; }
.consultation-benefit { max-width: 340px; }
.benefit-check { width: 54px; height: 54px; display: grid; place-items: center; border: 2px solid #6fd3d1; border-radius: 50%; color: #6fd3d1; font-family: Arial, sans-serif; font-size: 30px; line-height: 1; }
.consultation-benefit h3 { margin: 34px 0 18px; font-size: 21px; font-weight: 600; line-height: 1.35; }
.consultation-benefit p { margin: 0; color: #c3cfcc; line-height: 1.65; }

.references-section { background: #fff; }
.references-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }
.reference-controls { display: flex; align-items: center; gap: 18px; }
.reference-arrow { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid #bfd7d4; background: #fff; color: var(--ink); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.reference-arrow svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reference-arrow:hover { background: var(--accent); border-color: var(--accent); }
.reference-position { min-width: 58px; text-align: center; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.reference-slider { display: grid; }
.reference-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 480px; background: var(--panel); visibility: hidden; pointer-events: none; }
.reference-slide.is-active { visibility: visible; pointer-events: auto; }
.reference-slide > img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.reference-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(40px, 5vw, 76px); }
.reference-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.reference-tag { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 11px; border: 1px solid #b8ddda; background: #e7f4f2; color: #216c68; font-size: 13px; font-weight: 600; line-height: 1.2; }
.reference-copy h3 { margin: 16px 0 20px; font-size: clamp(29px, 2.7vw, 40px); font-weight: 500; line-height: 1.18; }
.reference-copy p { margin: 0; color: var(--muted); line-height: 1.7; }
.reference-copy .reference-cta { margin-top: 30px; }
.reference-dots { display: flex; justify-content: center; gap: 9px; margin-top: 30px; }
.reference-dots button { width: 32px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.reference-dots button::before { content: ""; display: block; width: 32px; height: 4px; background: #cfdad8; }
.reference-dots button.is-active::before { background: #29837e; }

.reason-card,
.result-card,
.facility-list article,
.expertise-card { transition: background-color .24s ease, transform .24s ease; }
.reason-card img,
.result-card img,
.facility-list article > img,
.expertise-card img { transition: transform .24s ease; }

@media (hover: hover) and (pointer: fine) {
  .reason-card:hover,
  .result-card:hover,
  .facility-list article:hover,
  .expertise-card:hover { background: rgba(155, 222, 218, .1); transform: translateY(-3px); }
  .expertise-card:hover { background: #fff; }
  .reason-card:hover img,
  .result-card:hover img,
  .facility-list article:hover > img,
  .expertise-card:hover img { transform: translateY(-2px) scale(1.045); }
  .review-box:hover .review-mark img { transform: translateY(-2px) scale(1.045); }
}
.review-mark img { transition: transform .24s ease; }

.contact-section { padding-block: 110px; background: #fff; }
.contact-shell { max-width: 900px; }
.contact-heading { max-width: 780px; margin: 0 auto 70px; text-align: center; }
.contact-heading p { margin: 24px auto 0; color: var(--muted); line-height: 1.6; }
.contact-form { max-width: 680px; margin: 0 auto; padding: 46px 58px 54px; background: var(--panel); }
.contact-form > h3 { margin: 0 0 34px; font-size: 21px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.form-grid label { display: grid; gap: 9px; }
.form-grid label > span { color: #55565a; font-size: 14px; }
.full-field { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #9fa3a4; border-radius: 0; background: #fff; padding: 12px; color: var(--ink); outline: none; }
.contact-form input, .contact-form select { min-height: 44px; }
.contact-form textarea { min-height: 112px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: #257c77; box-shadow: 0 0 0 1px #257c77; }
.contact-form [aria-invalid="true"] { border-color: #b73535; }
.privacy-row { display: flex; gap: 12px; align-items: center; margin: 28px 0; color: var(--muted); font-size: 13px; }
.privacy-row input { width: 21px; height: 21px; flex: 0 0 21px; margin-top: 0; accent-color: #287b77; }
.privacy-row a { color: var(--ink); }
.form-footer { display: grid; gap: 14px; }
.contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha-slot { margin: -4px 0 24px; min-height: 78px; }
.captcha-slot[hidden] { display: none; }
.submit-button:disabled { opacity: .65; cursor: wait; }
.form-status { margin: 0; }
.form-status.is-error { color: #a12c2c; }
.form-status.is-info { color: #286f6b; }
.form-status.is-success { color: #286f6b; }

.faq-section { padding-top: 72px; padding-bottom: 104px; }
.faq-shell { max-width: 740px; }
.faq-shell > h2 { margin-bottom: 32px; text-align: center; color: #515256; }
.faq-list { display: grid; gap: 14px; }
.faq-item { border: 1px solid #9ea2a3; background: #fff; }
.faq-item summary { list-style: none; display: grid; grid-template-columns: 1fr 28px; gap: 22px; align-items: center; min-height: 52px; padding: 14px 17px; cursor: pointer; font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0; padding: 0 62px 20px 17px; color: var(--muted); line-height: 1.65; }
.plus { position: relative; width: 28px; height: 28px; display: inline-block; }
.plus::before, .plus::after { content: ""; position: absolute; left: 5px; right: 5px; top: 13px; height: 1px; background: currentColor; }
.plus::after { transform: rotate(90deg); transition: transform .2s ease; }
details[open] .plus::after { transform: rotate(0); }

.site-footer { padding: 36px 0; background: var(--night); color: rgba(255,255,255,.7); }
.footer-inner { display: flex; align-items: center; gap: 24px; font-size: 12px; }
.footer-brand { margin-right: auto; }
.footer-brand img { width: 130px; }
.footer-inner p { margin: 0; }
.footer-inner a:not(.footer-brand) { text-decoration: none; }
.footer-inner a:not(.footer-brand):hover { color: #fff; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

@media (max-width: 1080px) {
  .desktop-nav { gap: 18px; }
  .desktop-nav a { font-size: 13px; }
  .button-header { min-width: 150px; }
  .reason-card { padding-inline: 24px; }
  .review-copy { padding-inline: 58px; }
  .process-grid li { padding-inline: 20px; }
  .expertise-card { padding-inline: 34px; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-toggle { margin-left: auto; width: 48px; height: 48px; padding: 12px; border: 0; background: transparent; display: grid; align-content: center; gap: 6px; cursor: pointer; }
  .menu-toggle span { display: block; height: 2px; background: #fff; }
  .mobile-nav { background: rgba(20,20,24,.98); padding: 12px 32px 26px; }
  .mobile-nav:not([hidden]) { display: grid; }
  .mobile-nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; }
  .hero { min-height: 700px; }
  .reason-grid { grid-template-columns: 1fr 1fr; }
  .reason-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .reason-card:nth-child(4) { border-top: 1px solid var(--line); }
  .result-grid { grid-template-columns: 1fr; }
  .result-card { min-height: 0; }
  .result-card + .result-card { border-top: 1px solid var(--line); border-left: 0; }
  .review-box, .facility-layout { grid-template-columns: 1fr; }
  .review-mark { left: 50%; top: 438px; transform: translate(-50%, -50%); }
  .review-copy { padding-top: 92px; }
  .facility-media { min-height: 500px; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 52px 0; }
  .expertise-grid { grid-template-columns: 1fr; gap: 46px; max-width: 620px; }
  .expertise-card { padding: 0; }
  .consultation-benefits-grid { gap: 30px; }
  .reference-slide { grid-template-columns: 1fr; grid-template-rows: 420px auto; }
  .reference-slide > img { height: 420px; min-height: 0; }
  .reference-copy { padding: 42px 48px 48px; }
  .footer-inner { align-items: flex-start; flex-wrap: wrap; }
  .footer-brand { width: 100%; }
}

@media (max-width: 680px) {
  .shell { width: auto; max-width: none; margin-inline: 20px; }
  .header-inner { min-height: 78px; }
  .brand, .brand img { width: 145px; flex-basis: 145px; }
  .hero { min-height: 620px; min-height: max(620px, 100svh); align-items: start; }
  .hero-media { background-position: 63% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,6,7,.63), rgba(5,6,7,.28)), linear-gradient(180deg, rgba(5,6,7,.3), rgba(5,6,7,.7)); }
  .hero-content { padding: 112px 0 56px; }
  .hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .hero-word { white-space: normal; }
  .hero-lead { margin-top: 24px; font-size: 17px; }
  .hero .button { width: 100%; margin-top: 28px; padding-inline: 18px; text-align: center; }
  .section { padding-block: 68px; }
  .section h2, .facility-section h2 { text-align: left; font-size: clamp(26px, 7vw, 29px); line-height: 1.3; text-wrap: balance; }
  .center-heading, .contact-heading { text-align: left; }
  .audit-reasons h2 { text-align: left; }
  .reason-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .reason-card { min-height: 0; padding: 34px 20px; }
  .reason-card + .reason-card { border-top: 1px solid var(--line); border-left: 0; }
  .reason-card h3 { min-height: 0; }
  .review-section { padding-top: 24px; }
  .review-media { min-height: 330px; }
  .review-mark { top: 330px; width: 92px; height: 92px; }
  .review-mark img { width: 40px; height: 40px; }
  .review-copy { padding: 76px 24px 54px; }
  .review-copy .button { width: 100%; padding-inline: 14px; }
  .center-heading { margin-bottom: 42px; }
  .center-heading p { margin-top: 22px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-card { min-height: 0; padding: 38px 30px; }
  .result-card + .result-card { border-top: 1px solid var(--line); border-left: 0; }
  .center-action { margin-top: 38px; }
  .center-action .button { width: 100%; padding-inline: 16px; }
  .facility-media { min-height: 390px; }
  .facility-carousel-controls { left: 20px; bottom: 20px; }
  .facility-copy { padding: 54px 24px; }
  .facility-copy h2 { margin-bottom: 24px; }
  .facility-list article { grid-template-columns: 46px 1fr; gap: 18px; padding: 27px 14px; }
  .facility-list img { width: 38px; height: 38px; }
  .process-section h2 { text-align: left; }
  .process-grid { grid-template-columns: 1fr; gap: 44px; margin-top: 48px; }
  .process-grid li { padding: 0; }
  .process-grid li > span { font-size: 66px; }
  .process-grid h3 { margin-top: 20px; }
  .expertise-section { padding-block: 76px; }
  .expertise-card { padding: 20px; }
  .consultation-benefits h2 { text-align: left; }
  .consultation-benefits-grid { grid-template-columns: 1fr; gap: 42px; margin-top: 46px; }
  .consultation-benefit { max-width: none; }
  .consultation-benefit h3 { margin-top: 18px; }
  .references-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .reference-slide { grid-template-rows: 280px auto; }
  .reference-slide > img { height: 280px; }
  .reference-copy { padding: 32px 26px 38px; }
  .reference-copy h3 { font-size: 29px; }
  .contact-section { padding-block: 74px; }
  .contact-heading { margin-bottom: 44px; }
  .contact-form { padding: 34px 22px 40px; }
  .form-grid { grid-template-columns: 1fr; gap: 22px; }
  .full-field { grid-column: auto; }
  .faq-section { padding-bottom: 74px; }
  .faq-shell > h2 { text-align: left; }
  .faq-item summary { font-size: 15px; }
  .site-footer { padding-block: 32px; }
  .footer-inner { display: grid; gap: 12px; }
  .footer-brand { margin-bottom: 10px; }
}
