/* Ծաղկահովիտի առողջության կենտրոն — գունային համակարգը լոգոյից (60/30/10).
   60% — սպիտակ և սառը բաց ֆոներ (լոգոյի օղակի երկնագույնից)
   30% — մուգ կապույտ (լոգոյի տեքստ)՝ վերնագրեր, տեքստ, footer
   10% — կապույտ ակցենտ՝ կոճակներ, հղումներ, գծեր
   Կանաչը՝ միայն պատկերակների գծերում (ինչպես լոգոյի կենտրոնում), ոսկեգույնը՝ միայն լոգոյում։ */

:root {
  --primary: #1b2a4a;          /* լոգոյի տեքստ — վերնագրեր, տեքստ */
  --primary-dark: #22365e;
  --primary-dark-trans-20: #22365e33;
  --secondary: #234a7d;        /* կոճակներ, հղումներ */
  --secondary-hover: #2f5f99;
  --secondary-semi-dark: #1d3a63;
  --tertiary: #f2f6fb;         /* բաց ֆոներ */
  --base: #5d6573;
  --brand-mint: #e2eaf4;       /* եզրեր */
  --brand-ring: #c6dbf0;       /* լոգոյի օղակ */
  --brand-gold: #7aa0cc;       /* ակցենտ գծեր (նախկինում ոսկեգույն) — հիմա բաց կապույտ */
  --brand-gold-light: #e2ecf7;

  --font-head: "Noto Serif Armenian", Georgia, serif;
  --font-body: "Noto Sans Armenian", -apple-system, "Segoe UI", Roboto, sans-serif;
  --card-radius: 1.4rem;

  /* վերնագրեր — մոտ 20%-ով փոքր, քան Masis-ում */
  --h1: clamp(2.8rem, 1.2vw + 2.4rem, 4rem);
  --h2: clamp(2.4rem, 0.8vw + 2.1rem, 3.1rem);
  --h3: clamp(2rem, 0.4vw + 1.85rem, 2.4rem);
  --page-title-size: clamp(3.2rem, 3.4vw, 4.4rem);
  --section-title-size: clamp(2.6rem, 2.6vw, 3.4rem);
}

@media (max-width: 767px) {
  :root {
    --page-title-size: clamp(2.9rem, 8vw, 3.6rem);
    --section-title-size: clamp(2.4rem, 7vw, 3rem);
  }
}

/* ---------- Տառատեսակներ ---------- */
body { font-family: var(--font-body); }

h1, h2, h3,
.brxe-heading,
.hp-reg-section__ttl,
.global-faq-section__ttl,
.global-cta-section__text-link,
.footer-section__cont-title,
.footer-section__li-title,
.detail-copy h1 {
  font-family: var(--font-head) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

/* Մեծ վերնագրերը, որոնք Masis-ում ֆիքսված չափ ունեին */
.hp-hero-section__title { font-size: clamp(3.4rem, 3.5vw, 4.8rem) !important; line-height: 1.15 !important; }
.clinic-hero__copy h1,
.staff-hero h1,
.structure-hero h1,
.charter-heading h1 { font-size: var(--page-title-size) !important; line-height: 1.15 !important; }

@media (max-width: 767px) {
  .hp-hero-section__title { font-size: clamp(2.6rem, 7.4vw, 3.4rem) !important; }
}

/* Ոսկեգույն գիծ կենտրոնացված բաժինների վերնագրերի տակ */
.hp-stat-section__heading,
.hp-reg-section__ttl,
.global-blog-section-section__ttl,
.global-review-section__heading,
.global-faq-section__ttl,
.clinic-section-head h2,
.structure-group__head h2 { position: relative; padding-bottom: 1.4rem; }
.hp-stat-section__heading::after,
.hp-reg-section__ttl::after,
.global-blog-section-section__ttl::after,
.global-review-section__heading::after,
.global-faq-section__ttl::after,
.clinic-section-head h2::after,
.structure-group__head h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 5.6rem;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-gold);
  transform: translateX(-50%);
}
.clinic-section-head h2::after { left: 0; transform: none; }

/* ---------- Ձևեր՝ քարտեր և կոճակներ ---------- */
.shadow-card,
.hp-kpi-section__kpi-li,
.hp-serv-section__service-item,
.hp-hero-section__image,
.hp-au-section__image,
.global-review-section__grid-li,
.clinic-service-card,
.clinic-doctor-card,
.clinic-hero__note,
.staff-card,
.structure-person,
.about-kpi,
.about-value,
.faq-item,
.price-group,
.detail-shell,
.charter-panel,
.cu-hero-section__item,
.map-card { border-radius: var(--card-radius) !important; }

