:root {
  --bg: #0d1011;
  --bg-soft: #141817;
  --panel: #191f1d;
  --panel-light: #eef0ec;
  --text: #f3f2ec;
  --muted: #b9b8ae;
  --ink: #17201e;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #d5aa63;
  --copper: #a66b43;
  --sage: #7d9687;
  --white: #ffffff;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  /* Inter не содержит мхедрули — грузинские глифы берёт Noto Sans Georgian.
     Браузер выбирает шрифт по unicode-range, латиница и кириллица остаются на Inter. */
  font-family: Inter, "Noto Sans Georgian", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 16, 17, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-items: center;
  gap: 1px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand-icon {
  display: block;
  grid-column: 1 / 3;
  width: 34px;
  height: 22px;
  object-fit: contain;
}

.brand-mark {
  grid-row: 2;
  grid-column: 1;
  color: var(--gold);
  font-size: 22px;
}

.brand-text {
  grid-row: 2;
  grid-column: 2;
  color: var(--white);
  font-size: 22px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

/* Пункт меню — цельная подпись. Без этого грузинские «კომპანიის შესახებ»
   и «სამუშაო მოდელი» разваливались на две строки и шапка ехала. */
.main-nav a {
  white-space: nowrap;
}

.main-nav a:hover,
.contact-links a:hover {
  color: var(--gold);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.1;
}

.header-cta {
  border-color: rgba(213, 170, 99, 0.46);
  color: var(--gold);
  font-size: 14px;
  /* Надпись на кнопке в две строки ломает высоту шапки. */
  white-space: nowrap;
}

.button.primary {
  background: var(--gold);
  color: #14100b;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: 140px clamp(20px, 4vw, 56px) 34px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 16, 17, 0.88) 0%, rgba(13, 16, 17, 0.58) 42%, rgba(13, 16, 17, 0.16) 100%),
    linear-gradient(0deg, rgba(13, 16, 17, 0.72) 0%, rgba(13, 16, 17, 0.03) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-bottom: 60px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 21px;
  line-height: 1.16;
}

.hero-lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 23px);
}

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

.hero-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1120px;
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-facts div {
  min-height: 150px;
  padding: 22px;
  background: rgba(18, 22, 21, 0.82);
}

.hero-facts span,
.service-card span,
.process-list span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.hero-facts strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-facts p,
.service-card p,
.process-list p,
.project-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.section {
  padding: 96px clamp(20px, 4vw, 56px);
}

.intro {
  background: var(--panel-light);
  color: var(--ink);
}

.intro .section-kicker {
  color: var(--copper);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: start;
}

.split > *,
.section-heading > *,
.contact-section > * {
  min-width: 0;
}

.rich-copy {
  color: rgba(23, 32, 30, 0.76);
  font-size: 19px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.48fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading > p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--panel);
  transition: background 180ms ease, transform 180ms ease;
}

.service-card:hover {
  background: #202723;
  transform: translateY(-2px);
}

.service-card em {
  display: inline-flex;
  margin-top: auto;
  padding-top: 22px;
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

.service-card:nth-child(3n) {
  background: #1d211f;
}


.process {
  background: #101413;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--line);
  list-style: none;
}

.process-list li {
  min-height: 245px;
  padding: 24px;
  background: var(--bg-soft);
}

.process-list strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.14;
}

.projects {
  background: var(--panel-light);
  color: var(--ink);
}

.projects .section-kicker {
  color: var(--copper);
}

.projects .section-heading > p,
.project-grid p {
  color: rgba(23, 32, 30, 0.68);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-grid article {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 26px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(23, 32, 30, 0.05), rgba(23, 32, 30, 0.88)),
    #879286;
  color: var(--white);
}

.project-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.55fr);
  gap: clamp(36px, 7vw, 100px);
  padding: 96px clamp(20px, 4vw, 56px);
  background: #111614;
}

.contact-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 13px 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #090b0b;
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.38fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: end;
  min-height: 78vh;
  padding: 142px clamp(20px, 4vw, 56px) 72px;
  background:
    linear-gradient(90deg, rgba(13, 16, 17, 0.96), rgba(13, 16, 17, 0.78) 50%, rgba(13, 16, 17, 0.36)),
    linear-gradient(0deg, rgba(13, 16, 17, 0.76), rgba(13, 16, 17, 0.06) 54%),
    var(--service-bg, url("assets/hero-tpi-lux.png")) center / cover;
}


