:root {
  --bg: #ffffff;
  --white: #ffffff;
  --panel: #f6f5f2;
  --ink: #0f0f0e;
  --sub: #1f1f1d;
  --muted: #3d3a35;
  --dim: #5d584f;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.14);
  --accent: #9a6816;
  --accent-link: #7a4f0f;
  --accent-on-dark: #d49b37;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(154, 104, 22, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

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

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

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

/* ── Header ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-right: auto;
}

.brand img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 5px;
  transition: color 130ms, background 130ms;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--accent-soft);
}

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

.lang-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 42px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
}

.lang-dropdown.open .lang-trigger {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-color: var(--line-strong);
  border-bottom-color: transparent;
  background: var(--white);
}

.lang-trigger::after {
  content: none;
}

.lang-trigger:hover,
.lang-trigger:focus-visible {
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 30;
  display: grid;
  width: 100%;
  min-width: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: var(--white);
  box-shadow: 0 12px 24px -22px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
}

.lang-menu a + a {
  border-top: 1px solid var(--line);
}

.lang-menu a:last-child {
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
}

.lang-menu a:hover,
.lang-menu a:focus-visible {
  color: var(--ink);
  background: var(--panel);
  outline: none;
}

.lang-menu a[aria-current="true"] {
  color: var(--accent-link);
  background: var(--accent-soft);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-contrast) !important;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 150ms;
}

.nav-cta:hover {
  opacity: 0.75;
  background: var(--accent);
}

/* ── Burger toggle ───────────────────────────────────── */

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 220ms ease, opacity 180ms, top 220ms ease;
}

.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* ── Buttons ─────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 15px;
  transition: transform 150ms ease, opacity 150ms;
}

.button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--sub);
  border: 1px solid var(--line-strong);
}

.button.secondary:hover {
  opacity: 1;
  background: var(--panel);
  color: var(--ink);
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-text {
  padding-top: 8px;
}


h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p {
  margin: 0 0 14px;
}

.lead {
  font-size: 18px;
  color: var(--sub);
  max-width: 480px;
  line-height: 1.68;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-photo {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.2);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ── Services row ────────────────────────────────────── */

.services {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.service-item {
  padding: 44px 40px 44px 0;
  border-right: 1px solid var(--line);
}

.service-item:not(:first-child) {
  padding-left: 40px;
}

.service-item:last-child {
  border-right: none;
  padding-right: 0;
}

.service-item h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.service-item p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.service-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-link);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 150ms;
}

.service-link:hover {
  opacity: 0.7;
}

.text-link {
  color: var(--accent-link);
  font-weight: 700;
}

.text-link:hover {
  opacity: 0.75;
}

/* ── Section base ────────────────────────────────────── */

.section {
  padding: 80px 0;
}

.section.alt {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 40px;
}

.section-head p {
  color: var(--muted);
  max-width: 560px;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

/* ── Split layout ────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.split-text p {
  font-size: 16px;
  color: var(--sub);
  line-height: 1.72;
}

/* ── Check list ──────────────────────────────────────── */

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.check-list li {
  padding-left: 20px;
  position: relative;
  font-size: 15px;
  color: var(--sub);
  line-height: 1.55;
}

.check-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent-link);
}

.check-list-2col {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
  .check-list-2col {
    grid-template-columns: 1fr;
  }
}

.box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  background: var(--white);
}

.box h2 {
  margin-bottom: 24px;
}

.box h3 {
  margin-bottom: 18px;
}

/* ── Brand grid ──────────────────────────────────────── */

.brand-grid {
  display: grid;
  gap: 24px;
}

.brand-group-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin: 0 0 10px;
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.brand-tags span {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 150ms, color 150ms;
}

.brand-tags span:hover {
  border-color: var(--accent);
  color: var(--accent-link);
}

/* ── Portfolio ───────────────────────────────────────── */

