:root {
  --bg-page: #f6fbff;
  --bg-soft: #e8f6ff;
  --bg-card: #ffffff;
  --text-main: #1f3761;
  --text-body: #415f87;
  --text-muted: #6f89ac;
  --line-soft: #d2e3f7;
  --chrome-bg: rgba(255, 255, 255, 0.9);
  --chrome-border: rgba(155, 194, 240, 0.68);
  --brand-blue: #2f8fff;
  --brand-purple: #a786ff;
  --brand-dark: #1a4179;
  --hero-home: none;
  --section-pattern: url("./assets/top-background.svg");
  --ok-green: #26be73;
  --accent-coral: #ff7d66;
  --accent-sun: #ffd957;
  --accent-mint: #55ce8f;
  --accent-lilac: #a786ff;
  --emi-logo-blue: #4fd8f2;
  --emi-logo-orange: #f5a56f;
  --section-zig: clamp(56px, 8vw, 140px);
  --shadow: 0 12px 30px rgba(33, 84, 145, 0.16);
  --radius-lg: 16px;
  --radius-md: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  background-image: var(--section-pattern);
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-attachment: scroll;
  line-height: 1.45;
  padding-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.centered {
  text-align: center;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: 220px;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  box-shadow: none;
  z-index: 100;
}

.site-header .container {
  width: min(1520px, calc(100% - 36px));
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  position: relative;
  left: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 212px;
  object-fit: contain;
}

.main-nav {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
  right: -140px;
  z-index: 120;
}

.menu-toggle {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 14px;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle:focus-visible {
  outline: 3px solid rgba(47, 143, 255, 0.55);
  outline-offset: 4px;
}

.menu-line {
  display: block;
  width: 34px;
  height: 6px;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-line-blue {
  background: var(--emi-logo-blue);
}

.menu-line-green {
  background: var(--emi-logo-orange);
}

.menu-line-coral {
  background: var(--emi-logo-blue);
}

.main-nav.is-open .menu-line-blue {
  transform: translateY(2px);
  background: var(--emi-logo-orange);
}

.main-nav.is-open .menu-line-coral {
  transform: translateY(-2px);
  background: var(--emi-logo-blue);
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 206px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #cfe1f8;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 24px rgba(37, 84, 144, 0.2);
  display: grid;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  z-index: 120;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.main-nav.is-open .menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.has-hero-circle-menu .menu-dropdown {
  display: none;
}

.nav-link {
  padding: 10px 14px;
  border: 1px solid #cfe1f8;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.04rem;
  color: #34537f;
  background: #ffffff;
  text-align: center;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  border-color: #94cbff;
  box-shadow: 0 8px 16px rgba(47, 143, 255, 0.16);
}

.nav-link.is-active {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(
    92deg,
    var(--brand-blue) 0%,
    var(--accent-mint) 55%,
    var(--accent-coral) 100%
  );
  box-shadow: 0 10px 18px rgba(52, 140, 231, 0.3);
}

.hero {
  padding: 80px 0 0;
}

.hero-home {
  background: transparent;
  min-height: 320px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-home::before,
.hero-home::after {
  content: none;
}

.hero-home .container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-home .container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -240px;
  width: clamp(490px, 61vw, 980px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(244, 243, 239, 0.96);
  transform: translateX(-50%);
  box-shadow: 0 22px 56px rgba(255, 255, 255, 0.4);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.06s ease;
}

.hero-circle-menu {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -44%);
  width: min(640px, 92vw);
  display: grid;
  justify-items: center;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.08s ease, transform 0.08s ease, visibility 0.08s ease;
}

.hero-circle-link {
  position: relative;
  display: inline-block;
  width: min(100%, 430px);
  padding: 10px 24px;
  border-radius: 999px;
  border: 0 !important;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: #ffffff;
  text-align: center;
  font-size: clamp(1.5rem, 2.35vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.hero-circle-link:not(.is-active)::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffe7a6;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero-circle-link:not(.is-active):hover::after,
.hero-circle-link:not(.is-active):focus-visible::after {
  clip-path: inset(0 0 0 0);
}

.hero-circle-link:hover {
  transform: translateY(-1px);
}

.hero-circle-link.is-active {
  background: transparent;
  color: #ffe7a6;
  text-decoration: none;
}

.hero-circle-link:hover,
.hero-circle-link:active,
.hero-circle-link:focus,
.hero-circle-link:focus-visible,
.hero-circle-link.is-active {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.has-hero-circle-menu .main-nav.is-open .menu-line-blue {
  transform: translateY(13px) rotate(45deg);
  background: var(--emi-logo-orange);
}

.has-hero-circle-menu .main-nav.is-open .menu-line-green {
  opacity: 0;
  transform: scaleX(0.2);
}

.has-hero-circle-menu .main-nav.is-open .menu-line-coral {
  transform: translateY(-13px) rotate(-45deg);
  background: var(--emi-logo-blue);
}

.has-hero-circle-menu::before {
  content: "";
  position: fixed;
  left: 50%;
  top: -150px;
  width: clamp(490px, 61vw, 980px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #a9bee7;
  transform: translateX(-50%);
  clip-path: inset(0 0 12% 0);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  z-index: 210;
  transition: opacity 0.08s ease;
}

.has-hero-circle-menu.hero-menu-open::before,
.has-hero-circle-menu.hero-menu-closing::before {
  opacity: 1;
}

.has-hero-circle-menu.hero-menu-closing::before {
  opacity: 0;
}

.has-hero-circle-menu.hero-menu-open .hero-home .container,
.has-hero-circle-menu.hero-menu-closing .hero-home .container,
.has-hero-circle-menu.hero-menu-open .subpage-hero .container,
.has-hero-circle-menu.hero-menu-closing .subpage-hero .container {
  z-index: 211;
}

.has-hero-circle-menu.hero-menu-open .hero-script-logo,
.has-hero-circle-menu.hero-menu-open .hero-grid {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.has-hero-circle-menu.hero-menu-open .hero-home .container::before,
.has-hero-circle-menu.hero-menu-closing .hero-home .container::before {
  opacity: 0;
}

.has-hero-circle-menu.hero-menu-open .hero-circle-menu {
  position: fixed;
  left: 50%;
  top: 30%;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  z-index: 212;
}

.has-hero-circle-menu.hero-menu-closing .hero-circle-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 212;
}

.hero-script {
  margin: 0;
  text-align: center;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(
    92deg,
    #fff6b3 0%,
    var(--accent-sun) 38%,
    var(--accent-coral) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  left: 0;
  top: 0;
}

.hero-script-logo {
  display: block;
  width: auto;
  height: clamp(384px, 52vw, 780px);
  max-width: none;
  object-fit: contain;
  margin: 0 auto -420px;
  transform: translateY(-120px);
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  justify-items: center;
  max-width: 940px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
}

.hero-content h1 {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: clamp(2.2rem, 4vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-content p {
  margin: 0 auto;
  color: #2f507b;
  font-size: clamp(1.4rem, 1.7vw, 2rem);
  max-width: 670px;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
}

.hero-image-wrap img {
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  width: min(100%, 920px);
  max-width: 920px;
  min-height: 640px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: translateY(-250px);
}

.section {
  padding: calc(88px + var(--section-zig)) 0 88px;
  margin-top: calc(var(--section-zig) * -1);
  position: relative;
  overflow: visible;
  clip-path: polygon(
    0 var(--section-zig),
    10% 0,
    22% var(--section-zig),
    35% calc(var(--section-zig) * 0.1),
    48% var(--section-zig),
    62% 0,
    76% calc(var(--section-zig) * 0.9),
    88% 0,
    100% var(--section-zig),
    100% 100%,
    0 100%
  );
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-light {
  background: transparent;
}

.section-muted {
  background: transparent;
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1.1;
  color: var(--brand-dark);
}

.section-head p {
  margin: 16px 0 0;
  color: var(--text-body);
  font-size: clamp(1.1rem, 1.5vw, 1.85rem);
  max-width: 760px;
}

.section-head.centered {
  text-align: center;
}

.section-head.centered p {
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border: 1px solid #d8e7f8;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 22px rgba(35, 76, 133, 0.08);
}

.feature-card {
  padding: clamp(22px, 2.4vw, 36px);
  border: none;
  box-shadow: none;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 56% 44% 49% 51% / 43% 52% 48% 57%;
  background: #ef9f83;
}

.icon-chip {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--brand-blue), var(--brand-purple));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: 0 10px 18px rgba(47, 143, 255, 0.24);
}

.feature-card h3 {
  margin: 0;
  font-size: clamp(1.3rem, 1.55vw, 2rem);
  color: #252744;
  line-height: 1.16;
}

.feature-card p {
  margin: 12px 0 0;
  color: #2f3a56;
  font-size: clamp(1.08rem, 1.25vw, 1.6rem);
}

.feature-card:nth-child(2) {
  background: #ecd885;
  border-radius: 50% 50% 47% 53% / 46% 55% 45% 54%;
}

.feature-card:nth-child(3) {
  background: #8bc6ac;
  border-radius: 43% 57% 52% 48% / 58% 39% 61% 42%;
}

.feature-card:nth-child(4) {
  background: #bcc5d7;
  border-radius: 58% 42% 56% 44% / 47% 61% 39% 53%;
}

.feature-card:nth-child(5) {
  background: #d9cce3;
  border-radius: 46% 54% 44% 56% / 60% 38% 62% 40%;
}

.feature-card:nth-child(6) {
  background: #b7d9dc;
  border-radius: 54% 46% 58% 42% / 41% 57% 43% 59%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.about-image img {
  min-height: 460px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.about-content h2 {
  margin: 0;
  font-size: clamp(2.3rem, 3vw, 4rem);
}

.about-content p {
  margin: 14px 0 0;
  color: var(--text-body);
  font-size: clamp(1.08rem, 1.3vw, 1.7rem);
}

.faq-section {
  --faq-image-height: clamp(340px, 28vw, 500px);
  --faq-card-height: calc(var(--faq-image-height) * 0.75);
  padding: 84px 0 96px;
  background: transparent;
}

.faq-title {
  margin: 0 0 28px clamp(36px, 5.2vw, 84px);
  color: #1c2138;
  font-size: clamp(3rem, 4.8vw, 5.6rem);
  line-height: 0.95;
}

.faq-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.faq-intro {
  padding: 0;
}

.faq-intro-image {
  width: min(100%, 520px);
  height: var(--faq-image-height);
  max-width: 100%;
  max-height: var(--faq-image-height);
  object-fit: contain;
  object-position: left top;
  display: block;
}

.faq-card {
  --faq-hover: #e6ebf3;
  margin: 72px 0 0;
  border: none;
  border-radius: 42px;
  background: #eceef4;
  min-height: var(--faq-card-height);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: none;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.22s ease;
}

.faq-card summary {
  list-style: none;
  cursor: pointer;
  color: #1f2336;
  font-size: clamp(1.3rem, 1.55vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--faq-card-height);
  padding: 0 36px;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card p {
  margin: 0;
  padding: 0 36px 32px;
  color: #333b57;
  font-size: clamp(1.02rem, 1.25vw, 1.45rem);
  line-height: 1.55;
  max-width: 35ch;
}

.faq-card:not([open]) p {
  display: none;
}

.faq-card[open] summary {
  min-height: auto;
  padding-bottom: 14px;
}

.faq-card[open] {
  background: var(--faq-hover);
}

.faq-card:hover,
.faq-card:focus-within {
  background: var(--faq-hover);
}

.faq-card:nth-of-type(1) {
  --faq-hover: #f7ddd2;
}

.faq-card:nth-of-type(2) {
  --faq-hover: #f6ebbf;
}

.faq-card:nth-of-type(3) {
  --faq-hover: #d8ecdc;
}

.faq-card:nth-of-type(4) {
  --faq-hover: #dce6f4;
}

.faq-card:nth-of-type(5) {
  --faq-hover: #e9ddf3;
}

.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #284873;
  font-size: clamp(1rem, 1.2vw, 1.5rem);
}

.check-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid var(--ok-green);
  border-radius: 50%;
  flex: 0 0 auto;
  background:
    linear-gradient(135deg, transparent 42%, var(--ok-green) 44% 57%, transparent 58%)
      35% 57% / 58% 48% no-repeat;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 12px;
  font-size: 1.28rem;
  font-weight: 700;
  padding: 16px 34px;
  cursor: pointer;
}

.button-gradient {
  background: linear-gradient(
    92deg,
    var(--brand-blue) 0%,
    var(--accent-mint) 52%,
    var(--accent-coral) 100%
  );
  color: #fff;
  box-shadow: 0 12px 20px rgba(47, 143, 255, 0.25);
}

.subpage-hero {
  background: transparent;
  color: var(--brand-dark);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: none;
}

.subpage-hero .container {
  position: relative;
  z-index: 1;
}

.has-hero-circle-menu .subpage-hero .container {
  min-height: clamp(280px, 32vw, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.has-hero-circle-menu .subpage-hero .container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -240px;
  width: clamp(490px, 61vw, 980px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #a9bee7;
  transform: translateX(-50%) scale(0.96);
  box-shadow: 0 18px 44px rgba(87, 117, 171, 0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.has-hero-circle-menu .subpage-hero h1,
.has-hero-circle-menu .subpage-hero p {
  position: relative;
  z-index: 1;
}

.has-hero-circle-menu.hero-menu-open .subpage-hero h1,
.has-hero-circle-menu.hero-menu-open .subpage-hero p {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.subpage-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 4.2vw, 5.2rem);
}

.subpage-hero p {
  margin: 16px 0 0;
  font-size: clamp(1.3rem, 1.8vw, 2.2rem);
  color: #2f507b;
  max-width: 840px;
}

.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.news-featured-image img {
  border-radius: var(--radius-lg);
  min-height: 360px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 1.05rem;
  font-weight: 700;
  background: #d8edff;
  color: #2768a8;
}

.tag-soft {
  font-size: 0.98rem;
  padding: 6px 12px;
  background: #ffe7db;
  color: #b4523f;
}

.news-featured-content h2 {
  margin: 16px 0 14px;
  font-size: clamp(2.2rem, 3.2vw, 4rem);
  line-height: 1.12;
}

.news-featured-content p {
  color: var(--text-body);
  font-size: clamp(1.15rem, 1.3vw, 1.75rem);
  margin: 0;
}

.news-date {
  margin-bottom: 16px !important;
  color: var(--text-muted) !important;
}

.text-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2d76cb;
  font-weight: 700;
  font-size: 1.12rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.news-pagination-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.news-page-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #2a4d7b;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(29, 75, 132, 0.16);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.news-page-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #f1f8ff;
  box-shadow: 0 8px 16px rgba(29, 75, 132, 0.2);
}

.news-page-btn:focus-visible {
  outline: 3px solid rgba(47, 143, 255, 0.45);
  outline-offset: 2px;
}

.news-page-btn.is-active {
  background: #ffe9a9;
  color: #4f3d16;
  box-shadow: 0 8px 16px rgba(166, 126, 26, 0.2);
}

.news-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.news-card {
  overflow: hidden;
  position: relative;
}

.news-card > img {
  min-height: 170px;
  object-fit: cover;
}

.news-card-admin {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
}

.news-edit-btn {
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1e4d84;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(17, 34, 60, 0.18);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.news-edit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #e8f3ff;
  color: #153b67;
}

.news-edit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.news-delete-btn {
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #a73030;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(17, 34, 60, 0.18);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.news-delete-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #ffe6e6;
  color: #8f1b1b;
}

.news-delete-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.news-card-body {
  padding: 20px;
}

.news-card-body h3 {
  margin: 12px 0 8px;
  font-size: clamp(1.38rem, 1.5vw, 2rem);
  line-height: 1.2;
}

.news-card-body p {
  margin: 0;
  color: var(--text-body);
  font-size: clamp(1.03rem, 1.15vw, 1.45rem);
}

.newsletter-section h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3.1vw, 3.8rem);
}

.newsletter-section p {
  margin: 14px auto 0;
  color: var(--text-body);
  font-size: clamp(1.14rem, 1.3vw, 1.8rem);
}

.newsletter-form {
  margin: 30px auto 0;
  display: flex;
  gap: 14px;
  max-width: 720px;
  justify-content: center;
}

.newsletter-form input {
  width: min(100%, 420px);
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #cfe0f6;
  background: #ffffff;
  font-size: 1.1rem;
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #77b9ff;
  box-shadow: 0 0 0 3px rgba(47, 143, 255, 0.15);
}

.news-admin-panel {
  display: grid;
  gap: 16px;
}

.news-admin-note {
  margin: 0;
  color: #35537d;
  font-size: 0.98rem;
}

.news-admin-small {
  font-size: 0.85rem;
  color: #55739c;
}

.news-admin-auth {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.news-admin-auth label {
  font-weight: 700;
  color: #1d3964;
}

.news-admin-auth input,
.news-admin-form-grid input,
.news-admin-form-grid textarea {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid #c8d9ef;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.98rem;
}

.news-admin-form-grid {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.news-admin-form-grid label {
  font-weight: 700;
  color: #1d3964;
}

.news-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.news-admin-file {
  background: #eef5ff;
  border: 1px solid #c2d9f7;
  color: #1d4a8c;
}

.news-admin-status {
  margin: 0;
}

.news-admin-error {
  background: #fff0f0;
  border-color: #f1b8b8;
  color: #9a1f1f;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.stats-grid-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 540px;
  justify-items: center;
}

.stat-card {
  background: #eff7ff;
  padding: 34px 22px;
  text-align: center;
}

.stat-card-blob {
  width: min(100%, 430px);
  min-height: 220px;
  padding: 42px 34px;
  background: #e3efff;
  border: none;
  border-radius: 55% 45% 52% 48% / 42% 58% 46% 54%;
  box-shadow: 0 14px 26px rgba(88, 129, 191, 0.14);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
}

.stat-card-blob .stat-number {
  color: #365b95;
  font-size: clamp(3rem, 4.7vw, 5rem);
}

.stat-card-blob .stat-label {
  margin: 0;
  color: #5074ad;
  font-size: clamp(1.12rem, 1.5vw, 1.7rem);
  font-weight: 700;
}

.partner-public-mode .stats-grid-single .stat-card-blob {
  transform: translateY(-92px);
}

.stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 2px solid #2f8fff;
  color: #2f8fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.stat-number {
  margin: 0;
  font-size: clamp(2.5rem, 3.8vw, 4.7rem);
  line-height: 1;
  font-weight: 800;
}

.stat-label {
  margin: 8px 0 0;
  color: var(--text-body);
  font-size: clamp(1.08rem, 1.3vw, 1.6rem);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.partner-card {
  overflow: hidden;
  position: relative;
}

.partner-cover {
  height: 146px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.partner-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(47, 143, 255, 0.34), rgba(255, 125, 102, 0.32));
}

.partner-avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff9ef;
  color: #2f82d0;
  font-size: 2rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(8, 23, 52, 0.16);
}

.partner-body {
  padding: 20px;
}

.partner-body h3 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 1.5vw, 1.9rem);
  line-height: 1.2;
}

.partner-body p {
  margin: 6px 0;
  color: var(--text-body);
  font-size: clamp(1.04rem, 1.15vw, 1.35rem);
}

.partner-meta {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--text-muted);
  font-size: 1rem;
}

.partner-card-admin {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  gap: 8px;
}

.partner-cta {
  padding: 92px 0 132px;
}

.partner-cta h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3.1vw, 3.6rem);
}

.partner-cta p {
  margin: 16px auto 0;
  max-width: 800px;
  color: var(--text-body);
  font-size: clamp(1.15rem, 1.35vw, 1.85rem);
}

.partner-cta .button {
  margin-top: 28px;
}

.legal-section {
  padding-top: 72px;
  margin-top: 0;
  clip-path: none;
}

.legal-card {
  background: #ffffff;
  border: 1px solid #d5e6fa;
  border-radius: 16px;
  padding: clamp(22px, 3.2vw, 44px);
  box-shadow: 0 10px 26px rgba(38, 82, 138, 0.1);
}

.legal-meta {
  margin: 0;
  font-size: 1.01rem;
  font-weight: 700;
  color: #4f76a8;
}

.legal-hint {
  margin: 12px 0 26px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #ecf6ff;
  border: 1px solid #cae1fb;
  color: #325988;
  font-size: 1.04rem;
}

.legal-card h2 {
  margin: 26px 0 10px;
  font-size: clamp(1.35rem, 1.9vw, 2rem);
  color: var(--brand-dark);
}

.legal-card p {
  margin: 0;
  color: #415f87;
  font-size: clamp(1rem, 1.2vw, 1.22rem);
  line-height: 1.65;
}

.legal-list {
  margin: 12px 0 0;
  padding-left: 22px;
  color: #415f87;
}

.legal-list li {
  margin-bottom: 8px;
  font-size: clamp(0.99rem, 1.16vw, 1.18rem);
  line-height: 1.6;
}

.legal-contact {
  margin-top: 28px !important;
  padding-top: 16px;
  border-top: 1px solid #d5e6fa;
  font-weight: 600;
}

.legal-contact a {
  color: #2d76cb;
}

.contact-section {
  position: relative;
  padding: 96px 0 112px;
  background: #f6fbff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
}

.contact-intro h2 {
  margin: 8px 0 20px;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.05;
  color: var(--brand-dark);
}

.contact-intro p {
  max-width: 520px;
  line-height: 1.75;
}

.contact-kicker {
  margin: 0;
  color: var(--accent-coral);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-direct {
  margin-top: 28px;
  font-weight: 600;
}

.contact-direct a {
  color: var(--brand-dark);
}

.contact-form {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(31, 83, 117, 0.13);
}

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

.contact-field {
  margin-bottom: 20px;
}

.contact-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-weight: 700;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cadbe5;
  border-radius: 14px;
  background: #fbfdff;
  color: var(--text-main);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(48, 151, 213, 0.14);
  outline: none;
}

.contact-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 24px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.contact-consent a {
  color: var(--brand-dark);
  font-weight: 700;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.contact-status {
  min-height: 24px;
  margin: 18px 0 0;
  font-weight: 700;
}

.contact-status.is-success {
  color: #167247;
}

.contact-status.is-error {
  color: #b42318;
}

.site-footer {
  background: #ffffff;
  color: #1f2a38;
  border-top: none;
  padding: 14px 0 6px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
  border-top: 0.5px solid rgba(28, 28, 28, 0.78);
  padding-top: 8px;
}

.site-footer h3 {
  margin: 0 0 2px;
  color: #111111;
  font-size: 1.05rem;
  line-height: 1.1;
}

.site-footer h4 {
  margin: 0 0 2px;
  color: #111111;
  font-size: 0.9rem;
  line-height: 1.1;
}

.site-footer p {
  display: inline;
  margin: 0;
  font-size: 0.76rem;
  color: #303030;
  line-height: 1.2;
}

.site-footer a {
  color: #1d3557;
}

.site-footer a:hover {
  color: #000000;
}

.footer-grid > div p + p::before {
  content: " • ";
  color: rgba(0, 0, 0, 0.35);
}

.footer-bottom {
  margin-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 6px;
}

.footer-bottom p {
  display: block;
  margin: 0;
  text-align: center;
  color: #444444;
  font-size: 0.72rem;
}

@media (max-width: 1100px) {
  .site-header .container {
    width: min(1280px, calc(100% - 30px));
  }

  .site-header {
    height: 186px;
  }

  .brand-logo {
    height: 178px;
  }

  .brand {
    left: 0;
  }

  .main-nav {
    right: -36px;
  }

  .feature-grid,
  .news-grid,
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-section {
    --faq-image-height: clamp(300px, 34vw, 420px);
  }

  .hero-grid,
  .about-grid,
  .news-featured {
    grid-template-columns: 1fr;
  }

  .hero-home {
    min-height: auto;
  }

  .hero-home .container::before {
    top: -210px;
    width: clamp(420px, 67vw, 760px);
  }

  .has-hero-circle-menu .subpage-hero .container {
    min-height: clamp(250px, 34vw, 360px);
  }

  .has-hero-circle-menu .subpage-hero .container::before {
    top: -210px;
    width: clamp(420px, 67vw, 760px);
  }

  .has-hero-circle-menu::before {
    top: -120px;
    width: clamp(420px, 67vw, 760px);
  }

  .has-hero-circle-menu.hero-menu-open .hero-circle-menu {
    top: 28%;
  }

  .hero-circle-menu {
    top: 42%;
    width: min(560px, 92vw);
  }

  .hero-script-logo {
    margin: 0 auto -320px;
    transform: translateY(-90px);
  }

  .hero-image-wrap {
    justify-content: center;
  }

  .hero-image-wrap img,
  .about-image img {
    width: 100%;
    max-width: 100%;
    min-height: 340px;
  }

  .hero-image-wrap img {
    width: min(100%, 760px);
    max-width: 760px;
    min-height: 500px;
    transform: translateY(-200px);
  }
}

@media (max-width: 760px) {
  :root {
    --section-zig: clamp(34px, 10vw, 74px);
  }

  body {
    padding-top: 0;
    background-attachment: scroll;
  }

  .container {
    width: min(1120px, calc(100% - 28px));
  }

  .site-header .container {
    width: min(1120px, calc(100% - 28px));
  }

  .site-header {
    height: 156px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-logo {
    height: 148px;
  }

  .main-nav {
    right: 0;
  }

  .brand {
    left: 0;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
    gap: 6px;
  }

  .menu-line {
    width: 30px;
    height: 5px;
  }

  .menu-dropdown {
    min-width: 180px;
    padding: 10px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 0.96rem;
  }

  .feature-card {
    min-height: 190px;
    padding: 20px;
  }

  .hero {
    padding: 66px 0 0;
  }

  .section {
    padding: calc(64px + var(--section-zig)) 0 64px;
  }

  .hero-script {
    left: 0;
    top: 0;
  }

  .hero-script-logo {
    margin: 0 auto -220px;
    transform: translateY(-60px);
  }

  .hero-home .container::before {
    top: -130px;
    width: clamp(340px, 77vw, 590px);
  }

  .has-hero-circle-menu .subpage-hero .container {
    min-height: clamp(210px, 66vw, 300px);
  }

  .has-hero-circle-menu .subpage-hero .container::before {
    top: -130px;
    width: clamp(340px, 77vw, 590px);
  }

  .has-hero-circle-menu::before {
    top: -60px;
    width: clamp(340px, 77vw, 590px);
  }

  .has-hero-circle-menu.hero-menu-open .hero-circle-menu {
    top: 26%;
  }

  .hero-circle-menu {
    top: 40%;
    width: min(420px, 94vw);
    gap: 12px;
  }

  .hero-circle-link {
    width: min(100%, 320px);
    padding: 12px 18px;
    font-size: clamp(1.22rem, 6vw, 1.9rem);
  }

  .hero-image-wrap img {
    width: min(100%, 560px);
    max-width: 560px;
    min-height: 380px;
    transform: translateY(-140px);
  }

  .feature-grid,
  .news-grid,
  .partner-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .faq-section {
    --faq-image-height: clamp(230px, 56vw, 340px);
    padding: 62px 0 68px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .faq-intro {
    padding-top: 0;
  }

  .faq-title {
    font-size: clamp(2.2rem, 11vw, 3.1rem);
    margin-left: clamp(8px, 2.8vw, 18px);
  }

  .faq-intro-image {
    width: min(100%, 360px);
    height: var(--faq-image-height);
    max-height: var(--faq-image-height);
  }

  .faq-card {
    margin-top: 42px;
    min-height: var(--faq-card-height);
    border-radius: 28px;
    padding: 0;
  }

  .faq-card summary {
    min-height: var(--faq-card-height);
    padding: 0 22px;
  }

  .faq-card summary {
    font-size: clamp(1.3rem, 1.55vw, 2rem);
  }

  .faq-card p {
    padding: 0 22px 20px;
    font-size: clamp(0.95rem, 4vw, 1.04rem);
    max-width: 100%;
  }

  .news-pagination {
    gap: 8px;
  }

  .news-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.94rem;
  }

  .news-card-admin {
    top: 10px;
    right: 10px;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100% - 20px);
  }

  .partner-card-admin {
    top: 10px;
    right: 10px;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100% - 20px);
  }

  .news-edit-btn {
    font-size: 0.82rem;
    padding: 6px 10px;
  }

  .news-delete-btn {
    font-size: 0.82rem;
    padding: 6px 10px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .contact-grid,
  .contact-field-row {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 68px 0 78px;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
}
