/**
 * WeLUX — Specialists archive & Specialist single page styles
 * Loaded automatically via inc/enqueue.php
 */

/* ==========================================================
   1. SPECIALISTS ARCHIVE PAGE
   ========================================================== */
.specialists {
  width: 100%;
  background: #fff;
  padding-block: 32px 80px;
}

.specialists .breadcrumbs {
  margin-bottom: 20px;
  font-size: 13px;
  color: #777;
}

.specialists .breadcrumbs a {
  color: #777;
  text-decoration: none;
  transition: color 0.15s ease;
}

.specialists .breadcrumbs a:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

.specialists__title {
  font-family: var(--font-display, "Wix Madefor Display", sans-serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}

.specialists__filters {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

/* Custom Select Dropdown */
.specialists .select {
  position: relative;
  width: auto;
}

.specialists .select__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 240px;
  height: 48px;
  padding: 0 16px;
  background: #f4f4f4;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.specialists .select__btn:hover {
  background: #ebebeb;
}

.specialists .select__btn:focus-visible {
  outline: 2px solid #2f3524;
  outline-offset: 2px;
}

.specialists .select__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.specialists .select__arrow {
  flex-shrink: 0;
  color: #1a1a1a;
}

.specialists .select.is-open .select__btn {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  background: #f4f4f4;
}

.specialists .select__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: 240px;
  background: #fff;
  border: 1px solid #1a1a1a;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 50;
  max-height: 380px;
  overflow-y: auto;
}

.specialists .select.is-open .select__dropdown {
  display: block;
}

.specialists .select__divider {
  height: 1px;
  background: #1a1a1a;
  margin: 4px 0;
}

.specialists .select__item {
  padding: 8px 16px;
  font-size: 14px;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.15s ease;
}

.specialists .select__item:hover,
.specialists .select__item.is-active {
  background: #f4f4ea;
}

.specialists .select__item--section {
  font-weight: 500;
  padding: 10px 16px;
}

/* Small search form */
.specialists .search--sm {
  width: 200px;
  flex: 0 0 auto;
}

.specialists .search--sm .search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #1a1a1a;
  background: #fff;
  transition: border-color 0.15s ease;
}

.specialists .search--sm .search__field:focus-within {
  border-color: #2f3524;
  outline: 2px solid #2f3524;
  outline-offset: 1px;
}

.specialists .search--sm .search__icon {
  flex-shrink: 0;
  color: #1a1a1a;
}

.specialists .search--sm .search__input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: #1a1a1a;
  font-family: inherit;
  outline: none;
}

.specialists .search--sm .search__input::placeholder {
  color: #888;
}

/* Cards Grid */
.specialists__grid,
.specialists .specialists__grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 40px 30px !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  width: 100%;
}

/* Specialist Card in Archive */
.specialists .spec-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  width: 100%;
  height: 100%;
}

.specialists .spec-card.is-hidden,
.specialists .spec-card[hidden] {
  display: none !important;
}

.specialists__empty {
  display: none !important;
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 0 24px;
  color: var(--color-muted, #8a8a8a);
  font-size: 15px;
}

.specialists__empty.is-visible {
  display: block !important;
}

.specialists .spec-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 310 / 240;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f4e1;
  margin-bottom: 14px;
  text-decoration: none;
}

.specialists .spec-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}

.specialists .spec-card:hover .spec-card__photo img {
  transform: scale(1.03);
}

.specialists .spec-card__name {
  font-family: var(--font-display, "Wix Madefor Display", sans-serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
}

.specialists .spec-card__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.specialists .spec-card__name a:hover {
  color: #c5a87b;
}

.specialists .spec-card__label {
  font-size: 13px;
  color: #777;
  margin: 0 0 4px;
  line-height: 1.4;
}

.specialists .spec-card__label--top {
  margin-top: 2px;
  margin-bottom: 2px;
}

.specialists .spec-card__value {
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 500;
  margin: 0 0 16px;
}

.specialists .spec-card__btn {
  margin-top: auto;
  background: #c2ac8a;
  color: #fff;
  border-radius: 8px;
  height: 42px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  min-width: 130px;
}

.specialists .spec-card__btn:hover {
  background: #b89c73;
}

.specialists .spec-card__btn:focus-visible {
  outline: 2px solid #2f3524;
  outline-offset: 2px;
}

.specialists__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  font-size: 18px;
  color: #777;
}

/* Mobile & Tablet responsive for Archive */
@media (max-width: 1024px) {
  .specialists__grid,
  .specialists .specialists__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px 20px !important;
  }
}

