/* ================================================
   BASE.CSS — Variables, Reset, Typography, Utils
   ================================================ */

/* VARIABLES */
:root {
  --g:        #00A86B;
  --gl:       #00C47D;
  --gt:       #00897B;
  --gd:       #005C3A;
  --glow:     rgba(0, 168, 107, 0.20);
  --glow-lg:  rgba(0, 168, 107, 0.35);
  --gbg:      #E8F7F1;

  --dark:     #0D1F1A;
  --dark2:    #1A2E28;
  --gray:     #5A6B65;
  --grayL:    #8FA89F;
  --bg:       #F7F9F7;
  --white:    #FFFFFF;
  --border:   #D6E8E0;
  --border2:  #C2DDD2;

  --red:      #E05050;
  --orange:   #F59E0B;

  --font-serif: 'Playfair Display', 'Noto Serif Armenian', serif;
  --font-sans: 'Outfit', 'Noto Sans Armenian', sans-serif;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-full: 100px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.12);
  --shadow-g:   0 6px 24px var(--glow);
  --shadow-g-lg:0 10px 36px var(--glow-lg);

  --transition: .2s ease;
  --transition-md: .3s cubic-bezier(.4,0,.2,1);
}

/* RESET */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: var(--font-sans);
  cursor: pointer;
}

input, select, textarea {
  font-family: var(--font-sans);
}

ul, ol {
  list-style: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  letter-spacing: -.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(28px, 5vw, 56px); font-weight: 700; }
h2 { font-size: clamp(22px, 3.5vw, 42px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.5vw, 28px); font-weight: 600; }
h4 { font-size: clamp(15px, 2vw, 20px); font-weight: 600; }

h1 em, h2 em {
  font-style: italic;
  color: var(--g);
}

p {
  color: var(--gray);
  line-height: 1.7;
}

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 11px var(--font-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 10px;
}

.section-tag svg {
  width: 13px; height: 13px;
  stroke: var(--g); fill: none;
  stroke-width: 2; stroke-linecap: round;
}

.section-sub {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 560px;
  margin: 8px auto 0;
}

/* GRID */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* DIVIDER */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* BADGE */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gbg);
  border: 1px solid rgba(0,168,107,.3);
  color: var(--g);
  font: 600 11px var(--font-sans);
  padding: 5px 13px;
  border-radius: var(--radius-full);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.badge .pulse {
  width: 6px; height: 6px;
  background: var(--g);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,168,107,.5); }
  50%       { box-shadow: 0 0 0 5px rgba(0,168,107,0); }
}

/* CARD */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(0,168,107,.4);
  box-shadow: 0 6px 24px rgba(0,168,107,.09);
  transform: translateY(-2px);
}

.card-dark {
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  border: none;
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* STATUS */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.status-dot::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grayL);
}

.status-dot.online::before  { background: var(--g); }
.status-dot.busy::before    { background: var(--orange); }
.status-dot.offline::before { background: var(--grayL); }

/* CHIP / TAG */
.chip {
  display: inline-flex;
  align-items: center;
  background: var(--gbg);
  color: var(--g);
  font: 500 11px var(--font-sans);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.chip-dark {
  background: var(--g);
  color: var(--white);
  font: 600 11px var(--font-sans);
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 10px var(--glow);
}

/* ALERT */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.alert-error   { background: #FEF2F2; color: var(--red); border: 1px solid #FECACA; }
.alert-success { background: var(--gbg); color: var(--gd); border: 1px solid rgba(0,168,107,.3); }
.alert-info    { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }

.alert svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
  flex-shrink: 0; margin-top: 1px;
}

/* LOADER */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--g);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

.spinner-sm {
  width: 18px; height: 18px;
  border-width: 2px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* OVERLAY / MODAL BG */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--transition-md);
}

.overlay.show {
  opacity: 1;
}

/* UTILS */
.text-center { text-align: center; }
.text-green  { color: var(--g); }
.text-gray   { color: var(--gray); }
.text-white  { color: var(--white); }
.text-dark   { color: var(--dark); }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap   { flex-wrap: wrap; }
.flex-1      { flex: 1; }

.w-full  { width: 100%; }
.hidden  { display: none !important; }
.visible { display: block !important; }

/* DESKTOP */
@media (min-width: 860px) {
  .section   { padding: 88px 52px; }
  .container { padding: 0 52px; }
  .section-header { margin-bottom: 52px; }
  .section-sub { font-size: 17px; }
  .grid-2 { gap: 22px; }
  .grid-3 { gap: 22px; }
}

@media (max-width: 859px){

  body.hy{
    --font-serif:'Noto Serif Armenian', serif;
    --font-sans:'Noto Sans Armenian', sans-serif;
  }

}