/* Основные стили и переменные */
:root {
    --remax-red: #e61a1a;
    --remax-blue: #0054a4;
    --remax-navy: #00205b;
    --remax-cream: #f5f0e6;
    --dark-text: #333333;
    --light-text: #ffffff;
    --section-padding: 80px 0;
    --section-padding-mobile: 50px 0;
}

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

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--remax-navy);
}

h2 {
    font-size: 2rem;
    color: var(--remax-navy);
}

h3 {
    font-size: 1.5rem;
    color: var(--remax-navy);
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--remax-blue);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--remax-red);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: var(--section-padding);
}

/* Стили для шапки */
header {
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}

/* Стили для героической секции */
.hero-split {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 0;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-left h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-left .subheadline {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;         /* or block if you want full width */
    text-align: center;            /* centers text horizontally */
    vertical-align: middle;        /* centers text vertically (for inline-block) */
    justify-content: center;       /* if using flex */
    align-items: center;           /* if using flex */
    background: #e7272d;
    color: #fff;
    padding: 16px 32px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    font-family: inherit;
    border: none;
    cursor: pointer;
    white-space: nowrap;           /* prevents line break if you prefer */
}


.cta-button:hover {
    background: #c01822;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-right .balloon-logo {
    max-width: 100%;
    height: auto;
}
@media (max-width: 900px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .hero-left, .hero-right {
        flex: unset;
        width: 100%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Стили для кнопок */
.cta-button {
    display: inline-block;
    background-color: var(--remax-red);
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(230, 26, 26, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #d41616;
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 26, 26, 0.6);
}

.text-link {
    font-weight: 600;
    border-bottom: 2px solid var(--remax-blue);
    padding-bottom: 2px;
}

.text-link:hover {
    border-color: var(--remax-red);
}

/* Стили для секции "Как это работает" */
.how-it-works {
    background-color: var(--remax-cream);
    text-align: center;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--remax-red);
    margin-bottom: 20px;
}

.step h3 {
    margin-bottom: 15px;
}

/* Стили для секции преимуществ */
.benefits {
    text-align: center;
    background-color: #ffffff;
}

.benefits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.benefit-column {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.benefit-column h3 {
    margin-bottom: 25px;
    color: var(--remax-red);
}

.benefit-column ul {
    list-style: none;
    text-align: left;
}

.benefit-column li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}

.benefit-column li i {
    color: var(--remax-blue);
    margin-right: 10px;
    font-size: 1.2rem;
    margin-top: 3px;
}

/* Стили для секции квалификации */
.qualification {
    background-color: var(--remax-navy);
    color: var(--light-text);
    text-align: center;
}

.qualification h2 {
    color: var(--light-text);
}

.qualification-criteria {
    max-width: 800px;
    margin: 0 auto;
}

.qualification-criteria p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.qualification-criteria ul {
    list-style: none;
    text-align: left;
}

.qualification-criteria li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}

.qualification-criteria li i {
    color: var(--remax-red);
    margin-right: 10px;
    font-size: 1.2rem;
    margin-top: 3px;
}

/* Стили для секции CTA */
.cta {
    background: linear-gradient(135deg, var(--remax-blue) 0%, var(--remax-navy) 100%);
    color: var(--light-text);
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    color: var(--light-text);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-note {
    margin-top: 20px;
    font-size: 1rem;
}

/* Стили для секции отзывов */
.testimonials {
    background-color: #f9f9f9;
    text-align: center;
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.testimonial {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text:before {
    content: '"';
    font-size: 4rem;
    color: var(--remax-cream);
    position: absolute;
    top: -20px;
    left: -15px;
    z-index: -1;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author p {
    margin-bottom: 0;
}

/* Стили для секции FAQ */
.faq {
    background-color: #ffffff;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 20px 0;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.3rem;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--remax-blue);
    transition: all 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Стили для подвала */
footer {
    background-color: var(--remax-navy);
    color: var(--light-text);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.footer-logo .logo {
    width: 100%;
    height: auto;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--light-text);
    font-size: 1rem;
}

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

.footer-social {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.footer-social a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--remax-red);
    transform: translateY(-3px);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Адаптивные стили */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 130px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    section {
        padding: var(--section-padding-mobile);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-logo, .footer-links, .footer-social {
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .cta-button {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
    
    .step, .testimonial {
        min-width: 100%;
    }
    
    .benefit-column {
        min-width: 100%;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
    
    .hero-image {
        max-width: 200px;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  padding-top: 60px; 
  left: 0; top: 0; width: 100%; height: 100%; 
  overflow: auto; background-color: rgba(0,0,0,0.5);
}
.modal-content {
  background-color: #fff; margin: auto; padding: 30px 24px 20px 24px; border-radius: 8px;
  width: 90%; max-width: 420px; box-shadow: 0 6px 32px rgba(0,0,0,0.22);
  position: relative;
}
.close-modal {
  position: absolute; right: 16px; top: 10px; font-size: 28px; font-weight: bold; color: #666; cursor: pointer;
}
.modal-content h2 { margin-top: 0; }
#referralForm label { display: block; margin-top: 10px; margin-bottom: 4px; }
#referralForm input, #referralForm textarea {
  width: 100%; padding: 8px; border-radius: 4px; border: 1px solid #ccc; margin-bottom: 8px; font-size: 1rem;
}
#referralForm textarea { resize: vertical; }
.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.whatsapp-float:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    transform: scale(1.08);
    background: #128c7e;
}
.whatsapp-float img {
    width: 38px;
    height: 38px;
    display: block;
}
.referral-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e7272d; /* RE/MAX red, or choose another color */
  margin-bottom: 1.5em; /* 1.5 line spacing */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
