/* Базові стилі */
:root {
    --primary-color: #2E7D32; /* зелений */
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary-color: #FF8F00; /* оранжевий */
    --secondary-light: #FFB74D;
    --text-dark: #212121;
    --text-medium: #424242;
    --text-light: #757575;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PT Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'PT Serif', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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: 3px;
    background-color: var(--primary-color);
    margin: 0.8rem auto 0;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

.bg-light {
    background-color: var(--background-light);
}

/* Хвилясті розділювачі секцій */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider.inverted {
    transform: rotate(0);
    top: 0;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'PT Sans', sans-serif;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover:before {
    width: 300px;
    height: 300px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.3);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.4);
}

.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);
    transform: translateY(-2px);
}

/* Хедер та навігація */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-family: 'PT Serif', serif;
    font-weight: 700;
    font-size: 1.3rem;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-color);
    transform: scale(1.03);
}

.logo-svg {
    width: 40px;
    height: 40px;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover:after {
    width: 100%;
}

.main-nav a:hover .nav-icon {
    transform: translateY(-3px);
}

.nav-icon {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

/* Секція героя */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 7rem 0 0;
    overflow: hidden;
    background-color: var(--primary-dark);
    background-image: url('images/hero-banner.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(46, 125, 50, 0.6) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
    margin-left: 2rem;
    animation: fadeInUp 1.2s ease;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Про нас секція */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Програми */
.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.program-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.program-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-light) 0%, transparent 100%);
    opacity: 0.1;
    transition: height 0.5s ease;
    z-index: 0;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.program-card:hover:before {
    height: 100%;
}

.program-icon {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.program-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
    position: relative;
    z-index: 1;
}

.program-card p {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.program-benefits {
    position: relative;
    z-index: 1;
}

.program-benefits li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.program-benefits li:before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Користь */
.benefits-infographic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.benefit-icon {
    margin: 0 auto 1.5rem;
}

.benefit-item h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Тренери */
.trainer-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.trainer-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition);
}

.trainer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.trainer-image {
    overflow: hidden;
    height: 300px;
}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.trainer-card:hover .trainer-image img {
    transform: scale(1.05);
}

.trainer-info {
    padding: 1.5rem;
}

.trainer-specialization {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.trainer-description {
    margin-bottom: 1rem;
}

.trainer-certificates {
    font-size: 0.9rem;
    color: var(--text-medium);
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Історії успіху */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.story-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.story-image {
    height: 220px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-content {
    padding: 1.5rem;
}

.story-program {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.story-text {
    font-style: italic;
}

/* Інфографіка */
.infographic-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.infographic-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

.infographic-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.infographic-icon {
    margin-bottom: 1.5rem;
}

.infographic-content h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* Контакти */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.contact-details {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    color: var(--primary-color);
}

.contact-form-container {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.contact-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'PT Sans', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.form-checkbox input {
    width: auto;
    margin-top: 5px;
}

.form-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Футер */
.footer {
    background-color: #222;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-gap: 2rem;
}

.footer-logo {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.footer-nav {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.footer-programs {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.footer-legal {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.footer-contact {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.footer h4 {
    color: var(--white);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer a {
    color: #ccc;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer-logo .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #ccc;
    font-size: 1rem;
}

.footer-bottom {
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.9rem;
}

/* Адаптивність */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-logo {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    
    .footer-nav {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    
    .footer-programs {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    
    .footer-legal {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    
    .footer-contact {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        margin-left: 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-logo, .footer-nav, .footer-programs, .footer-legal, .footer-contact {
        grid-column: 1;
    }
    
    .footer-logo {
        grid-row: 1;
    }
    
    .footer-nav {
        grid-row: 2;
    }
    
    .footer-programs {
        grid-row: 3;
    }
    
    .footer-legal {
        grid-row: 4;
    }
    
    .footer-contact {
        grid-row: 5;
    }
}

@media (max-width: 576px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .main-nav a {
        font-size: 0.9rem;
        padding: 0.3rem;
    }
    
    .nav-icon {
        display: none;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .trainer-gallery, .stories-grid, .benefits-infographic, .infographic-container {
        grid-template-columns: 1fr;
    }
    
    .trainer-image {
        height: 250px;
    }
    
    .story-image {
        height: 180px;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .program-card, .benefit-item, .trainer-card, .story-card, .infographic-item {
        padding: 1.5rem;
    }
}

/* Анімації */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}