/* =========================================
   GLOBALMEDX BRAND DETAIL PAGE
   Final Responsive CSS
========================================= */

:root{
  --blue:#0c63e7;
  --deep:#0a3fa3;
  --aqua:#00c6c2;

  --bg:#f4f8fe;
  --bg-soft:#eef5ff;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:rgba(15,23,42,0.08);

  --hero-overlay:linear-gradient(135deg, rgba(8,31,92,0.98), rgba(12,99,231,0.92), rgba(0,198,194,0.74));
  --shadow-sm:0 10px 28px rgba(15,23,42,0.06);
  --shadow-md:0 18px 50px rgba(15,23,42,0.10);
  --shadow-lg:0 28px 80px rgba(10,63,163,0.18);

  --radius-sm:14px;
  --radius-md:22px;
  --radius-lg:30px;

  --container:1280px;
  --transition:.28s cubic-bezier(.2,.8,.2,1);
}

*{
  box-sizing:border-box;
  min-width:0;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter, "Segoe UI", Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(12,99,231,0.05), transparent 26%),
    radial-gradient(circle at top right, rgba(0,198,194,0.06), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #f9fbff 100%);
  line-height:1.6;
  overflow-x:hidden;
}

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

a{
  text-decoration:none;
  color:inherit;
}

button,
input,
textarea,
select{
  font:inherit;
}

.container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
}

.brand-page{
  position:relative;
}

/* =========================
   HERO
========================= */

.brand-hero{
  position:relative;
  overflow:hidden;
  padding:56px 0 44px;
}

.brand-hero::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:100%;
  background:var(--hero-overlay);
  border-radius:0 0 40px 40px;
  z-index:0;
}

.brand-hero::after{
  content:"";
  position:absolute;
  right:-90px;
  top:-80px;
  width:340px;
  height:340px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  z-index:0;
  pointer-events:none;
}

.brand-hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}

.brand-hero-bg::before{
  content:"";
  position:absolute;
  left:-90px;
  bottom:-130px;
  width:340px;
  height:340px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,0.10), transparent 70%);
}

.brand-hero-bg::after{
  content:"";
  position:absolute;
  right:10%;
  top:16%;
  width:180px;
  height:180px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(0,198,194,0.22), transparent 70%);
}

.brand-hero-inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:170px minmax(0, 1fr);
  gap:32px;
  align-items:center;
}

.brand-hero-left{
  display:flex;
  align-items:center;
  justify-content:center;
}

.brand-logo-wrap{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.brand-logo-box,
.brand-logo-fallback{
  width:150px;
  height:150px;
  border-radius:28px;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:16px; /* շատ կարևոր */
  overflow:hidden;

  background:#ffffff; /* մաքուր ֆոն */
  border:1px solid rgba(15,23,42,0.08);

  box-shadow:0 18px 50px rgba(15,23,42,0.12);
}

/* Լոգո */
.brand-logo-box img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;

  object-fit:contain;
  object-position:center;

  display:block;
}

/* fallback */
.brand-logo-fallback{
  font-size:30px;
  font-weight:800;
  color:#0f172a;
  letter-spacing:.04em;
}



.brand-hero-right{
  color:#fff;
  max-width:900px;
}

.brand-kicker{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:8px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#fff;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.18);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.brand-title{
  margin:18px 0 14px;
  font-size:clamp(34px, 5vw, 62px);
  line-height:1.04;
  letter-spacing:-0.03em;
  font-weight:800;
}

.brand-short-info{
  margin:0;
  max-width:760px;
  font-size:17px;
  line-height:1.85;
  color:rgba(255,255,255,0.88);
}

