/* Services — bento layout, equal horizontals & equal verticals */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: #EEF1F7;
  color: #0B1D36;
  min-height: 100vh;
}

.header-placeholder {
  width: 100%;
  height: 5.625vw;
  min-height: 60px;
  background: #0B1D36;
}

.page-hero {
  width: 100%;
  height: 9.844vw;
  min-height: 120px;
  background: #0B1D36;
  display: flex;
  align-items: center;
}
.page-hero__inner {
  width: 100%;
  padding-left: 5.677vw;
  display: flex;
  align-items: flex-start;
  gap: 2.45vw;
}
.page-hero__back {
  width: 2.604vw;
  height: 2.604vw;
  min-width: 40px;
  min-height: 40px;
  background: rgba(29, 78, 144, 0.5);
  border-radius: 0.417vw;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
}
.page-hero__back:hover { background: rgba(29, 78, 144, 0.8); }
.page-hero__back svg { width: 2.083vw; height: 2.083vw; min-width: 28px; }
.page-hero__breadcrumb {
  font-weight: 500;
  font-size: 0.729vw;
  color: rgba(232, 240, 254, 0.7);
  margin-bottom: 0.6vw;
}
.page-hero__title {
  font-weight: 700;
  font-size: 2.5vw;
  color: #E8F0FE;
}
.page-hero__subtitle {
  font-weight: 500;
  font-size: 1.25vw;
  color: #E8F0FE;
  margin-top: 0.3vw;
}

.services-main {
  max-width: 78vw;
  margin: 0 auto;
  padding: 3.5vw 5vw 5vw;
}

/*
  Sketch layout (2 cols):
  [ H ] [ V ]     H = horizontal (short), V = vertical (tall = 2H + gap)
  [ H ] [   ]
  [ V ] [ H ]
  [   ] [ H ]

  Equal: all H same size, both V same size.
*/
.services-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(130px, 12.5vw);
  grid-auto-flow: dense;
  gap: 1.56vw;
  height: auto;
  min-height: 0;
}
}
@media (max-width: 640px) {
  .services-bento { grid-template-columns: 1fr; }
}

.svc-card {
  background: #FFFFFF;
  border: 1.5px solid #D0D8E6;
  border-radius: 0.75vw;
  padding: 1.8vw 2vw;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  min-height: 0;
  height: auto;
  box-shadow: 0 4px 18px rgba(11, 29, 54, 0.07), 0 1px 3px rgba(11, 29, 54, 0.04);
}

.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29,78,144,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(11, 29, 54, 0.14), 0 4px 12px rgba(29, 78, 144, 0.08);
  border-color: #1D4E90;
  z-index: 1;
}
.svc-card:hover::before { opacity: 1; }
.svc-card:active { transform: translateY(-1px); }

/* Positions matching sketch */
/* H */
/* V */
/* H */
/* V */
/* H */
/* H */

.svc-card__icon {
  margin-bottom: 0.8vw;
  width: 2.3vw;
  height: 2.3vw;
  min-width: 32px;
  min-height: 32px;
  flex-shrink: 0;
}
.svc-card__icon svg { width: 100%; height: 100%; }

.svc-card__title {
  font-weight: 700;
  font-size: 1.25vw;
  line-height: 1.3;
  color: #0B1D36;
  margin-bottom: 0.5vw;
  position: relative;
}

.svc-card__desc {
  font-weight: 400;
  font-size: 0.85vw;
  line-height: 1.4;
  color: rgba(11, 29, 54, 0.7);
  flex: 1;
  position: relative;
}

.svc-card__arrow {
  position: absolute;
  right: 1.4vw;
  bottom: 1.2vw;
  font-size: 1.4vw;
  color: #1D4E90;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s, transform 0.25s;
}
.svc-card:hover .svc-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ========== FOOTER (shared) ========== */
.footer {
  width: 100%;
  min-height: 7.344vw;
  background: #0B1D36;
  padding: 3vw 7.81vw 2.5vw;
  color: #E8F0FE;
}
.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
  gap: 2.5vw 3vw;
  align-items: start;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.8vw;
}
.footer__logo {
  width: 3.2vw;
  height: 3.2vw;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.footer__logo:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(232, 240, 254, 0.35);
}
.footer__logo:active { transform: scale(0.96); }
.footer__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.footer__tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.95vw;
  line-height: 1.4;
  color: rgba(232, 240, 254, 0.75);
  max-width: 18vw;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6vw 1.6vw;
  align-content: flex-start;
}
.footer__link {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1vw;
  line-height: 1.5;
  color: #E8F0FE;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer__link:hover { opacity: 0.75; }
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
}
.footer__contact {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1vw;
  line-height: 1.5;
  color: #E8F0FE;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer__contact:hover { opacity: 0.75; }
.footer__copyright {
  grid-column: 1 / -1;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.9vw;
  line-height: 1.4;
  color: rgba(232, 240, 254, 0.55);
  margin-top: 1vw;
  padding-top: 1.2vw;
  border-top: 1px solid rgba(232, 240, 254, 0.12);
}
@media (max-width: 1024px) {
  .footer { padding: 32px 24px 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .footer__tagline { font-size: 14px; max-width: none; }
  .footer__nav { gap: 12px 20px; }
  .footer__link, .footer__contact { font-size: 15px; }
  .footer__copyright { font-size: 13px; margin-top: 8px; padding-top: 16px; }
}

@media (max-width: 900px) {
  .page-hero { height: auto; padding: 16px 0; }
  .page-hero__title { font-size: 28px; }
  .page-hero__subtitle { font-size: 16px; }
  .services-bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    min-height: 0;
  }
  .svc-card[data-service] {
    grid-column: 1 !important;
    grid-row: auto !important;
    min-height: 140px;
  }
  .svc-card { padding: 20px; }
  .svc-card__title { font-size: 18px; }
  .svc-card__desc { font-size: 14px; }
  .svc-card__arrow { font-size: 20px; opacity: 1; transform: none; }
}

.svc-card__price {
  margin-top: auto;
  padding-top: 12px;
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1D4E90;
}


/* Bento sizes: H = short, V = tall (2 rows) — as in original sketch */
.svc-card--h {
  grid-row: span 1;
}
.svc-card--v {
  grid-row: span 2;
}
/* Full-width short strip — logical closer (e.g. VPS) */
.svc-card--wide {
  grid-column: 1 / -1;
  grid-row: span 1;
  min-height: 0;
  padding-top: 1.2vw;
  padding-bottom: 1.2vw;
  flex-direction: row;
  align-items: center;
  gap: 1.5vw;
}
.svc-card--wide .svc-card__icon {
  margin-bottom: 0;
}
.svc-card--wide .svc-card__title {
  margin-bottom: 0.2vw;
  flex: 0 0 auto;
  min-width: 28%;
}
.svc-card--wide .svc-card__desc {
  flex: 1;
  margin: 0;
}
.svc-card--wide .svc-card__price {
  flex-shrink: 0;
  font-weight: 600;
  color: #1D4E90;
  font-size: 0.95vw;
}
.svc-card--wide .svc-card__arrow {
  position: static;
  opacity: 0.5;
  transform: none;
}
.svc-card--wide:hover .svc-card__arrow {
  opacity: 1;
}

@media (max-width: 768px) {
  .services-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .svc-card--h,
  .svc-card--v,
  .svc-card--wide {
    grid-row: span 1;
    grid-column: 1;
    min-height: 160px;
  }
  .svc-card--wide {
    flex-direction: column;
    align-items: flex-start;
    min-height: 120px;
    padding: 18px 20px;
  }
  .svc-card--wide .svc-card__price { font-size: 15px; }
}

