:root {
  --ink: #231f20;
  --muted: #6a6667;
  --paper: #fff;
  --paper-2: #f3f2f1;
  --line: #e6e4e3;
  --accent: #c4a35a;
  --gold: #e0b43a;
  --navy: #231f20;
  --header: #fff;
  --header-ink: #231f20;
  --max: 1180px;
  --header-h: 84px;
  --rail-h: 52px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

.skip-link:focus {
  left: 12px;
  z-index: 80;
  background: #fff;
  padding: 8px 12px;
}

.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 0.82rem;
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding: 10px 20px;
}

.topbar a {
  text-decoration: none;
  color: #fff;
}

.topbar a:hover {
  color: var(--gold);
}

.topbar .social-icon {
  width: 20px;
  height: 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  color: var(--header-ink);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 20px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-full {
  height: 48px;
  width: auto;
}

.brand-k {
  display: none;
  height: 44px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 8px 12px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

.nav-primary {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  flex: 1;
  justify-content: space-evenly;
}

.nav-primary > li {
  position: relative;
}

.nav-primary a {
  text-decoration: none;
  padding: 10px 12px;
  display: block;
  font-size: 0.92rem;
}

.nav-primary > li > a.is-active,
.nav-primary > li > a:hover {
  color: var(--accent);
}

.nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: min(640px, 80vw);
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
  z-index: 50;
}

.has-panel:hover .nav-panel,
.has-panel:focus-within .nav-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.nav-panel-link {
  text-decoration: none;
  padding: 10px 12px;
}

.nav-panel-link strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.nav-panel-link .service-icon {
  width: 22px;
  height: 22px;
}

.nav-panel-link span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
  margin-top: 4px;
}

.nav-panel-link:hover,
.nav-panel-link.is-active {
  background: var(--paper-2);
}

.btn-header {
  text-decoration: none;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 0;
  flex-shrink: 0;
}

.lang-switch a,
.lang-switch span {
  display: flex;
  text-decoration: none;
  line-height: 0;
  border-radius: 2px;
}

.lang-flag {
  width: 28px;
  height: 20px;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(35, 31, 32, 0.18);
  border-radius: 2px;
}

.lang-switch a[aria-current="true"] .lang-flag {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.lang-switch span[aria-disabled="true"] {
  opacity: 0.38;
  cursor: default;
}

#poptavka {
  scroll-margin-top: calc(var(--header-h) + 24px);
  margin-top: 40px;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  flex-shrink: 0;
}

.page-title-service {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-title-service .service-icon {
  width: 40px;
  height: 40px;
}

.card .service-icon {
  margin-bottom: 4px;
}

.enquiry {
  margin-top: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 24px;
  max-width: 720px;
}

.enquiry .hp {
  position: absolute;
  left: -9999px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.enquiry label {
  display: block;
  font-size: 0.85rem;
  margin: 12px 0;
}

.enquiry input,
.enquiry textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-status.is-ok {
  color: #1a6b32;
}

.form-status.is-err {
  color: #8a1f1f;
}

.category-rail {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.category-rail-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 6px;
  padding: 8px 20px;
}

.category-rail a {
  flex: 1 1 0;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 8px 6px;
  border: 1px solid transparent;
  text-align: center;
  line-height: 1.25;
}

.category-rail a.is-active {
  color: var(--accent);
  border-color: var(--accent);
}

.hero {
  background: #0b0b0b;
  color: #fff;
  min-height: 70vh;
  display: grid;
  place-items: end start;
  padding: 48px 20px 56px;
  position: relative;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(35, 31, 32, 0.82) 0%, rgba(35, 31, 32, 0.22) 72%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
  margin: 0 0 12px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
  font-style: italic;
  margin: 0 0 16px;
  max-width: 14ch;
}

.hero p {
  max-width: 42ch;
  color: #e8e8e8;
  margin: 0 0 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 12px 16px;
  font-size: 0.92rem;
}

.btn-solid {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.btn-ghost {
  border: 1px solid #fff;
  color: #fff;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px;
}

.section-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 8px;
  font-weight: 700;
}

h1.page-title,
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.lead {
  font-size: 1.15rem;
  max-width: 52ch;
  color: #333;
}

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

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
}

.card:hover {
  border-color: var(--accent);
}

.card strong {
  font-size: 1.05rem;
}

.card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.card em {
  margin-top: auto;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

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

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.prose p {
  max-width: 62ch;
}

.pager {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pager-link {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pager-arrow {
  width: 32px;
  height: 32px;
  color: var(--ink);
  flex-shrink: 0;
}

.pager-link:hover .pager-arrow {
  color: var(--gold);
}

.pager-link-next {
  justify-content: flex-end;
  text-align: right;
}

.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.95rem;
}

.cta-band p {
  margin: 0;
}

.cta-band a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  background: var(--navy);
  color: #d6d6d6;
  padding: 0;
}

.footer-bar {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 12px 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.footer-logo img {
  height: 28px;
  width: auto;
}

.footer-meta {
  margin: 0;
  font-size: 0.8rem;
  text-align: center;
  flex: 1;
}

.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: #9a9696;
  text-align: right;
}

.footer-copy a {
  color: #d6d6d6;
}

.form-note a {
  color: var(--ink);
}

.social-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.social-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 20px;
}

.job-box {
  background: var(--paper-2);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
    min-height: 40px;
    min-width: 44px;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    color: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    z-index: 45;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .nav-primary {
    flex-direction: column;
    justify-content: flex-start;
  }

  .has-panel:hover .nav-panel,
  .has-panel:focus-within .nav-panel,
  .nav-panel {
    display: grid;
    position: static;
    width: auto;
    grid-template-columns: 1fr;
    border: 0;
    padding: 0 0 0 8px;
    background: transparent;
  }

  .nav-panel-link span {
    display: none;
  }

  .btn-header {
    align-self: flex-start;
  }
}

@media (max-width: 900px) {
  .split,
  .contact-grid,
  .pager,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar-address {
    display: none;
  }

  .topbar-inner {
    padding: 8px 12px;
    gap: 6px 12px;
    font-size: 0.75rem;
  }

  .header-bar {
    min-height: 56px;
    padding: 6px 12px;
    gap: 12px;
  }

  .brand-full {
    display: none;
  }

  .brand-k {
    display: block;
    height: 36px;
  }

  .category-rail {
    top: 56px;
  }

  .category-rail-inner {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 4px;
    padding: 6px 12px;
    -webkit-overflow-scrolling: touch;
  }

  .category-rail a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 6px 10px;
  }

  .hero {
    min-height: 0;
    padding: 28px 16px 32px;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 8vw, 2.1rem);
    max-width: none;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  .wrap {
    padding: 28px 16px;
  }

  .lead {
    font-size: 1rem;
  }

  .card {
    min-height: 0;
    padding: 14px;
  }

  .pager {
    padding: 0 16px 24px;
  }

  .pager-link-next {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-bar {
    flex-direction: column;
    text-align: center;
    padding: 12px 16px;
    gap: 6px;
  }

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

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions .btn {
    justify-content: center;
  }

  .lang-flag {
    width: 24px;
    height: 17px;
  }

  .service-icon {
    width: 36px;
    height: 36px;
  }
}