/* ---------- Կոճակների մեկ համակարգ ----------
   primary  — կանաչ ֆոն, սպիտակ տեքստ (հիմնական գործողություն)
   outline  — թափանցիկ, կանաչ եզր (երկրորդական գործողություն)
   on-dark  — սպիտակ կոճակ մուգ/կանաչ ֆոնի վրա
   Բոլորը՝ նույն բարձրությունը, տառաչափը, կլորացումը և hover-ը։ */
.hp-hero-section__cta-button,
.hp-serv-section__button,
.global-blog-section-section__button,
.global-cta-section__button,
.contact-form button,
.detail-back,
.not-found a,
.clinic-all-link,
.staff-load,
.charter-download,
.newsletter-modal form > button,
.doctor-modal form > button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.8rem !important;
  min-height: 4.8rem !important;
  padding: 0 2.4rem !important;
  border-radius: 999px !important;
  border: 1.5px solid transparent !important;
  font-family: var(--font-body) !important;
  font-size: 1.6rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s !important;
  cursor: pointer;
}
.hp-hero-section__cta-button > img,
.hp-serv-section__button > img,
.global-blog-section-section__button > img,
.global-cta-section__button > img,
.hp-hero-section__cta-button .site-icon {
  width: 2rem !important;
  height: 2rem !important;
  flex: 0 0 2rem !important;
}

/* primary */
.hp-hero-section__cta-button,
.hp-serv-section__button,
.contact-form button,
.detail-back,
.not-found a,
.charter-download,
.newsletter-modal form > button,
.doctor-modal form > button {
  background: var(--secondary) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(27, 42, 74, 0.16) !important;
}
.hp-hero-section__cta-button:hover,
.hp-serv-section__button:hover,
.contact-form button:hover,
.detail-back:hover,
.not-found a:hover,
.charter-download:hover,
.newsletter-modal form > button:hover,
.doctor-modal form > button:hover {
  background: var(--secondary-semi-dark) !important;
  box-shadow: 0 10px 24px rgba(27, 42, 74, 0.24) !important;
}

/* outline */
.global-blog-section-section__button,
.clinic-all-link,
.staff-load {
  background: transparent !important;
  color: var(--secondary) !important;
  border-color: var(--secondary) !important;
}
.global-blog-section-section__button:hover,
.clinic-all-link:hover,
.staff-load:hover {
  background: var(--secondary) !important;
  color: #fff !important;
}
.global-blog-section-section__button:hover > img { filter: brightness(0) invert(1); }

/* on-dark */
.global-cta-section__button {
  background: #fff !important;
  color: var(--primary) !important;
}
.global-cta-section__button:hover { background: var(--brand-gold-light) !important; }

/* ձևի կոճակը՝ ամբողջ լայնքով, մի փոքր բարձր */
.contact-form button { width: 100% !important; min-height: 5.2rem !important; }

.cu-hero-section__xwsforms .contact-form {
  grid-template-rows: none;
  align-content: start;
}

.cu-hero-section__xwsforms .contact-form > button[type="submit"] {
  justify-self: start;
  align-self: start;
  width: fit-content !important;
  max-width: 100%;
  min-height: 4.4rem !important;
  padding: .8rem 2.2rem;
  font-size: 1.5rem;
  line-height: 1.4;
}

/* header-ի հեռախոսը՝ փոքր outline կոճակ */
#brx-header .header-section__button {
  min-height: 4.2rem;
  padding: 0 1.6rem !important;
  border-radius: 999px !important;
  border: 1.5px solid var(--brand-mint) !important;
  background: var(--tertiary) !important;
  color: var(--secondary) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
#brx-header .header-section__button:hover { border-color: var(--secondary) !important; }

/* տեքստային հղումներ քարտերում («Իմանալ ավելին», «Կարդալ ավելին», «Տեսնել ավելին») */
.hp-au-section__see-more,
.global-blog-section-section__date,
.clinic-doctor-card__link,
.staff-card__more,
.structure-person__more {
  color: var(--secondary) !important;
  font-weight: 600 !important;
}

/* ստեղնաշարով նավիգացիա */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand-ring) !important;
  outline-offset: 2px;
}

/* դաշտերի focus */
.contact-form input:focus,
.contact-form textarea:focus,
.staff-search input:focus,
.price-search input:focus {
  border-color: var(--secondary) !important;
  box-shadow: 0 0 0 4px rgba(35, 74, 125, 0.14) !important;
}

