/* =========================================================
   Bobur Naves — vizitka sayti
   Ranglar:
     --orange  #F5771D   asosiy urg'u
     --ink     #0A0A0A   qora
     --paper   #E7E5E1   fon
   ========================================================= */

:root {
  --orange: #F5771D;
  --orange-dark: #DC6510;
  --ink: #0A0A0A;
  --ink-soft: #3A3A3A;
  --paper: #E7E5E1;
  --white: #FFFFFF;
  --panel: #151515;
  --panel-hover: #1E1E1E;
  --muted: #9A9A9A;
  --field-bg: #FAFAF9;
  --field-border: #DCDAD6;

  --card-max: 460px;
  --pad-x: 24px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
}

body {
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

a {
  color: var(--ink);
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

@keyframes bnRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   Card
   ========================================================= */

.card {
  width: 100%;
  max-width: var(--card-max);
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.06);
  overflow: hidden;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  padding: 34px var(--pad-x) 30px;
  background: var(--white);
  animation: bnRise .5s ease both;
  overflow: hidden;
}

.hero__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--orange);
  z-index: 2;
}

/* Yomg'ir animatsiyasi — logo va matn ostida */
.hero__rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* Hero kontenti yomg'ir ustida */
.hero__logo,
.hero__title-wrap {
  position: relative;
  z-index: 1;
}

/* =========================================================
   Til almashtirgich (UZ / RU)
   ========================================================= */

.lang-switch {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--ink);
  background: var(--white);
}

.lang-switch__btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 7px 11px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--ink);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.lang-switch__btn:hover { color: var(--orange); }

.lang-switch__btn.is-active {
  background: var(--ink);
  color: var(--white);
}

.lang-switch__btn.is-active:hover { color: var(--white); }

.lang-switch__sep {
  width: 1.5px;
  align-self: stretch;
  background: var(--ink);
}

.hero__logo {
  display: flex;
  justify-content: center;
  padding: 14px 0 2px;
}

.hero__logo img {
  width: 200px;
  height: auto;
  object-fit: contain;
}

.hero__title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.hero__title {
  margin: 0;
  width: 100%;
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-size: clamp(26px, 7.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-align: center;
}

.hero__title span { color: var(--orange); }

.hero__tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.hero__rule {
  flex: 1;
  max-width: 54px;
  height: 2px;
  background: var(--ink);
}

.hero__tagline-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3.2px;
  text-transform: uppercase;
}

/* =========================================================
   Intro
   ========================================================= */

.intro {
  padding: 4px var(--pad-x) 30px;
}

.intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
  text-wrap: pretty;
}

/* =========================================================
   Section heading (01 / 02)
   ========================================================= */

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-head__num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--orange);
}

.section-head__title {
  margin: 0;
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-size: 20px;
  letter-spacing: 0.4px;
  color: var(--white);
}

.section-head__title--dark { color: var(--ink); }

/* =========================================================
   Services (01)
   ========================================================= */

.services {
  padding: 30px var(--pad-x) 34px;
  background: var(--ink);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  background: var(--panel);
  transition: background .2s ease, transform .2s ease;
}

.service:hover {
  background: var(--panel-hover);
  transform: translateX(4px);
}

.service__icon {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--orange);
}

.service__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.service__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.2px;
}

.service__desc {
  font-size: 13px;
  color: var(--muted);
}

.service--highlight {
  background: var(--orange);
}

.service--highlight:hover {
  background: var(--orange);
  transform: translateX(4px);
}

.service--highlight .service__icon { color: var(--ink); }
.service--highlight .service__name { color: var(--ink); }
.service--highlight .service__desc { color: rgba(10, 10, 10, 0.72); }

/* =========================================================
   Contact (02)
   ========================================================= */

.contact {
  padding: 30px var(--pad-x) 34px;
}

/* Call button */
.btn-call {
  display: block;
  border: 2px solid var(--ink);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: background .2s ease, color .2s ease;
}

.btn-call:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-call__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  opacity: .6;
}

.btn-call__number {
  display: block;
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-size: 25px;
  letter-spacing: 0.2px;
  margin-top: 8px;
}

/* Shared big buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--white);
  margin-bottom: 12px;
  transition: background .2s ease, transform .15s ease;
}

.btn svg { width: 22px; height: 22px; flex: none; }

.btn--telegram { background: var(--orange); }
.btn--telegram:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--message { background: var(--ink); }
.btn--message svg { width: 20px; height: 20px; }
.btn--message:hover {
  background: #262626;
  transform: translateY(-2px);
}

/* =========================================================
   Lead form
   ========================================================= */

