:root {
  --bg: #0d0b09;
  --bg-soft: rgba(23, 18, 13, 0.9);
  --bg-panel: rgba(28, 21, 15, 0.86);
  --bg-panel-strong: rgba(34, 25, 17, 0.96);
  --text: #f7f1e5;
  --muted: #c5b59f;
  --line: rgba(255, 194, 102, 0.12);
  --line-strong: rgba(255, 194, 102, 0.24);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.3);
  --accent: #ffb020;
  --accent-deep: #ff7a00;
  --accent-soft: rgba(255, 176, 32, 0.14);
  --gold: #ffd257;
  --gold-soft: rgba(255, 210, 87, 0.16);
  --danger: #ff8a6a;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1240px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 176, 32, 0.14), transparent 24%),
    radial-gradient(circle at 90% 0%, rgba(255, 122, 0, 0.16), transparent 26%),
    linear-gradient(180deg, #17120d 0%, #0d0b09 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 90%);
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  color: inherit;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  position: relative;
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 22px 0 30px;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.5;
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}

.ambient--one {
  top: 12%;
  left: 2%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.24), transparent 65%);
}

.ambient--two {
  right: 4%;
  top: 18%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.2), transparent 70%);
  animation-duration: 13s;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 11, 9, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffd257 0%, #ff8e0a 100%);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18), 0 0 32px rgba(255, 176, 32, 0.42);
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__text strong {
  font-family: "Russo One", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand__text span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topnav__link {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.topnav__link:hover,
.topnav__link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.topnav__link:active {
  transform: scale(0.98);
}

main {
  position: relative;
  z-index: 1;
}

.tab-panel {
  display: none;
  animation: tab-appear 360ms ease;
}

.tab-panel.is-active {
  display: block;
}

.panel-shell,
.panel,
.footer {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(35, 26, 18, 0.9), rgba(14, 11, 9, 0.96));
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding: 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 340px;
  height: 340px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 176, 32, 0.22), rgba(255, 122, 0, 0.08)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  transform: rotate(16deg);
  opacity: 0.5;
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffd257;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.74rem;
  font-weight: 800;
}

.hero h1,
.page-head h2,
.section-heading h2 {
  margin: 0;
  line-height: 0.96;
}

.hero h1 {
  font-family: "Russo One", sans-serif;
  font-size: clamp(3.8rem, 10vw, 6.8rem);
  letter-spacing: -0.05em;
}

.hero__lead,
.page-head p,
.panel__text,
.panel__note,
.footer p,
.section-heading p,
.rules-prose,
.hero__lead {
  max-width: 710px;
  margin: 22px 0 0;
  line-height: 1.8;
  font-size: 1.06rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: scale(0.98);
}

