:root {
    --primary: #00b0a6;
    --primary-dark: #009089;
    --secondary: #003c39;
    --secondary-light: #0a4d4a;
    --accent: #e74c3c;
    --light: #f5f8fa;
    --text-dark: #333333;
    --text-light: #677788;
    --text-white: #ffffff;
    --border: #e7eaf3;
    --success: #2ecc71;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--secondary);
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.2em;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 176, 166, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 176, 166, 0.4);
    color: #fff;
}

.btn-light {
    background-color: #fff;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-block {
    display: block;
    width: 100%;
}

[lang="uk"]:not(html), 
[lang="en"]:not(html),
[lang="pl"]:not(html) {
    display: none;
}

html[lang="uk"] [lang="uk"],
html[lang="en"] [lang="en"],
html[lang="pl"] [lang="pl"] {
    display: block;
}

.section-header h2[lang="uk"],
.section-header h2[lang="en"],
.section-header h2[lang="pl"] {
    display: none !important;
}

html[lang="uk"] .section-header h2[lang="uk"],
html[lang="en"] .section-header h2[lang="en"],
html[lang="pl"] .section-header h2[lang="pl"] {
    display: block !important;
}

html[lang="uk"] a[lang="uk"].btn,
html[lang="en"] a[lang="en"].btn,
html[lang="pl"] a[lang="pl"].btn {
    display: inline-block;
}

.feature-list li[lang="uk"],
.feature-list li[lang="en"],
.feature-list li[lang="pl"] {
    display: none !important;
}

html[lang="uk"] .feature-list li[lang="uk"],
html[lang="en"] .feature-list li[lang="en"],
html[lang="pl"] .feature-list li[lang="pl"] {
    display: flex !important;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin: 0 15px;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover:after {
    width: 100%;
}

.language-switch {
    display: flex;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border);
    padding: 5px 10px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 3px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s;
}

.lang-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.lang-btn:hover:not(.active) {
    border-color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    display: inline-block;
    color: var(--secondary);     
}

.cooprin-text {
    color: var(--secondary); 
}

.it-text {
    color: var(--primary); 
}

.hero {
    padding: 180px 0 100px;
    background: var(--secondary);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,60,57,0.95) 0%, rgba(0,176,166,0.85) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    width: 55%;
}

.hero h1 {
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    width: 40%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.services {
    padding: 100px 0;
    background-color: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header.light h2, .section-header.light p {
    color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-card p {
    color: var(--text-light);
}

.about {
    padding: 100px 0;
    background-color: var(--secondary);
    color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    width: 100%;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.feature-list {
    margin-bottom: 30px;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.2rem;
}



.contact {
    padding: 100px 0;
    background-color: var(--light);
}

.contact-container {
    display: flex;
    gap: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-info {
    width: 35%;
    background-color: var(--primary);
    color: #fff;
    padding: 50px;
}

.contact-info h3 {
    color: #fff;
    margin-bottom: 30px;
    position: relative;
}

.contact-info h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #fff;
    bottom: -10px;
    left: 0;
}

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

.contact-detail i {
    font-size: 1.5rem;
    margin-right: 15px;
}

.contact-detail p {
    margin-bottom: 0;
}

.contact-form {
    width: 65%;
    background-color: #fff;
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    width: 50%;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 176, 166, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

footer {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 20px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-col {
    width: 22%;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-col p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    bottom: -8px;
    left: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-phone {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    color: var(--accent);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin-bottom: 0;
    color: var(--secondary);
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.success-message {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border);
    text-align: center;
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content, .hero-image {
        width: 100%;
    }
    
    .hero-image {
        margin-top: 50px;
        order: 2;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        width: 100%;
    }
    
    .footer-main {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .footer-col {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s;
        z-index: 1001;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        margin: 15px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    .footer-col {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 150px 0 70px;
    }
    
    .services, .about, .contact {
        padding: 70px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
}

.iti {
    width: 100%;
}

.iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/img/flags@2x.png");
    }
}

.error-message {
    color: #d9534f;
    font-size: 0.85em;
    margin-top: 5px;
    display: none;
}

input.error + .error-message,
input.error ~ .error-message {
    display: block;
}

.form-control.error {
    border-color: #d9534f;
}