/* UZ Energy Design — static site styles */

:root {
  --font-heading: "Plus Jakarta Sans", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ink: #152222;
  --ink-soft: #3a4b49;
  --paper: #f5f1e9;
  --cream: #ede7dc;
  --sand: #caa77c;
  --sand-dark: #947052;
  --line: rgba(21, 34, 34, .14);
  --line-light: rgba(255, 253, 249, .18);
  --white: #fffdf9;
}

* { box-sizing: border-box; border-color: var(--line); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button:not(:disabled), [role="button"], a[href], select:not(:disabled), input[type="checkbox"] { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.mobile-menu-contacts { display: none; }

.site-shell { overflow-x: clip; position: relative; padding-bottom: 0; }

/* i18n: hide the language that is not currently selected */
[data-lang="ru"] .i18n-uz,
[data-lang="uz"] .i18n-ru { display: none !important; }

/* Small utility helpers used inline */
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.mb-3 { margin-bottom: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.m-0 { margin: 0; }
.shrink-0 { flex-shrink: 0; }
.w-full { width: 100%; }
.text-sand-dark { color: var(--sand-dark); }
.text-sand { color: var(--sand); }
.hidden { display: none !important; }

/* HEADER */
.site-header {
  align-items: center;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 78px;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 60px);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
}
.brand {
  align-items: center;
  display: inline-flex;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  min-width: 142px;
}
.brand > span:last-child > span { font-weight: 400; margin-left: 2px; }
.brand__mark { display: inline-flex; gap: 2px; height: 21px; margin-right: 9px; width: 23px; }
.brand__mark i { background: var(--sand-dark); display: block; height: 100%; width: 6px; }
.brand__mark i:nth-child(2) { background: var(--ink); height: 72%; margin-top: auto; }
.brand__mark i:nth-child(3) { background: var(--sand); height: 43%; margin-top: auto; }
.brand--light { color: var(--white); }
.brand--light .brand__mark i:nth-child(2) { background: var(--white); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  margin-left: auto;
  margin-right: clamp(16px, 2.5vw, 40px);
}
.site-nav a {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  position: relative;
  text-transform: uppercase;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a::after {
  background: var(--sand-dark);
  bottom: -6px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s cubic-bezier(.23,1,.32,1);
  width: 100%;
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav-highlight { color: var(--sand-dark) !important; }

.site-header__actions { align-items: center; display: flex; gap: 14px; }

.header-phone-link {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  letter-spacing: .02em;
  padding: 8px 12px;
  transition: border-color .2s ease, background .2s ease;
}
.header-phone-link:hover { background: var(--white); border-color: var(--sand-dark); }
.header-phone-link svg { color: var(--sand-dark); }

.header-tg-link {
  align-items: center;
  background: rgba(36, 161, 222, .12);
  border: 1px solid rgba(36, 161, 222, .3);
  border-radius: 4px;
  color: #1a7fa0;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  padding: 8px 11px;
  transition: background .2s ease, transform .16s ease;
}
.header-tg-link:hover { background: #24a1de; color: #fff; transform: translateY(-1px); }

.language-switch {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  display: flex;
  font-size: 12px;
  gap: 5px;
  padding: 8px 0;
  font-weight: 700;
}
.menu-toggle { background: transparent; border: 0; display: none; padding: 7px; color: var(--ink); }

/* BUTTONS & LINKS */
.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  letter-spacing: .04em;
  min-height: 49px;
  padding: 0 22px;
  text-transform: uppercase;
  transition: transform .16s cubic-bezier(.23,1,.32,1), background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.button:active { transform: scale(.97); }
.button--small { min-height: 38px; padding: 0 15px; }
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover { background: #263b39; }
.button--sand { background: var(--sand); color: var(--ink); }
.button--sand:hover { background: #d9bd96; box-shadow: 0 4px 18px rgba(202, 167, 124, .3); }
.button--outline-light { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .35); color: var(--white); }
.button--outline-light:hover { background: rgba(255, 255, 255, .18); border-color: var(--white); }
.button:disabled { opacity: .65; cursor: not-allowed; }

.text-link {
  align-items: center;
  border-bottom: 1px solid currentColor;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: .03em;
  padding-bottom: 4px;
  text-transform: uppercase;
}
.text-link--dark { color: var(--ink); }

.eyebrow {
  align-items: center;
  color: var(--sand-dark);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 7px;
  letter-spacing: .14em;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.eyebrow--sand { color: var(--sand); }
.eyebrow--dark { color: var(--ink); }

/* HERO */
.hero {
  background: var(--ink);
  color: var(--white);
  min-height: min(800px, calc(100vh - 78px));
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
  filter: brightness(.86);
}
.hero__veil {
  background: radial-gradient(ellipse at 50% 45%, rgba(15, 27, 26, .72) 0%, rgba(15, 27, 26, .88) 100%),
              linear-gradient(180deg, rgba(15, 27, 26, .65) 0%, rgba(15, 27, 26, .45) 50%, rgba(15, 27, 26, .94) 100%);
  inset: 0;
  position: absolute;
}
.hero__copy {
  max-width: 1060px;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 36px) 74px;
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1, .service-hero h1, .location-hero h1, .section h2, .lead-form h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.14;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 62px);
  margin: 0 auto;
  max-width: 980px;
  text-wrap: balance;
}

.hero__lead {
  color: rgba(255, 253, 249, .9);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.6;
  margin: 24px auto 32px;
  max-width: 780px;
  text-wrap: pretty;
}
.hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.hero-tg-btn {
  align-items: center;
  background: #24a1de;
  border-radius: 2px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  letter-spacing: .03em;
  min-height: 49px;
  padding: 0 20px;
  text-transform: uppercase;
  transition: background .2s ease, transform .16s ease;
}
.hero-tg-btn:hover { background: #1c88bd; transform: translateY(-1px); }
.hero-tg-btn--light { background: rgba(36, 161, 222, .14); border: 1px solid rgba(36, 161, 222, .4); color: #1a7fa0; }
.hero-tg-btn--light:hover { background: #24a1de; color: #fff; }

.hero-trust-strip {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 32px);
  margin-top: 36px;
  padding-top: 24px;
  width: 100%;
}
.hero-trust-item { align-items: center; color: rgba(255, 253, 249, .88); display: inline-flex; font-size: 12px; font-weight: 700; gap: 8px; letter-spacing: .02em; }
.hero-trust-item svg { color: var(--sand); flex-shrink: 0; }

.hero__vertical {
  bottom: 28px;
  font-size: 10px;
  letter-spacing: .24em;
  margin: 0;
  position: absolute;
  right: 24px;
  transform: rotate(90deg) translateX(100%);
  transform-origin: right bottom;
  color: rgba(255, 255, 255, .4);
}
@media (max-width: 1360px) {
  .hero__vertical { display: none; }
}

/* STATS STRIP */
.stats-strip { background: #0f1c1b; border-bottom: 1px solid var(--line); color: var(--white); padding: 38px clamp(20px, 6vw, 94px); }
.stats-grid { display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); margin: 0 auto; max-width: 1300px; }
.stat-card { border-left: 1px solid rgba(202, 167, 124, .3); padding-left: 20px; }
.stat-card__number { color: var(--sand); display: block; font-family: var(--font-heading); font-size: clamp(34px, 3.8vw, 52px); font-weight: 700; line-height: 1; margin-bottom: 6px; }
.stat-card__label { color: rgba(255, 253, 249, .72); font-size: 13px; line-height: 1.45; margin: 0; }

/* SECTIONS COMMON */
.section { padding: clamp(68px, 8.5vw, 120px) clamp(20px, 6vw, 94px); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--white); }
.section--sand { background: var(--sand); }
.section--warm { background: #dcd1c1; }

.section-head {
  align-items: end;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .62fr);
  margin: 0 auto clamp(40px, 4.5vw, 64px);
  max-width: 1300px;
}
.section-head h2, .faq-section h2 { font-size: clamp(38px, 4.5vw, 66px); margin: 0; max-width: 780px; }
.section-head > p { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin: 0; max-width: 460px; }
.section-head--light > p { color: rgba(255,253,249,.75); }
.section-head--light h2 { color: var(--white); }

/* PORTFOLIO SECTION */
.portfolio-section { border-bottom: 1px solid var(--line); }
.portfolio-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 auto clamp(30px, 3.5vw, 48px); max-width: 1300px; }
.portfolio-tab-btn {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 10px 18px;
  text-transform: uppercase;
  transition: all .2s ease;
}
.portfolio-tab-btn:hover { background: var(--cream); }
.portfolio-tab-btn--active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.portfolio-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); margin: 0 auto; max-width: 1300px; }
.portfolio-card {
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s cubic-bezier(.23,1,.32,1), box-shadow .2s ease;
}
.portfolio-card:hover { box-shadow: 0 20px 45px rgba(21, 34, 34, .1); transform: translateY(-4px); }
.portfolio-card__media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; width: 100%; }
.portfolio-card__media img { height: 100%; object-fit: cover; transition: transform .4s ease; width: 100%; }
.portfolio-card:hover .portfolio-card__media img { transform: scale(1.05); }
.portfolio-card__overlay {
  align-items: center;
  background: rgba(21, 34, 34, .45);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  position: absolute;
  transition: opacity .25s ease;
}
.portfolio-card:hover .portfolio-card__overlay { opacity: 1; }
.portfolio-card__view-btn { align-items: center; background: var(--white); color: var(--ink); display: inline-flex; font-size: 11px; font-weight: 700; gap: 7px; letter-spacing: .04em; padding: 8px 14px; text-transform: uppercase; }
.portfolio-card__category {
  background: var(--ink); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 5px 10px; position: absolute; left: 14px; top: 14px; text-transform: uppercase;
}
.portfolio-card__content { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.portfolio-card__meta { align-items: center; color: var(--ink-soft); display: flex; flex-wrap: wrap; font-size: 12px; gap: 14px; margin-bottom: 12px; }
.portfolio-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.portfolio-card__area { color: var(--sand-dark); font-weight: 700; }
.portfolio-card h3 { font-family: var(--font-heading); font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; }
.portfolio-card__desc { color: var(--ink-soft); font-size: 13px; line-height: 1.55; margin: 0 0 18px; flex: 1; }
.portfolio-card__highlight {
  align-items: center; background: rgba(202, 167, 124, .15); border-left: 2px solid var(--sand-dark); color: var(--ink);
  display: flex; font-size: 12px; font-weight: 700; gap: 7px; margin-bottom: 18px; padding: 8px 10px;
}
.portfolio-card__highlight svg { color: var(--sand-dark); flex-shrink: 0; }
.portfolio-card__footer { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.portfolio-card__scope { color: var(--ink-soft); font-size: 11px; letter-spacing: .02em; max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-card__arrow { color: var(--sand-dark); transition: transform .2s ease; }
.portfolio-card:hover .portfolio-card__arrow { transform: translate(3px, -3px); }

/* PORTFOLIO MODAL */
.portfolio-modal-backdrop {
  align-items: center; background: rgba(14, 25, 24, .82); backdrop-filter: blur(8px); display: flex; inset: 0;
  justify-content: center; padding: 20px; position: fixed; z-index: 100;
}
.portfolio-modal {
  background: var(--white); box-shadow: 0 35px 80px rgba(0, 0, 0, .35); display: grid; grid-template-columns: 1.15fr 1fr;
  max-height: 90vh; max-width: 1020px; overflow-y: auto; position: relative; width: 100%;
}
.portfolio-modal__close {
  align-items: center; background: var(--white); border: 1px solid var(--line); cursor: pointer; display: flex;
  height: 38px; justify-content: center; position: absolute; right: 14px; top: 14px; width: 38px; z-index: 5;
}
.portfolio-modal__image-wrap { background: var(--ink); min-height: 360px; position: relative; }
.portfolio-modal__image-wrap img { height: 100%; object-fit: cover; width: 100%; }
.portfolio-modal__tag { background: var(--ink); color: var(--white); font-size: 11px; font-weight: 700; padding: 6px 12px; position: absolute; left: 18px; top: 18px; text-transform: uppercase; }
.portfolio-modal__body { display: flex; flex-direction: column; padding: 38px 32px; }
.portfolio-modal__header h3 { font-family: var(--font-heading); font-size: 32px; font-weight: 700; line-height: 1.1; margin: 6px 0 16px; }
.portfolio-modal__desc { color: var(--ink-soft); font-size: 14px; line-height: 1.65; margin: 0 0 24px; }
.portfolio-modal__specs { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
.portfolio-spec-box { background: var(--paper); border: 1px solid var(--line); padding: 10px 14px; }
.portfolio-spec-box .spec-label { color: var(--ink-soft); display: block; font-size: 10px; font-weight: 700; letter-spacing: .04em; margin-bottom: 3px; text-transform: uppercase; }
.portfolio-spec-box strong { font-size: 13px; }
.portfolio-modal__scope-box { border-top: 1px solid var(--line); margin-bottom: 28px; padding-top: 14px; }
.portfolio-modal__scope-box .spec-label { color: var(--ink-soft); display: block; font-size: 10px; font-weight: 700; letter-spacing: .04em; margin-bottom: 5px; text-transform: uppercase; }
.portfolio-modal__scope-box p { color: var(--ink); font-size: 13px; margin: 0; }
.portfolio-modal__actions { display: flex; gap: 12px; margin-top: auto; }

/* CALCULATOR WIDGET */
.calculator-widget { margin: 0 auto; max-width: 980px; }
.calculator-header { margin-bottom: 38px; text-align: center; }
.calculator-header .eyebrow { justify-content: center; }
.calculator-header h2 { color: var(--white); font-size: clamp(36px, 4vw, 56px); margin: 0 0 14px; }
.calculator-subtitle { color: rgba(255, 253, 249, .75); font-size: 16px; margin: 0 auto; max-width: 650px; }
.calculator-card { background: #0f1c1b; border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 25px 60px rgba(0, 0, 0, .4); padding: clamp(24px, 4vw, 44px); }
.quiz-progress-bar { background: rgba(255, 255, 255, .12); height: 4px; margin-bottom: 24px; position: relative; width: 100%; }
.quiz-progress-fill { background: var(--sand); height: 100%; transition: width .3s ease; }
.quiz-step-header { margin-bottom: 20px; }
.quiz-step-tag { background: rgba(202, 167, 124, .2); border: 1px solid rgba(202, 167, 124, .35); color: var(--sand); font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 4px 10px; text-transform: uppercase; }
.quiz-question { color: var(--white); font-family: var(--font-heading); font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.15; margin: 0 0 24px; }
.quiz-options-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 30px; }
.quiz-option-btn {
  align-items: center; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 253, 249, .9);
  display: flex; gap: 12px; padding: 16px 18px; text-align: left; transition: all .2s ease; width: 100%;
}
.quiz-option-btn:hover { background: rgba(255, 255, 255, .1); border-color: var(--sand); }
.quiz-option-btn--active { background: rgba(202, 167, 124, .18); border-color: var(--sand); color: var(--white); }
.quiz-option-radio { border: 2px solid rgba(255, 255, 255, .4); border-radius: 50%; display: block; flex-shrink: 0; height: 16px; width: 16px; }
.quiz-option-btn--active .quiz-option-radio { background: var(--sand); border-color: var(--sand); }
.quiz-option-label { font-size: 14px; font-weight: 700; line-height: 1.35; }
.quiz-nav-row { align-items: center; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; padding-top: 20px; }
.quiz-next-btn { min-width: 130px; }

/* QUIZ RESULT */
.quiz-result-box { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .14); padding: clamp(20px, 3vw, 32px); }
.quiz-result-badge { align-items: center; color: var(--sand); display: inline-flex; font-size: 11px; font-weight: 700; gap: 6px; letter-spacing: .08em; margin-bottom: 20px; text-transform: uppercase; }
.quiz-result-metrics { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-bottom: 30px; }
.quiz-metric-item { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); padding: 16px; }
.quiz-metric-label { color: rgba(255, 253, 249, .7); display: block; font-size: 11px; margin-bottom: 6px; }
.quiz-metric-val { color: var(--sand); display: block; font-family: var(--font-heading); font-size: clamp(24px, 2.5vw, 34px); font-weight: 700; line-height: 1; margin-bottom: 4px; }
.quiz-metric-unit { font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 400; }
.quiz-metric-sub { color: rgba(255, 253, 249, .6); display: block; font-size: 11px; }

.quiz-contact-form { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 24px; }
.quiz-contact-form h4 { color: var(--white); font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.quiz-contact-desc { color: rgba(255, 253, 249, .72); font-size: 13px; margin: 0 0 18px; }

.messenger-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.messenger-btn {
  align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 3px;
  color: rgba(255, 253, 249, .85); display: inline-flex; font-size: 12px; font-weight: 700; gap: 6px; padding: 8px 14px; transition: all .2s ease;
}
.messenger-btn--active { background: var(--sand); border-color: var(--sand); color: var(--ink); }

.quiz-inputs-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-bottom: 20px; }
.quiz-input { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: var(--white); font-size: 14px; min-height: 48px; padding: 0 14px; width: 100%; }
.quiz-input:focus { border-color: var(--sand); outline: none; }
.quiz-form-footer { align-items: center; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
.quiz-security-note { align-items: center; color: rgba(255, 253, 249, .65); display: inline-flex; font-size: 11px; gap: 6px; margin: 0; }
.quiz-success-box { padding: 30px 10px; text-align: center; }
.quiz-success-icon { color: var(--sand); margin: 0 auto 16px; }
.quiz-success-box h4 { color: var(--white); font-size: 24px; margin: 0 0 10px; }
.quiz-success-box p { color: rgba(255, 253, 249, .8); font-size: 14px; margin: 0 auto 24px; max-width: 520px; }

/* TRUST / GUARANTEES SECTION */
.trust-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); margin: 0 auto; max-width: 1300px; }
.trust-card { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 36px); }
.trust-card--wide { grid-column: 1 / -1; }
.trust-card__badge { background: rgba(202, 167, 124, .2); border: 1px solid var(--sand-dark); color: var(--sand-dark); display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; margin-bottom: 14px; padding: 4px 10px; text-transform: uppercase; }
.trust-card h3 { font-family: var(--font-heading); font-size: clamp(24px, 2.5vw, 32px); font-weight: 700; line-height: 1.15; margin: 0 0 12px; }
.trust-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.65; margin: 0; }

