:root {
  --wine: #74192b;
  --wine-dark: #520d1c;
  --wine-bright: #8b253c;
  --wine-soft: #f7eaee;
  --ink: #242124;
  --ink-soft: #5f585b;
  --paper: #fefefe;
  --cloud: #f2f2f2;
  --cloud-deep: #e8e9e9;
  --line: #ded7da;
}

body {
  color: var(--ink);
  background: #f7f7f5;
}

main > section:not(.hero) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

main > section:not(.hero)::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image: url("assets/virom-pattern.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: .56;
  mix-blend-mode: multiply;
}

main > section:not(.hero) > .container {
  position: relative;
  z-index: 1;
}

.quick-section::before,
.about-section::before,
.careers-section::before {
  opacity: .82 !important;
}

.structure-section::before,
.useful-section::before {
  opacity: .42 !important;
}

h1,
h2,
h3,
.quick-card strong {
  font-family: "Segoe UI", Arial, sans-serif;
}

.service-bar {
  color: #f4dce3;
  background: var(--wine-dark);
}

.service-links a {
  transition: color .2s ease;
}

.service-links a:hover,
.service-links a:focus-visible {
  color: #fff;
}

.site-header {
  min-height: 136px;
  color: #fff;
  background: var(--wine);
  border: 0;
}

.corporate-brand {
  width: min(400px, 33vw);
  min-width: 330px;
  display: grid;
  flex: 0 1 400px;
  grid-template-rows: auto 72px auto;
  align-items: center;
}

.corporate-brand img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  object-position: left center;
}

.brand-founded,
.brand-supervisor {
  padding-left: 108px;
  line-height: 1.2;
}

.brand-founded {
  align-self: end;
  padding-left: 104px;
  margin-bottom: -12px;
  color: rgba(255,255,255,.82);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .015em;
  text-transform: none;
}

.brand-supervisor {
  align-self: start;
  margin-top: -13px;
  color: rgba(255,255,255,.82);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .015em;
}

.header-calendar {
  min-width: 282px;
  min-height: 90px;
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 4px;
  background: rgba(255,255,255,.09);
  box-shadow: 0 12px 34px rgba(55,6,18,.15);
}

.header-calendar-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  border-right: 1px solid rgba(255,255,255,.28);
}

.header-calendar-title span {
  color: #f1bcc9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.header-calendar-title strong {
  font-size: 14px;
  line-height: 1.1;
}

.header-calendar-dates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.header-calendar-dates a {
  min-width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-right: 1px solid rgba(255,255,255,.18);
  transition: background .2s ease;
}

.header-calendar-dates a:last-child {
  border-right: 0;
}

.header-calendar-dates a:hover,
.header-calendar-dates a:focus-visible {
  background: rgba(255,255,255,.14);
}

.header-calendar-dates b {
  font-size: 24px;
  line-height: 1;
}

.header-calendar-dates span {
  color: #f1bcc9;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.header-tools {
  flex: 0 0 auto;
  gap: 8px;
}

.rpn-brand {
  width: 74px;
  display: grid;
  flex: 0 0 74px;
  justify-items: center;
  gap: 3px;
  color: #fff;
  text-align: center;
}

