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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --dark-gray: #495057;
    --success: #27ae60;
    --font-size-base: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: var(--font-size-base);
}

body.font-small {
    --font-size-base: 14px;
}

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

.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.font-decrease-btn {
    background: var(--light-gray);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.font-decrease-btn:hover {
    background: var(--gray);
    color: var(--white);
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    padding: 20px;
}

.hero-title {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2em;
    color: var(--gray);
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #2980b9;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.features-section,
.services-section,
.poll-section,
.cta-section {
    padding: 80px 20px;
}

.features-section {
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 50px;
}

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

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.services-wrapper {
    display: grid;
    gap: 40px;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-item:nth-child(even) {
    direction: rtl;
}

.service-item:nth-child(even) > * {
    direction: ltr;
}

.service-item img {
    width: 100%;
    border-radius: 8px;
}

.service-content h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.poll-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.poll-question {
    font-size: 1.5em;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.poll-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.poll-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.poll-option:hover {
    border-color: var(--secondary-color);
    background: var(--light-bg);
}

.poll-option input {
    margin-right: 10px;
}

.poll-submit-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

.poll-submit-btn:hover {
    background: #2980b9;
}

.poll-results {
    text-align: center;
    padding: 30px;
}

.poll-thanks {
    font-size: 1.3em;
    color: var(--success);
}

.cta-section {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button-secondary {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button-secondary:hover {
    background: var(--light-gray);
}

.main-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.3em;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-section p {
    color: var(--light-gray);
    margin-bottom: 10px;
}

.registration-number {
    margin-top: 20px;
    font-weight: 600;
}

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

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    padding: 30px 20px;
    z-index: 2000;
    display: none;
}

.cookie-consent.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.cookie-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

.accept-btn:hover {
    background: #229954;
}

.customize-btn {
    background: var(--secondary-color);
    color: var(--white);
}

.customize-btn:hover {
    background: #2980b9;
}

.decline-btn {
    background: var(--light-gray);
    color: var(--text-color);
}

.decline-btn:hover {
    background: var(--gray);
    color: var(--white);
}

.cookie-policy-link {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-header-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 20px 60px;
    text-align: center;
}

.page-main-title {
    font-size: 3em;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1.3em;
    opacity: 0.9;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 60px 20px;
}

.post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.post-image-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-card-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: var(--gray);
}

.post-category {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 3px;
}

.post-card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.post-excerpt {
    color: var(--gray);
    margin-bottom: 20px;
}

.read-more-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more-link:hover {
    color: #2980b9;
}

.about-story-section {
    padding: 80px 20px;
}

.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.team-section {
    padding: 80px 20px;
    background: var(--light-bg);
}

.team-intro {
    text-align: center;
    font-size: 1.2em;
    color: var(--gray);
    margin-bottom: 50px;
}

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

.team-member-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.team-member-info {
    padding: 25px;
}

.team-member-info h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.team-member-position {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.team-member-bio {
    color: var(--gray);
    line-height: 1.6;
}

.values-section {
    padding: 80px 20px;
}

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

.value-item {
    text-align: center;
}

.value-item i {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-section {
    padding: 80px 20px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-column h2,
.contact-form-column h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 30px;
}

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

.contact-icon {
    font-size: 1.8em;
    color: var(--secondary-color);
    width: 50px;
}

.contact-details h3 {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-details a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

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

.submit-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #2980b9;
}

.map-section {
    padding: 80px 20px;
    background: var(--light-bg);
}

.map-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
}

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

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2em;
}

.modal-close-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 20px;
    transition: background 0.3s;
}

.modal-close-btn:hover {
    background: #2980b9;
}

.post-article {
    background: var(--white);
}

.post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.post-header {
    margin-bottom: 50px;
}

.post-meta-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.post-title {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.3;
}

.post-featured-image {
    margin-bottom: 40px;
}

.post-featured-image img {
    width: 100%;
    border-radius: 10px;
}

.post-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
}

.lead-paragraph {
    font-size: 1.3em;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.post-content h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin: 40px 0 20px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-tags {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tag {
    background: var(--light-gray);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.back-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container-header {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hero-section,
    .service-item,
    .about-content-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2em;
    }

    .section-title {
        font-size: 2em;
    }

    .page-main-title {
        font-size: 2em;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .post-footer {
        flex-direction: column;
        gap: 20px;
    }
}