/* ============================================================
   Главная — стабильный Hero без JS-переключений и без старого fallback.
   Фотография начинается строго под белой шапкой.
   ============================================================ */

.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--cream-50);
}
.hero::before { display: none; }

.hero-media {
  position: absolute;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  background: var(--cream-100);
}
.hero-media::after,
.pendants,
.hero-dots { display: none !important; }
.hero-slides,
.hero-slide { position: absolute; inset: 0; }
.hero-slide {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
  background-image: url("../img/hero-1.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(252,250,246,0) 0%,
    rgba(252,250,246,0) 57%,
    rgba(252,250,246,.24) 65%,
    rgba(252,250,246,.58) 75%,
    rgba(252,250,246,.84) 86%,
    rgba(252,250,246,.97) 100%);
}

.hero-inner {
  display: block;
  position: absolute;
  top: calc(var(--header-h) + clamp(32px, 3.1vw, 48px));
  left: 64.5%;
  right: auto;
  width: min(500px, calc(35.5% - 34px));
  max-width: none;
  margin: 0;
  padding: 0;
  z-index: 3;
}
.hero-inner > * { width: auto; max-width: 100%; }
.hero .eyebrow {
  margin-bottom: 18px;
  font-size: clamp(11px, .92vw, 12.5px);
  line-height: 1.45;
}
.hero-title {
  font-size: clamp(46px, 4.05vw, 60px);
  line-height: 1.04;
  max-width: 13ch;
  margin-bottom: 16px;
}
.hero-swoosh {
  width: 220px;
  max-width: 56%;
  margin-bottom: 22px;
}
.hero-text {
  max-width: 40ch;
  margin-bottom: 30px;
  font-size: clamp(15.5px, 1.2vw, 18px);
  line-height: 1.62;
}
.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 15px;
  width: max-content;
  max-width: 100%;
}
.hero-actions .btn {
  flex: 0 0 auto;
  padding: 15px 25px;
  font-size: clamp(11.2px, .9vw, 12.4px);
  letter-spacing: .105em;
  white-space: nowrap;
}
.hero-actions .btn--ghost { background: rgba(252,250,246,.76); }

.hero-scroll {
  position: absolute;
  left: auto;
  right: clamp(30px, 5vw, 72px);
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(22,32,58,.58);
}
.hero-scroll i { display: block; width: 54px; height: 1px; background: var(--gold-500); }

/* Armenian hero is intentionally scaled down to match the perceived
   Russian/English size despite taller Armenian glyph metrics. */
html[data-lang="hy"] .hero-title {
  font-size: clamp(38px, 3.25vw, 49px);
  line-height: 1.12;
  max-width: 13.5ch;
  margin-bottom: 15px;
}
html[data-lang="hy"] .hero .eyebrow {
  font-size: clamp(9.5px, .72vw, 11px);
  letter-spacing: .13em;
  margin-bottom: 14px;
}
html[data-lang="hy"] .hero-text {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.58;
  max-width: 39ch;
  margin-bottom: 24px;
}
html[data-lang="hy"] .hero-actions .btn {
  padding: 14px 20px;
  font-size: clamp(10px, .76vw, 11px);
  letter-spacing: .06em;
}

