/* promexpo — тема сайта на CMS. Цвета и шрифты как у текущего promexpo.am. */
:root {
  --navy: #041c36;
  --navy-2: #032e42;
  --slate: #223b48;
  --accent: #0a6fb8;
  --sand: #f6f3ee;
  --grey: #f5f5f5;
  --line: #e4e6ea;
  --text: #1d2733;
  --muted: #5d6875;
  --white: #fff;
  --radius: 4px;
  --shadow: 0 6px 24px rgba(4, 28, 54, .08);
  --font: "Montserrat", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; color: var(--navy); margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: 8px 16px; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---- Topbar / header ---- */
.topbar { background: var(--navy); color: #cfd8e3; font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar__contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__social { display: flex; gap: 14px; }

.header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 2px 12px rgba(4, 28, 54, .08); }
.header__in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.header__logo img { width: 120px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list, .langs { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav__list { gap: 26px; }
.nav__link { position: relative; display: block; padding: 8px 0; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.nav__link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--navy); transition: right .2s; }
.nav__link:hover { text-decoration: none; }
.nav__link:hover::after, .nav__link.is-active::after { right: 0; }
.langs { gap: 6px; }
.langs a { display: block; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 12px; font-weight: 700; color: var(--navy); }
.langs a:hover { background: var(--navy); color: #fff; text-decoration: none; }
.header__burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.header__burger span:not(.sr-only) { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 22px; background: var(--navy); color: #fff; border: 2px solid var(--navy); border-radius: 0; font-weight: 700; font-size: 14px; line-height: 1.2; transition: background .2s, color .2s; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; text-decoration: none; }
.btn .ico { width: 18px; height: 18px; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--navy); border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--block { display: flex; width: 100%; }

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section--grey { background: var(--grey); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--navy); color: #d9e2ec; }
.section--dark .section__title { color: #fff; }
.section__title { font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 28px; }
.section__title--sm { font-size: 20px; margin-top: 40px; }
.empty { color: var(--muted); }
.intro { font-size: 17px; color: var(--muted); max-width: 820px; margin-bottom: 32px; }
.lead { font-size: 18px; font-weight: 500; color: var(--slate); }

.page-head { background: var(--navy) linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, var(--slate) 100%); color: #fff; padding: 56px 0 48px; }
.page-head__title { color: #fff; margin: 0; font-size: clamp(24px, 4vw, 38px); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.page-head__sub { margin: 10px 0 0; color: #b9c7d6; font-weight: 500; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--navy) linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--slate) 100%); color: #fff; min-height: min(62vh, 560px); display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
/* видео-фон поверх фото (фото — кадр до загрузки и при «меньше движения») */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; pointer-events: none; }
.hero__video--embed { overflow: hidden; }
.hero__video--embed iframe { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); border: 0; transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
.hero__in { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero__title { color: #fff; font-size: clamp(32px, 6vw, 68px); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; max-width: 14em; margin: 0; }
.hero__sub { margin: 18px 0 0; font-size: clamp(16px, 2vw, 20px); color: #c9d6e3; max-width: 36em; }

/* ---- Layout helpers ---- */
.split { display: grid; grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); gap: 32px; align-items: start; }
.stack { display: grid; gap: 24px; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--catalogs { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ---- Cards ---- */
.card { background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__media { display: block; aspect-ratio: 21 / 8; background: var(--grey); overflow: hidden; margin: 16px 16px 0; }
.card__media--tall { aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy), var(--slate)); }
.card__body { padding: 20px 16px 20px; display: flex; flex-direction: column; flex: 1; }
.card__body .btn { align-self: flex-start; margin-top: auto; }
.card__title { font-size: 16px; font-weight: 800; text-transform: uppercase; margin: 0 0 12px; }
.card__title a { color: var(--navy); }
.card__text { color: var(--muted); font-size: 15px; }

.meta { list-style: none; margin: 0 0 18px; padding: 0; font-size: 15px; color: var(--muted); }
.meta li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.meta li:last-child { border-bottom: 0; }
.meta .ico { margin-top: .3em; color: var(--navy); }
.meta--lg { font-size: 16px; color: var(--text); }
.meta--lg .ico { width: 20px; height: 20px; margin-top: .15em; }
.meta--lg span { display: flex; flex-direction: column; }
.meta--lg small { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.meta--lg em { font-style: normal; color: var(--muted); font-size: 14px; }

/* ---- Calendar ---- */
.calendar { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.calendar__item { display: flex; background: #fff; box-shadow: var(--shadow); min-height: 92px; }
.calendar__date { flex: none; width: 104px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 6px; }
.calendar__date b { font-size: 24px; font-weight: 800; line-height: 1.1; }
.calendar__date span { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #b9c7d6; }
.calendar__body { padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.calendar__title { color: var(--navy); font-weight: 700; font-size: 14px; text-transform: uppercase; line-height: 1.35; }
.calendar__more { font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }

/* ---- Partners / roles ---- */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; text-align: center; }
.role__title { font-size: 16px; font-weight: 800; text-transform: uppercase; margin-bottom: 18px; }
.role__logo { display: flex; align-items: center; justify-content: center; height: 120px; margin-bottom: 12px; }
.role__logo img { max-height: 120px; width: auto; object-fit: contain; }
.role__name { color: var(--muted); font-size: 14px; max-width: 280px; margin: 0 auto; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.logos__item { background: #fff; display: flex; align-items: center; justify-content: center; height: 110px; padding: 16px; box-shadow: var(--shadow); }
.logos__item img { max-height: 78px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logos__item:hover img { filter: none; opacity: 1; }

/* ---- Pavilions / tiles ---- */
.pavilions__text { max-width: 760px; margin-bottom: 28px; }
.pavilions .btn { margin-top: 28px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.scroller > * { scroll-snap-align: start; }
.tile { position: relative; display: block; background: #fff; box-shadow: var(--shadow); color: var(--navy); }
.tile:hover { text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tile--tour img { aspect-ratio: 16 / 10; }
.tile__title { display: block; padding: 12px 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.tile__badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; }
.scroller--wide { grid-auto-columns: minmax(280px, 1fr); }

/* ---- Gallery (просмотр фото — PhotoSwipe, core/assets/front/gallery.*) ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery__item { display: block; overflow: hidden; background: var(--grey); aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery__item:hover img { transform: scale(1.05); }

/* ---- Detail pages ---- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.detail__cover { margin: 0 0 28px; }
.detail__cover img { width: 100%; }
.detail__side { display: grid; gap: 24px; position: sticky; top: 100px; }
.infobox { background: var(--grey); padding: 24px; display: grid; gap: 12px; }
.infobox .meta { margin: 0; }
.infobox__actions { display: grid; gap: 10px; }
.side-tile { background: var(--grey); padding: 20px; }
.side-tile__title { font-size: 15px; font-weight: 800; text-transform: uppercase; margin-bottom: 14px; }
.side-links { list-style: none; margin: 0 0 8px; padding: 0; }
.side-links a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 15px; }

.prose { font-size: 16px; }
.prose h2 { font-size: 22px; margin-top: 1.6em; }
.prose h3 { font-size: 18px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--navy); background: var(--grey); }
.prose--light, .prose--light h2, .prose--light h3 { color: #d9e2ec; }
.prose--light h2 { color: #fff; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: start; }
.about__text .btn { margin-top: 12px; }
.about__img { margin: 0; }
.person { background: #fff; box-shadow: var(--shadow); text-align: center; padding-bottom: 20px; }
.person__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--grey); margin-bottom: 16px; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-size: 16px; font-weight: 800; margin: 0 12px 4px; }
.person__pos { color: var(--muted); font-size: 14px; margin: 0 12px 6px; }
.person__link { display: block; font-size: 14px; }

.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.contacts__map { aspect-ratio: 4 / 3; background: var(--grey); }
.contacts__map iframe { width: 100%; height: 100%; border: 0; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.social a:hover { background: #fff; color: var(--navy); }
.social--dark a { border-color: var(--line); color: var(--navy); }
.social--dark a:hover { background: var(--navy); color: #fff; }
.social .ico { width: 18px; height: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 8px 16px; border: 1px solid var(--navy); color: var(--navy); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.chip:hover, .chip.is-active { background: var(--navy); color: #fff; text-decoration: none; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pager__item { min-width: 42px; padding: 9px 14px; text-align: center; background: #fff; color: var(--navy); font-weight: 700; border: 1px solid var(--line); }
.pager__item:hover { border-color: var(--navy); text-decoration: none; }
.pager__item.is-current { background: var(--navy); color: #fff; border-color: var(--navy); }


.notfound { text-align: center; }
.notfound__code { font-size: 96px; font-weight: 800; color: var(--navy); line-height: 1; margin: 0 0 12px; }

/* ---- Footer ---- */
.footer { background: var(--navy); color: #aebccb; font-size: 15px; }
.footer a { color: #d9e2ec; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer__about img { width: 140px; margin-bottom: 18px; }
.footer__title { color: #fff; font-size: 16px; font-weight: 800; text-transform: uppercase; margin-bottom: 18px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.footer__contacts li { display: flex; gap: 14px; align-items: flex-start; }
.footer__contacts .ico { width: 22px; height: 22px; color: #fff; margin-top: 2px; }
.footer__contacts span { display: flex; flex-direction: column; }
.footer__contacts small { font-size: 13px; color: #8193a6; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 13px; color: #8193a6; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .nav__list { gap: 18px; }
  .nav__link { font-size: 13px; }
}
@media (max-width: 1024px) {
  .split, .detail, .about, .contacts { grid-template-columns: 1fr; }
  .detail__side { position: static; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .header__burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; box-shadow: 0 12px 24px rgba(4, 28, 54, .12); }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav__link::after { display: none; }
  .langs { padding-top: 14px; }
  .header__in { position: relative; }
}
@media (max-width: 680px) {
  .section { padding: 44px 0; }
  .section__title { font-size: 21px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
  .topbar__contacts a:nth-child(2) { display: none; }
  .hero { min-height: 380px; }
  .calendar__date { width: 84px; }
  .detail__side { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Медиаархив, каталоги, логотип выставки ---- */
.card__media--photo { aspect-ratio: 4 / 3; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.card__tags span { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--grey); padding: 2px 8px; }
.tile__ph { display: block; aspect-ratio: 3 / 4; }
.tile--tour .tile__ph { aspect-ratio: 16 / 10; }
.infobox__logo { background: #fff; padding: 16px; display: flex; justify-content: center; }
.infobox__logo img { max-height: 120px; width: auto; object-fit: contain; }
.back-link { margin: 32px 0 0; font-weight: 600; }
.detail__cover--wide img { width: 100%; max-height: 520px; object-fit: cover; }
.detail__cover-link { display: block; cursor: zoom-in; }

/* ---- Таблицы в тексте (прайс оборудования и т.п.) ---- */
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.2em 0; display: block; overflow-x: auto; }
.prose th { text-align: left; background: var(--navy); color: #fff; font-weight: 700; padding: 12px 16px; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) { background: var(--grey); }
.prose td:last-child, .prose th:last-child { text-align: right; white-space: nowrap; }
@media (max-width: 680px) { .prose th, .prose td { padding: 10px 8px; } .prose table { font-size: 14px; } }

/* просмотр фото галерей (PhotoSwipe, core/assets/front/gallery.*) */
html .pswp { --pswp-bg: #0f1b2d; --pswp-accent: var(--accent, #e8a33d); --pswp-icon-color: #fff; }
