/* ========== MOBILE STYLES (max-width: 768px) ========== */
/* Все стили для мобильных устройств */

:root {
  --header-height: 65px;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  /* Лёгкое уменьшение масштаба примерно на 2% */
  font-size: 98%;
}

/* ========== HEADER MOBILE ========== */
.site-header {
  padding: 0.6rem 0.75rem;
  min-height: var(--header-height);
}

.logo-image {
  width: 44px;
  height: 44px;
}

.logo-name {
  font-size: 1.15rem;
}

.logo-tagline {
  font-size: 0.65rem;
}

.nav-toggle {
  display: flex;
}

.main-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0.75rem;
  right: 0.75rem;
  background: white;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem;
  box-shadow: var(--shadow-large);
  border-radius: var(--radius-md);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: var(--transition-smooth);
}

.main-nav.open {
  max-height: 400px;
  opacity: 1;
}

.nav-link {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
}

/* ========== HERO MOBILE ========== */
.hero {
  padding: 1.5rem 0.75rem;
  grid-template-columns: 1fr;
  gap: 2rem;
  min-height: auto;
}

.hero-visual {
  order: -1;
}

.hero-title {
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-kicker {
  font-size: 0.7rem;
  padding: 0.35rem 0.7rem;
  margin-bottom: 1rem;
}

.hero-actions {
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.hero-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
}

.hero-highlights {
  gap: 0.6rem;
}

.hero-highlights li {
  font-size: 0.85rem;
  padding-left: 1.75rem;
}

.hero-highlights li::before {
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
}

.hero-card {
  padding: 1.5rem;
}

.hero-name {
  font-size: 1.75rem;
}

.hero-role {
  font-size: 0.85rem;
}

.hero-phrase {
  font-size: 0.85rem;
  line-height: 1.5;
}

.hero-stats {
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.stat {
  padding: 1rem;
}

.stat-label {
  font-size: 0.7rem;
}

.stat-value {
  font-size: 1.35rem;
}

.stat-note {
  font-size: 0.7rem;
}

/* ========== GALLERY MOBILE ========== */
.gallery-section {
  padding: 2rem 0.75rem;
}

.gallery-section .section-header {
  margin-bottom: 1.5rem;
}

.gallery-section .section-header h2 {
  font-size: 1.4rem;
}

.gallery-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

/* ========== CTA BOT MOBILE ========== */
.cta-bot-section {
  padding: 2rem 0.75rem;
}

.cta-bot-card {
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.cta-bot-text h2 {
  font-size: 1.3rem;
  margin-bottom: 0.875rem;
}

.cta-bot-text p {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.cta-bot-list {
  margin-bottom: 1.5rem;
  gap: 0.6rem;
}

.cta-bot-list li {
  font-size: 0.85rem;
  padding-left: 2rem;
}

.cta-bot-list li::before {
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
}

.bot-screen {
  padding: 1rem;
}

.bot-bubble {
  font-size: 0.8rem;
  padding: 0.65rem 0.875rem;
  line-height: 1.5;
}

/* ========== SECTIONS MOBILE ========== */
.section-layout {
  padding: 1.5rem 0.75rem 2rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
}

.section-kicker {
  font-size: 0.9rem;
}

/* ========== ABOUT MOBILE ========== */
#about .section-layout {
  margin: 0 0.5rem 0.75rem;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
}

.about-content {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.about-text p {
  font-size: 1rem;   /* чуть крупнее на мобилке */
  line-height: 1.7;
}

.about-text p:first-child::first-letter {
  font-size: 2.5rem;
  margin-right: 0.5rem;
}

.tag-card {
  padding: 1.25rem;
}

.tag-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.tag-card li {
  font-size: 0.9rem;
  padding-left: 1.5rem;
}

/* ========== BLOG MOBILE ========== */
.blog-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.blog-card {
  padding: 1.5rem;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.blog-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.blog-meta {
  font-size: 0.8rem;
}

/* ========== SOCIAL STORIES MOBILE ========== */
.social-stories-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.social-story-card {
  padding: 1.25rem;
}

.story-header {
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
}

.story-avatar {
  width: 44px;
  height: 44px;
  font-size: 1.15rem;
}

.story-info h3 {
  font-size: 1.1rem;
}

.story-age {
  font-size: 0.8rem;
}

.story-tag {
  margin-left: 0;
  order: 3;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
}

.story-situation,
.story-helper,
.story-strategy,
.story-content,
.story-steps,
.story-reward,
.story-tips {
  margin-bottom: 1rem;
}

.story-situation h4,
.story-helper h4,
.story-strategy h4,
.story-content h4,
.story-steps h4,
.story-reward h4,
.story-tips h4 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.story-text {
  padding: 1rem;
}

.story-text p {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.story-text p strong {
  font-size: 0.95rem;
}

.story-steps li {
  font-size: 0.85rem;
  gap: 0.6rem;
}

.step-num {
  width: 24px;
  height: 24px;
  font-size: 0.7rem;
}

.reward-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.reward-item {
  padding: 0.6rem;
}

.reward-icon {
  font-size: 1.25rem;
}

.reward-item span:nth-child(2) {
  font-size: 0.75rem;
}

.reward-desc {
  font-size: 0.65rem;
}

/* ========== CASHIER MOBILE ========== */
.cashier-layout {
  grid-template-columns: 1fr;
}

.cashier-info {
  position: static;
  gap: 1rem;
}

.cashier-info > p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.payment-form-card {
  padding: 1rem;
}

.payment-form-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.payment-form-card > p {
  font-size: 0.75rem;
  line-height: 1.4;
  margin-bottom: 0.875rem;
}

.payment-form {
  gap: 0.875rem;
}

.form-group {
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
}

.amount-input {
  font-size: 0.95rem;
  padding: 0.65rem;
  padding-right: 2.5rem;
}

.currency-label {
  font-size: 0.75rem;
  right: 0.75rem;
}

.payment-select {
  padding: 0.65rem;
  font-size: 0.85rem;
}

.payment-info-box {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  gap: 0.5rem;
}

.info-item {
  font-size: 0.75rem;
  gap: 0.4rem;
}

.alternative-payment {
  padding: 0.875rem;
}

.alternative-payment p {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.offer-wrapper {
  padding: 1.25rem;
}

.offer-wrapper h3 {
  font-size: 1.1rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.75rem;
}

.offer-box {
  max-height: 300px;
  font-size: 0.8rem;
  padding-right: 0.5rem;
}

/* ========== FOOTER MOBILE ========== */
.site-footer {
  padding: 2rem 0.75rem 1rem;
  margin-top: 2rem;
}

.footer-main {
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.2rem;
}

.footer-about p {
  font-size: 0.85rem;
}

.footer-links {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.footer-link {
  font-size: 0.9rem;
}

.footer-link::before {
  display: none;
}

.footer-telegram {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.footer-developer {
  padding: 0.875rem;
}

.developer-title {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.developer-link {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.footer-bottom {
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
  font-size: 0.75rem;
  padding-top: 1.5rem;
}

/* ========== PAYMENT MODAL MOBILE ========== */
.payment-modal-overlay {
  padding: 0.75rem;
  align-items: center;
  justify-content: center;
}

.payment-modal {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  max-height: calc(100vh - 1.5rem);
  width: calc(100% - 1.5rem);
  max-width: none;
  margin: 0 auto;
}

.payment-modal--contract {
  width: calc(100% - 1.5rem);
  max-width: none;
}

.payment-modal-close {
  width: 32px;
  height: 32px;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1rem;
}

.payment-modal-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 0.5rem;
}

.payment-modal-icon svg {
  width: 28px;
  height: 28px;
}

.amount-value {
  font-size: 2rem;
}

.amount-currency {
  font-size: 1rem;
}

.payment-modal-header h3 {
  font-size: 1.1rem;
}

.payment-modal-desc {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.contract-scroll-box {
  max-height: 150px;
  padding: 0.75rem;
  font-size: 0.75rem;
}

.contract-agree {
  margin-bottom: 0.75rem;
}

.checkbox-label {
  gap: 0.5rem;
}

.checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
}

.checkbox-text {
  font-size: 0.8rem;
}

.payment-method-btn {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}

.payment-method-btn svg {
  width: 20px;
  height: 20px;
}

.payment-modal-info {
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.info-row {
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.3rem 0;
}

.info-row strong {
  max-width: 100%;
  font-size: 0.75rem;
}

.payment-modal-footer {
  padding-top: 0.75rem;
}

.payment-modal-footer p {
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
}

.telegram-link {
  font-size: 0.8rem;
}

.telegram-link svg {
  width: 16px;
  height: 16px;
}

.scroll-indicator {
  font-size: 0.7rem;
  padding: 0.4rem;
}

/* ========== SMALL PHONES (480px and below) ========== */
@media (max-width: 480px) {
  .section-layout {
    padding: 1.25rem 0.75rem 1.75rem;
  }
  
  .section-header {
    margin-bottom: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 1.35rem;
  }
  
  .section-header::after {
    width: 35px;
    height: 3px;
    bottom: -0.875rem;
  }
  
  .section-kicker {
    font-size: 0.85rem;
  }
  
  #about .section-layout {
    margin: 0 0.25rem 0.5rem;
    padding: 1.25rem 0.875rem;
  }
  
  .about-text p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .about-text p:first-child::first-letter {
    font-size: 2.25rem;
    margin-right: 0.4rem;
  }
  
  .tag-card {
    padding: 1rem;
  }
  
  .tag-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.875rem;
  }
  
  .tag-card li {
    font-size: 0.85rem;
    padding-left: 1.25rem;
  }
  
  .blog-card {
    padding: 1.125rem;
  }
  
  .blog-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.875rem;
  }
  
  .blog-card p {
    font-size: 0.85rem;
    line-height: 1.6;
  }
  
  .blog-meta {
    font-size: 0.75rem;
  }
  
  .social-stories-grid {
    gap: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .social-story-card {
    padding: 1.25rem;
  }
  
  .story-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  
  .story-info h3 {
    font-size: 1.1rem;
  }
  
  .story-age {
    font-size: 0.8rem;
  }
  
  .story-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
  
  .payment-form-card {
    padding: 0.875rem;
  }
  
  .payment-form-card h3 {
    font-size: 1rem;
  }
  
  .payment-form-card > p {
    font-size: 0.7rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
  }
  
  .form-group label {
    font-size: 0.75rem;
  }
  
  .amount-input {
    font-size: 0.9rem;
    padding: 0.6rem;
    padding-right: 2.25rem;
  }
  
  .currency-label {
    font-size: 0.7rem;
    right: 0.65rem;
  }
  
  .payment-select {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
  
  .payment-info-box {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }
  
  .info-item {
    font-size: 0.7rem;
  }
  
  .cashier-info > p {
    font-size: 0.85rem;
  }
  
  .payment-modal {
    padding: 1rem;
  }
  
  .amount-value {
    font-size: 1.75rem;
  }
  
  .contract-scroll-box {
    max-height: 120px;
  }
  
  .payment-method-btn {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.4rem;
  }
}

/* ========== EXTRA SMALL PHONES (360px and below) ========== */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.35rem;
  }
  
  .hero-name {
    font-size: 1.5rem;
  }
  
  .hero-card {
    padding: 1.25rem;
  }
  
  .section-header h2 {
    font-size: 1.35rem;
  }
  
  .cta-bot-text h2 {
    font-size: 1.15rem;
  }
  
  .story-info h3 {
    font-size: 1rem;
  }
  
  .blog-card h3 {
    font-size: 1.05rem;
  }
  
  .reward-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========== iPhone XR, 11, 12, 13, 14 (414px - 430px) ========== */
@media (max-width: 430px) and (min-width: 400px) {
  .payment-modal-overlay {
    padding: 0.5rem;
  }
  
  .payment-modal {
    width: calc(100% - 1rem);
    padding: 1.25rem;
    margin: 0 auto;
  }
  
  .contract-scroll-box {
    max-height: 140px;
  }
}