/* SERVICE GRID */
.service-grid { border-left: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; max-width: 1300px; }
.service-card {
  background: color-mix(in srgb, var(--white) 50%, transparent); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; min-height: 310px; padding: 26px; transition: background .2s ease, color .2s ease;
}
.service-card:hover { background: var(--ink); color: var(--white); }
.service-card__top { align-items: center; display: flex; justify-content: space-between; }
.service-card__top span:first-child { color: var(--sand-dark); font-size: 12px; font-weight: 700; }
.service-card__price { background: rgba(202, 167, 124, .2); border: 1px solid rgba(202, 167, 124, .4); color: var(--sand-dark); font-size: 11px; font-weight: 700; padding: 2px 7px; }
.service-card:hover .service-card__price { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .3); color: var(--sand); }
.service-card h3 { font-family: var(--font-heading); font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 36px 0 12px; }
.service-card p { color: var(--ink-soft); font-size: 13px; line-height: 1.55; margin: 0; min-height: 60px; }
.service-card:hover p { color: rgba(255, 253, 249, .78); }
.service-card__bottom { align-items: center; display: flex; justify-content: space-between; margin-top: 20px; padding-top: 14px; }
.service-card__more { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* PROCESS LIST */
.process-list { border-top: 1px solid rgba(255,255,255,.20); margin: 0 auto; max-width: 1300px; }
.process-list article { align-items: center; border-bottom: 1px solid rgba(255,255,255,.20); display: grid; gap: 24px; grid-template-columns: 100px 1fr auto; padding: 28px 0; }
.process-list article > span { color: var(--sand); font-family: var(--font-heading); font-size: 36px; }
.process-list h3 { font-family: var(--font-heading); font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 0 0 8px; }
.process-list p { color: rgba(255,253,249,.72); font-size: 14px; margin: 0; }
.process-list svg { color: var(--sand); }

/* LOCATION CALLOUT */
.location-callout { align-items: end; display: grid; gap: 26px; grid-template-columns: .34fr 1fr .58fr; }
.location-callout h2 { font-size: clamp(34px, 3.8vw, 56px); margin: 0 0 12px; }
.location-callout p:not(.eyebrow) { color: var(--ink-soft); font-size: 15px; margin: 0; max-width: 530px; }
.location-links { display: flex; flex-wrap: wrap; gap: 14px; }
.location-links a { align-items: center; background: var(--ink); color: var(--white); display: inline-flex; font-size: 12px; font-weight: 700; gap: 8px; padding: 10px 18px; text-transform: uppercase; transition: background .2s ease; }
.location-links a:hover { background: #263b39; }

/* FAQ */
.faq-section { display: grid; gap: clamp(40px, 8vw, 130px); grid-template-columns: minmax(0, .8fr) minmax(380px, .95fr); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  align-items: center; cursor: pointer; display: flex; font-family: var(--font-heading); font-size: 24px; font-weight: 700;
  gap: 20px; justify-content: space-between; letter-spacing: -.02em; line-height: 1.2; list-style: none; padding: 22px 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--sand-dark); font-family: "Manrope", sans-serif; font-size: 24px; font-weight: 400; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-soft); font-size: 14px; line-height: 1.65; margin: -4px 36px 22px 0; max-width: 620px; }

