:root {
  color-scheme: dark;
  --bg: #09110f;
  --panel: #101a18;
  --panel-2: #17231f;
  --text: #f3fbf7;
  --muted: #b7c8bf;
  --line: rgba(255, 255, 255, 0.13);
  --green: #51d16f;
  --cyan: #59c7e8;
  --amber: #f0b85b;
  --danger: #ff756d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 58px);
  background: rgba(9, 17, 15, 0.8);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.hero-actions,
.contact-actions,
.included-list,
.trust-band,
.hero-stats {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(81, 209, 111, 0.6);
  background: linear-gradient(135deg, #1b6d3d, #235f74);
  border-radius: 7px;
  font-size: 0.88rem;
}

.site-nav {
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 16px;
  background: var(--green);
  color: #07110c;
  border-radius: 7px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 118px clamp(20px, 5vw, 72px) 52px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/minecraft-server-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 17, 15, 0.96) 0%, rgba(9, 17, 15, 0.78) 42%, rgba(9, 17, 15, 0.16) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(9, 17, 15, 0) 32%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.hero-copy,
.section-heading p,
.config-copy p,
.contact-panel p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-copy {
  max-width: 650px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 850;
}

.primary {
  background: var(--green);
  color: #07110c;
}

.secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.ghost {
  width: 100%;
  border-color: rgba(81, 209, 111, 0.5);
  background: rgba(81, 209, 111, 0.1);
  color: #dfffe6;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  flex-wrap: wrap;
  gap: 12px;
  margin: 38px 0 0;
}

.hero-stats div {
  min-width: 142px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(16, 26, 24, 0.72);
  border-radius: 8px;
}

.hero-stats dt {
  font-size: 1.45rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 3px 0 0;
  color: var(--muted);
}

.trust-band {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  border-block: 1px solid var(--line);
  background: #0d1815;
}

.trust-band span,
.included-list span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d9e7df;
  font-size: 0.9rem;
}

.section,
.config-section,
.panel-section,
.faq-section,
.contact-section {
  padding: 86px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.plans-grid,
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card,
.technical article,
.panel-grid article,
.configurator,
.contact-panel,
details {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border-radius: 8px;
}

.plan-card {
  position: relative;
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: 28px;
}

.plan-card.featured {
  border-color: rgba(81, 209, 111, 0.62);
  box-shadow: var(--shadow);
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  background: rgba(240, 184, 91, 0.16);
  color: #ffdca3;
  border: 1px solid rgba(240, 184, 91, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.plan-price {
  margin-bottom: 14px;
  font-size: 2.5rem;
  font-weight: 950;
}

.plan-price span {
  color: var(--muted);
  font-size: 1rem;
}

.plan-card p:not(.plan-price),
.plan-card li,
.technical p,
details p {
  color: var(--muted);
  line-height: 1.6;
}

.plan-card ul {
  margin: 14px 0 26px;
  padding-left: 20px;
}

.plan-card .button {
  margin-top: auto;
}

.config-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 32px;
  align-items: start;
  background: #0d1513;
}

.included-list {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.configurator {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

label,
legend {
  display: block;
  margin-bottom: 10px;
  color: #e6f3ec;
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 7px;
  font: inherit;
}

select option {
  background: #101a18;
  color: var(--text);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.segmented label,
.check-row {
  cursor: pointer;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 7px;
  color: var(--muted);
  font-weight: 750;
}

.segmented input,
.check-row input {
  margin-right: 8px;
  accent-color: var(--green);
}

.check-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.quote-box {
  padding: 24px;
  border: 1px solid rgba(81, 209, 111, 0.42);
  background: linear-gradient(135deg, rgba(81, 209, 111, 0.12), rgba(89, 199, 232, 0.08));
  border-radius: 8px;
}

.quote-box span {
  color: var(--muted);
  font-weight: 800;
}

.quote-box strong {
  display: block;
  margin: 5px 0 8px;
  font-size: 3.2rem;
}

.quote-box p {
  color: #d3e6dc;
  line-height: 1.55;
}

.quote-box .button {
  width: 100%;
}

.technical {
  background:
    radial-gradient(circle at 15% 20%, rgba(81, 209, 111, 0.09), transparent 28%),
    #09110f;
}

.panel-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 30px;
  align-items: start;
  background: #09110f;
}

.panel-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

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

.panel-grid article {
  padding: 22px;
}

.panel-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.panel-grid code {
  color: #dfffe6;
}

.panel-grid .button {
  width: 100%;
  margin-top: 10px;
}

.tech-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.technical article {
  padding: 24px;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 30px;
  background: #0d1513;
}

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

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

.contact-section {
  background: linear-gradient(135deg, rgba(81, 209, 111, 0.15), rgba(89, 199, 232, 0.1)), #09110f;
}

.contact-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  text-align: center;
}

.contact-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.store-page {
  padding: 116px clamp(20px, 5vw, 72px) 72px;
}

.store-hero {
  max-width: 850px;
  margin-bottom: 32px;
}

.store-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.7rem);
}

.store-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.checkout-card,
.order-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border-radius: 8px;
  padding: 24px;
}

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

.checkout-card h2 {
  margin: 8px 0 0;
  font-size: 1.55rem;
}

.checkout-summary {
  position: sticky;
  top: 92px;
}

.order-result {
  margin-top: 16px;
  color: #dfffe6;
  line-height: 1.6;
}

.admin-panel {
  display: grid;
  gap: 22px;
}

.orders-list {
  display: grid;
  gap: 14px;
}

.order-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.order-card span {
  padding: 5px 9px;
  border: 1px solid rgba(81, 209, 111, 0.35);
  color: #dfffe6;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.order-card p {
  color: var(--muted);
  line-height: 1.55;
}

.order-card pre {
  overflow: auto;
  max-height: 340px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 7px;
  color: #d9e7df;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .plans-grid,
  .tech-grid,
  .config-section,
  .panel-section,
  .panel-grid,
  .checkout-layout,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .plan-card {
    min-height: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(9, 17, 15, 0.94), rgba(9, 17, 15, 0.55)),
      linear-gradient(0deg, var(--bg) 0%, rgba(9, 17, 15, 0) 34%);
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 98px;
  }

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

  .site-footer {
    flex-direction: column;
  }

  .hero-stats div {
    flex: 1 1 132px;
  }
}
