/* style.css */

.hero-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.left-column,
.center-column,
.right-column {
    flex: 1;
    max-width: 33%; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.h2{
	font-size: 20px;
}

.center-column {
    flex: 1.5;
    flex-direction: column;
    text-align: center;
}

.character-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
        
.character {
    width: 325px;
    height: auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    opacity: 1; 
    transform: translateY(0);
}
        
.character.show {
    opacity: 1;
    transform: translateY(0);
}
        
.character:hover {
    transform: translateY(0) scale(1.05);
}
        
.speech-bubble {
    width: 420px;
    opacity: 0;
    transform: translateY(-30px) translateX(30px) scale(1);
    transition: all 0.6s ease;
    position: absolute;
    top: -40px;
    right: -180px;
    z-index: 3;
}
        
.speech-bubble.show {
    opacity: 1;
    transform: translateY(-30px) translateX(30px) scale(1);
}
        
.speech-text {
    font-size: 16px;
    fill: #333;
    font-weight: 600;
}
        
.highlight {
    fill: #ff6b35;
    font-weight: 700;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1.5rem;
}
        
.highlight-hero-title {
    display: inline-block;
    position: relative;
}
        
.hero-subtitle {
    font-size: 1.25rem;
    margin: 0 auto 2rem auto;
    max-width: 400px;
    text-align: center;
}
        
.hero-action {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.telegram-container {
    position: relative;
    display: inline-block;
    width: 450px;
    height: 450px;
    flex-shrink: 0;
}
        
.rotating-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotate 19s linear infinite;
}
        
.circle-gradient {
    fill: url(#orange-gradient);
}
        
.circle-text {
    fill: white;
    font-size: 22px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    letter-spacing: 2px;
    text-anchor: start;
}
        
.telegram-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
}
        
.telegram-logo:hover {
    transform: translate(-50%, -50%) scale(1.05);
}
        
.telegram-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
}
        
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
 
.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
        
.no-wrap {
    white-space: nowrap;
    display: inline-block;
}

.highlight-hero-title {
  display: inline-block; 
  position: relative;
}
		
.btn-primary {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: white;
}
        
.btn-outline-primary {
    border: 2px solid #ff6b35;
    color: #ff6b35;
    background: transparent;
}
        
.btn-outline-primary:hover {
    background: #ff6b35;
    color: white;
}
        
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}
		
.highlight-orange {
    color: #F36607;
    font-weight: bold;
}

#timer {
    color: #dc3545;
    font-size: 1.2em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.icon-circle {
    width: 100px;        
    height: 100px;       
    border-radius: 50%;
    background: #a8edea;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle img {
    width: 80px;          
    height: 80px;         
}
	
.section-title {
    color: #F36607;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}
	
.phone-link {
    font-size: 1.6rem;    
    font-weight: bold;     
    color: #ff6600;        
    text-decoration: none; 
}

.phone-link:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
    .hero-content-wrapper {
        max-width: 100%;
        padding: 15px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .feature-cards-container .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .feature-cards-container .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ */
@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    /* ПОРЯДОК ЭЛЕМЕНТОВ НА МОБИЛЬНЫХ УСТРОЙСТВАХ */
    .left-column {
        order: 1; /* Тучка с текстом - первая */
        margin-bottom: 20px;
    }
    
    .center-column {
        order: 2; /* Центральный баннер - второй */
        margin-bottom: 20px;
    }
    
    .right-column {
        order: 3; /* Кнопка телеграм - третья */
    }

    .center-column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .hero-action {
        display: flex;
        flex-direction: row; 
        gap: 15px;           
        justify-content: center;
        width: 100%;
        margin: 15px 0;      
    }

    .hero-subtitle {
        text-align: center;
    }

    .left-column,
    .center-column,
    .right-column {
        max-width: 100%;
        flex: none;
    }

    .speech-bubble {
        width: 130%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .speech-bubble {
        width: 140%;
    }

    .speech-text {
        font-size: 14px;
    }

    .character-container {
        width: 180px;
        height: 180px;
    }

    .character {
        width: 200px;
    }

    .speech-bubble {
        width: 180%;
        top: -65px;
        right: -160px;
    }
}

@media (max-width: 400px) {
    .hero-content-wrapper {
        padding: 10px;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }

    .character {
        width: 180px;
    }
    
    .character-container {
        width: 180px;
        height: 180px;
    }

    .speech-bubble {
        width: 200px;
        top: -15px;
        right: 0px;
    }
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  z-index: 10001;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 350px;
  word-wrap: break-word;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: #28a745;
}

.notification.error {
  background: #dc3545;
}

.notification.warning {
  background: #ffc107;
  color: #333;
}

.file-upload-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  min-width: 300px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: all 0.3s ease;
}

.file-upload-indicator.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.upload-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.upload-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e1e1e1;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.upload-text {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.upload-details {
  font-size: 14px;
  color: #666;
  max-width: 250px;
  word-wrap: break-word;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.file-list {
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.file-list-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 5px;
  font-size: 13px;
}

.file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #333;
}

.file-size {
  color: #666;
  font-size: 12px;
}

.remove-file {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.remove-file:hover {
  background: #c82333;
}

input[type="file"] {
  padding: 12px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]:hover {
  border-color: #007bff;
  background: #f0f8ff;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert {
    margin-top: 1rem;
}