@tailwind base;
@tailwind components;
@tailwind utilities;

/* Кастомные стили */
.pink-text {
    color: #F82DA6;
}

.light-pink-text {
    color: #EE8EC7;
}

.light-pink-text:hover {
    color: #F82DA6;
}

.light-pink-text:hover .social-icon {
    stroke: #F82DA6;
}

.pink-hover:hover {
    background-color: #F82DA6;
    color: white;
    border-color: transparent;
}

.Empire {
    font-family: 'Roboto', sans-serif;
}

.get-started-btn {
    display: inline-block;
    border: 2px solid #F82DA6;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    padding: 7px 20px;
    font-weight: 600;
    color: #F82DA6;
    width: 175px;
    height: 43px;
    line-height: 1;
    transition: all 0.3s ease;
}

.social-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-section img {
    align-self: flex-start;
    transition: opacity 0.3s ease;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    text-decoration: none;
    font-size: 16px;
}

.social-icon {
    width: 16px;
    height: 16px;
    transition: stroke 0.3s ease;
    flex-shrink: 0;
}

.social-description {
    color: #6B7280;
    font-size: 14px;
    margin-top: 4px;
}

.header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-email {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0;
}

.header-email a {
    font-size: 0.75rem;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-email a:hover {
    color: #2563eb;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
}

.header-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.logo-symbol {
    font-size: 1.25rem;
    color: #9ca3af;
    margin: 0 0.5rem;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.LowText {
    font-family: DM Sans, sans-serif;
    font-size: 32px;
    color:#F82DA6;
}

.LowDesc {
    font-family: DM Sans, sans-serif;
    font-size: 20px;
    color: #000000;
}

.kvm {
    color: #F82DA6;
    font-weight: 600;
    text-decoration: underline;
}

.server {
    color: #F82DA6;
}

.hidden {
    display: none;
}

.location-label {
    align-items: center;
    font-size: 18px;
    padding-bottom: 6px;
    position: relative;
}

.location-label::after {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    bottom: 0;
    height: 2px;
    background-color: currentColor;
}

.location-label img {
    align-self: center;
}

/* Медиа-запросы для адаптации */
@media (min-width: 1440px) {
    .mx-auto.px-\[100px\] {
        padding-left: 120px;
        padding-right: 120px;
    }
}

@media (max-width: 1439px) and (min-width: 1200px) {
    .mx-auto.px-\[100px\] {
        padding-left: 80px;
        padding-right: 80px;
    }
    
    .mr-72 {
        margin-right: 12rem;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .mx-auto.px-\[100px\] {
        padding-left: 60px;
        padding-right: 60px;
    }
    
    .mr-72 {
        margin-right: 8rem;
    }
    
    .text-6xl {
        font-size: 3.5rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .mx-auto.px-\[100px\] {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .flex-col.md\:flex-row {
        flex-direction: column;
    }
    
    .mr-72 {
        margin-right: 0;
        margin-top: 2rem;
    }
    
    .text-6xl {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
    
    .social-section {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .social-section img {
        align-self: center;
    }
    
    .hidden.md\:flex {
        display: none;
    }
    
    .hidden.md\:block {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    .mx-auto.px-\[100px\] {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
    
    .text-2xl {
        font-size: 1.1rem;
    }
    
    .get-started-btn {
        font-size: 1.1rem;
        width: 150px;
        height: 40px;
    }
    
    .social-section img {
        width: 20px;
        height: 20px;
    }
    
    header .flex.justify-end {
        justify-content: center;
    }
    
    header .flex.justify-between {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 575px) {
    .mx-auto.px-\[100px\] {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .text-6xl {
        font-size: 2rem;
        text-align: center;
    }
    
    .text-2xl {
        font-size: 1rem;
        text-align: center;
    }
    
    .Empire {
        text-align: center;
    }
    
    .get-started-btn {
        display: block;
        margin: 0 auto;
        font-size: 1rem;
        width: 140px;
        height: 38px;
    }
    
    .social-section {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .social-section img {
        width: 18px;
        height: 18px;
    }
    
    .LowText {
        font-size: 1.5rem;
    }
    
    .LowDesc {
        font-size: 0.9rem;
    }
    
    header .flex.justify-end {
        justify-content: center;
        padding: 0.5rem;
    }
    
    header .flex.justify-between {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .hidden.md\:block.pl-8 {
        display: none;
    }
}

/* Стили для мобильного меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1000;
    padding: 80px 20px 20px 20px;
    overflow-y: auto;
}

.mobile-nav .nav-text {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 18px;
}

.mobile-nav a:hover {
    color: #F82DA6;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.image-resize {
    transition: all 0.3s ease-in-out;
}

@media (max-width: 1199px) and (min-width: 992px) {
    .image-resize {
        width: 240px !important;
        height: auto !important;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .image-resize {
        width: 200px !important;
        height: auto !important;
    }
    
    .w-24, .h-24 {
        width: 20px !important;
        height: 20px !important;
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    .image-resize {
        width: 120px !important;
        height: auto !important;
    }
    
    .w-24, .h-24 {
        width: 16px !important;
        height: 16px !important;
    }
    
}

@media (max-width: 575px) {
    .image-resize {
        width: 60px !important;
        height: auto !important;
    }
    
    .w-24, .h-24 {
        width: 14px !important;
        height: 14px !important;
    }
    
    
    .social-section {
        flex-direction: column;
        text-align: center;
    }
}

/* Мобильное меню для index.html */
@media (max-width: 949px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .hidden.md\:flex {
        display: none !important;
    }
    
    .hidden.md\:block.pl-8 {
        display: none !important;
    }
    
    .hidden.md\:block.text-right {
        display: none !important;
    }
    
    .mr-72 {
        margin-right: 0;
        margin-top: 2rem;
    }
    
    .flex-col.md\:flex-row {
        flex-direction: column;
    }
}

@media (min-width: 950px) {
    .mobile-menu-btn,
    .mobile-nav {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .text-6xl {
        font-size: 2.5rem !important;
        text-align: center;
    }
    
    .text-2xl {
        font-size: 1.2rem !important;
        text-align: center;
    }
    
    .Empire {
        text-align: center;
    }
    
    .get-started-btn {
        margin: 0 auto;
        display: block;
    }
    
    .social-section {
        text-align: center;
    }
    
    .LowText {
        font-size: 1.5rem !important;
    }
    
    .LowDesc {
        font-size: 1rem !important;
    }
}

/* Гарантия, что социальные секции никогда не скрываются */
.social-section {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Фиксированные размеры для иконок социальных сетей */
.social-section img.telegram-icon,
.social-section img.bot-icon,
.social-section img.blog-icon {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    min-height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    margin-right: 16px;
}

/* Адаптация для нижних блоков при ширине менее 1350px */
@media (max-width: 1350px) {
    .flex.flex-col.sm\:flex-row.gap-6.mt-20 {
        flex-direction: column !important;
    }
    
    .flex.flex-col.sm\:flex-row.gap-6.mt-20 > div {
        width: 100% !important;
        margin-bottom: 1.5rem;
    }
    
    .flex.flex-col.sm\:flex-row.gap-6.mt-20 > div:last-child {
        margin-bottom: 0;
    }
    
    /* Опционально: регулировка размеров изображений в блоках */
    .bg-\[\#FBE8F5\] .image-resize {
        width: 300px !important;
        height: auto !important;
    }
}

/* Дополнительная адаптация для мобильных устройств */
@media (max-width: 767px) {
    .bg-\[\#FBE8F5\] .image-resize {
        width: 250px !important;
        height: auto !important;
    }
    
    .LowText {
        font-size: 1.75rem !important;
    }
    
    .LowDesc {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .bg-\[\#FBE8F5\] .image-resize {
        width: 185px !important;
        height: auto !important;
    }
    
    .LowText {
        font-size: 1.5rem !important;
    }
}

/* Исправление для социальных секций на мобильных устройствах */
@media (max-width: 949px) {
    .md\:mr-72 {
        margin-right: 0 !important;
        margin-top: 2rem;
        width: 100%;
    }
    
    .social-section {
        flex-direction: row !important;
        justify-content: center;
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }
    
    .social-section > div {
        flex: 1;
        min-width: 0;
    }
    
    .social-link {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Гарантия, что социальные секции никогда не скрываются и правильно отображаются */
.social-section {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100%;
}

/* Адаптация для планшетов */
@media (max-width: 991px) and (min-width: 768px) {
    .social-section img.telegram-icon,
    .social-section img.bot-icon,
    .social-section img.blog-icon {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        min-height: 80px !important;
        max-width: 80px !important;
        max-height: 80px !important;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 767px) {
    .social-section img.telegram-icon,
    .social-section img.bot-icon,
    .social-section img.blog-icon {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 380px) {
    .social-section img.telegram-icon,
    .social-section img.bot-icon,
    .social-section img.blog-icon {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    .social-section {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .social-section img {
        margin-right: 0;
        margin-bottom: 8px;
    }
}

/* Убираем горизонтальный скролл */
body {
    overflow-x: hidden;
}

/* Исправление отступов для мобильных */
@media (max-width: 767px) {
    .mx-auto.px-\[100px\] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}