/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #1a1a1a;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFC709;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FFC709 0%, #e6b800 100%);
    color: #000;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Убрать белую полосу между чёрным меню и жёлтым блоком на странице ресторанов */
body.page-restaurants .hero {
    margin-top: -56px;
    padding-top: calc(56px + 3rem);
    padding-bottom: 3rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #000;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #000;
}

.hero-highlight {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    display: inline-block;
}

.price-shock {
    text-align: center;
}

.shock-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}

.price-display {
    margin: 1.5rem 0;
}

.price-display .currency {
    font-size: 1.5rem;
    vertical-align: top;
    opacity: 0.8;
}

.price-display .amount {
    font-size: 4rem;
    font-weight: 900;
    margin: 0 0.5rem;
}

.price-display .period {
    font-size: 1.25rem;
    opacity: 0.8;
}

.price-description {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.cta-button {
    display: inline-block;
    background: #000;
    color: #FFC709;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: #333;
}

/* Solutions Section */
.solutions {
    padding: 100px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.solution-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.solution-card::before,
.solution-card::after {
    content: none !important;
}

.solution-card ul,
.solution-card ol {
    list-style: none !important;
}

.solution-card li::before,
.solution-card li::after {
    content: none !important;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #FFC709;
}

/* Иконка и заголовок карточки в один ряд */
.solution-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.solution-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.solution-icon--fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    flex-shrink: 0;
}

.solution-icon--fa i {
    font-size: 1.5rem;
}

/* Разноцветные иконки в карточках Возможности */
.solution-card:nth-child(1) .solution-icon--fa { background: rgba(37, 99, 235, 0.12); }
.solution-card:nth-child(1) .solution-icon--fa i { color: #2563eb; }
.solution-card:nth-child(2) .solution-icon--fa { background: rgba(22, 163, 74, 0.12); }
.solution-card:nth-child(2) .solution-icon--fa i { color: #16a34a; }
.solution-card:nth-child(3) .solution-icon--fa { background: rgba(249, 115, 22, 0.12); }
.solution-card:nth-child(3) .solution-icon--fa i { color: #ea580c; }
.solution-card:nth-child(4) .solution-icon--fa { background: rgba(124, 58, 237, 0.12); }
.solution-card:nth-child(4) .solution-icon--fa i { color: #7c3aed; }
.solution-card:nth-child(5) .solution-icon--fa { background: rgba(13, 148, 136, 0.12); }
.solution-card:nth-child(5) .solution-icon--fa i { color: #0d9488; }
.solution-card:nth-child(6) .solution-icon--fa { background: rgba(234, 88, 12, 0.12); }
.solution-card:nth-child(6) .solution-icon--fa i { color: #ea580c; }
.solution-card:nth-child(7) .solution-icon--fa { background: rgba(59, 130, 246, 0.12); }
.solution-card:nth-child(7) .solution-icon--fa i { color: #3b82f6; }
.solution-card:nth-child(8) .solution-icon--fa { background: rgba(236, 72, 153, 0.12); }
.solution-card:nth-child(8) .solution-icon--fa i { color: #db2777; }
.solution-card:nth-child(9) .solution-icon--fa { background: rgba(234, 179, 8, 0.2); }
.solution-card:nth-child(9) .solution-icon--fa i { color: #ca8a04; }
.solution-card:nth-child(10) .solution-icon--fa { background: rgba(220, 38, 38, 0.12); }
.solution-card:nth-child(10) .solution-icon--fa i { color: #dc2626; }
.solution-card:nth-child(11) .solution-icon--fa { background: rgba(6, 182, 212, 0.12); }
.solution-card:nth-child(11) .solution-icon--fa i { color: #0891b2; }
.solution-card:nth-child(12) .solution-icon--fa { background: rgba(5, 150, 105, 0.12); }
.solution-card:nth-child(12) .solution-icon--fa i { color: #059669; }

.solution-icon::before,
.solution-icon::after {
    content: none !important;
}

.solution-card-header h3,
.solution-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
    overflow: hidden;
    line-height: 1.2;
}

.solution-card p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1rem;
    clear: both;
    margin-top: 0;
    flex: 1;
}

.details-btn {
    background: #FFC709;
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: auto;
    align-self: flex-start;
}

.details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 199, 9, 0.3);
    background: #e6b800;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: #f8fafc;
}

.pricing-header-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    text-align: center;
}

.pricing-header-section .country-text {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.pricing-country-selector {
    position: relative;
    display: inline-block;
}

.pricing-country-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #1a1a1a;
}

.pricing-country-btn:hover {
    border-color: #FFC709;
}

.pricing-country-btn .flag {
    font-size: 1.25rem;
}

.pricing-country-btn .arrow {
    margin-left: 0.25rem;
    color: #6b7280;
    font-size: 0.7rem;
}

.pricing-country-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.pricing-country-dropdown.show {
    display: block;
}

.pricing-country-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
}

.pricing-country-option:last-child {
    border-bottom: none;
}

.pricing-country-option:hover {
    background: #f8fafc;
}

/* Pricing Tables — по количеству диалогов (5, 10, 20, 50) */
.pricing-tables {
    margin-top: 2rem;
}

.pricing-table {
    display: none;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    padding: 2rem;
}

.pricing-table.active {
    display: block;
}

.pricing-dialogues-intro {
    text-align: center;
    color: #6b7280;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.plan-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    border-color: #FFC709;
    box-shadow: 0 8px 24px rgba(255, 199, 9, 0.2);
}

.plan-dialogues {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.plan-price-cell {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.15rem;
}

.plan-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a1a;
}

.plan-period {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

/* AI Assistant Section */
.ai-assistant {
    padding: 100px 0;
    background: linear-gradient(135deg, #FFC709 0%, #e6b800 100%);
    color: #000;
}

.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ai-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.ai-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.ai-features {
    list-style: none;
}

.ai-features li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    position: relative;
    padding-left: 2rem;
}

.ai-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
}

.ai-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* iPhone mockup with chat inside — размеры под чёрную рамку (Dynamic Island) */
.ai-phone-mockup {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.ai-phone-mockup .phone-frame {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    pointer-events: none;
    vertical-align: top;
}

.ai-phone-mockup .phone-screen {
    position: absolute;
    top: 6.2%;
    left: 4.5%;
    right: 4.5%;
    bottom: 5.8%;
    z-index: 1;
    background: transparent;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.ai-phone-mockup .phone-chat {
    padding: 14px 10px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.ai-phone-mockup .chat-bubble {
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.4;
    max-width: 88%;
    word-wrap: break-word;
}

.ai-phone-mockup .chat-bubble--guest {
    align-self: flex-end;
    background: #e8e8ed;
    color: #000;
    border-bottom-right-radius: 4px;
}

.ai-phone-mockup .chat-bubble--assistant {
    align-self: flex-start;
    background: #fff;
    color: #000;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .ai-phone-mockup {
        max-width: 220px;
    }

    .ai-phone-mockup .phone-screen {
        top: 6.5%;
        left: 5%;
        right: 5%;
        bottom: 6%;
    }

    .ai-phone-mockup .phone-chat {
        padding: 10px 8px 14px;
        gap: 8px;
    }

    .ai-phone-mockup .chat-bubble {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Translation System Section */
.translation-system {
    padding: 100px 0;
    background: white;
    color: #1a1a1a;
}

.translation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.translation-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.translation-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #6b7280;
}

.translation-features {
    list-style: none;
}

.translation-features li {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    padding-left: 2.5rem;
    font-size: 1.05rem;
    color: #1a1a1a;
}

.translation-features li::before {
    content: "🌍";
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.translation-content .translation-stats {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-self: center;
}

.translation-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #000;
    color: #fff;
}

.contact .section-title,
.contact .contact-content,
.contact p {
    color: #fff;
}

.contact-content {
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-block;
    background: #FFC709;
    color: #000;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 199, 9, 0.3);
}

.contact-link:hover {
    transform: translateY(-2px);
}

.contact-link--whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.contact-link--whatsapp:hover {
    background: #20bd5a;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.contact-link--telegram {
    background: #0088cc;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

.contact-link--telegram:hover {
    background: #0077b5;
    box-shadow: 0 15px 35px rgba(0, 136, 204, 0.4);
}

.contact-link i {
    margin-right: 8px;
}

/* Footer */
.footer {
    background: #000;
    color: #FFC709;
    padding: 3rem 0 1.5rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: #FFC709;
    font-weight: 600;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-section a {
    color: #FFC709;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    color: #6b7280;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-header {
    background: linear-gradient(135deg, #FFC709, #e6b800);
    color: #000;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 2rem;
}

.slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.slide-content {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.slide-features {
    list-style: none;
}

.slide-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-left: 2rem;
}

.slide-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FFC709;
    font-weight: bold;
}

.slide-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.slide-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #FFC709;
}

.slide-btn {
    background: #FFC709;
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 199, 9, 0.3);
    background: #e6b800;
}

.slide-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .pricing-header-section {
        flex-direction: column;
        align-items: center;
    }

    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-content,
    .translation-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ai-visual {
        font-size: 6rem;
    }

    .translation-content .translation-stats,
    .translation-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .price-display .amount {
        font-size: 3rem;
    }

    .solution-card {
        padding: 1.5rem;
    }

    .details-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Скрытие секции "Для кого" на странице ресторанов */
body.page-restaurants .for-whom {
    display: none !important;
} 