:root {
    --primary: #2C6E92;
    --primary-dark: #1A506F;
    --primary-light: #87CEEB;
    --accent: #4CAF50;
    --light: #F0F8FF;
    --medium: #C4D8E2;
    --dark: #333;
    --gray: #777;
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.logo .icon {
    background-color: var(--primary-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo .icon i {
    color: var(--primary-dark);
    font-size: 21px;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 13px 29px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: #3e8e41;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-color: var(--primary);
    padding: 96px 0;
    color: var(--white);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 48px;
}

.hero-text {
    flex: 1;
}

.hero h2 {
    font-size: 51px;
    margin-bottom: 19px;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 19px;
    margin-bottom: 32px;
    max-width: 600px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img-container {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 350px;
}

.hero-img-container img{
      width: 100%;
    height: 100%;
    object-fit: cover;
}
/* General Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--gray);
    font-size: 18px;
    max-width: 700px;
    margin: 16px auto 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.service-icon i {
    font-size: 32px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 24px;
}

/* About Section */
.about {
    background-color: var(--light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 48px;
}

.about-img {
    flex: 1;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 35px;
    color: var(--primary);
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 24px;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-container {
    display: flex;
    gap: 64px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 35px;
    color: var(--primary);
    margin-bottom: 24px;
}

.contact-methods {
    margin-top: 32px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 19px;
    margin-bottom: 29px;
}

.contact-icon {
    background-color: var(--primary-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    color: var(--primary);
    font-size: 22px;
}

.contact-details h4 {
    font-size: 19px;
    margin-bottom: 5px;
}

.contact-details p, .contact-details a {
    color: var(--dark);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 24px;
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--medium);
    border-radius: 4px;
    font-size: 16px;
}

#nachricht {
    resize: none;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 64px 0 32px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.footer-col h4 {
    font-size: 22px;
    margin-bottom: 24px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-light);
}

.footer-col p {
    margin-bottom: 16px;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 13px;
}

.footer-links a {
    text-decoration: none;
    color: var(--white);
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 48px;
    margin-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 32px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: fadeIn 0.3s;
}

.modal-content h3 {
    margin-top: 0;
}

.modal-content ul {
    list-style: none;
    padding: 0;
}

.modal-content li {
    margin-bottom: 16px;
    line-height: 1.5;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}


.icon{
     width: 32px;
  height: 32px;
  fill: currentColor;
}

.icon.form{
    width: 60%;
    height: 60%;
    color: #1A506F;
}

.icon.message{
    color:#FFFFFF;
}

.icon.services{
    width: 70%;
    height: 70%;
   
}

.icon.header{
    width: 60%;
    height: 60%;
    color: #1A506F;
}


@media (max-width: 992px) {
    .hero-content, .about-content, .contact-container {
        flex-direction: column;
    }
        .hero-img-container{
        display: none;
        opacity: 0;
    }

     .hero h2 {
        font-size: 40px;
        width: 600px;
    }
}

@media (max-width: 768px) {
  .container {
    max-width: 768px; 
    padding: 0 32px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    box-shadow: var(--shadow);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    padding: 13px 24px;
    text-align: center;
  }
  .mobile-menu-btn {
    display: block;
  }

  .hero h2 {
    font-size: 40px;
    width: auto;
  }
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--accent);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
}

/* Modal Buttons */
.modal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    text-align: center;
}
.whatsapp-btn { background-color: #25D366; }
.telegram-btn { background-color: #0088cc; }

/* --- СТИЛІ ДЛЯ ПОВІДОМЛЕНЬ ФОРМИ --- */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--accent);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    transform: translateX(120%);
    transition: transform 0.5s ease-in-out;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background-color: #e74c3c;
}

body.legal-page {
    background-color: var(--light);
    padding: 20px;
}

.legal-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.legal-container h1 {
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--light);
    padding-bottom: 10px;
}

.legal-container h2 {
    color: var(--primary-dark);
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-container h3 {
    color: var(--dark);
    font-size: 21px;
    margin-top: 32px;
    margin-bottom: 8px;
}

.legal-container p, 
.legal-container ul {
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-container ul {
    padding-left: 20px;
}

.legal-container a {
    color: var(--primary);
    text-decoration: none;
}

.legal-container a:hover {
    text-decoration: underline;
}

.home-button {
    display: inline-block;
    margin-top: 32px;
    padding: 10px 20px;
    background-color: var(--accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: #3e8e41;
}

@media (max-width: 600px) {
    body.legal-page {
        padding: 10px;
    }
    .legal-container {
        padding: 20px;
    }
    .legal-container h1 { font-size: 29px; }
    .legal-container h2 { font-size: 22px; }
}
