/* ==========================================================================
   Elektroinstallateur Wien — Gladfix-inspired landing
   ========================================================================== */

:root {
  --navy: #07205d;
  --navy-deep: #04153f;
  --yellow: #ffdf3c;
  --yellow-d: #f5cf1a;
  --blue2: #103ebc;
  --text: #010c33;
  --text-mute: #566165;
  --bg: #f6f6f6;
  --white: #ffffff;
  --border: rgba(5, 8, 8, 0.16);
  --shadow-sm: 0 4px 16px rgba(7, 32, 93, 0.06);
  --shadow: 0 12px 36px rgba(7, 32, 93, 0.1);
  --shadow-lg: 0 24px 60px rgba(7, 32, 93, 0.18);
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 50px;
  --container: 1200px;
  --ff-head: "DM Sans", "Inter", system-ui, -apple-system, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--blue2);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--ff-head);
  color: var(--navy);
  font-weight: 800;
  line-height: 1.2;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  position: relative;
  padding-top: 18px;
}
h2::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--yellow);
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 2px;
}
h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  margin: 40px 0 12px;
}
h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--blue2);
  margin: 28px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
p {
  margin: 0 0 18px;
  color: var(--text-mute);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 880px;
}

/* Lists (services / benefits / districts) */
ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}
ul li {
  position: relative;
  padding: 6px 0 6px 40px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.55;
  font-size: 1rem;
}
ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307205d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    center/14px no-repeat;
  box-shadow: 0 4px 10px rgba(255, 223, 60, 0.45);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--ff-head);
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  box-shadow: 0 6px 18px rgba(255, 223, 60, 0.35);
}
.btn:hover {
  background: var(--yellow-d);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 223, 60, 0.45);
}
.btn--lg {
  padding: 20px 38px;
  font-size: 1.08rem;
}
.btn--dark {
  background: var(--navy);
  color: var(--yellow);
  box-shadow: 0 6px 18px rgba(7, 32, 93, 0.35);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.btn--dark:hover {
  background: var(--navy-deep);
  color: var(--yellow);
  box-shadow: 0 10px 24px rgba(7, 32, 93, 0.45);
}
.btn--arrow::after {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffdf3c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='7 7 17 7 17 17'/></svg>")
    center/contain no-repeat;
  transition: transform 0.2s;
}
.btn--arrow:not(.btn--dark)::after {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307205d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='7 7 17 7 17 17'/></svg>")
    center/contain no-repeat;
}
.btn--arrow:hover::after {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header .logo img {
  height: 48px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  position: relative;
}
.nav a:hover {
  color: var(--blue2);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-tel {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: right;
}
.header-tel a {
  font-weight: 800;
  font-family: var(--ff-head);
  font-size: 1.05rem;
  color: var(--navy);
}
.header-tel small {
  font-size: 0.72rem;
  color: var(--text-mute);
}

/* Header CTA — angular cut top-right like Gladfix CONTACT button */
.site-header .btn {
  padding: 13px 22px;
  border-radius: 0;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  box-shadow: 0 4px 12px rgba(255, 223, 60, 0.28);
}

.burger {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--navy);
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
  transition: 0.2s;
}

/* ==========================================================================
   Hero — Gladfix-style: photo right, yellow card bottom-left
   ========================================================================== */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  min-height: clamp(620px, 58vw, 760px);
}

/* dark gradient: left half navy, fades over photo */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(7, 32, 93, 1) 0%,
    rgba(7, 32, 93, 1) 42%,
    rgba(7, 32, 93, 0.55) 65%,
    rgba(7, 32, 93, 0.15) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Photo fills the right side */
.hero-figure {
  position: absolute;
  right: 0;
  top: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

/* Hero card wrap — desktop: pulled up into hero via negative margin */
.hero-card-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(22px, 3.4vw, 44px);
  z-index: 5;
}

/* Yellow card */
.hero-card {
  background: var(--yellow);
  color: var(--navy);
  max-width: 620px;
  padding: 30px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
  clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%);
}
.hero-card h1 {
  color: var(--navy);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.12;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding-top: 0;
}
.hero-card h1::before { display: none; }
.hero-card h1 span { display: block; font-weight: 800; }
.hero-card p {
  color: rgba(1, 12, 51, 0.78);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 0 28px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: clamp(72px, 9vw, 110px) 0;
}
.section--bg {
  background: var(--bg);
}
.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy h2,
.section--navy h3 {
  color: var(--white);
}
.section--navy h4 {
  color: var(--yellow);
}
.section--navy p {
  color: rgba(255, 255, 255, 0.78);
}

