/* Site interface */

/* Theme tokens */
:root {
  --brand-accent: #ef4444;
  --brand-accent-strong: #991b1b;
  --ink: #3d3430;
  --ink-strong: #20130f;
  --line: #f0c6b6;
  --surface-muted: #fff4ed;
  --surface-soft: #fffaf6;
  --white: #ffffff;
  --black: #000000;
  --space-xs: 0.44rem;
  --space-sm: 0.67rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --layout-max: 1200px;
  --type-small: 13px;
  --type-medium: 20px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--white);
}

body.has-telegram-band {
  padding-bottom: 60px;
}

a {
  color: var(--brand-accent);
  text-decoration: none;
}

a:hover {
  color: var(--brand-accent-strong);
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.container {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

/* Header */
#header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.layout-wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-title a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--ink-strong);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* Navigation */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.nav-list li {
  margin: 0;
}

.nav-link {
  color: var(--ink);
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--brand-accent);
}

/* Mobile Menu */
.drawer-trigger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.ui-icon {
  fill: var(--ink);
}

/* Offcanvas Menu */
.drawer-shell {
  display: none;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--white);
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: right 0.3s;
  z-index: 1000;
}

.drawer-panel.is-active {
  right: 0;
}

.drawer-inner {
  padding: 20px;
}

.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  float: right;
}

.drawer-nav ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.drawer-nav li {
  margin: 10px 0;
}

.drawer-nav a {
  display: block;
  padding: 10px;
  color: var(--ink);
}

/* Main Content */
#main {
  min-height: calc(100vh - 200px);
}

.page-area {
  padding: 40px 20px;
}

/* Hero Section */
.hero-panel {
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-strong) 100%);
  padding: 40px 20px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 30px;
}

.hero-panel .headline {
  color: var(--white) !important;
  margin: 0;
  font-size: 2em;
}

.headline {
  color: var(--ink) !important;
  font-size: 2em;
  margin-bottom: 20px;
}

/* Entry Content */
.content-body {
  max-width: 900px;
  margin: 0 auto;
}

.seo-panel,
.contact-panel,
.service-intro,
.service-note,
.legal-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 28px;
}

.seo-panel h2,
.contact-panel h2,
.service-intro h2,
.service-note h2 {
  margin-top: 0;
}

.seo-copy {
  margin: 30px 0;
}

.section-title {
  text-align: center;
}

.request-card {
  flex-basis: 60%;
  max-width: 75%;
  margin: 0 auto;
}

.faq-list {
  margin-top: 32px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 0 18px;
  margin: 12px 0;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink-strong);
  font-weight: 700;
  padding: 16px 0;
}

.faq-list details p {
  margin-top: 0;
}

.compact-faq {
  margin-top: 24px;
}

.text-center {
  text-align: center;
}

.text-small {
  font-size: var(--type-small);
}

/* Headings */
h2 {
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--ink-strong);
  font-weight: 600;
}

h5 {
  font-size: 1.2em;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--ink-strong);
  font-weight: 600;
}

/* Columns / Grid */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.service-card {
  flex: 1;
  min-width: 200px;
  padding: var(--space-sm);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card h5 {
  text-align: center;
  margin-bottom: 15px;
  color: var(--ink-strong);
}

/* Buttons */
.action-list {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.action-item {
  display: inline-block;
}

.action-item.is-fluid.is-fill {
  width: 100%;
}

.action-link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--brand-accent);
  color: var(--white) !important;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  width: 100%;
}

.action-link:hover {
  background: var(--brand-accent-strong);
  transform: translateY(-1px);
}

/* Download Button Variants */
.btn-download-1 .action-link {
  background-image: linear-gradient(45deg, #ff5c57, #c62828) !important;
}
.btn-download-2 .action-link {
  background-image: linear-gradient(45deg, #43aa8b, #1e5f48) !important;
}
.btn-download-3 .action-link {
  background-image: linear-gradient(45deg, #9b5de5, #4c1d95) !important;
}
.btn-download-4 .action-link {
  background-image: linear-gradient(45deg, #a16207, #713f12) !important;
}
.btn-download-5 .action-link {
  background-image: linear-gradient(45deg, #ff7f11, #b34700) !important;
}

.btn-download-1 .action-link:hover,
.btn-download-2 .action-link:hover,
.btn-download-3 .action-link:hover,
.btn-download-4 .action-link:hover,
.btn-download-5 .action-link:hover {
  filter: brightness(1.1);
}

/* Form */
#service-request-form {
  background: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#service-request-form input[type="url"] {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 16px;
  flex: 1;
}

#service-request-form button {
  padding: 12px 24px;
  background-color: var(--brand-accent);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

#service-request-form button:hover {
  background-color: var(--brand-accent-strong);
}

@media (min-width: 600px) {
  #service-request-form {
    flex-direction: row;
    align-items: center;
  }
  #service-request-form button {
    margin-left: 10px;
  }
}

/* Lists */
.content-list {
  padding-left: 20px;
}

.content-list li + li {
  margin-top: 12px;
}

/* Separator */
.section-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

/* Footer */
#footer {
  background: var(--surface-muted);
  padding: 30px 20px;
  text-align: center;
}

