:root {
  --ink: #112322;
  --ink-soft: #52615f;
  --forest: #102b2a;
  --forest-2: #173c39;
  --cream: #f4f1e9;
  --paper: #fbfaf6;
  --line: #dbe0da;
  --accent: #e4a11b;
  --accent-light: #f8c860;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(17, 35, 34, .09);
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

svg { display: block; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--forest);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand > span:last-child > span { color: var(--accent-light); }

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--forest);
  background: var(--accent-light);
  border-radius: 11px;
  transform: rotate(-4deg);
}

.brand-mark svg { width: 23px; height: 23px; }

nav { display: flex; align-items: center; gap: 32px; }

nav > a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

nav > a:hover { color: var(--white); }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: var(--forest);
  background: var(--white);
  border-radius: 10px;
}

.nav-phone:hover { color: var(--forest); background: var(--accent-light); }
.nav-phone svg { width: 17px; height: 17px; }

.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/elektrikar24-hero.webp");
  background-size: cover;
  background-position: center center;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 25, 25, .94) 0%, rgba(7, 25, 25, .84) 33%, rgba(7, 25, 25, .30) 62%, rgba(7, 25, 25, .06) 100%),
    linear-gradient(0deg, rgba(7, 25, 25, .42), transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 110px;
}

.hero-copy { width: min(660px, 60%); }

.eyebrow {
  margin: 0 0 19px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--accent-light);
}

.eyebrow > span {
  width: 30px;
  height: 2px;
  background: currentColor;
}

.eyebrow.dark { color: #a46700; }
.eyebrow.light { color: var(--accent-light); }

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  margin: 0;
  font-size: clamp(58px, 7.2vw, 104px);
  line-height: .98;
  letter-spacing: -.065em;
}

h1 span { color: var(--accent-light); }

.hero-subtitle {
  margin: 25px 0 14px;
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.03em;
}

.hero-text {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, .75);
  font-size: 17px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 21px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 11px;
  transition: transform .2s ease, background-color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button svg { width: 20px; height: 20px; }
.button-primary { color: var(--forest); background: var(--accent-light); }
.button-primary:hover { background: var(--white); }
.button-ghost { border-color: rgba(255, 255, 255, .33); background: rgba(16, 43, 42, .36); backdrop-filter: blur(8px); }
.button-ghost:hover { background: rgba(255, 255, 255, .14); }

.hero-note {
  margin: 19px 0 0;
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
}

.service-strip {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  background: rgba(11, 38, 37, .74);
  backdrop-filter: blur(14px);
}

.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.strip-grid > div {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 28px;
  border-left: 1px solid rgba(255, 255, 255, .13);
}

.strip-grid > div:last-child { border-right: 1px solid rgba(255, 255, 255, .13); }
.strip-grid strong { font-size: 15px; letter-spacing: -.01em; }
.strip-grid span { color: rgba(255, 255, 255, .56); font-size: 12px; }

.section { padding: 120px 0; }

.services {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(228, 161, 27, .13), transparent 27%),
    radial-gradient(circle at 8% 72%, rgba(16, 43, 42, .08), transparent 30%),
    linear-gradient(145deg, #e4e9e1 0%, #edf0e9 48%, #dce5dd 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    inset 0 -1px 0 rgba(16, 43, 42, .08);
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(16, 43, 42, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 43, 42, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.services > .container {
  position: relative;
  z-index: 1;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 52px;
}

.section-heading h2,
.why-us h2,
.contact h2 {
  margin: 0;
  font-size: clamp(38px, 4.7vw, 66px);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.section-heading > p { margin: 0 0 7px; color: var(--ink-soft); }

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  row-gap: 17px;
  align-items: center;
  padding: 30px;
  color: var(--white);
  background: var(--forest);
  border: 1px solid rgba(248, 200, 96, .14);
  border-radius: var(--radius);
  box-shadow:
    0 18px 42px rgba(17, 35, 34, .14),
    0 3px 8px rgba(17, 35, 34, .08);
  overflow: hidden;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  background: var(--forest-2);
  box-shadow:
    0 24px 56px rgba(17, 35, 34, .2),
    0 5px 12px rgba(17, 35, 34, .1);
}

.service-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -100px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(248, 200, 96, .16), transparent 67%);
  pointer-events: none;
}