.service-bg-01 { --service-bg: url("assets/bg-01-architectural-lighting.jpg"); }
.service-bg-02 { --service-bg: url("assets/bg-02-led-garlands.jpg"); }
.service-bg-03 { --service-bg: url("assets/bg-03-christmas-decoration.jpg"); }
.service-bg-04 { --service-bg: url("assets/bg-04-electrical-installation.jpg"); }
.service-bg-05 { --service-bg: url("assets/bg-05-lighting-control.jpg"); }
.service-bg-06 { --service-bg: url("assets/bg-06-security-low-voltage.jpg"); }
.service-bg-07 { --service-bg: url("assets/bg-07-climate-ventilation.jpg"); }
.service-bg-08 { --service-bg: url("assets/bg-08-playgrounds-urban.jpg"); }
.service-bg-09 { --service-bg: url("assets/bg-09-event-show.jpg"); }

.service-hero-copy,
.service-hero-panel,
.service-hero > *,
.service-cta > * {
  min-width: 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

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

.service-hero-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 22, 21, 0.82);
}

.service-hero-panel span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-hero-panel strong {
  display: block;
  margin-bottom: 18px;
  font-size: 24px;
}

.service-hero-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.detail-card {
  min-height: 240px;
  padding: 26px;
  background: var(--panel);
}

.detail-card:nth-child(2n) {
  background: #1d211f;
}

.detail-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-products {
  background: var(--panel-light);
  color: var(--ink);
}

.service-products .section-kicker {
  color: var(--copper);
}

.product-panel {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 70px rgba(23, 32, 30, 0.08);
}

.product-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  margin: 0;
  padding-left: 20px;
  color: rgba(23, 32, 30, 0.76);
}

.service-quality {
  background: #101413;
}

.quality-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: start;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.quality-panel > *,
.quality-grid > * {
  min-width: 0;
}

.quality-grid {
  display: grid;
  gap: 16px;
}

.quality-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.service-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 72px clamp(20px, 4vw, 56px);
  background: var(--gold);
  color: #14100b;
}

.service-cta .section-kicker {
  color: rgba(20, 16, 11, 0.68);
}

.service-cta h2 {
  max-width: 980px;
  font-size: clamp(30px, 4vw, 54px);
}

.service-cta p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(20, 16, 11, 0.74);
  font-size: 18px;
}

.service-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: end;
}

.service-cta .button.primary {
  background: #14100b;
  color: var(--white);
}

.service-cta .button.secondary {
  border-color: rgba(20, 16, 11, 0.35);
  color: #14100b;
}

.related-services {
  background: var(--bg);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.related-grid a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--panel);
}

.related-grid a:hover,
.service-nav a:hover {
  background: #202723;
}

.related-grid span,
.service-nav span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.related-grid strong {
  font-size: 20px;
  line-height: 1.18;
}

.service-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-nav a {
  display: grid;
  gap: 10px;
  min-height: 104px;
  padding: 18px;
  background: var(--bg-soft);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.service-nav a.is-current {
  background: rgba(213, 170, 99, 0.14);
  color: var(--white);
}

@media (max-width: 1160px) {
  .service-grid,
  .detail-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list,
  .service-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-hero,
  .quality-panel,
  .service-cta {
    grid-template-columns: 1fr;
  }

  .service-cta-actions {
    justify-content: start;
  }
}

@media (max-width: 860px) {
  .brand-icon {
    width: 30px;
    height: 18px;
  }

  .brand-mark,
  .brand-text {
    font-size: 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 122px;
  }

  .hero-content {
    padding-bottom: 36px;
  }

  .hero-facts,
  .split,
  .section-heading,
  .project-grid,
  .contact-section,
  .detail-grid,
  .related-grid,
  .product-panel ul {
    grid-template-columns: 1fr;
  }

  .service-hero {
    min-height: auto;
    padding-top: 122px;
    padding-bottom: 58px;
  }

  .quality-panel {
    padding: 24px;
  }


  .section,
  .contact-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .service-grid,
  .process-list,
  .service-nav {
    grid-template-columns: 1fr;
  }

  .service-card,
  .detail-card,
  .related-grid a,
  .process-list li,
  .hero-facts div {
    min-height: auto;
  }
}

/* ============================================================
   TPI LUX 2.0 — brand mark, photo tiles, extended home blocks
   ============================================================ */

/* Brand emblem (diamond / lux mark) */
.brand {
  align-items: center;
}

.brand-icon {
  flex: 0 0 auto;
}

.brand-emblem {
  display: none;
}

/* Service cards as photo tiles */
.service-card {
  position: relative;
  overflow: hidden;
  background: #11150f;
}

.service-card > * {
  position: relative;
  z-index: 2;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--service-bg, none) center / cover no-repeat;
  transform: scale(1.02);
  transition: transform 450ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13, 16, 17, 0.42) 0%, rgba(13, 16, 17, 0.8) 64%, rgba(13, 16, 17, 0.94) 100%);
}

