/**
 * Header CTA v2 (Figma) — public.
 */

.button-wrapper-telegram,
.button-wrapper-max {
  display: flex;
}

@media (max-width: 1366px) {
  .button-wrapper-telegram,
  .button-wrapper-max {
    display: none !important;
  }
}

.header-column-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  /* Figma 1920/1440: TG → Max → Write */
  gap: 14px;
}

@media (max-width: 1366px) {
  /* Figma 1024: Write + burger @51 */
  .header-column-buttons {
    gap: 24px;
  }
}

@media (max-width: 1023px) {
  /* Figma 768/375: Write + burger @48 */
  .header-column-buttons {
    gap: 20px;
  }
}

.header-column-buttons .button-wrapper-telegram > svg,
.header-column-buttons .button-wrapper-max > svg,
.header-column-buttons .button-wrapper-telegram-mobile > svg,
.header-column-buttons .button-wrapper-max-mobile > svg {
  width: 51px;
  height: 51px;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .header-column-buttons .button-wrapper-telegram > svg,
  .header-column-buttons .button-wrapper-max > svg,
  .header-column-buttons .button-wrapper-telegram-mobile > svg,
  .header-column-buttons .button-wrapper-max-mobile > svg {
    width: 48px;
    height: 48px;
  }
}

.header-column-buttons .button-wrapper-telegram,
.header-column-buttons .button-wrapper-max {
  flex-shrink: 0;
}

/*
 * Booking SVG is 70×61 (arc overflow); circle is ~51px at cx≈34.93.
 * Layout box stays 51×51 so gap 14px matches TG/Max circle-to-circle.
 */
.header-column-buttons .button-wrapper-booking {
  overflow: visible;
  width: 51px;
  height: 51px;
  flex-shrink: 0;
}

.header-column-buttons .button-wrapper-booking > svg {
  width: 70px !important;
  height: 61px !important;
  display: block;
  flex-shrink: 0;
  /* Align circle center (34.925) with 51px slot center (25.5) */
  margin-left: -9.425px;
  margin-top: 0;
}

@media (max-width: 1023px) {
  .header-column-buttons .button-wrapper-booking {
    width: 48px;
    height: 48px;
  }

  .header-column-buttons .button-wrapper-booking > svg {
    width: 66px !important;
    height: 57px !important;
    margin-left: -8.87px;
  }
}

/* Round focus ring only for circular CTAs — logo is wide, 50% becomes an oval */
.button-wrapper:focus-within:not(.button-wrapper-logo) {
  outline: 2px solid #B0BEC5;
  outline-offset: 2px;
  border-radius: 50%;
}

.button-wrapper-logo:focus-within {
  outline: none;
}

.button-wrapper .button-wrapper-hover-path,
.button-wrapper .button-wrapper-hover-stroke-brown-700,
.button-wrapper .button-wrapper-arc-text path {
  transition: 0.2s;
}

.button-wrapper:hover .button-wrapper-hover-path {
  fill: #B0BEC5;
}

.button-wrapper:hover .button-wrapper-hover-stroke-brown-700 {
  fill: #B0BEC5;
  stroke: #B0BEC5;
}

.button-wrapper:hover .button-wrapper-arc-text path {
  fill: #B0BEC5;
}

/* Mobile menu Write: white circle + grey icon + white arc — don't recolor arc to blue-gray */
.mobile-menu .button-wrapper-booking:hover .button-wrapper-arc-text path {
  fill: #FFFFFF;
}

.button-wrapper:hover .button-wrapper-static-text:not(.button-wrapper-static-text--on-dark) path,
.button-wrapper:hover .button-wrapper-static-text:not(.button-wrapper-static-text--on-dark) text {
  fill: #B0BEC5;
}

.button-wrapper .button-wrapper-static-text path,
.button-wrapper .button-wrapper-static-text text {
  transition: 0.3s;
}

.button-wrapper .button-wrapper-static-text.button-wrapper-static-text--on-dark text {
  fill: #ffffff;
}

/* Figma mobile menu: row gap 24; between Phone/Maps and TG/Max/Write — 40 */
.mobile-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 40px;
}

.mobile-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
}

/* Accordion Services Li (Figma 1440): Ellipse 56×56 = Button Up 56; gap 24 */
.accordion .accordion-line {
  overflow: visible;
}

.accordion .accordion-line-btns {
  display: flex !important;
  align-items: center;
  gap: 24px !important; /* app.css has 14 — Figma is 24 */
}

.accordion .accordion-line-btns .button-wrapper.button-wrapper-booking,
.accordion .accordion-line-more-btn-wrapper .button-wrapper.button-wrapper-booking {
  position: relative;
  width: 56px;
  height: 56px;
  overflow: visible;
  flex-shrink: 0;
}

/* Mobile shows booking in more-btn-wrapper (app.css hides accordion-line-btns .button-wrapper) */
.accordion .accordion-line-more-btn-wrapper .button-wrapper.button-wrapper-booking {
  display: flex !important;
}

/*
 * Header Write SVG is 70×61 with circle Ø50 (r=25).
 * Accordion Figma uses Ø56 — scale so the brown circle matches .accordion-line-close (56).
 */
.accordion .accordion-line-btns .button-wrapper.button-wrapper-booking > svg,
.accordion .accordion-line-more-btn-wrapper .button-wrapper.button-wrapper-booking > svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 78.4px !important;   /* 70 * (56/50) */
  height: 68.32px !important; /* 61 * (56/50) */
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  /* circle center (34.925, 25.5) → slot center (28, 28) */
  transform: translate(-11.12px, -0.56px);
  display: block;
}

@media (max-width: 1023px) {
  .accordion .accordion-line-btns {
    gap: 20px !important;
  }

  .accordion .accordion-line-btns .button-wrapper.button-wrapper-booking,
  .accordion .accordion-line-more-btn-wrapper .button-wrapper.button-wrapper-booking {
    width: 48px;
    height: 48px;
  }

  .accordion .accordion-line-btns .button-wrapper.button-wrapper-booking > svg,
  .accordion .accordion-line-more-btn-wrapper .button-wrapper.button-wrapper-booking > svg {
    width: 67.2px !important;
    height: 58.56px !important;
    transform: translate(-9.53px, -0.48px);
  }
}
