/* ═══════════════════════════════════════════════════════════════
   pohudelakletu.ru — Main Stylesheet
   Stack: Pure CSS3, Mobile-first, Manrope
   ═══════════════════════════════════════════════════════════════ */


/* ===== РЕЗУЛЬТАТ РАСЧЁТА ===== */
.result-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 28px;
  margin-top: 24px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.result-title { margin: 0 0 18px; font-size: 22px; font-weight: 800; }
.result-numbers { display: grid; gap: 12px; }
.result-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; background: #f7f7f9; border-radius: 12px;
}
.result-item--main { background: #FFF1EF; border: 1px solid #FFD9D3; }
.result-label { font-size: 15px; color: #555; }
.result-value { font-size: 22px; font-weight: 800; color: #1a1a1a; }
.result-value small { font-size: 13px; font-weight: 500; color: #888; }
.result-note { margin: 16px 0 0; font-size: 14px; color: #666; }

/* ===== БЛОК ПРОДАЖИ PDF ===== */
.pdf-offer {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
  margin-top: 20px; padding: 28px;
  background: linear-gradient(135deg, #FF6B5E 0%, #FF8A5E 100%);
  border-radius: 18px; color: #fff;
}
.pdf-offer__icon { font-size: 44px; line-height: 1; }
.pdf-offer__body { flex: 1 1 320px; }
.pdf-offer__title { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.pdf-offer__text { margin: 0 0 12px; font-size: 15px; opacity: .95; }
.pdf-offer__list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.pdf-offer__list li { margin-bottom: 4px; }
.pdf-offer__action { flex: 0 0 auto; text-align: center; }
.pdf-offer__price { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.pdf-offer__btn { background: #fff !important; color: #FF5A4D !important; }
.pdf-offer__hint { display: block; margin-top: 8px; font-size: 12px; opacity: .9; }

@media (max-width: 600px) {
  .pdf-offer { flex-direction: column; text-align: center; }
  .pdf-offer__action { width: 100%; }
  .pdf-offer__btn { width: 100%; }
}

/* ===== ПОДВАЛ — отступы ===== */

.footer {
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer .container,
.footer__inner {
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .footer__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* FAQ-аккордеон */
.faq { margin-top: 48px; }

.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-q {
  position: relative;
  padding: 20px 44px 20px 0;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: color .2s;
}

.faq-q:hover { color: #FF6B5E; }

/* Значок + / − */
.faq-q::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
  color: #FF6B5E;
  transition: transform .2s;
}

.faq-item.open .faq-q::after {
  content: '−';
}

.faq-a {
  padding: 0 0 20px;
}

.faq-a p {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1E1E1E;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CFE3DD; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4CAF50; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.container--narrow { max-width: 768px; }
.container--sm { max-width: 896px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  font-weight: 600;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn--coral {
  background: #FF7A59;
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.btn--coral:hover {
  background: #e5653f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,122,89,0.3);
}

.btn--white {
  background: #FFFFFF;
  color: #4CAF50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn--white:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header__logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.header__logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #1E1E1E;
  white-space: nowrap;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 1024px) {
  .header__nav { display: flex; }
}

.header__nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  transition: color 0.2s;
}
.header__nav-link:hover { color: #4CAF50; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__cta {
  display: none;
}
@media (min-width: 640px) {
  .header__cta { display: inline-flex; }
}

.header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.header__burger:hover { background: #E6F0EC; }

@media (min-width: 1024px) {
  .header__burger { display: none; }
}

.header__burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #1E1E1E;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__burger--open .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__burger--open .header__burger-line:nth-child(2) {
  opacity: 0;
}
.header__burger--open .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.header__mobile {
  display: none;
  background: #FFFFFF;
  border-top: 1px solid #f3f4f6;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
@media (min-width: 1024px) {
  .header__mobile { display: none !important; }
}

.header__mobile--open {
  display: block;
}

.header__mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 4px;
}

.header__mobile-link {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #1E1E1E;
  transition: background 0.2s;
}
.header__mobile-link:hover { background: #E6F0EC; }

.header__mobile-cta {
  margin-top: 8px;
  justify-content: center;
  padding: 12px 20px;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: #E6F0EC;
  padding: 96px 0 64px;
}
@media (min-width: 640px) {
  .hero { padding: 128px 0 80px; }
}
@media (min-width: 1024px) {
  .hero { padding: 160px 0 112px; }
}

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
}

.hero__bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.hero__bg-circle--green {
  top: 80px;
  left: 40px;
  width: 256px;
  height: 256px;
  background: rgba(76,175,80,0.1);
}

.hero__bg-circle--coral {
  bottom: 40px;
  right: 40px;
  width: 320px;
  height: 320px;
  background: rgba(255,122,89,0.1);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.hero__content {
  text-align: center;
}
@media (min-width: 1024px) {
  .hero__content { text-align: left; }
}

.hero__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: #1E1E1E;
}
@media (min-width: 640px) {
  .hero__title { font-size: 36px; }
}
@media (min-width: 1024px) {
  .hero__title { font-size: 40px; }
}

.hero__subtitle {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: #6B7280;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) {
  .hero__subtitle { font-size: 18px; }
}
@media (min-width: 1024px) {
  .hero__subtitle { margin-left: 0; margin-right: 0; }
}

.hero__cta-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
@media (min-width: 640px) {
  .hero__cta-wrap { margin-top: 32px; }
}
@media (min-width: 1024px) {
  .hero__cta-wrap { justify-content: flex-start; }
}

.hero__badges {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: center;
  font-size: 14px;
  color: #6B7280;
}
@media (min-width: 1024px) {
  .hero__badges { justify-content: flex-start; }
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__illustration {
  display: flex;
  justify-content: center;
}
@media (min-width: 1024px) {
  .hero__illustration { justify-content: flex-end; }
}

.hero__illustration-bg {
  position: absolute;
  inset: 0;
  background: rgba(76,175,80,0.1);
  border-radius: 24px;
  transform: rotate(3deg) scale(1.05);
}

.hero__illustration {
  position: relative;
  width: 100%;
  max-width: 384px;
}
@media (min-width: 640px) { .hero__illustration { max-width: 448px; } }
@media (min-width: 1024px) { .hero__illustration { max-width: 512px; } }

.hero__illustration-img {
  position: relative;
  border-radius: 24px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.section {
  padding: 64px 0;
}
@media (min-width: 640px) { .section { padding: 80px 0; } }
@media (min-width: 1024px) { .section { padding: 96px 0; } }

.section--white { background: #FFFFFF; }
.section--gray { background: #F7F9FB; }

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  font-size: 24px;
  font-weight: 700;
  color: #1E1E1E;
}
@media (min-width: 640px) { .section__title { font-size: 30px; } }

.section__title--center { text-align: center; }

.section__subtitle {
  margin-top: 12px;
  color: #6B7280;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════
   CALCULATOR CARDS
   ═══════════════════════════════════════════════════════════════ */
.calc-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .calc-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .calc-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.calc-card {
  display: block;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.calc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* 7th card: span 2 on tablet so grid stays balanced */
@media (min-width: 640px) and (max-width: 1023px) {
  .calc-card--wide { grid-column: span 2; }
}

.calc-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.calc-card__icon--orange { background: #fff7ed; color: #f97316; }
.calc-card__icon--green  { background: #f0fdf4; color: #16a34a; }
.calc-card__icon--pink   { background: #fdf2f8; color: #ec4899; }
.calc-card__icon--red    { background: #fef2f2; color: #f87171; }
.calc-card__icon--amber  { background: #fffbeb; color: #d97706; }
.calc-card__icon--purple { background: #faf5ff; color: #a855f7; }
.calc-card__icon--sky    { background: #f0f9ff; color: #0ea5e9; }

.calc-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #1E1E1E;
  margin-bottom: 6px;
}

.calc-card__desc {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 16px;
  line-height: 1.5;
}

.calc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #4CAF50;
  transition: color 0.2s;
}

.calc-card:hover .calc-card__link { color: #3d9140; }
.calc-card__link svg { transition: transform 0.2s; }
.calc-card:hover .calc-card__link svg { transform: translateX(2px); }

/* ═══════════════════════════════════════════════════════════════
   TRUST CARDS
   ═══════════════════════════════════════════════════════════════ */
.trust-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .trust-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.trust-card {
  text-align: center;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.trust-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #E6F0EC;
  color: #4CAF50;
  margin-bottom: 20px;
}

.trust-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #1E1E1E;
  margin-bottom: 8px;
}

.trust-card__desc {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   STEPS (How it works)
   ═══════════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .steps-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.step {
  position: relative;
  text-align: center;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #4CAF50;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 8px 16px rgba(76,175,80,0.2);
}

.step__line {
  display: none;
  position: absolute;
  top: 32px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: #E6F0EC;
}
@media (min-width: 640px) {
  .step__line { display: block; }
}

.step__title {
  font-size: 18px;
  font-weight: 600;
  color: #1E1E1E;
  margin-bottom: 8px;
}

.step__desc {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   REVIEWS
   ═══════════════════════════════════════════════════════════════ */
.reviews-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .reviews-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.review-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E6F0EC;
  color: #4CAF50;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.review-card__name {
  font-weight: 600;
  font-size: 14px;
  color: #1E1E1E;
}

.review-card__stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.review-card__text {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════ */
.faq {
  border-top: 1px solid #f3f4f6;
}

.faq__item {
  border-bottom: 1px solid #f3f4f6;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1E1E1E;
  text-align: left;
  transition: color 0.2s;
}

.faq__question:hover {
  color: #4CAF50;
}

.faq__chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq__question[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  padding-bottom: 20px;
}

.faq__answer p {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   CTA BLOCK
   ═══════════════════════════════════════════════════════════════ */
.cta-block {
  background: #4CAF50;
  padding: 64px 0;
  text-align: center;
}
@media (min-width: 640px) {
  .cta-block { padding: 80px 0; }
}

.cta-block__title {
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .cta-block__title { font-size: 30px; }
}

.cta-block__subtitle {
  color: #dcfce7;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: #1E1E1E;
  color: #9ca3af;
}

.footer__inner {
  padding: 48px 0;
}
@media (min-width: 640px) {
  .footer__inner { padding: 64px 0; }
}

.footer__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 32px; }
}

.footer__heading {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__list a {
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.2s;
}
.footer__list a:hover {
  color: #4CAF50;
}

.footer__list li {
  font-size: 14px;
  line-height: 1.6;
}

.footer__link-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer__bottom {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

/* ============================================
   КАЛЬКУЛЯТОР ДЕФИЦИТА КАЛОРИЙ
   ============================================ */

:root {
  --coral: #FF6B5E;
  --coral-dark: #E85546;
  --coral-light: #FFF1EF;
  --green: #34C759;
  --green-dark: #28A745;
  --text: #1F2937;
  --text-light: #6B7280;
  --bg: #F9FAFB;
  --border: #E5E7EB;
}

.calc-page {
  padding: 32px 0 60px;
  background: var(--bg);
  min-height: 70vh;
}

.calc-page .container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Хлебные крошки ===== */
.breadcrumbs {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.breadcrumbs a {
  color: var(--coral);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--coral-dark); }

/* Отступ под фиксированную шапку */
.calc-page {
  padding: 104px 0 60px; /* было 32px — увеличили верх под header */
  background: var(--bg);
  min-height: 70vh;
}

/* Крошки — гарантированный отступ сверху */
.breadcrumbs {
  font-size: 14px;
  color: var(--text-light);
  margin: 0 0 20px;
  padding-top: 8px;
}

@media (max-width: 640px) {
  .calc-page { padding-top: 84px; }
}

/* ===== Заголовок и интро ===== */
.calc-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--text);
}
.calc-intro {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ===== Карточка формы ===== */
.calc-wrapper {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 8px 32px rgba(0,0,0,.07);
}

.form-group { margin-bottom: 22px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

/* Поля ввода */
.calc-form input[type="number"],
.calc-form select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.calc-form input[type="number"]:focus,
.calc-form select:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-light);
}

/* Стрелка у select */
.calc-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}

/* Строка из 3 полей (возраст/рост/вес) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

/* ===== Radio-кнопки (пол) ===== */
.radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.radio-btn {
  position: relative;
  cursor: pointer;
}
.radio-btn input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.radio-btn span {
  display: block;
  text-align: center;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  border: 2px solid var(--border);
  border-radius: 12px;
  transition: all .2s;
}
.radio-btn input:checked + span {
  border-color: var(--coral);
  background: var(--coral-light);
  color: var(--coral-dark);
}

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn--coral {
  background: var(--coral);
  color: #fff;
}
.btn--coral:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,107,94,.35);
}
.btn--lg {
  font-size: 17px;
  padding: 16px 32px;
}
.btn--sm {
  font-size: 14px;
  padding: 10px 20px;
}
.calc-submit {
  width: 100%;
  margin-top: 6px;
}

/* ===== Дисклеймер ===== */
.disclaimer {
  background: #F3F4F6;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 24px;
}

/* ============================================
   БЛОК РЕЗУЛЬТАТА
   ============================================ */
.calc-result {
  margin-top: 28px;
  animation: fadeInUp .5s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-head {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  color: #fff;
  box-shadow: 0 12px 32px rgba(255,107,94,.3);
}
.result-badge {
  display: inline-block;
  background: rgba(255,255,255,.22);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.result-title {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}
.result-number {
  display: block;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin: 8px 0;
}
.result-sub {
  font-size: 16px;
  opacity: .95;
  line-height: 1.5;
}
.result-sub strong { font-weight: 700; }

/* Предупреждение о минимуме */
.result-warning {
  background: #FFF8E6;
  border: 1px solid #FFE08A;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  color: #92722A;
  line-height: 1.5;
  margin-top: 16px;
}

/* Три карточки калорий */
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.result-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
}
.result-card--accent {
  border-color: var(--coral);
  background: var(--coral-light);
  position: relative;
}
.result-card__label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 8px;
  min-height: 28px;
}
.result-card__value {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.result-card--accent .result-card__value { color: var(--coral-dark); }
.result-card__unit {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
}

/* ============================================
   БЛОК ОФФЕРА 299₽
   ============================================ */
.offer-block {
  background: #fff;
  border: 2px solid var(--coral);
  border-radius: 20px;
  padding: 36px 32px;
  margin-top: 28px;
  box-shadow: 0 8px 32px rgba(255,107,94,.12);
}
.offer-block__head { text-align: center; margin-bottom: 24px; }
.offer-block__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 12px;
}
.offer-block__title u {
  text-decoration-color: var(--coral);
  text-underline-offset: 3px;
}
.offer-block__sub {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.55;
}

/* Буллеты выгод */
.offer-block__bullets {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.offer-block__bullets li {
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.offer-block__bullets li:last-child { border-bottom: none; }

/* Цена */
.offer-block__price {
  text-align: center;
  margin-bottom: 22px;
}
.offer-block__anchor {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-bottom: 6px;
}
.offer-block__now {
  display: inline-block;
  font-size: 40px;
  font-weight: 800;
  color: var(--coral-dark);
}
.offer-block__old {
  display: inline-block;
  font-size: 18px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 8px;
  vertical-align: middle;
}

.offer-block__cta {
  width: 100%;
  font-size: 18px;
  padding: 18px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 8px 20px rgba(255,107,94,.35); }
  50%  { box-shadow: 0 8px 28px rgba(255,107,94,.55); }
  100% { box-shadow: 0 8px 20px rgba(255,107,94,.35); }
}

.offer-block__guarantee {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 14px;
}

/* ===== Отзывы под оффером ===== */
.offer-reviews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.offer-review {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.offer-review strong {
  display: block;
  font-size: 14px;
  color: var(--coral-dark);
  margin-bottom: 8px;
}
.offer-review p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

/* ============================================
   SEO-КОНТЕНТ + FAQ
   ============================================ */
.seo-content {
  margin-top: 48px;
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,.05);
}
.seo-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
}
.seo-content h2:first-child { margin-top: 0; }
.seo-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 14px;
}
.seo-content ol,
.seo-content ul {
  margin: 0 0 16px 22px;
}
.seo-content li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.seo-content strong { font-weight: 600; }

/* FAQ */
.faq { margin-top: 40px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 22px;
  color: var(--coral);
  font-weight: 400;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-light);
  margin: 0;
}

/* ============================================
   АДАПТИВ (мобильные)
   ============================================ */
@media (max-width: 640px) {
  .calc-title { font-size: 24px; }
  .calc-intro { font-size: 15px; }
  .calc-wrapper { padding: 24px 18px; }

  .form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .result-head { padding: 28px 20px; }
  .result-title { font-size: 19px; }
  .result-number { font-size: 42px; }

  .result-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 16px 20px;
  }
  .result-card__label { margin-bottom: 0; min-height: auto; }
  .result-card__value { font-size: 26px; }
  .result-card__unit { display: none; }

  .offer-block { padding: 28px 20px; }
  .offer-block__title { font-size: 19px; }
  .offer-block__now { font-size: 34px; }

  .offer-reviews { grid-template-columns: 1fr; }

  .seo-content { padding: 28px 20px; }
  .seo-content h2 { font-size: 19px; }
}

/* ============================================
   РЕЗУЛЬТАТ JS-КАЛЬКУЛЯТОРА (уникальные классы)
   ============================================ */
.calc-res-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 28px;
  margin-top: 24px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.calc-res-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}
.calc-res-numbers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.calc-res-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f7f7f9;
  border-radius: 12px;
}
.calc-res-item--main {
  background: #FFF1EF;
  border: 1px solid #FFD9D3;
}
.calc-res-label {
  font-size: 15px;
  color: #555;
  line-height: 1.3;
}
.calc-res-value {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  white-space: nowrap;
}
.calc-res-value small {
  font-size: 13px;
  font-weight: 500;
  color: #888;
}
.calc-res-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Мобильный адаптив для блока результата */
@media (max-width: 480px) {
  .calc-res-card { padding: 20px; }
  .calc-res-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .calc-res-value { font-size: 22px; }
  .calc-res-title { font-size: 20px; }
}

/* ===== ФИКС ШАПКИ НА МОБИЛЬНЫХ ===== */

/* Кнопка в шапке прячется на узких экранах */
@media (max-width: 768px) {
  .header__cta {
    display: none !important;
  }
}

/* Логотип не даёт себя сжать, текст не вылезает */
.header__inner {
  gap: 12px;
}
.header__logo-text {
  white-space: normal;       /* можно перенести, если очень узко */
  line-height: 1.1;
  font-size: 16px;
}

/* На совсем узких — чуть меньше логотип */
@media (max-width: 380px) {
  .header__logo-text { font-size: 15px; }
  .header__logo-img { width: 30px; height: 30px; }
}

/* ===== ФИКС ШАПКИ ===== */

/* Кнопку в шапке показываем только на десктопе (где есть полное меню) */
.header__cta { display: none; }

@media (min-width: 1024px) {
  .header__cta { display: inline-flex; }
}

/* Логотип и текст не вылезают */
.header__inner { gap: 12px; }
.header__logo-text { white-space: nowrap; font-size: 16px; }

@media (max-width: 380px) {
  .header__logo-text { font-size: 14px; }
  .header__logo-img { width: 30px; height: 30px; }
}

/* ===== ЦЕНТРИРОВАНИЕ ТЕКСТА НА КНОПКЕ РАСЧЁТА ===== */
.calc-form button[type="submit"],
.calc-form .btn,
#calcForm button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

/* ===== ОТСТУП ЗАГОЛОВКОВ ЦЕНТР-СЕКЦИЙ ОТ СОДЕРЖИМОГО ===== */
.section__title--center {
  margin-bottom: 56px;
}

@media (max-width: 768px) {
  .section__title--center {
    margin-bottom: 36px;
  }
}

/* ===== ОФФЕР PDF ===== */
.offer {
  margin-top: 32px;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 2px solid #fb923c;
  text-align: center;
}
.offer__badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.offer__title {
  font-size: 22px;
  margin-bottom: 20px;
  line-height: 1.3;
}
.offer__list {
  list-style: none;
  padding: 0;
  margin: 0 auto 24px;
  max-width: 460px;
  text-align: left;
}
.offer__list li {
  margin-bottom: 10px;
  font-size: 15px;
}
.offer__price {
  margin-bottom: 20px;
}
.offer__price-old {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 20px;
  margin-right: 12px;
}
.offer__price-new {
  font-size: 36px;
  font-weight: 800;
  color: #ef4444;
}
.offer__note {
  margin-top: 14px;
  font-size: 13px;
  color: #6b7280;
}
@media (max-width: 600px) {
  .offer { padding: 24px 18px; }
  .offer__title { font-size: 19px; }
}

.pdf-offer__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pdf-offer__price-old {
  font-size: 22px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.pdf-offer__price-new {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

/* ===== Калькулятор калорийности блюд ===== */
.dish-calc { margin: 0 0 10px; }

.dish-add {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 18px;
}
.dish-add__field { display: flex; flex-direction: column; }
.dish-add__field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444;
}
.dish-add__field--name { flex: 1 1 240px; position: relative; }
.dish-add__field--grams { flex: 0 0 110px; }

.dish-add input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cdd3da;
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
  background: #fff;
}
.dish-add input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76,175,80,.15);
}
.dish-add input.err {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,.15);
}

.dish-add__btn {
  flex: 0 0 auto;
  padding: 11px 22px;
  border: none;
  border-radius: 10px;
  background: #4caf50;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.dish-add__btn:hover { background: #43a047; }

/* подсказки */
.dish-suggest {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #d6dbe1;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  max-height: 280px;
  overflow-y: auto;
}
.dish-suggest__item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #f0f2f4;
}
.dish-suggest__item:last-child { border-bottom: none; }
.dish-suggest__item:hover { background: #f3f8f3; }
.dish-suggest__item span { color: #888; font-size: 12px; }

/* таблица */
.dish-table-wrap { overflow-x: auto; }
.dish-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 18px;
}
.dish-table th,
.dish-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #eceff2;
}
.dish-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #888;
  font-weight: 700;
  background: #f7f9fa;
}
.dish-table th:first-child,
.dish-table td.dish-td-name {
  text-align: left;
}
.dish-td-name { font-weight: 600; color: #333; }
.dish-empty td {
  text-align: center;
  color: #999;
  padding: 22px 8px;
  font-style: italic;
}

.dish-del {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: #f1f3f5;
  color: #e74c3c;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.dish-del:hover { background: #fdecea; }

/* итог */
.dish-total {
  background: #f3f8f3;
  border: 1px solid #d8ecd9;
  border-radius: 14px;
  padding: 18px 20px;
}
.dish-total__main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d8ecd9;
}
.dish-total__label { font-size: 15px; font-weight: 600; color: #444; }
.dish-total__kcal { font-size: 16px; color: #2e7d32; }
.dish-total__kcal strong { font-size: 28px; }

.dish-total__macros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}
.dish-total__macros strong { color: #333; }

.dish-total__per100 {
  font-size: 13px;
  color: #777;
}
.dish-total__per100 strong { color: #2e7d32; }

/* таблица калорийности в SEO-блоке */
.kcal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 14px 0 22px;
}
.kcal-table th,
.kcal-table td {
  padding: 9px 10px;
  border: 1px solid #e5e9ec;
  text-align: center;
}
.kcal-table th {
  background: #f7f9fa;
  font-weight: 700;
  color: #555;
}
.kcal-table td:first-child,
.kcal-table th:first-child { text-align: left; }
.kcal-table tr:nth-child(even) td { background: #fafbfc; }

/* мобильные */
@media (max-width: 560px) {
  .dish-add__field--name { flex: 1 1 100%; }
  .dish-add__field--grams { flex: 1 1 calc(50% - 6px); }
  .dish-add__btn { flex: 1 1 calc(50% - 6px); }
  .dish-table { font-size: 13px; }
  .dish-table th, .dish-table td { padding: 8px 5px; }
  .dish-total__kcal strong { font-size: 24px; }
}
