:root {
   --bg: #120707;
   --panel: #1a0d0d;
   --panel-light: #241111;
   --line: #4a1b1b;
   --text: #f4efef;
   --muted: #c8b5b5;
   --accent: #cb2821;
   --accent-hover: #e03830;
   --accent-soft: rgba(203, 40, 33, 0.12);
   --shadow: rgba(0, 0, 0, 0.45);
}

* {
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
}

body {
   margin: 0;
   background:
      radial-gradient(circle at top left, rgba(203, 40, 33, 0.18), transparent 30rem),
      radial-gradient(circle at top right, rgba(120, 15, 15, 0.15), transparent 35rem),
      linear-gradient(180deg, #120707 0%, #190909 100%);
   color: var(--text);
   line-height: 1.6;
}

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

a:hover,
a:focus {
   text-decoration: underline;
}

.container {
   width: min(1120px, calc(100% - 32px));
   margin: 0 auto;
}

.site-header {
   padding: 72px 0 56px;
   border-bottom: 1px solid var(--line);
}

.header-grid {
   display: grid;
   grid-template-columns: 1.35fr 0.85fr;
   gap: 32px;
   align-items: center;
}

.eyebrow,
.section-label {
   margin: 0 0 12px;
   color: var(--accent);
   font-size: 0.78rem;
   font-weight: 700;
   letter-spacing: 0.14em;
   text-transform: uppercase;
}

h1,
h2,
h3 {
   margin: 0;
   line-height: 1.15;
}

h1 {
   max-width: 820px;
   font-size: clamp(2.2rem, 5vw, 4.6rem);
   letter-spacing: -0.05em;
}

h2 {
   font-size: clamp(1.6rem, 3vw, 2.45rem);
   letter-spacing: -0.035em;
}

h3 {
   font-size: 1.25rem;
}

.intro {
   max-width: 760px;
   margin: 24px 0 0;
   color: var(--muted);
   font-size: 1.1rem;
}

.terminal-card {
   background:
      linear-gradient(
         180deg,
         #261111 0%,
         #170a0a 100%
      );
   border: 1px solid #5f1f1f;
   border-radius: 18px;
   box-shadow: 0 20px 60px var(--shadow);
   overflow: hidden;
}

.terminal-bar {
   display: flex;
   gap: 8px;
   padding: 14px 16px;
   background: rgba(255, 255, 255, 0.04);
   border-bottom: 1px solid var(--line);
}

.terminal-bar span {
   width: 10px;
   height: 10px;
   border-radius: 50%;
   background: var(--accent);
   opacity: 0.7;
}

pre {
   margin: 0;
   padding: 22px;
   overflow-x: auto;
}

code {
   font-family: Consolas, Monaco, "Courier New", monospace;
   color: var(--text);
   font-size: 0.95rem;
}

.blocks-section,
.pdf-section {
   padding: 56px 0;
}

.service-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
   margin-top: 28px;
}

.service-card {
   position: relative;
   min-height: 420px;
   padding: 28px;
   background: rgba(26, 13, 13, 0.88);
   border: 1px solid var(--line);
   border-radius: 18px;
   box-shadow: 0 16px 42px var(--shadow);
   transition:
      transform 0.2s ease,
      border-color 0.2s ease;
}

.service-card:hover {
   transform: translateY(-4px);
   border-color: var(--accent);
}

.service-card::before {
   content: "";
   position: absolute;
   inset: 0;
   border-radius: 18px;
   pointer-events: none;
   background:
      linear-gradient(
         135deg,
         rgba(203, 40, 33, 0.18),
         transparent 50%
      );
}

.card-number {
   width: 46px;
   height: 46px;
   display: grid;
   place-items: center;
   margin-bottom: 24px;
   border: 1px solid var(--accent);
   border-radius: 12px;
   color: var(--accent);
   background: rgba(203, 40, 33, 0.08);
   font-weight: 700;
   font-family: Consolas, Monaco, "Courier New", monospace;
}

.service-card p {
   color: var(--muted);
}

.service-card ul {
   padding-left: 18px;
   margin: 22px 0 0;
}

.service-card li {
   margin-bottom: 10px;
}

.pdf-header {
   display: flex;
   justify-content: space-between;
   gap: 24px;
   align-items: end;
   margin-bottom: 24px;
}

.secondary-button {
   cursor: pointer;
   padding: 12px 16px;
   background: transparent;
   color: var(--accent);
   border: 1px solid var(--accent);
   border-radius: 10px;
   font-weight: 700;
}

.secondary-button:hover,
.secondary-button:focus {
   background: var(--accent-soft);
}

.pdf-frame-wrap {
   height: min(76vh, 820px);
   min-height: 1250px;
   border: 1px solid var(--line);
   border-radius: 18px;
   overflow: hidden;
   background: #ffffff;
   box-shadow: 0 16px 42px var(--shadow);
}

iframe {
   width: 100%;
   height: 100%;
   border: 0;
   background: #ffffff;
}

.pdf-note {
   color: var(--muted);
   margin: 16px 0 0;
}

.site-footer {
   padding: 28px 0;
   border-top: 1px solid var(--line);
   color: var(--muted);
}

.footer-grid {
   display: flex;
   justify-content: space-between;
   gap: 16px;
   align-items: center;
}

.footer-grid p {
   margin: 0;
}


.service-card-wide {
   grid-column: 1 / -1;
   min-height: auto;
}

.service-card-wide ul {
   columns: 2;
   column-gap: 48px;
}

.center {
   text-align: center;
}

.inetnl {
   max-width: 150px;
   height: auto;
}

@media (max-width: 900px) {
   .header-grid,
   .service-grid {
      grid-template-columns: 1fr;
   }

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

   .service-card-wide ul {
      columns: 1;
   }

   .pdf-header,
   .footer-grid {
      align-items: flex-start;
      flex-direction: column;
   }
}