.rpn-emblem {
  width: 48px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 4px;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(49,5,15,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}

.rpn-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rpn-brand small {
  font-size: 8px;
  font-weight: 650;
  line-height: 1;
}

.rpn-brand:hover .rpn-emblem,
.rpn-brand:focus-visible .rpn-emblem {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(49,5,15,.28);
}

.site-header .language-switcher summary {
  border-color: rgba(255,255,255,.48);
}

.site-header .language-switcher summary:hover,
.site-header .language-switcher[open] summary {
  border-color: #fff;
  background: rgba(255,255,255,.12);
}

.accessibility-link {
  width: auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 22px;
  font-size: 12px;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease;
}

.accessibility-link span:last-child {
  display: inline;
}

.accessibility-link:hover,
.accessibility-link:focus-visible {
  border-color: #fff;
  background: rgba(255,255,255,.12);
}

.accessibility-icon {
  position: relative;
  width: 25px;
  height: 13px;
  flex: 0 0 25px;
  background: linear-gradient(currentColor,currentColor) center 6px / 7px 2px no-repeat;
}

.accessibility-icon::before,
.accessibility-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.accessibility-icon::before {
  left: 0;
}

.accessibility-icon::after {
  right: 0;
}

.site-header .search-button {
  color: #fff;
}

.site-nav {
  min-height: 52px;
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.main-nav {
  width: 100%;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}

.main-nav a {
  position: relative;
  padding: 17px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 11px;
  left: 0;
  height: 2px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a:first-child::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 8% 12%, rgba(139,37,60,.24) 0 8%, transparent 8.2%),
    radial-gradient(circle at 92% 82%, rgba(116,25,43,.26) 0 13%, transparent 13.2%),
    linear-gradient(126deg, #44343b 0%, #6f263a 48%, #9a1733 100%);
  background-size: auto, auto, 240% 240%;
  background-position: 8% 12%, 92% 82%, 0% 50%;
  animation: virom-hero-gradient 16s ease-in-out infinite alternate;
}

@keyframes virom-hero-gradient {
  from { background-position: 8% 12%, 92% 82%, 0% 50%; }
  to { background-position: 12% 18%, 86% 76%, 100% 50%; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 62%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: url("assets/virom-pattern.png") center / cover no-repeat;
  background-attachment: fixed;
  opacity: .56;
  mix-blend-mode: multiply;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  padding: 62px 0;
  transform: translateX(-20%);
}

.hero .eyebrow {
  color: #e8a8b7;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px, 4.6vw, 64px);
  line-height: .98;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.hero-lead {
  max-width: 610px;
  margin: 12px 0 28px;
  color: #eee6e8;
  font-size: 18px;
  line-height: 1.62;
}

.hero-subtitle {
  max-width: none;
  margin: 22px 0 0;
  color: #fff;
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -.018em;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  border-radius: 3px;
}

.button-primary {
  color: #fff;
  background: var(--wine);
  border: 1px solid var(--wine);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--wine-bright);
  border-color: var(--wine-bright);
  transform: translateY(-2px);
}

.hero .button-primary {
  color: var(--wine-dark);
  background: #fff;
  border-color: #fff;
}

.hero .button-primary:hover,
.hero .button-primary:focus-visible {
  color: #fff;
  background: var(--wine-bright);
  border-color: var(--wine-bright);
}

.hero .button-outline {
  color: #fff;
  border-color: rgba(255,255,255,.62);
  transition: background .2s ease, border-color .2s ease;
}

.hero .button-outline:hover,
.hero .button-outline:focus-visible {
  border-color: #fff;
  background: rgba(255,255,255,.1);
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.hero-image {
  margin: 0;
}

.hero-image {
  position: absolute;
  inset: -12px -70px -12px -28px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 4px 76px 4px 4px;
  background: var(--cloud);
  box-shadow: 0 28px 72px rgba(0,0,0,.38);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1s ease, transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slideshow img,
.hero-slideshow:hover img {
  transform: none;
  transition: none;
}

.hero-slide-status {
  position: absolute;
  z-index: 3;
  left: 18px;
  bottom: 16px;
  min-width: 98px;
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 18px;
  background: rgba(35,27,31,.58);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .1em;
}

.hero-slide-status i {
  width: 34px;
  height: 1px;
  background: rgba(255,255,255,.58);
}

.hero-image::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(82,13,28,.06), rgba(36,33,36,.2));
}

.hero-calendar {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 13px;
  width: 258px;
  padding: 12px;
  color: var(--ink);
  border-top: 4px solid var(--wine);
  background: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.32);
}

.hero-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-calendar-head div {
  display: grid;
  gap: 3px;
}

.hero-calendar-head span {
  color: var(--wine);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-calendar-head strong {
  font-size: 13px;
  line-height: 1.2;
}

.hero-calendar-head > a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--ink);
  transition: background .2s ease;
}

.hero-calendar-head > a:hover,
.hero-calendar-head > a:focus-visible {
  background: var(--wine);
}

.hero-calendar-dates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.hero-calendar-dates > a {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  color: #fff;
  background: var(--wine);
  text-align: center;
  transition: background .2s ease, transform .2s ease;
}

.hero-calendar-dates > a:hover,
.hero-calendar-dates > a:focus-visible {
  background: var(--wine-bright);
  transform: translateY(-2px);
}

.hero-calendar-dates b {
  font-size: 26px;
  line-height: 1;
}

.hero-calendar-dates span {
  margin-top: 4px;
  font-size: 9px;
}

.hero-calendar-dates small {
  margin-top: 7px;
  color: #f4cdd6;
  font-size: 7px;
  line-height: 1.1;
}

.quick-section {
  color: var(--ink);
  background: rgba(255,255,255,.89);
  border-bottom: 1px solid var(--line);
}

.quick-head {
  display: grid;
  justify-items: start;
  gap: 11px;
  margin-bottom: 20px;
}

.quick-head .eyebrow {
  margin: 0;
  color: var(--wine);
}

.quick-head h2 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -.035em;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.quick-card {
  position: relative;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: color .22s ease, background .22s ease, transform .22s ease;
}

.quick-card:hover,
.quick-card:focus-visible {
  z-index: 2;
  color: #fff;
  background: var(--wine);
  transform: translateY(-3px);
}

.quick-no {
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.quick-card:hover .quick-no,
.quick-card:focus-visible .quick-no {
  color: #f4c6d1;
}

.quick-card strong {
  max-width: 220px;
  padding-right: 20px;
  font-size: 16px;
  line-height: 1.25;
}

.quick-card-wide {
  grid-column: span 2;
}

.card-arrow {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: var(--wine);
  font-size: 18px;
}

.quick-card:hover .card-arrow,
.quick-card:focus-visible .card-arrow {
  color: #fff;
}

.section-head .eyebrow {
  color: var(--wine);
}

.section-head h2 {
  font-size: 42px;
}

.arrow-link {
  color: var(--wine);
}

.news-section {
  background: rgba(242,242,242,.9);
}

.news-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 350px);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--wine) rgba(116,25,43,.1);
  scrollbar-width: thin;
}

