.faq-section {
  background: #f2eee2;
  border-top: 1px solid rgba(36, 77, 59, .18);
  border-bottom: 1px solid rgba(36, 77, 59, .18);
  overflow: clip;
}

.faq-language { display: block; }

.faq-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .58fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  min-height: 470px;
  padding: 28px 0 48px;
}

.faq-hero-copy h1 {
  margin: 16px 0 18px;
  max-width: 820px;
  color: var(--forest);
  font: 500 clamp(44px, 5.5vw, 82px)/.98 var(--font-display);
}

.faq-hero-copy > p { max-width: 790px; font-size: 18px; line-height: 1.62; }
.faq-hero-dog { width: min(100%, 420px); height: auto; justify-self: end; filter: drop-shadow(0 18px 28px rgba(36,77,59,.13)); }

.faq-search {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  max-width: 760px;
  margin-top: 28px;
  border: 2px solid var(--forest);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 9px 0 rgba(36,77,59,.08);
}

.faq-search > span:first-child { padding-left: 16px; color: var(--forest); font-size: 26px; font-weight: 900; }
.faq-search input { width: 100%; min-height: 60px; border: 0; outline: 0; background: transparent; padding: 0 18px 0 8px; color: #183c2e; font: 700 16px/1.2 var(--font-sans); }
.faq-search input::placeholder { color: #66796e; opacity: 1; }

.faq-nav-title { margin: 0 0 18px; color: var(--forest); font: 600 clamp(28px,3vw,42px)/1.05 var(--font-display); }
.faq-app-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0 0 32px; }
.faq-app-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 102px; gap: 8px; padding: 13px 8px; border: 1px solid #1f563f; border-radius: 24px; background: #fffaf0; color: #1f563f; font-weight: 850; text-align: center; transition: transform .18s ease, background .18s ease, color .18s ease; }
.faq-app-tab img { width: 38px; height: 38px; object-fit: contain; }
.faq-app-tab:first-child img { border-radius: 10px; }
.faq-app-tab:hover, .faq-app-tab:focus-visible, .faq-app-tab.is-current { transform: translateY(-3px); background: #1f563f; color: #fffaf0; box-shadow: 0 11px 22px rgba(31,86,63,.17); }
.faq-app-tab:hover img, .faq-app-tab:focus-visible img, .faq-app-tab.is-current img { filter: saturate(.85) brightness(1.08); }

.faq-guide-notes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 48px; }
.faq-guide-notes article { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 20px; min-height: 180px; padding: 18px 24px 18px 14px; border: 1px solid rgba(36,77,59,.28); border-radius: 28px; background: #e4ebe2; }
.faq-guide-notes article:nth-child(2) { background: #f6ead2; }
.faq-guide-notes img { width: 120px; height: 120px; object-fit: contain; }
.faq-guide-notes h2 { margin: 0 0 8px; color: var(--forest); font: 600 28px/1.05 var(--font-display); }
.faq-guide-notes p { margin: 0; line-height: 1.55; }

.faq-topic { scroll-margin-top: 110px; margin: 0 0 38px; padding: clamp(24px, 4vw, 54px); border: 1px solid rgba(36,77,59,.27); border-radius: 34px; background: #fffdf8; box-shadow: 0 18px 45px rgba(36,77,59,.08); }
.faq-topic[hidden] { display: none !important; }
.faq-topic-head { display: grid; grid-template-columns: minmax(0,1fr) 210px; align-items: center; gap: 24px; margin-bottom: 30px; }
.faq-topic-head img { width: 210px; height: 210px; object-fit: contain; justify-self: end; }
.faq-topic-label { display: inline-flex; border-radius: 999px; padding: 8px 13px; background: #1f563f; color: #fffaf0; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.faq-topic-head h2 { margin: 12px 0 12px; color: var(--forest); font: 500 clamp(34px,4.2vw,60px)/1 var(--font-display); }
.faq-topic-head p { max-width: 900px; margin: 0; font-size: 17px; line-height: 1.6; }

.faq-screen-layout { display: grid; grid-template-columns: minmax(230px, .64fr) minmax(0, 1.36fr); gap: clamp(22px, 4vw, 48px); align-items: start; margin: 0 0 34px; }
.faq-phone { margin: 0; position: sticky; top: 96px; align-self: start; }
.faq-phone img { display: block; width: min(100%, 360px); max-height: 720px; margin: 0 auto; object-fit: contain; object-position: top; border-radius: 28px; background: #f7f2e8; box-shadow: 0 16px 34px rgba(24,60,46,.16); }
.faq-phone figcaption, .faq-fragments figcaption { margin-top: 9px; color: #5c7063; font-size: 12px; line-height: 1.4; text-align: center; }
.faq-fragments { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.faq-fragments figure { display: flex; flex-direction: column; justify-content: center; min-height: 210px; margin: 0; padding: 14px; border-radius: 22px; background: #edf1e9; }
.faq-fragments img { display: block; width: 100%; max-height: 360px; object-fit: contain; border-radius: 15px; }

.faq-controls-title { margin: 0 0 16px; color: var(--forest); font: 600 clamp(27px,3vw,40px)/1.05 var(--font-display); }
.faq-control-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.faq-control { padding: 18px 20px; border: 1px solid rgba(36,77,59,.21); border-radius: 18px; background: #f8f4ea; }
.faq-control h4 { margin: 0 0 7px; color: var(--forest); font: 850 16px/1.25 var(--font-sans); }
.faq-control p { margin: 0; color: #385548; font-size: 14px; line-height: 1.55; }
.faq-no-results { padding: 28px; border: 1px solid #b44137; border-radius: 18px; color: #7d2e29; background: #fff6f3; font-weight: 800; text-align: center; }

[data-about-language] { display: none !important; }
html:lang(uk) [data-about-language="uk"], html:lang(en) [data-about-language="en"] { display: block !important; }
html:lang(uk) [data-about-language="uk"].tour-list, html:lang(en) [data-about-language="en"].tour-list { display: grid !important; }
.app-tour .tour-copy p + p { margin-top: 12px; }

@media (max-width: 1050px) {
  .faq-app-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .faq-screen-layout { grid-template-columns: 300px 1fr; }
  .faq-fragments { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .faq-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; }
  .faq-hero-dog { width: min(74vw, 330px); justify-self: center; order: -1; }
  .faq-hero-copy h1 { font-size: 43px; }
  .faq-app-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); position: static; }
  .faq-app-tab { min-height: 88px; border-radius: 20px; }
  .faq-guide-notes { grid-template-columns: 1fr; }
  .faq-guide-notes article { grid-template-columns: 92px 1fr; min-height: 0; padding: 14px 18px 14px 10px; }
  .faq-guide-notes img { width: 92px; height: 92px; }
  .faq-guide-notes h2 { font-size: 25px; }
  .faq-topic { padding: 22px 16px; border-radius: 25px; }
  .faq-topic-head { grid-template-columns: 1fr; }
  .faq-topic-head img { width: 170px; height: 170px; order: -1; justify-self: center; }
  .faq-topic-head h2 { font-size: 38px; }
  .faq-screen-layout { grid-template-columns: 1fr; }
  .faq-phone { position: static; }
  .faq-phone img { width: min(100%, 390px); max-height: none; }
  .faq-fragments { grid-template-columns: 1fr; }
  .faq-control-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .faq-app-tabs { gap: 8px; }
  .faq-app-tab { font-size: 13px; }
  .faq-search input { font-size: 14px; }
}