.contact-form input,
.contact-form textarea,
.staff-search input,
.price-search input,
.price-filter select { border-radius: 1rem !important; }

/* քարտերի եզրերը՝ մեկ բաց կանաչ գույն */
.about-value,
.about-kpi,
.clinic-service-card,
.staff-card,
.structure-person,
.clinic-doctor-card { border: 1px solid var(--brand-mint) !important; }

/* KPI քարտեր՝ ոսկեգույն վերին գիծ */
.hp-kpi-section__kpi-li { border-top: 3px solid var(--brand-gold) !important; }
.about-kpi::before { background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-light)) !important; }
.about-kpi h2::after { background: var(--brand-gold) !important; }

/* Ծառայությունների մեծ քարտեր՝ ձախ կողմի կանաչ շերտ */
.hp-serv-section__service-item { border-left: 6px solid var(--secondary) !important; }

/* Ցուցանիշների «+» նշանը՝ ոսկեգույն */
.hp-kpi-icon-light { color: var(--secondary) !important; }

/* Ծառայության քարտի սլաքը՝ ոսկեգույն hover-ին */
.clinic-service-card:hover .site-icon { color: var(--secondary-hover); }

/* ՀՏՀ բաց հարցը՝ կանաչ ֆոն, ոսկեգույն սլաք */
.faq-item[open] > summary .site-icon { color: var(--brand-gold-light) !important; }

/* ---------- Լոգո ---------- */
#brx-header .header-section__logo { width: auto; height: 5.6rem; max-width: none; }
@media (max-width: 767px) {
  #brx-header .header-section__logo { height: 4.6rem; }
}
.footer-section__logo { max-width: 16rem; }

/* ---------- Նկարների տեղապահ (Masis-ի խաչի փոխարեն) ----------
   Բաց կանաչ ֆոն, վերևի ձախ անկյունում լոգոյի կենտրոնը՝ փոքր և կիսաթափանցիկ */
.ts-thumb {
  display: block !important;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(150deg, #f7f9fc 0%, #e8f0f9 100%) !important;
}
.ts-thumb::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 6.4rem;
  height: 6.8rem;
  background: url("/brand/tsaghkahovit-center.svg?v=20261204b") no-repeat center / contain;
  opacity: 0.32;
}
.hp-au-section__image.ts-thumb::before { top: 2.8rem; left: 2.8rem; width: 8.4rem; height: 9rem; }
.global-blog-section-section__grid-li:hover .global-blog-section-section__image { transform: none !important; }

/* կլոր նշան (օգտագործվում է «Ծառայություններ» էջի վիզուալում) */
.ts-thumb__badge {
  display: grid;
  place-items: center;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--brand-mint);
  box-shadow: 0 0 0 10px rgba(198, 219, 240, 0.45), 0 14px 34px rgba(27, 42, 74, 0.12);
}
.ts-thumb__badge img { width: 62%; height: 62%; object-fit: contain; }

/* «Ծառայություններ» էջի մեծ վիզուալը */
.ts-hero-visual {
  background-color: var(--tertiary) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23234a7d' stroke-opacity='.13' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M14 58c6-14 16-22 30-26'/%3E%3Cpath d='M22 46c-6-1-9-6-8-11 5 1 8 6 8 11Zm9-8c-5-3-6-8-4-12 5 2 6 7 4 12Zm10-5c-3-5-2-10 2-13 3 4 2 9-2 13Z'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-size: 72px 72px !important;
  border: 1px solid var(--brand-mint);
  box-shadow: 0 24px 60px rgba(27, 42, 74, 0.1) !important;
}
.ts-hero-visual::before,
.ts-hero-visual::after { display: none !important; }
.ts-hero-visual .ts-thumb__badge { width: 24rem; height: 24rem; }
@media (max-width: 767px) {
  .ts-hero-visual .ts-thumb__badge { width: 18rem; height: 18rem; }
}

/* ---------- Կանաչի բալանս ----------
   Կանաչը մնում է միայն կոճակներին, հղումներին, պատկերակների գծերին և մի քանի ակցենտի։
   Ֆոները՝ սպիտակ կամ տաք չեզոք, footer-ը՝ մուգ չեզոք։ */
