/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Actions */
    --action-primary: #0075ca;
    --action-primary-hover: #0060aa;
    --action-primary-active: #004d88;
    /* Icons */
    --icon-brand: #f14635;
    --icon-light: rgba(0, 0, 0, 0.38);
    --icon-supporting: #737373;
    /* Elements */
    --element-fill-light: #fff;
    --element-fill-press: #e6e6e6;
    --element-stroke: #e6e6e6;
    /* Text */
    --text-main: #1f1f1f;
    --text-additional: rgba(0, 0, 0, 0.56);
    --text-disabled: rgba(0, 0, 0, 0.38);
    --text-accent: #0075ca;
    /* Radii */
    --border-radius-300: 4px;
    --border-radius-400: 8px;
    --border-radius-500: 12px;
    --border-radius-600: 16px;
    --border-radius-700: 20px;
    --border-radius-800: 24px;
    --border-radius-900: 28px;
    --border-radius-full: 9999px;
}

body {
    font-family: 'Roboto Flex Kaspi', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-main);
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
}

ul { list-style: none; padding: 0; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    min-width: 1040px;
    width: 100%;
    padding: 0 50px;
}

/* Header */
.header {
    background-color: #fff;
    height: 75px;
    width: 100%;
}
.header--visible {
    position: fixed;
    top: 0;
    z-index: 100;
}
.header__wrapper {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: space-between;
}
.header-placeholder {
    height: 75px;
}

/* Section Links */
.section-links__list {
    display: flex;
}
.section-links__list-item {
    align-items: center;
    display: flex;
    height: 75px;
}
.section-links__list-item:not(:last-child) {
    margin-right: 35px;
}
.section-links__list-title {
    color: var(--text-disabled);
    cursor: pointer;
    font-size: 17px;
    font-weight: 400;
    line-height: 120%;
}
.section-links__list-title:hover {
    color: var(--text-main);
}
.section-links__list-title.active {
    color: var(--text-main);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
}
.lang-switcher__button {
    border: 1px solid transparent;
    border-radius: var(--border-radius-400);
    font-size: 17px;
    font-weight: 500;
    padding: 8px 10px;
    background: none;
    color: var(--text-disabled);
    line-height: 20px;
}
.lang-switcher__button:hover {
    color: var(--text-main);
}
.lang-switcher__button--active {
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-main);
}

/* Search Bar */
.simple-search-desktop__content {
    z-index: 50;
    position: relative;
    text-align: center;
    display: block;
    line-height: 0;
}
.search-bar-desktop {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 20px 0;
}
.search-input {
    display: flex;
    align-items: center;
    flex: 1;
    margin-right: 20px;
    background-color: var(--element-fill-light);
    border-radius: var(--border-radius-400);
    padding: 0 20px;
    min-height: 56px;
}
.search-input__icon {
    display: flex;
    align-items: center;
    margin-right: 12px;
    color: var(--icon-light);
    flex-shrink: 0;
}
.search-input__field {
    border: none;
    background: none;
    font-size: 16px;
    width: 100%;
    outline: none;
    padding: 16px 0;
    color: var(--text-main);
}
.search-input__field::placeholder {
    color: var(--text-disabled);
}
.search-bar-desktop__button {
    min-width: 100px;
    padding: 14px 16px;
    background-color: var(--action-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-400);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.search-bar-desktop__button:hover {
    background-color: var(--action-primary-hover);
}

/* Content Layout */
.content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Sidebar */
.content__sidebar {
    background: #fff;
    border-radius: var(--border-radius-600);
    max-width: 360px;
    padding: 16px 20px;
    width: 360px;
}

/* Product List */
.product-list__list {
    font-size: 16px;
}
.product-list__item {
    margin-bottom: 14px;
}
.product-list__item:last-child {
    margin-bottom: 0;
}
.product-list__item-link {
    display: block;
}
.product-list__item-cell {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: var(--border-radius-500);
    cursor: pointer;
    min-height: 56px;
}
.product-list__item-cell:hover {
    background-color: var(--element-fill-light);
}
.product-list__item-cell--active {
    background-color: #e3f2fd !important;
    color: var(--text-accent);
}
.product-list__item-cell--active .product-list__item-title span {
    font-weight: 600;
}
.product-list__item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}
.product-icon {
    width: 36px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-icon--star {
    background-color: #fce4ec;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}
.product-icon--star svg {
    color: var(--icon-brand);
    width: 20px;
    height: 20px;
}
.product-list__item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-list__item-title span {
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-main);
}
.product-list__item-chevron {
    display: none;
    color: var(--icon-light);
    align-items: center;
    justify-content: flex-end;
}
.product-list__item:hover .product-list__item-chevron {
    display: flex;
}
.product-list__item--active .product-list__item-chevron {
    display: flex;
}
.product-list__item-chevron--always {
    display: flex;
}

/* Main Content */
.content__main {
    background: #fff;
    border-radius: var(--border-radius-600);
    flex: 1;
    min-width: 0;
    overflow: visible;
    padding: 30px 28px;
}

/* References Check Form */
.references-check__form {
    padding: 0;
}
.form-field {
    padding: 20px 0 14px;
}

/* DS Input - Floating Label Pattern */
.ds-input {
    display: block;
    position: relative;
    min-height: 56px;
}
.ds-input__wrapper {
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--element-fill-light);
    border: 1px solid var(--element-stroke);
    border-radius: var(--border-radius-400);
    min-height: 56px;
    padding: 0 16px;
    transition: border-color 0.15s;
}
.ds-input__wrapper:hover {
    background-color: var(--element-fill-press);
}
.ds-input__wrapper:focus-within {
    border-color: var(--action-primary);
    background-color: #fff;
}
.ds-input__label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-additional);
    pointer-events: none;
    transition: all 0.15s ease;
    transform-origin: left center;
}
.ds-input__input {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 14px 0 0;
    font-size: 16px;
    border: none;
    background: none;
    color: var(--text-main);
    outline: none;
}
.ds-input__input::placeholder {
    color: transparent;
}
.ds-input__input:focus + .ds-input__label,
.ds-input__input:not(:placeholder-shown) + .ds-input__label {
    top: 8px;
    transform: translateY(0);
    font-size: 12px;
    color: var(--text-additional);
}

