:root {
  --navy: #1a3e66;
  --navy-dark: #12304f;
  --text: #2a3847;
  --muted: #6b7b8c;
  --rule: #dfe5ec;
  --link: #2d6cb3;
  --accent-red: #d94a2b;

  --tile-orange: #e6762a;
  --tile-orange-2: #d9651a;
  --tile-gold:   #c08a1e;
  --tile-gold-2: #a87612;
  --tile-teal:   #2d6f7a;
  --tile-teal-2: #1f5962;
  --tile-blue:   #1f5fa8;
  --tile-blue-2: #154785;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* --- Header --- */
.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.brand img { height: 52px; width: auto; display: block; }

h1.portalas {
  text-align: center;
  font-size: 68px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 2px;
  margin: 6px 0 6px;
  line-height: 1;
}
.subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 40px;
}

/* --- Tiles --- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
  perspective: 1200px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(20, 40, 70, 0.12);
  transform-origin: center;
  transition: transform 280ms cubic-bezier(.2,.8,.2,1),
              box-shadow 280ms ease,
              z-index 0s linear 280ms;
  will-change: transform;
  isolation: isolate;
}

.tile:hover,
.tile:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 16px 36px rgba(15, 30, 55, 0.28);
  z-index: 5;
  transition: transform 280ms cubic-bezier(.2,.8,.2,1),
              box-shadow 280ms ease,
              z-index 0s linear 0s;
  outline: none;
}

.tile .image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #2a3847;
  transition: transform 400ms cubic-bezier(.2,.8,.2,1);
  flex: 0 0 auto;
}
.tile:hover .image { transform: scale(1.04); }

.tile .body {
  padding: 20px 20px 26px;
  background: var(--tile-bg, var(--navy));
  flex: 1 1 auto;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.tile .body::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: rgba(0,0,0,0.15);
}

.tile h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
}
.tile p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

/* Per-tile colors */
.tile.orange .body { --tile-bg: var(--tile-orange); background: linear-gradient(180deg, var(--tile-orange) 0%, var(--tile-orange-2) 100%); }
.tile.gold   .body { --tile-bg: var(--tile-gold);   background: linear-gradient(180deg, var(--tile-gold) 0%, var(--tile-gold-2) 100%); }
.tile.teal   .body { --tile-bg: var(--tile-teal);   background: linear-gradient(180deg, var(--tile-teal) 0%, var(--tile-teal-2) 100%); }
.tile.blue   .body { --tile-bg: var(--tile-blue);   background: linear-gradient(180deg, var(--tile-blue) 0%, var(--tile-blue-2) 100%); }

/* --- Divider --- */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 28px;
}
.divider .line {
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.divider .dot {
  width: 18px; height: 18px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

/* --- Info blocks --- */
section.info { margin-bottom: 36px; }
section.info h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent-red);
}
section.info h3.neutral { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 15px; }

section.info .sep {
  height: 1px;
  background: var(--rule);
  margin: 8px 0 14px;
}

section.info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
section.info a {
  color: var(--link);
  text-decoration: none;
}
section.info a:hover { text-decoration: underline; }
section.info .muted { color: var(--muted); font-size: 13px; }

section.info .contacts { gap: 10px; }
section.info .contacts li { color: var(--text); font-size: 14.5px; }
section.info .contact-note {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 14px;
  max-width: 900px;
  line-height: 1.55;
}

/* --- Site footer bar --- */
.sitefoot {
  background: #eeeeee;
  border-top: 1px solid #e0e0e0;
  margin-top: 32px;
}
.sitefoot-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 13px;
  color: #4a5663;
}
.sitefoot .copy-mark {
  display: inline-block;
  width: 16px; height: 16px;
  border: 1px solid #b8c0c8;
  border-radius: 50%;
  text-align: center;
  line-height: 14px;
  font-size: 10px;
  margin-right: 8px;
  color: #6b7b8c;
  vertical-align: -2px;
}

/* --- Responsive --- */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  h1.portalas { font-size: 52px; }
  .tile .body { min-height: 180px; }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  h1.portalas { font-size: 42px; letter-spacing: 1px; }
  .wrap { padding: 28px 16px 40px; }
}
