* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: #2663eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2563eb;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background-image: url('/assets/images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    padding: 4rem 0;
    text-align: center;
    opacity: 0.9;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Numbers Section */
.numbers-section {
    padding: 3rem 0;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.number-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.number-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.number-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
    min-height: 100%;
    gap: 1rem;
}

.number-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flag {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}

.number-info {
    flex: 1;
}

.phone-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.country-name {
    color: #666;
    font-size: 0.9rem;
}

.number-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-open {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: transparent;
    color: #6b7280;
    border: 2px solid #6b7280;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-open:hover {
    background-color: #6b7280;
    color: white;
    border-color: #6b7280;
}

/* Number Header */
.number-header {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.number-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.number-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flag-large {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

.number-id {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.number-id span {
    font-size: 1.5rem;
    font-weight: 600;
}

.copy-btn {
    padding: 0.4rem 1rem;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #059669;
}

.signal-indicator {
    margin-left: auto;
}

.signal-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.number-header h3 {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

/* Messages Section */
.messages-section {
    padding: 2rem 0;
}

.messages-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.messages-info {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.info-box {
    background-color: #fef3c7;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.info-box p {
    margin: 0.5rem 0;
    color: #92400e;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-update,
.btn-another {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-update {
    background-color: #2563eb;
    color: white;
}

.btn-update:hover {
    background-color: #1d4ed8;
}

.btn-another {
    background-color: #6b7280;
    color: white;
}

.btn-another:hover {
    background-color: #4b5563;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-card {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0;
    padding: 1.5rem;
    background-color: #eeeeee;
    border-radius: 8px;
}

.message-col,
.sender-col {
    padding-right: 1.5rem;
    border-right: 1px solid #e5e5e5;
}

.sender-col {
    padding-left: 1.5rem;
}

.time-col {
    padding-left: 1.5rem;
}

.message-label {
    font-size: 0.85rem;
    color: #333;
    text-transform: none;
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.message-text {
    color: #333;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    font-size: 1rem;
    font-weight: 400;
}

.message-text strong {
    color: #2563eb;
    font-weight: 700;
}

/* Стили для ссылок в специальном SMS */
.spec-sms-link {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.3s;
}

.spec-sms-link:hover {
    color: #1d4ed8;
}

.sender-text {
    color: #007AFF;
    font-size: 1rem;
    font-weight: 400;
}

.time-text {
    color: #333;
    font-size: 1rem;
    font-weight: 400;
}

.no-messages {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

/* How To Section */
.how-to-section {
    padding: 3rem 0;
    background: white;
}

.how-to-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
}

.step h3 {
    margin-bottom: 1rem;
    color: #333;
}

.step p {
    color: #666;
    margin-bottom: 1rem;
}

.step img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Info Section */
.info-section {
    padding: 3rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    margin-bottom: 1rem;
    color: #2563eb;
}

.info-card p {
    color: #666;
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.go-up {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.go-up:hover {
    color: #60a5fa;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer p {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: #fff;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 1.5rem;
        font-size: 1rem;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        z-index: 999;
    }

    .nav-menu.active::after {
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu li {
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 1rem;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 0.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .numbers-grid {
        grid-template-columns: 1fr;
    }

    .message-card {
        grid-template-columns: 1fr;
        /* gap: 1rem; */
    }

    .message-col,
    .sender-col,
    .time-col {
        padding-left: 0;
        padding-right: 0;
        border-right: none;
        text-align: left;
        padding-top: 1rem;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
    }

    .message-col {
        border-bottom: 2px solid #e5e7eb;
    }

    .sender-col {
        border-bottom: 2px solid #e5e7eb;
    }

    .time-col {
        border-bottom: none;
        margin-bottom: 0;
    }

    .number-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .signal-indicator {
        display: none;
    }
}