MyTelmi.html/css/styles.css
2025-04-13 11:54:45 +00:00

570 lines
11 KiB
CSS

: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;
max-width: 800px;
padding: 0 20px;
}
.header-content h1 {
font-size: 2.8rem;
margin-bottom: 20px;
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 Background Section */
.video-section {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
}
.video-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.video-container iframe {
width: 100vw;
height: 56.25vw;
min-height: 100%;
min-width: 100%;
object-fit: cover;
transform: translate(-50%, -50%);
position: absolute;
top: 50%;
left: 50%;
}
.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: 80px 0;
}
.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: linear-gradient(135deg, var(--blue), #2980b9);
color: white;
}
.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.15);
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 img {
width: 100%;
height: auto;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.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;
}
/* Footer */
footer {
background-color: var(--dark);
color: white;
padding: 30px 0;
text-align: center;
}
/* 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 h1 {
font-size: 2rem;
}
.header-content p {
font-size: 1rem;
}
.cta-buttons {
flex-direction: column;
align-items: center;
}
.btn {
width: 100%;
max-width: 300px;
margin-bottom: 15px;
}
.video-section {
height: auto;
min-height: 70vh;
}
.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;
}
}