@media (max-width: 640px) {
  .specialists {
    padding-block: 20px 60px;
  }
  .specialists__title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .specialists__filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 28px;
  }
  .specialists .select {
    width: 100%;
  }
  .specialists .select__btn {
    width: 100%;
  }
  .specialists .search--sm {
    width: 100%;
  }
  .specialists__grid,
  .specialists .specialists__grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .specialists .spec-card__photo {
    aspect-ratio: 335 / 240;
  }
  .specialists .spec-card__btn {
    width: 100%;
  }
}

/* ==========================================================
   2. SPECIALIST SINGLE PAGE — HERO
   ========================================================== */
.spec-hero {
  background: #f8f8eb;
  position: relative;
  overflow: hidden;
}

.spec-hero__inner {
  display: grid;
  grid-template-columns: 50% 50%;
  min-height: 640px;
  position: relative;
  align-items: stretch;
}

.spec-hero__left {
  padding: 44px 60px 84px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f8f8eb;
  position: relative;
}

.spec-hero__crumbs {
  position: static;
  margin-bottom: 22px;
  font-size: 13px;
  line-height: 1.4;
  color: #777;
}

.spec-hero__crumbs a {
  color: #777;
  text-decoration: none;
  transition: color 0.15s ease;
}

.spec-hero__crumbs a:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

.spec-hero__crumbs span {
  color: #2f3524;
  font-weight: 500;
}

.spec-hero__tags {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.spec-hero__tags li {
  background: #ecece1;
  color: #2f3524;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.spec-hero__title {
  font-family: var(--font-display, "Wix Madefor Display", sans-serif);
  font-size: clamp(38px, 3.6vw, 54px);
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.15;
  margin: 0 0 20px;
  word-break: break-word;
}

.spec-hero__desc {
  font-size: 15px;
  line-height: 1.55;
  color: #444;
  max-width: 440px;
  margin: 0 0 28px;
}

.spec-hero__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.spec-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.spec-hero__btn:hover {
  opacity: 0.9;
}

.spec-hero__btn--dark {
  background: #3e4334;
  color: #fff;
}

.spec-hero__btn--beige {
  background: #c5a87b;
  color: #fff;
}

.spec-hero__socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}

.spec-hero__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.spec-hero__socials a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.spec-hero__socials svg {
  display: block;
}

.spec-hero__right {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 640px;
  overflow: hidden;
  background: #c5a87b;
}

.spec-hero__right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Anchors Bar */
.spec-hero__anchors {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  transform: none !important;
  height: 52px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 5;
}

.spec-hero__anchors a {
  color: #2a2a2a;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.spec-hero__anchors a:hover {
  color: #c5a87b;
  text-decoration: underline;
}

/* Single Hero Responsive */
@media (max-width: 900px) {
  .spec-hero__inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .spec-hero__left {
    padding: 24px 16px 28px;
    width: 100%;
  }
  .spec-hero__crumbs {
    font-size: 12px;
    margin-bottom: 16px;
  }
  .spec-hero__tags {
    flex-direction: row;
    gap: 8px;
    margin-bottom: 20px;
  }
  .spec-hero__tags li {
    padding: 6px 14px;
    font-size: 12px;
  }
  .spec-hero__title {
    font-size: 28px;
    margin-bottom: 16px;
  }
  .spec-hero__desc {
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 100%;
  }
  .spec-hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 16px;
  }
  .spec-hero__btn {
    width: 100%;
  }
  .spec-hero__right {
    width: 100%;
    height: auto;
    min-height: 0;
  }
  .spec-hero__right img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 375 / 400;
    object-fit: cover;
    object-position: top center;
  }
  .spec-hero__anchors {
    display: none !important;
  }
}

/* ==========================================================
   3. SPECIALIST SINGLE PAGE — SERVICES
   ========================================================== */
.spec-services {
  background: #fff;
  padding: 60px 0 80px;
  scroll-margin-top: 80px;
}

.spec-services__head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 36px;
}

.spec-services__title {
  font-family: var(--font-display, "Wix Madefor Display", sans-serif);
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  margin: 0;
  color: #1a1a1a;
}