.portfolio {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.portfolio figure {
  margin: 0;
  background: var(--white);
}

.portfolio img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.portfolio figcaption {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.portfolio-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ── Model list ──────────────────────────────────────── */

.model-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.model-list li {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 14px;
  color: var(--muted);
  background: var(--panel);
}

.model-list li strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── CTA block ───────────────────────────────────────── */

.cta-block {
  background: var(--accent);
  padding: 68px 0;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block > .container {
  position: relative;
}

.cta-block h2 {
  color: var(--accent-contrast);
  margin-bottom: 10px;
}

.cta-block p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-block .button {
  background: var(--accent-contrast);
  color: var(--accent-link);
}

.cta-block .button:hover {
  opacity: 0.9;
}

.cta-block .button-outline {
  background: transparent;
  color: var(--accent-contrast);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.cta-block .button-outline:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-contrast);
}

/* ── Footer ──────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  background: #141311;
}

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

.footer-grid a {
  color: var(--accent-on-dark);
  transition: color 150ms, opacity 150ms;
}

.footer-grid a:hover {
  color: var(--accent-on-dark);
  opacity: 0.8;
}

/* ── Breadcrumbs ─────────────────────────────────────── */

.breadcrumbs {
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--ink);
}

/* ── Meta text ───────────────────────────────────────── */

.meta {
  color: var(--muted);
  font-size: 15px;
}

/* ── Floating mobile contact ─────────────────────────── */

.floating-telegram {
  display: none;
}

/* ── Focus styles ────────────────────────────────────── */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-link);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services {
    padding: 16px 0;
  }

  .services-row {
    grid-template-columns: 1fr;
  }

  .service-item {
    padding: 28px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .service-item:not(:first-child) {
    padding-left: 0;
  }

  .service-item:last-child {
    border-bottom: none;
  }

  .portfolio {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
  .cta-block { padding: 48px 0; }
}

/* ── Burger menu (mobile + tablet) ───────────────────── */

@media (max-width: 900px) {
  .nav {
    height: 56px;
  }

  .brand {
    font-size: 15px;
    gap: 10px;
    letter-spacing: 0.05em;
  }

  .brand img {
    width: 26px;
    height: 26px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
    margin: 0;
    padding: 24px 20px 28px;
    min-height: calc(100vh - 56px);
    max-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    max-height: calc(100dvh - 56px);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px -24px rgba(0, 0, 0, 0.24);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
  }

  .nav-menu .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--ink);
    text-align: center;
  }

  .nav-menu .nav-links a:hover,
  .nav-menu .nav-links a:focus-visible {
    background: var(--panel);
    border-color: var(--line);
  }

  .nav-menu .nav-links a[aria-current="page"] {
    background: var(--accent-soft);
    border-color: rgba(154, 104, 22, 0.16);
    color: var(--accent-link);
  }

  .nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 0;
    height: 44px;
    font-size: 15px;
  }

  .lang-dropdown {
    width: auto;
    align-self: center;
  }

  .lang-trigger {
    display: none;
  }

  .lang-dropdown.open .lang-trigger {
    border-radius: 6px;
  }

  .lang-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .lang-dropdown:not(.open) .lang-menu {
    display: flex;
  }

  .lang-menu a {
    min-width: 42px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-size: 13px;
  }

  .lang-menu a + a {
    border-top: 1px solid var(--line);
  }

  .lang-menu a:last-child {
    border-radius: 999px;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }

  h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
  }

  h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0;
  }

  h3 {
    font-size: 17px;
    font-weight: 700;
  }

  .lead,
  .service-item p,
  .section-head p,
  .split-text p,
  .check-list li,
  .cta-block p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.58;
  }

  .service-link,
  .brand-tags span,
  .model-list li,
  .meta,
  .breadcrumbs,
  .portfolio figcaption {
    font-size: 14px;
    font-weight: 500;
  }

  .service-link,
  .text-link {
    color: var(--accent-link);
    font-weight: 700;
  }

  .button,
  .nav-cta {
    font-size: 15px;
    font-weight: 700;
  }

  .floating-telegram {
    position: fixed;
    right: 16px;
    bottom: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: var(--ink);
  }

  .floating-telegram-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.55);
    position: relative;
    animation: floatingTelegramPulse 1.8s ease-in-out infinite;
  }

  .floating-telegram-mark::before {
    content: "";
    width: 24px;
    height: 24px;
    background: var(--accent-contrast);
    clip-path: polygon(4% 46%, 96% 8%, 79% 91%, 54% 67%, 38% 82%, 42% 61%);
  }

  .floating-telegram-tip {
    display: inline-flex;
    align-items: center;
    position: absolute;
    right: 0;
    bottom: 64px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 12px 26px -20px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .floating-telegram-tip::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: -6px;
    width: 10px;
    height: 10px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
    transform: rotate(45deg);
  }

  .floating-telegram.tip-visible .floating-telegram-tip {
    opacity: 1;
    transform: translateY(0);
  }

  @keyframes floatingTelegramPulse {
    0%,
    100% {
      transform: scale(1);
      box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(154, 104, 22, 0.3);
    }
    46% {
      transform: scale(1.08);
      box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.6), 0 0 0 9px rgba(154, 104, 22, 0);
    }
  }

  body.nav-open .floating-telegram {
    display: none;
  }

  .hero { padding: 32px 0 28px; }
  .section { padding: 40px 0; }

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

  .hero-actions .button {
    width: 100%;
  }

  .portfolio {
    grid-template-columns: 1fr 1fr;
  }

  .box {
    padding: 20px;
  }

  .cta-block {
    padding: 40px 0;
  }

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

  .cta-actions .button {
    width: 100%;
  }
}