.brand-meta-list{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.brand-meta-chip{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:120px;
  padding:12px 14px;
  border-radius:18px;
  background:rgba(255,255,255,0.11);
  border:1px solid rgba(255,255,255,0.16);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.meta-label{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(255,255,255,0.72);
}

.meta-value{
  font-size:15px;
  font-weight:800;
  color:#fff;
}

.brand-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:28px;
}

.btn-primary,
.btn-secondary,
.btn-light{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 22px;
  border-radius:16px;
  font-size:15px;
  font-weight:800;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.btn-primary{
  color:#fff;
  background:linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.10));
  border:1px solid rgba(255,255,255,0.22);
  box-shadow:0 18px 40px rgba(0,0,0,0.10);
  backdrop-filter:blur(10px);
}

.btn-primary:hover{
  transform:translateY(-2px);
  background:linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.14));
}

.btn-secondary{
  color:#fff;
  background:transparent;
  border:1px solid rgba(255,255,255,0.24);
}

.btn-secondary:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,0.10);
}

.btn-light{
  color:#fff;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.16);
}

.btn-light:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,0.12);
}

/* =========================
   LAYOUT
========================= */

.brand-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 320px;
  gap:30px;
  padding:34px 0 72px;
  align-items:start;
}

.brand-main{
  min-width:0;
}

.brand-sidebar{
  position:sticky;
  top:100px;
}

.brand-section{
  margin-bottom:26px;
}

.section-head{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  margin-bottom:18px;
}

.section-kicker{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--blue);
}

.section-head h2{
  margin:0;
  font-size:clamp(26px, 3vw, 38px);
  line-height:1.15;
  letter-spacing:-0.02em;
  color:var(--text);
}

/* =========================
   CARDS
========================= */

.brand-card{
  position:relative;
  background:linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border:1px solid rgba(15,23,42,0.08);
  border-radius:26px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}

.brand-richtext{
  padding:28px;
  font-size:16px;
  line-height:1.9;
  color:#1e293b;
}

.brand-richtext h1,
.brand-richtext h2,
.brand-richtext h3,
.brand-richtext h4{
  color:#0f172a;
  line-height:1.25;
  margin-top:0;
  margin-bottom:14px;
}

.brand-richtext h2,
.brand-richtext h3{
  margin-top:24px;
}

.brand-richtext p{
  margin:0 0 14px;
}

.brand-richtext ul,
.brand-richtext ol{
  margin:0 0 14px;
  padding-left:20px;
}

.brand-richtext img{
  border-radius:18px;
  margin:16px 0;
  height:auto;
}

/* =========================
   MEDIA
========================= */

.brand-media-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:20px;
}

.media-card{
  position:relative;
  border-radius:26px;
  overflow:hidden;
  background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border:1px solid rgba(15,23,42,0.08);
  box-shadow:0 14px 34px rgba(15,23,42,0.06);
  transition:
    transform .26s ease,
    box-shadow .26s ease,
    border-color .26s ease;
}

.media-card:hover{
  transform:translateY(-5px);
  box-shadow:0 22px 46px rgba(15,23,42,0.10);
  border-color:rgba(12,99,231,0.16);
}

.media-card-link{
  display:block;
  height:100%;
}

.media-preview{
  position:relative;
  aspect-ratio:1.08 / 1;
  overflow:hidden;
  background:linear-gradient(135deg, #edf4ff, #f7fbff);
}

.media-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .45s ease;
}

.media-card:hover .media-preview img{
  transform:scale(1.05);
}

.media-type-badge{
  position:absolute;
  right:12px;
  top:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  color:#fff;
  background:rgba(7,33,94,0.72);
  border:1px solid rgba(255,255,255,0.18);
  backdrop-filter:blur(8px);
}

.media-video-fallback{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  background:linear-gradient(135deg, rgba(12,99,231,0.14), rgba(0,198,194,0.10));
}

.play-icon{
  width:72px;
  height:72px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  color:#fff;
  background:rgba(7,33,94,0.70);
  border:1px solid rgba(255,255,255,0.18);
  box-shadow:0 16px 36px rgba(0,0,0,0.18);
}

.media-video-fallback span{
  font-size:14px;
  font-weight:800;
  color:var(--deep);
}

