:root {
  --red: #e10613;
  --red-dark: #b80510;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --topbar: #0e0e0e;
  --footer: #141414;
  --line: rgba(255, 255, 255, 0.16);
  --max: 1180px;
  --header: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Montserrat", "Segoe UI", sans-serif;
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; }

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

.topbar {
  background: var(--topbar);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.topbar-inner,
.header-inner,
.bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-inner { min-height: 38px; }
.top-meta, .social {
  display: flex;
  align-items: center;
  gap: 18px;
}
.top-meta a, .top-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-meta svg, .social svg, .contact-list svg { flex: none; }
.social { gap: 14px; }
.social a { display: inline-flex; opacity: 0.92; }
.social a:hover { color: var(--red); }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.header-inner { min-height: var(--header); }
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-rm {
  color: var(--red);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 0.8;
}
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-dizayn {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.logo-reklam {
  margin-top: 3px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
}
.footer .logo-dizayn { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
.nav-toggle span,
.nav-toggle span:before,
.nav-toggle span:after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  position: relative;
}
.nav-toggle span:before,
.nav-toggle span:after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span:before { top: -6px; }
.nav-toggle span:after { top: 6px; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
}
.nav a:hover, .nav a.is-current { color: var(--red); }
.nav-home.is-current {
  background: var(--red);
  color: #fff !important;
}
.nav-home.is-current:hover { background: var(--red-dark); color: #fff !important; }

.has-sub { position: relative; }
.sub {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 240px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.18s ease;
}
.has-sub:hover .sub,
.has-sub:focus-within .sub,
.has-sub.is-open .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.sub a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.sub a:hover { background: #faf6f6; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); }
.btn-pill { border-radius: 999px; padding: 12px 18px; font-size: 14px; }
.btn-quote { margin-left: 8px; padding: 12px 18px; }

.hero {
  position: relative;
  height: clamp(260px, 28vw, 420px);
  background: #111;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: #0b0b0b;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 78%;
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 32%, rgba(0, 0, 0, 0) 55%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 430px;
  color: #fff;
  padding: 36px 0 28px 8px;
}
.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.4px;
}
.hero-copy h1 span { display: block; }
.hero-copy .accent { color: var(--red); }
.hero-copy p {
  margin: 12px 0 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-arrow:hover { background: var(--red); }
.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dot {
  display: block;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.dot.is-active { background: #fff; transform: scale(1.15); }

.cats {
  background: #141414;
  color: #fff;
}
.cat-list {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin: 0;
  padding: 18px 0;
  list-style: none;
}
.cat-list a {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 78px;
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  position: relative;
}
.cat-list li + li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 36px;
  background: var(--red);
  transform: translateY(-50%);
}
.cat-list svg { color: var(--red); }
.cat-list a:hover { color: #ffd0d3; }

.works {
  padding: 34px 0 56px;
  background: #f5f5f5;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1.35 / 1;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.work-card:hover img { transform: scale(1.06); }
.work-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 10px 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.footer {
  background: var(--footer);
  color: #d7d7d7;
  padding-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1.05fr 1.15fr 1.2fr;
  gap: 28px;
}
.footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
}
.footer p { margin: 14px 0 18px; font-size: 14px; line-height: 1.7; }
.footer-links, .contact-list { list-style: none; margin: 0; padding: 0; }
.footer-links a, .contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.45;
}
.footer-links a::before { content: "›"; color: var(--red); font-weight: 700; }
.footer-links a:hover { color: #fff; }
.contact-list svg { margin-top: 2px; color: #fff; }
.newsletter p { margin-top: 0; }
.mail-row { display: flex; }
.mail-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 12px 14px;
  font-size: 14px;
}
.mail-row button {
  border: 0;
  border-radius: 0;
  padding: 12px 16px;
  white-space: nowrap;
}
.form-note { min-height: 1.2em; margin: 8px 0 0; font-size: 13px; color: #f0c6c8; }
.footer .btn { margin-top: 8px; }

.bottom {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9a9a9a;
  font-size: 13px;
}
.bottom-inner { min-height: 54px; gap: 12px; }
.bottom nav { display: flex; gap: 18px; }
.bottom a:hover { color: #fff; }

.page-hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.45)),
    url("../images/hero.jpg") center / cover no-repeat;
  color: #fff;
  padding: 64px 0;
}
.page-hero h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); }
.page {
  padding: 48px 0 72px;
}
.page p { line-height: 1.75; color: #333; }
.prose { max-width: 760px; }
.prose .red-pill { display: inline-block; margin-top: 8px; background: #e0000b; color: #fff; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 12px 20px; }
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}
.panel {
  background: #f6f6f6;
  border-radius: 16px;
  padding: 24px;
}
.panel h2 { margin-top: 0; }
.form { display: grid; gap: 12px; }
.form input, .form textarea {
  width: 100%;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
}
.form textarea { min-height: 120px; resize: vertical; }
.catalog { display: grid; gap: 22px; }
.catalog article {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: center;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 16px;
}
.catalog img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}
.empty {
  padding: 28px;
  border: 1px dashed #ccc;
  border-radius: 16px;
  background: #fafafa;
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid .brand, .footer-grid .newsletter { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { gap: 8px; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  }
  .nav.is-open { display: flex; }
  .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    padding: 0 0 8px 12px;
  }
  .has-sub.is-open .sub { display: block; }
  .btn-quote { margin-left: auto; }
  .cat-list { overflow-x: auto; justify-content: flex-start; }
  .cat-list a { min-width: 140px; }
  .split, .catalog article { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .top-meta span:nth-child(2), .top-meta span:nth-child(3) { display: none; }
  .work-grid, .footer-grid { grid-template-columns: 1fr; }
  .bottom-inner { flex-direction: column; align-items: flex-start; padding: 14px 0; }
  .hero { height: 340px; }
  .hero-copy { padding-left: 28px; max-width: 320px; }
  .logo-rm { font-size: 34px; }
  .logo-dizayn { font-size: 18px; }
}
