:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #000000;
  --muted: #000000;
  --shell-width: 960px;
  --shell-padding: clamp(24px, 3vw, 48px);
  --accent: #4d2bff;
  --link: #3f5da8;
  font-size: 15px;
}

html {
  height: 100%;
  scrollbar-gutter: stable both-edges;
}

@media (max-width: 1024px) {
  :root {
    --shell-padding: clamp(32px, 6vw, 60px);
  }
}

@media (max-width: 720px) {
  :root {
    --shell-padding: clamp(20px, 7vw, 32px);
  }
}

@media (max-width: 480px) {
  :root {
    --shell-padding: clamp(16px, 8vw, 24px);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  visibility: hidden;
}

body.is-ready {
  visibility: visible;
}

.site-shell {
  width: 100%;
  max-width: var(--shell-width);
  padding: 0 var(--shell-padding);
  margin: 0 auto;
}

.site-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 1vw, 1rem);
  padding: 10px clamp(4px, 0.8vw, 8px) 6px;
  color: var(--text);
}

.site-title {
  font-weight: 600;
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 32px var(--shell-padding) 20px;
  width: 100%;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.header-pages {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 28px);
  font-size: clamp(0.85rem, 1vw, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-pages a {
  color: var(--text);
  text-decoration: none;
  padding: 10px clamp(4px, 0.8vw, 8px) 6px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 8px 16px;
  background: transparent;
  color: var(--text);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(10, 101, 255, 0.4);
  outline-offset: 2px;
}

.nav-toggle-label {
  line-height: 1;
}

.nav-toggle-icon {
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon::before {
  top: -5px;
}

.nav-toggle-icon::after {
  top: 5px;
}

.site-header.nav-open .nav-toggle-icon {
  background: transparent;
}

.site-header.nav-open .nav-toggle-icon::before {
  transform: translateY(5px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-icon::after {
  transform: translateY(-5px) rotate(-45deg);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px var(--shell-padding) 72px;
  width: 100%;
  gap: 32px;
  background: var(--bg);
}

.pages-nav {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
}

.pages-nav[hidden] {
  display: none;
}

.pages-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(16, 18, 35, 0.1);
  transition: background 0.2s ease, color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.pages-nav a:hover,
.pages-nav a:focus-visible {
  background: rgba(16, 18, 35, 0.05);
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px var(--shell-padding) 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  width: 100%;
}

.footer-text {
  font-style: normal;
  line-height: 1.4;
  margin: 0;
}

.footer-text .address-line {
  display: block;
}

.footer-text .address-line+.address-line {
  margin-top: 4px;
}

.footer-text .address-line.is-registration {
  white-space: nowrap;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  font-size: 0.8rem;
}

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

.license-badge img {
  width: 92px;
  height: auto;
}

.license-badge:hover,
.license-badge:focus-visible {
  border-color: rgba(0, 0, 0, 0.2);
}

.accent {
  color: var(--accent);
}

.page-body a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.page-view {
  width: 100%;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: var(--bg);
}

.page-view.is-visible {
  opacity: 1;
}

.page-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg);
}

.page-body {
  text-align: left;
  line-height: 1.75;
  color: var(--text);
  font-size: 1rem;
  background: var(--bg);
}

.contact-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page-body h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.page-body p {
  margin-bottom: 1.2rem;
}

.page-body ul {
  padding-left: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.page-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
}

.profile-portrait {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.profile-portrait img {
  width: 184px;
  height: 184px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 0;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.profile-name {
  font-weight: 600;
  font-size: 1.3rem;
  text-align: center;
  margin: 0;
  letter-spacing: 0.01em;
}

.profile-role {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.profile-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease, transform 0.2s ease;
}

.profile-links img {
  width: 18px;
  height: 18px;
}

.profile-links a:hover,
.profile-links a:focus-visible {
  background: rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.team-panel {
  margin-top: 32px;
}

.team-grid {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  padding: 5px 20px 22px;
  border-radius: 32px;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 320px;
  gap: 2px;
}

.team-photo {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  object-fit: cover;
}

.team-info {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-name,
.team-role {
  display: block;
  line-height: 1.2;
  margin: 0;
}

.team-name {
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 2.2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-name span {
  display: block;
  line-height: 1.1;
}

.team-role {
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: normal;
}

.team-links {
  margin-top: auto;
  padding-top: 12px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.team-link {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.team-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.team-link:hover,
.team-link:focus-visible {
  background: rgba(0, 0, 0, 0.08);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-field label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-button {
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.form-button:hover,
.form-button:focus-visible {
  opacity: 0.85;
}

.form-status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 960px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding-top: 24px;
    gap: 16px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-pages {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: none;
  }

  .site-header.nav-open .header-pages {
    display: flex;
  }

  .main-content {
    padding: 48px var(--shell-padding) 60px;
    align-items: stretch;
  }

  .pages-nav {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .footer-text .address-line.is-registration {
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .main-content {
    padding: 36px var(--shell-padding) 48px;
  }

  .pages-nav {
    flex-direction: column;
    width: 100%;
  }

  .pages-nav a {
    width: 100%;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 24px var(--shell-padding) 32px;
  }

  .site-footer {
    text-align: center;
    align-items: center;
  }
}
