/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding-top: env(safe-area-inset-top);
}

.navbar {
    padding: 1rem 0;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand h2 {
    color: #e74c3c;
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-refresh-link,
.footer-brand-refresh {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1;
}

.brand-refresh-link:focus-visible,
.footer-brand-refresh:focus-visible {
    outline: 2px solid #e74c3c;
    outline-offset: 4px;
    border-radius: 6px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid #e74c3c;
    color: #e74c3c;
    font-size: 1.05rem;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: #ffffff;
}

.footer-brand-refresh .brand-name {
    font-size: 0.95rem;
}

.navbar-brand .brand-logo i,
.footer-brand-refresh .brand-logo i {
    margin-right: 0;
}

.navbar-brand i {
    margin-right: 10px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 1.65rem;
}

@media (min-width: 1024px) {
    .navbar-menu {
        margin-left: 2.1rem;
    }
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-menu a:hover {
    color: #e74c3c;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.navbar-menu a:hover::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5)),
                url('../images/background2.jpg') center/cover;
    z-index: -1;
}

.hero-content {
    max-width: 680px;
    animation: fadeInUp 1s ease;
    margin-bottom: 2rem;
    font-size: 16px;
}

.hero-title {
    font-size: 44px;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-intro {
    display: block;
    font-size: 0.76em;
    font-weight: 500;
    margin-bottom: 0.28rem;
    letter-spacing: 0.01em;
}

.highlight {
    color: #e74c3c;
    display: block;
    margin-top: 0.35rem;
}

.hero-subtitle {
    font-family: 'Caveat', 'Segoe Script', cursive;
    font-weight: 500;
    font-size: 21px;
    line-height: 1.42;
    margin-top: 0.2rem;
    margin-bottom: 2.3rem;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.9);
    max-width: 42ch;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e74c3c;
    font-family: 'Oswald', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.about-info h3 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.about-position {
    color: #e74c3c;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #666;
}

.achievements {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

/* Only apply hover on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .achievement-item:hover {
        transform: translateX(10px);
    }
}

.achievement-item i {
    font-size: 2rem;
    color: #e74c3c;
    width: 40px;
}

.achievement-item h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.achievement-item p {
    color: #666;
    font-size: 0.85rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.services-grid-centered {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.services-grid-four {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    border: 2px solid rgba(52, 73, 94, 0.48);
    display: flex;
    flex-direction: column;
}

.service-card.featured {
    border-color: rgba(52, 73, 94, 0.48);
    box-shadow: 0 12px 28px rgba(26, 39, 55, 0.08);
}

/* Selected state for service cards */
.service-card.selected {
    border-color: #c9d2de;
    box-shadow: 0 10px 30px rgba(26, 39, 55, 0.16);
}

/* Button hover/active states - only when interacting with button itself */
.btn-outline:active {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
}

/* Only apply hover on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .btn-outline:hover {
        background: #e74c3c;
        color: white;
        transform: translateY(-2px);
    }
    
    .btn-outline:active {
        background: #c0392b;
    }
}

.service-location {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    margin: -0.5rem 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.service-location i {
    color: #27ae60;
    font-size: 1rem;
}

.service-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    color: #2c3e50;
    padding: 0 18px;
    min-height: 34px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: 1px solid rgba(52, 73, 94, 0.5);
    box-shadow: 0 0 0 6px #ffffff, 0 0 0 1px rgba(52, 84, 117, 0.28), 0 8px 16px rgba(44, 62, 80, 0.16);
}

.services .service-card .service-features {
    flex-grow: 1;
}

.services .service-card .btn {
    margin-top: auto;
    align-self: center;
    width: auto;
}

.services .service-card .btn-outline {
    background: #ffffff;
    color: #e74c3c;
    border-color: #e74c3c;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.services .service-card .btn-outline:visited {
    color: #e74c3c;
    background: #ffffff;
}

.services .service-card .btn-outline:active {
    background: #c0392b;
    color: #ffffff;
    border-color: #c0392b;
    transform: translateY(-1px);
}

@media (hover: hover) and (pointer: fine) {
    .services .service-card .btn-outline:hover {
        background: #e74c3c;
        color: #ffffff;
        border-color: #e74c3c;
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(231, 76, 60, 0.25);
    }
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 0;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    color: #666;
    justify-content: flex-start;
    padding-left: 20px;
}

.service-features i {
    color: #27ae60;
    font-size: 0.9rem;
}

.service-price {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.price {
    font-size: 1.45rem;
    font-weight: bold;
    color: #e74c3c;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.period {
    color: #666;
    font-size: 0.9rem;
    line-height: 1;
}

/* Services Note */
.services-note {
    text-align: center;
    margin-top: 28px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e6e9ef;
}

.services-note p {
    font-size: 1rem;
    color: #5b6470;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.45;
}

.services-note p + p {
    margin-top: 8px;
}

.services-note i {
    color: #ff6b35;
    font-size: 1.2rem;
}

/* Schedule Section */
.schedule {
    padding: 6rem 0;
    background: #f8f9fa;
}

.schedule-content {
    max-width: 1000px;
    margin: 0 auto;
}

.schedule-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.schedule-header {
    display: grid;
    grid-template-columns: 120px repeat(5, 1fr);
    background: #2c3e50;
    color: white;
    font-weight: 500;
}

.schedule-header > div {
    padding: 1rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

/* Show full day names by default, hide short */
.day-short {
    display: none;
}

.day-full {
    display: inline;
}

.schedule-row {
    display: grid;
    grid-template-columns: 120px repeat(5, 1fr);
    border-bottom: 1px solid #eee;
}

.time-cell {
    padding: 1rem;
    background: #34495e;
    color: white;
    text-align: center;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.time-period {
    font-size: 1.1rem;
    font-weight: 600;
}

.time-range {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 400;
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.class-cell {
    padding: 1rem;
    text-align: center;
    border-right: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.class-cell.available {
    background: #e8f5e8;
    color: #27ae60;
}

.class-cell.personal {
    background: #fff2e8;
    color: #f39c12;
}

.class-cell.competition {
    background: #ffeaea;
    color: #e74c3c;
}

.class-cell.personal-outdoor {
    background: #e8f5e8;
    color: #27ae60;
}

.class-cell.personal-gym {
    background: #fff2e8;
    color: #f39c12;
}

.class-cell.pair-outdoor {
    background: #e3f2fd;
    color: #2196f3;
}

.class-cell.pair-gym {
    background: #ffeaea;
    color: #e74c3c;
}

.schedule-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.available {
    background: #e8f5e8;
    border: 2px solid #27ae60;
}

.legend-color.personal {
    background: #fff2e8;
    border: 2px solid #f39c12;
}

.legend-color.competition {
    background: #ffeaea;
    border: 2px solid #e74c3c;
}

.legend-color.personal-outdoor {
    background: #e8f5e8;
    border: 2px solid #27ae60;
}

.legend-color.personal-gym {
    background: #fff2e8;
    border: 2px solid #f39c12;
}

.legend-color.pair-outdoor {
    background: #e3f2fd;
    border: 2px solid #2196f3;
}

.legend-color.pair-gym {
    background: #ffeaea;
    border: 2px solid #e74c3c;
}

/* Schedule actions (hint + button) */
.schedule-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin: 1.5rem auto 0;
    text-align: center;
}

.schedule-hint {
    color: #2c3e50;
    font-size: 1rem;
    max-width: 800px;
}

/* Schedule: options inside each class cell */
.class-cell {
    position: relative;
    cursor: default;
}

.class-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2px;
}

.class-option {
    min-width: 40px;
    height: 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.class-option.available {
    color: #27ae60;
    background: #e8f5e8;
    border-color: #27ae60;
}

.class-option.personal {
    color: #f39c12;
    background: #fff2e8;
    border-color: #f39c12;
}

.class-option.competition {
    color: #e74c3c;
    background: #ffeaea;
    border-color: #e74c3c;
}

.class-option.personal-outdoor {
    color: #27ae60;
    background: #e8f5e8;
    border-color: #27ae60;
}

.class-option.personal-gym {
    color: #f39c12;
    background: #fff2e8;
    border-color: #f39c12;
}

.class-option.pair-outdoor {
    color: #2196f3;
    background: #e3f2fd;
    border-color: #2196f3;
}

.class-option.pair-gym {
    color: #e74c3c;
    background: #ffeaea;
    border-color: #e74c3c;
}

/* Only apply hover on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .class-option:hover {
        transform: scale(1.06);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
}

.class-option.available.selected {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
}

.class-option.personal.selected {
    background: #f39c12;
    color: #fff;
    border-color: #f39c12;
}

.class-option.competition.selected {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.class-option.personal-outdoor.selected {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
}

.class-option.personal-gym.selected {
    background: #f39c12;
    color: #fff;
    border-color: #f39c12;
}

.class-option.pair-outdoor.selected {
    background: #2196f3;
    color: #fff;
    border-color: #2196f3;
}

.class-option.pair-gym.selected {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
}

.testimonial-card {
    display: none;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial-card.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-info {
    text-align: center;
}

.author-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

.author-position {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #f39c12;
    font-size: 1.2rem;
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.testimonial-prev,
.testimonial-next {
    background: #e74c3c;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.testimonials-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #e74c3c;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #e74c3c;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-item i {
    font-size: 1.5rem;
    color: #e74c3c;
    width: 30px;
    margin-top: 5px;
}

.contact-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-item a {
    color: #666;
    text-decoration: none;
}

.contact-item a:visited {
    color: #666;
}

.contact-item a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #c0392b;
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e74c3c;
}

/* Keep browser autofill aligned with site palette instead of default yellow */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill:focus,
.form-group select:-webkit-autofill,
.form-group select:-webkit-autofill:hover,
.form-group select:-webkit-autofill:focus {
    -webkit-text-fill-color: #2c3e50;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    box-shadow: 0 0 0 1000px #ffffff inset;
    caret-color: #2c3e50;
    transition: background-color 9999s ease-out 0s;
}

.form-group input:-moz-autofill,
.form-group textarea:-moz-autofill,
.form-group select:-moz-autofill {
    box-shadow: 0 0 0 1000px #ffffff inset;
    -moz-text-fill-color: #2c3e50;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -12px;
    left: 10px;
    background: white;
    padding: 0 6px;
    font-size: 0.9rem;
    color: #e74c3c;
    z-index: 1;
}

/* Keep label up when the field has any value (even if invalid) */
.form-group.filled label {
    top: -12px;
    left: 10px;
    background: white;
    padding: 0 6px;
    font-size: 0.9rem;
    color: #999;
    z-index: 1;
}

/* Highlight label on focus via JS-added class */
.form-group.focused label {
    color: #e74c3c;
}

/* Improve select + floating label behaviour */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none; 
    appearance: none;
    background: transparent;
    color: #333;
}

/* Make select appear lighter when default option is selected */
.form-group select:invalid {
    color: #999;
}

/* Style for placeholder option */
.form-group select option[value=""] {
    color: #999;
}

.form-group select option {
    color: #333;
}

/* Always keep select label above to avoid overlapping placeholder */
.form-group select + label {
    top: -12px;
    left: 10px;
    background: white;
    padding: 0 6px;
    font-size: 0.9rem;
    color: #999;
    z-index: 1;
}

/* Raise label only when select is focused or has a valid value */
.form-group select:focus + label,
.form-group select:valid + label,
.form-group.filled label {
    color: #e74c3c;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

@media (hover: hover) and (pointer: fine) {
    .brand-refresh-link:hover,
    .footer-brand-refresh:hover {
        opacity: 0.9;
    }
}

.footer-info p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: white;
}

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

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #e74c3c;
}

.footer-contact h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

.footer-contact p a {
    color: inherit;
    text-decoration: none;
}

.footer-contact p a:hover {
    color: #e74c3c;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: rgba(255,255,255,0.7);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #e74c3c;
}

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

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top i {
    font-size: 1rem;
}

@media (hover: hover) and (pointer: fine) {
    .back-to-top:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(231, 76, 60, 0.35);
    }
}

/* Telegram Bot Section */
.bot-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.bot-section .section-title {
    color: white;
}

.bot-section .section-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.bot-content {
    max-width: 1000px;
    margin: 0 auto;
}

.bot-description {
    text-align: center;
    margin-bottom: 3rem;
}

.bot-intro {
    font-size: 1.12rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    max-width: 800px;
    margin: 0 auto;
}

.bot-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.bot-feature {
    --feature-accent: #e74c3c;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    position: relative;
}

.bot-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: var(--feature-accent);
    opacity: 0.85;
}

/* Only apply hover on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .bot-feature:hover {
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-6px);
        box-shadow: 0 20px 34px rgba(0, 0, 0, 0.28);
    }
}

.bot-feature-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--feature-accent);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.bot-feature h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.7rem;
    font-weight: 700;
    line-height: 1.25;
    min-height: 2.5em;
}

.bot-feature p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 400;
}

.bot-cta {
    text-align: center;
    margin: 2rem 0;
}

.bot-availability {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 500;
}

.btn-large {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.btn-large i {
    font-size: 1.5rem;
}

.bot-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.bot-stat {
    text-align: center;
}

.bot-stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.3rem;
    line-height: 1;
}

.bot-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.2;
}
