/* ============================================
   COMMON STYLES - Общие стили для всех страниц
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: #4d4d4d;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

:root {
    /* Used to offset content when the header becomes fixed on mobile/tablet.
       JS updates it to the real header height; this fallback prevents overlap if JS is delayed. */
    --bp-header-offset: 90px;
}

/* Prevent hero background blocks from overflowing their container on narrow screens */
.hero-banner-bg {
    max-width: 100%;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background Ellipses */
body::before {
    content: '';
    position: absolute;
    width: 780px;
    height: 780px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 213, 158, 0.15) 0%, transparent 70%);
    top: -341px;
    left: -102px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    width: 796px;
    height: 796px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.08) 0%, transparent 70%);
    top: 578px;
    right: -136px;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.1) 0%, transparent 70%);
    top: 200px;
    left: -200px;
    pointer-events: none;
    z-index: 0;
}

.services::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.12) 0%, transparent 70%);
    bottom: -100px;
    left: -150px;
    pointer-events: none;
    z-index: 0;
}

.experience::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.08) 0%, transparent 70%);
    top: 50%;
    right: -100px;
    pointer-events: none;
    z-index: 0;
}

.team::before {
    content: '';
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 213, 158, 0.12) 0%, transparent 70%);
    top: -100px;
    left: -150px;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 10px;
    z-index: 1000;
    padding: 0 20px;
}

.header-container {
    background: white;
    border-radius: 20px;
    padding: 17px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    max-width: 1440px;
    margin: 0 auto;
}

.logo img {
    height: 55px;
    width: 159px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    font-size: 18px;
    color: #4d4d4d;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 2px;
}

.header-phone {
    font-weight: 700;
    white-space: nowrap;
}

.nav-item:hover {
    opacity: 0.7;
}

.dropdown-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* Header dropdown ("Услуги") */
.header-container.has-dropdown {
    position: relative;
    overflow: visible;
}

.nav-item.dropdown.is-open .dropdown-icon {
    transform: rotate(180deg);
}

.services-dropdown {
    position: absolute;
    z-index: 2000;
    min-width: 360px;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(25, 33, 61, 0.1);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.services-dropdown.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.services-dropdown-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.services-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #4d4d4d;
    font-size: 16px;
    line-height: 1.3;
    transition: background-color 0.2s ease;
}

.services-dropdown-item:hover {
    background: #f7d59e;
}

.services-dropdown-label {
    flex: 1;
    min-width: 0;
}

