:root {
  --red: #b31b1f;
  --red-dark: #8f1418;
  --ink: #16181d;
  --ink-soft: #4a4f59;
  --line: #e4e6ea;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --radius: 10px;
  --max: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; overflow-wrap: break-word; }
@media (max-width: 560px) { h1, h2 { hyphens: auto; } }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .8em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 42px; width: auto; }
.brand span { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand span b { color: var(--red); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--red); }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; padding: 6px 12px; font: inherit; font-size: .8rem;
  font-weight: 700; color: var(--ink-soft); cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--red); color: #fff; }

@media (max-width: 760px) {
  .nav a { display: none; }
  .brand span { display: none; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: #111 url("../img/hero.jpg") center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,15,18,.92) 0%, rgba(14,15,18,.75) 50%, rgba(143,20,24,.55) 100%);
}
.hero .container { position: relative; padding-top: 120px; padding-bottom: 120px; }
.hero h1 { max-width: 760px; }
.hero p { max-width: 620px; font-size: 1.15rem; color: rgba(255,255,255,.85); }
.hero .eyebrow { color: #ff8a8d; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--ink-soft); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-grid p { color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.fact { border-left: 3px solid var(--red); padding-left: 12px; }
.fact strong { display: block; font-size: 1.5rem; color: var(--ink); }
.fact > span { font-size: .9rem; color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.07); }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(179,27,31,.1); color: var(--red);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

.banner {
  margin-top: 56px; border-radius: var(--radius); overflow: hidden; position: relative; min-height: 260px;
  background: #111 url("../img/server.jpg") center/cover;
  display: flex; align-items: flex-end;
}
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,15,18,.85), rgba(14,15,18,.1)); }
.banner p { position: relative; color: #fff; font-size: 1.25rem; font-weight: 600; padding: 32px; margin: 0; max-width: 720px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.contact-info p { color: var(--ink-soft); }
.portal-box {
  margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-alt);
}
.portal-box strong { display: block; margin-bottom: 4px; }
.portal-box p { font-size: .95rem; margin-bottom: 14px; }
.btn-outline { border-color: var(--red); color: var(--red); padding: 10px 20px; font-size: .95rem; }
.btn-outline:hover { background: var(--red); color: #fff; }
.contact-info img { border-radius: var(--radius); margin-top: 24px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfd3da; border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); grid-column: 1 / -1; }
.check input { margin-top: 5px; accent-color: var(--red); }
.form-note {
  grid-column: 1 / -1; margin: 0; padding: 12px 16px; font-size: .9rem; color: var(--ink-soft);
  background: var(--bg-alt); border-left: 3px solid var(--red); border-radius: 0 8px 8px 0;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 8px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: #e8f6ec; color: #17642f; }
.form-status.err { display: block; background: #fdeaea; color: var(--red-dark); }

@media (max-width: 860px) {
  section { padding: 64px 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form { grid-template-columns: 1fr; }
  .hero .container { padding-top: 80px; padding-bottom: 80px; }
}

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 36px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: #fff; text-decoration: none; margin-left: 20px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { text-decoration: underline; }

/* Legal pages */
.legal { padding: 72px 0; }
.legal .container { max-width: 780px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); }
.placeholder { background: #fff4cc; padding: 0 4px; border-radius: 3px; color: var(--ink); }
.note { background: var(--bg-alt); border-left: 3px solid var(--red); padding: 14px 18px; font-size: .9rem; }