.lead-form {
  border: 2px solid var(--ink);
  border-top: none;
  padding: 22px 20px;
  animation: bnRise .3s ease both;
}

.lead-form form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #6A6A6A;
}

.field__req { color: var(--orange); }

.field__opt {
  color: #A0A0A0;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: none;
}

.field__hint {
  font-size: 12px;
  color: #8A8A8A;
  letter-spacing: 0;
  text-transform: none;
}

.field input,
.field textarea {
  padding: 0 14px;
  border: 1.5px solid var(--field-border);
  background: var(--field-bg);
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input { height: 50px; }

.field textarea {
  padding: 12px 14px;
  resize: vertical;
  min-height: 84px;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--orange);
}

/* --- Telefon: doimiy +998 prefiks --- */
.phone-input {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--field-border);
  background: var(--field-bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.phone-input__prefix {
  display: flex;
  align-items: center;
  padding: 0 10px 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  border-right: 1.5px solid var(--field-border);
  user-select: none;
  white-space: nowrap;
}

.phone-input input {
  flex: 1;
  border: none;
  background: transparent;
  width: 100%;
}

.phone-input:focus-within {
  border-color: var(--orange);
}

/* --- Xato holati: qizil border --- */
.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #E03131;
  box-shadow: 0 0 0 2px rgba(224, 49, 49, 0.14);
}

.phone-input.is-invalid {
  border-color: #E03131;
  box-shadow: 0 0 0 2px rgba(224, 49, 49, 0.14);
}

.phone-input.is-invalid .phone-input__prefix {
  border-right-color: #E03131;
}

.lead-form__error {
  margin: 0;
  font-size: 13px;
  color: #C0392B;
}

.btn-submit {
  min-height: 54px;
  background: var(--orange);
  color: var(--white);
  border: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: background .2s ease;
}

.btn-submit:hover { background: var(--orange-dark); }
.btn-submit:disabled { opacity: .6; cursor: default; }

.lead-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  text-align: center;
}

.lead-form__success svg { width: 42px; height: 42px; }

.lead-form__success-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 17px;
  color: var(--ink);
}

.lead-form__success-text {
  font-size: 14px;
  color: #6A6A6A;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  padding: 26px var(--pad-x) 30px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__region {
  margin: 0;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__socials a {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #333333;
  color: var(--white);
  transition: border-color .2s ease, background .2s ease;
}

.footer__socials a:hover {
  border-color: var(--orange);
  background: var(--orange);
}

.footer__socials svg { width: 20px; height: 20px; }

.footer__mark {
  width: 40px;
  height: 2px;
  background: var(--orange);
}

.footer__copy {
  margin: 0;
  font-size: 12px;
  color: #6A6A6A;
  text-align: center;
}

/* =========================================================
   Scroll hint — "pastga suring" ishorasi (ilk kirishda)
   ========================================================= */

.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 10px;
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 28px rgba(10, 10, 10, 0.28);
  pointer-events: none;
  animation: hintFloat 2.2s ease-in-out infinite;
  transition: opacity .4s ease, transform .4s ease;
}

/* chiqish paytida */
.scroll-hint.is-hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}

.scroll-hint__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(10, 10, 10, 0.35);
}

.scroll-hint__mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-hint__wheel {
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.95);
  animation: hintWheel 1.5s ease-in-out infinite;
}

.scroll-hint__chevrons {
  width: 20px;
  height: 26px;
  opacity: .9;
}

.scroll-hint__chevrons path {
  animation: hintChevron 1.5s ease-in-out infinite;
}

.scroll-hint__chevrons path:nth-child(2) {
  animation-delay: .18s;
  opacity: .55;
}

@keyframes hintFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}

@keyframes hintWheel {
  0%   { opacity: 0; transform: translateY(-4px); }
  35%  { opacity: 1; }
  70%  { opacity: 0; transform: translateY(9px); }
  100% { opacity: 0; }
}

@keyframes hintChevron {
  0%, 100% { opacity: .25; transform: translateY(-2px); }
  50%      { opacity: 1;   transform: translateY(2px); }
}

/* =========================================================
   Accessibility
   ========================================================= */

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

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