.telegram-band {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  z-index: 900;
  background: #0b8fc7;
  color: var(--white);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.16);
}

.telegram-band.is-hidden {
  display: none;
}

.telegram-band-inner {
  width: 100%;
  box-sizing: border-box;
  max-width: 760px;
  min-height: 44px;
  margin: 0 auto;
  padding: 7px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.telegram-band-link {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.telegram-band-link:hover {
  color: var(--white);
}

.telegram-band-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px;
  fill: var(--white);
}

.telegram-band-copy {
  display: block;
  min-width: 0;
  line-height: 1.15;
}

.telegram-band-copy strong,
.telegram-band-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telegram-band-copy strong {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.telegram-band-copy span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
}

.telegram-band-join {
  flex: 0 0 auto;
  min-width: 74px;
  border-radius: 999px;
  background: var(--white);
  color: #0b79b0;
  padding: 6px 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.telegram-band-join:hover {
  color: #075a83;
}

.telegram-band-close {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.footer-links li {
  display: inline;
}

.footer-links li:not(:last-child)::after {
  content: "|";
  margin-left: 4px;
}

/* Terms Section Highlight */
.terms-section:target {
  background-color: #ffff00;
  border: 2px solid #ffeeba;
  padding: 5px;
  scroll-margin-top: 80px;
}

/* Utilities */
.btext {
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  body.has-telegram-band {
    padding-bottom: 70px;
  }

  [data-device="desktop"] {
    display: none !important;
  }
  
  [data-device="mobile"] {
    display: block !important;
  }
  
  .drawer-trigger {
    display: block;
  }
  
  .service-grid {
    flex-direction: column;
  }
  
  .service-card {
    min-width: 100%;
  }

  .telegram-band-inner {
    max-width: 390px;
    min-height: 58px;
    margin: 0;
    padding: 8px 12px;
    justify-content: space-between;
    gap: 8px;
  }

  .telegram-band-icon {
    width: 26px;
    height: 26px;
    padding: 5px;
  }

  .telegram-band-copy strong {
    font-size: 12px;
  }

  .telegram-band-copy span {
    font-size: 10px;
  }

  .telegram-band-join {
    min-width: 58px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .telegram-band-close {
    width: 24px;
    height: 24px;
    font-size: 18px;
  }

  .request-card {
    max-width: 100%;
  }
}

@media (min-width: 769px) {
  [data-device="mobile"] {
    display: none !important;
  }
  
  [data-device="desktop"] {
    display: block !important;
  }
}

/* Background colors */
.surface-light,
.surface {
  background-color: var(--white);
}

.border-muted {
  border-color: var(--line);
}

/* Constrained layout */
.content-frame {
  max-width: 900px;
  margin: 0 auto;
}

.content-frame > * {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.layout-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.layout-flow > * + * {
  margin-top: var(--space-md);
}

/* Article */
article {
  padding: 20px;
}

/* Small text */
small {
  color: #666;
  font-size: 12px;
}

/* Domain Variant Start */
body {
  background: linear-gradient(180deg, #fff3ed 0%, #ffffff 35%);
}

#header {
  border-bottom-color: #f0c6b6;
  box-shadow: 0 8px 24px rgba(185, 28, 28, 0.15);
}

.brand-title a {
  color: #20130f;
}

.nav-link:hover,
.drawer-nav a:hover {
  color: #ef4444;
}

.hero-panel {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 58%, #7f1d1d 100%);
  box-shadow: 0 18px 38px rgba(185, 28, 28, 0.15);
}

.seo-panel,
.contact-panel,
.service-intro,
.service-note,
.legal-summary,
.faq-list details,
.service-card {
  background: #fffaf6;
  border-color: #f0c6b6;
  box-shadow: 0 12px 28px rgba(185, 28, 28, 0.15);
}

.seo-copy {
  border-left: 4px solid #ef4444;
  padding-left: 20px;
}

.action-link,
#service-request-form button {
  background: #ef4444;
}

.action-link:hover,
#service-request-form button:hover {
  background: #991b1b;
}

#service-request-form input[type="url"]:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
  outline: none;
}

.telegram-band {
  background: linear-gradient(90deg, #b91c1c 0%, #f97316 100%);
}

.telegram-band-join {
  color: #991b1b;
}

#footer {
  background: #fff4ed;
}
/* Domain Variant End */

/* Independent Domain Layout Start */
.independent-ui .page-area {
  padding: 36px 18px 48px;
}

.brand-hero,
.service-stage,
.info-stage {
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto 32px;
  display: grid;
  align-items: center;
  gap: 28px;
  overflow: hidden;
}

.brand-hero {
  min-height: 380px;
}

.info-stage {
  min-height: 250px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy p,
.service-stage-copy p,
.info-stage-copy p {
  margin: 12px 0 0;
  max-width: 650px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.primary-cta,
.secondary-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-weight: 800;
  text-decoration: none;
}

.hero-art {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-drawing {
  width: min(320px, 80vw);
  max-height: 280px;
  display: block;
}

.home-independent .intro-panel {
  margin-bottom: 26px;
}

.home-independent .service-card p,
.service-independent .service-card p {
  margin: 0 0 18px;
}

.home-independent .service-card h5,
.service-independent .service-card h5 {
  margin-bottom: 8px;
}

.service-request-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(260px, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.service-request-layout .request-card {
  max-width: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-request-layout .service-note {
  margin-bottom: 0;
}

.info-independent {
  position: relative;
}

@media (max-width: 820px) {
  .brand-hero,
  .service-stage,
  .info-stage {
    grid-template-columns: 1fr !important;
    min-height: auto;
    width: min(100%, calc(100vw - 24px));
    margin-bottom: 22px;
    padding: 24px !important;
  }

  .hero-art {
    min-height: 170px;
    order: -1;
  }

  .service-request-layout {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-cta,
  .secondary-cta {
    width: 100%;
  }
}

.site-win .brand-hero,
.site-win .service-stage,
.site-win .info-stage {
  grid-template-columns: 1.06fr 0.94fr;
  padding: 34px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.13) 25%, transparent 25%) 0 0 / 34px 34px,
    linear-gradient(135deg, #fffaf6 0%, #fff0e8 100%);
  border: 2px solid #ef4444;
  box-shadow: 10px 10px 0 #ffd6c2;
}

.site-win .hero-kicker {
  background: #20130f;
  color: #fff;
  border-radius: 6px;
}

.site-win .primary-cta,
.site-win .action-link,
.site-win #service-request-form button {
  border-radius: 8px;
  background: #ef4444;
  color: #fff !important;
  box-shadow: 4px 4px 0 #ffd6c2;
}

.site-win .secondary-cta {
  border-radius: 8px;
  border: 2px solid #20130f;
  color: #20130f;
  background: #fff;
}

.site-win .win-scorebar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.site-win .win-scorebar span {
  padding: 14px;
  border-radius: 8px;
  background: #20130f;
  color: #fff;
  text-align: center;
  font-weight: 900;
}

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

.site-win .win-board-card {
  border-radius: 12px;
  padding: 20px;
  border-width: 2px;
}

.site-win .board-step {
  display: inline-flex;
  padding: 6px 10px;
  margin-bottom: 14px;
  border-radius: 6px;
  background: #20130f;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.site-win .win-board {
  fill: #fff4ed;
  stroke: #ef4444;
  stroke-width: 7;
}

.site-win .win-lines {
  fill: none;
  stroke: #991b1b;
  stroke-width: 8;
  stroke-linecap: round;
}

.site-win .win-star {
  fill: #f97316;
  stroke: #991b1b;
  stroke-width: 4;
}

@media (max-width: 900px) {
  .site-social .social-strip,
  .site-vip .vip-status,
  .site-win .win-scorebar {
    grid-template-columns: 1fr;
  }

  .site-social .social-mosaic,
  .site-world .world-route-grid,
  .site-win .win-board-grid {
    grid-template-columns: 1fr;
  }

  .site-social .tile-1,
  .site-social .tile-4 {
    grid-row: auto;
  }

  .site-vip .vip-slot {
    grid-template-columns: 1fr;
  }
}
/* Independent Domain Layout End */
