:root {
  --yellow: #ffd000;
  --yellow-hover: #e8be00;
  --blue: #003b78;
  --blue-2: #07599e;
  --dark-blue: #071a33;
  --ink: #101828;
  --muted: #667085;
  --white: #ffffff;
  --soft: #f5f8fc;
  --line: rgba(16, 24, 40, 0.1);
  --glass: rgba(255, 255, 255, 0.82);
  --blue-gradient: linear-gradient(140deg, #061a34 0%, #003b78 58%, #07599e 100%);
  --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 18px 44px rgba(16, 24, 40, 0.12);
  --shadow-lg: 0 28px 70px rgba(7, 26, 51, 0.2);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 240ms var(--ease);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 104px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 208, 0, 0.08), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid rgba(255, 208, 0, 0.68);
  outline-offset: 4px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);
  padding: 0 clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    url("../fejlec-3200x300.jpg") center / cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 36px rgba(7, 26, 51, 0.12);
  backdrop-filter: blur(18px) saturate(150%);
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  width: clamp(168px, 16vw, 220px);
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.55vw, 28px);
  flex: 1 1 auto;
  font-weight: 750;
  font-size: 15px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #172033;
  white-space: nowrap;
  transition: color var(--transition), transform var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: calc(100% + 10px);
  height: 3px;
  border-radius: 999px;
  background: var(--yellow);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 320ms var(--ease-soft);
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
}

.nav a:hover::after,
.nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 0 0 auto;
}

.phone,
.btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateY(0);
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition);
}

.phone {
  color: #172033;
}

.phone:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.btn {
  padding: 13px 23px;
  border: 1px solid rgba(255, 208, 0, 0.72);
  background: linear-gradient(180deg, #ffe36a 0%, var(--yellow) 100%);
  color: #121212;
  box-shadow: 0 12px 28px rgba(255, 208, 0, 0.26);
  cursor: pointer;
}

.btn:hover {
  background: linear-gradient(180deg, #ffdf48 0%, var(--yellow-hover) 100%);
  box-shadow: 0 16px 34px rgba(255, 208, 0, 0.32);
  transform: translateY(-2px);
}

.btn:active,
.ghost-btn:active,
.phone:active {
  transform: translateY(0);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}

.btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.hamburger-box,
.hamburger-inner {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--dark-blue);
  transition: transform 220ms var(--ease), opacity 180ms ease, top 220ms var(--ease);
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
}

.hamburger-inner::before {
  top: -7px;
}

.hamburger-inner::after {
  top: 7px;
}

body[data-nav-open="true"] .hamburger-inner {
  transform: rotate(45deg);
}

body[data-nav-open="true"] .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

body[data-nav-open="true"] .hamburger-inner::after {
  top: 0;
  transform: rotate(-90deg);
}

.hero {
  position: relative;
  min-height: clamp(580px, 72vh, 740px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(3, 14, 28, 0.92) 0%, rgba(3, 22, 43, 0.72) 45%, rgba(3, 22, 43, 0.28) 100%),
    url("../hatterkep.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 208, 0, 0.22), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 46%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, rgba(245, 248, 252, 0.96));
  pointer-events: none;
}

.hero-inner {
  width: min(100%, 1400px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.65fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(76px, 10vw, 128px) clamp(20px, 5vw, 72px) clamp(132px, 15vw, 172px);
}

.hero-content {
  max-width: 760px;
  animation: heroIn 780ms var(--ease-soft) both;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  margin-top: 8px;
  color: var(--yellow);
}

.hero p {
  max-width: 660px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ghost-btn {
  padding: 12px 23px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark-blue);
  transform: translateY(-2px);
}

.ghost-btn .btn-icon img {
  filter: brightness(0) invert(1);
}

.ghost-btn:hover .btn-icon img {
  filter: none;
}

.hero-image-holder {
  min-height: 280px;
}

.benefits-wrap {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 40px), 1240px);
  margin: -76px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.benefit {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-height: 154px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--blue-gradient);
  box-shadow: var(--shadow-lg);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}

.benefit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 42%);
  opacity: 0.72;
  pointer-events: none;
}

.benefit:hover {
  border-color: rgba(255, 208, 0, 0.32);
  box-shadow: 0 30px 70px rgba(7, 26, 51, 0.24);
  transform: translateY(-6px);
}

.benefit .icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.benefit .icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(77%) sepia(86%) saturate(1268%) hue-rotate(359deg) brightness(103%) contrast(103%);
}

.benefit div:last-child {
  position: relative;
}

.benefit h3 {
  margin-bottom: 6px;
  color: var(--white);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.25;
  font-weight: 800;
}

.benefit p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.section {
  padding: 96px clamp(20px, 5vw, 72px);
  background: var(--white);
}

