:root {
  --navy: #1a2b56;        /* main brand colour: buttons, outlines, headings */
  --navy-hover: #2c4482;
  --text: #18223d;        /* body text: very dark navy */
  --green: var(--navy);   /* legacy name used by older rules */
  --green-dark: var(--navy-hover);
  --grey: #8790a6;
  --card: #f4f6fb;
  --banner: #eef2f9;
  --frame: #eceff6;
  --line: rgba(26, 43, 86, .16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans Armenian', 'Noto Sans', Arial, sans-serif; color: var(--text); background: #fff; line-height: 1.35; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container { max-width: 1230px; margin: 0 auto; padding: 0 15px; }
.accent { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; font-weight: 500; font-size: 16px;
  padding: 16px 28px; border-radius: 6px; transition: background .2s;
}
.btn:hover { background: var(--green-dark); }

/* ---------- header ---------- */
.header__top { display: flex; align-items: center; gap: 40px; padding-top: 14px; padding-bottom: 14px; }
.header__logo img { height: 62px; width: auto; }
.header__contacts { display: flex; gap: 40px; margin-left: auto; font-size: 17px; }
.header__phone { font-weight: 600; }
.header__phone { color: var(--navy); }
.header__phone:hover { color: var(--navy-hover); }
.header__call-icon { display: none; }
.header__ig { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 50%; transition: background .2s, color .2s; }
.header__ig:hover { background: var(--navy); color: #fff; }
.header__top .header__ig { margin-left: -16px; }
.footer__ig { display: inline-flex; align-items: center; gap: 8px; }

.nav { display: flex; align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 500; }
.nav__catalog { position: relative; width: 250px; border-right: 1px solid var(--line); }
.nav__catalog-btn { display: block; padding: 18px 0; }
.nav__catalog-btn span { margin-left: 8px; }
.nav__dropdown {
  display: none; position: absolute; left: -15px; top: 100%; z-index: 20; width: 340px;
  background: #fff; border-radius: 0 0 10px 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); padding: 8px 0;
}
.nav__catalog:hover .nav__dropdown, .nav__catalog:focus-within .nav__dropdown { display: block; }
.nav__dropdown a { display: block; padding: 10px 20px; font-weight: 400; }
.nav__dropdown a:hover, .nav__links a:hover, .nav__catalog-btn:hover { color: var(--navy-hover); }
.nav__links { display: flex; flex: 1; justify-content: space-around; align-items: center; padding-left: 20px; }
.nav__links li:first-child { display: none; }

/* ---------- banner ---------- */
.banner { position: relative; }
.banner__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--banner); }
.banner__track::-webkit-scrollbar, .popular__track::-webkit-scrollbar, .quick__list::-webkit-scrollbar { display: none; }
/* full-width 16:9 slides; on very wide screens the height is capped so the banner still fits under the header */
.banner__slide { position: relative; flex: 0 0 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 150px); min-height: 360px; scroll-snap-align: start; overflow: hidden; }
.banner__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.banner__photo--whole { object-fit: contain; }   /* portrait photos: shown whole on the grey */
.banner__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.55) 30%, rgba(255,255,255,0) 55%); }
.banner__content { position: relative; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding-bottom: 40px; }
.banner__content > * { max-width: 560px; }
.banner__title { font-size: 38px; font-weight: 700; line-height: 1.1; color: var(--navy); }
.banner__sub { font-size: 30px; font-weight: 500; margin-top: -12px; }
.banner__text { font-size: 16px; color: var(--text); max-width: 420px; }
.banner__note { font-size: 18px; }
.banner__note b { font-weight: 500; }
.banner__brand { height: 40px; width: auto; }
.banner__sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.banner__sizes li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 6px; padding: 8px 14px; font-weight: 600; }
.banner__sizes img { height: 20px; width: auto; }
.banner__dots { position: absolute; left: 15px; right: 15px; bottom: 18px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.banner__dots button { width: 10px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.15); transition: width .2s; pointer-events: auto; }
.banner__dots button.is-active { width: 30px; background: var(--navy); }

.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2b56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.arrow--prev { left: 20px; transform: translateY(-50%) rotate(180deg); }

.arrow--next { right: 20px; }

