/* A shared visual identity for the header, homepage and footer. */
:root {
  --shell-background: linear-gradient(115deg, #004e2b 0%, #006437 68%, #007a3d 100%);
  --shell-text: #e4f3e9;
  --shell-accent: #ead5ff;
  --brand-ribbon: linear-gradient(90deg, #ad73d9 0%, #ad73d9 30%, #45ac71 30%, #45ac71 100%);
}

[hidden] { display: none !important; }
body { min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; min-width: 0; }
.container { max-width: 1240px; }
.hero > *, .footer-main > * { min-width: 0; }

.site-header, .site-footer {
  background: var(--shell-background);
  color: #fff;
  border: 0;
}
.site-header {
  backdrop-filter: none;
  box-shadow: 0 3px 18px #00381f18;
  flex-shrink: 0;
}
.site-header::after, .site-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--brand-ribbon);
}
.header-inner {
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'brand actions' 'navigation navigation';
  padding-block: 15px 9px;
  gap: 10px 36px;
}
.header-inner > .brand { grid-area: brand; }
.header-inner > .desktop-nav { grid-area: navigation; justify-content: center; border-top: 1px solid #ffffff25; padding-top: 8px; }
.header-inner > .header-actions { grid-area: actions; }
html { scroll-padding-top: 180px; }
.brand { gap: 14px; }
.brand img {
  width: 64px;
  height: 64px;
  padding: 4px;
  background: #fff;
  border-radius: 12px;
  flex: none;
}
.brand-name { color: #fff; font-size: 21px; line-height: 1.65; font-weight: 600; }
.brand-name span {
  color: var(--shell-text);
  font: 11px Arial, sans-serif;
  letter-spacing: 2.2px;
  margin-top: 3px;
}
.desktop-nav { gap: 8px; }
.desktop-nav a { padding: 11px 15px; border-radius: 9px; min-height: 46px; color: var(--shell-text); }
.desktop-nav a:hover { color: #fff; background: #ffffff12; }
.desktop-nav .active { color: #fff; background: #ffffff16; }
.desktop-nav .active::after { background: var(--shell-accent); bottom: 4px; right: 15px; width: 20px; }
.header-actions { gap: 10px; flex: none; }
.header-login {
  background: var(--shell-accent);
  border-color: var(--shell-accent);
  color: #3f195e;
  padding: 10px 17px;
  min-height: 46px;
  gap: 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.header-login:hover { background: #fff; color: #3f195e; border-color: #fff; }
.header-login .icon { display: block; width: 20px; height: 20px; }
.menu-toggle {
  width: 46px;
  height: 46px;
  padding: 10px;
  color: #fff;
  background: #ffffff10;
  border: 1px solid #ffffff40;
  border-radius: 10px;
}
.menu-toggle[aria-expanded="true"] { background: #ffffff24; border-color: var(--shell-accent); }
.mobile-nav { background: transparent; padding: 0; border-top: 1px solid #ffffff26; max-height: min(70svh, calc(100svh - 100px)); overflow-y: auto; }
.mobile-nav-inner { padding-block: 14px 19px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 11px 14px; color: var(--shell-text); font-size: 15px; border-radius: 9px; }
.mobile-nav a:hover, .mobile-nav a.active { background: #ffffff14; color: #fff; }
.mobile-nav a.active { box-shadow: inset -3px 0 var(--shell-accent); }
.mobile-nav .icon { width: 17px; height: 17px; margin-inline-start: 8px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: #ead5ff; }

.hero { padding-block: 62px 68px; }
.hero h1 { text-wrap: balance; }
.hero-explore { min-height: 44px; margin-top: 18px; }
.quick-links a { min-height: 60px; }
.plain-button { min-height: 44px; }
.panel-bottom { padding-block: 10px; }
.registration-status { font-size: 16px; color: #f0e1ff; padding-block: 7px; }
.welcome-label { display: block; font-size: 24px; font-weight: 500; }

.site-footer { flex-shrink: 0; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; padding-block: 48px 38px; align-items: start; }
.footer-brand { width: max-content; max-width: 100%; display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 72px; height: 72px; }
.footer-brand .brand-name { color: #fff; font-family: var(--font); font-size: 21px; font-weight: 600; line-height: 1.65; letter-spacing: 0; }
.footer-brand .brand-name span { font: 11px Arial, sans-serif; letter-spacing: 2.2px; color: var(--shell-text); }
.footer-description { color: var(--shell-text); font-size: 15px; line-height: 1.85; margin-top: 18px; }
.footer-mail-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; font-size: 15px; color: var(--shell-accent); font-weight: 500; margin-top: 10px; }
.footer-mail-link .icon { width: 20px; height: 20px; transition: transform .2s; }
.footer-mail-link:hover .icon { transform: translateX(-4px); }
.footer-link-group { display: flex; flex-direction: column; align-items: flex-start; }
.footer-link-group h2 { font-size: 17px; line-height: 1.7; color: #fff; font-weight: 500; margin-block: 3px 15px; }
.footer-link-group a { display: flex; align-items: center; min-height: 44px; color: var(--shell-text); font-size: 15px; }
.footer-link-group a:hover { color: var(--shell-accent); text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom { gap: 18px; flex-wrap: wrap; padding-block: 17px; font-size: 13px; color: var(--shell-text); }
.footer-bottom a { min-height: 44px; font-size: 13px; }
.back-top { padding: 7px 12px; border: 1px solid #ffffff45; border-radius: 9px; }
.back-top .icon { transform: rotate(90deg); width: 18px; height: 18px; }

@media (max-width: 1100px) {
  .header-inner { gap: 15px; }
  .brand-name { font-size: 19px; }
  .brand img { width: 64px; height: 64px; }
  .desktop-nav { gap: 2px; font-size: 14px; }
  .desktop-nav a { padding-inline: 11px; }
  .header-login { padding-inline: 13px; font-size: 14px; }
  .footer-main { gap: 32px; }
}

@media (max-width: 950px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .header-inner { min-height: 0; padding-block: 12px; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'brand actions'; gap: 12px 18px; }
  html { scroll-padding-top: 112px; }
  .footer-main { grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
  .footer-brand .brand-name { font-size: 18px; }
  .footer-brand img { width: 60px; height: 60px; }
}

@media (min-width: 951px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 34px 40px; }
  .hero-copy { max-width: 580px; }
  .hero h1 { font-size: clamp(36px, 7vw, 51px); margin-block: 15px 12px; line-height: 1.4; }
  .hero-description { line-height: 1.85; font-size: 16px; }
  .domain-signature { margin-top: 18px; }
  .hero-explore { margin-top: 12px; }
  .panel-content { padding: 23px 28px; }
  .panel-content h2 { font-size: 30px; }
  .panel-content h2 br { display: none; }
  .panel-topline { padding: 17px 26px; }
  .panel-bottom { padding: 10px 26px; flex-wrap: wrap; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding-block: 35px 25px; }
  .footer-identity { grid-column: 1 / -1; border-bottom: 1px solid #ffffff30; padding-bottom: 22px; }
  .footer-brand img { width: 68px; height: 68px; }
  .footer-brand .brand-name { font-size: 21px; }
  .footer-description { margin-top: 16px; }
  .footer-link-group h2 { margin-bottom: 10px; }
  .footer-bottom p { width: 100%; }
  .footer-bottom .back-top { margin-inline-start: auto; }
}

@media (max-width: 650px) {
  html { scroll-padding-top: 104px; }
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 0; padding-block: 11px 13px; gap: 12px 10px; }
  .brand { gap: 10px; }
  .brand img { width: 56px; height: 56px; border-radius: 10px; padding: 3px; }
  .brand-name { font-size: 17px; }
  .brand-name span { font-size: 10px; letter-spacing: 1.7px; }
  .header-actions { gap: 8px; }
  .header-login { min-height: 44px; padding: 9px 12px; gap: 9px; font-size: 14px; }
  .header-login .icon { display: block; width: 20px; height: 20px; }
  .menu-toggle { width: 44px; height: 44px; }
  .mobile-nav a { font-size: 14px; padding-inline: 11px; }
  .hero h1 { font-size: clamp(34px, 8.6vw, 46px); letter-spacing: -.6px; }
  .hero-explore { font-size: 15px; }
  .mail-panel { border-radius: 18px; }
  .panel-content { padding: 20px 24px; }
  .panel-content h2 { font-size: 28px; }
  .panel-content > p:not(.provider-note) { font-size: 16px; margin-bottom: 20px; }
  .provider-note { font-size: 13px; }
  .panel-bottom { padding: 8px 22px; gap: 5px 12px; font-size: 14px; }
  .plain-button { font-size: 14px; }
  .button { min-height: 52px; }
  .quick-links a { padding-block: 17px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .service-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 4px 13px; min-height: 0; padding: 22px 18px; border-radius: 14px; }
  .service-card-top { display: contents; }
  .service-icon { grid-column: 1; grid-row: 1 / 4; width: 44px; height: 44px; }
  .card-arrow { grid-column: 3; grid-row: 2; width: 19px; height: 19px; margin-top: 7px; }
  .service-tag { grid-column: 2; grid-row: 1; font-size: 13px; margin-bottom: 0; }
  .service-card h3 { grid-column: 2; grid-row: 2; font-size: 20px; line-height: 1.6; }
  .service-card p { grid-column: 2 / 4; grid-row: 3; font-size: 15px; line-height: 1.85; margin-top: 2px; }
  .service-bottom { grid-column: 2 / 4; grid-row: 4; font-size: 14px; padding-top: 10px; }
  .help-section .text-link, details .text-link { min-height: 44px; }
  .footer-brand img { width: 64px; height: 64px; }
  .footer-brand .brand-name { font-size: 20px; }
  .footer-link-group h2 { font-size: 16px; }
  .footer-link-group a { font-size: 14px; }
  .footer-bottom, .footer-bottom a { font-size: 12px; }
  .footer-bottom { gap: 8px 14px; }
}

@media (max-width: 440px) {
  .header-login { width: 44px; height: 44px; padding: 10px; justify-content: center; }
  .header-login span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .header-login .icon { width: 22px; height: 22px; }
  .mobile-nav-inner { grid-template-columns: 1fr; gap: 4px; padding-block: 10px 14px; }
  .mobile-nav a { font-size: 16px; min-height: 46px; }
  .footer-main { gap: 22px 16px; }
}

@media (max-width: 350px) {
  .container { width: calc(100% - 28px); }
  .brand-name { font-size: 15px; }
  .brand img { width: 50px; height: 50px; }
  .header-actions { gap: 6px; }
  .hero h1 { font-size: 32px; }
  .service-card { grid-template-columns: 38px minmax(0, 1fr) 18px; column-gap: 10px; padding-inline: 15px; }
  .service-icon { width: 38px; height: 38px; }
  .service-card h3 { font-size: 18px; }
  .footer-link-group a { overflow-wrap: anywhere; }
}

@media (max-height: 500px) and (max-width: 950px) {
  .site-header { position: relative; }
}