.spec-services__nav {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.spec-services__nav--desktop {
  position: absolute;
  right: 0;
}

.spec-services__nav--mobile {
  display: none !important;
}

.spec-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.spec-svc {
  display: flex;
  flex-direction: column;
}

.spec-svc__media {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 280 / 200;
  background: #f4f4e1;
  margin-bottom: 14px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.spec-svc__media:hover {
  transform: translateY(-2px);
}

.spec-svc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.spec-svc__title {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 10px;
  line-height: 1.3;
}

.spec-svc__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.spec-svc__title a:hover {
  color: #c5a87b;
}

.spec-svc__prices {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #555;
}

.spec-svc__prices b {
  white-space: nowrap;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 18px;
}

/* Вложенные span цены WooCommerce не должны наследовать стиль подписи «Цена». */
.spec-svc__prices b span,
.spec-svc__prices s span {
  font-size: inherit;
  color: inherit;
}

.spec-svc__prices s {
  white-space: nowrap;
  color: #999;
}

.spec-svc__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1a1a1a;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  margin-top: auto;
}

.spec-svc__more span {
  text-decoration: underline;
}

.spec-svc__more i,
.spec-skill__more i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c5a87b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.spec-services__cta {
  text-align: center;
}

.spec-services__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  background: #383e2d;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.spec-services__btn:hover {
  opacity: 0.9;
}

/* Slider Nav Styles */
.slider-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-nav__btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #888;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.slider-nav__btn:hover {
  color: #1a1a1a;
}

.slider-nav__dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.slider-nav__dots i,
.slider-nav__dots .slider-nav__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bebebe;
  display: inline-block;
  cursor: pointer;
  font-style: normal;
  transition: background 0.2s ease, width 0.2s ease;
}

.slider-nav__dots i.is-active,
.slider-nav__dots .slider-nav__dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: #383e2d;
}

@media (max-width: 1024px) {
  .spec-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .spec-services {
    padding: 40px 0 60px;
  }
  .spec-services__head {
    margin-bottom: 24px;
  }
  .spec-services__title {
    font-size: 26px;
  }
  .spec-services__nav--desktop {
    display: none !important;
  }
  .spec-services__grid {
    display: flex !important;
    gap: 16px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
    margin-bottom: 0 !important;
    scrollbar-width: none !important;
  }
  .spec-services__grid::-webkit-scrollbar {
    display: none;
  }
  .spec-svc {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    scroll-snap-align: center !important;
    box-sizing: border-box !important;
  }
  .spec-services__nav--mobile {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 20px auto 28px !important;
  }
  .spec-services__btn {
    width: 100% !important;
    max-width: 335px !important;
  }
}

/* ==========================================================
   4. SPECIALIST SINGLE PAGE — SKILLS
   ========================================================== */
.spec-skills {
  background: #fff;
  padding: 60px 0 80px;
  scroll-margin-top: 80px;
}

.spec-skills__title {
  font-family: var(--font-display, "Wix Madefor Display", sans-serif);
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
  margin: 0 0 32px;
  color: #1a1a1a;
}

.spec-skills__tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.spec-skills__tabs button {
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #777;
  border-radius: 8px;
  padding: 8px 22px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.spec-skills__tabs button:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.spec-skills__tabs button.is-active {
  border-color: #1a1a1a;
  color: #1a1a1a;
  font-weight: 500;
}

.spec-skills__tabs button:focus-visible {
  outline: 2px solid #2f3524;
  outline-offset: 2px;
}

.spec-skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.spec-skills__grid[hidden] {
  display: none !important;
}

.spec-skills__nav {
  display: none !important;
}

.spec-skills__nav[hidden] {
  display: none !important;
}

.spec-skills__cta {
  display: none !important;
}

.spec-skill {
  background: #f7f7ee;
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.spec-skill h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 0;
}

.spec-skill ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-skill ul li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #444;
}

.spec-skill ul li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: #777;
  font-size: 14px;
  line-height: 1;
}

.spec-skill p {
  font-size: 13px;
  line-height: 1.55;
  color: #444;
  margin: 0;
}

.spec-skill__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1a1a1a;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  margin-top: auto;
}

.spec-skill__more span {
  text-decoration: underline;
}

.spec-skill__more:focus-visible,
.spec-svc__more:focus-visible {
  outline: 2px solid #2f3524;
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .spec-skills__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .spec-skills {
    padding: 40px 0 60px;
  }
  .spec-skills__title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .spec-skills__tabs {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    margin-bottom: 24px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 0 16px !important;
    max-width: 100% !important;
  }
  .spec-skills__tabs::-webkit-scrollbar {
    display: none;
  }
  .spec-skills__tabs button {
    padding: 8px 16px !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
  }
  .spec-skills__grid {
    display: flex !important;
    gap: 16px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    margin-bottom: 0 !important;
  }
  .spec-skills__grid[hidden] {
    display: none !important;
  }
  .spec-skills__grid::-webkit-scrollbar {
    display: none;
  }
  .spec-skill {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    scroll-snap-align: center !important;
    box-sizing: border-box !important;
    padding: 24px 20px !important;
  }
  .spec-skills__nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 20px auto 28px !important;
  }
  .spec-skills__nav[hidden] {
    display: none !important;
  }
  .spec-skills__cta {
    display: block !important;
    text-align: center !important;
  }
  .spec-skills__cta .spec-services__btn {
    width: 100% !important;
    max-width: 335px !important;
  }
}