/* Lists on dark section */
.section--navy ul li {
  color: rgba(255, 255, 255, 0.88);
  padding: 14px 18px 14px 60px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}
.section--navy ul li::before {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}
.section--navy ul {
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Section 1 first paragraph slightly larger */
.section h2 + p {
  font-size: 1.08rem;
  color: var(--text-mute);
  max-width: 760px;
  margin-bottom: 20px;
}
.section--navy h2 + p {
  color: rgba(255, 255, 255, 0.82);
}

/* Photo block */
.photo-block {
  margin: 32px 0 32px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-block::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--yellow);
  border-radius: var(--radius);
  top: -22px;
  left: -22px;
  z-index: 1;
}
.photo-block img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/2;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

/* Table */
.tbl-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  margin: 28px 0 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  min-width: 520px;
}
thead th {
  background: var(--navy);
  color: var(--yellow);
  text-align: left;
  padding: 16px 22px;
  font-family: var(--ff-head);
  font-weight: 700;
}
tbody td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
}
tbody tr:nth-child(even) td {
  background: #fafbfd;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody td:last-child {
  font-weight: 700;
  color: var(--blue2);
  white-space: nowrap;
}

/* FAQ items */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 14px 0;
  transition:
    box-shadow 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.faq-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--yellow);
  transform: translateY(-2px);
}
.faq-item h3 {
  margin: 0 0 10px;
  padding: 0;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
  position: relative;
  padding-left: 44px;
}
.faq-item h3::before {
  content: "?";
  position: absolute;
  left: 0;
  top: -3px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
}
.faq-item p {
  margin: 0;
  color: var(--text-mute);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* CTA block (final card) */
.cta-block {
  background: var(--navy);
  color: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 223, 60, 0.22),
    transparent
  );
  top: -120px;
  right: -120px;
}
.cta-block strong {
  display: block;
  color: var(--yellow);
  font-family: var(--ff-head);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.cta-block p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 22px;
  font-size: 1.05rem;
  max-width: 560px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-block .btn {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-grid h5 {
  color: var(--white);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 18px;
}
.footer-grid p,
.footer-grid li,
.footer-grid address {
  font-style: normal;
  line-height: 1.75;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-grid p {
  max-width: none;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  grid-template-columns: none;
}
.footer-grid ul li {
  margin-bottom: 10px;
  padding: 0;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
}
.footer-grid ul li::before {
  display: none;
}
.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
}
.footer-grid a:hover {
  color: var(--yellow);
}
.footer-logo img {
  height: 46px;
  width: auto;
  margin-bottom: 18px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-tel {
  color: var(--yellow);
  font-weight: 700;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-card {
    max-width: 480px;
    padding: 34px 36px;
  }
  .hero-figure {
    width: 56%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 880px) {
  .nav,
  .header-tel small {
    display: none;
  }
  .burger {
    display: block;
  }
  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 18px;
    box-shadow: var(--shadow);
  }
  .site-header.is-open .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  /* Hero mobile: фото на всю ширину */
  .hero {
    min-height: 0;
    background: none;
    overflow: visible;
  }
  .hero-bg { display: none; }
  .hero-figure {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: clamp(240px, 65vw, 380px);
    object-fit: cover;
    object-position: center top;
    display: block;
  }
  .hero::before { display: none; }

  /* Hero card wrap mobile: plain section matching other sections */
  .hero-card-wrap {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 0;
    margin-bottom: 0;
    padding: clamp(48px, 8vw, 72px) 0;
    background: var(--bg);
  }
  .hero-card {
    max-width: 100%;
    padding: 0;
    clip-path: none;
    background: transparent;
    box-shadow: none;
  }
  .hero-card h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.8rem);
    color: var(--navy);
    padding-top: 18px;
    position: relative;
  }
  .hero-card h1::before {
    display: block;
  }
  .hero-card p { color: var(--text-mute); }
  .hero-card .btn { display: none; }

  ul {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cta-block {
    padding: 36px 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }
  .header-tel {
    display: none;
  }
  .btn {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
  .faq-item {
    padding: 20px 20px;
  }
  .faq-item h3 {
    font-size: 1rem;
    padding-left: 40px;
  }
  .photo-block::before {
    display: none;
  }
  .cta-block strong {
    font-size: 1.35rem;
  }
}