.service-card-featured:first-child { background: var(--forest); border-color: rgba(248, 200, 96, .14); color: var(--white); }
.service-card-featured:first-child:hover { background: var(--forest-2); }

.service-icon {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--accent-light);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045)),
    var(--forest-2);
  border: 1px solid rgba(248, 200, 96, .18);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 8px 20px rgba(0, 0, 0, .1);
}

.service-icon::after {
  content: none;
}

.service-card-featured:first-child .service-icon { color: var(--accent-light); }
.service-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.service-icon .icon-accent { stroke: rgba(255, 255, 255, .88); }
.service-icon .icon-fill { fill: var(--accent-light); stroke: none; }

.service-card h3 {
  margin: 0;
  color: var(--accent-light);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.service-card p { grid-column: 1 / -1; align-self: start; margin: 0; color: rgba(255, 255, 255, .67); font-size: 14px; line-height: 1.7; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.services-grid .service-card { min-height: 225px; }
.service-card-wide { grid-column: span 2; min-height: auto !important; }

.why-us { color: var(--white); background: var(--forest); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.why-us h2 { max-width: 600px; }
.why-copy > p { margin: 4px 0 30px; color: rgba(255, 255, 255, .67); font-size: 18px; }
.why-copy ul { margin: 0; padding: 0; list-style: none; }
.why-copy li { display: flex; gap: 13px; padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, .13); }
.why-copy li span { color: var(--accent-light); font-weight: 900; }

.contact { background: var(--cream); }

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 70px;
  align-items: center;
  padding: 70px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.contact-panel > div:first-child > p:last-child { max-width: 660px; margin: 20px 0 0; color: var(--ink-soft); }
.contact-action { padding-left: 50px; border-left: 1px solid var(--line); }
.contact-action span, .contact-action small { display: block; color: var(--ink-soft); }
.contact-action span { font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-action a { display: inline-block; margin: 2px 0 5px; color: var(--forest); font-size: clamp(27px, 3vw, 40px); font-weight: 900; line-height: 1.2; letter-spacing: -.04em; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.contact-action small { font-size: 12px; }
.contact-action .contact-email {
  display: block;
  width: fit-content;
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0;
  text-underline-offset: 4px;
}

footer { padding: 70px 0 25px; color: rgba(255, 255, 255, .65); background: #0a201f; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.footer-brand { color: var(--white); }
.footer-grid > div:first-child > p { margin: 18px 0 0; }
.company-data { display: flex; flex-direction: column; gap: 4px; }
.company-data strong { margin-bottom: 8px; color: var(--white); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom a { color: var(--accent-light); font-weight: 800; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-cookie-button {
  padding: 0;
  color: rgba(255, 255, 255, .65);
  background: none;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-cookie-button:hover,
.footer-cookie-button:focus-visible { color: var(--white); }

.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: min(88vh, 760px);
  padding: 20px;
  overflow-y: auto;
  color: var(--ink);
  background: rgba(251, 250, 246, .98);
  border-top: 4px solid var(--accent);
  box-shadow: 0 -18px 60px rgba(7, 25, 25, .24);
  backdrop-filter: blur(14px);
}

.cookie-consent[hidden] { display: none; }

.cookie-consent__inner {
  width: min(100%, var(--container));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 42px;
  align-items: center;
  margin-inline: auto;
}

.cookie-consent__eyebrow {
  margin: 0 0 3px;
  color: #8b5700;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cookie-consent h2 {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.cookie-consent h2:focus { outline: none; }

.cookie-consent__copy > p:not(.cookie-consent__eyebrow, .cookie-consent__status) {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent__status {
  margin: 8px 0 0;
  color: var(--forest);
  font-size: 13px;
  font-weight: 750;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
}

.cookie-consent__actions button {
  min-height: 48px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--forest);
  border: 2px solid var(--forest);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.cookie-consent__actions button:hover {
  background: var(--forest-2);
  border-color: var(--forest-2);
  transform: translateY(-1px);
}

.cookie-consent__actions button:focus-visible,
.footer-cookie-button:focus-visible,
.cookie-consent summary:focus-visible,
.cookie-consent a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.cookie-consent__details {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
}

.cookie-consent__details summary {
  width: fit-content;
  padding-top: 13px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.cookie-consent__details-content {
  padding: 14px 0 6px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.cookie-consent__details-content h3 {
  margin: 19px 0 5px;
  color: var(--ink);
  font-size: 15px;
}

.cookie-consent__details-content h3:first-child { margin-top: 0; }
.cookie-consent__details-content p { margin: 0; }
.cookie-consent__details-content a { color: var(--forest); font-weight: 750; }

.cookie-consent__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 14px;
}

.cookie-consent__list > div {
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cookie-consent__list dt { color: var(--ink); font-weight: 800; }
.cookie-consent__list dd { margin: 4px 0 0; }

@media (max-width: 960px) {
  .hero { min-height: 820px; }
  .hero-copy { width: min(650px, 75%); }
  .hero-shade { background: linear-gradient(90deg, rgba(7, 25, 25, .94) 0%, rgba(7, 25, 25, .78) 50%, rgba(7, 25, 25, .15) 100%); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { gap: 60px; }
  .contact-panel { padding: 50px; gap: 40px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 72px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; }
  nav > a:not(.nav-phone) { display: none; }
  .nav-phone { padding: 9px 11px; font-size: 13px; }
  .hero { min-height: 940px; }
  .hero-media { background-position: 63% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(7, 25, 25, .95) 0%, rgba(7, 25, 25, .79) 75%, rgba(7, 25, 25, .55) 100%); }
  .hero-inner { align-items: flex-start; padding-top: 154px; padding-bottom: 200px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-subtitle { max-width: 430px; }
  .hero-text { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 370px; }
  .hero-note { max-width: 330px; line-height: 1.5; }
  .strip-grid { grid-template-columns: 1fr; padding: 14px 0; }
  .strip-grid > div { min-height: auto; padding: 5px 14px; border: 0; }
  .strip-grid > div:last-child { border: 0; }
  .strip-grid span { display: block; margin-top: 1px; }
  .section { padding: 82px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 35px; }
  .section-heading h2, .why-us h2, .contact h2 { font-size: clamp(36px, 10vw, 50px); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card-featured:first-child, .service-card-wide { grid-column: auto; }
  .service-card { padding: 25px; }
  .service-card-wide { display: block; }
  .why-grid { grid-template-columns: 1fr; gap: 44px; }
  .why-copy > p { font-size: 16px; }
  .contact-panel { grid-template-columns: 1fr; padding: 34px 25px; }
  .contact-action { padding: 30px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { align-items: flex-start; gap: 22px; }
  .footer-links { align-items: flex-end; flex-direction: column-reverse; gap: 8px; }
  .cookie-consent {
    padding: 13px 14px calc(13px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }
  .cookie-consent__inner { grid-template-columns: 1fr; gap: 10px; }
  .cookie-consent__eyebrow { margin-bottom: 1px; font-size: 10px; }
  .cookie-consent h2 { font-size: clamp(20px, 6.5vw, 24px); }
  .cookie-consent__copy > p:not(.cookie-consent__eyebrow, .cookie-consent__status) {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.45;
  }
  .cookie-consent__status { margin-top: 5px; font-size: 12px; }
  .cookie-consent__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cookie-consent__actions button { min-height: 44px; padding: 8px 11px; font-size: 13px; }
  .cookie-consent__details { grid-column: auto; }
  .cookie-consent__details summary { padding-top: 9px; font-size: 12px; }
  .cookie-consent__list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
