/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #E5E5E5;
    background-color: #2C3E50;
    font-weight: 400;
}



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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: #4ECDC4;
    color: #2C3E50;
}

.btn-primary:hover {
    background-color: #45B7B8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #4ECDC4;
    border: 2px solid #4ECDC4;
}

.btn-secondary:hover {
    background-color: #4ECDC4;
    color: #2C3E50;
    transform: translateY(-2px);
}

/* Logo and branding */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #E5E5E5;
    text-decoration: none;
}

.logo {
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 50%, #2C3E50 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    order: 2;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #E5E5E5;
    line-height: 1.1;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #BDC3C7;
    margin-bottom: 2rem;
    line-height: 1.5;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-visual {
    order: 1;
    width: 100%;
    max-width: 600px;
}

.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(78, 205, 196, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.why-image, .brief-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(78, 205, 196, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Section styles */
section {
    padding: 80px 0;
    text-align: center;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    color: #E5E5E5;
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #BDC3C7;
    line-height: 1.6;
}

/* Center alignment for main content blocks */
.about-grid,
.services-grid,
.process-steps,
.products-grid,
.library-grid,
.testimonials-grid {
    text-align: center;
}

.why-content,
.brief-content {
    text-align: left;
}

/* Contact and footer maintain their original alignment */
.contact,
.footer {
    text-align: left;
}

#orderForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Поля вводу, select, textarea */
#orderForm input,
#orderForm select,
#orderForm textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

/* Фокус */
#orderForm input:focus,
#orderForm select:focus,
#orderForm textarea:focus {
  border-color: #6a5acd;
  box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.15);
}

/* Текстове поле */
#orderForm textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

/* Кнопка */
#orderForm .btn.btn-primary {
  background: #6a5acd;
  color: #fff;
  border: none;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

/* Ховер і актив */
#orderForm .btn.btn-primary:hover {
  background: #5a4cc7;
  transform: translateY(-1px);
}
#orderForm .btn.btn-primary:active {
  transform: translateY(1px);
}

/* Інформаційний блок */
#packageInfo {
  background: #f8f8ff;
  border: 1px solid #e0e0ff;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1;
}

/* Адаптив */
@media (max-width: 480px) {
  #orderForm input,
  #orderForm select,
  #orderForm textarea {
    font-size: 0.95rem;
    padding: 0.75rem 0.9rem;
  }

  #orderForm .btn.btn-primary {
    font-size: 0.95rem;
    padding: 0.8rem;
  }
}

/* About section */
.about {
    background-color: #34495E;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.about-item {
    text-align: center;
    padding: 30px;
    background: rgba(78, 205, 196, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(78, 205, 196, 0.1);
}

.about-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.about-item h3 {
    color: #E5E5E5;
    margin-bottom: 15px;
}

.about-item p {
    color: #BDC3C7;
    margin: 0;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(78, 205, 196, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(78, 205, 196, 0.3);
}

.service-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.service-card h3 {
    color: #E5E5E5;
    margin-bottom: 15px;
}

.service-card p {
    color: #BDC3C7;
    margin: 0;
}

/* How it works section */
.how-it-works {
    background-color: #34495E;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ECDC4 0%, #45B7B8 100%);
    color: #2C3E50;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 {
    color: #E5E5E5;
    margin-bottom: 15px;
}

.step p {
    color: #BDC3C7;
    margin: 0;
}

/* Products section */
.products {
    background-color: #2C3E50;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 2px solid rgba(78, 205, 196, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card.featured {
    border-color: #4ECDC4;
    background: rgba(78, 205, 196, 0.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #FF6B6B;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-card h3 {
    color: #E5E5E5;
    margin-bottom: 10px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #4ECDC4;
    margin-bottom: 25px;
}

.product-card ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.product-card li {
    color: #BDC3C7;
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.product-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ECDC4;
    font-weight: bold;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #4ECDC4;
}

/* Why choose section */
.why-choose {
    background-color: #34495E;
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-item {
    margin-bottom: 30px;
}

.why-item h3 {
    color: #E5E5E5;
    margin-bottom: 10px;
}

.why-item p {
    color: #BDC3C7;
    margin: 0;
}

/* Testimonials */
.testimonials {
    background-color: #2C3E50;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(78, 205, 196, 0.1);
}

.testimonial p {
    font-size: 1.1rem;
    color: #BDC3C7;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-placeholder {
    flex-shrink: 0;
}

.testimonial-author strong {
    color: #E5E5E5;
    display: block;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #95A5A6;
    font-size: 0.9rem;
}

/* Brief builder section */
.brief-builder {
    background-color: #34495E;
}

.brief-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.brief-features {
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #BDC3C7;
}

/* Library section */
.library {
    background-color: #2C3E50;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.library-item {
    text-align: center;
    padding: 40px 20px;
}

.library-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.library-item h3 {
    color: #E5E5E5;
    margin-bottom: 15px;
}

.library-item p {
    color: #BDC3C7;
    margin: 0;
}

/* Contact section */
.contact {
    background-color: #34495E;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    color: #4ECDC4;
    margin-bottom: 5px;
}

.contact-item p {
    color: #BDC3C7;
    margin: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(78, 205, 196, 0.1);
}

.contact-form h3 {
    color: #E5E5E5;
    margin-bottom: 25px;
    text-align: center;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: #E5E5E5;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4ECDC4;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #95A5A6;
}

.contact-form button {
    width: 100%;
}

/* Footer */
.footer {
    background-color: #1A252F;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(78, 205, 196, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
}

.footer-brand p {
    color: #95A5A6;
    margin-top: 20px;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex: 2;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 150px;
}

.footer-column h4 {
    color: #E5E5E5;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #BDC3C7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: #4ECDC4;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(78, 205, 196, 0.1);
    color: #95A5A6;
    font-size: 0.9rem;
}

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

.modal-content {
    background-color: #34495E;
    margin: 5% auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.close {
    color: #95A5A6;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.close:hover {
    color: #4ECDC4;
}

.modal h2 {
    color: #E5E5E5;
    margin-bottom: 25px;
}

#packageInfo {
    background: rgba(78, 205, 196, 0.05);
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #4ECDC4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .why-content,
    .brief-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .products-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-links {
        gap: 25px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 30px;
    }
}