/* ============================================
   We Get IT - style przeniesione z epistic.net
   (BeTheme + betheme-child): czarny gradient,
   ciemne karty #161616, akcent #1E98AD, Poppins
   ============================================ */

:root {
  --color-accent: #1E98AD;
  --color-accent-light: #3bd7ff;
  --color-highlight: #FFC107;
  --color-violet: rgb(96, 17, 207);
  --color-bg: #000000;
  --color-bg-soft: #1A1A1A;
  --color-card: #161616;
  --color-card-alt: #1C1C1C;
  --color-card-hover: #242424;
  --color-bg-footer: #171733;
  --color-text: rgba(255, 255, 255, 0.7);
  --color-text-strong: #ffffff;
  --color-text-muted: #D1D1D1;
  --color-text-dim: #797E88;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-strong: rgba(255, 255, 255, 0.3);
  --gradient-page: linear-gradient(332deg, #000000 1%, #1A1A1A 90%);
  --gradient-card: linear-gradient(332deg, #000000 1%, rgba(255, 255, 255, 0.08) 90%);
  --gradient-text: linear-gradient(45deg, #2febdc, #eb413b, #ffa300, #e422eb);
  --gradient-line: linear-gradient(to right, #e68a09, #09dae6);
  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --container-max: 1240px;
  --header-height: 80px;
  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --transition: 0.5s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--gradient-page);
  background-color: var(--color-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-strong);
  line-height: 1.4;
  letter-spacing: 2px;
}

h1 { font-size: 32px; font-weight: 600; }
h2 { font-size: 28px; font-weight: 400; }
h3 { font-size: 18px; font-weight: 400; }
h4 { font-size: 16px; font-weight: 400; }

a {
  color: var(--color-text-strong);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--color-accent);
  color: #ffffff;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header (pływający, chowany przy przewijaniu) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 5px;
  transition: transform 0.4s ease, padding 0.4s ease;
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

.site-header.is-scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 30px;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 34px 0 rgba(0, 0, 0, 0.25);
}

.logo img {
  height: 44px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 10px 5px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #ffffff;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 2px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  background-color: var(--color-card-alt);
  border: 1px solid #363636;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Banery ---------- */
.page-hero,
.home-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Tło w osobnej warstwie, żeby hue-rotate nie zmieniał koloru tekstu */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #000;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-hero::before,
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.35) 100%);
}

.page-hero::after,
.home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
}

/* ---------- Page hero (wewnętrzne strony) ---------- */
.page-hero {
  padding: 200px 0 110px;
}

.page-hero h1 {
  font-size: 45px;
  font-weight: 600;
  letter-spacing: 2px;
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  margin-top: 18px;
  background: var(--gradient-line);
}

.page-hero .subtitle {
  max-width: 640px;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 300;
  color: var(--color-text-muted);
}

/* ---------- Home hero ---------- */
.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}

.home-hero .hero-bg {
  background-image: url("../img/background/index.jpg");
  background-position: center right;
}

.home-hero .container {
  position: relative;
}

.home-hero h1 {
  max-width: 820px;
  min-height: 2.8em;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 2px;
}

.text-type {
  background: var(--gradient-text);
  background-size: 400%;
  animation: text-gradient 15s ease infinite;
  padding: 5px 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typed-cursor {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-weight: 300;
}

@keyframes text-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Sekcje ---------- */
.section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-head h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 2px;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100px;
  height: 3px;
  transform: translateX(-50%);
  background: var(--gradient-line);
}

.section-head .subtitle {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--color-text-muted);
  font-size: 16px;
}

