:root {
    --primary-color: #2B3467;
    --secondary-color: #EB455F;
    --background-light: rgba(252, 247, 247, 0.3); /* або 0.9 для більшої прозорості */
    --background-dark: #BAD7E9;
    --text-color: #2B3467;
    --container-width: 1200px;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header styles */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--primary-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.logo {
    height: 120px;
    padding: 1rem;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

/* Hero section */
.hero {
    padding: 12rem 0 8rem;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg...>');
    opacity: 0.1;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .slogan {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 3rem;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(235, 69, 95, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(235, 69, 95, 0.4);
}

/* Services section */
.services {
    padding: 8rem 0;
    background: white;
}

.services h2 {
    font-size: 3rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    justify-content: center;
}

.service-card {
    background: white;
    padding: 2rem;
    width: 320px;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(43, 52, 103, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(43, 52, 103, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-card input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    border: 1px solid var(--background-dark);
    border-radius: 0.7rem;
    transition: border-color 0.3s ease;
}

.service-card input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.service-card button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.7rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card button:hover {
    background: #d43751;
    box-shadow: 0 5px 15px rgba(235, 69, 95, 0.3);
}

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

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

/* Tools section */
.tools {
    padding: 6rem 0;
    background: var(--background-dark);
}

.tools h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(43, 52, 103, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.tool-button {
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(235, 69, 95, 0.3);
}

/* Contact section */
.contact {
    padding: 8rem 0;
  background: rgba(255, 255, 255, 0.6); /* напівпрозорий білий */
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(43, 52, 103, 0.1);
}

#contact-form {
    display: grid;
    gap: 1.5rem;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--background-dark);
    border-radius: 0.5rem;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.submit-button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(235, 69, 95, 0.3);
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 2rem 0;
    text-align: center;

}

/* Стилі для статусу форми */
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.form-status .loading {
    color: var(--primary-color);
}

.form-status .success {
    color: #22c55e;
    background: #f0fdf4;
    border: 1px solid #22c55e;
}

.form-status .error {
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #ef4444;
}

/* Responsive design */
@media (max-width: 1200px) {
    .logo {
        height: 150px;
    }

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

@media (max-width: 768px) {
    .logo {
        height: 120px;
    }

    .nav {
        padding: 1rem;
    }

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

    .slogan {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 100px;
    }

    .nav-menu {
        gap: 1rem;
    }

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


/* Пакети з іконками */
.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    display: block;
}

/* Контакти */
.contact-info {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Футер */
.footer {
    background-color: #2B3467;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.95rem;
    
}



/* Градієнт для hero */
.hero {
  background: linear-gradient(120deg, #dff1ff, #fef7e0);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Хвиля знизу Hero */
.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -2rem;
}

/* Анімація кнопки */
.cta-button {
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(235, 69, 95, 0.4);
}


#particles-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
  pointer-events: none;
}

.hero {
  position: relative;
  overflow: hidden;
}

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


#particles-bg {
  z-index: 0; /* Це помістить фон під всі блоки */
}

section, .container {
  position: relative;
  z-index: 1; /* Це гарантує, що блоки будуть поверх анімації */
}


.hero {
  position: relative;
  overflow: hidden;
}

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


/* === Enhancements by ChatGPT (do not remove existing counters/keys) === */
.badge {
  display:inline-block;
  margin-left: .6rem;
  padding: .25rem .6rem;
  border-radius: .75rem;
  font-size: .8rem;
  background: #e6f4ff;
  color: #1a73e8;
  border: 1px solid rgba(26,115,232,.2);
}
.badge-popular{
  display:inline-block;
  margin-left:.5rem;
  padding:.15rem .5rem;
  font-size:.75rem;
  border-radius:.5rem;
  background:#fff3cd;
  color:#8a6d3b;
  border:1px solid #ffe69c;
}

.ai-preview{
  display:block;
  max-width:960px;
  width:100%;
  margin:1.5rem auto 0;
  border-radius:1rem;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

@media (max-width: 768px){
  .cta-button{font-size:1.1rem;padding:1rem 2rem;}
  .services-grid{grid-template-columns:1fr;gap:1.5rem;}
  .service-card{width:100%;}
}