.button--primary {
  color: #1c1208;
  background: linear-gradient(180deg, #ffd257, #ff9b14);
  box-shadow: 0 18px 40px rgba(255, 122, 0, 0.26);
}

.button--primary:hover {
  box-shadow: 0 20px 46px rgba(255, 122, 0, 0.36);
}

.button--cta {
  padding-left: 28px;
  padding-right: 28px;
  box-shadow:
    0 22px 52px rgba(255, 122, 0, 0.34),
    0 0 0 1px rgba(255, 210, 87, 0.18) inset;
}

.button--cta:hover {
  box-shadow:
    0 26px 58px rgba(255, 122, 0, 0.42),
    0 0 0 1px rgba(255, 210, 87, 0.24) inset;
}

.button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button--soft {
  color: #ffe4b5;
  background: rgba(255, 122, 0, 0.14);
}

.button--soft:hover {
  background: rgba(255, 122, 0, 0.2);
}

.button--wide {
  width: 100%;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.chip--accent {
  color: #ffe8b8;
  background: rgba(255, 176, 32, 0.14);
}

.info-card,
.status-card,
.advantage-card,
.news-card,
.review-card,
.team-card,
.gallery-card,
.social-card,
.apply-card,
.command-card,
.history-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.team-grid .team-card {
  background:
    linear-gradient(180deg, rgba(255, 176, 32, 0.04), transparent 40%),
    linear-gradient(180deg, rgba(24, 18, 13, 0.98), rgba(14, 11, 9, 0.98));
  border-color: rgba(255, 176, 32, 0.1);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.team-grid .team-card:hover {
  background:
    linear-gradient(180deg, rgba(255, 176, 32, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(28, 20, 14, 0.99), rgba(15, 11, 9, 0.99));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.info-card {
  display: grid;
  gap: 8px;
  padding: 24px;
}

.info-card--glow {
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.12), transparent 60%), var(--bg-panel);
}

.info-card__label,
.status-card__label,
.ip-card__label,
.news-card__date,
.team-card__role,
.review-card__author,
.social-card__hint,
.gallery-card__tag,
.apply-card__eyebrow,
.stats-card__label {
  color: var(--muted);
  font-size: 0.86rem;
}

.info-card__value,
.status-card__value,
.ip-card__value {
  font-size: 1.3rem;
}

.info-card__hint {
  color: #ffd08a;
  font-size: 0.88rem;
}

.copy-link {
  justify-self: start;
  margin-top: 4px;
  padding: 0;
  color: #ffd257;
  text-decoration: underline;
  text-decoration-color: rgba(255, 210, 87, 0.4);
  text-underline-offset: 4px;
}

.copy-link:hover {
  color: var(--text);
}

.section-grid,
.section-block {
  margin-top: 24px;
}

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

.section-block {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.panel {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.panel--feature {
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.1), transparent 52%), var(--bg-panel);
}

.panel--timeline {
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.1), transparent 56%), var(--bg-panel);
}

.panel--community {
  background: radial-gradient(circle at top right, rgba(255, 176, 32, 0.12), transparent 32%), var(--bg-panel);
}

.panel--prose {
  margin-top: 24px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading--wide {
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.section-heading p,
.page-head p {
  margin: 12px 0 0;
  line-height: 1.75;
}

.panel__text,
.panel__note {
  margin: 0;
  line-height: 1.75;
}

.panel__note {
  margin-top: 16px;
}

.ip-card {
  display: grid;
  gap: 20px;
  align-content: start;
}

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

.status-card {
  padding: 20px;
}

.status-card__value {
  display: block;
  margin-top: 8px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid--advantages,
.card-grid--news,
.card-grid--history {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.advantage-card,
.news-card,
.history-stage {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

.advantage-card::before,
.history-stage::before,
.apply-card::before,
.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
}

.advantage-card:hover,
.news-card:hover,
.team-card:hover,
.review-card:hover,
.social-card:hover,
.apply-card:hover,
.command-card:hover,
.gallery-card:hover,
.history-stage:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.advantage-card__icon,
.team-card__avatar,
.social-card__icon,
.apply-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(255, 176, 32, 0.12);
  color: #ffe7ba;
  font-size: 1.05rem;
  font-weight: 800;
}

.advantage-card__title,
.news-card__title,
.history-stage__title,
.team-card__name,
.apply-card__title,
.gallery-card__title {
  display: block;
  margin-top: 18px;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.25;
}

.advantage-card__text,
.news-card__text,
.history-stage__text,
.team-card__text,
.apply-card__text,
.review-card__text,
.social-card__text,
.gallery-card__caption {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.advantage-card__tag,
.history-stage__tag {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffe7ba;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.steps,
.mood-list,
.stats-grid,
.team-grid,
.reviews-grid,
.social-grid,
.commands-grid,
.apply-grid {
  display: grid;
  gap: 16px;
}

.steps {
  counter-reset: start-steps;
}

.step-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px 18px 18px 74px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.step-card::before {
  counter-increment: start-steps;
  content: counter(start-steps);
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 176, 32, 0.14);
  color: #ffe7ba;
  font-weight: 800;
}

.step-card__title,
.mood-card__title,
.stats-card__value {
  font-size: 1.08rem;
  font-weight: 800;
}

.step-card__text,
.mood-card__text {
  color: var(--muted);
  line-height: 1.7;
}

.mood-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mood-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.news-card__date {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.14);
  color: #ffd7aa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 0;
}

.gallery-card:nth-child(5n + 1) {
  grid-column: span 2;
}

.gallery-card__button {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
}

.gallery-card__media,
.gallery-modal__placeholder {
  position: relative;
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(255, 176, 32, 0.16), rgba(16, 11, 8, 0.3)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 60%),
    #1a140f;
}

.gallery-card__media img,
.gallery-modal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card__media--placeholder::before,
.gallery-modal__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 18px 18px;
}

.gallery-card__body {
  position: absolute;
  inset: auto 16px 16px 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(8, 12, 9, 0.68);
  backdrop-filter: blur(10px);
}

.gallery-card__tag {
  display: inline-flex;
  margin-bottom: 8px;
}

.gallery-card__title {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.faq-item__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
}

.faq-item__button strong {
  font-size: 1rem;
}

.faq-item__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d9ffc2;
  transition: transform var(--transition), background var(--transition);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  background: rgba(255, 176, 32, 0.12);
}

.faq-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.faq-item__content-inner {
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.7;
}

.reviews-grid,
.social-grid,
.team-grid,
.commands-grid,
.apply-grid,
.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 176, 32, 0.07), transparent 48%),
    rgba(22, 16, 12, 0.92);
}

