/* ==========================================================================
   УКРГЕФЕСТ — сайт-візитка
   ========================================================================== */

:root {
  --bg-0: #14171c;
  --bg-1: #1b1f26;
  --bg-2: #232833;
  --bg-3: #2b313d;
  --border: #343b47;
  --gold: #d9a441;
  --gold-light: #f0c876;
  --red: #e2434d;
  --text-0: #f5f6f8;
  --text-1: #c7ccd4;
  --text-2: #8b93a1;
  --shadow: 0 20px 45px rgba(0, 0, 0, .35);
  --radius: 14px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--text-1);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--text-0);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 20px; }

p { margin: 0 0 14px; }

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); }

.section-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 20, .90), rgba(15, 17, 20, .95));
}
.section-photo > .container { position: relative; z-index: 1; }

.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #1a1305; }
.btn-gold:hover { box-shadow: 0 12px 24px rgba(217, 164, 65, .3); }

.btn-outline { background: transparent; color: var(--text-0); border-color: rgba(245, 246, 248, .35); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { box-shadow: 0 12px 24px rgba(226, 67, 77, .35); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(20, 23, 28, .55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  background: rgba(20, 23, 28, .94);
  border-bottom-color: var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-emblem {
  height: 52px; width: 52px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(217, 164, 65, .55);
}
.brand-name { color: var(--text-0); font-weight: 800; font-size: 18px; letter-spacing: .02em; white-space: nowrap; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-1);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .15s ease;
}
.nav a:hover { color: var(--gold-light); }

.site-nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex: 1;
  margin-left: 28px;
  min-width: 0;
}

.header-contacts { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-call-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-0);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: border-color .15s ease, color .15s ease;
}
.header-call-pill:hover { border-color: var(--gold); color: var(--gold-light); }

/* ---------- Phone dropdown (hover / click to reveal all operator numbers) ---------- */
.phone-dropdown { position: relative; display: inline-flex; align-items: center; gap: 8px; }

.phone-caret-btn {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-1);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, transform .2s ease;
}
.phone-caret-btn--red { border-color: rgba(255, 255, 255, .4); color: #fff; }

.phone-dropdown:hover .phone-caret-btn,
.phone-dropdown.is-open .phone-caret-btn {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: rotate(180deg);
}

.phone-dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  margin-top: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 240px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 60;
}
.phone-dropdown:hover .phone-dropdown-menu,
.phone-dropdown.is-open .phone-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.phone-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-0);
  white-space: nowrap;
}
.phone-dropdown-menu a:hover { background: var(--bg-3); color: var(--gold-light); }

.phone-operator {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--text-0);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle::before { top: 13px; }
.nav-toggle span { top: 19px; }
.nav-toggle::after { top: 25px; }
.nav-toggle.is-open::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle.is-open span { opacity: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: linear-gradient(180deg, rgba(15, 17, 20, .78), rgba(15, 17, 20, .94)), url("../images/hero-elevator-panel.jpg") center / cover no-repeat;
}

.hero-content { max-width: 760px; padding: 60px 0; }
.hero-title-row { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.hero-title-row h1 { margin-bottom: 0; }
.hero-emblem {
  height: 72px; width: 72px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(217, 164, 65, .6);
}

.hero-content h1 { margin-bottom: 8px; }
.hero .eyebrow { font-size: 17px; letter-spacing: .1em; }
.hero-tagline { color: var(--gold-light); font-weight: 500; font-size: 16px; margin-bottom: 20px; }
.hero-content > p { color: var(--text-1); font-size: 17px; max-width: 560px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 46px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 44px;
  padding-top: 30px;
  border-top: 1px solid rgba(245, 246, 248, .12);
}
.hero-stat-value { color: var(--gold-light); font-size: 22px; font-weight: 800; margin-bottom: 2px; }
.hero-stat-label { color: var(--text-2); font-size: 13px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}

.about-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.about-figure::after {
  content: "";
  position: absolute; inset: 0;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  margin: 14px;
  pointer-events: none;
  opacity: .6;
}

.about-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.about-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-1); }
.about-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
}

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

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--text-2); font-size: 14.5px; margin: 0; }