.media-body{
  padding:18px 18px 20px;
}

.media-body h3{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.35;
  letter-spacing:-0.01em;
  font-weight:800;
  color:var(--text);
  word-break:break-word;
}

.media-body p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  font-weight:600;
}

/* =========================
   IMPORTERS
========================= */

.brand-importers-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:20px;
}

.importer-card{
  padding:22px;
  transition:
    transform .24s ease,
    box-shadow .24s ease,
    border-color .24s ease;
}

.importer-card:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 42px rgba(15,23,42,0.08);
  border-color:rgba(12,99,231,0.16);
}

.importer-top{
  display:flex;
  align-items:flex-start;
  gap:16px;
}

.importer-logo-fallback{
  width:66px;
  height:66px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  background:linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color:var(--deep);
  border:1px solid rgba(12,99,231,0.09);
  box-shadow:0 10px 28px rgba(12,99,231,0.08);
  font-size:18px;
  font-weight:800;
  letter-spacing:.04em;
}

.importer-info{
  flex:1;
  min-width:0;
}

.importer-info h3{
  margin:0 0 10px;
  font-size:22px;
  line-height:1.28;
  letter-spacing:-0.02em;
  font-weight:800;
  color:var(--text);
  word-break:break-word;
}

.importer-badge{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  color:var(--deep);
  background:rgba(12,99,231,0.07);
  border:1px solid rgba(12,99,231,0.12);
}

.importer-actions{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(15,23,42,0.07);
}

.importer-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--blue);
  font-size:14px;
  font-weight:800;
  transition:color var(--transition), transform var(--transition);
}

.importer-link::after{
  content:"→";
  font-size:15px;
}

.importer-link:hover{
  transform:translateX(2px);
  color:var(--deep);
}

/* =========================
   SIDEBAR
========================= */

.sidebar-card{
  padding:24px 22px;
  margin-bottom:20px;
}

.sidebar-card h3{
  margin:0 0 18px;
  font-size:22px;
  line-height:1.2;
  letter-spacing:-0.02em;
  color:var(--text);
}

.sidebar-info-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.sidebar-info-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(15,23,42,0.06);
}

.sidebar-info-row:last-child{
  border-bottom:none;
  padding-bottom:0;
}

.sidebar-info-row span{
  color:var(--muted);
  font-size:14px;
}

.sidebar-info-row strong{
  color:#0f172a;
  font-size:15px;
  font-weight:800;
  text-align:right;
}

.brand-links-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.brand-link-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border:1px solid rgba(12,99,231,0.08);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.brand-link-item:hover{
  transform:translateY(-2px);
  border-color:rgba(12,99,231,0.18);
  box-shadow:0 14px 30px rgba(12,99,231,0.08);
}

.brand-link-text{
  color:var(--deep);
  font-size:14px;
  font-weight:700;
  word-break:break-word;
}

.brand-link-arrow{
  flex-shrink:0;
  color:var(--blue);
  font-size:18px;
  font-weight:800;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:1200px){
  .brand-layout{
    grid-template-columns:minmax(0, 1fr) 290px;
    gap:24px;
  }

  .brand-media-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:992px){
  .container{
    width:min(var(--container), calc(100% - 28px));
  }

  .brand-layout{
    grid-template-columns:1fr;
    gap:24px;
    padding:28px 0 56px;
  }

  .brand-sidebar{
    position:static;
  }

  .brand-importers-grid{
    grid-template-columns:1fr 1fr;
  }

  .sidebar-card{
    margin-bottom:16px;
  }
}