@media (min-width: 901px) and (max-width: 1180px) {
  .hero-inner {
    left: 63.5%;
    width: calc(36.5% - 24px);
    top: calc(var(--header-h) + 30px);
  }
  .hero-title { font-size: clamp(40px, 3.8vw, 48px); }
  .hero-text { font-size: 15px; margin-bottom: 24px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 14px 17px; font-size: 10.6px; }
  html[data-lang="hy"] .hero-title { font-size: clamp(34px, 3.2vw, 42px); }
}

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 0;
    overflow: hidden;
    background: var(--cream-50);
  }

  /* Сначала текстовый блок, потом обычная прямоугольная фотография. */
  .hero-inner {
    order: 1;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gut);
    z-index: 3;
  }
  .hero .eyebrow { margin-bottom: 18px; }
  .hero-title {
    font-size: clamp(38px, 9vw, 58px);
    max-width: 12ch;
    margin-bottom: 14px;
  }
  .hero-swoosh {
    width: 220px;
    max-width: 62%;
    margin-bottom: 24px;
  }

  /* На мобильном этот поясняющий абзац убираем полностью. */
  .hero-text { display: none; }

  /* Две кнопки на одной строке. */
  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 10px;
    width: 100%;
    max-width: 430px;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 9px;
    font-size: clamp(8.8px, 2.35vw, 10.5px);
    line-height: 1.25;
    letter-spacing: .065em;
    white-space: nowrap;
  }
  .hero-actions .btn--ghost { background: transparent; }

  /* Фото — отдельным блоком, без диагонального clip-path и без overlay. */
  .hero-media {
    order: 2;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1565 / 1005;
    margin-top: 26px;
    clip-path: none;
    box-shadow: none;
    overflow: hidden;
    background: var(--cream-100);
  }
  .hero-slides,
  .hero-slide { position: absolute; inset: 0; }
  .hero-slide {
    background-image: url("../img/hero-mobile.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .hero-slides::after { display: none; }
  .hero-scroll { display: none; }

  html[data-lang="hy"] .hero-title {
    font-size: clamp(32px, 7.7vw, 46px);
    max-width: 13ch;
  }
  html[data-lang="hy"] .hero-actions .btn {
    padding-inline: 6px;
    font-size: clamp(8px, 2.05vw, 9.5px);
    letter-spacing: .025em;
  }
}

@media (max-width: 380px) {
  .hero { padding-top: calc(var(--header-h) + 22px); }
  .hero-actions { gap: 8px; }
  .hero-actions .btn {
    min-height: 46px;
    padding-inline: 6px;
    font-size: 8.6px;
    letter-spacing: .04em;
  }
  html[data-lang="hy"] .hero-actions .btn { font-size: 7.8px; }
  .hero-media { margin-top: 22px; }
}

/* ---------- Направления ---------- */
.dir-grid { align-items: stretch; }
.dir-card { display: flex; flex-direction: column; }
.dir-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 0;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  transition: height .55s var(--ease);
}
.dir-card:hover::before { height: 100%; }
.dir-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.dir-tags li {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 40px;
  color: var(--muted);
}
.dir-card .link-more { margin-top: auto; align-self: flex-start; }

