:root {
    --primary: #4CAF50;
    --secondary: #2196F3;
    --dark: #333;
    --light: #f9f9f9;
    --accent: #FF5722;
    --emerald: #1abc9c;
    --orange: #f39c12;
    --blue: #3498db;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    color: var(--dark);
    line-height: 1.6;
    padding-top: 90px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
}
.nav-logo:hover {
    opacity: 0.8;
}
.nav-links {
    display: flex;
    gap: 25px;
}
.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}
.nav-link:hover {
    color: var(--primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header with Background Image */
header {
    background-image: url('https://i0.wp.com/mytelmi.es/wp-content/uploads/2023/09/banner-telmi-smart-wach.png');
    background-size: cover;
    background-position: center;
    height: calc(65vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}
header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}
.header-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}
.header-content h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    margin-top: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    
}
.header-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-secondary {
    background-color: var(--secondary);
    color: white;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Video Section */
.video-section {
    position: relative;
    width: 100%;
}

/* Video Block */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    margin: 40px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.video-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 40px 0;
}
.video-content .container {
    max-width: 1000px;
}

/* Section Styling */
.section {
    padding: 20px 0;
    position: relative;
    background-size: cover;
    background-position: center;
    
}
.section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.section > * {
    position: relative;
    z-index: 1;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2rem;
}

/* Features Cards */
.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.feature-card {
    flex: 1;
    min-width: 250px;
    background: rgba(255,255,255,0.15);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}
.feature-card:hover {
    transform: translateY(-10px);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Who is it for - изумрудный градиент */
.who-section {
    background: white;
}
.user-types {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.user-card {
    flex: 1;
    min-width: 200px;
    background: rgba(255,255,255,0.15);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}
.user-card:hover {
    transform: translateY(-5px);
}
.user-emoji {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Why Section - оранжево-желтый градиент */
.why-section {
    background: #fff;
}
.why-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}
.scroll-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}
.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }
.cards-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}
.cards-wrapper::-webkit-scrollbar { 
    display: none;
}
.benefit-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-5px);
}

/* Testimonials - голубой градиент */
.reviews-section {
    
    background-image: url('../img/19007.jpg');
}
.reviews-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}
.review-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}
.review-scroll-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}
.review-scroll-btn.left { left: 0; }
.review-scroll-btn.right { right: 0; }
.reviews-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}
.reviews-wrapper::-webkit-scrollbar { 
    display: none;
}
.review-card {
    flex: 0 0 calc(50% - 15px);
    scroll-snap-align: start;
    background: rgba(255,255,255,0.65);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}
.review-card:hover {
    transform: translateY(-5px);
}
.user-avatar-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial-author {
    margin-top: 15px;
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background-color: white;
    text-align: center;
    padding: 60px 0;
}
.cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}
.cta-image {
    flex: 1;
    max-width: 400px;
}
.cta-image .slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.cta-image .slide {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.cta-image .slide.active {
    opacity: 1;
}

/* Social media in CTA section */
.cta-content .social-embeds {
    flex: 1;
    max-width: 300px;
    padding: 20px;
}

.cta-content .embeds-container {
    margin-top: 20px;
}

.cta-content .section-title {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.modal-image-container {
    position: relative;
    max-width: 100%;
    max-height: 80vh;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.7);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-nav:hover {
    background: rgba(0,0,0,0.1);
}

.modal-nav.prev {
    left: 10px;
}

.modal-nav.next {
    right: 10px;
}

.instagram-embed {
    padding: 40px 0;
    background: #f8f8f8;
    text-align: center;
}

.instagram-embed .container {
    max-width: 600px;
    margin: 0 auto;
}

.instagram-media {
    margin: 0 auto !important;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: black;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: none;
    border: none;
    padding: 5px;
}

.close-modal:hover {
    transform: scale(1.2);
}
.cta-text {
    flex: 1;
    text-align: left;
}
.cta-section h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}
.price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 20px 0;
}
.discount-badge {
    background-color: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: bold;
}
.urgency {
    margin-top: 20px;
    font-style: italic;
}
.payment-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.payment-container iframe {
    border: none;
    width: 100%;
    height: 50px;
}

/* Disease/Condition Grid - Telmi Help Cards */
.disease-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.disease-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.disease-card:hover {
    transform: translateY(-5px);
}

.disease-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.1);
    font-size: 30px;
    line-height: 1;
    padding: 10px;
}

.disease-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.help-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #555;
}

.features-text {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

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

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

/* Footer */
footer {
    background-color:#023d60;
    color: white;
    padding: 30px 0;
    text-align: center;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}
.social-link {
    color: white;
    transition: color 0.3s ease;
}
.social-link:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .benefit-card {
        flex: 0 0 calc(50% - 15px);
    }
    .review-card {
        flex: 0 0 calc(100% - 15px);
    }
    .cta-content {
        flex-direction: column;
        gap: 30px;
    }
    .cta-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    .nav-menu {
        padding: 5px 0;
    }
    .nav-logo {
        height: 70px;
    }
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    .nav-links.active {
        transform: translateY(0);
    }
    .mobile-menu-btn {
        display: block;
    }
    header {
        height: calc(50vh - 70px);
    }
    .header-content {
        padding: 0 15px;
    }
    .header-content h1 {
        margin-top: 40px;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    .header-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }
    .video-container {
        margin: 20px 0;
    }
    .video-content .container {
        padding: 60px 20px;
    }
    .features {
        flex-direction: column;
    }
    .why-container, .reviews-container {
        padding: 0 20px;
    }
    .scroll-btn, .review-scroll-btn {
        display: none;
    }
    .benefit-card {
        flex: 0 0 calc(100% - 15px);
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    .section {
        padding: 60px 0;
    }
    .disease-table, .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
    }
    .disease-table th,
    .disease-table td,
    .table th,
    .table td {
        min-width: 150px;
    }
    .cta-image {
        width: 100%;
        max-width: none;
    }
    .cta-image .slider-container {
        height: 300px;
    }
    .cta-image .slide {
        object-fit: cover;
    }
}

.table {
	width: 100%;
	border: none;
	margin-bottom: 20px;
	border-collapse: separate;
}
.table thead th {
	font-weight: bold;
	text-align: left;
	border: none;
	padding: 10px 15px;
	background: #EDEDED;
	font-size: 14px;
	border-top: 1px solid #ddd;
}
.table tr th:first-child, .table tr td:first-child {
	border-left: 1px solid #ddd;
}
.table tr th:last-child, .table tr td:last-child {
	border-right: 1px solid #ddd;
}
.table thead tr th:first-child {
	border-radius: 20px 0 0 0;
}
.table thead tr th:last-child {
	border-radius: 0 20px 0 0;
}
.table tbody td {
	text-align: left;
	border: none;
	padding: 10px 15px;
	font-size: 14px;
	vertical-align: top;
}
.table tbody tr:nth-child(even) {
	background: #F8F8F8;
}
.table tbody tr:last-child td{
	border-bottom: 1px solid #ddd;
}

@media (max-width: 768px) {
    .table {
        font-size: 1rem;
    }
    .table th,
    .table td {
        padding: 8px 10px;
    }
}
.table tbody tr:last-child td:first-child {
	border-radius: 0 0 0 20px;
}
.table tbody tr:last-child td:last-child {
	border-radius: 0 0 20px 0;
}