.command-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 86%);
}

.command-card__category {
  position: relative;
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffd7aa;
  background: rgba(255, 122, 0, 0.14);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-card__command {
  position: relative;
  display: inline-flex;
  width: fit-content;
  padding: 10px 12px;
  border: 1px solid rgba(255, 176, 32, 0.24);
  border-radius: 14px;
  color: #1c1208;
  background: linear-gradient(180deg, #ffd257, #ff9b14);
  box-shadow: 0 12px 28px rgba(255, 122, 0, 0.18);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.98rem;
  font-weight: 800;
}

.command-card__description {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.review-card,
.social-card,
.stats-card,
.team-card,
.apply-card {
  padding: 22px;
}

.review-card__rating {
  color: #ffd257;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
}

.review-card__author {
  display: block;
  margin-top: 16px;
}

.stats-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.stats-card__value {
  display: block;
  font-size: 2rem;
}

.stats-card__label {
  display: block;
  margin-top: 10px;
}

.social-card {
  text-decoration: none;
  color: inherit;
}

.social-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-card__title {
  font-size: 1.05rem;
  font-weight: 800;
}

.social-card__hint {
  display: block;
  margin-top: 14px;
}

.page-head {
  padding: 34px;
  border-radius: var(--radius-xl);
}

.page-head h2 {
  font-size: clamp(2.4rem, 7vw, 4.3rem);
  letter-spacing: -0.05em;
}

.rules-prose {
  display: grid;
  gap: 18px;
  max-width: none;
  margin: 0;
  line-height: 1.9;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.rules-prose p {
  margin: 0;
}

.rules-intro {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.rule-item {
  --rule-indent: 0px;
  --rule-number-scale: 1;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
  margin-left: var(--rule-indent);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 176, 32, 0.07), transparent 54%),
    rgba(18, 13, 10, 0.7);
}

.rule-item--level-2 {
  --rule-indent: clamp(10px, 2vw, 28px);
  --rule-number-scale: 0.94;
  background: rgba(255, 255, 255, 0.03);
}

.rule-item--level-3,
.rule-item--level-4 {
  --rule-indent: clamp(18px, 4vw, 48px);
  --rule-number-scale: 0.88;
  background: rgba(255, 255, 255, 0.025);
}

.rule-item__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.rule-item__number {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(42px * var(--rule-number-scale));
  min-height: calc(42px * var(--rule-number-scale));
  padding: 0 12px;
  border-radius: 14px;
  color: #1c1208;
  background: linear-gradient(180deg, #ffd257, #ff9b14);
  box-shadow: 0 12px 28px rgba(255, 122, 0, 0.18);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.rule-item h3 {
  margin: 6px 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.25;
}

.rule-item__body {
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.rule-item__body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 24px;
}

.rule-item__body li::marker {
  color: var(--accent);
}

.timeline-shell {
  margin-top: 24px;
  padding: 32px 22px 44px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd257 0%, #ff7a00 100%);
  box-shadow: 0 0 32px rgba(255, 176, 32, 0.18);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  align-items: center;
  min-height: 186px;
}

.timeline-item__card {
  position: relative;
  width: min(100%, 400px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.08), transparent 50%), rgba(29, 21, 16, 0.94);
  box-shadow: var(--shadow-soft);
}

.timeline-item__card::after {
  content: "";
  position: absolute;
  top: 34px;
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd257, #ff7a00);
}

.timeline-item--left .timeline-item__card {
  justify-self: end;
}

.timeline-item--left .timeline-item__card::after {
  right: -38px;
}

.timeline-item--right .timeline-item__card {
  grid-column: 3;
}

.timeline-item--right .timeline-item__card::after {
  left: -38px;
}

.timeline-item__dot {
  position: relative;
  z-index: 1;
  grid-column: 2;
  justify-self: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffd257, #ff8f0c);
  border: 3px solid rgba(13, 11, 9, 0.95);
  box-shadow: 0 0 0 12px rgba(255, 176, 32, 0.1);
}

.timeline-item__date {
  color: #ffd99c;
  font-size: 0.88rem;
  font-weight: 800;
}

.timeline-item__title {
  display: block;
  margin-top: 10px;
  font-size: 1.4rem;
  font-weight: 800;
}

.timeline-item__text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.timeline-item__tag {
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.14);
  color: #ffd7aa;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-card__avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 210, 87, 0.16), rgba(255, 122, 0, 0.12));
  border: 1px solid rgba(255, 176, 32, 0.14);
}

.team-card__name {
  margin-top: 0;
}

.team-card__role {
  display: block;
  margin-top: 4px;
}

.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.team-card__tags span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 176, 32, 0.08);
  color: #dec2a0;
  font-size: 0.76rem;
}

.apply-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.apply-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.05);
  transition: background var(--transition), transform var(--transition);
}