.news-card {
  min-height: 364px;
  padding: 0;
  display: grid;
  grid-template-rows: 148px 1fr;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  scroll-snap-align: start;
  transition: transform .22s ease, box-shadow .22s ease;
}

.news-image {
  height: 148px;
  margin: 0;
  overflow: hidden;
  background: var(--cloud-deep);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.news-card:nth-child(1) .news-image img { object-position: center 34%; }
.news-card:nth-child(2) .news-image img { object-position: center 42%; }
.news-card:nth-child(3) .news-image img { object-position: center 45%; }
.news-card:nth-child(4) .news-image img { object-position: center 30%; }
.news-card:nth-child(5) .news-image img { object-position: center 38%; }
.news-card:nth-child(6) .news-image img { object-position: center 40%; }

.news-card:hover .news-image img {
  transform: scale(1.035);
}

.news-card.news-no-image {
  grid-template-rows: 1fr;
}

.news-card.news-no-image .news-card-link {
  height: 100%;
}

.news-card.news-no-image .news-content {
  min-height: 362px;
  padding: 28px 24px 22px;
}

.news-card.news-no-image .news-content h3 {
  margin-top: 28px;
  font-size: 22px;
}

.news-content {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
}

.news-content h3 {
  margin: 14px 0 9px;
  font-size: 19px;
  line-height: 1.23;
}

.news-content p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.news-card .news-date,
.news-card .news-more {
  margin-top: 0;
}

.news-card .news-more {
  min-height: 32px;
  padding: 0 12px;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(46,31,37,.1);
}

.news-card .news-type,
.news-card .news-date {
  color: var(--wine);
}

.news-card .news-more {
  color: var(--wine);
  transition: color .2s ease, background .2s ease;
}

.news-card .news-more:hover,
.news-card .news-more:focus-visible {
  color: #fff;
  background: var(--wine);
}

.news-featured {
  color: #fff;
  background: var(--wine);
  border-color: var(--wine);
}

.news-featured .news-type,
.news-featured .news-date {
  color: #f0c8d1;
}

.news-featured .news-more {
  color: #fff;
}

.news-featured .news-more:hover,
.news-featured .news-more:focus-visible {
  color: var(--wine);
  background: #fff;
}

.about-section {
  background: rgba(255,255,255,.87);
}

.about-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 52px;
  align-items: center;
}