/* CONSULTATION & LEAD FORM */
.consultation-layout { display: grid; gap: clamp(40px, 7vw, 120px); grid-template-columns: minmax(300px, .78fr) minmax(440px, 1fr); margin: 0 auto; max-width: 1300px; }
.consultation-copy { align-self: start; padding-top: 8px; }
.consultation-copy h2 { font-size: clamp(40px, 4.5vw, 66px); margin: 0; }
.consultation-copy p:not(.eyebrow) { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin: 20px 0 0; max-width: 460px; }

.consultation-contacts-box { border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; margin-top: 32px; padding-top: 24px; }
.contact-item { align-items: flex-start; display: flex; gap: 12px; }
.contact-item svg { color: var(--sand-dark); margin-top: 3px; flex-shrink: 0; }
.contact-label { color: var(--ink-soft); display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.contact-item a { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: underline; }
.contact-item p { color: var(--ink); font-size: 13px; margin: 2px 0 0 !important; }

.lead-form { background: var(--white); box-shadow: 0 24px 70px rgba(21, 34, 34, .09); padding: clamp(26px, 4vw, 46px); }
.lead-form__heading h2 { font-size: clamp(30px, 3.2vw, 44px); margin: 0; }
.lead-form__heading > p:not(.eyebrow) { color: var(--ink-soft); font-size: 14px; margin: 10px 0 24px; }

.lead-form__messenger-select { border-bottom: 1px solid var(--line); margin-bottom: 22px; padding-bottom: 16px; }
.lead-form__messenger-label { color: var(--ink-soft); display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; margin-bottom: 10px; text-transform: uppercase; }

.lead-form__grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; }
.lead-form label > span { color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lead-form input:not([type="checkbox"]), .lead-form select, .lead-form textarea {
  appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  color: var(--ink); font-family: inherit; min-height: 40px; outline: none; padding: 6px 0; width: 100%;
}
.lead-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
}
.lead-form textarea { line-height: 1.5; padding-top: 8px; resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-bottom-color: var(--sand-dark); box-shadow: 0 1px 0 var(--sand-dark); }
.lead-form__span { grid-column: 1 / -1; }