@media (max-width:860px){
  .brand-hero{
    padding:36px 0 28px;
  }

  .brand-hero::before{
    border-radius:0 0 30px 30px;
  }

  .brand-hero-inner{
    grid-template-columns:1fr;
    gap:20px;
    align-items:start;
  }

  .brand-hero-left{
    justify-content:flex-start;
  }

  .brand-logo-wrap{
    justify-content:flex-start;
  }

  .brand-logo-box,
  .brand-logo-fallback{
    width:118px;
    height:118px;
    border-radius:28px;
  }

  .brand-logo-fallback{
    font-size:28px;
  }

  .brand-title{
    font-size:clamp(30px, 8vw, 46px);
  }

  .brand-short-info{
    font-size:15px;
    line-height:1.8;
  }

  .brand-meta-list{
    gap:10px;
  }

  .brand-meta-chip{
    min-width:unset;
    flex:1 1 160px;
  }

  .brand-importers-grid{
    grid-template-columns:1fr;
  }

  .brand-richtext{
    padding:24px;
  }

  .sidebar-card{
    padding:22px;
  }
}

@media (max-width:640px){
  .container{
    width:min(var(--container), calc(100% - 20px));
  }

  .brand-hero{
    padding:24px 0 20px;
  }

  .brand-kicker{
    font-size:11px;
    min-height:32px;
    padding:7px 12px;
  }

  .brand-logo-box,
  .brand-logo-fallback{
    width:98px;
    height:98px;
    border-radius:24px;
  }

  .brand-logo-fallback{
    font-size:24px;
  }

  .brand-title{
    margin:14px 0 12px;
    font-size:28px;
    line-height:1.08;
  }

  .brand-short-info{
    font-size:14px;
    line-height:1.75;
  }

  .brand-meta-list{
    flex-direction:column;
    align-items:stretch;
  }

  .brand-meta-chip{
    width:100%;
    padding:11px 13px;
    border-radius:16px;
  }

  .brand-actions{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-light{
    width:100%;
    min-height:48px;
    padding:0 16px;
    border-radius:14px;
    font-size:14px;
  }

  .brand-layout{
    padding:22px 0 42px;
  }

  .section-head{
    gap:6px;
    margin-bottom:14px;
  }

  .section-head h2{
    font-size:26px;
  }

  .brand-media-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .media-card{
    border-radius:22px;
  }

  .media-preview{
    aspect-ratio:1 / .84;
  }

  .media-body{
    padding:16px;
  }

  .media-body h3{
    font-size:17px;
  }

  .brand-richtext{
    padding:18px;
    border-radius:20px;
    font-size:15px;
    line-height:1.8;
  }

  .sidebar-card{
    padding:18px;
    border-radius:20px;
  }

  .sidebar-card h3{
    font-size:20px;
    margin-bottom:14px;
  }

  .brand-link-item{
    padding:12px 14px;
    border-radius:16px;
  }

  .brand-link-text{
    font-size:13px;
  }

  .importer-card{
    padding:18px;
    border-radius:20px;
  }

  .importer-top{
    gap:12px;
  }

  .importer-logo-fallback{
    width:56px;
    height:56px;
    border-radius:16px;
    font-size:16px;
  }

  .importer-info h3{
    font-size:18px;
    line-height:1.3;
  }

  .importer-badge{
    min-height:30px;
    padding:6px 10px;
    font-size:11px;
  }

  .sidebar-info-row{
    flex-direction:column;
    gap:4px;
    align-items:flex-start;
  }

  .sidebar-info-row strong{
    text-align:left;
  }
}

@media (max-width:420px){
  .brand-hero{
    padding:20px 0 18px;
  }

  .brand-title{
    font-size:24px;
  }

  .brand-short-info{
    font-size:13px;
  }

  .section-head h2{
    font-size:23px;
  }

  .brand-richtext{
    padding:16px;
    font-size:14px;
  }

  .media-preview{
    aspect-ratio:1 / .92;
  }

  .play-icon{
    width:58px;
    height:58px;
    font-size:22px;
  }

  .media-body h3{
    font-size:16px;
  }

  .sidebar-card,
  .importer-card{
    padding:16px;
  }

  .brand-link-item{
    padding:11px 12px;
  }
}