/* Загальні стилі */
:root {
    --primary-color: #1a5276;
    --secondary-color: #2980b9;
    --accent-color: #3498db;
    --light-color: #ebf5fb;
    --dark-color: #0c2d4d;
    --text-color: #2c3e50;
    --light-text: #ecf0f1;
    --bg-color: #f7f9fa;
    --border-color: #d6e9f8;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

section {
    padding: 60px 0;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-3d {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: var(--light-text);
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 0 var(--dark-color), 0 8px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-3d:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 0 var(--dark-color), 0 6px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
    color: var(--light-text);
}

.btn-3d:active {
    box-shadow: 0 1px 0 var(--dark-color), 0 2px 3px rgba(0, 0, 0, 0.2);
    transform: translateY(5px);
}

.btn-center {
    text-align: center;
    margin-top: 30px;
}

/* Хедер і навігація */
header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

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

.navbar {
    display: flex;
}

.navbar li {
    margin-left: 25px;
}

.navbar a {
    color: var(--primary-color);
    font-weight: 500;
    padding: 10px;
    border-radius: var(--border-radius);
}

.navbar a:hover, .navbar a.active {
    color: var(--light-text);
    background-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero секція */
.hero {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--bg-color) 100%);
    padding: 80px 0;
}

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

.hero-content {
    flex: 0 0 50%;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.hero-image {
    flex: 0 0 45%;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Секція історії */
.story {
    background-color: var(--light-color);
}

.story h2 {
    text-align: center;
    margin-bottom: 30px;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

/* Секція послуг */
.services-preview {
    background-color: var(--bg-color);
}

.services-preview h2 {
    text-align: center;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.service-card {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Секція блогу */
.blog-preview {
    background-color: var(--light-color);
}

.blog-preview h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.post-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.post-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    font-weight: 500;
    margin-top: 10px;
    position: relative;
    padding-right: 20px;
}

.read-more::after {
    content: "→";
    position: absolute;
    right: 0;
    transition: var(--transition);
}

.read-more:hover::after {
    right: -5px;
}

/* Секція відгуків */
.testimonials {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 80px 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--light-text);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    width: 100%;
    max-width: 380px;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-author {
    text-align: right;
}

/* Секція контактів */
.contact-preview {
    background-color: var(--light-color);
    padding: 60px 0;
}

.contact-preview h2 {
    text-align: center;
    margin-bottom: 40px;
}

.contact-info {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-button {
    text-align: center;
    margin-top: 20px;
}

/* Футер */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-links h3, .footer-social h3 {
    color: var(--light-text);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light-text);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

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

/* Кукі-повідомлення */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--light-color);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: none;
    z-index: 9999;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    flex: 1;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn.accept {
    background-color: var(--success-color);
    color: white;
    border: none;
}

.cookie-btn.customize {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.cookie-btn.decline {
    background-color: #f1f1f1;
    color: #333;
    border: none;
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

/* Сторінка послуг */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text);
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--light-text);
    margin-bottom: 10px;
}

.services-content {
    padding: 50px 0;
}

.services-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.service-item {
    display: flex;
    margin-bottom: 40px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.service-item .service-icon {
    flex: 0 0 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
}

.service-item .service-content {
    flex: 1;
    padding: 30px;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.service-content ul li {
    list-style: disc;
    margin-bottom: 10px;
}

.price-section {
    max-width: 800px;
    margin: 50px auto;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.price-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.price-info p {
    text-align: center;
    margin-bottom: 20px;
}

.price-list {
    margin-bottom: 20px;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.price-tag {
    font-weight: bold;
    color: var(--primary-color);
}

.call-to-action {
    text-align: center;
    padding: 40px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 50px;
}

/* Сторінка блогу */
.blog-content {
    padding: 50px 0;
}

/* Сторінка Про нас */
.about-content {
    padding: 50px 0;
}

.about-intro {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-history {
    max-width: 800px;
    margin: 0 auto 50px;
}

.about-history h2 {
    text-align: center;
    margin-bottom: 20px;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.team-section > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.team-member {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding-bottom: 20px;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.team-member img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.team-member h3, .team-member p {
    padding: 0 20px;
    margin-bottom: 10px;
}

.values-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.value-item {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.value-icon {
    margin: 0 auto 20px;
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.achievements-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.achievement-item {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.achievement-text {
    font-size: 1.1rem;
}

/* Сторінка контактів */
.contact-content {
    padding: 50px 0;
}

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

.contact-info-card, .contact-form-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-form h2 {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-submit {
    text-align: center;
}

.map-section {
    margin-top: 50px;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.social-contact {
    margin: 30px 0;
}

.social-contact h3 {
    margin-bottom: 15px;
}

.registration-info {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Модальне вікно */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    max-width: 500px;
    margin: 15% auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
}

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

.success-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    background-color: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-body h2 {
    margin-bottom: 15px;
}

.close-btn {
    margin-top: 20px;
}

/* Адаптивний дизайн */
@media screen and (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .about-intro {
        flex-direction: column;
    }
    
    .service-item, .service-item:nth-child(odd) {
        flex-direction: column;
    }
    
    .service-item .service-icon {
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-content, .hero-image {
        flex: 0 0 100%;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--light-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-200%);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .navbar.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .navbar li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
}
