/* Общие компонентные стили внутренних страниц f3pl.ru (вынесены из инлайна главной). */

body { margin: 0; font-family: 'Roboto', sans-serif; }
.font-heading { font-family: 'Montserrat', sans-serif; letter-spacing: -0.025em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); transition: all .3s ease; }
header.scrolled { box-shadow: 0 6px 10px -4px rgba(0,0,0,.15); background: #f9fafb; }
.nav-item { color: #1f2937; }
.nav-item:hover { color: #c2410c; }

/* Кнопка-CTA с бегущим градиентом */
.button-to-contact {
  position: relative; overflow: hidden; border: none; padding: 1rem 2rem; font-size: 1rem; color: #fff;
  background: linear-gradient(270deg, #f97316, #ea580c, #f97316); background-size: 300% 300%;
  border-radius: 30px; transition: transform .3s ease, box-shadow .3s ease; cursor: pointer; outline: none;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); display: inline-block; text-align: center; text-decoration: none;
  animation: gradientFlow 3s infinite;
}
.button-to-contact::before { content:''; position:absolute; top:0; left:-100%; width:100%; height:100%; background:rgba(255,255,255,.3); transform:skewX(-45deg); transition:left .5s ease; }
.button-to-contact:hover::before { left:100%; }
.button-to-contact:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,.15); }
@keyframes gradientFlow { 0%{background-position:0% 50%;} 50%{background-position:100% 50%;} 100%{background-position:0% 50%;} }

/* Карточки */
.service-card, .benefit-card { border: 1px solid rgba(0,0,0,.05); transition: all .3s ease; background: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,.05); }
.service-card:hover, .benefit-card:hover { border-color: rgba(0,0,0,.1); box-shadow: 0 10px 15px -3px rgba(0,0,0,.05); transform: translateY(-5px); }

/* Модалки */
.modal { display: none; position: fixed; inset: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: #fff; border-radius: 12px; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; position: relative; animation: modalFadeIn .3s ease-out; }
@keyframes modalFadeIn { from{opacity:0;transform:translateY(-20px);} to{opacity:1;transform:translateY(0);} }
.modal-header { padding: 1.5rem; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 1.5rem; }
.close-modal { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #6b7280; }
.close-modal:hover { color: #374151; }

/* Выпадающее меню «Для кого» */
.group { position: relative; }
.group > .dropdown { opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.group:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.group::after { content:''; position:absolute; top:100%; left:0; width:100%; height:12px; background:transparent; pointer-events:none; }
.dropdown a { display:block; padding:6px 12px; color:#4a5568; text-decoration:none; font-size:.9rem; transition:color .2s ease; }
.dropdown a:hover { color:#c2410c; }

/* FAQ / аккордеон */
.faq-question { cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background-color .2s; }
.faq-answer { display: none; }
.faq-answer.active { display: block; }

@media (max-width: 768px) {
  section { padding: 2rem 0; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
}

/* Поля кода в компоненте входа (модалка + /lk/) */
.lk-a-digit { width: 44px; height: 56px; text-align: center; font-size: 1.5rem; border: 1px solid #d1d5db; border-radius: 10px; }
.lk-a-digit:focus { outline: none; border-color: #c2410c; box-shadow: 0 0 0 1px #c2410c; }