.consent-row { align-items: flex-start; color: var(--ink-soft); flex-direction: row !important; font-size: 12px; gap: 10px !important; line-height: 1.45; margin-top: 20px; }
.consent-row input { accent-color: var(--ink); height: 16px; margin: 2px 0 0; width: 16px; }

.lead-form__footer { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-top: 24px; }
.lead-form-submit-btn { min-height: 48px; padding: 0 24px; }
.lead-form-quick-tg a { font-size: 11px; }
.lead-form__security-badge { align-items: center; border-top: 1px solid var(--line); color: var(--ink-soft); display: flex; font-size: 11px; gap: 8px; margin-top: 20px; padding-top: 14px; }

.form-feedback { align-items: center; color: #9e392c; display: flex; font-size: 13px; gap: 7px; line-height: 1.4; margin: 16px 0 0; }
.form-feedback--success { color: #2d6955; }
.spin { animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* FOOTER */
.site-footer { background: #0b1514; color: var(--white); display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr; padding: 50px clamp(20px, 6vw, 94px); }
.footer-tagline { color: rgba(255, 253, 249, .6); font-size: 13px; line-height: 1.6; margin: 14px 0 0; max-width: 380px; }
.footer-links-col { display: flex; flex-direction: column; gap: 10px; }
.footer-heading { color: var(--sand); font-size: 11px; letter-spacing: .08em; margin-bottom: 6px; text-transform: uppercase; }
.footer-links-col a { color: rgba(255, 253, 249, .75); font-size: 13px; transition: color .2s ease; }
.footer-links-col a:hover { color: var(--white); }
.footer-address { color: rgba(255, 253, 249, .55); font-size: 12px; margin: 0; }
.footer-bottom { align-items: center; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px; grid-column: 1 / -1; justify-content: space-between; margin-top: 10px; padding-top: 24px; }
.footer-bottom p { color: rgba(255, 253, 249, .5); font-size: 12px; margin: 0; }

/* SERVICE & LOCATION HERO */
.service-hero, .location-hero { background: var(--cream); min-height: 520px; overflow: hidden; padding: clamp(44px, 6vw, 90px) clamp(20px, 8vw, 10vw); position: relative; }

/* PHOTO HERO VARIANT (service + location pages) */
.service-hero--photo, .location-hero--photo { background: var(--ink); color: var(--white); }
.service-hero__image, .location-hero__image {
  height: 100%; inset: 0; object-fit: cover; object-position: center; position: absolute; width: 100%; filter: brightness(.55);
}
.service-hero__veil, .location-hero__veil {
  background: linear-gradient(90deg, rgba(15, 27, 26, .93) 0%, rgba(15, 27, 26, .82) 45%, rgba(15, 27, 26, .38) 78%, rgba(15, 27, 26, .58));
  inset: 0; position: absolute;
}
.service-hero--photo .eyebrow, .location-hero--photo .eyebrow { color: var(--sand); }
.service-hero--photo .service-hero__lead, .location-hero--photo > div > p:not(.eyebrow) { color: rgba(255, 253, 249, .82); }
.service-hero--photo .back-link, .location-hero--photo .back-link { color: rgba(255, 253, 249, .72); }
.service-hero--photo .service-hero__trust span { color: rgba(255, 253, 249, .85); }
.service-hero--photo .service-hero__number { color: rgba(255, 255, 255, .1); }
.location-hero--photo .location-hero__word { color: rgba(255, 255, 255, .1); }
.location-hero--photo .hero-tg-btn--light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: var(--white); }
.service-hero__inner, .location-hero > div { max-width: 820px; position: relative; z-index: 2; }
.back-link { align-items: center; color: var(--ink-soft); display: inline-flex; font-size: 11px; font-weight: 700; gap: 7px; letter-spacing: .05em; margin-bottom: clamp(36px, 6vw, 64px); text-transform: uppercase; }
.service-hero__price-tag { background: var(--ink); color: var(--white); font-size: 11px; font-weight: 700; padding: 3px 8px; }
.service-hero__lead { color: var(--ink-soft); font-size: 17px; line-height: 1.7; margin: 22px 0 28px; max-width: 640px; }
.service-hero__actions { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; }
.service-hero__trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.service-hero__trust span { align-items: center; color: var(--ink-soft); display: inline-flex; font-size: 12px; font-weight: 700; gap: 6px; }
.service-hero__trust svg { color: var(--sand-dark); }
.service-hero__number { bottom: -56px; color: rgba(148, 112, 82, .13); font-family: var(--font-heading); font-size: clamp(240px, 32vw, 480px); font-weight: 700; line-height: 1; position: absolute; right: 2vw; user-select: none; }

.service-outcomes { display: grid; gap: clamp(40px, 7vw, 120px); grid-template-columns: minmax(0, .85fr) minmax(360px, .8fr); }
.service-outcomes__list { border-top: 1px solid var(--line); }
.service-outcome-row { align-items: center; border-bottom: 1px solid var(--line); display: flex; font-size: 15px; gap: 14px; padding: 18px 0; }

/* GUIDE ARTICLE */
.guide-card p { min-height: 78px; }
.guide-article { margin: 0 auto; max-width: 760px; }
.guide-article h2 { font-family: var(--font-heading); font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 40px 0 14px; }
.guide-article h2:first-child { margin-top: 0; }
.guide-article p { color: var(--ink-soft); font-size: 16px; line-height: 1.75; margin: 0 0 8px; }
.guide-related { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; padding-top: 20px; }
.related-link { align-items: center; background: var(--ink); color: var(--white); display: inline-flex; font-size: 12px; font-weight: 700; gap: 8px; padding: 10px 18px; text-transform: uppercase; transition: background .2s ease; }
.related-link:hover { background: #263b39; }

.location-hero { align-items: end; background: #d8c5ab; display: flex; justify-content: space-between; }
.location-hero__word { bottom: -32px; color: rgba(21, 34, 34, .09); font-family: var(--font-heading); font-size: clamp(80px, 14vw, 210px); font-weight: 700; line-height: 1; margin: 0; position: absolute; right: -10px; user-select: none; }
.regional-bullets-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; margin: 0 auto; max-width: 1300px; }
.regional-bullet-card { align-items: flex-start; background: var(--white); border: 1px solid var(--line); display: flex; gap: 14px; padding: 22px; }
.regional-bullet-card svg { color: var(--sand-dark); flex-shrink: 0; }
.regional-bullet-card p { color: var(--ink); font-size: 14px; line-height: 1.55; margin: 0; }

/* FLOATING ACTION BUTTON (FAB) */
.fab-container { bottom: 24px; position: fixed; right: 24px; z-index: 50; }
.fab-main-btn {
  align-items: center; background: var(--ink); border: 2px solid var(--sand); border-radius: 50%; box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
  color: var(--white); cursor: pointer; display: flex; height: 56px; justify-content: center; position: relative; transition: transform .2s ease, background .2s ease; width: 56px;
}
.fab-main-btn:hover { background: #263b39; transform: scale(1.05); }
.fab-main-btn--open { background: var(--sand); border-color: var(--ink); color: var(--ink); }
.fab-pulse-ring { animation: pulse-ring 2s cubic-bezier(.215,.61,.355,1) infinite; border: 2px solid var(--sand); border-radius: 50%; inset: -6px; opacity: 0; pointer-events: none; position: absolute; }
@keyframes pulse-ring { 0% { opacity: .7; transform: scale(.95); } 50% { opacity: 0; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1.4); } }

.fab-menu {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; bottom: 68px; box-shadow: 0 18px 45px rgba(21, 34, 34, .18);
  display: flex; flex-direction: column; gap: 2px; min-width: 250px; overflow: hidden; padding: 6px; position: absolute; right: 0;
}
.fab-item { align-items: center; background: transparent; border: 0; border-radius: 4px; color: var(--ink); display: flex; font-size: 13px; font-weight: 700; gap: 12px; padding: 12px 14px; text-align: left; transition: background .15s ease; width: 100%; }
.fab-item:hover { background: var(--paper); }
.fab-item--telegram { color: #1a7fa0; }
.fab-item--telegram:hover { background: rgba(36, 161, 222, .12); }
.fab-item--phone { color: var(--sand-dark); }

/* MOBILE STICKY BOTTOM BAR */
.mobile-sticky-bar { background: rgba(14, 25, 24, .95); backdrop-filter: blur(12px); border-top: 1px solid rgba(255, 255, 255, .15); bottom: 0; display: none; gap: 1px; height: 60px; left: 0; position: fixed; right: 0; z-index: 45; }
.mobile-bar-btn { align-items: center; background: transparent; border: 0; color: var(--white); display: flex; flex: 1; flex-direction: column; font-size: 10px; font-weight: 700; gap: 4px; justify-content: center; letter-spacing: .02em; text-transform: uppercase; }
.mobile-bar-btn--call { border-right: 1px solid rgba(255, 255, 255, .1); }
.mobile-bar-btn--tg { color: #5bc0de; border-right: 1px solid rgba(255, 255, 255, .1); }
.mobile-bar-btn--lead { background: var(--sand); color: var(--ink); }

/* LEAD POPUP MODAL */
.lead-modal-backdrop { align-items: center; background: rgba(14, 25, 24, .82); backdrop-filter: blur(6px); display: flex; inset: 0; justify-content: center; padding: 18px; position: fixed; z-index: 110; }
.lead-modal { background: var(--white); box-shadow: 0 30px 75px rgba(0, 0, 0, .3); max-height: 92vh; max-width: 580px; overflow-y: auto; padding: clamp(24px, 4vw, 40px); position: relative; width: 100%; }
.lead-modal__close { align-items: center; background: transparent; border: 0; color: var(--ink-soft); cursor: pointer; display: flex; height: 32px; justify-content: center; position: absolute; right: 16px; top: 16px; width: 32px; }
.lead-modal__head h3 { font-family: var(--font-heading); font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; margin: 0 0 8px; }
.lead-modal__desc { color: var(--ink-soft); font-size: 13px; margin: 0 0 20px; }
.lead-modal__grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-bottom: 20px; }
.lead-modal__grid label { display: flex; flex-direction: column; gap: 5px; }
.lead-modal__grid label > span { color: var(--ink-soft); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lead-modal__grid input, .lead-modal__grid select, .lead-modal__grid textarea { background: var(--paper); border: 1px solid var(--line); font-family: inherit; font-size: 13px; min-height: 38px; padding: 0 10px; width: 100%; }
.lead-modal__grid textarea { padding-top: 8px; }
.lead-modal__span { grid-column: 1 / -1; }
.lead-modal__privacy { align-items: center; color: var(--ink-soft); display: flex; font-size: 11px; gap: 6px; justify-content: center; margin: 12px 0 0; }
.lead-modal__success { padding: 24px 0; text-align: center; }
.lead-modal__success h3 { font-family: var(--font-heading); font-size: 28px; margin: 12px 0 8px; }
.lead-modal__success p { color: var(--ink-soft); font-size: 13px; }

.not-found { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 60vh; padding: 40px 20px; text-align: center; }
.not-found-title { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin: 0 0 16px; }

/* MEDIA QUERIES */
@media (max-width: 1024px) {
  .site-nav { gap: 14px; margin-right: 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-phone-link { display: none; }
  .header-tg-link .header-tg-text { display: none; }
  .location-callout { grid-template-columns: 1fr 1.8fr; }
  .location-links { grid-column: 2; }
  .consultation-layout, .faq-section, .service-outcomes { grid-template-columns: 1fr; }
  .trust-grid, .regional-bullets-grid { grid-template-columns: 1fr; }
  .portfolio-modal { grid-template-columns: 1fr; }
  .quiz-options-grid { grid-template-columns: 1fr; }
  .quiz-result-metrics { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .consultation-layout { gap: 46px; }
}

@media (max-width: 680px) {
  .site-header { height: 67px; padding: 0 16px; }
  .brand { min-width: 110px; }
  .header-tg-link { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .site-nav {
    background: var(--white); box-shadow: 0 25px 40px rgba(21, 34, 34, .15); display: none; flex-direction: column; gap: 0;
    left: 0; margin: 0; padding: 16px 20px 24px; position: absolute; right: 0; top: 67px; z-index: 60;
  }
  .site-nav--open { display: flex; }
  .site-nav a { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .site-nav a::after { display: none; }
  .mobile-menu-contacts { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; padding-top: 14px; }
  .mobile-contact-row { align-items: center; color: var(--ink); display: flex; font-size: 13px; font-weight: 700; gap: 8px; }
  .mobile-contact-row--tg { color: #1a7fa0; }

  .hero { min-height: auto; }
  .hero__copy { padding: 48px 16px 54px; }
  .hero h1 { font-size: clamp(28px, 7.5vw, 40px); }
  .hero__vertical { display: none; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 380px; margin: 0 auto; }
  .hero__actions .button, .hero-tg-btn { width: 100%; }
  .hero-trust-strip { gap: 12px; }

  .stats-grid { grid-template-columns: 1fr; }
  .stats-strip { padding: 30px 16px; }

  .section { padding: 60px 16px; }
  .section-head h2, .faq-section h2 { font-size: 36px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }

  .process-list article { align-items: start; grid-template-columns: 46px 1fr; }
  .process-list article > svg { display: none; }
  .process-list h3 { font-size: 26px; }

  .location-callout { grid-template-columns: 1fr; }
  .location-links { grid-column: auto; }

  .lead-form__grid, .quiz-inputs-row, .lead-modal__grid { grid-template-columns: 1fr; }
  .lead-form__span, .lead-modal__span { grid-column: auto; }
  .lead-form__footer { align-items: stretch; flex-direction: column; }
  .lead-form-submit-btn { width: 100%; }

  .site-footer { grid-template-columns: 1fr; gap: 26px; padding: 40px 16px 90px; }

  .fab-container { display: none; }
  .mobile-sticky-bar { display: flex; }
  .site-shell { padding-bottom: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
