:root {
  --red: #e21b24;
  --red-hot: #ff2d36;
  --red-deep: #b01018;
  --red-dark: #6e0a10;
  --white: #ffffff;
  --snow: #f6f4f3;
  --ink: #140607;
  --muted: #6d5c5e;
  --line: rgba(226, 27, 36, 0.16);
  --shadow: 0 24px 60px rgba(20, 6, 7, 0.12);
  --radius: 18px;
  --header: 84px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Oswald", "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: var(--white);
  padding: 8px 12px;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.header.is-scrolled,
body:not(.is-home) .header {
  background: rgba(20, 6, 7, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--red);
}

.logo__text {
  display: grid;
  line-height: 1;
  color: var(--white);
}

.logo__text strong {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.logo__text span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s;
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.lang button {
  background: transparent;
  border: 0;
  color: var(--white);
  padding: 7px 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang button.is-on {
  background: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--red {
  background: var(--red);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

/* Hero */
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 6, 7, 0.35) 0%, rgba(20, 6, 7, 0.55) 42%, rgba(20, 6, 7, 0.92) 100%),
    linear-gradient(90deg, rgba(226, 27, 36, 0.28), transparent 55%);
}

.hero__bolt {
  position: absolute;
  right: 8%;
  top: 18%;
  width: 180px;
  opacity: 0.18;
  animation: pulse 3.4s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 0 72px;
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red-hot);
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: 0.02em;
  max-width: 16ch;
  text-transform: uppercase;
}

.hero h1 em {
  font-style: normal;
  color: var(--red-hot);
}

.hero__lead {
  max-width: 52ch;
  margin: 22px 0 32px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
}

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

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 56px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__meta div {
  background: rgba(20, 6, 7, 0.45);
  padding: 20px 22px;
  backdrop-filter: blur(8px);
}

.hero__meta strong {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.04em;
}

.hero__meta span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.marquee {
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 14px 0;
}

.marquee__track {
  display: inline-flex;
  gap: 36px;
  animation: marquee 28s linear infinite;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section--snow {
  background: var(--snow);
}

.section--red {
  background: var(--red);
  color: var(--white);
}

.section--ink {
  background: var(--ink);
  color: var(--white);
}

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

.section__head h2,
.page-hero h1,
.block-title {
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lede {
  max-width: 52ch;
  color: var(--muted);
}

.section--red .lede,
.section--ink .lede {
  color: rgba(255, 255, 255, 0.78);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section--red .eyebrow,
.section--ink .eyebrow {
  color: #ffd4d6;
}

.values {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.values li {
  list-style: none;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.icon-bolt {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 18px;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card__img {
  height: 180px;
  overflow: hidden;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card__img img {
  transform: scale(1.06);
}

.card__body {
  padding: 22px;
}

.card h3 {
  font-family: var(--display);
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

.card__link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--red);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  opacity: 0.85;
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 16px;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
}

.project:first-child {
  grid-row: span 2;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(20, 6, 7, 0.85));
}

.project__info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
}

.project__info small {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: #ffb3b6;
}

.project__info h3 {
  font-family: var(--display);
  font-size: 28px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* News */
.news {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.news-feature {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
}

.news-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.news-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(20, 6, 7, 0.88));
}

.news-feature__body {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  z-index: 1;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.news-item img {
  width: 120px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
}

.news-item time,
.news-feature time {
  font-size: 12px;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.news-item h3 {
  font-size: 16px;
  margin: 4px 0;
}

.news-item p {
  font-size: 13px;
  color: var(--muted);
}

/* Gallery */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-strip a {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 220px;
}

.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-strip span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  color: var(--white);
  font-weight: 700;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* CTA */
.cta {
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 24px;
}

/* Page hero */
.page-hero {
  padding: 160px 0 56px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, var(--red-deep), var(--red));
  color: var(--white);
}

.page-hero p {
  max-width: 54ch;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.86);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
}

.contact-card,
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card + .contact-card {
  margin-top: 16px;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  border: 1px solid #ead6d7;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--snow);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.map {
  margin-top: 18px;
  border: 0;
  width: 100%;
  min-height: 280px;
  border-radius: 14px;
  filter: grayscale(0.3) contrast(1.05);
}

/* Vacancies */
.jobs {
  display: grid;
  gap: 14px;
}

.job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.job h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 24px;
}

.job p {
  color: var(--muted);
  font-size: 14px;
}

.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffe4e6;
  color: var(--red-deep);
  font-size: 12px;
  font-weight: 800;
  margin-right: 6px;
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer a:hover {
  color: #ffb3b6;
}

.footer h4 {
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.locations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.locations article {
  padding: 18px;
  background: var(--white);
  border-radius: 14px;
  border-top: 4px solid var(--red);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease forwards;
}

.mobile-nav {
  display: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  50% {
    transform: translateY(-10px);
    opacity: 0.28;
  }
}

@media (max-width: 980px) {
  .nav,
  .header .btn {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .split,
  .services,
  .stats,
  .projects,
  .news,
  .gallery-strip,
  .cta,
  .contact-grid,
  .footer__grid,
  .locations,
  .hero__meta {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .project:first-child,
  .news-item {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .news-item img {
    width: 100%;
    height: 160px;
  }

  .split img {
    height: 280px;
  }

  .mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header) 0 0;
    background: var(--ink);
    padding: 28px 24px;
    gap: 18px;
    z-index: 40;
  }

  .mobile-nav a {
    color: var(--white);
    font-size: 22px;
    font-family: var(--display);
    text-transform: uppercase;
  }
}

.lang form {
  display: contents;
}

.linkish {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.alert {
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.alert--ok {
  background: #e8f8ee;
  color: #0f6a32;
}

.alert--err {
  background: #ffe4e6;
  color: var(--red-deep);
}

.field-error {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.check {
  display: flex !important;
  grid-template-columns: none;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}

.check input {
  margin-top: 4px;
}

.map-placeholder {
  margin-top: 18px;
  min-height: 220px;
  border-radius: 14px;
  background: #f0e7e8;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  gap: 12px;
}

.legal-body {
  max-width: 72ch;
  color: var(--muted);
}

.legal-body p,
.legal-body ul {
  margin: 0 0 14px;
}

.legal-body ul {
  padding-left: 18px;
}

.cookie-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 70;
  background: var(--ink);
  color: var(--white);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 20px 22px;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.cookie-banner p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 62ch;
  margin-top: 6px;
}

.cookie-banner a {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 6, 7, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
}

.cookie-modal[hidden] {
  display: none !important;
}

.cookie-modal__card {
  background: var(--white);
  color: var(--ink);
  width: min(520px, 100%);
  border-radius: 18px;
  padding: 28px;
  position: relative;
}

.cookie-modal__close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
}

.cookie-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  margin: 14px 0;
  align-items: start;
}

.cookie-row small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.admin-body {
  background: var(--snow);
  min-height: 100vh;
}

.admin-bar {
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}

.admin-bar nav {
  display: flex;
  gap: 18px;
}

.admin-main {
  width: min(1100px, calc(100% - 32px));
  margin: 32px auto 64px;
}

.admin-login {
  width: min(420px, calc(100% - 32px));
  margin: 80px auto;
}

.admin-login__logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.admin-stats article {
  background: var(--white);
  border-radius: 14px;
  padding: 18px;
  border-top: 4px solid var(--red);
}

.admin-stats strong {
  font-family: var(--display);
  font-size: 36px;
}

.admin-table-wrap {
  overflow: auto;
  background: var(--white);
  border-radius: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.admin-table tr.is-new {
  background: #fff5f5;
}

@media (max-width: 980px) {
  .cookie-banner__inner,
  .admin-stats,
  .admin-bar {
    flex-direction: column;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}
