/* “Xidmət sahələri”
 * Desktop: Functional cards 3353:29055 (Active Card variants).
 * Mobile: 5257:19788 (Title/Block + Service cards). NOT News 5257:19364.
 * Naming quirk (Desktop): Active=Technical document expands Card 1 (Onlayn);
 *                         Active=Online appeal expands Card 2 (Texniki).
 * Desktop hover: ON_HOVER → CHANGE_TO → SMART_ANIMATE, primary 300ms ease-out.
 */

.aayda-service-areas {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Mobile — Figma 5257:19788 (frame 402). No Active Card / reactions.         */
/* -------------------------------------------------------------------------- */

@media (max-width: 1415px) {
  .aayda-service-areas {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 402px;
    margin: 68px auto 0;
    padding-inline: 24px;
    background: transparent;
    font-family: var(--aayda-typography-font-primary);
    color: var(--aayda-colors-text);
  }

  .aayda-service-areas__inner {
    display: flex;
    flex-direction: column;
    gap: var(--aayda-numbers-spacing-20);
    width: 100%;
    max-width: 354px;
  }

  .aayda-service-areas__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--aayda-numbers-spacing-12);
    box-sizing: border-box;
    width: 100%;
    max-width: 354px;
    min-height: 72px;
    overflow: hidden;
  }

  .aayda-service-areas__badge {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--aayda-numbers-spacing-4);
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    height: 28px;
    padding: 3px 15px 3px 11px;
    margin: 0;
    font-size: var(--aayda-typography-size-12);
    font-weight: var(--aayda-typography-weight-medium);
    line-height: var(--aayda-typography-line-height-12);
    letter-spacing: var(--aayda-typography-letter-spacing-12);
    color: var(--aayda-colors-text);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid var(--aayda-colors-base-white);
    border-radius: 28px;
  }

  .aayda-service-areas__badge-icon {
    display: block;
    flex-shrink: 0;
    width: 15px;
    height: 14px;
  }

  .aayda-service-areas__badge-icon img {
    display: block;
    width: 11px;
    height: 11px;
    margin: 2px 0 0 2px;
    max-width: none;
  }

  .aayda-service-areas__title {
    box-sizing: border-box;
    width: 173px;
    height: 32px;
    margin: 0;
    overflow: visible;
    font-size: var(--aayda-typography-size-24);
    font-weight: var(--aayda-typography-weight-semi-bold);
    line-height: var(--aayda-typography-line-height-heading-24);
    letter-spacing: var(--aayda-typography-letter-spacing-24);
    color: var(--aayda-colors-text);
  }

  .aayda-service-areas__cards {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--aayda-numbers-spacing-14);
    box-sizing: border-box;
    width: 100%;
    max-width: 354px;
    height: 638px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
  }

  .aayda-service-areas__cards > li {
    flex: 0 0 auto;
    width: 349px;
    max-width: 100%;
    height: 149px;
  }

  .aayda-service-areas__card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--aayda-numbers-spacing-16);
    box-sizing: border-box;
    width: 349px;
    max-width: 100%;
    height: 149px;
    padding: var(--aayda-numbers-spacing-16);
    overflow: visible;
    color: inherit;
    text-decoration: none;
    cursor: default;
    background: var(--aayda-colors-surface-service-card);
    border: 0;
    border-radius: 12px;
    /* Figma INSIDE 2px white stroke — keep content box at padding 16. */
    box-shadow: inset 0 0 0 2px var(--aayda-colors-base-white);
  }

  .aayda-service-areas__card:focus-visible {
    outline: var(--aayda-border-width-focus-ring) solid var(--aayda-colors-ring-focus);
    outline-offset: 2px;
  }

  .aayda-service-areas__card-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: var(--aayda-numbers-spacing-8);
    box-sizing: border-box;
    width: 180px;
    overflow: hidden;
  }

  .aayda-service-areas__card-title {
    margin: 0;
    width: 180px;
    /* Mobile/Heading/H6/Medium — local; no global size-20 token. */
    font-size: 20px;
    font-weight: var(--aayda-typography-weight-medium);
    line-height: 26px;
    letter-spacing: -0.4px;
    color: var(--aayda-colors-text);
  }

  .aayda-service-areas__card-title--page {
    display: block;
  }

  .aayda-service-areas__card-title--master,
  .aayda-service-areas__card-description--page,
  .aayda-service-areas__card-description--map,
  .aayda-service-areas__card-description--long,
  .aayda-service-areas__card-description--desktop {
    display: none;
  }

  .aayda-service-areas__card-description {
    margin: 0;
    font-size: var(--aayda-typography-size-14);
    font-weight: var(--aayda-typography-weight-regular);
    line-height: var(--aayda-typography-line-height-14);
    letter-spacing: var(--aayda-typography-letter-spacing-14);
    color: #888d96;
  }

  .aayda-service-areas__card-description--mobile {
    display: block;
    width: 180px;
    height: 60px;
    overflow: hidden;
  }

  .aayda-service-areas__card--slot-3 .aayda-service-areas__card-description--mobile {
    height: 80px;
  }

  .aayda-service-areas__card-media {
    position: relative;
    flex-shrink: 0;
    width: 129px;
    height: 117px;
    overflow: visible;
    pointer-events: none;
  }

  .aayda-service-areas__card-media img {
    position: absolute;
    max-width: none;
    mix-blend-mode: darken;
  }

  /* Hide Desktop-only Card 2 technical-specs art on Mobile. */
  .aayda-service-areas__card-media-img--desktop {
    display: none;
  }

  .aayda-service-areas__card-media > img:not(.aayda-service-areas__card-media-img--desktop),
  .aayda-service-areas__card-media-img--mobile {
    display: block;
  }

  /* Card 1 — Onlayn: visible 150×123 @ (-4,0), radius 10, DARKEN. Not rotated or mirrored (2026-11-28): Figma's
     "rotate -180°" was always overridden by the narrow layouts' scaleX(-1) flips, which are gone, so the
     picture faces the way it is drawn at every width.
     White box like cards 2-4 (2026-11-28): the picture darkens against its box, so on the card colour
     (surface-service-card) its white panel vanished into the card. */
  .aayda-service-areas__card--slot-1 .aayda-service-areas__card-media {
    background: var(--aayda-colors-base-white);
  }

  .aayda-service-areas__card--slot-1 .aayda-service-areas__card-media img {
    top: 0;
    left: -4px;
    width: 150px;
    height: 123px;
    border-radius: 10px;
    object-fit: cover;
    /* [[0.828,0,0.010],[0,0.675,0.212]] */
    object-position: 1.208% 31.407%;
  }

  /* Card 2 / 4 — contact art: 121×117 @ (0,0), radius 10, DARKEN */
  .aayda-service-areas__card--slot-2 .aayda-service-areas__card-media,
  .aayda-service-areas__card--slot-4 .aayda-service-areas__card-media {
    background: var(--aayda-colors-base-white);
  }

  .aayda-service-areas__card--slot-2 .aayda-service-areas__card-media-img--mobile,
  .aayda-service-areas__card--slot-4 .aayda-service-areas__card-media img {
    top: 0;
    left: 0;
    width: 121px;
    height: 117px;
    border-radius: 10px;
    object-fit: cover;
    /* [[0.816,0,0.092],[0,0.629,0.186]] */
    object-position: 11.275% 29.571%;
  }

  /* Card 3 — road map: 116×120 @ (3,0), radii 20/20/10/20, DARKEN */
  .aayda-service-areas__card--slot-3 .aayda-service-areas__card-media {
    background: var(--aayda-colors-base-white);
  }

  .aayda-service-areas__card--slot-3 .aayda-service-areas__card-media img {
    top: 0;
    left: 3px;
    width: 116px;
    height: 120px;
    border-radius: 20px 20px 10px 20px;
    object-fit: cover;
    /* [[0.871,0,0.088],[0,0.904,0.094]] */
    object-position: 10.103% 10.398%;
  }
}