/* ==========================================================
   5. SPECIALIST SINGLE PAGE — CERTIFICATES & DIALOG
   ========================================================== */
.spec-certs {
  background: #fff;
  padding: 40px 0 80px;
  scroll-margin-top: 80px;
}

.spec-certs__head {
  margin-bottom: 28px;
}

.spec-certs__label {
  font-size: 14px;
  color: #1a1a1a;
}

.spec-certs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.spec-cert {
  display: flex;
  flex-direction: column;
}

.spec-cert__media-btn {
  width: 100%;
  aspect-ratio: 280 / 220;
  border-radius: 8px;
  overflow: hidden;
  background: #efefef;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  cursor: pointer;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spec-cert__media-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.spec-cert__media-btn:focus-visible {
  outline: 2px solid #2f3524;
  outline-offset: 3px;
}

.spec-cert__media-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spec-cert h3 {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 6px;
  line-height: 1.3;
}

.spec-cert__date {
  font-size: 13px;
  color: #777;
}

.welux-dialog--cert {
  max-width: 900px;
  width: 90vw;
  padding: 32px 24px 24px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.welux-dialog--cert::backdrop {
  background: rgba(20, 24, 18, 0.75);
  backdrop-filter: blur(4px);
}

.welux-cert-dialog__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.welux-cert-dialog__img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
}

.welux-cert-dialog__title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: #1a1a1a;
  text-align: center;
}

@media (max-width: 1024px) {
  .spec-certs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .spec-certs__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   6. SPECIALIST SINGLE PAGE — FAQ / EDUCATION ACCORDION
   ========================================================== */
.spec-faq {
  background: #fff;
  padding: 40px 0 90px;
  scroll-margin-top: 80px;
}

.spec-faq__inner {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 40px;
  align-items: start;
}

.spec-faq__media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-faq__label {
  font-size: 13px;
  color: #999;
}

.spec-faq__media img {
  width: 100%;
  aspect-ratio: 380 / 460;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.spec-faq__list {
  display: flex;
  flex-direction: column;
}

.spec-faq__item {
  border-bottom: 1px solid #e4dbc4;
  padding: 22px 0;
}

.spec-faq__item:first-child {
  padding-top: 6px;
}

.spec-faq__num {
  font-size: 12px;
  color: #999;
  display: block;
  margin-bottom: 8px;
}

.spec-faq__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
}

.spec-faq__head:focus-visible {
  outline: 2px solid #2f3524;
  outline-offset: 4px;
  border-radius: 4px;
}

.spec-faq__head h3 {
  font-size: 38px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.15;
}

.spec-faq__head button {
  background: none;
  border: 0;
  font-size: 30px;
  font-weight: 300;
  color: #1a1a1a;
  cursor: pointer;
  line-height: 1;
  pointer-events: none;
}

.spec-faq__body {
  margin-top: 18px;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec-faq__body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}

.spec-faq__body b {
  color: #1a1a1a;
  font-weight: 700;
}

.spec-faq__item:not(.is-open) .spec-faq__body {
  display: none;
}

@media (max-width: 900px) {
  .spec-faq__inner {
    grid-template-columns: 1fr;
  }
  .spec-faq__head h3 {
    font-size: 26px;
  }
}

/* ==========================================================
   7. SPECIALIST SINGLE PAGE — VIDEO
   ========================================================== */
.spec-video {
  background: #fff;
  padding: 40px 0 80px;
  scroll-margin-top: 80px;
}

.spec-video__head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.spec-video__title {
  font-family: var(--font-display, "Wix Madefor Display", sans-serif);
  font-size: 32px;
  font-weight: 500;
  color: #1a1a1a;
  text-align: center;
  margin: 0;
}

.spec-video__container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.spec-video__container iframe,
.spec-video__container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================
   8. FOCUS VISIBILITY & MOTION
   ========================================================== */
.spec-hero__btn:focus-visible,
.spec-hero__anchors a:focus-visible,
.spec-hero__socials a:focus-visible,
.spec-services__btn:focus-visible {
  outline: 2px solid #2f3524;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .spec-skills__tabs button,
  .spec-hero__btn,
  .spec-svc__media,
  .spec-cert__media-btn,
  .spec-card__photo img,
  .spec-card__btn {
    transition: none !important;
    transform: none !important;
  }
}
