/* Основні стилі */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2E7D32;
    --dark-color: #1B1B1B;
    --light-color: #f9f9f9;
    --accent-color: #388E3C;
    --text-color: #333333;
    --background-light: #f9f9f9;
    --background-accent: #e8f5e9;
    --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
    --transition-default: all 0.3s ease;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.8rem auto 0;
    border-radius: 3px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-default);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

ul {
    list-style-type: none;
}

section {
    padding: 5rem 0;
    position: relative;
}

section:nth-child(odd) {
    background-color: var(--background-light);
}

section:nth-child(even) {
    background-color: var(--background-accent);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Хвилясті роздільники між секціями */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

/* Кнопки */
.primary-button, .secondary-button, .footer-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-default);
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.footer-button {
    background-color: white;
    color: var(--primary-color);
    padding: 10px 20px;
    font-size: 0.85rem;
}

.primary-button:hover, .secondary-button:hover, .footer-button:hover {
    transform: translateY(-3px);
}

.primary-button:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 6px 12px rgba(46, 125, 50, 0.4);
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-button:hover {
    background-color: var(--background-light);
    color: var(--secondary-color);
}

/* Хедер і навігація */
header {
    background-color: white;
    box-shadow: var(--shadow-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 120px;
    height: 40px;
    margin-right: 10px;
}

.logo-container h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition-default);
}

.main-nav a:hover::after {
    width: 100%;
    left: 0;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-default);
}

.main-nav a[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

.cta-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* Герой-секція */
.hero {
    padding: 0;
    background-color: var(--dark-color);
    color: rgb(0, 0, 0);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    min-height: 600px;
    padding: 3rem 5%;
}

.hero-text {
    flex: 1;
    z-index: 2;
    padding-right: 2rem;
}

.hero-text h2 {
    font-size: 3rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.hero-text h2::after {
    margin: 1rem 0;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(800px) rotateY(-10deg);
    transition: var(--transition-default);
}

.hero-image img:hover {
    transform: perspective(800px) rotateY(0);
}

/* Про студію */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-text ul {
    margin: 20px 0;
    padding-left: 20px;
}

.about-text li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.about-text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Переваги */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition-default);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

/* Програми */
.programs-table {
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(76, 175, 80, 0.05);
}

.programs-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Тренери */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.trainer-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-default);
}

.trainer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.trainer-image {
    height: 300px;
    overflow: hidden;
}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-default);
}

.trainer-card:hover .trainer-image img {
    transform: scale(1.05);
}

.trainer-card h3, .trainer-card p {
    padding: 0 1.5rem;
}

.trainer-card h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.trainer-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.trainer-card p:last-child {
    margin-bottom: 1.5rem;
}

/* Розклад */
.schedule-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    overflow-x: auto;
}

.schedule-days {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    min-width: 900px;
}

.day-column h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.class-slot {
    background-color: var(--background-accent);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.time {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.class {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.level {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.schedule-note {
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
    color: #666;
}

/* Відгуки */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    display: flex;
    padding: 2rem;
    transition: var(--transition-default);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-image {
    margin-right: 1.5rem;
}

.testimonial-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-content h3 {
    margin-bottom: 0.5rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-date {
    font-size: 0.85rem;
    color: #666;
}

/* Філіали */
.locations-map {
    margin-bottom: 2rem;
    text-align: center;
}

.locations-map img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.locations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.location-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition-default);
}

.location-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.location-icon {
    width: 30px;
    height: 30px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.location-details h3 {
    margin-bottom: 0.5rem;
}

.location-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Контакти */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Work Sans', sans-serif;
    transition: var(--transition-default);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-checkbox label {
    margin-bottom: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
}

.additional-info {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-top: auto;
}

.additional-info ul {
    padding-left: 20px;
}

.additional-info li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.5rem;
}

.additional-info li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Футер */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-block {
    padding: 1.5rem;
}

.footer-info {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.footer-links {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.footer-consult {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.footer-policy {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    margin-left: 10px;
}

.footer-block h3 {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.footer-block h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul, .footer-policy ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a, .footer-policy a {
    color: #ccc;
    transition: var(--transition-default);
}

.footer-links a:hover, .footer-policy a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Адаптивність */
@media screen and (max-width: 1024px) {
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .about-content, .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-block {
        grid-column: 1 / 2 !important;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1rem;
        min-height: auto;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-text h2::after {
        margin: 1rem auto;
    }
    
    .hero-image img {
        transform: none;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .benefits-grid, .trainers-grid, .testimonials-grid, .locations-list {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .testimonial-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .wave-divider svg {
        height: 40px;
    }
    
    .primary-button, .secondary-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .benefit-card, .trainer-card, .testimonial-card, .location-item, .contact-item, .additional-info {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 375px) {
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .main-nav ul {
        gap: 0.5rem;
    }
    
    .main-nav a {
        font-size: 0.9rem;
    }
    
    .footer-block {
        padding: 1rem;
    }
}

/* Сторінки політик */
.policy-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.policy-content h2 {
    text-align: left;
    margin-top: 2rem;
}

.policy-content h2::after {
    margin: 0.8rem 0 0;
}

.policy-content p, .policy-content ul {
    margin-bottom: 1.5rem;
}

.policy-content ul {
    padding-left: 20px;
}

.policy-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.8rem;
}

.policy-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.back-button {
    display: inline-block;
    margin-bottom: 2rem;
}

.back-button svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Сторінка подяки */
.thank-you {
    text-align: center;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-light);
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

.thank-you h2 {
    margin-bottom: 1rem;
}

.thank-you p {
    margin-bottom: 2rem;
}

/* Мікроанімація для ховер-ефектів кнопок */
@keyframes pulseButton {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.primary-button:hover {
    animation: pulseButton 1.5s infinite;
}

@keyframes shiftButton {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(3px);
    }
    75% {
        transform: translateX(-3px);
    }
    100% {
        transform: translateX(0);
    }
}

.secondary-button:hover {
    animation: shiftButton 0.5s ease;
}

@keyframes growUnderline {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

.main-nav a:hover::after {
    animation: growUnderline 0.3s forwards;
}

/* Favicon */
.favicon {
    display: none;
}