/* Tablet: Mobile 5257:19788 chrome, fluid 2×2. No Desktop expand / 386px row. */
@media (min-width: 768px) and (max-width: 1415px) {
  .aayda-service-areas {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    margin: 68px 0 0;
    padding-inline: 16px;
  }

  .aayda-service-areas__inner,
  .aayda-service-areas__header {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .aayda-service-areas__title {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .aayda-service-areas__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--aayda-numbers-spacing-14);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    overflow: visible;
  }

  .aayda-service-areas__cards > li {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 149px;
  }

  .aayda-service-areas__card {
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 149px;
  }

  .aayda-service-areas__card-text,
  .aayda-service-areas__card-title,
  .aayda-service-areas__card-description--mobile {
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .aayda-service-areas__card-text {
    flex: 1 1 auto;
    flex-shrink: 1;
  }

  .aayda-service-areas__card-media {
    flex-shrink: 0;
  }

}

@media (min-width: 1416px) {
  .aayda-service-areas {
    display: block;
    width: 100%;
    max-width: var(--aayda-container-desktop);
    margin-inline: auto;
    padding-top: 97px;
    padding-bottom: 97px;
    background: var(--aayda-colors-surface-disabled);
    font-family: var(--aayda-typography-font-primary);
    color: var(--aayda-colors-text);
  }

  .aayda-service-areas__inner {
    width: 1271px;
    margin-left: 84px;
    transition: width 300ms ease-out;
  }

  /* Contact variant row is 1280px (4128:27169). */
  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__inner,
  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__cards {
    width: 1280px;
  }

  .aayda-service-areas__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--aayda-numbers-spacing-16);
    width: 383px;
  }

  .aayda-service-areas__badge {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--aayda-numbers-spacing-4);
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    height: 28px;
    padding: 3px 15px 3px 11px;
    margin: 0;
    font-size: var(--aayda-typography-size-12);
    font-weight: var(--aayda-typography-weight-medium);
    line-height: var(--aayda-typography-line-height-12);
    letter-spacing: var(--aayda-typography-letter-spacing-12);
    color: var(--aayda-colors-text);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid var(--aayda-colors-base-white);
    border-radius: 28px;
  }

  .aayda-service-areas__badge-icon {
    display: block;
    flex-shrink: 0;
    width: 15px;
    height: 14px;
  }

  .aayda-service-areas__badge-icon img {
    display: block;
    width: 11px;
    height: 11px;
    margin: 2px 0 0 2px;
    max-width: none;
  }

  .aayda-service-areas__title {
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    margin: 0;
    overflow: visible;
    font-size: var(--aayda-typography-size-40);
    font-weight: var(--aayda-typography-weight-semi-bold);
    line-height: var(--aayda-typography-line-height-40);
    letter-spacing: var(--aayda-typography-letter-spacing-40);
    color: var(--aayda-colors-text);
  }

  .aayda-service-areas__cards {
    display: flex;
    align-items: center;
    gap: 17px;
    width: 1271px;
    height: 386px;
    margin: 38px 0 0;
    padding: 0;
    list-style: none;
    transition: width 300ms ease-out;
  }

  .aayda-service-areas__cards > li {
    flex: 0 0 auto;
    height: 386px;
  }

  .aayda-service-areas__card {
    position: relative;
    display: block;
    box-sizing: border-box;
    height: 386px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: var(--aayda-colors-surface-service-card);
    border: 0;
    border-radius: 12px;
    /* Default 2px white stroke without shifting absolute image coords. */
    box-shadow: inset 0 0 0 2px var(--aayda-colors-base-white);
    cursor: pointer;
    /* Figma SMART_ANIMATE primary: 300ms EASE_OUT (not 1022ms Gentle). */
    transition:
      width 300ms ease-out,
      box-shadow 300ms ease-out,
      overflow 0s;
  }

  .aayda-service-areas__card:focus-visible {
    outline: var(--aayda-border-width-focus-ring) solid var(--aayda-colors-ring-focus);
    outline-offset: 2px;
  }

  /* The text block moves as one unit: its padding is the only property that animates, and padding
   * carries the title, the description and the space between them together. Width and gap take
   * their new value at once — animating them re-wrapped the lines and moved the description
   * against the title mid-move, which is what made the pieces travel in separate stages. */
  .aayda-service-areas__card-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: padding 300ms ease-out;
  }

  .aayda-service-areas__card-title {
    margin: 0;
    font-size: var(--aayda-typography-size-24);
    font-weight: var(--aayda-typography-weight-medium);
    line-height: var(--aayda-typography-line-height-heading-24);
    letter-spacing: var(--aayda-typography-letter-spacing-24);
    color: var(--aayda-colors-text);
    /* Colour only: no size or width of its own animates, so the title never re-wraps or moves
     * separately from the block it sits in. */
    transition: color 300ms ease-out;
  }

  .aayda-service-areas__card-description {
    margin: 0;
    font-size: var(--aayda-typography-size-16);
    font-weight: var(--aayda-typography-weight-medium);
    line-height: var(--aayda-typography-line-height-16);
    letter-spacing: var(--aayda-typography-letter-spacing-16);
    color: var(--aayda-colors-text);
    /* Colour only, for the same reason as the title. */
    transition: color 300ms ease-out;
  }

  /* The pictures' white backgrounds are taken out by darken against the card's own colour. The box blends
     too, not only the img and canvas inside it: a box with a transform is a stacking context of its own, so
     its pictures could only darken against the box's empty backdrop and their white stayed visible. Blending
     the box itself composites whatever it holds against the card, whatever the box's transform; for a box
     without one the result is the same as before.

     The online-application card (slot-1) is not mirrored at any width (owner decision, 2026-11-28): the
     scaleX(-1) flips it used to carry (on this box in the four desktop states, and on its picture on mobile and
     tablet, from Figma 5250:19221) are gone, so the picture faces the way it is drawn, as Figma's desktop art
     (3353:28954) does. */
  .aayda-service-areas__card-media {
    position: absolute;
    overflow: hidden;
    pointer-events: none;
    mix-blend-mode: darken;
    transition:
      top 300ms ease-out,
      left 300ms ease-out,
      width 300ms ease-out,
      height 300ms ease-out,
      border-radius 300ms ease-out,
      transform 300ms ease-out;
  }

  .aayda-service-areas__card-media img,
  .aayda-service-areas__card-media canvas {
    position: absolute;
    max-width: none;
    object-fit: cover;
    mix-blend-mode: darken;
    transition:
      top 300ms ease-out,
      left 300ms ease-out,
      width 300ms ease-out,
      height 300ms ease-out,
      border-radius 300ms ease-out,
      transform 300ms ease-out,
      object-position 300ms ease-out;
  }

  @media (prefers-reduced-motion: reduce) {
    .aayda-service-areas__inner,
    .aayda-service-areas__cards,
    .aayda-service-areas__card,
    .aayda-service-areas__card-text,
    .aayda-service-areas__card-title,
    .aayda-service-areas__card-description,
    .aayda-service-areas__card-media,
    .aayda-service-areas__card-media img,
    .aayda-service-areas__card-media canvas {
      transition: none;
    }
  }

  /* Alternate / Mobile-only copy and images hidden on Desktop. */
  .aayda-service-areas__card-title--master,
  .aayda-service-areas__card-description--long,
  .aayda-service-areas__card-description--map,
  .aayda-service-areas__card-description--mobile,
  .aayda-service-areas__card-media-img--mobile {
    display: none;
  }

  .aayda-service-areas__card-description--desktop,
  .aayda-service-areas__card-media-img--desktop {
    display: block;
  }

  /* -------------------------------------------------------------------------- */
  /* Widths per Active card variant                                             */
  /* -------------------------------------------------------------------------- */

  /* Technical document (default): 408 / 271 / 271 / 270 */
  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-1 {
    width: 408px;
    overflow: visible;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-2,
  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-3 {
    width: 271px;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-4 {
    width: 270px;
  }

  /* Online appeal: 271 / 408 / 271 / 270 */
  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-1 {
    width: 271px;
    overflow: hidden;
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-2 {
    width: 408px;
    overflow: hidden;
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-3 {
    width: 271px;
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-4 {
    width: 270px;
  }

  /* Road map: 271 / 271 / 408 / 270 */
  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-1,
  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-2 {
    width: 271px;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-3 {
    width: 408px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--aayda-colors-base-white);
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-4 {
    width: 270px;
  }

  /* Contact: 271 / 271 / 271 / 408 — row 1280 (4128:27169: the cards end at 1272; the frame's last 8px stay empty) */
  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-1,
  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-2 {
    width: 271px;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-3 {
    width: 271px;
    box-shadow: inset 0 0 0 1px var(--aayda-colors-base-white);
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-4 {
    width: 408px;
    overflow: visible;
  }

  /* -------------------------------------------------------------------------- */
  /* TECHNICAL DOCUMENT (default) — 3353:29053 / page 4979:22551                */
  /* -------------------------------------------------------------------------- */

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-text {
    width: 348px;
    padding: 26px 0 0 30px;
    gap: var(--aayda-numbers-spacing-16);
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-title {
    font-size: var(--aayda-typography-size-24);
    font-weight: var(--aayda-typography-weight-medium);
    line-height: var(--aayda-typography-line-height-heading-24);
    letter-spacing: var(--aayda-typography-letter-spacing-24);
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-description {
    font-size: var(--aayda-typography-size-16);
    line-height: var(--aayda-typography-line-height-16);
    letter-spacing: var(--aayda-typography-letter-spacing-16);
    white-space: pre-line;
  }

  /* left was 84px while the picture was mirrored. Unflipped (2026-11-28), the art sat 22px from the card's right
     edge; at 34px it keeps the 72px right margin of the other expanded cards' art (Technical: 72, Contact: 79).
     Size and crop unchanged. */
  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-media {
    top: 158px;
    left: 34px;
    width: 319px;
    height: 226px;
    border-radius: 10px;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-media canvas {
    top: -36.46%;
    left: -1.16%;
    width: 120.83%;
    height: 171.81%;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-text {
    width: 237px;
    padding: 26px 0 0 20px;
    gap: var(--aayda-numbers-spacing-12);
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-title--page {
    display: block;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-description--page {
    display: block;
    width: 229px;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-media {
    top: 175px;
    left: 52px;
    width: 142px;
    height: 177px;
    border-radius: 0;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-media canvas {
    top: -12.44%;
    left: -21.97%;
    width: 149.29%;
    height: 121.59%;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-text {
    width: 237px;
    padding: 26px 0 0 20px;
    gap: var(--aayda-numbers-spacing-12);
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-description--page {
    display: block;
    width: 229px;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-media {
    top: 164px;
    left: 30px;
    width: 210px;
    height: 218px;
    border-radius: 20px 20px 10px 20px;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-media canvas {
    top: -13.34%;
    left: -8.11%;
    width: 120.56%;
    height: 116%;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-text {
    width: 225px;
    padding: 25px 0 0 20px;
    gap: var(--aayda-numbers-spacing-12);
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-description {
    width: 229px;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-media {
    top: 177px;
    left: 42px;
    width: 190px;
    height: 183px;
    border-radius: 10px;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-media canvas {
    top: -29.51%;
    left: -11.29%;
    width: 122.57%;
    height: 159.02%;
  }

  /* -------------------------------------------------------------------------- */
  /* ONLINE APPEAL — 3353:29054 (expands Card 2)                                */
  /* -------------------------------------------------------------------------- */

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-text {
    width: 235.68px;
    padding: 26px 0 0 20px;
    gap: var(--aayda-numbers-spacing-16);
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-title {
    font-size: var(--aayda-typography-size-28);
    font-weight: var(--aayda-typography-weight-medium);
    line-height: var(--aayda-typography-line-height-28);
    letter-spacing: var(--aayda-typography-letter-spacing-28);
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-description {
    font-size: var(--aayda-typography-size-14);
    line-height: var(--aayda-typography-line-height-14);
    letter-spacing: var(--aayda-typography-letter-spacing-14);
    white-space: normal;
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-media {
    top: 193px;
    left: 32px;
    width: 212px;
    height: 193px;
    border-radius: 10px;
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-media canvas {
    top: -28.33%;
    left: -1.03%;
    width: 120.68%;
    height: 133.53%;
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-text {
    width: 346px;
    padding: 26px 0 0 20px;
    gap: var(--aayda-numbers-spacing-12);
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-title--page,
  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-description--page {
    display: none;
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-title--master {
    display: block;
    font-size: var(--aayda-typography-size-28);
    font-weight: var(--aayda-typography-weight-medium);
    line-height: var(--aayda-typography-line-height-28);
    letter-spacing: var(--aayda-typography-letter-spacing-28);
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-description--long {
    display: block;
    width: 324px;
    font-size: var(--aayda-typography-size-16);
    line-height: var(--aayda-typography-line-height-16);
    letter-spacing: var(--aayda-typography-letter-spacing-16);
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-media {
    top: 176px;
    left: 114px;
    width: 238px;
    height: 210px;
    border-radius: 0;
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-media canvas {
    top: -17.6%;
    left: -21.99%;
    width: 149.4%;
    height: 171.96%;
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-text {
    width: 237px;
    padding: 26px 0 0 20px;
    gap: var(--aayda-numbers-spacing-12);
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-description--page {
    display: block;
    width: 229px;
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-media {
    top: 164px;
    left: 30px;
    width: 210px;
    height: 222px;
    border-radius: 20px 20px 10px 20px;
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-media canvas {
    top: -13.1%;
    left: -8.11%;
    width: 120.56%;
    height: 113.91%;
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-text {
    width: 221px;
    padding: 25px 0 0 20px;
    gap: var(--aayda-numbers-spacing-12);
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-media {
    top: 177px;
    left: 42px;
    width: 190px;
    height: 209px;
    border-radius: 10px;
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-media canvas {
    top: -25.84%;
    left: -11.29%;
    width: 122.57%;
    height: 139.23%;
  }

  /* -------------------------------------------------------------------------- */
  /* ROAD MAP — 3353:29523 (expands Card 3)                                     */
  /* -------------------------------------------------------------------------- */

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-text {
    width: 235.68px;
    padding: 26px 0 0 20px;
    gap: var(--aayda-numbers-spacing-16);
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-title {
    font-size: var(--aayda-typography-size-28);
    line-height: var(--aayda-typography-line-height-28);
    letter-spacing: var(--aayda-typography-letter-spacing-28);
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-description {
    font-size: var(--aayda-typography-size-14);
    line-height: var(--aayda-typography-line-height-14);
    letter-spacing: var(--aayda-typography-letter-spacing-14);
    color: #888d96;
    white-space: normal;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-media {
    top: 193px;
    left: 32px;
    width: 212px;
    height: 193px;
    border-radius: 10px;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-media canvas {
    top: -28.33%;
    left: -1.03%;
    width: 120.68%;
    height: 133.53%;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-text {
    width: 237px;
    padding: 26px 0 0 20px;
    gap: var(--aayda-numbers-spacing-12);
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-title--page {
    display: none;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-title--master {
    display: block;
    font-size: var(--aayda-typography-size-28);
    line-height: var(--aayda-typography-line-height-28);
    letter-spacing: var(--aayda-typography-letter-spacing-28);
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-description--page {
    display: none;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-description--map {
    display: block;
    width: 229px;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-media {
    top: 162px;
    left: 39px;
    width: 168px;
    height: 209px;
    border-radius: 0;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-media canvas {
    top: -12.44%;
    left: -21.97%;
    width: 149.29%;
    height: 121.59%;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-text {
    width: 358px;
    padding: 26px 0 0 20px;
    gap: var(--aayda-numbers-spacing-12);
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-title {
    font-weight: var(--aayda-typography-weight-semi-bold);
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-description--page {
    display: none;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-description--long {
    display: block;
    width: 358px;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-media {
    top: 148px;
    left: 122px;
    width: 286px;
    height: 238px;
    border-radius: 20px 20px 12px 20px;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-media canvas {
    top: -17.98%;
    left: -9.26%;
    width: 122.85%;
    height: 146.99%;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-text {
    width: 225px;
    padding: 25px 0 0 20px;
    gap: var(--aayda-numbers-spacing-12);
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-title {
    font-weight: var(--aayda-typography-weight-semi-bold);
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-media {
    top: 177px;
    left: 42px;
    width: 190px;
    height: 209px;
    border-radius: 10px;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-media canvas {
    top: -25.84%;
    left: -11.29%;
    width: 122.57%;
    height: 139.23%;
  }

  /* -------------------------------------------------------------------------- */
  /* CONTACT — 4128:27169 (expands Card 4)                                      */
  /* -------------------------------------------------------------------------- */

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-text {
    width: 235.68px;
    padding: 26px 0 0 20px;
    gap: var(--aayda-numbers-spacing-16);
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-title {
    font-size: var(--aayda-typography-size-28);
    line-height: var(--aayda-typography-line-height-28);
    letter-spacing: var(--aayda-typography-letter-spacing-28);
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-description {
    font-size: var(--aayda-typography-size-14);
    line-height: var(--aayda-typography-line-height-14);
    letter-spacing: var(--aayda-typography-letter-spacing-14);
    white-space: normal;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-media {
    top: 193px;
    left: 32px;
    width: 212px;
    height: 193px;
    border-radius: 10px;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-1 .aayda-service-areas__card-media canvas {
    top: -28.33%;
    left: -1.03%;
    width: 120.68%;
    height: 133.53%;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-text {
    width: 237px;
    padding: 26px 0 0 20px;
    gap: var(--aayda-numbers-spacing-12);
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-title--page {
    display: none;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-title--master {
    display: block;
    font-size: var(--aayda-typography-size-28);
    line-height: var(--aayda-typography-line-height-28);
    letter-spacing: var(--aayda-typography-letter-spacing-28);
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-description--page {
    display: none;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-description--map {
    display: block;
    width: 229px;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-media {
    top: 162px;
    left: 39px;
    width: 168px;
    height: 209px;
    border-radius: 0;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-2 .aayda-service-areas__card-media canvas {
    top: -12.44%;
    left: -21.97%;
    width: 149.29%;
    height: 121.59%;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-text {
    width: 235px;
    padding: 26px 0 0 20px;
    gap: var(--aayda-numbers-spacing-12);
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-title {
    font-weight: var(--aayda-typography-weight-semi-bold);
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-description--page {
    display: block;
    width: 233px;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-media {
    top: 148px;
    left: 35px;
    width: 210px;
    height: 222px;
    border-radius: 20px 20px 10px 20px;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-3 .aayda-service-areas__card-media canvas {
    top: -13.1%;
    left: -8.11%;
    width: 120.56%;
    height: 113.91%;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-text {
    width: 368px;
    padding: 25px 0 0 20px;
    gap: var(--aayda-numbers-spacing-12);
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-title {
    font-weight: var(--aayda-typography-weight-semi-bold);
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-description {
    width: 356px;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-media {
    top: 109px;
    left: 101px;
    width: 273px;
    height: 277px;
    border-radius: 10px;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-media img,
  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-4 .aayda-service-areas__card-media canvas {
    top: -16.3%;
    left: -9.76%;
    width: 106.01%;
    height: 130.66%;
  }
}

/* Hover GIF (the card's hover animation, GIF only), drawn frame by frame into a canvas by
   service-areas.js. It only plays in the desktop layout, so the narrow layouts never draw it. On desktop
   every illustration rule above names the canvas beside the img — box, offsets, object-fit, blend mode
   and the 300ms morph (plain selector lists, not :is(), so a browser without :is() keeps the
   illustration's own geometry). */
.aayda-service-areas__card-media > canvas.aayda-service-areas__card-gif {
  display: none;
}

/* The narrow layouts give the slot-2 picture no size of their own: it has always taken its width from
   srcset/sizes (a 320w rendition shown at 150px). A GIF card's still ("Texniki sənəd", card2img.jpeg,
   1600x1462) has no small rendition, so both srcset candidates are the large file and it would be drawn
   about 750px wide. Its size and place are stated instead, framed like the desktop: the folder sits on
   the rectangle the earlier artwork occupied in the 129x117 box. */
@media (max-width: 1415px) {
  .aayda-service-areas__card--slot-2[data-service-card-animation="gif"] .aayda-service-areas__card-media img:not(.aayda-service-areas__card-gif) {
    top: 20.5px;
    left: 5.4px;
    width: 127.5px;
    height: 116.5px;
    object-fit: cover;
  }
}

@media (min-width: 1416px) {
  /* Hover GIF (data-service-card-animation="gif"). The canvas sits over the still, transparent, until
     service-areas.js has drawn the GIF's first frame into it and marks the card playing; only then is the
     still hidden, so the two never blend and a GIF that fails or is still loading leaves the still in
     place. The mark stays through the forward run, the hold on the last frame and the run back, and is
     removed once frame one has had its time again. The swap is instant both ways. */
  .aayda-service-areas__card-media > canvas.aayda-service-areas__card-gif {
    display: block;
    opacity: 0;
  }

  .aayda-service-areas__card[data-service-gif-state="playing"] .aayda-service-areas__card-media img:not(.aayda-service-areas__card-gif) {
    visibility: hidden;
  }

  .aayda-service-areas__card[data-service-gif-state="playing"] .aayda-service-areas__card-media canvas.aayda-service-areas__card-gif {
    opacity: 1;
  }

  /* Slot 2 — "Texniki sənəd" still (card2img.jpeg, 1600x1462) and GIF (640x640), framed as Figma draws
     the folder (Functional cards 3353:29055, layer "document"). Figma does not put this art in the small
     box the earlier picture used: it lays it over the whole card and lets the card clip it. So the box
     becomes the card itself, with the card's radius, and both pictures are placed in card pixels.

     The still's rectangle in each state is a measured fit of card2img.jpeg to Figma's render of that
     variant (the same picture: Figma's fill is the 1954x1785 original), at the file's own aspect, never
     stretched. Active slot-1 ("Technical document" variant, the homepage's default) agrees with Figma's
     stated fill (-22.04, 130.63, 303.12x277.64) to a twentieth of a pixel across and half a pixel down,
     the difference being Figma's 0.24% vertical stretch. Active slot-2 is the "Online appeal" variant.
     Active slot-3 is the "Road map" variant, whose fill is a different, non-uniformly stretched copy; the
     fit is the closest unstretched placement. The "Contact" variant still shows the earlier glass
     artwork, so active slot-4 keeps slot-3's placement: the card is the same size and in the same place.

     The animation's rectangle in each state is that square fit of the folder (frame one fitted onto the
     earlier card2img.jpeg: left -0.018%, top -8.605% and width 100.028% of its width), and the whole
     animation, papers at their highest included, stays below the text and inside the card.

     The still shares that square rectangle. Today's still is a square picture that is the animation's
     own frame one (measured in the browser 2026-10-31: offset 0,0), so one rectangle for both keeps the
     swap invisible in both directions. The still once had a rectangle of its own, fitted to the earlier
     1600x1462 card2img.jpeg; a square picture drawn into that 1.094 box with object-fit: cover was cut
     top and bottom, so its folder sat about 13px below the animation's and dropped when the animation
     handed back to it. The narrow-layout size rule above is unchanged: no animation plays there. */
  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-2[data-service-card-animation="gif"] .aayda-service-areas__card-media,
  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-2[data-service-card-animation="gif"] .aayda-service-areas__card-media,
  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-2[data-service-card-animation="gif"] .aayda-service-areas__card-media,
  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-2[data-service-card-animation="gif"] .aayda-service-areas__card-media {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-2[data-service-card-animation="gif"] .aayda-service-areas__card-media img:not(.aayda-service-areas__card-gif),
  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-2[data-service-card-animation="gif"] .aayda-service-areas__card-media canvas.aayda-service-areas__card-gif {
    top: 105.04px;
    left: -22.11px;
    width: 303.17px;
    height: 303.17px;
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-2[data-service-card-animation="gif"] .aayda-service-areas__card-media img:not(.aayda-service-areas__card-gif),
  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-2[data-service-card-animation="gif"] .aayda-service-areas__card-media canvas.aayda-service-areas__card-gif {
    /* Bug-fix 4, correction 37: centred on Figma's "document" frame in this variant (Active card=Online
       appeal 3353:29054, layer 3353:29145: x 65…400 of the 408px card). At 87.24px the square ran to 420px
       and the card cut the folder at its right edge while the card was hovered. Same size and height. */
    top: 103.09px;
    left: 66.05px;
    width: 332.91px;
    height: 332.91px;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-2[data-service-card-animation="gif"] .aayda-service-areas__card-media img:not(.aayda-service-areas__card-gif),
  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-2[data-service-card-animation="gif"] .aayda-service-areas__card-media canvas.aayda-service-areas__card-gif,
  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-2[data-service-card-animation="gif"] .aayda-service-areas__card-media img:not(.aayda-service-areas__card-gif),
  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-2[data-service-card-animation="gif"] .aayda-service-areas__card-media canvas.aayda-service-areas__card-gif {
    top: 102.43px;
    left: -19.18px;
    width: 300.01px;
    height: 300.01px;
  }

  /* Slot 4 — "Əlaqə" with an animation. Its static rules above frame the earlier, non-square glass
     artwork: a rectangle about 0.8 as wide as it is tall, larger than the 190x183 (273x277 when active)
     box it sits in. A square still and animation drawn there with object-fit: cover lost about 29px of
     each side to the cover crop, and the box then clipped what overhung it, so the speech bubbles were
     cut at both edges (measured 2026-10-31: 8.5-10.7px of the art on the left, 15.7px on the right, in
     every state). As for slot 2, the box becomes the card, with the card's radius, and both pictures are
     one square in card pixels: exactly where and as large as cover drew them before (the square's left
     -8.51px, top 123px, side 291.01px in the default state), so nothing moves or changes size; only the
     edges the crop and the box hid come back, and the art stays inside the card. */
  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-4[data-service-card-animation="gif"] .aayda-service-areas__card-media,
  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-4[data-service-card-animation="gif"] .aayda-service-areas__card-media,
  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-4[data-service-card-animation="gif"] .aayda-service-areas__card-media,
  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-4[data-service-card-animation="gif"] .aayda-service-areas__card-media {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-4[data-service-card-animation="gif"] .aayda-service-areas__card-media img:not(.aayda-service-areas__card-gif),
  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-4[data-service-card-animation="gif"] .aayda-service-areas__card-media canvas.aayda-service-areas__card-gif {
    top: 123px;
    left: -8.51px;
    width: 291.01px;
    height: 291.01px;
  }

  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-4[data-service-card-animation="gif"] .aayda-service-areas__card-media img:not(.aayda-service-areas__card-gif),
  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-4[data-service-card-animation="gif"] .aayda-service-areas__card-media canvas.aayda-service-areas__card-gif,
  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-4[data-service-card-animation="gif"] .aayda-service-areas__card-media img:not(.aayda-service-areas__card-gif),
  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-4[data-service-card-animation="gif"] .aayda-service-areas__card-media canvas.aayda-service-areas__card-gif {
    top: 122.99px;
    left: -8.5px;
    width: 290.99px;
    height: 290.99px;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-4[data-service-card-animation="gif"] .aayda-service-areas__card-media img:not(.aayda-service-areas__card-gif),
  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-4[data-service-card-animation="gif"] .aayda-service-areas__card-media canvas.aayda-service-areas__card-gif {
    top: 63.85px;
    left: 38.09px;
    width: 361.93px;
    height: 361.93px;
  }

  /* Slot 3 — "Yollar üzrə xəritə" with an animation. In its own active layout (the "Road map" variant, card
     408x386) the static rules draw the art at 351px a side from 104.45px down, so the map ran 21.9px past
     the card's bottom edge: the card itself clipped it, not only the 286x238 box (measured 2026-10-31, in
     the still and in all 24 frames). The art is the tallest of the four (252.8px of content against
     178-206px), and the card leaves only about 38px between the text and its bottom edge, so a larger box
     cannot help: the art has to rise. It keeps its size and its left edge and rises 41.51px, which puts its
     lowest point on the same line as the active "Technical document" art (366.38px, the smallest bottom
     inset of the four active variants), 18.4px below the text at the pin's highest frame. As for slots 2 and
     4, the box is the card and both pictures are one square in card pixels; in the other layouts that
     square is exactly where and as large as cover drew it before, so nothing there moves. */
  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-3[data-service-card-animation="gif"] .aayda-service-areas__card-media,
  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-3[data-service-card-animation="gif"] .aayda-service-areas__card-media,
  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-3[data-service-card-animation="gif"] .aayda-service-areas__card-media,
  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-3[data-service-card-animation="gif"] .aayda-service-areas__card-media {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }

  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-3[data-service-card-animation="gif"] .aayda-service-areas__card-media img:not(.aayda-service-areas__card-gif),
  .aayda-service-areas[data-active-card="slot-1"] .aayda-service-areas__card--slot-3[data-service-card-animation="gif"] .aayda-service-areas__card-media canvas.aayda-service-areas__card-gif,
  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-3[data-service-card-animation="gif"] .aayda-service-areas__card-media img:not(.aayda-service-areas__card-gif),
  .aayda-service-areas[data-active-card="slot-2"] .aayda-service-areas__card--slot-3[data-service-card-animation="gif"] .aayda-service-areas__card-media canvas.aayda-service-areas__card-gif {
    top: 134.77px;
    left: 12.97px;
    width: 253.18px;
    height: 253.18px;
  }

  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-3[data-service-card-animation="gif"] .aayda-service-areas__card-media img:not(.aayda-service-areas__card-gif),
  .aayda-service-areas[data-active-card="slot-3"] .aayda-service-areas__card--slot-3[data-service-card-animation="gif"] .aayda-service-areas__card-media canvas.aayda-service-areas__card-gif {
    /* Bug-fix 4, correction 37: Figma's Road map variant (3353:29523, layer 13058:76254) puts the map's
       fill at x 54.6…407 of the 408px card. At 95.52px the square ran to 446.9px and the card cut the map at
       its right edge while the card was hovered; it now starts where Figma's fill does, inside the card.
       Same size and height. */
    top: 62.94px;
    left: 55.52px;
    width: 351.35px;
    height: 351.35px;
  }

  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-3[data-service-card-animation="gif"] .aayda-service-areas__card-media img:not(.aayda-service-areas__card-gif),
  .aayda-service-areas[data-active-card="slot-4"] .aayda-service-areas__card--slot-3[data-service-card-animation="gif"] .aayda-service-areas__card-media canvas.aayda-service-areas__card-gif {
    top: 118.77px;
    left: 17.97px;
    width: 253.18px;
    height: 253.18px;
  }
}

/* Section badge text (HomeSectionLabel, edited in the admin panel). The pill hugs its wording
   (width: max-content, as the about page's labels do); the 1px border now sits inside the
   padding, as Figma's stroke does, so the pill keeps the design's 28px and offsets. A label too long
   for the title block is cut with an ellipsis rather than wrapped, so the heading never moves. */
.aayda-service-areas__badge-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
