:root {
  --brand-purple: #4a287e;
  --brand-purple-hover: #3b1f66;
  --brand-green: #075b42;
  --brand-green-hover: #054734;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --emerald-400: #34d399;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  margin: 0;
  background-color: var(--slate-50);
  color: var(--slate-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow-x: hidden;
}

::selection {
  background-color: var(--brand-purple);
  color: #ffffff;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Topografinių linijų fonas */
.bg-topo-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -20;
  overflow: hidden;
}

.bg-topo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.topo-contour {
  fill: none;
  stroke: var(--slate-500);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.22;
}

.topo-contour-bold {
  fill: none;
  stroke: var(--slate-600);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.32;
}

/* Pagrindinis turinys */
.page-main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.card {
  width: 100%;
  max-width: 56rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 50px -12px rgba(203, 213, 225, 0.4);
  padding: 2rem;
  text-align: center;
  transition: all 200ms ease;
}

/* Logotipas */
.logo-wrap {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-inner {
  width: 100%;
  max-width: 700px;
  display: flex;
  justify-content: center;
  padding: 0.25rem 0.5rem;
}

.logo-img {
  width: 100%;
  max-height: 10rem;
  height: auto;
  object-fit: contain;
  display: block;
}

.logo-svg {
  width: 100%;
  height: auto;
  max-width: 700px;
  transition: transform 300ms ease;
}

.logo-svg:hover {
  transform: scale(1.01);
}

/* Antraštės */
.headline {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}

.subheadline {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--slate-500);
}

/* Kontaktų kortelės */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  text-align: left;
  max-width: 42rem;
  margin: 0 auto;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: var(--slate-50);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.contact-card:hover {
  background-color: rgba(241, 245, 249, 0.9);
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--slate-500);
  display: block;
  line-height: 1.25;
}

.icon-btn {
  padding: 0.625rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 200ms ease;
}

.icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 200ms ease;
}

.icon-btn:hover {
  transform: scale(1.1);
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn--purple {
  background-color: rgba(74, 40, 126, 0.1);
  color: var(--brand-purple);
}

.icon-btn--purple:hover {
  background-color: var(--brand-purple);
  color: #ffffff;
}

.contact-card:hover .icon-btn--purple svg {
  transform: rotate(12deg);
}

.icon-btn--green {
  background-color: rgba(7, 91, 66, 0.1);
  color: var(--brand-green);
}

.icon-btn--green:hover {
  background-color: var(--brand-green);
  color: #ffffff;
}

.contact-card:hover .icon-btn--green svg {
  transform: translateY(-2px);
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.contact-link {
  font-weight: 600;
  color: var(--slate-900);
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 150ms ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-link--purple:hover {
  color: var(--brand-purple);
}

.contact-link--green:hover {
  color: var(--brand-green);
}

.icon-btn:focus-visible,
.contact-link:focus-visible,
.copy-btn:focus-visible {
  outline: 2px solid var(--brand-purple);
  outline-offset: 2px;
  border-radius: 0.375rem;
}

.icon-btn--green:focus-visible,
.contact-link--green:focus-visible {
  outline-color: var(--brand-green);
}

.copy-btn {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  color: var(--slate-400);
  border-radius: 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 150ms ease, background-color 150ms ease;
}

.copy-btn:hover {
  color: var(--slate-700);
  background-color: #ffffff;
}

.copy-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Pranešimas (Toast) */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 0.75rem);
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
  z-index: 50;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  background-color: var(--slate-900);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast svg {
  width: 1rem;
  height: 1rem;
  color: var(--emerald-400);
  flex-shrink: 0;
}

/* Poraštė */
.page-footer {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--slate-600);
}

.page-footer p {
  margin: 0;
}

/* Prisitaikantis dizainas (Responsive breakpoints) */
@media (min-width: 640px) {
  .page-main {
    padding: 4rem 1.5rem;
  }

  .card {
    padding: 3.5rem;
  }

  .logo-inner,
  .logo-svg {
    max-width: 760px;
  }

  .logo-img {
    max-height: 13rem;
  }

  .headline {
    font-size: 1.5rem;
  }

  .subheadline {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
  }

  .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-link {
    font-size: 1.125rem;
  }

  .toast {
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .card {
    padding: 4rem;
  }

  .logo-img {
    max-height: 15rem;
  }

  .headline {
    font-size: 1.875rem;
  }

  .subheadline {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .headline {
    font-size: 2.25rem;
  }
}
