:root {
  --maroon: #8f1823;
  --maroon-dark: #6f111a;
  --charcoal: #292a2f;
  --text: #202126;
  --line: #cfcfd2;
  --soft-shadow: 0 12px 30px rgba(20, 21, 25, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

.site-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 38px;
}

.hero {
  text-align: center;
  padding: 0 0 34px;
}

.logo {
  width: min(610px, 92vw);
  display: block;
  margin: 0 auto 32px;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.08));
}

h1 {
  margin: 0;
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5.1vw, 4.15rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-shadow: 0 3px 5px rgba(0,0,0,.13);
}

.accent-line {
  width: 108px;
  height: 3px;
  background: var(--maroon);
  margin: 34px auto 34px;
}

.intro {
  max-width: 890px;
  margin: 0 auto;
  color: #202126;
  font-size: clamp(1.1rem, 2.2vw, 1.52rem);
  line-height: 1.65;
}

.section { padding: 28px 0; }

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  margin: 0 0 34px;
}

.section-heading span {
  height: 1px;
  background: var(--line);
}

h2 {
  margin: 0;
  color: var(--maroon);
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 800;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.service-item {
  min-height: 172px;
  padding: 10px 18px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-item:not(:nth-child(4n))::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--line);
}

.service-item svg,
.publication-item svg,
.mail-icon svg {
  color: var(--maroon);
  width: 64px;
  height: 64px;
  margin: 0 0 18px;
  fill: currentColor;
}

.service-item h3 {
  margin: 0;
  color: #18191d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 2.1vw, 1.48rem);
  line-height: 1.22;
  font-weight: 700;
}

.publications { padding-top: 34px; }

.publication-grid {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.publication-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  min-height: 118px;
  padding: 0 32px;
  position: relative;
}

.publication-item:first-child::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  right: 0;
  width: 1px;
  background: var(--line);
}

.publication-item svg {
  flex: 0 0 64px;
  margin: 0;
  fill: none;
}

.publication-item p {
  margin: 0;
  color: #18191d;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.18rem, 2.35vw, 1.55rem);
  line-height: 1.18;
}

.contact { text-align: center; padding-bottom: 42px; }

.mail-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--soft-shadow);
}

.mail-icon svg {
  width: 42px;
  height: 42px;
  margin: 0;
  color: #fff;
  fill: none;
}

.email {
  margin: 0;
  color: #111216;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  word-break: break-word;
}

.bottom-bar {
  height: 74px;
  background: linear-gradient(115deg, var(--maroon-dark) 0%, var(--maroon) 34%, var(--charcoal) 34.2%, #202126 100%);
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item:not(:nth-child(4n))::after { display: none; }
  .service-item:nth-child(odd)::after {
    display: block;
    content: "";
    position: absolute;
    right: 0;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: var(--line);
  }
}

@media (max-width: 640px) {
  .site-page {
    width: min(100% - 30px, 1120px);
    padding-top: 28px;
  }
  .logo { margin-bottom: 24px; }
  .accent-line { margin: 24px auto; }
  .section-heading { gap: 14px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-item { min-height: 136px; }
  .service-item::after { display: none !important; }
  .publication-grid { grid-template-columns: 1fr; }
  .publication-item { padding: 20px 0; }
  .publication-item:first-child::after {
    top: auto;
    bottom: 0;
    left: 18%;
    right: 18%;
    width: auto;
    height: 1px;
  }
  .bottom-bar { height: 54px; }
}