/* Legacy form input support */
.form-input {
    display: block;
    position: relative;
    min-height: 56px;
}
.form-input__label {
    position: absolute;
    left: 16px;
    top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-additional);
    line-height: 16px;
    letter-spacing: 0.02em;
}
.form-input__field {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 26px 16px 8px;
    font-size: 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--border-radius-400);
    background-color: var(--element-fill-light);
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
}
.form-input__field:focus {
    border-color: var(--action-primary);
}
.form-input__field::placeholder {
    color: transparent;
}

.form-button {
    margin-top: 20px;
    width: 100%;
    min-height: 56px;
    padding: 14px 24px;
    background-color: var(--action-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-400);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color 0.15s;
}
.form-button:hover {
    background-color: var(--action-primary-hover);
}

/* Reference Check Error */
.ref-error {
    margin-top: 12px;
    padding: 12px 16px;
    background-color: #fce4ec;
    border-radius: var(--border-radius-400);
    color: #c62828;
    font-size: 14px;
    line-height: 1.4;
}

/* Reference Check Result */
.references-check-result {
    margin-bottom: 30px;
}
.references-check-result__header {
    margin-bottom: 20px;
}
.references-check-result__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-main);
}
.references-check-result__subtitle {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-additional);
}
.references-check-result__table {
    width: 100%;
    border-collapse: collapse;
}
.references-check-result__table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--element-stroke);
    font-size: 15px;
    line-height: 1.4;
}
.references-check-result__table td:first-child {
    color: var(--text-additional);
    width: 40%;
    font-weight: 500;
}
.references-check-result__table td:last-child {
    color: var(--text-main);
    font-weight: 600;
}

/* Reference Check Details */
.references-check-details {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--element-stroke);
}
.references-check-details__header h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}
.references-check-details__date {
    font-size: 14px;
    color: var(--text-additional);
    margin-bottom: 16px;
}
.references-check-details__table {
    width: 100%;
    border-collapse: collapse;
}
.references-check-details__table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--element-stroke);
    font-size: 15px;
    line-height: 1.4;
}
.references-check-details__table td:first-child {
    color: var(--text-main);
    width: 60%;
}
.references-check-details__table td:last-child {
    color: var(--text-main);
    text-align: right;
    font-weight: 500;
}
.references-check-details__table .positive {
    color: #2e7d32;
}

/* DS Informer */
.ds-informer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #e3f2fd;
    border-radius: var(--border-radius-400);
    padding: 16px;
    margin-top: 20px;
}
.ds-informer__icon {
    flex-shrink: 0;
    color: var(--action-primary);
    margin-top: 2px;
}
.ds-informer__body {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
}

/* Footer */
.footer {
    margin-top: 69px;
}
.footer__top {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    padding: 40px 50px;
    max-width: 1300px;
    min-width: 1040px;
    margin: 0 auto;
    width: 100%;
}
.footer__nav-col:first-child {
    margin-right: 80px;
}
.footer__nav-col:last-child,
.footer__nav-col:nth-child(3) {
    width: 214px;
}
.footer__nav-title {
    color: rgba(0, 0, 0, 0.88);
    font-size: 17px;
    font-weight: 700;
    line-height: 20px;
    margin-bottom: 20px;
}
.footer__nav-item {
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    margin-bottom: 16px;
}
.footer__nav-link {
    color: var(--text-disabled);
}
.footer__nav-link:hover {
    color: rgba(0, 0, 0, 0.56);
}
.footer__chat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.footer__chat-btn {
    background: #eaeaea;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    padding: 6px;
    color: rgba(0, 0, 0, 0.88);
}
.footer__chat-btn:hover {
    background: #d3d3d3;
    transition: 0.3s;
}
.footer__phone-text {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    margin-bottom: 14px;
}
.footer__bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 30px 0 35px;
    display: flex;
    justify-content: space-between;
}
.footer__bottom-wrap {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1300px;
    min-width: 1040px;
    padding: 0 50px;
    width: 100%;
}
.footer__license {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    max-width: 585px;
    row-gap: 14px;
}
.footer__license-text {
    color: #4a4a4a;
    font-weight: 400;
    line-height: 21px;
}
.footer__license-text a {
    text-decoration: underline;
}
.footer-socials {
    display: flex;
    gap: 15px;
}
.footer-socials__icon {
    display: block;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.32);
    mask-position: center;
    mask-repeat: no-repeat;
}
.footer-socials__icon:hover {
    background: rgba(0, 0, 0, 0.64);
    transition: 0.3s;
}

/* Placeholder Page */
.placeholder-page {
    text-align: center;
    padding: 60px 20px;
}
.placeholder-page h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}
.placeholder-page p {
    font-size: 16px;
    color: var(--text-additional);
    margin-bottom: 24px;
}
.placeholder-page__link {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--action-primary);
    color: #fff;
    border-radius: var(--border-radius-500);
    font-size: 16px;
    font-weight: 600;
}
.placeholder-page__link:hover {
    background-color: var(--action-primary-hover);
}