.apply-card__link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 24px;
  padding: 24px 28px;
  border-radius: var(--radius-xl);
}

.footer strong {
  display: block;
  margin-bottom: 8px;
}

.footer p {
  margin: 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transition: background var(--transition), transform var(--transition);
}

.footer__links a:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 240px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 14, 0.92);
  box-shadow: var(--shadow-soft);
  animation: toast-in 220ms ease;
}

.toast--success {
  border-color: rgba(255, 176, 32, 0.3);
}

.toast--error {
  border-color: rgba(255, 126, 126, 0.3);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.gallery-modal.is-open {
  display: block;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 8, 0.78);
  backdrop-filter: blur(8px);
}

.gallery-modal__dialog {
  position: relative;
  width: min(calc(100% - 24px), 960px);
  margin: 44px auto;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 15, 0.94);
  box-shadow: var(--shadow);
}

.gallery-modal__close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.gallery-modal__media {
  margin-top: 14px;
  overflow: hidden;
  border-radius: 22px;
  min-height: 420px;
}

.gallery-modal__meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.gallery-modal__meta span {
  color: var(--muted);
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit;
  font-size: 0.95em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.count-up {
  will-change: contents;
}

@keyframes tab-appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 1080px) {
  .hero,
  .section-grid,
  .card-grid--advantages,
  .card-grid--news,
  .card-grid--history,
  .gallery-grid,
  .team-grid,
  .commands-grid,
  .apply-grid,
  .reviews-grid,
  .social-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-card:nth-child(5n + 1) {
    grid-column: auto;
  }
}

@media (max-width: 880px) {
  .topbar,
  .footer {
    display: grid;
    border-radius: 28px;
  }

  .footer__links {
    justify-content: flex-start;
  }

  .section-grid,
  .card-grid--advantages,
  .card-grid--news,
  .card-grid--history,
  .gallery-grid,
  .team-grid,
  .commands-grid,
  .apply-grid,
  .reviews-grid,
  .social-grid,
  .stats-grid,
  .mood-list,
  .status-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 18px;
    transform: none;
  }

  .timeline-item {
    grid-template-columns: 38px 1fr;
    min-height: auto;
    padding: 6px 0;
  }

  .timeline-item__dot {
    grid-column: 1;
    justify-self: start;
  }

  .timeline-item__card,
  .timeline-item--left .timeline-item__card,
  .timeline-item--right .timeline-item__card {
    grid-column: 2;
    justify-self: stretch;
    width: 100%;
  }

  .timeline-item__card::after,
  .timeline-item--left .timeline-item__card::after,
  .timeline-item--right .timeline-item__card::after {
    left: -30px;
    right: auto;
    width: 30px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--container));
    padding-top: 12px;
  }

  .topbar {
    position: static;
    padding: 16px;
  }

  .hero,
  .section-block,
  .panel,
  .page-head,
  .timeline-shell,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .gallery-modal__dialog {
    margin: 16px auto;
    width: min(calc(100% - 16px), 960px);
  }

  .gallery-modal__media {
    min-height: 280px;
  }

  .toast-stack {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }

  .rule-item__head {
    display: grid;
  }

  .rule-item,
  .rule-item--level-2,
  .rule-item--level-3,
  .rule-item--level-4 {
    --rule-indent: 0px;
  }
}
