:root {
  --oif-black: #000000;
  --oif-red: #9A1915;
  --oif-red-bright: #CA171F;
  --oif-red-dark: #5F2D2B;
  --oif-text: #393E42;
  --oif-muted: #606165;
  --oif-border: #D0CBB9;
  --oif-surface: #FFFFFF;
  --oif-background: #F6F1E6;
  --oif-background-warm: #EDE3CD;
  --oif-icon-muted: #49647E;
  --oif-success: #3EA63F;
  --oif-error: #E53034;
  --oif-warning: #F59B31;
  --oif-red-soft: #FFE7EB;
  --oif-blue-soft: #E4EAF1;
  --oif-cream-deep: #AFA595;
  --oif-gray-soft: #C3C1C4;
  --oif-mein-oif: #807567;
  --shadow-soft: 0 10px 28px rgba(57, 62, 66, 0.1);
  --shadow-lifted: 0 18px 40px rgba(57, 62, 66, 0.16);
  --radius-card: 16px;
  --header-height: 64px;
  --focus-ring: 0 0 0 4px rgba(154, 25, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--oif-background);
  color: var(--oif-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(237, 227, 205, 0.8), transparent 34rem),
    linear-gradient(180deg, var(--oif-background) 0%, #FBF8F0 52%, var(--oif-background) 100%);
}

a {
  color: inherit;
}

.site-header {
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(175, 165, 149, 0.42);
  box-shadow: 0 2px 12px rgba(57, 62, 66, 0.05);
}

.header-inner {
  width: min(100%, 1120px);
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  margin: 0;
  color: var(--oif-red);
  font-size: clamp(1.05rem, 1vw + 0.8rem, 1.35rem);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.back-link {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(154, 25, 21, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--oif-red);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  border-color: rgba(154, 25, 21, 0.42);
  background: var(--oif-surface);
}

.back-link:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
}

main {
  width: min(100%, 1120px);
  flex: 1;
  margin: 0 auto;
  padding: 48px 32px 0;
  display: flex;
  flex-direction: column;
}

.intro {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  align-items: start;
  column-gap: 22px;
  margin-bottom: 28px;
}

.intro::before {
  content: "";
  width: 6px;
  height: 66px;
  margin-top: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--oif-red-bright), var(--oif-red));
}

.intro h1 {
  margin: 0 0 4px;
  color: var(--oif-red);
  font-size: clamp(1.75rem, 2.8vw, 2.55rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.intro p {
  margin: 0;
  color: var(--oif-text);
  font-size: clamp(1rem, 0.35vw + 0.9rem, 1.12rem);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}

.services--centered {
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
}

.service-card {
  min-height: 286px;
  padding: 30px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(175, 165, 149, 0.7);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lifted);
}

.service-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--oif-blue-soft);
  color: var(--oif-icon-muted);
}


.service-icon i {
  font-size: 2.15rem;
  line-height: 1;
}

.service-icon svg {
  width: 38px;
  height: 38px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.service-card h2 {
  width: 100%;
  margin: 0;
  color: var(--oif-text);
  font-size: clamp(1.05rem, 0.8vw + 0.86rem, 1.28rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.service-divider {
  width: min(178px, 84%);
  height: 1px;
  margin: 15px 0 13px;
  background: rgba(175, 165, 149, 0.65);
}

.service-card p {
  max-width: 24ch;
  min-height: 48px;
  margin: 0 0 20px;
  color: var(--oif-black);
  font-size: 0.95rem;
  line-height: 1.42;
}

.service-actions {
  width: 100%;
  margin-top: auto;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.service-action {
  width: min(100%, 190px);
  min-height: 44px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--oif-red-bright), #B00009);
  box-shadow: 0 6px 14px rgba(154, 25, 21, 0.22);
  color: var(--oif-surface);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-action:hover {
  background: linear-gradient(180deg, #DA1E26, var(--oif-red));
  box-shadow: 0 9px 20px rgba(154, 25, 21, 0.28);
  transform: translateY(-1px);
}

.service-action:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring), 0 8px 18px rgba(154, 25, 21, 0.24);
}

.service-card:focus-within {
  border-color: var(--oif-red);
  box-shadow: var(--focus-ring), var(--shadow-soft);
}

.support-note {
  margin-top: auto;
  padding: 20px 0 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(175, 165, 149, 0.5);
  color: var(--oif-text);
  font-size: 0.95rem;
}

.support-note i,
.support-note svg {
  width: 23px;
  height: 23px;
  color: var(--oif-red-bright);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.support-note svg {
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

@media (max-width: 959px) {
  .header-inner {
    padding-inline: 28px;
  }

  main {
    padding: 36px 28px 0;
  }

  .intro {
    column-gap: 17px;
    margin-bottom: 22px;
  }

  .intro::before {
    height: 58px;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .services--centered {
    grid-template-columns: repeat(2, minmax(0, 340px));
  }

  .service-card {
    min-height: 242px;
    padding: 24px 22px 22px;
  }

  .service-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 15px;
  }

  .service-icon i {
    font-size: 1.95rem;
  }

  .service-icon svg {
    width: 34px;
    height: 34px;
  }

  .service-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 639px) {
  .header-inner {
    min-height: 58px;
    padding-inline: 18px;
    gap: 12px;
  }

  .brand {
    max-width: 190px;
    white-space: normal;
    line-height: 1.15;
  }

  main {
    padding: 32px 18px 0;
  }

  .intro {
    grid-template-columns: 6px minmax(0, 1fr);
    column-gap: 14px;
  }

  .intro::before {
    width: 5px;
    height: 78px;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services--centered {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 26px 22px 22px;
  }

  .service-card p {
    min-height: auto;
  }

  .support-note {
    align-items: flex-start;
    padding-bottom: 24px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
