/* Загальні стилі */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #f5a7c0;
    --dark-color: #333;
    --light-color: #f5f5f5;
    --white-color: #fff;
    --font-header: 'Montserrat', sans-serif;
    --font-text: 'Karla', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto;
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--dark-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 5rem 2rem;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--light-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-header);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.btn:hover:before {
    width: 100%;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
    pointer-events: none;
}

/* Хедер і навігація */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 60px;
    height: auto;
    margin-right: 1rem;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover:before,
.main-nav a.active:before {
    width: 100%;
}

/* Герой секція */
.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-seniors.webp') no-repeat center center/cover;
    color: var(--white-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.hero-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white-color);
}

.hero-section h2:after {
    background-color: var(--white-color);
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
    z-index: 1;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    min-width: 160px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--white-color);
}

.stat-card p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Про нас секція */
.about-section {
    background-color: var(--white-color);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content : center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.quote-box {
    background-color: var(--light-color);
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
    position: relative;
}

.quote-icon {
    fill: var(--primary-color);
    width: 30px;
    height: 30px;
    position: absolute;
    top: 15px;
    left: 15px;
    opacity: 0.2;
}

.quote-box p {
    margin-bottom: 0;
    padding-left: 30px;
    font-style: italic;
    font-weight: 600;
}

/* Програми секція */
.programs-section {
    background-color: var(--light-color);
}

.programs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.1);
}

.program-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--white-color);
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.program-card ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.program-card ul li {
    margin-bottom: 0.5rem;
}

.program-btn {
    margin-top: auto;
    padding: 10px 20px;
    align-self: flex-start;
}

/* Галерея секція */
.gallery-section {
    background-color: var(--white-color);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white-color);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Переваги секція */
.benefits-section {
    background-color: var(--light-color);
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.benefit-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(76, 175, 80, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: background-color 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background-color: var(--primary-color);
}

.benefit-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--primary-color);
    transition: fill 0.3s ease;
}

.benefit-card:hover .benefit-icon svg {
    fill: var(--white-color);
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.infographic {
    max-width: 800px;
    margin: 3rem auto 0;
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.infographic h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.infographic-content {
    display: flex;
    justify-content: center;
}

/* Порівняння секція */
.comparison-section {
    background-color: var(--white-color);
}

.table-container {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table th {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--light-color);
}

.comparison-table td:first-child {
    font-weight: 600;
}

/* Контактна секція */
.contact-section {
    background-color: var(--light-color);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(76, 175, 80, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.contact-card:hover .contact-icon {
    background-color: var(--primary-color);
}

.contact-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-color);
    transition: fill 0.3s ease;
}

.contact-card:hover .contact-icon svg {
    fill: var(--white-color);
}

.contact-form-container {
    flex: 2;
    min-width: 300px;
}

.contact-form {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-family: var(--font-text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.form-checkbox input {
    width: auto;
}

.form-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--dark-color);
}

/* Футер */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 4rem 2rem 1rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-item {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo-img {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-item h3,
.footer-item h4 {
    color: var(--white-color);
    margin-bottom: 1.2rem;
}

.footer-item ul {
    list-style: none;
}

.footer-item ul li {
    margin-bottom: 0.7rem;
}

.footer-item a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-item a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Сторінка "Дякуємо" */
.thankyou-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
}

.thankyou-content {
    max-width: 700px;
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.thankyou-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 auto 2rem;
}

.thankyou-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white-color);
}

/* Сторінки політик */
.policy-section {
    padding: 5rem 2rem;
}

.policy-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.policy-meta {
    font-size: 0.9rem;
    color: #777;
    margin-top: 0.5rem;
}

.policy-content {
    line-height: 1.8;
}

.policy-intro {
    margin-bottom: 2rem;
}

.policy-section h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.policy-item {
    margin-bottom: 1.5rem;
}

.policy-item h4 {
    margin-bottom: 1rem;
}

.policy-item ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.policy-item li {
    margin-bottom: 0.5rem;
}

.policy-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.back-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: var(--dark-color);
}

/* Унікальні стилі для сторінки умов */
.terms-section {
    background-color: var(--light-color);
}

.terms-header {
    background-color: rgba(76, 175, 80, 0.05);
    border-radius: 8px 8px 0 0;
    padding: 2rem;
}

.terms-content {
    padding: 0 1rem;
}

.custom-block {
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    background-color: var(--white-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.custom-list {
    list-style-type: circle;
    padding-left: 1.8rem;
}

.custom-list li {
    margin-bottom: 0.8rem;
}

/* Унікальні стилі для cookie-політики */
.cookies-policy {
    background-color: var(--white-color);
}

.cookie-header {
    background-color: rgba(76, 175, 80, 0.05);
    padding-top: 3rem;
}

.cookie-content {
    font-size: 1.05rem;
}

.cookie-explanation {
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.cookie-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cookie-type {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.cookie-example {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(76, 175, 80, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.browser-list {
    list-style-type: none;
    padding: 0;
}

.browser-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.browser-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Адаптивність */
@media screen and (max-width: 1024px) {
    html {
        font-size: 95%;
    }
    
    .hero-section h2 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .stat-card {
        min-width: 140px;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 90%;
    }
    
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    .main-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .programs-container,
    .benefits-container {
        gap: 1.5rem;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 85%;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .main-nav {
        width: 100%;
        overflow-x: auto;
    }
    
    .main-nav ul {
        width: min-content;
        padding-bottom: 0.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .about-content,
    .contact-info {
        gap: 1.5rem;
    }
    
    .program-card,
    .benefit-card,
    .contact-card {
        padding: 1.5rem;
    }
    
    .policy-container {
        padding: 1.5rem;
    }
    
    .cookie-types {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 375px) {
    html {
        font-size: 80%;
    }
    
    .logo {
        width: 50px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-section h2 {
        font-size: 1.6rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .thankyou-content,
    .contact-form {
        padding: 1.5rem;
    }
}