.service-card.is-new::after {
  background:
    linear-gradient(180deg, rgba(13, 16, 17, 0.28) 0%, rgba(13, 16, 17, 0.74) 58%, rgba(13, 16, 17, 0.94) 100%),
    linear-gradient(135deg, rgba(213, 170, 99, 0.34), rgba(125, 150, 135, 0.08) 58%);
}

.service-card.is-new {
  border: 1px solid rgba(213, 170, 99, 0.3);
}

.service-card:hover::before {
  transform: scale(1.08);
}

.service-card .card-tag {
  margin-top: auto;
  padding-top: 22px;
  color: var(--gold);
  font-weight: 800;
}

/* Highlighted (Event) card */
.service-card.is-new h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.badge-new {
  padding: 3px 9px;
  border: 1px solid rgba(213, 170, 99, 0.5);
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* About section (extended) */
.about {
  background: var(--panel-light);
  color: var(--ink);
}

.about .section-kicker {
  color: var(--copper);
}

.about .rich-copy {
  color: rgba(23, 32, 30, 0.78);
}

.lead-accent {
  margin-top: 18px;
  color: var(--ink);
  font-weight: 700;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  border: 1px solid rgba(23, 32, 30, 0.14);
  background: rgba(23, 32, 30, 0.14);
}

.about-points div {
  padding: 24px;
  background: var(--panel-light);
}

.about-points strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.about-points p {
  margin: 0;
  color: rgba(23, 32, 30, 0.68);
}

.about-extra {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 6vw, 90px);
  margin-top: 56px;
}

.about-extra > * {
  min-width: 0;
}

.about-quote {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.22;
  color: var(--ink);
}

.about-quote + p {
  color: rgba(23, 32, 30, 0.7);
}

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

.about-when li {
  padding: 16px 18px;
  border-left: 2px solid var(--copper);
  background: rgba(23, 32, 30, 0.05);
  color: rgba(23, 32, 30, 0.82);
}

.about-tagline {
  margin-top: 48px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--copper);
}

/* Stats band */
.stats {
  background: #101413;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.stats-grid div {
  padding: 30px 22px;
  background: var(--bg-soft);
}

.stats-grid b {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1;
}

.stats-grid span {
  color: var(--muted);
  font-size: 15px;
}

.stats-note {
  margin: 28px 0 0;
  color: var(--text);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
}

/* Challenge / non-standard tasks */
.challenge {
  background: var(--bg);
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.challenge-grid article {
  min-height: 210px;
  padding: 24px;
  background: var(--bg-soft);
}

.challenge-grid article:nth-child(2n) {
  background: #1d211f;
}

.ico {
  display: block;
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 1;
}

.challenge-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.challenge-grid p {
  margin: 0;
  color: var(--muted);
}

.block-cta {
  margin-top: 34px;
}

/* Geography */
.geo {
  background: #0f1312;
}

.geo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

.geo-grid > * {
  min-width: 0;
}

.geo-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.geo-points span {
  padding: 14px 22px;
  border: 1px solid rgba(213, 170, 99, 0.4);
  border-radius: 999px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

.geo-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.geo-tags div {
  padding: 20px;
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 700;
}

.geo-note {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
}

/* Pricing flow */
.pricing-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.pricing-flow div {
  position: relative;
  min-height: 190px;
  padding: 24px;
  background: var(--bg-soft);
}

.pricing-flow span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 800;
}

.pricing-flow strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.pricing-flow p {
  margin: 0;
  color: var(--muted);
}

.pricing-note {
  margin: 28px 0 0;
  color: var(--text);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
}

/* Client benefits */
.benefits {
  background: var(--panel-light);
  color: var(--ink);
}

.benefits .section-kicker {
  color: var(--copper);
}

.benefits .section-heading > p {
  color: rgba(23, 32, 30, 0.68);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(23, 32, 30, 0.14);
  background: rgba(23, 32, 30, 0.14);
}

.benefits-grid div {
  padding: 24px;
  background: var(--panel-light);
}

.benefits-grid .check {
  display: block;
  margin-bottom: 12px;
  color: var(--copper);
  font-size: 20px;
  font-weight: 800;
}

.benefits-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.benefits-grid p {
  margin: 0;
  color: rgba(23, 32, 30, 0.68);
}

.benefits-note {
  margin: 28px 0 0;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
}

/* Concept CTA note line */
.cta-note {
  margin: 18px 0 0;
  color: rgba(20, 16, 11, 0.66);
  font-size: 15px;
  font-weight: 700;
}

/* Detail card bullet lists (Event directions) */
.detail-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.detail-card ul li {
  margin-bottom: 5px;
}

/* Audience pills (Event) */
.audience-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.audience-grid span {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
}

/* Service nav grows to 9 items */
.service-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1120px) {
  .about-points,
  .challenge-grid,
  .stats-grid,
  .benefits-grid,
  .pricing-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-extra,
  .geo-grid {
    grid-template-columns: 1fr;
  }

  .service-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .about-points,
  .stats-grid,
  .challenge-grid,
  .benefits-grid,
  .pricing-flow,
  .geo-tags {
    grid-template-columns: 1fr;
  }

  .challenge-grid article,
  .pricing-flow div {
    min-height: auto;
  }
}