.history-visual {
  position: relative;
  width: 100%;
  max-width: 430px;
}

.history-photo {
  position: relative;
  height: 292px;
  margin: 0;
  overflow: hidden;
  border-radius: 30px 5px 30px 5px;
  background: var(--cloud);
  box-shadow: 0 22px 58px rgba(46,31,37,.13);
}

.history-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .65s ease;
}

.history-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.history-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.03);
}

.history-dots {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 24px rgba(36,33,36,.15);
  backdrop-filter: blur(8px);
}

.history-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b9b2b5;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.history-dots button.is-active {
  width: 24px;
  border-radius: 8px;
  background: var(--wine);
}

.history-dots button:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.about-copy .eyebrow {
  color: var(--wine);
}

.about-copy h2 {
  margin: 0 0 20px;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.about-copy p:not(.eyebrow) {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.about-more-button {
  min-height: 58px;
  padding-inline: 28px;
  font-size: 16px;
}

.structure-section {
  color: #fff;
  background: #6b6468;
}

.structure-section .eyebrow,
.structure-section .arrow-link {
  color: #e9a9b8;
}

.governance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.governance a {
  min-height: 148px;
  padding: 21px 23px;
  border: 1px solid #948b90;
  background: #797176;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.governance a:hover,
.governance a:focus-visible {
  border-color: var(--wine-bright);
  background: var(--wine);
  transform: translateY(-3px);
}

.governance span,
.unit-index {
  color: #e9a9b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.governance h3 {
  margin: 20px 0 7px;
  font-size: 20px;
  line-height: 1.18;
}

.governance p {
  margin: 0;
  color: #bbb3b6;
  font-size: 13px;
}

.governance a:hover p,
.governance a:focus-visible p {
  color: #f5e6ea;
}

.units-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.unit-group {
  padding: 23px 23px 19px;
  border: 1px solid #948b90;
  background: rgba(78,71,75,.18);
}

.unit-group h3 {
  min-height: 52px;
  margin: 12px 0 18px;
  font-size: 24px;
  line-height: 1.15;
}

.unit-branches {
  display: grid;
  gap: 13px;
}

.unit-branch {
  overflow: hidden;
  border: 1px solid #91878c;
  border-radius: 3px;
  background: rgba(255,255,255,.035);
}

.unit-parent {
  display: grid;
  gap: 6px;
  padding: 13px 15px;
  color: #fff;
  background: rgba(255,255,255,.075);
}

.unit-parent small {
  color: #f1bdc9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.unit-parent strong {
  font-size: 15px;
  line-height: 1.4;
}

.unit-children {
  display: grid;
  padding: 2px 13px 6px;
}

.unit-children a {
  position: relative;
  padding: 10px 7px 10px 17px;
  color: #d8d0d3;
  border-top: 1px solid #91878c;
  font-size: 13px;
  line-height: 1.4;
}

.unit-children a::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e9a9b8;
}

.unit-children a small {
  display: block;
  margin-top: 5px;
  color: #c9c0c4;
  font-size: 11px;
}

.unit-parent:hover,
.unit-parent:focus-visible,
.unit-children a:hover,
.unit-children a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.1);
  box-shadow: none;
}

.activity-section {
  color: var(--ink);
  background: rgba(247,234,238,.9);
}

.activity-accordion {
  display: grid;
  gap: 9px;
}

.activity-group {
  overflow: hidden;
  border: 1px solid #cfb7be;
  border-radius: 3px;
  background: rgba(255,255,255,.5);
  transition: background .22s ease, box-shadow .22s ease;
}

.activity-group[open] {
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 38px rgba(76,42,52,.08);
}