/* ---------- Trust badges ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.trust-item .service-icon { margin-bottom: 0; }
.trust-item span {
  color: var(--text-1);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  max-width: 230px;
}

/* ---------- Checklist toggle ---------- */
.checklist-toggle {
  margin-top: 44px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.checklist-toggle summary {
  cursor: pointer;
  list-style: none;
  text-align: center;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 15px;
}
.checklist-toggle summary::-webkit-details-marker { display: none; }
.checklist-toggle summary::after {
  content: "▾";
  display: inline-block;
  margin-left: 8px;
  transition: transform .2s ease;
}
.checklist-toggle[open] summary::after { transform: rotate(180deg); }

.checklist-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 40px;
}
.checklist-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-1);
  font-size: 14.5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.checklist-list li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--gold);
  font-weight: 700;
}
.checklist-list .work-note { color: var(--text-2); font-size: 12.5px; }

/* ---------- Vacancies ---------- */
.vacancy-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.vacancy-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 32px;
}
.vacancy-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.vacancy-card-head h3 { margin: 0; }
.vacancy-salary {
  color: var(--gold-light);
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
}
.vacancy-note { color: var(--text-2); font-size: 14px; margin: 0 0 26px; line-height: 1.5; }

.vacancy-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.vacancy-columns h4 {
  color: var(--text-0);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 12px;
}
.vacancy-columns ul { list-style: none; margin: 0; padding: 0; }
.vacancy-columns li {
  color: var(--text-1);
  font-size: 14px;
  padding: 7px 0 7px 16px;
  position: relative;
  line-height: 1.4;
}
.vacancy-columns li::before {
  content: "";
  position: absolute; left: 0; top: 15px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.vacancy-contacts {
  margin-top: 28px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.vacancy-contacts .contact-line:first-child { padding-top: 18px; }
.vacancy-contacts .contact-line:last-child { border-bottom: none; padding-bottom: 0; }

/* ---------- Contacts ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-line:first-child { padding-top: 0; }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.contact-line-label { color: var(--text-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.contact-line-value { color: var(--text-0); font-weight: 700; font-size: 16px; }
.contact-line-value a:hover { color: var(--gold-light); }

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 6px;
}
.badge-live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 67, 77, .25);
}

.contact-form-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.rental-call {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}
.rental-call .service-icon { width: 64px; height: 64px; font-size: 28px; }
.rental-phone { display: none; }
.rental-phone.is-visible { display: block; }

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-2);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text-0);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color .15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-note { font-size: 12.5px; color: var(--text-2); margin-top: 14px; text-align: center; }

.form-feedback {
  display: none;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.form-feedback.is-visible { display: block; }
.form-feedback.is-ok { background: rgba(90, 189, 122, .12); color: #7fd39c; border: 1px solid rgba(90, 189, 122, .3); }
.form-feedback.is-error { background: rgba(226, 67, 77, .12); color: #f18a90; border: 1px solid rgba(226, 67, 77, .3); }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, #1a1f27, #23150f);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  text-align: center;
}
.cta-strip h2 { margin-bottom: 8px; }
.cta-strip p { color: var(--text-2); margin-bottom: 26px; }
.cta-strip-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-0);
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-emblem { height: 34px; width: 34px; }
.footer-phones { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-phones a { font-weight: 700; color: var(--text-1); }
.footer-phones a:hover { color: var(--gold-light); }
.footer-copy { color: var(--text-2); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .nav, .header-contacts { display: none; }
  .nav-toggle { display: block; }

  .site-nav-panel {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-left: 0;
    background: rgba(18, 21, 26, .98);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .site-nav-panel.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .site-nav-panel .nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
  .site-nav-panel .nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .site-nav-panel .header-contacts { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-figure { order: -1; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .vacancy-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 28px; }
  .checklist-list { grid-template-columns: 1fr; }
  .vacancy-columns { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-strip-actions { flex-direction: column; align-items: stretch; }
  .contact-form-card { padding: 24px; }
  .site-footer .container { flex-direction: column; text-align: center; }
}