/* Dropdown item icon (Figma: Component 88) */
.services-dropdown-icon {
    width: 44px;
    height: 44px;
    background: #4d4d4d;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.services-dropdown-icon img {
    width: 19px;
    height: 19px;
    filter: brightness(0) invert(1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-outline {
    background: white;
    border: 1px solid rgba(77, 77, 77, 0.3);
    padding: 8px 20px;
}

.btn-outline span {
    font-size: 14px;
    font-weight: 600;
    color: #4d4d4d;
    text-transform: uppercase;
    letter-spacing: 0.42px;
}

.btn-primary {
    background: #f7d59e;
    border: 1px solid #f7d59e;
}

.btn-primary span {
    font-size: 20px;
    font-weight: 600;
    color: #4d4d4d;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.btn-large {
    padding: 12px 20px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    background: #4d4d4d;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.btn-icon img {
    width: 19px;
    height: 19px;
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease;
}

/* Button hover states (Figma: invert fills/colors, no movement) */
.btn-primary:hover {
    background: #4d4d4d;
    border-color: #4d4d4d;
}

.btn-primary:hover span {
    color: #f7d59e;
}

.btn-primary:hover .btn-icon {
    background: #f7d59e;
}

.btn-primary:hover .btn-icon img {
    filter: none;
}

.hero .btn.btn-primary:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.hero .btn.btn-primary:hover span {
    color: #4d4d4d;
}

.btn-outline:hover {
    background: #f7d59e;
    border-color: #f7d59e;
}

.btn-outline:hover span {
    color: #4d4d4d;
}

/* Scroll lock for overlays */
.no-scroll {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* Success popup */
.bp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(25, 33, 61, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.bp-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.bp-modal {
    width: min(520px, 100%);
    background: #ffffff;
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(25, 33, 61, 0.1);
    position: relative;
    transform: translateY(10px) scale(0.98);
    transition: transform 0.2s ease;
}

.bp-modal-overlay.is-open .bp-modal {
    transform: translateY(0) scale(1);
}

.bp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 1px solid #eeeeee;
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    color: #4d4d4d;
    transition: background 0.2s ease, transform 0.2s ease;
}

.bp-modal-close:hover {
    background: #f9f9f9;
}

.bp-modal-title {
    font-family: 'Merriweather', serif;
    font-size: 28px;
    line-height: 1.2;
    color: #4d4d4d;
    margin: 0 0 10px 0;
    font-weight: 400;
    padding-right: 54px;
}

.bp-modal-text {
    font-size: 16px;
    line-height: 1.4;
    color: #4d4d4d;
    margin: 0;
}

.bp-modal-actions {
    margin-top: 18px;
}

.bp-modal-actions.is-hidden {
    display: none;
}

.bp-modal-actions .btn {
    width: 100%;
    justify-content: space-between;
}

/* Smaller button typography inside modal for better balance */
#bp-modal-overlay .btn-primary span {
    font-size: 14px;
    letter-spacing: 0.42px;
}

.bp-modal-captcha-wrap {
    margin-top: 16px;
}

.bp-modal-captcha {
    display: flex;
    justify-content: center;
}

.bp-modal-captcha-hint {
    font-size: 14px;
    line-height: 1.35;
    color: #4d4d4d;
    margin: 10px 0 0 0;
    text-align: center;
}

.bp-modal-status {
    margin: 12px 0 0 0;
    font-size: 14px;
    line-height: 1.35;
    color: #4d4d4d;
}

.bp-modal-status.is-error {
    color: #d9534f;
}

.bp-modal-status.is-success {
    color: #2e7d32;
}

/* Consultation modal (form) */
.bp-consult-overlay {
    position: fixed;
    inset: 0;
    z-index: 4200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(25, 33, 61, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.bp-consult-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.bp-consult {
    width: min(600px, 100%);
    background: #ffffff;
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(25, 33, 61, 0.1);
    position: relative;
    max-height: calc(100vh - 32px);
    overflow: auto;
    transform: translateY(10px) scale(0.98);
    transition: transform 0.2s ease;
}

.bp-consult-overlay.is-open .bp-consult {
    transform: translateY(0) scale(1);
}

.bp-consult-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 1px solid #eeeeee;
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    color: #4d4d4d;
    transition: background 0.2s ease, transform 0.2s ease;
}

.bp-consult-close:hover {
    background: #f9f9f9;
}

.bp-consult-head {
    padding-right: 54px;
}

.bp-consult-title {
    font-family: 'Merriweather', serif;
    font-size: 28px;
    line-height: 1.2;
    color: #4d4d4d;
    margin: 0 0 10px 0;
    font-weight: 400;
}

.bp-consult-text {
    font-size: 16px;
    line-height: 1.4;
    color: #4d4d4d;
    margin: 0 0 18px 0;
}

.bp-consult-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bp-consult-submit {
    width: 100%;
    justify-content: space-between;
}

/* Cookie consent */
.bp-cookie-consent {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 3300;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bp-cookie-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.bp-cookie-consent__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 18px 18px 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(247, 213, 158, 0.85);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(25, 33, 61, 0.14);
    backdrop-filter: blur(10px);
}

.bp-cookie-consent__text {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    line-height: 1.45;
    color: #4d4d4d;
}

.bp-cookie-consent__text strong {
    font-family: 'Merriweather', serif;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 400;
    color: #4d4d4d;
}

.bp-cookie-consent__text a {
    color: #a06f1a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bp-cookie-consent__button {
    min-width: 168px;
    flex-shrink: 0;
    justify-content: center;
}

.bp-cookie-consent__button span {
    font-size: 14px;
    letter-spacing: 0.42px;
}

/* Mobile menu overlay */
.bp-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 3500;
    pointer-events: none;
    opacity: 0;
    background: #ffffff;
    transition: opacity 0.2s ease;
}

.bp-mobile-menu.is-open {
    pointer-events: auto;
    opacity: 1;
}

.bp-mobile-menu__backdrop {
    display: none;
}

.bp-mobile-menu.is-open .bp-mobile-menu__backdrop {
    opacity: 1;
}

.bp-mobile-menu__panel {
    position: absolute;
    inset: 0;
    background: #ffffff;
    border-radius: 0;
    padding: 23px 16px 30px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
}

.bp-mobile-menu.is-open .bp-mobile-menu__panel {
    transform: none;
    opacity: 1;
}

.bp-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 40px;
}

.bp-mobile-menu__logo img {
    width: 159px;
    height: 56px;
}

.bp-mobile-menu__close {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: #4d4d4d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.bp-mobile-menu__content {
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-right: 2px;
    flex: 1 1 auto;
}

.bp-mobile-menu__services {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.bp-mobile-menu__divider {
    width: 100%;
    height: 1px;
    background: #eeeeee;
}

.bp-mobile-menu__service-link {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #4d4d4d;
}

.bp-mobile-menu__service-text {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #4d4d4d;
}

.bp-mobile-menu__service-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: #f7d59e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
}

.bp-mobile-menu__arrow-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.bp-mobile-menu__cta {
    width: 100%;
    justify-content: space-between;
    height: 68px;
}

.bp-mobile-menu__cta span {
    font-size: 14px;
    letter-spacing: 0.42px;
}

.bp-mobile-menu__pages {
    display: flex;
    flex-direction: column;
    gap: 29px;
    align-items: center;
    text-align: center;
}

.bp-mobile-menu__page-link {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    line-height: 1.3;
    color: #4d4d4d;
    text-decoration: none;
}

.bp-mobile-menu__contacts {
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: center;
    text-align: center;
}

.bp-mobile-menu__contact-link {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    color: #4d4d4d;
    text-decoration: none;
    white-space: nowrap;
}

/* Generic link helper (used only for close-on-click in JS) */
.bp-mobile-menu__link {
    text-decoration: none;
    color: inherit;
}

.bp-mobile-menu__footer {
    margin-top: auto;
}

.bp-mobile-menu__cta {
    width: 100%;
    justify-content: space-between;
}

/* Desktop/Mobile text toggle */
.desktop-text {
    display: inline;
}

.mobile-text {
    display: none;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: #4d4d4d;
    margin-bottom: 10px;
}

.breadcrumb span {
    color: #4d4d4d;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-family: 'Merriweather', serif;
    font-size: 64px;
    line-height: 1.2;
    color: #4d4d4d;
    margin-bottom: 16px;
    font-weight: 400;
}

.section-title-center {
    font-family: 'Merriweather', serif;
    font-size: 32px;
    text-align: center;
    color: #4d4d4d;
    margin-bottom: 20px;
    font-weight: 400;
}

.section-subtitle {
    font-size: 24px;
    line-height: 1.3;
    color: #4d4d4d;
}

/* ============================================
   OFFERS SECTION - Мы предлагаем
   ============================================ */
.offers-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.offers-section .section-title {
    margin-bottom: 40px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.offer-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.offer-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.offer-title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.offer-description {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.offer-image {
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 260px;
    height: 260px;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Offer CTA card (Figma: component card-button inside offers) */
.offer-card.offer-card-cta {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    justify-content: space-between;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.offer-cta-title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.offer-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.offer-cta-text {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #4d4d4d;
    margin: 0;
}

/* Offer CTA card hover (Figma pattern: white -> dark, CTA text + icon become bezh) */
.offer-card.offer-card-cta:hover {
    background: #4d4d4d;
    border-color: #4d4d4d;
}

.offer-card.offer-card-cta:hover .offer-cta-title {
    color: #ffffff;
}

.offer-card.offer-card-cta:hover .offer-cta-text {
    color: #f7d59e;
}

.offer-card.offer-card-cta:hover .btn-icon {
    background: #f7d59e;
}

.offer-card.offer-card-cta:hover .btn-icon img {
    filter: none;
}

/* ============================================
   COMPETENCIES SECTION - Наши компетенции
   ============================================ */
.competencies-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.competencies-wrapper {
    background: white;
    border-radius: 40px;
    padding: 40px;
}

.competencies-section .section-title {
    margin-bottom: 40px;
}

.competencies-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.competencies-row-top {
    display: flex;
    gap: 24px;
}

.competency-card {
    background: white;
    border: 1px solid #eeeeee;
    border-radius: 30px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.competency-horizontal {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    height: 214px;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 0;
    padding-bottom: 0;
}

.competency-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 281px;
}

.competency-small .competency-content {
    max-width: 290px;
}

.competency-title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.competency-text {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.competency-image {
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 297px;
    height: 297px;
}

.competency-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.competencies-row-bottom {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.competency-vertical {
    width: 358px;
    display: flex;
    flex-direction: column;
    flex-shrink: 1;
    min-width: 0;
    padding: 0;
}

.competency-vertical .competency-content {
    padding: 30px;
    padding-bottom: 10px;
}

.competency-image-bottom {
    margin-top: auto;
    width: 100%;
    height: 310px;
    flex-shrink: 0;
}

.competency-image-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 29px 29px;
}

.competencies-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 0;
    min-height: 0;
}

.competency-small {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    height: 236px;
    padding: 0 30px;
}

.competency-image-small {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 201px;
    height: 100%;
}

.competency-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.competency-photo {
    width: 372px;
    border-radius: 30px;
    overflow: hidden;
    flex-shrink: 1;
    min-width: 0;
}

.competency-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   RESULTS SECTION - Что вы получите
   ============================================ */
.results-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.results-wrapper {
    background: transparent;
    border-radius: 40px;
    padding: 0;
}

.results-section .section-title {
    margin-bottom: 40px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.result-card {
    background: white;
    border: 1px solid #eeeeee;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.result-icon {
    width: 48px;
    height: 48px;
    background: #f7d59e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(247, 213, 158, 0.6), 0 0 30px rgba(255, 140, 66, 0.3);
}

.result-icon::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    background: radial-gradient(circle, rgba(247, 213, 158, 0.8) 0%, rgba(255, 140, 66, 0.4) 50%, transparent 70%);
    filter: blur(15px);
    z-index: -1;
}

.result-icon img {
    width: 36px;
    height: 36px;
}

.result-title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

/* ============================================
   CONTACT FORM SECTION
   ============================================ */
.contact-form-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.contact-form-wrapper {
    background: white;
    border-radius: 30px;
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.contact-form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form-title {
    font-family: 'Merriweather', serif;
    font-size: 40px;
    line-height: 1.2;
    color: #4d4d4d;
    margin: 0 0 21px 0;
    font-weight: 400;
    max-width: 590px;
}

.contact-form-subtitle {
    font-size: 24px;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
    padding-bottom: 38px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 600px;
    margin-top: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #4d4d4d;
}

.form-group input,
.form-group textarea {
    padding: 20px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    color: #4d4d4d;
}

.form-group.bp-has-error input,
.form-group.bp-has-error textarea {
    border-color: #d9534f;
}

.form-checkbox.bp-has-error input[type="checkbox"] {
    border-color: #d9534f;
}

.bp-form-note {
    font-size: 14px;
    line-height: 1.35;
    color: #d9534f;
    background: rgba(217, 83, 79, 0.08);
    border: 1px solid rgba(217, 83, 79, 0.22);
    border-radius: 10px;
    padding: 12px 14px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 14px;
    color: #4d4d4d;
    line-height: 1.35;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #f7d59e;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.form-checkbox input[type="checkbox"]:checked {
    background-color: #f7d59e;
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    width: 4px;
    height: 8px;
    border: solid #4d4d4d;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.form-checkbox label {
    cursor: pointer;
}

.form-checkbox-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.form-checkbox-link:hover {
    color: #a06f1a;
}

.contact-form .btn-large {
    width: 100%;
    justify-content: space-between;
}

.contact-form-image {
    width: 637px;
    height: 728px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    align-self: stretch;
}

.contact-form-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   ACCOUNTING TEAM SECTION
   ============================================ */
.accounting-team {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.accounting-team .container {
    position: relative;
    z-index: 1;
}

.accounting-team__title {
    max-width: 1120px;
    font-size: 52px;
    line-height: 1.12;
    margin-bottom: 24px;
}

.accounting-team__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.accounting-team__person {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.accounting-team__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 30px;
    overflow: hidden;
    background: #ffffff;
}

.accounting-team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.accounting-team__info {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.accounting-team__name {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    line-height: 1.2;
    color: #000000;
    font-weight: 400;
    margin: 0;
}

.accounting-team__role {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

/* ============================================
   STEPS SECTION
   ============================================ */
.steps {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.steps::before {
    content: '';
    position: absolute;
    width: 796px;
    height: 796px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 213, 158, 0.12) 0%, transparent 70%);
    top: -38px;
    right: -360px;
    pointer-events: none;
    z-index: -1;
}

.steps-wrapper {
    margin-top: 50px;
    display: flex;
    gap: 24px;
}

.steps-image {
    width: 688px;
    height: 898px;
    border-radius: 30px;
    overflow: hidden;
    flex-shrink: 0;
}

.steps-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.steps-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-item {
    background: white;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.step-text {
    font-size: 18px;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.steps-content .btn {
    margin-top: 10px;
    width: 100%;
    justify-content: space-between;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

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

.slider-controls {
    display: flex;
    gap: 40px;
}

.slider-controls-mobile {
    display: none;
}

.slider-btn {
    width: 64px;
    height: 64px;
    border: 1px solid #4d4d4d;
    border-radius: 15px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-prev {
    transform: rotate(180deg);
}

.slider-prev img {
    transform: rotate(90deg);
}

.slider-next {
    background: #4d4d4d;
}

.slider-next img {
    transform: rotate(90deg);
    filter: brightness(0) invert(1);
}

.slider-btn:hover {
    opacity: 0.7;
}

.slider-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.slider-btn:disabled:hover {
    opacity: 0.35;
}

.slider-btn img {
    width: 19px;
    height: 19px;
}

.reviews-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    background: white;
    border-radius: 30px;
    padding: 20px;
    width: 435px;
    max-width: 435px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-text {
    font-size: 16px;
    line-height: 1.5;
    color: #3c3b3b;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
}

.review-header {
    display: flex;
    gap: 10px;
    align-items: center;
}

.review-avatar {
    width: 64px;
    height: 64px;
    border-radius: 32px;
    overflow: hidden;
    background: #d9d9d9;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-name {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #3c3b3b;
    margin: 0;
}

/* ============================================
   REFERRAL SECTION
   ============================================ */
.referral {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.referral::before {
    content: '';
    position: absolute;
    width: 2176px;
    height: 542px;
    background: radial-gradient(ellipse, rgba(247, 213, 158, 0.12) 0%, transparent 70%);
    top: 8px;
    left: -388px;
    pointer-events: none;
    z-index: -1;
}

.referral-wrapper {
    display: flex;
    gap: 190px;
    align-items: center;
}

.referral-illustration {
    width: 497px;
    height: 559px;
    flex-shrink: 0;
}

.referral-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.referral-content {
    flex: 1;
}

.referral-title {
    font-family: 'Merriweather', serif;
    font-size: 64px;
    line-height: 1.2;
    color: #4d4d4d;
    margin-bottom: 40px;
    font-weight: 400;
}

.referral-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.referral-list li {
    font-size: 24px;
    line-height: 1.3;
    color: #4d4d4d;
    padding-left: 36px;
    position: relative;
}

.referral-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-size: 24px;
    line-height: 1.3;
}

/* Hide referral button on desktop */
.referral-btn {
    display: none;
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.map-section .section-title {
    margin-bottom: 43px;
}

.map-media {
    width: 100%;
    max-width: 1400px;
    height: auto;
    overflow: visible;
}

.map-media img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================
   ARTICLES SECTION
   ============================================ */
.articles {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.article-image {
    width: 100%;
    height: 250px;
    border-radius: 30px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.article-excerpt {
    font-size: 16px;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.article-date {
    font-size: 14px;
    line-height: 1.3;
    color: black;
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 45px 0 30px;
    position: relative;
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.footer-services {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.footer-service {
    background: white;
    border-radius: 10px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    text-decoration: none;
    flex: 1;
    transition: background-color 0.2s ease;
}

.footer-service:hover {
    background: #f7d59e;
}

.footer-service span {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: #4d4d4d;
}

.footer-divider {
    height: 1px;
    background: #eeeeee;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 118px;
}

.footer-nav a {
    font-family: 'Merriweather', serif;
    font-size: 28px;
    color: #4d4d4d;
    text-decoration: none;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    max-width: 1341px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 27px;
    width: 212px;
}

.footer-logo img {
    height: 55.703px;
    width: 159px;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-legal-mobile {
    display: none;
}

.footer-copyright,
.footer-privacy {
    font-size: 14px;
    line-height: 1.25;
    color: #4d4d4d;
    margin: 0;
}

.footer-privacy {
    text-decoration: none;
    cursor: pointer;
}

.footer-privacy:hover {
    opacity: 0.7;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 27px;
    width: 607px;
}

.footer-address {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-address .info-value {
    line-height: 1.35;
}

.contact-row {
    display: flex;
    gap: 50px;
    height: 56px;
}

.contact-link {
    font-size: 25px;
    color: #4d4d4d;
    text-decoration: none;
}

.contact-link:hover {
    opacity: 0.7;
}

.footer-info {
    display: flex;
    gap: 30px;
}

.info-row {
    display: flex;
    gap: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    font-size: 14px;
    line-height: 1;
    color: #4d4d4d;
    margin: 0;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: #4d4d4d;
    margin: 0;
}

/* ============================================
   PRICING SECTION - Как мы рассчитываем стоимость
   ============================================ */
.pricing-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.pricing-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 16px;
}

.pricing-header .section-title {
    width: 685px;
    max-width: 685px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.pricing-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
    color: #4d4d4d;
    flex: 1;
    margin: 0;
    text-align: left;
}

.pricing-subtitle strong {
    font-weight: 700;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pricing-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    height: auto;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 17px;
    background: #f7d59e;
    border-radius: 41px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: black;
    width: fit-content;
}

.pricing-title {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.pricing-params {
    list-style: disc;
    margin: 0;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-params li {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: #4d4d4d;
}

.pricing-card-tasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.pricing-tasks-title {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.pricing-tasks-list {
    list-style: disc;
    margin: 0;
    padding-left: 27px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-tasks-list li {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #4d4d4d;
}

.pricing-price {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
    margin-top: auto;
    padding-top: 20px;
}

.pricing-card-cta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-cta-title {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.pricing-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.pricing-cta-text {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #4d4d4d;
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN - Common Sections
   ============================================ */
@media (max-width: 1440px) {
    .container {
        max-width: 100%;
    }

    .section-title {
        font-size: 56px;
    }

    .accounting-team__title {
        font-size: 52px;
    }
}

@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form-image {
        width: 100%;
        height: 400px;
        order: -1;
    }

    .contact-form-title {
        font-size: 32px;
    }

    .contact-form-subtitle {
        font-size: 18px;
    }

    .contact-form {
        max-width: 100%;
    }

    .steps-wrapper {
        flex-direction: column;
    }

    .steps-image {
        width: 100%;
        height: 500px;
    }

    .referral-wrapper {
        flex-direction: column;
    }

    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .accounting-team__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 20px;
    }

    .accounting-team__title {
        font-size: 48px;
    }
}

@media (max-width: 1024px) {

    /* Prevent page-level horizontal scroll on tablets/landscape phones */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Header: switch to burger earlier (tablets / small laptops) */
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #4d4d4d;
        border: none;
        border-radius: 10px;
        cursor: pointer;
    }

    /* Make header fixed on mobile/tablet so it never disappears on scroll */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: calc(10px + env(safe-area-inset-top)) 20px 10px;
    }

    /* Offset page content under the fixed header (value set via JS) */
    main {
        padding-top: var(--bp-header-offset);
    }

    /* About page has a hero section before <main> */
    .page-about .hero {
        margin-top: var(--bp-header-offset);
    }

    /* Pricing header: stack earlier to avoid overflow around ~900px */
    .pricing-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pricing-header .section-title {
        width: auto;
        max-width: 100%;
        margin-bottom: 0;
        text-align: center;
    }

    .pricing-subtitle {
        text-align: center;
    }

    /* Footer services: 2x2 grid on tablets (instead of squeezing 4 in a row) */
    .footer-services {
        flex-wrap: wrap;
    }

    .footer-service {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }

    /* Footer nav: prevent horizontal overflow on tablets/landscape phones */
    .footer-nav {
        flex-wrap: wrap;
        gap: 24px 60px;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 40px;
    }

    .accounting-team__title {
        max-width: 100%;
        font-size: 40px;
        line-height: 1.15;
    }

    .accounting-team__grid {
        gap: 32px 14px;
    }

    .accounting-team__name {
        font-size: 22px;
    }

    .accounting-team__role {
        font-size: 17px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-services {
        flex-direction: column;
    }

    .footer-nav {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 40px;
    }

    /* Footer: prevent overflow on tablets / large phones (481–768px) */
    .footer-contacts {
        width: 100%;
        max-width: 100%;
    }

    .contact-row {
        flex-direction: column;
        gap: 20px;
        height: auto;
    }

    .contact-link {
        font-size: 26px;
    }

    .footer-info {
        flex-direction: column;
        gap: 20px;
    }

    .footer-address {
        max-width: 100%;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pricing-header .section-title {
        width: auto;
        max-width: 100%;
        margin-bottom: 0;
        text-align: center;
    }

    .pricing-subtitle {
        text-align: center;
    }
}

/* ============================================
   MOBILE STYLES - До 480px
   ============================================ */
@media (max-width: 480px) {

    /* Prevent horizontal scroll on mobile */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Hide large decorative backgrounds on mobile */
    body::before,
    body::after,
    .hero::after,
    .services::after,
    .experience::after,
    .team::before,
    .accounting-team::before,
    .steps::before,
    .referral::before {
        display: none;
    }

    /* Container */
    .container {
        padding: 0 16px;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Header Mobile */
    .header {
        padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    }

    .header-container {
        height: 70px;
        padding: 12px;
        border-radius: 20px;
    }

    .logo img {
        height: 46px;
        width: 131px;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #4d4d4d;
        border: none;
        border-radius: 10px;
        cursor: pointer;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 28px;
        line-height: 1.2;
        text-align: center;
    }

    .section-title-center {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 18px;
        text-align: center;
    }

    /* Buttons Mobile */
    .btn-primary span {
        font-size: 14px;
        letter-spacing: 0.42px;
    }

    .btn-large {
        padding: 12px 20px;
    }

    .btn-outline {
        display: none;
    }

    /* Desktop/Mobile text toggle */
    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: inline;
    }

    /* Breadcrumb Mobile */
    .breadcrumb {
        display: block;
        margin-bottom: 10px;
    }

    /* Competencies Section Mobile */
    .competencies-section {
        padding: 40px 0;
    }

    .competencies-wrapper {
        padding: 30px 20px;
        border-radius: 30px;
    }

    .competencies-section .section-title {
        margin-bottom: 30px;
        text-align: center;
    }

    .competencies-row-top,
    .competencies-row-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .competency-content {
        max-width: 100%;
        gap: 10px;
        position: relative;
        z-index: 1;
    }

    .competency-title {
        font-size: 18px;
    }

    .competency-text {
        font-size: 14px;
    }

    .competency-horizontal {
        height: auto;
        padding: 20px;
        padding-bottom: 210px;
        /* leave a small white gap above the image */
        gap: 12px;
        justify-content: flex-start;
    }

    .competency-image {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        width: 100%;
        height: 180px;
        z-index: 0;
        padding: 0;
    }

    .competency-image picture,
    .competency-image img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .competency-image img {
        object-fit: cover;
        object-position: center bottom;
    }

    .competency-vertical {
        width: 100%;
        height: auto;
        padding: 0;
    }

    .competency-vertical .competency-content {
        padding: 20px;
        padding-bottom: 10px;
    }

    .competency-image-bottom {
        height: 220px;
    }

    .competency-image-bottom picture,
    .competency-image-bottom img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .competency-image-bottom img {
        object-fit: cover;
        object-position: center;
    }

    .competencies-column {
        gap: 15px;
    }

    .competency-small {
        height: auto;
        padding: 20px;
        padding-bottom: 210px;
        /* leave a small white gap above the image */
        justify-content: flex-start;
        gap: 12px;
    }

    .competency-image-small {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: 180px;
        z-index: 0;
        padding: 0;
    }

    .competency-image-small picture,
    .competency-image-small img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .competency-image-small img {
        object-fit: cover;
        object-position: center bottom;
    }

    .competency-photo {
        display: none;
    }

    /* Offers Section Mobile (stacked, no horizontal scroll) */
    .offers-section {
        padding: 40px 0;
    }

    .offers-section .section-title {
        margin-bottom: 30px;
        text-align: center;
    }

    .offer-card {
        height: auto;
        min-height: 260px;
        padding: 20px;
        padding-bottom: 220px;
        /* reserve space + small white gap above the image */
        border-radius: 30px;
    }

    .offer-content {
        position: relative;
        z-index: 1;
    }

    .offer-image {
        width: 200px;
        height: 200px;
        bottom: -25px;
        right: -10px;
        z-index: 0;
    }

    .offer-card.offer-card-cta {
        min-height: 230px;
        padding: 30px;
        padding-bottom: 30px;
    }

    .offer-cta-title {
        font-size: 20px;
    }

    .offer-cta-text {
        font-size: 14px;
        letter-spacing: 0.42px;
    }

    /* Pricing Section Mobile */
    .pricing-section {
        padding: 40px 0;
    }

    .pricing-header {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-bottom: 30px;
        text-align: center;
    }

    .pricing-header .section-title {
        width: auto;
        max-width: 100%;
        margin-bottom: 0;
        text-align: center;
    }

    .pricing-subtitle {
        font-size: 14px;
        text-align: center;
    }

    /* Contact Form Section Mobile */
    .contact-form-section {
        padding: 40px 0;
    }

    .contact-form-wrapper {
        flex-direction: column;
        padding: 30px 20px;
        gap: 10px;
        border-radius: 30px;
    }

    .contact-form-image {
        width: 100%;
        height: 363px;
        border-radius: 20px;
        order: -1;
    }

    .contact-form-header {
        text-align: center;
    }

    .contact-form-title {
        font-size: 28px;
        text-align: center;
        max-width: 100%;
    }

    .contact-form-subtitle {
        font-size: 14px;
        text-align: center;
        padding-bottom: 38px;
    }

    .contact-form {
        max-width: 100%;
        gap: 18px;
    }

    .bp-cookie-consent {
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .bp-cookie-consent__inner {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        border-radius: 18px;
    }

    .bp-cookie-consent__text {
        max-width: none;
        font-size: 13px;
    }

    .bp-cookie-consent__text strong {
        font-size: 17px;
    }

    .bp-cookie-consent__button {
        width: 100%;
        min-width: 0;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 20px 10px;
    }

    .form-group textarea {
        min-height: 122px;
    }

    /* Accounting Team Section Mobile */
    .accounting-team {
        padding: 40px 0;
        position: relative;
    }

    .accounting-team::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 65px;
        width: 358px;
        height: 358px;
        transform: translateX(-50%);
        border-radius: 50%;
        background: radial-gradient(circle, rgba(247, 213, 158, 0.22) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
        display: block;
    }

    .accounting-team__title {
        margin-bottom: 30px;
        font-size: 24px;
        line-height: normal;
        text-align: center;
    }

    .accounting-team__grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
        width: 100%;
        margin-right: -16px;
        padding-right: 16px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        opacity: 1;
        scroll-snap-type: x mandatory;
    }

    .accounting-team__grid::-webkit-scrollbar {
        display: none;
    }

    .accounting-team__person {
        width: 300px;
        flex: 0 0 300px;
        max-width: 300px;
        scroll-snap-align: start;
    }

    .accounting-team__photo {
        width: 300px;
        height: 300px;
        border-radius: 30px;
    }

    .accounting-team__name {
        font-size: 20px;
    }

    .accounting-team__role {
        font-size: 16px;
    }

    /* Steps Section Mobile */
    .steps {
        padding: 40px 0;
    }

    .steps .section-title {
        font-size: 28px;
        text-align: center;
    }

    .steps-wrapper {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }

    .steps-image {
        display: none;
    }

    .steps-content {
        gap: 10px;
    }

    .step-item {
        padding: 30px 20px;
        gap: 16px;
    }

    .step-title {
        font-size: 20px;
    }

    .step-text {
        font-size: 16px;
    }

    /* Reviews Section Mobile */
    .reviews {
        padding: 40px 0;
    }

    .reviews-header {
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
    }

    .reviews-header .section-title {
        font-size: 28px;
        text-align: center;
    }

    .slider-controls-desktop {
        display: none;
    }

    .slider-controls-mobile {
        display: flex;
        justify-content: space-between;
        width: 100%;
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .reviews-slider {
        width: 100%;
        margin-right: -16px;
        padding-right: 16px;
    }

    .review-card {
        min-width: 280px;
        width: 280px;
        padding: 20px;
    }

    .review-avatar {
        width: 64px;
        height: 64px;
    }

    .review-name {
        font-size: 16px;
    }

    .review-text {
        font-size: 14px;
    }

    .reviews .btn-primary {
        width: 100%;
        justify-content: space-between;
    }

    /* Referral Section Mobile */
    .referral {
        padding: 40px 0;
    }

    .referral-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .referral-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 14px;
    }

    .referral-list {
        gap: 10px;
    }

    .referral-list li {
        font-size: 16px;
        padding-left: 24px;
    }

    .referral-list li::before {
        font-size: 16px;
    }

    .referral-illustration {
        width: 100%;
        height: auto;
        max-width: 358px;
        margin: 0 auto;
        order: 1;
    }

    .referral-btn {
        display: flex;
        width: 100%;
        justify-content: space-between;
        margin-top: 20px;
    }

    /* Prevent duplicate referral CTA on mobile */
    .referral-btn-desktop {
        display: none;
    }

    /* Map Section Mobile */
    .map-section {
        padding: 40px 0;
    }

    .map-section .section-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 0;
    }

    .map-media {
        width: calc(100% + 80px);
        margin: 0 -40px;
        max-width: none;
        height: auto;
        overflow: hidden;
    }

    .map-media img {
        width: 140%;
        height: auto;
        max-width: none;
        position: relative;
        left: 0;
    }

    /* Articles Section Mobile */
    .articles {
        padding: 40px 0;
    }

    .articles .section-title {
        font-size: 28px;
        text-align: center;
    }

    .articles-grid {
        display: flex;
        overflow-x: auto;
        gap: 17px;
        padding-bottom: 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-top: 30px;
        width: 100%;
        margin-right: -16px;
        padding-right: 16px;
    }

    .articles-grid::-webkit-scrollbar {
        display: none;
    }

    .article-card {
        min-width: 320px;
        width: 320px;
        flex-shrink: 0;
    }

    .article-image {
        height: 178px;
    }

    .article-title {
        font-size: 18px;
    }

    .article-excerpt {
        font-size: 14px;
    }

    /* Footer Mobile */
    .footer {
        padding: 20px 0 30px;
    }

    .footer .container {
        gap: 20px;
    }

    .footer-services {
        flex-direction: column;
        gap: 6px;
    }

    .footer-service {
        padding: 12px 20px;
        border-radius: 10px;
    }

    .footer-service span {
        font-size: 14px;
    }

    .footer-nav {
        display: grid;
        grid-template-columns: repeat(3, max-content);
        justify-content: center;
        gap: 21px;
    }

    .footer-nav a {
        font-size: 16px;
    }

    /* Force "Команда" to the 2nd row like in Figma */
    .footer-nav a:last-child {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
        gap: 25px;
    }

    .footer-legal-desktop {
        display: none;
    }

    .footer-legal-mobile {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(140px, 170px);
        column-gap: 20px;
        row-gap: 8px;
        align-items: flex-start;
        width: 100%;
        text-align: left;
    }

    .footer-legal-mobile .footer-copyright {
        grid-row: 1 / span 3;
        text-align: left;
    }

    .footer-legal-mobile .footer-privacy {
        grid-column: 2;
        justify-self: end;
        flex: none;
        text-align: right;
        max-width: 170px;
        line-height: 1.25;
    }

    .footer-contacts {
        width: 100%;
        align-items: center;
        gap: 25px;
    }

    .contact-row {
        flex-direction: column;
        gap: 23px;
        height: auto;
    }

    .contact-link {
        font-size: 26px;
    }

    .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 23px;
    }

    .footer-address {
        align-items: center;
        max-width: 320px;
        text-align: center;
    }

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

    .info-row {
        display: flex;
        justify-content: space-between;
        width: 272px;
    }

    .footer-copyright,
    .footer-privacy {
        font-size: 12px;
    }
}

@media (min-width: 1025px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ============================================
   CALCULATOR SECTION - Калькулятор стоимости услуг
   ============================================ */
.calculator-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.calculator-wrapper {
    background: #ffffff;
    border-radius: 40px;
    padding: 60px 20px 0 80px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    position: relative;
    min-height: 580px;
}

.calculator-content {
    display: flex;
    flex-direction: column;
    width: 560px;
    max-width: 560px;
    flex: 0 0 560px;
    z-index: 1;
    padding-bottom: 60px;
}

.calculator-title {
    font-family: 'Merriweather', serif;
    font-size: 52px;
    line-height: 1.2;
    color: #4d4d4d;
    font-weight: 400;
    margin: 0;
    margin-bottom: 24px;
}

.calculator-text {
    font-size: 20px;
    line-height: 1.4;
    color: #4d4d4d;
    margin: 0;
    margin-bottom: 60px;
    max-width: 540px;
}

.calculator-btn {
    align-self: flex-start;
    width: 100%;
    max-width: 540px;
    justify-content: space-between;
    flex: 0 0 auto;
    margin-top: auto;
}

.calculator-btn span {
    white-space: nowrap;
}

.calculator-image {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    align-self: stretch;
}

.calculator-image img {
    width: 100%;
    height: 110%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: right bottom;
}

/* Marquiz overlay */
.bp-marquiz-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(25, 33, 61, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.bp-marquiz-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.bp-marquiz-modal {
    width: min(900px, 100%);
    height: min(620px, 90vh);
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
    box-shadow: 0 20px 60px rgba(25, 33, 61, 0.2);
}

.bp-marquiz-overlay.is-open .bp-marquiz-modal {
    transform: translateY(0) scale(1);
}

.bp-marquiz-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 1px solid #eeeeee;
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    color: #4d4d4d;
    z-index: 2;
    transition: background 0.2s ease;
}

.bp-marquiz-close:hover {
    background: #f9f9f9;
}

.bp-marquiz-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 1200px) {
    .calculator-wrapper {
        padding: 50px 60px;
    }

    .calculator-title {
        font-size: 44px;
    }

    .calculator-image {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .calculator-section {
        padding: 40px 12px;
    }

    .calculator-wrapper {
        padding: 36px 18px;
        flex-direction: column;
        gap: 24px;
        border-radius: 30px;
        min-height: auto;
        align-items: center;
        overflow: hidden;
    }

    .calculator-content {
        display: contents;
        max-width: 100%;
        width: 100%;
        flex: 0 1 auto;
        align-items: center;
        text-align: center;
    }

    .calculator-title {
        order: 1;
        font-size: 36px;
        text-align: center;
        margin-bottom: 0;
        width: 100%;
    }

    .calculator-text {
        order: 2;
        font-size: 18px;
        text-align: center;
        margin-bottom: 0;
        max-width: 100%;
        width: 100%;
    }

    .calculator-btn {
        order: 4;
        align-self: center;
        width: 100%;
        justify-content: center;
        margin-top: 0;
    }

    .calculator-image {
        order: 3;
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
    }
    
    .calculator-image img {
        height: auto;
        width: 100%;
        max-width: 100%;
        max-height: none;
    }
}

@media (max-width: 480px) {
    .calculator-section {
        padding: 28px 8px;
    }

    .calculator-wrapper {
        padding: 30px 14px;
        border-radius: 30px;
        gap: 20px;
    }

    .calculator-title {
        font-size: 28px;
    }

    .calculator-text {
        font-size: 16px;
    }

    .calculator-image {
        width: 100%;
        max-width: 340px;
    }

    .bp-marquiz-modal {
        height: min(580px, 90vh);
        border-radius: 20px;
    }
}
