/* Общие стили и переменные */
:root {
    --dark-blue: #0e173a;
    --medium-blue: #1b2653;
    --light-blue: #4272f1;
    --white: #ffffff;
    --text-color: #e0e0e0;
    --highlight-green: #25D366;
    --card-bg: #f5f9ff;
    --card-border: #dae7f8;
    --heading-color: #333333;
    --sub-heading-color: #555555;
    --card-light-bg: #f9fcff;
    --expert-card-bg: #f5f9ff;
    --cta-bg: #1b2653;
    --form-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--dark-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
section.main-wrapper, .hero-cta-section {
    background-image: url(../img/mainbg.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
/* Стили для кнопок */

.btn:hover {
    background-color: #2e59cf;
    transform: translateY(-2px);
}

.btn-primary {
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 10px;
}

.arrow-icon {
    margin-left: 10px;
    font-size: 20px;
}

/* Стили для логотипа */
.logo {
    font-weight: 700;
    font-size: 26px;
    color: var(--white);
    letter-spacing: -0.5px;
}

/* --- Header Section --- */
.header {
    padding: 20px 0;
    position: relative;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--highlight-green);
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.whatsapp-link:hover {
    transform: scale(1.05);
}

.whatsapp-link img {
    width: 24px;
    height: 24px;
}

.working-hours {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.day-time {
    margin-bottom: 2px;
}

.phone-number {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    font-size: 18px;
    white-space: nowrap;
}

.btn-callback {
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 6px;
    display: none;
}

.burger-menu {
    display: block;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--white);
    padding: 5px;
}

/* --- Hero Section --- */
.hero-section {
    color: var(--white);
    padding: 60px 0 80px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.hero-image-wrapper {
    position: relative;
    max-width: 700px;
    width: 100%;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.clients-counter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.clients-counter .counter-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
	
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.clients-counter span {
    font-size: 20px;
    font-weight: 700;
}

.clients-counter p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Common Section Styles --- */
.services-section, .why-us-section, .expert-section, .team-section, .certificates-section, .testimonials-section, .cta-section, .faq-section {
    padding: 80px 0;
    text-align: center;
}

.services-section {
    background-color: var(--white);
}

.why-us-section {
    background-color: var(--card-light-bg);
    text-align: start;
}

.expert-section {
    background-color: var(--expert-card-bg);
}

.team-section {
    background-color: var(--white);
}

.certificates-section, .testimonials-section {
    background-color: var(--card-light-bg);
}

.cta-section {
    color: var(--white);
}

.section-title {
    font-size: 32px;
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 50px;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px 25px;
}

.service-card h3 {
    font-size: 20px;
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 5px;
}

.service-subtitle {
    font-size: 14px;
    color: var(--light-blue);
    font-weight: 500;
    margin-bottom: 15px;
}

.service-text {
    font-size: 15px;
    color: var(--sub-heading-color);
    line-height: 1.5;
}

/* --- Why Us Section --- */
.why-us-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.why-us-content {
    text-align: center;
    max-width: 600px;
}

.why-us-content .section-title {
    text-align: left;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.why-us-card, .float-card {
    background-color: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon-wrapper img {
    width: 24px;
    height: 24px;
}

.why-us-card h4, .float-card h4 {
    font-size: 16px;
    color: var(--dark-blue);
    margin: 0;
}

.why-us-card p, .float-card p {
    font-size: 14px;
    color: var(--sub-heading-color);
    margin: 0;
}

.why-us-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.why-us-image-wrapper > img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.why-us-float-cards {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.float-card {
    width: 100%;
}

/* --- Expert Section --- */
.expert-section {
    overflow: hidden;
}

.expert-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.expert-content {
    text-align: left;
    max-width: 700px;
    position: relative;
    z-index: 10;
}

.expert-info-card {
    padding: 0;
}

.expert-name {
    font-size: 24px;
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 5px;
}

.expert-title {
    font-size: 16px;
    color: var(--light-blue);
    margin-bottom: 30px;
}

.expert-quote {
    position: relative;
    padding-left: 20px;
}

.quote-text {
    font-size: 18px;
    color: var(--sub-heading-color);
    line-height: 1.6;
    margin: 0;
}

.quote-icon {
    position: absolute;
    left: -15px;
    top: -5px;
    font-size: 50px;
    color: var(--light-blue);
    opacity: 0.2;
    font-weight: 700;
    line-height: 1;
}

.expert-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 30px;
    color: var(--dark-blue);
    font-weight: 700;
    line-height: 1;
}

.stat-item p {
    font-size: 14px;
    color: var(--sub-heading-color);
    margin-top: 5px;
}

.guarantee-badge {
    position: absolute;
    top: -20px;
    right: 20px;
    background-color: var(--white);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    white-space: nowrap;
    z-index: 20;
}

.guarantee-badge .badge-icon {
    width: 30px;
    height: 30px;
    background-color: var(--light-blue);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guarantee-badge p {
    font-size: 14px;
    color: var(--dark-blue);
    font-weight: 500;
    margin: 0;
}

.expert-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 500px;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

.expert-image-wrapper img {
    height: 100%;
    width: auto;
    object-fit: cover;
    object-position: center;
}

/* --- Team Section --- */
.team-section {
    background-color: var(--card-light-bg);
}
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.team-member-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}
.member-image-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
}
.member-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: var(--light-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--white);
    font-size: 14px;
}
.member-info h4 {
    font-size: 18px;
    color: var(--dark-blue);
    margin-bottom: 5px;
}
.member-title {
    font-size: 14px;
    color: var(--light-blue);
    margin-bottom: 5px;
}
.member-experience {
    font-size: 13px;
    color: var(--sub-heading-color);
    line-height: 1.4;
}

/* --- Certificates Section (Slider) --- */
.certificates-section {
    background-color: var(--white);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 20px;
}

.certificates-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
    cursor: grab;
    will-change: transform;
}

.certificate-card {
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    background-color: var(--card-light-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
}

.certificate-image {
    width: 100%;
    height: auto;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--light-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
}

.slider-btn.prev-btn {
    left: 0;
}

.slider-btn.next-btn {
    right: 0;
}

.slider-btn:hover {
    background-color: #2e59cf;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--white);
}

.testimonials-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 20px;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    cursor: grab;
}

.testimonial-card {
    background-color: var(--card-light-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 30px;
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.client-info h4 {
    font-size: 18px;
    color: var(--dark-blue);
    margin: 0;
}

.client-name {
    font-size: 14px;
    color: var(--sub-heading-color);
    margin: 0;
}

.testimonial-text {
    font-size: 15px;
    color: var(--sub-heading-color);
    line-height: 1.6;
}

.testimonials-prev-btn {
    left: 0;
}

.testimonials-next-btn {
    right: 0;
}

/* --- FAQ Section --- */
.faq-section {
    background-color: var(--card-light-bg);
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-card {
    background-color: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.faq-toggle {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-toggle h4 {
    font-size: 18px;
    color: var(--dark-blue);
    font-weight: 600;
    margin: 0;
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--light-blue);
    transition: transform 0.3s ease;
}

.faq-card.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.faq-answer p {
    padding-bottom: 20px;
    margin: 0;
    font-size: 15px;
    color: var(--sub-heading-color);
}

/* --- Call to Action Section --- */
.cta-section {
    background-image: url(../img/mainbg.svg);
    color: var(--white);
    padding: 80px 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.cta-text {
    max-width: 600px;
}

.cta-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.cta-image-wrapper {
    display: none;
    max-width: 600px;
    width: 100%;
}



.cta-form-wrapper {
    background-color: var(--form-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    width: 100%;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.form-input-group {
    position: relative;
}

.form-input-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0c0d0;
}



.btn-cta {
    padding: 18px 30px;
    font-size: 18px;
    border-radius: 10px;
    width: 100%;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-blue);
    padding-top: 60px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-info {
    max-width: 400px;
    margin: 0 auto;
}

.footer-info .logo {
    font-size: 32px;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-column {
    text-align: center;
}

.footer-column h4 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 15px;
}

.footer-column li a, .footer-column li p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: color 0.2s ease;
}

.footer-column li a:hover {
    color: var(--white);
}

.footer-column li a .icon {
    font-size: 20px;
    color: var(--light-blue);
}

.link-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-column li p {
    flex-direction: column;
    align-items: center;
}

.footer-column li p span {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 5px;
    text-align: center;
}

.emergency-line {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.emergency-line p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    background-color: var(--dark-blue);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-bottom-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

/* --- Modal Styles --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: var(--dark-blue);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    font-weight: 300;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: var(--dark-blue);
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.modal-content p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

.callback-form {
    display: grid;
    gap: 15px;
}

.callback-form input {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.callback-form input:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(66, 114, 241, 0.2);
}

.btn-modal-submit {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
}

body.modal-open {
    overflow: hidden;
}

/* Image Modal specific styles */
.image-modal .modal-content {
    padding: 0;
    max-width: 90%;
    width: auto;
    background: transparent;
    box-shadow: none;
}

.image-modal .modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.image-modal .close-button {
    color: var(--white);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* --- Media Queries for responsiveness --- */

/* Tablet and larger screens (>= 768px) */
@media (min-width: 768px) {
    .header-info {
        gap: 30px;
    }

    .btn-callback {
        display: inline-flex;
    }

    .burger-menu {
        display: none;
    }

    .hero-container {
        flex-direction: row;
        text-align: left;
        gap: 60px;
        justify-content: space-between;
    }
    
    .hero-content {
        flex: 1;
        max-width: 50%;
    }
    
    .hero-image-wrapper {
        flex: 1;
        max-width: 50%;
        display: flex;
        justify-content: flex-end;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .clients-counter {
        bottom: 30px;
        left: 30px;
        font-size: 15px;
        padding: 18px 25px;
        gap: 12px;
    }
    .clients-counter span {
        font-size: 22px;
    }
    .clients-counter p {
        font-size: 15px;
    }

    .section-title {
        font-size: 38px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-us-container {
        flex-direction: row;
        text-align: left;
        gap: 60px;
    }

    .why-us-content {
        flex: 1;
        text-align: left;
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-us-image-wrapper {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
    
    .why-us-float-cards {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translate(-50%, -50%);
        width: auto;
    }

    .float-card {
        width: 250px;
    }

    .expert-container {
        flex-direction: row;
        padding: 50px 80px;
        align-items: center;
        gap: 80px;
    }

    .expert-content {
        text-align: left;
        flex: 1;
    }

    .expert-info-card {
        max-width: 500px;
    }

    .expert-image-wrapper {
        margin: 0;
        flex: 1;
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
    }

    .guarantee-badge {
        position: static;
        margin-top: 20px;
    }

    .stat-item {
        text-align: left;
    }

    .expert-stats {
        justify-content: flex-start;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-slider-wrapper, .slider-wrapper {
        padding: 0;
    }
    
    .slider-btn {
        display: flex;
    }

    .cta-container {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 60px;
    }

    .cta-text {
        flex: 1;
    }

    .cta-image-wrapper {
        display: block;
        flex: 1;
    }

    .cta-form-wrapper {
        flex: 1;
    }

    .form-inputs {
        grid-template-columns: repeat(3, 1fr);
    }

    .btn-cta {
        width: auto;
    }

    .footer-container {
        flex-direction: row;
        text-align: left;
        gap: 80px;
    }

    .footer-info {
        margin: 0;
        flex: 1;
    }

    .footer-links {
        flex-direction: row;
        justify-content: space-around;
        gap: 50px;
        flex: 2;
    }

    .footer-column {
        text-align: left;
    }

    .footer-column li a, .footer-column li p {
        justify-content: flex-start;
        gap: 15px;
    }

    .footer-column li p {
        flex-direction: row;
    }

    .footer-column li p span {
        text-align: left;
    }

    .emergency-line {
        padding-top: 0;
        margin-top: 10px;
        border: none;
    }

    .footer-bottom .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
    }

}

/* Desktop and larger screens (>= 1024px) */
@media (min-width: 1024px) {
    .header-info {
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 56px;
    }
    .hero-content p {
        font-size: 18px;
    }

    .section-title {
        font-size: 44px;
    }

    .why-us-content {
        flex: 0 0 500px;
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-image-wrapper {
        flex: 1;
    }

    .why-us-float-cards {
        left: -10%;
    }
    
    .expert-container {
        max-width: 1000px;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cta-container {
        justify-content: space-between;
    }
    .cta-text {
        flex: 0 0 400px;
    }
    .cta-image-wrapper {
        flex: 0 0 450px;
    }
}
/* --- Секция "Целый бухгалтерский отдел" --- */
.hero-cta-section {
    padding: 80px 0;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.cta-header {
    max-width: 700px;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.cta-title .highlight {
    color: var(--light-blue);
}

.cta-subtitle {
    font-size: 16px;
    color: var(--sub-heading-color);
    line-height: 1.6;
    margin: 0;
}

.cta-image-wrapper {
    max-width: 500px;
    width: 100%;
}
 
.cta-image-wrapper img {
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    display: block;
}
.container.cta-container {
    position: relative;
    z-index: 2;
}

.cta-two .cta-image-wrapper  {
    position: absolute;
    right: 0;
    z-index: -1;
}
.cta-form-wrapper {
    background-color: var(--form-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.form-input-group {
    position: relative;
}

.form-input-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0c0d0;
    font-size: 20px;
}
.cta-two .cta-form-wrapper {
    max-width: 80%;
}
.form-input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
    color: var(--input-color);
}
h2.section-title span {
    color:   var(--light-blue);;
}
section.why-us-section h2 {
    color: #1E293B;
}
h2.cta-title {
    color: white;
}
section.why-us-section span {
    color: var(--light-blue);
}
p.cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
}
.form-input-group input:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(66, 114, 241, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
    background-color: var(--light-blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 18px;
    white-space: nowrap;
}

.btn:hover {
    background-color: #2e59cf;
    transform: translateY(-2px);
}

.btn-cta {
    width: 100%;
}

.arrow-icon {
    margin-left: 10px;
    font-size: 20px;
}

/* --- Адаптивность --- */
@media (min-width: 768px) {
    .cta-container {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 60px;
        flex-wrap: wrap;
    }

    .cta-header {
        flex: 1;
        min-width: 300px;
    }
    
    .cta-image-wrapper {
        flex: 1;
        order: 1;
    }

    .cta-form-wrapper {
        order: 2;
        flex-basis: 100%;
    }

    .form-inputs {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-title {
        font-size: 48px;
    }

    .cta-subtitle {
        font-size: 18px;
    }
}
section.why-us-section h2 {
    width: 50%;
    text-align: left;
}

section.why-us-section .container {
    position: relative;
    z-index: 3;
}


section.why-us-section .image-block {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
}
 .cards {
      display: grid;
      grid-template-columns: 1fr; /* мобилка: 1 колонка */
      gap: 20px;
    }

    @media (min-width: 600px) {
      .cards {
        grid-template-columns: repeat(2, 1fr); /* планшет: 2 колонки */
      }
    }

    @media (min-width: 992px) {
      .cards {
        grid-template-columns: repeat(3, 1fr); /* десктоп: 3 колонки */
      }
    }

    /* --- Карточка --- */
    .card {
      display: flex;
      align-items: flex-start;
      gap: 15px;
      background: #f9f9f9;
      border-radius: 16px;
      padding: 20px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .icon svg {
      width: 24px;
      height: 24px;
    }

    .card p:first-child {
      font-weight: 600;
	font-size: 18px;
	color: #1E293B;
    }

    .card p:last-child {
      font-size: 15px;
    color: #475569;
    margin-top: 4px;
    }

    .image-block img {
      width: 100%;
      border-radius: 24px;
      object-fit: cover;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    @media (min-width: 768px) {
      section {
        grid-template-columns: 1fr 1fr;
        align-items: center;
      }

      h2 {
        font-size: 34px;
      }
    }

    @media (min-width: 1200px) {
      h2 {
        font-size: 40px;
      }
    }
	
	    @media (max-width: 768px) {
.header-container {
    flex-direction: column;
}
section.why-us-section h2 {
    width: 100%;
    text-align: center;
}
.cta-title {
    font-size: 30px;
}
.expert-container {
    flex-direction: column-reverse;
}
.guarantee-badge {
    position: relative;
    top: 0;
    right: 0;
}
    }