.activity-group summary {
  min-height: 72px;
  display: grid;
  grid-template-columns: 44px 1fr 34px;
  align-items: center;
  gap: 15px;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
}

.activity-group summary::-webkit-details-marker {
  display: none;
}

.activity-group summary:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: -3px;
}

.activity-group-index {
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.activity-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.activity-group-title strong {
  font-size: 20px;
  line-height: 1.25;
}

.activity-group-title small {
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.activity-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid var(--wine);
  border-radius: 50%;
}

.activity-toggle::before,
.activity-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: var(--wine);
  transform: translate(-50%,-50%);
  transition: transform .2s ease;
}

.activity-toggle::after {
  transform: translate(-50%,-50%) rotate(90deg);
}

.activity-group[open] .activity-toggle::after {
  transform: translate(-50%,-50%) rotate(0deg);
}

.activity-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #cfb7be;
}

.activity-links a {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  padding: 16px 19px;
  border-right: 1px solid #d6bec5;
  border-bottom: 1px solid #d6bec5;
  transition: color .2s ease, background .2s ease;
}

.activity-links a:nth-child(3n) {
  border-right: 0;
}

.activity-links a:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
  min-height: 94px;
}

.activity-links a > span {
  color: var(--wine);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.activity-links strong {
  margin: auto 0 8px;
  font-size: 16px;
  line-height: 1.3;
}

.activity-links small {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.activity-links a:hover,
.activity-links a:focus-visible {
  color: #fff;
  background: var(--wine);
}

.activity-links a:hover > span,
.activity-links a:focus-visible > span,
.activity-links a:hover small,
.activity-links a:focus-visible small {
  color: #f3d9df;
}

.careers-section {
  color: var(--ink);
  background: #e5e5e3;
}

.careers-section .eyebrow {
  color: var(--wine);
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.career-card {
  position: relative;
  min-height: 208px;
  display: flex;
  flex-direction: column;
  padding: 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(248,248,247,.8);
  transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}

.career-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(116,25,43,.22);
  border-radius: 50%;
}

.career-card > span {
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.career-card h3 {
  max-width: 310px;
  margin: 28px 0 11px;
  font-size: 20px;
  line-height: 1.2;
}

.career-card p {
  max-width: 340px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.career-card:hover,
.career-card:focus-visible {
  color: #fff;
  background: var(--wine);
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(46,31,37,.14);
}

.career-card:hover > span,
.career-card:focus-visible > span,
.career-card:hover p,
.career-card:focus-visible p {
  color: #f3d9df;
}

.documents-section {
  background: rgba(255,255,255,.91);
}

.document-search {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.documents-grid a {
  position: relative;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  padding: 19px 55px 19px 20px;
  border: 1px solid var(--line);
  background: #fff;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.documents-grid a:hover,
.documents-grid a:focus-visible {
  color: #fff;
  background: var(--ink);
  transform: translateY(-3px);
}

.documents-grid span {
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
}

.documents-grid strong {
  margin: auto 0 8px;
  font-size: 17px;
  line-height: 1.25;
}

.documents-grid small {
  color: var(--ink-soft);
}

.documents-grid a:hover span,
.documents-grid a:focus-visible span {
  color: #e9a9b8;
}

.documents-grid a:hover small,
.documents-grid a:focus-visible small {
  color: #cec6c9;
}

.document-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--wine);
  border: 1px solid var(--wine);
  border-radius: 50%;
  font-size: 17px;
  font-style: normal;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.documents-grid a:hover .document-arrow,
.documents-grid a:focus-visible .document-arrow {
  color: var(--ink);
  border-color: #fff;
  background: #fff;
}

.documents-grid .document-wide {
  grid-column: 1 / -1;
  min-height: 104px;
}

.documents-grid .document-materials {
  grid-column: span 2;
}

.calendar-section {
  background: rgba(242,242,242,.9);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.calendar-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: stretch;
  min-height: 174px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.calendar-card:hover,
.calendar-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(46,31,37,.09);
}

.calendar-card time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--wine);
}

.calendar-card time b {
  font-size: 34px;
  line-height: 1;
}

.calendar-card time span {
  margin-top: 8px;
  font-size: 10px;
}

.calendar-card > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 17px;
}

.event-type {
  color: var(--wine);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.calendar-card h3 {
  margin: 9px 0 7px;
  font-size: 17px;
}

.calendar-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.calendar-grid > .calendar-empty {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--line);
  background: #fff;
}

.calendar-grid > .calendar-empty h3,
.calendar-grid > .calendar-empty p {
  margin: 0;
}

.calendar-grid > .calendar-empty p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.unit-group-link {
  color: inherit;
}

.unit-group-link:hover,
.unit-group-link:focus-visible {
  color: var(--wine);
}

.useful-section {
  color: #fff;
  background: var(--wine);
}

.useful-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}

.useful-head .eyebrow {
  color: #f0c5d0;
}

.useful-head h2 {
  margin: 0;
  font-size: 32px;
}

.useful-head > span {
  color: #efcbd4;
  font-size: 12px;
}

.useful-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.35);
  border-left: 1px solid rgba(255,255,255,.35);
}

