/* Блоки 6–8: вопросы и ответы, форма почты, подвал. Значения из Figma:
   по умолчанию макет 1440, при ширине окна >=1920 — макет 1920. */

/* 6 — вопросы и ответы */
#faq { position: relative; height: auto; padding: 100px 0 99.625px; background: #ffeeda; }
#faq .frame { height: auto; }
.faq__col { position: relative; left: 39.5px; width: 1360px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.faq__title { width: 100%; font-weight: 900; font-size: 48px; line-height: 1; color: #000; text-align: center; }
.faq__list { width: 896.254px; margin: 0; padding: 0; list-style: none; }
.faq__item { position: relative; }
.faq__item:not(:last-child)::after { content: ""; position: absolute; left: 0; top: 100%; width: 100%; height: 1px; background: url("../assets/img/faq-line.png") 0 0 / 100% 100% no-repeat; }
.faq__item--1 { --pt: 1.38px; --pb: 25px; }
.faq__item--2 { --pt: 24px; --pb: 25px; }
.faq__item--3 { --pt: 25px; --pb: 30px; }
.faq__item--4 { --pt: 24px; --pb: 27px; }
.faq__item--5 { --pt: 22px; --pb: 13px; }
/* кнопка = вся строка вопроса (отступы строки внутри неё); иконка — колонка 30px, ось x=861.24 */
.faq__q { position: relative; display: block; width: 100%; margin: 0; padding: var(--pt) 0 var(--pb) 31.26px; border: 0; background: none; font: inherit; font-weight: 600; font-size: 18px; line-height: 22px; color: #000; text-align: left; cursor: pointer; transition: color .25s, padding-bottom .4s ease; }
.faq__q:hover { color: #ec642a; }
.faq__q:focus-visible { outline: 2px solid #ec642a; outline-offset: -2px; border-radius: 8px; }
.faq__q::before, .faq__q::after { content: ""; position: absolute; left: 850.24px; top: calc(var(--pt) + 10px); width: 22px; height: 2px; background: currentColor; transition: transform .4s ease, background-color .25s; }
.faq__q::after { transform: rotate(90deg); }
.faq__item.is-open .faq__q { padding-bottom: 0; }
.faq__item.is-open .faq__q::before { transform: rotate(45deg); }
.faq__item.is-open .faq__q::after { transform: rotate(135deg); }
.faq__a { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s ease, opacity .4s ease; }
.faq__a > div { min-height: 0; overflow: hidden; }
.faq__a p { margin: 0; padding: 5px 0 0 31.26px; width: 809px; font-weight: 400; font-size: 18px; line-height: 22px; color: #393939; }
.faq__a > div::after { content: ""; display: block; height: 17px; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; opacity: 1; }

/* 7 — форма почты */
#subscribe { position: relative; height: calc(728px + var(--x) * 0.07292); overflow: hidden; }
.sub__bg { position: absolute; left: calc(-90px - var(--x) * 0.10417); top: calc(-42.58px - var(--x) * 0.17417); width: calc(100% + 180px + var(--x) * 0.15); max-width: none; height: auto; }
#subscribe .frame { position: absolute; top: 0; height: 100%; }
.sub__group { position: absolute; left: calc(44.32px + var(--x) * 0.00379); top: calc(100.14px + var(--x) * 0.11825); width: 1351.36px; height: 527.82px; }
.sub__phones { position: absolute; left: 0; top: 0; width: 660.09px; height: auto; max-width: none; }
.sub__text { position: absolute; left: 690.36px; top: 102.41px; width: 661px; display: flex; flex-direction: column; gap: 62px; color: #fff; }
.sub__head { display: flex; flex-direction: column; gap: 23px; width: 100%; }
.sub__title { font-weight: 900; font-size: 52px; line-height: 1; }
.sub__lead { font-weight: 400; font-size: 18px; line-height: 28px; }
.sub__form { display: flex; gap: 25px; align-items: flex-start; width: 518px; margin: 0; }
.sub__input { flex: none; width: 326px; height: 50px; margin: 0; padding: 0 17px; border: 0.5px solid #fff; border-radius: 12px; background: #fff; font: inherit; font-weight: 300; font-size: 14px; color: #000; }
.sub__input::placeholder { color: #000; opacity: 1; }
.sub__input:focus-visible { outline: 2px solid #ffd7a6; outline-offset: 2px; }
.sub__btn { flex: none; width: 167.139px; height: 50px; padding: 18px 18px 18px 17px; border: 0; font: inherit; font-weight: 600; font-size: 16px; line-height: normal; cursor: pointer; }

/* 8 — подвал */
#footer { position: relative; height: 183px; background: #1e100d; }
.footer__socials { position: absolute; left: calc(50% - 0.2px); transform: translateX(-50%); top: 65.5px; display: flex; gap: 20.8px; }
.footer__socials img { width: 52px; height: 52px; }
.footer__socials a { transition: opacity .25s, transform .25s; }
.footer__socials a:hover, .footer__socials a:focus-visible { opacity: .7; transform: translateY(-2px); }