.hp-serv-section__service-item { border-left-color: var(--secondary) !important; }
.faq-item[open] { background: var(--primary) !important; }
.hp-hero-section {
  background: radial-gradient(circle at 82% 28%, rgba(122, 160, 204, 0.14), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f2f6fb 100%) !important;
}
.global-cta-section__container {
  background: linear-gradient(120deg, #1b2a4a 0%, #234a7d 100%) !important;
}
.footer-section {
  background: radial-gradient(circle at 12% 12%, rgba(122, 160, 204, 0.12), transparent 30%), #16223d !important;
}
.footer-section a:hover { color: var(--brand-gold-light) !important; }

/* Ծառայությունների մեծ քարտեր — նկարի վահանակը ամբողջ բարձրությամբ, պատկերակը կենտրոնում */
@media (min-width: 768px) {
  .hp-serv-section__service-item { align-items: stretch !important; overflow: hidden; }
  .hp-serv-section__img-wrp {
    align-self: stretch !important;
    height: auto !important;
    min-height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    border-radius: 0 var(--card-radius) var(--card-radius) 0 !important;
  }
}
.hp-serv-section__icon { width: min(100%, 22rem) !important; height: auto !important; }

/* Decorative controls and quotation marks use SVG artwork. */
.global-review-section__grid-li::before {
  content: "";
  position: absolute;
  inset-block-start: 1.2rem;
  inset-inline-start: 1.8rem;
  width: 5rem;
  height: 5rem;
  background-color: var(--secondary);
  opacity: .18;
  mask: url("/media/icons/v2/quote.svg") center / contain no-repeat;
  pointer-events: none;
}

.price-filter select {
  appearance: none;
  padding-inline-end: 4.4rem;
  background-image: url("/media/icons/v2/chevron.svg");
  background-position: right 1.4rem center;
  background-repeat: no-repeat;
  background-size: 2.2rem;
}

input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
  width: 1.8rem;
  height: 1.8rem;
  cursor: pointer;
  background: center / contain no-repeat url("/media/icons/v2/close.svg");
}

.not-found__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
}

#brx-header .header-section__nav-link,
#brx-header .header-section__dropdown-trigger,
#brx-header .header-section__button {
  font-size: 1.5rem;
}

@media (min-width: 992px) {
  #brx-header .header-azdararir { font-size: 1.5rem; }
}

#brx-header .header-section__nav-items,
#brx-header .header-section__content {
  list-style: none;
}

#brx-header .header-section__dropdown-trigger {
  border: 0;
  background: transparent;
  text-align: start;
}

#brx-header .header-section__dropdown-panel[hidden] {
  display: none !important;
}

#brx-header .header-section__nav-link {
  display: block;
}

#brx-header .header-section__nav-link[aria-current="page"] {
  color: var(--secondary);
}

.contact-form .request-consent,
.doctor-modal .request-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  font-size: 1.3rem;
}

.contact-form .request-consent input,
.doctor-modal .request-consent input {
  flex: 0 0 auto;
  width: 1.6rem;
  min-width: 1.6rem;
  height: 1.6rem;
  min-height: 1.6rem;
  margin: .25rem 0 0;
  padding: 0 !important;
  appearance: auto;
  accent-color: var(--secondary);
}

.contact-form select,
.newsletter-modal select,
.doctor-modal select {
  width: 100%;
  min-height: 4.6rem;
  padding: .65rem 1rem;
  border: 1px solid #b6c2d1;
  border-radius: .6rem;
  color: var(--primary);
  background: #fff;
  font: inherit;
}

.site-form-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.2rem .9rem;
  min-width: 0;
}

.site-form-field {
  grid-column: var(--form-col-web);
  grid-row: var(--form-row-web);
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-form-field label,
.site-form-choice {
  min-width: 0;
}

.site-form-fields label > span,
.contact-form .request-consent > span {
  clip-path: none;
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
}

.site-form-field label > span {
  display: block;
  margin-bottom: .3rem;
}

.site-form-field small {
  display: block;
  margin-top: .35rem;
}

.site-form-choice {
  margin: 0;
  padding: 0;
  border: 0;
}

.site-form-field .site-form-check {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
}

.site-form-field .site-form-check input {
  appearance: auto;
  flex: 0 0 1.6rem;
  width: 1.6rem;
  min-width: 1.6rem;
  height: 1.6rem;
  min-height: 1.6rem;
  margin: .4rem 0 0;
  padding: 0 !important;
  accent-color: var(--secondary);
}

@media (max-width: 767px) {
  .site-form-fields {
    column-gap: .5rem;
  }

  .site-form-field {
    grid-column: var(--form-col-mobile);
    grid-row: var(--form-row-mobile);
  }
}