.useful-grid a {
  min-height: 94px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,.35);
  border-bottom: 1px solid rgba(255,255,255,.35);
  transition: color .2s ease, background .2s ease;
}

.useful-grid a:hover,
.useful-grid a:focus-visible {
  color: var(--wine);
  background: #fff;
}

.useful-grid strong {
  max-width: 240px;
  font-size: 15px;
  line-height: 1.35;
}

.footer {
  color: #fff;
  background: var(--ink);
}

.footer-top {
  grid-template-columns: 1.9fr repeat(3, .8fr);
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.footer-brand-block img {
  width: 300px;
  height: 82px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand-block p {
  max-width: 380px;
  margin: 0;
  color: #c9c1c4;
  font-size: 10.5px;
  line-height: 1.45;
  letter-spacing: .012em;
}

.footer-title {
  color: #e9a9b8;
}

.footer-list {
  color: #d7cfd2;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #fff;
}

.footer-bottom {
  color: #cfc7ca;
  border-color: #554b4f;
}

@media (max-width: 1120px) {
  .header-inner {
    gap: 16px;
  }

  .corporate-brand {
    width: min(350px, 32vw);
    min-width: 300px;
    flex-basis: 350px;
  }

  .brand-founded,
  .brand-supervisor {
    padding-left: 95px;
  }

  .brand-founded {
    padding-left: 90px;
  }

  .header-calendar {
    min-width: 260px;
  }

  .main-nav {
    gap: 13px;
    font-size: 11px;
  }

  .hero-inner {
    gap: 38px;
  }

  .hero-copy {
    transform: translateX(-8%);
  }

  .quick-grid,
  .useful-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .documents-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .activity-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .activity-links a:nth-child(3n) {
    border-right: 1px solid #d6bec5;
  }

  .activity-links a:nth-child(2n) {
    border-right: 0;
  }

  .activity-links a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .governance {
    grid-template-columns: 1fr 1fr;
  }

  .governance a:last-child {
    grid-column: 1 / -1;
  }

  .documents-grid .document-materials {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  main > section:not(.hero)::before,
  .hero::after {
    background-attachment: scroll;
    background-size: cover;
  }

  .service-links {
    display: none;
  }

  .site-header {
    min-height: 0;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 12px 0;
  }

  .corporate-brand {
    width: min(420px, 60vw);
    min-width: 300px;
    flex: 1 1 360px;
  }

  .corporate-brand img {
    height: 76px;
  }

  .header-tools {
    order: 2;
    display: flex;
  }

  .header-calendar {
    width: 100%;
    min-height: 58px;
    grid-template-columns: 90px 1fr;
    order: 3;
  }

  .header-calendar-dates a {
    min-height: 58px;
  }

  .accessibility-link {
    display: none;
  }

  .nav-inner {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 26px 0 56px;
  }

  .hero-copy {
    padding: 44px 0 0;
    transform: none;
  }

  .hero h1,
  .hero-subtitle {
    white-space: normal;
  }

  .hero-visual {
    min-height: 470px;
  }

  .about-grid,
  .units-grid {
    grid-template-columns: 1fr;
  }

  .careers-grid {
    grid-template-columns: 1fr;
  }

  .quick-card-wide {
    grid-column: auto;
  }

  .about-grid {
    gap: 32px;
  }

  .history-visual {
    margin: 0 auto;
  }

  .news-grid {
    grid-auto-columns: minmax(300px, 56vw);
  }

  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calendar-card:last-child {
    grid-column: 1 / -1;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 52px 0;
  }

  .section-tight {
    padding: 40px 0;
  }

  .container {
    width: min(100% - 28px, 560px);
  }

  .service-bar {
    text-align: center;
  }

  .service-inner {
    justify-content: center;
  }

  .site-header {
    min-height: 0;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .corporate-brand {
    width: min(310px, 100%);
    min-width: 0;
    grid-template-rows: auto 62px auto;
  }

  .corporate-brand img {
    height: 62px;
  }

  .brand-founded,
  .brand-supervisor {
    padding-left: 84px;
  }

  .brand-founded {
    padding-left: 78px;
    font-size: 8px;
  }

  .brand-supervisor {
    font-size: 9px;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
  }

  .header-calendar {
    grid-template-columns: 76px 1fr;
  }

  .rpn-brand {
    width: 60px;
    flex-basis: 60px;
  }

  .rpn-emblem {
    width: 42px;
    height: 44px;
  }

  .rpn-brand small {
    font-size: 7px;
  }

  .language-switcher summary {
    min-width: 70px;
  }

  .site-nav {
    display: none;
  }

  .hero-copy {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-subtitle {
    font-size: 19px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-image {
    inset: 0;
    border-radius: 3px 42px 3px 3px;
  }

  .hero-calendar {
    right: 0;
    bottom: 200px;
    width: auto;
  }

  .useful-head {
    display: block;
  }

  .useful-head .eyebrow {
    margin-bottom: 12px;
  }

  .quick-grid,
  .governance,
  .documents-grid,
  .useful-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-auto-columns: minmax(270px, 86vw);
  }

  .governance a:last-child,
  .documents-grid .document-wide,
  .documents-grid .document-materials {
    grid-column: auto;
  }

  .activity-group summary {
    min-height: 76px;
    grid-template-columns: 34px 1fr 34px;
    gap: 12px;
    padding: 15px 16px;
  }

  .activity-group-title {
    display: grid;
    gap: 4px;
  }

  .activity-group-title strong {
    font-size: 18px;
  }

  .activity-group-title small {
    white-space: normal;
  }

  .activity-toggle {
    width: 32px;
    height: 32px;
  }

  .activity-links {
    grid-template-columns: 1fr;
  }

  .activity-links a,
  .activity-links a:nth-child(2n),
  .activity-links a:nth-child(3n) {
    grid-column: auto;
    border-right: 0;
  }

  .section-head h2,
  .about-copy h2 {
    font-size: 36px;
  }

  .history-photo {
    height: 238px;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .calendar-card:last-child {
    grid-column: auto;
  }

  .calendar-card {
    grid-template-columns: 88px 1fr;
  }

  .calendar-card time b {
    font-size: 34px;
  }

  .calendar-card > div {
    padding: 20px;
  }

  .calendar-card h3 {
    font-size: 18px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
    background-position: 8% 12%, 92% 82%, 50% 50%;
  }

  .hero-slide {
    opacity: 0;
    transform: none;
    transition: none;
  }

  .hero-slide.is-active {
    opacity: 1;
  }

  .quick-card,
  .news-card,
  .governance a,
  .activity-group,
  .activity-toggle::after,
  .activity-links a,
  .career-card,
  .documents-grid a,
  .calendar-card,
  .button-primary {
    transition: none;
  }

  .history-slide,
  .history-dots button {
    transition: none;
  }
}

.hero-slide-controls {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 16px;
  display: flex;
  gap: 7px;
}

.hero-slide-controls button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(35,27,31,.64);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.hero-slide-controls button:hover,
.hero-slide-controls button:focus-visible {
  color: var(--wine);
  background: #fff;
  transform: translateY(-2px);
}
