:root {
  --bg-top: #ffffff;
  --bg-bottom: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-border: rgba(98, 88, 70, 0.2);
  --text-main: #2f2a22;
  --text-soft: #757575;
  --focus-ring: #8d7f67;
  --shadow-soft: 0 10px 28px rgba(60, 52, 40, 0.08);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "EB Garamond", serif;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--text-main);
}

.page-shell {
  min-height: 100svh;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1rem, 5vw, 2rem) clamp(1rem, 4vw, 2.5rem) 1.4rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: clamp(1.3rem, 2vh, 3rem);
}

.brand-header {
  margin-top: clamp(0.3rem, 2vh, 1rem);
  text-align: center;
}

.brand-logo {
  display: block;
  width: clamp(200px, 22vw, 300px);
  height: auto;
  margin: 0 auto;
}

.brand-name {
  margin: 0.55rem 0 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.main-content {
  width: 100%;
  display: grid;
  align-items: center;
}

.services {
  width: 100%;
}

.service-grid {
  list-style: none;
  width: min(100%, 1050px);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.25rem);
}

.service-card {
  min-height: 232px;
  /*border: 1px solid var(--surface-border);*/
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.5rem;
  padding: 1.2rem 1rem;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(2px);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.service-card__icon {
  display: block;
  width: clamp(120px, 42vw, 180px);
  height: auto;
}

.service-card__title {
  margin: 0.05rem 0 0;
  font-size: clamp(1.62rem, 2.1vw, 1.95rem);
  font-weight: 400;
}

.service-card__subtitle {
  margin: 0;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--text-soft);
}

.service-card--active:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-soft);
}

.service-card--active:focus-visible {
  transform: translateY(-3px);
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.service-card--disabled {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.page-footer {
  width: 100%;
  text-align: center;
}

.contact-line {
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.3rem);
}

.contact-line a {
  color: inherit;
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.contact-separator {
  margin: 0 0.5ch;
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    gap: 1rem;
  }

  .service-card {
    min-height: 190px;
    border-radius: 16px;
    padding: 0.9rem;
  }
}