/* ---------- quick menu ---------- */
.quick { padding: 40px 15px 0; }
.quick__list { display: flex; justify-content: center; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.quick__list a { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 90px; font-size: 15px; }
.quick__list img { width: 85px; height: 85px; border: 2px solid var(--green); border-radius: 50%; padding: 6px; object-fit: cover; }
.quick__list a:hover { color: var(--navy-hover); }

/* ---------- sections ---------- */
.section { margin-top: 50px; }
.section__title { font-size: 36px; font-weight: 500; margin-bottom: 22px; color: var(--navy); }

.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; height: 100%; min-height: 285px; background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; transition: box-shadow .2s; }
.card:hover { border-color: var(--navy); box-shadow: 0 6px 22px rgba(26, 43, 86, .12); }
.card:hover .card__name { text-decoration: underline; }
.card__name { padding: 18px 16px 10px; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.card__ru { color: var(--grey); font-weight: 400; font-size: 15px; }
.card img { margin-top: auto; width: 100%; height: auto; }

/* ---------- product grid (category pages) ---------- */
.page { margin-top: 30px; margin-bottom: 70px; }
.crumbs { font-size: 14px; color: var(--grey); margin-bottom: 14px; }
.crumbs a:hover { color: var(--navy); }
.page .section__title .card__ru { display: block; margin-top: 6px; font-size: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filters button { padding: 10px 20px; border: 1.5px solid var(--navy); border-radius: 30px; font-size: 15px; font-weight: 500; color: var(--navy); transition: background .2s, color .2s; }
.filters button:hover { background: var(--banner); }
.filters button.is-active { background: var(--navy); color: #fff; }
.product[hidden] { display: none; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 20px; }
.product__frame { aspect-ratio: 1; background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.product__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transition: transform .3s; }
.product:hover .product__frame img { transform: scale(1.04); }
.product__name { margin-top: 12px; font-size: 17px; font-weight: 500; }
.product__note { margin-top: 4px; font-size: 14px; color: var(--grey); }
.product__price { margin-top: 6px; font-size: 18px; font-weight: 700; color: var(--navy); }
.products__empty { padding: 40px 0; color: var(--grey); font-size: 17px; }
.product__frame img[src*="/profiles/"], .product__frame img[src*="/track/"] { object-position: center; }

.product__frame { cursor: zoom-in; }
.lightbox { margin: auto; padding: 0; border: 0; background: none; max-width: 94vw; max-height: 94vh; overflow: visible; cursor: zoom-out; }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox img { max-width: 94vw; max-height: 84vh; width: auto; height: auto; border-radius: 10px; background: #fff; }
.lightbox p { margin-top: 12px; text-align: center; color: #fff; font-size: 17px; font-weight: 500; }
.lightbox__close { position: fixed; top: 14px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 28px; line-height: 1; }

/* ---------- popular ---------- */
.popular__wrap { position: relative; }
.popular__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.frame { flex: 0 0 calc((100% - 60px) / 4); aspect-ratio: 1; background: var(--frame); border-radius: 10px; scroll-snap-align: start; }
.pop { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
.pop a { display: block; }
.pop__frame { aspect-ratio: 1; background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .2s; }
.pop__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pop a:hover .pop__frame { border-color: var(--navy); }
.pop a:hover .pop__frame img { transform: scale(1.04); }
.pop__tag { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--grey); }
.pop .product__name { margin-top: 4px; font-size: 15px; }
.popular .arrow--prev { left: 12px; }
.popular .arrow--next { right: 12px; }

/* ---------- about ---------- */
.about { margin-bottom: 60px; }
.about h1 { font-size: 30px; font-weight: 500; margin-bottom: 18px; color: var(--navy); }
.about p { font-size: 15px; margin-bottom: 10px; max-width: 1100px; }

/* ---------- footer ---------- */
.footer { background: var(--banner); padding: 45px 0 50px; }
.footer__grid { display: grid; grid-template-columns: 240px 1fr 260px; gap: 50px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.footer__brand img { height: 62px; width: auto; }
.footer__title { font-size: 18px; font-weight: 600; margin-bottom: 14px; color: var(--navy); }
.footer__links li { margin-bottom: 9px; font-size: 14px; }
.footer__links--cols { columns: 2; column-gap: 30px; }
.footer__links a:hover { color: var(--navy-hover); }

/* ---------- tablet / mobile ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .frame, .pop { flex-basis: calc((100% - 40px) / 3); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- phone menu + bottom bar (hidden on large screens) ---------- */
.header__burger, .mmenu, .tabbar { display: none; }

@media (max-width: 700px) {
  /* header: logo left, round buttons + menu button right (like the reference) */
  .header { border-bottom: 1px solid var(--line); }
  .header__top { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .header__logo img { height: 42px; }
  .header__contacts, .header__call, .nav { display: none; }
  .header__top .header__ig { width: 40px; height: 40px; margin-left: auto; }
  .header__call-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; }
  .header__burger { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px; padding: 0 7px; }
  .header__burger span { display: block; height: 2px; border-radius: 2px; background: var(--navy); }

  /* full-screen menu */
  .mmenu { display: block; position: fixed; inset: 0; z-index: 100; background: #fff; padding: 12px 20px 100px; overflow-y: auto;
           visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .mmenu.is-open { visibility: visible; opacity: 1; transform: none; }
  html.menu-open { overflow: hidden; }
  .mmenu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .mmenu__top img { height: 42px; width: auto; }
  .mmenu__close { width: 44px; height: 44px; font-size: 34px; line-height: 1; color: var(--navy); }
  .mmenu__label { display: inline-block; background: var(--navy); color: #fff; font-weight: 500; font-size: 15px; padding: 9px 18px; border-radius: 6px; margin-bottom: 6px; }
  .mmenu__list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mmenu__list:not(.mmenu__list--small) a::after { content: "›"; font-size: 24px; color: var(--grey); }
  .mmenu__list--small { margin-top: 18px; }
  .mmenu__list--small a { font-size: 15px; font-weight: 400; color: var(--grey); border: 0; padding: 9px 0; }
  .mmenu__contacts { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; font-size: 16px; font-weight: 600; }

  /* fixed bottom bar */
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
            background: #fff; border-top: 1px solid var(--line); padding: 7px 0 calc(7px + env(safe-area-inset-bottom)); }
  .tabbar__item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--grey); }
  .tabbar__item.is-active { color: var(--navy); font-weight: 600; }

  /* banner: rounded card */
  .banner { padding: 12px 15px 0; }
  .banner__track { border-radius: 14px; }
  .banner__slide { max-height: none; min-height: 0; }
  .banner__content { gap: 7px; padding: 0 14px 16px; }
  .banner__content > * { max-width: 62%; }
  .banner__shade { background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 80%); }
  .banner__title { font-size: 18px; order: -2; }
  .banner__title br { display: none; }
  .banner__sub { font-size: 17px; margin-top: -6px; }
  .banner__text, .banner__note { font-size: 11px; line-height: 1.35; }
  .banner__note { order: -1; }
  .banner__brand { height: 24px; order: -3; }
  .banner__sizes li { padding: 5px 9px; font-size: 13px; }
  .banner__sizes img { height: 14px; }
  .btn { padding: 12px 22px; font-size: 15px; }
  .banner__dots { bottom: 8px; }
  .banner .btn { padding: 7px 14px; font-size: 12px; border-radius: 5px; }
  .banner .arrow { display: none; }

  /* round quick links scroll sideways */
  .quick { padding: 20px 0 0; }
  .quick__list { justify-content: flex-start; gap: 12px; padding: 0 15px; }
  .quick__list li { flex: none; }
  .quick__list a { width: 82px; font-size: 13px; }
  .quick__list img { width: 78px; height: 78px; border-width: 2px; padding: 3px; }

  .section { margin-top: 28px; }
  .section__title { font-size: 24px; margin-bottom: 14px; }

  /* catalog: square cards, title on top, photo filling the bottom */
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { display: flex; flex-direction: column; min-height: 0; border-radius: 12px; }
  .card__name { position: relative; z-index: 1; display: block; padding: 12px 12px 0; font-size: 13px; font-weight: 600; line-height: 1.25; hyphens: auto; }
  .card__ru { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 400; line-height: 1.3; }
  .card img { margin-top: auto; width: 100%; padding-top: 6px; }

  .popular__track { gap: 10px; }
  .frame, .pop { flex-basis: 46%; }
  .popular .arrow { display: none; }

  .about h1 { font-size: 21px; }
  .about p { font-size: 14px; }
  .about { margin-bottom: 36px; }

  /* category pages */
  .page { margin-top: 18px; margin-bottom: 36px; }
  .crumbs { display: none; }
  .page .section__title { font-size: 24px; line-height: 1.2; }
  .page .section__title .card__ru { margin-top: 6px; font-size: 13px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; margin: 0 -15px 18px; padding: 0 15px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; padding: 9px 16px; font-size: 14px; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; }
  .product__frame { border-radius: 12px; }
  .product__name { font-size: 14px; margin-top: 8px; line-height: 1.3; }
  .product__note { font-size: 12px; }
  .product__price { font-size: 16px; margin-top: 6px; }

  /* footer: logo + call on one row, then catalog and contacts */
  .footer { padding: 30px 0 34px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .footer__brand { grid-column: auto; flex-direction: row; align-items: center; justify-content: space-between; }
  .footer__brand img { height: 46px; }
  .footer__links--cols { columns: 1; }
  .footer__links li { font-size: 15px; margin-bottom: 11px; }
}