/* ---------- Usługi (karty jak tech-box / faq-card) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px;
  background: var(--gradient-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease-in-out, border-color 0.3s ease, box-shadow 0.3s ease-in-out;
}

.service-item:hover {
  transform: translateY(-10px);
  border-color: var(--color-border-strong);
  box-shadow: 0 0 25px 2px rgba(255, 255, 255, 0.15);
}

.service-item .icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: rgba(95, 95, 95, 0.1);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  font-size: 26px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.service-item:hover .icon {
  color: var(--color-highlight);
  background-color: rgba(255, 255, 255, 0.06);
}

.service-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ---------- Zespół ---------- */
.team-member {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 50px;
  padding: 40px;
  background: var(--gradient-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* Efekt 3D jak .imagewrapper na epistic.net */
.tilt {
  perspective: 1000px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.team-member img {
  width: 100%;
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease-out;
  transform-origin: center;
  will-change: transform;
}

.team-member h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 5px;
}

.team-member .role {
  color: var(--color-highlight);
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.team-member p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  background: #000000;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: var(--transition);
}

.social-links a:hover {
  background: #ffffff;
  color: #000000;
}

/* Umiejętności – sekcja .technology / .tech-box jak na epistic.net/about */
.team-member .skills-title {
  position: relative;
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.team-member .skills-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient-line);
}

.technology {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.tech-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100px;
  padding: 10px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.tech-box:hover {
  border-color: var(--color-border-strong);
}

.tech-box img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 0;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.tech-box:hover img {
  transform: translateY(0);
}

.team-member .tech-box p {
  color: var(--color-text-strong);
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-member .tech-box:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* Na urządzeniach dotykowych brak hovera – etykiety widoczne od razu */
@media (hover: none) {
  .tech-box img,
  .team-member .tech-box p {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Kontakt (układ z epistic.net/contactus) ---------- */
.contact-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 150px 0 80px;
}

/* Jak mcb-background-overlay na epistic: brightness(25%) + saturate(0%) */
.contact-intro-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: bottom center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(25%) saturate(0%);
}

.contact-intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
}

.contact-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pretitle {
  margin-bottom: 15px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-highlight);
}

.contact-intro-text h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.25;
  margin-bottom: 25px;
}

.contact-intro-text h1::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  margin-top: 20px;
  background: var(--gradient-line);
}

.contact-intro-text .lead {
  max-width: 520px;
  font-size: 18px;
  color: var(--color-text-muted);
}

/* Ramka jak kolumna formularza na epistic (border 1px, radius 10px) */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.icon-box {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.icon-box + .icon-box {
  padding-top: 25px;
  border-top: 1px solid var(--color-border);
}

/* column_icon_box_2 z epistic: 40px, okrągła biała obwódka */
.icon-circle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  transition: background 0.3s ease, color 0.3s ease;
}

.icon-box:hover .icon-circle {
  background: #ffffff;
  color: #000000;
}

.icon-box h3 {
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-highlight);
  margin-bottom: 6px;
}

.icon-box p {
  font-size: 17px;
  line-height: 1.8;
}

.icon-box a {
  color: #ffffff;
}

.icon-box a:hover {
  color: var(--color-accent);
}

.contact-offices {
  padding-top: 40px;
}

.contact-offices .contact-map {
  margin-top: 0;
}

/* ---------- Mapa lokalizacji ---------- */
.contact-map {
  display: grid;
  grid-template-columns: 1fr 300px;
  max-width: 1100px;
  margin: 50px auto 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-card);
}

.contact-map-canvas {
  height: 450px;
  background: var(--color-card);
}

.contact-map-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 25px;
  border-left: 1px solid var(--color-border);
  background: var(--gradient-page);
}

/* Tagi <map-location> jako klikalne karty adresów */
map-location {
  display: none;
}