/* ---------- Что вас беспокоит ---------- */
.concern-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.concern-chip {
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 60px;
  background: var(--cream-50);
  font-size: 14px;
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.concern-chip:hover { border-color: var(--gold-500); transform: translateY(-2px); }
.concern-chip.is-active { background: var(--navy-800); border-color: var(--navy-800); color: var(--cream-50); }

.concern-panel {
  min-height: 168px;
  background: var(--cream-50);
  border: 1px solid var(--line-gold);
  padding: clamp(24px, 3.5vw, 42px);
  display: grid;
  place-items: center;
}
.concern-empty { color: var(--muted); font-size: 15px; margin: 0; text-align: center; }
.concern-inner { width: 100%; }
.concern-inner h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 22px;
  text-align: center;
}
.concern-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.concern-list a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 22px;
  background: var(--cream-100);
  border: 1px solid transparent;
  min-width: 220px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.concern-list a:hover { border-color: var(--gold-500); background: #fff; }
.concern-list b { font-family: var(--font-display); font-size: 20px; font-weight: 400; }
.concern-list i { font-style: normal; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.concern-fade { animation: none; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
.concern-hint { text-align: center; font-size: 13px; color: var(--muted); margin: 20px auto 0; max-width: 56ch; }

/* ---------- Как мы работаем ---------- */
.why { display: block; }
.why .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); }
.why-head { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
.why-head h2 { margin-bottom: 22px; }
.why-head .swoosh { margin-bottom: 26px; }
.why-list { display: grid; gap: 2px; background: var(--line); border-block: 1px solid var(--line); }
.why-item { background: var(--cream-50); padding: clamp(22px, 3vw, 34px) 0; }
.why-item h3 { margin-bottom: 10px; }
.why-item p { color: var(--muted); margin: 0; max-width: 52ch; }
@media (max-width: 900px) {
  .why .wrap { grid-template-columns: 1fr; }
  .why-head { position: static; }
}

/* ---------- Адреса ---------- */
.loc-card { position: relative; background: var(--cream-50); border: 1px solid var(--line); padding: clamp(28px, 4vw, 46px); }
.loc-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold-600);
  display: block;
  margin-bottom: 18px;
}
.loc-card h3 { margin-bottom: 6px; }
.loc-hours { font-size: 14px; margin: 18px 0 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.loc-actions { display: flex; gap: 20px; flex-wrap: wrap; }

/* ============================================================
   FINAL DESKTOP HERO — v7
   Photo/crop stay as approved. Copy begins at the approved left edge
   and is scaled to fill the marked vertical band more confidently.
   ============================================================ */
@media (min-width: 901px) {
  .hero.has-photo {
    position: relative;
    min-height: 100svh;
    height: 100svh;
    padding-top: 0;
    display: block;
    overflow: hidden;
    background: var(--cream-50);
  }

  /* Photo starts strictly below the white navbar and fills the rest
     of the first viewport, so no white strip can appear at the bottom. */
  .hero.has-photo .hero-media {
    position: absolute;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    clip-path: none;
    box-shadow: none;
    overflow: hidden;
    background: var(--cream-100);
  }
  .hero.has-photo .hero-media::after,
  .hero.has-photo .pendants,
  .hero.has-photo .hero-dots {
    display: none !important;
  }
  .hero.has-photo .hero-slides,
  .hero.has-photo .hero-slide { inset: 0; }
  .hero.has-photo .hero-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }
  .hero.has-photo .hero-slides::after {
    background: linear-gradient(90deg,
      rgba(252,250,246,0) 0%,
      rgba(252,250,246,0) 57%,
      rgba(252,250,246,.24) 65%,
      rgba(252,250,246,.58) 75%,
      rgba(252,250,246,.84) 86%,
      rgba(252,250,246,.97) 100%);
    z-index: 2;
  }
  .hero.has-photo::before { opacity: 0; }

  /* Copy: same horizontal start as the approved version, but larger. */
  .hero.has-photo .hero-inner {
    display: block;
    position: absolute;
    top: calc(var(--header-h) + clamp(32px, 3.1vw, 48px));
    left: 64.5%;
    right: auto;
    width: min(500px, calc(35.5% - 34px));
    max-width: none;
    margin: 0;
    padding: 0;
    z-index: 3;
  }
  .hero.has-photo .hero-inner > * {
    width: auto;
    max-width: 100%;
  }
  .hero.has-photo .eyebrow {
    margin-bottom: 18px;
    font-size: clamp(11px, .92vw, 12.5px);
    line-height: 1.45;
  }
  .hero.has-photo .hero-title {
    font-size: clamp(46px, 4.05vw, 60px);
    line-height: 1.04;
    max-width: 13ch;
    margin-bottom: 16px;
  }
  .hero.has-photo .hero-swoosh {
    width: 220px;
    max-width: 56%;
    margin-bottom: 22px;
  }
  .hero.has-photo .hero-text {
    max-width: 40ch;
    margin-bottom: 30px;
    font-size: clamp(15.5px, 1.2vw, 18px);
    line-height: 1.62;
  }
  .hero.has-photo .hero-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;
    width: max-content;
    max-width: 100%;
  }
  .hero.has-photo .hero-actions .btn {
    flex: 0 0 auto;
    padding: 15px 25px;
    font-size: clamp(11.2px, .9vw, 12.4px);
    letter-spacing: .105em;
    white-space: nowrap;
  }
  .hero.has-photo .hero-actions .btn--ghost {
    background: rgba(252,250,246,.76);
  }
  .hero.has-photo .hero-scroll {
    left: auto;
    right: clamp(30px, 5vw, 72px);
    bottom: 18px;
    z-index: 3;
    color: rgba(22,32,58,.58);
  }
}

/* Compact desktop/laptop: still visibly larger than v6, but guaranteed
   to keep both buttons on one line. */
@media (min-width: 901px) and (max-width: 1180px) {
  .hero.has-photo .hero-inner {
    left: 63.5%;
    width: calc(36.5% - 24px);
    top: calc(var(--header-h) + 30px);
  }
  .hero.has-photo .hero-title {
    font-size: clamp(40px, 3.8vw, 48px);
    max-width: 13ch;
  }
  .hero.has-photo .hero-text {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .hero.has-photo .hero-actions { gap: 10px; }
  .hero.has-photo .hero-actions .btn {
    padding: 14px 17px;
    font-size: 10.6px;
  }
}
