.services {
    background-color: var(--color-light-bg);
    padding: clamp(2rem, 4vw, 4rem) 0;
}

.services-container {
    max-width: min(1425px, 95%);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 2.5vw, 2.5rem);
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    flex-wrap: wrap;
}

.services-left {
    flex: 1;
    min-width: min(100%, 500px);
}

.services-title {
    font-size: clamp(1.5rem, 3.438vw, 3.438rem);
    font-weight: 500;
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.223;
    margin-bottom: clamp(1.5rem, 4vw, 4rem);
    margin-top: 0;
    white-space: normal;
    text-align: center;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.services-title-black {
    color: #000000;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500;
}

.services-title-beige {
    color: #D9CAAB;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500;
}

.services-description {
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    font-weight: 300;
    font-family: 'Commissioner', sans-serif !important;
    line-height: 1.6;
    letter-spacing: clamp(0.1px, 0.188vw, 0.188px);
    color: var(--color-black);
    margin-bottom: clamp(2rem, 4vw, 4rem);
    margin-top: 0;
    text-align: center;
    max-width: min(500px, 90%);
    width: 100%;
}

.services-btn {
    border: clamp(1px, 0.11vw, 1.7px) solid var(--color-beige);
    background-color: transparent;
    color: var(--color-black);
    border-radius: clamp(0.5rem, 0.75vw, 0.75rem);
    /* padding переопределен в global.css для мобильных */
    padding: clamp(0.75rem, 1vw, 1rem) clamp(2rem, 3.75vw, 3.75rem);
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    font-weight: 400;
    /* margin переопределен в global.css для мобильных */
    margin-top: 0;
    margin-bottom: 0;
    align-self: center;
}

.services-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100%;
    padding-top: 0;
    padding-bottom: 0;
    transition: justify-content 0.3s ease;
    min-width: min(100%, 500px);
}

/* На мобильных устройствах */
body.mobile-only .services-header,
html.mobile-only .services-header {
    flex-direction: column;
    align-items: stretch;
}

body.mobile-only .services-right,
html.mobile-only .services-right {
    order: -1;
    display: contents;
    margin-bottom: 0;
}

body.mobile-only .services-title,
html.mobile-only .services-title {
    order: -2;
    margin-bottom: clamp(1rem, 2vw, 2rem) !important;
    width: 100%;
}

body.mobile-only .services-description,
html.mobile-only .services-description {
    order: -1;
    /* margin-bottom установлен в global.css */
    width: 100%;
    max-width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.mobile-only .services-left,
html.mobile-only .services-left {
    order: 0;
}

body.mobile-only .services-btn,
html.mobile-only .services-btn {
    order: 1;
    /* Отступы установлены в global.css */
    align-self: center;
    width: fit-content;
}


.services-list {
    list-style: none;
}

.service-item {
    border-bottom: 1.7px solid var(--color-beige);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1rem, 1.25vw, 1.25rem) 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-header:hover {
    padding-left: clamp(0.5rem, 0.625vw, 0.625rem);
    background-color: rgba(217, 202, 171, 0.1);
}

.service-name {
    font-size: clamp(1.125rem, 1.688vw, 1.688rem);
    font-weight: 400;
    line-height: 1.223;
    color: var(--color-black);
}

.service-plus {
    font-size: clamp(1.5rem, 2.188vw, 2.188rem);
    font-weight: 400;
    line-height: 1.223;
    color: var(--color-beige);
    transition: color 0.3s ease;
    flex-shrink: 0;
    margin-left: clamp(1rem, 1.25vw, 1.25rem);
    width: clamp(1.5rem, 1.875vw, 1.875rem);
    text-align: center;
}

.service-item.active .service-plus {
    color: #000000;
}

.service-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 0;
}

.service-item.active .service-content {
    padding: clamp(1rem, 1.25vw, 1.25rem) 0 clamp(1.5rem, 1.875vw, 1.875rem) 0;
}

.service-content h3 {
    font-size: clamp(1.125rem, 1.375vw, 1.375rem);
    font-weight: 500;
    margin-top: clamp(1rem, 1.25vw, 1.25rem);
    margin-bottom: clamp(0.5rem, 0.625vw, 0.625rem);
    color: var(--color-black);
}

.service-content h3:first-child {
    margin-top: 0;
}

.service-content h3.service-divider {
    padding-top: clamp(1rem, 1.25vw, 1.25rem);
    border-top: 1px solid var(--color-beige);
    margin-top: clamp(1rem, 1.25vw, 1.25rem);
}

.service-content p {
    font-size: clamp(0.875rem, 1vw, 1rem);
    line-height: 1.6;
    margin-bottom: clamp(0.75rem, 0.938vw, 0.938rem);
    color: var(--color-black);
}

.service-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: clamp(0.75rem, 0.938vw, 0.938rem);
}

.service-content ul li {
    font-size: clamp(0.875rem, 1vw, 1rem);
    line-height: 1.6;
    margin-bottom: clamp(0.5rem, 0.5vw, 0.5rem);
    padding-left: clamp(1rem, 1.25vw, 1.25rem);
    position: relative;
    color: var(--color-black);
}

.service-content ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-beige);
    font-weight: bold;
}

.service-content em {
    font-style: italic;
    font-size: clamp(0.75rem, 0.875vw, 0.875rem);
    color: rgba(0, 0, 0, 0.7);
}