.contact-map-list map-location {
  position: relative;
  display: block;
  padding: 18px 20px 18px 52px;
  color: var(--color-text-muted);
  line-height: 1.7;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.contact-map-list map-location::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 21px;
  width: 16px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 42'%3E%3Cpath d='M15 1C7.3 1 1 7.2 1 14.9 1 25.3 15 41 15 41s14-15.7 14-26.1C29 7.2 22.7 1 15 1z' fill='%23e53935'/%3E%3Ccircle cx='15' cy='15' r='5.5' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}

.contact-map-list map-location:hover,
.contact-map-list map-location:focus-visible {
  border-color: var(--color-border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(-4px);
  outline: none;
}

.contact-map-list map-location.active {
  border-color: #e53935;
  background: rgba(229, 57, 53, 0.1);
  color: #ffffff;
}

.map-pin {
  background: none;
  border: none;
}

.map-pin svg {
  display: block;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease;
  transform-origin: 50% 100%;
}

.map-pin:hover svg {
  transform: scale(1.15);
}

.contact-map .leaflet-popup-content-wrapper,
.contact-map .leaflet-popup-tip {
  background: var(--color-card);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 34px 0 rgba(0, 0, 0, 0.5);
}

.contact-map .leaflet-popup-content {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
}

.contact-map .leaflet-container a.leaflet-popup-close-button {
  color: var(--color-text-muted);
}

.contact-map .leaflet-bar a {
  background: var(--color-card-alt);
  color: #ffffff;
  border-bottom-color: var(--color-border);
}

.contact-map .leaflet-bar a:hover {
  background: var(--color-card-hover);
  color: var(--color-accent);
}

.contact-map .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-text-dim);
}

.contact-map .leaflet-control-attribution a {
  color: var(--color-text-muted);
}

/* ---------- Stopka ---------- */
.site-footer {
  background-color: var(--color-bg-footer);
  background-image: linear-gradient(145deg, rgba(0, 0, 0, 0.6) 1%, rgba(26, 26, 26, 0) 90%);
  padding: 70px 0 0;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 50px;
}

.footer-col .logo img {
  height: 40px;
  margin-bottom: 15px;
}

.footer-col h4 {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 20px;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--gradient-line);
}

.footer-col address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
  line-height: 2;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.lang-switch {
  display: flex;
  gap: 10px;
}

.lang-switch a {
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.lang-switch a.active,
.lang-switch a:hover {
  border-color: var(--color-border);
  background-color: rgba(255, 255, 255, 0.06);
}

.lang-switch img {
  width: 32px;
  height: auto;
  opacity: 0.45;
  transition: opacity var(--transition);
}

.lang-switch a:hover img,
.lang-switch a.active img,
.lang-switch img.active {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-dim);
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
}

.error-page .code {
  font-family: var(--font-heading);
  font-size: 180px;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-text);
  background-size: 400%;
  animation: text-gradient 15s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page h1 {
  font-size: 28px;
  margin: 10px 0 30px;
}

/* ---------- Przycisk (mfn-button) ---------- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #000000;
  border: 1px solid #ffffff;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: #ffffff;
  color: #000000;
}

/* ---------- Animacje wejścia (BeTheme animations) ---------- */
.js-anim [data-anim] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--anim-delay, 0s);
}

.js-anim [data-anim="fade-left"] {
  transform: translateX(-40px);
}

.js-anim [data-anim="fade-right"] {
  transform: translateX(40px);
}

.js-anim [data-anim].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js-anim [data-anim] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-member {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 20px;
  }

  .team-member .tilt {
    max-width: 320px;
    margin: 0 auto;
  }

  .social-links,
  .technology {
    justify-content: center;
  }

  .team-member .skills-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .technology {
    gap: 10px;
  }

  .tech-box {
    width: calc(50% - 5px);
    padding: 15px;
  }

  .header-inner {
    height: 70px;
    padding: 0 15px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #1b1b1b;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
  }

  .main-nav.open {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  .main-nav a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav li:last-child a {
    border-bottom: none;
  }

  .main-nav a::after {
    display: none;
  }

  .page-hero {
    padding: 150px 0 70px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .home-hero h1 {
    font-size: 30px;
  }

  .section {
    padding: 70px 0;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .service-item {
    padding: 20px;
  }

  .contact-intro {
    padding: 120px 0 50px;
  }

  .contact-card {
    padding: 25px 20px;
  }

  .contact-map {
    grid-template-columns: 1fr;
  }

  .contact-map-canvas {
    height: 320px;
  }

  .contact-map-list {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .error-page .code {
    font-size: 100px;
  }
}