.section-label {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.section h2 {
  color: var(--dark-blue);
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0;
}

.underline {
  width: 54px;
  height: 4px;
  margin: 18px 0 32px;
  border-radius: 999px;
  background: var(--yellow);
}

.service-layout,
.detail-layout,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

.service-intro p,
.detail-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.cards,
.price-grid,
.spec-grid {
  display: grid;
  gap: 20px;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card,
.price-card,
.service-list,
.spec-item,
form {
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.card {
  padding: 34px 28px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}

.card:hover {
  border-color: rgba(0, 59, 120, 0.16);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.card-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--blue-gradient);
}

.card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--dark-blue);
  font-size: 22px;
  line-height: 1.25;
}

.card p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15px;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.more img {
  width: 14px;
  height: 14px;
  transition: transform 220ms var(--ease);
}

.card:hover .more img {
  transform: translateX(4px);
}

.detail-section {
  background: var(--soft);
}

.detail-layout {
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.detail-photo {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.service-list {
  display: grid;
  gap: 14px;
  padding: 30px;
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 16px;
}

.service-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
}

.spec-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 32px;
}

.spec-item {
  padding: 20px;
  border-left: 4px solid var(--blue);
}

.spec-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.spec-item strong {
  color: var(--dark-blue);
  font-size: 20px;
  font-weight: 900;
}

.price-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 40px;
}

.price-card {
  padding: 38px 30px;
  border-top: 6px solid var(--yellow);
  text-align: center;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.price-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.price-card strong {
  display: block;
  margin: 16px 0;
  color: var(--blue);
  font-size: 36px;
  font-weight: 900;
}

form {
  padding: 36px;
  box-shadow: var(--shadow-md);
}

input,
select,
textarea {
  width: 100%;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 59, 120, 0.1);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

form .btn {
  width: 100%;
  padding: 16px;
}

.contact {
  background: var(--blue-gradient);
  color: var(--white);
}

.service-map {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

#serviceAreaMap {
  width: 100%;
  height: 350px;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 260ms ease;
}

.product-modal.is-open {
  opacity: 1;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.74);
  backdrop-filter: blur(8px);
}

.product-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98);
  transition: transform 300ms var(--ease-soft);
}

.product-modal.is-open .product-modal-panel {
  transform: translateY(0) scale(1);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms var(--ease-soft), transform 680ms var(--ease-soft);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.benefit:nth-child(2)[data-reveal] {
  transition-delay: 90ms;
}

.benefit:nth-child(3)[data-reveal] {
  transition-delay: 180ms;
}

footer {
  margin-top: 80px;
  padding: 38px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #070b12;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 1240px);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--yellow);
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1360px) {
  .header-actions .phone {
    display: none;
  }
}

@media (max-width: 1180px) {
  html {
    scroll-padding-top: 88px;
  }

  .topbar {
    min-height: 84px;
  }

  .menu-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-actions {
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    left: clamp(16px, 5vw, 42px);
    right: clamp(16px, 5vw, 42px);
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 220ms ease, transform 260ms var(--ease), visibility 220ms ease;
    backdrop-filter: blur(18px);
  }

  body[data-nav-open="true"] .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav a {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 8px;
  }

  .nav a::after {
    display: none;
  }

  .nav a.active,
  .nav a:hover {
    background: var(--soft);
  }

  .hero {
    min-height: auto;
    background-position: 42% center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 84px;
    text-align: center;
  }

  .hero-content,
  .hero p {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image-holder {
    display: none;
  }

  .benefits-wrap {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .service-layout,
  .detail-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 78px;
    padding-inline: 14px;
    gap: 10px;
  }

  .logo img {
    width: clamp(146px, 43vw, 172px);
  }

  .header-actions .btn {
    min-height: 42px;
    padding: 10px 13px;
    font-size: 12px;
  }

  .header-actions .btn .btn-icon {
    display: none;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(3, 14, 28, 0.9) 0%, rgba(3, 22, 43, 0.78) 62%, rgba(3, 22, 43, 0.52) 100%),
      url("../hatterkep.jpg") center / cover no-repeat;
  }

  .hero-inner {
    padding: 72px 18px 126px;
  }

  .hero h1 {
    font-size: clamp(34px, 11.2vw, 48px);
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }

  .hero-actions .btn,
  .hero-actions .ghost-btn {
    width: 100%;
  }

  .benefits-wrap {
    width: calc(100% - 28px);
    margin-top: -60px;
    gap: 14px;
  }

  .benefit {
    min-height: 0;
    padding: 22px;
  }

  .section {
    padding: 72px 18px;
  }

  form {
    padding: 24px;
  }

  footer {
    margin-top: 56px;
  }
}

@media (max-width: 420px) {
  .header-actions .btn {
    max-width: 126px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero h1 {
    font-size: 33px;
  }

  .benefit {
    gap: 14px;
  }

  .benefit .icon {
    width: 42px;
    height: 42px;
  }
}