/* ==========================================================================
   Локализация: переключатель языка и грузинская типографика
   ========================================================================== */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: end;
}

/* Минимум 44x44px на касание — иначе на телефоне промахиваются.
   Раньше кнопка была около 28px, и это была главная претензия к переключателю. */
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-switch a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Текущий язык не ссылка «куда-то», а отметка «вы здесь» — гасим курсор
   и подсвечиваем золотом, чтобы состояние читалось без наведения. */
.lang-switch a[aria-current="page"] {
  color: var(--gold);
  background: rgba(213, 170, 99, 0.12);
  cursor: default;
}

/* Слово на широком экране, код на узком: скрытый вариант выпадает из дерева
   доступности, скринридер читает ровно один. */
.lang-short {
  display: none;
}

/* В грузинском письме нет заглавных букв: для мхедрули uppercase — пустая
   операция, и надписи-рубрики теряют акцент. Возвращаем его разрядкой и
   размером. Само правило uppercase не снимаем: на ka-страницах остаются
   латинские надписи, и для них капс по-прежнему нужен. */
:lang(ka) .eyebrow,
:lang(ka) .section-kicker,
:lang(ka) .service-hero-panel span {
  letter-spacing: 0.14em;
}

:lang(ka) .eyebrow,
:lang(ka) .section-kicker {
  font-size: 14px;
}

:lang(ka) .service-hero-panel span {
  font-size: 14px;
}

/* Мхедрули выше кириллицы по x-height — тесные строки заголовков жмут. */
:lang(ka) h1,
:lang(ka) h2,
:lang(ka) h3 {
  line-height: 1.18;
}

/* Грузинские слова длиннее русских: в переводе 150 слов длиннее 13 символов
   против 101 в оригинале, самое длинное — 18 (კონსტრუქციებისთვის). На
   латинско-кириллической шкале (h1 до 86px при max-width 790px) такое слово
   в строку не влезает, и overflow-wrap ломает его посреди, выбрасывая
   одиночную букву на новую строку. Уменьшаем кегль и даём больше ширины,
   чтобы самое длинное слово помещалось целиком; break-word остаётся
   страховкой, но срабатывать ему уже не на чем. */
:lang(ka) h1 {
  max-width: 940px;
  font-size: clamp(32px, 5.4vw, 64px);
}

:lang(ka) h2 {
  font-size: clamp(26px, 3.4vw, 46px);
}

:lang(ka) .lang-switch a {
  letter-spacing: 0.02em;
}

@media (max-width: 860px) {
  .lang-full {
    display: none;
  }

  .lang-short {
    display: inline;
  }

  .lang-switch a {
    min-width: 44px;
    padding: 0 6px;
    font-size: 12px;
  }
}


/* В шапке одновременно логотип, пять пунктов меню, кнопка-CTA и три языка.
   Два независимых порога, иначе ноутбук 1366px получал бы бургер вместо
   навигации.

   До 1400px языки показываются кодами вместо слов — это освобождает около
   120px и позволяет меню остаться на месте.

   До 1160px меню уходит в бургер: грузинские подписи длиннее русских
   («კომპანიის შესახებ» вместо «О компании»), и ниже этой ширины они
   уже не помещаются даже с сокращёнными языками.

   Порог 860px для остальной вёрстки оставлен как был. */
@media (max-width: 1400px) {
  .lang-full {
    display: none;
  }

  .lang-short {
    display: inline;
  }

  .lang-switch a {
    min-width: 44px;
    padding: 0 6px;
    font-size: 12px;
  }
}

@media (max-width: 1120px) {
  .site-header {
    /* Переключатель языка остаётся видимым — в бургер он не прячется. */
    grid-template-columns: auto 1fr auto auto;
    gap: 14px;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .main-nav.is-open {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(13, 16, 17, 0.96);
  }

  .main-nav.is-open a {
    padding: 16px 22px;
    border-top: 1px solid var(--line);
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }
}
