/* l-uslugi.css — структура и палитра приведены к l-sdkissmoex.css */

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-width: 320px;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    /* Внешний серый фон берется из общего style.css, как в исходном l-sdkissmoex. */
}

img {
    max-width: 100%;
}

#modalScreen {
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.6);
}

.modalForm {
    position: fixed;
    top: 30%;
    left: 40%;
    width: 20%;
    z-index: 1001;
    padding: 20px;
    border-radius: 6px;
    background-color: rgba(255,255,255,1);
    font-size: 1.2rem;
    box-sizing: border-box;
}

.modalForm span,
.modalForm input {
    display: block;
    width: 100%;
    font-size: inherit;
    box-sizing: border-box;
}

.modalForm span {
    margin-top: 1rem;
}

.modalForm input {
    line-height: 2.5rem;
    border: 2px solid silver;
    border-radius: 4px;
    margin-top: 0.3rem;
    padding: 0 0.5rem;
}

.lButtonContainer {
    text-align: center;
}

.modalForm button {
    border-radius: 4px;
    margin: 1.4rem 0 0.5rem;
    padding: 0.5rem;
    background-color: rgb(32, 132, 214);
    color: white;
    font-size: inherit;
    cursor: pointer;
}

.modalForm .errMsg {
    display: none;
    font-size: 14px;
    color: rgb(204, 0, 0);
    margin-top: 3px;
}

.closeCross {
    display: block;
    float: right;
    position: relative;
    background: url(../l-sdkissmoex/Img/wind_close.png) no-repeat center left #eee;
    width: 12px;
    height: 12px;
    cursor: pointer;
    overflow: hidden;
}

.closeCross:hover {
    background-position: center right;
    cursor: pointer;
}

#confirmBlock {
    position: fixed;
    width: 30%;
    top: 30%;
    left: 35%;
    z-index: 1001;
    padding: 20px 20px 25px;
    border-radius: 6px;
    background-color: rgba(255,255,255,1);
    font-size: 24px;
    text-align: center;
    box-sizing: border-box;
}

#confirmBlock > button {
    height: 11%;
    width: 11%;
    border-radius: 5px;
    padding: 2%;
}

#confirmBlock > button > img {
    height: 100%;
    width: 100%;
}

#confirmBlock > span:nth-of-type(2) {
    font-size: 1.3rem;
}

.hiddenForm {
    display: none;
}

.visibleForm {
    display: block;
}

#lHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.1), 0 1px 0 0 rgba(0,0,0,.03);
}

#lHeadStrip {
    background-color: #FFDE00;
}

#lHeadStripInnerContainer {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0.5% 0.5% 0.2%;
    line-height: 0;
    text-align: justify;
}

#lHeadStripInnerContainer:after {
    width: 100%;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    content: '';
    display: inline-block;
}

#lHeadStripInnerContainer > div {
    display: inline-block;
    line-height: normal;
    vertical-align: middle;
}

#lHeadStripInnerContainer span {
    display: block;
    color: #810000;
    text-align: center;
}

#lLogoContainer {
    width: 25%;
}

#lLogoContainer > img {
    display: block;
    width: 100%;
}

#lPhonesContainer {
    text-align: center;
}

#lPhonesContainer > span:first-child {
    font-size: 1.6rem;
}

#lButtonContainer {
    width: 10%;
    text-align: center;
}

#lButtonContainer > button {
    width: 100%;
    background-color: #D61921;
    border-radius: 4px;
    border: 1px solid #D61921;
    color: white;
    font-size: 1.16rem;
    padding: 3% 0;
    cursor: pointer;
}

#l-geoposition-container {
    width: 25%;
}

#l-geoposition-container span {
    font-size: 1.2rem;
}

#l-geoposition-container select {
    width: 100%;
    font-size: 1.2rem;
    padding: 0 0.4rem;
    background-color: inherit;
    color: #810000;
    border: 1px solid;
    border-radius: 4px;
}

#l-geoposition-container > div:first-child {
    text-align: center;
}

#l-geoposition-container > div:first-child img {
    width: 0.9rem;
}

#l-geoposition-container > div:first-child span {
    display: inline;
    vertical-align: top;
    margin-left: 0.5rem;
}

#lMenu {
    background-color: white;
}

#lMenu > ul {
    max-width: 1024px;
    margin: 0 auto;
    padding: 1rem 5rem 0.7rem;
    text-align: justify;
    line-height: 0;
}

#lMenu ul:after {
    width: 100%;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    content: '';
    display: inline-block;
}

#lMenu > ul > li {
    display: inline-block;
    list-style: none;
    margin: 0 auto;
    font-size: 1.1rem;
    font-weight: bold;
    color: #810000;
    cursor: pointer;
    line-height: normal;
}

#lMenu > ul > li:hover {
    color: red;
}

#lMenu > ul > li > a {
    text-decoration: none;
    color: inherit;
}

#lBody {
    background-color: white;
    max-width: 1024px;
    margin: 0 auto;
    padding: 7.5rem 0 0.1rem;
}

.blocks {
    padding: 1.3rem 2rem;
    margin: 1.5rem;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    background-color: WhiteSmoke;
    box-shadow: 1px 1px 5px rgba(0,0,0,.175);
}

span.blocks-header {
    display: block;
    font-size: 2.7rem;
    text-align: center;
    margin-bottom: 2rem;
}

span.blocks-text {
    display: block;
    margin-top: 1rem;
    font-size: 1.5rem;
    color: #333;
    text-align: justify;
}

span.blocks-text-functions-description {
    display: block;
    margin-top: 1rem;
    font-size: 1.5rem;
    color: #333;
    text-align: left;
}

span.lighted-text {
    color: #810000;
    font-weight: bold;
}

.lButtonBlockContainer {
    text-align: center;
    padding-top: 1rem;
}

.lButtonBlockContainer > button {
    width: 30%;
    background-color: #79bbff;
    border-radius: 2px;
    color: white;
    font-size: 1.16rem;
    font-weight: 600;
    padding: 0.4rem 0;
    cursor: pointer;
}

.lButtonBlockContainer > button:hover {
    background-color: rgb(32, 132, 214);
}

#footer-block {
    background-color: #111;
    color: white;
    padding: 0.5rem 1rem;
    text-align: center;
}

/* Страница l-company-info */
:root {
    --l-company-info-red: #810000;
    --l-company-info-text: #333;
    --l-company-info-bg: WhiteSmoke;
    --l-company-info-white: white;
    --l-company-info-yellow: #FFDE00;
    --l-company-info-blue: #79bbff;
    --l-company-info-blue-hover: rgb(32, 132, 214);
    --l-company-info-border: rgba(0,0,0,.15);
    --l-company-info-shadow: 1px 1px 5px rgba(0,0,0,.175);
}

.l-company-info-page,
.l-company-info-page * {
    box-sizing: border-box;
}

.l-company-info-page {
    color: var(--l-company-info-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

.l-company-info-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.l-company-info-hero,
.l-company-info-section {
    padding: 1.3rem 2rem;
    margin: 1.5rem;
    border: 1px solid var(--l-company-info-border);
    border-radius: 4px;
    background-color: WhiteSmoke;
    box-shadow: var(--l-company-info-shadow);
}

.l-company-info-hero h1,
.l-company-info-section h2,
.l-company-info-data-card h3,
.l-company-info-activity h3,
.l-company-info-activity h4 {
    margin: 0;
}

.l-company-info-hero h1,
.l-company-info-section h2 {
    display: block;
    width: 100%;
    margin: 0 0 2rem;
    font-size: 2.1rem;
    line-height: 1.18;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.l-company-info-lead {
    max-width: 820px;
    margin: 0 auto 1.5rem;
    font-size: 1.35rem;
    line-height: 1.5;
    text-align: center;
    color: #333;
}

.l-company-info-hero__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1.4rem;
}

.l-company-info-summary-card,
.l-company-info-data-card,
.l-company-info-activity__block,
.l-company-info-price__content,
.l-company-info-access__grid article {
    background: white;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
}

.l-company-info-summary-card {
    padding: 1rem;
    text-align: center;
}

.l-company-info-summary-card span {
    display: block;
    margin-bottom: 0.45rem;
    color: #810000;
    font-size: 1rem;
    font-weight: 700;
}

.l-company-info-summary-card strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #333;
}

.l-company-info-details__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.l-company-info-data-card {
    min-height: 7rem;
    padding: 1.1rem 1.2rem;
}

.l-company-info-data-card h3 {
    margin-bottom: 0.65rem;
    font-size: 1.05rem;
    line-height: 1.25;
    color: #810000;
    font-weight: 700;
}

.l-company-info-data-card p {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.4;
}

.l-company-info-data-card a,
.l-company-info-activity a {
    color: #810000;
    font-weight: 700;
    text-decoration: underline;
}

.l-company-info-activity__block {
    padding: 1.2rem;
}

.l-company-info-activity__block + .l-company-info-activity__block {
    margin-top: 1.2rem;
}

.l-company-info-activity h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #333;
}

.l-company-info-activity h4 {
    margin-bottom: 0.55rem;
    font-size: 1.12rem;
    line-height: 1.25;
    color: #333;
}

.l-company-info-activity p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.45;
    color: #333;
}

.l-company-info-codes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.l-company-info-codes span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.7rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid #810000;
    border-radius: 4px;
    background: #FFDE00;
    color: #810000;
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 700;
}

.l-company-info-work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.l-company-info-work-grid article {
    padding: 1rem;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    background: WhiteSmoke;
}

.l-company-info-work-grid p {
    font-size: 1rem;
}

.l-company-info-price__content {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.4rem;
    text-align: center;
}

.l-company-info-price__content p {
    margin: 0 auto 1.3rem;
    font-size: 1.15rem;
    line-height: 1.5;
    color: #333;
}

.l-company-info-button {
    display: inline-block;
    min-width: 14rem;
    padding: 0.7rem 1.5rem;
    border: 0;
    border-radius: 2px;
    background: var(--l-company-info-blue);
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}

.l-company-info-button:hover {
    background: var(--l-company-info-blue-hover);
}

.l-company-info-access__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.l-company-info-access__grid article {
    padding: 1.2rem;
    text-align: center;
}

.l-company-info-access__grid strong {
    display: block;
    margin-bottom: 0.8rem;
    color: #810000;
    font-size: 1.15rem;
    line-height: 1.25;
}

.l-company-info-access__grid p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    color: #333;
}

@media (max-width: 1024px) {
    html {
        font-size: 1.5vw;
    }
}

@media (max-width: 760px) {
    .l-company-info-page {
        font-size: 16px;
        line-height: 1.5;
    }

    .l-company-info-hero,
    .l-company-info-section {
        padding: 20px 16px;
        margin: 16px 12px;
    }

    .l-company-info-hero h1,
    .l-company-info-section h2 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .l-company-info-lead {
        font-size: 18px;
        line-height: 1.5;
        text-align: left;
    }

    .l-company-info-hero__summary,
    .l-company-info-details__grid,
    .l-company-info-work-grid,
    .l-company-info-access__grid {
        grid-template-columns: 1fr;
    }

    .l-company-info-summary-card strong {
        font-size: 21px;
    }

    .l-company-info-data-card {
        min-height: auto;
        padding: 16px;
    }

    .l-company-info-data-card h3,
    .l-company-info-activity h3 {
        font-size: 20px;
        line-height: 1.25;
    }

    .l-company-info-data-card p,
    .l-company-info-activity p,
    .l-company-info-price__content p,
    .l-company-info-access__grid p {
        font-size: 16px;
        line-height: 1.5;
    }

    .l-company-info-codes {
        justify-content: center;
        gap: 10px;
    }

    .l-company-info-codes span {
        min-width: 76px;
        font-size: 18px;
        padding: 10px 12px;
    }

    .l-company-info-button {
        width: 100%;
        max-width: 320px;
        font-size: 16px;
        padding: 11px 18px;
    }
}

@media (max-width: 420px) {
    .l-company-info-hero h1,
    .l-company-info-section h2 {
        font-size: 29px;
    }
}

/* Точечное центрирование заголовка с приказом Минцифры №449. */
.l-company-info-codes-title {
    text-align: center;
}


/* Расширенный блок карточек работ и услуг для l-company-info. */
.l-company-info-work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 1.2rem;
    margin-top: 1.2rem;
    align-items: stretch;
}

.l-company-info-work-grid article {
    min-height: 285px;
    height: 100%;
    padding: 1.4rem 1rem;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    background: WhiteSmoke;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    text-align: center;
}

.l-company-info-work-grid article img {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.l-company-info-work-grid article h4 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.l-company-info-work-grid article p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    color: #333;
    text-align: center;
}

@media (max-width: 1024px) {
    .l-company-info-work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .l-company-info-work-grid {
        grid-template-columns: 1fr;
    }

    .l-company-info-work-grid article {
        min-height: auto;
        padding: 20px 16px;
        gap: 12px;
    }

    .l-company-info-work-grid article img {
        width: 58px;
        height: 58px;
    }

    .l-company-info-work-grid article h4 {
        font-size: 19px;
        line-height: 1.3;
    }

    .l-company-info-work-grid article p {
        font-size: 16px;
        line-height: 1.5;
    }
}

/* Desktop/mobile behavior for company phone. */
.l-company-info-phone {
    margin: 0;
}

.l-company-info-phone-mobile {
    display: none;
}

.l-company-info-phone-desktop {
    display: inline;
}

@media (max-width: 760px) {
    .l-company-info-phone-mobile {
        display: inline;
    }

    .l-company-info-phone-desktop {
        display: none;
    }
}

/* Левое выравнивание внутренних заголовков и текста стоимости. */
.l-company-info-activity__block > h3 {
    text-align: left;
}

.l-company-info-codes-title,
.l-company-info-codes-block h3 {
    text-align: center;
}

.l-company-info-price__content {
    text-align: left;
}

.l-company-info-price__content p {
    text-align: left;
}



/* Центрирование заголовков и текста на странице сведений о компании. */
.l-company-info-page h1,
.l-company-info-page h2,
.l-company-info-page h3,
.l-company-info-page h4,
.l-company-info-page p,
.l-company-info-page li,
.l-company-info-page strong,
.l-company-info-page span,
.l-company-info-page a {
    text-align: center;
}

.l-company-info-data-card,
.l-company-info-activity__block,
.l-company-info-work-grid article,
.l-company-info-price__content,
.l-company-info-access__grid article {
    text-align: center;
}

.l-company-info-data-card p,
.l-company-info-activity__block p,
.l-company-info-work-grid article p,
.l-company-info-price__content p,
.l-company-info-access__grid article p {
    text-align: center;
}

.l-company-info-work-grid article {
    align-items: center;
}

.l-company-info-button {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* Распределение текстов по ширине в блоках деятельности и стоимости. */
.l-company-info-activity__block > p,
.l-company-info-activity__block > ul,
.l-company-info-activity__block > ol,
.l-company-info-price__content > p {
    text-align: justify;
    text-align-last: left;
}

.l-company-info-activity__block > p a,
.l-company-info-price__content > p a {
    text-align: inherit;
}

/* Внутри карточек работ текст оставляем по центру, как в текущем варианте. */
.l-company-info-work-grid article h4,
.l-company-info-work-grid article p {
    text-align: center;
}


/* Распределение текста внутри карточек работ и услуг. */
.l-company-info-work-grid article h4 {
    text-align: center;
}

.l-company-info-work-grid article p {
    text-align: justify;
    text-align-last: left;
}




/* Tablet modal width fix for l-company-info. */
@media (min-width: 761px) and (max-width: 1024px) {
    .modalForm,
    #confirmBlock {
        width: 420px !important;
        max-width: calc(100% - 2rem) !important;
        left: 50% !important;
        right: auto !important;
        top: 30% !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box !important;
    }

    .modalForm input {
        width: 100% !important;
        min-height: 44px;
        box-sizing: border-box !important;
        font-size: 16px;
    }
}

@media (max-width: 760px) {
    .modalForm,
    #confirmBlock {
        width: calc(100% - 2rem) !important;
        max-width: calc(100% - 2rem) !important;
        left: 1rem !important;
        right: auto !important;
        top: 20% !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    .modalForm input,
    .modalForm button {
        width: 100% !important;
        min-height: 44px;
        box-sizing: border-box !important;
        font-size: 16px;
    }
}

/* Центрирование текста внутри карточек работ и услуг. */
.l-company-info-work-grid article h4 {
    text-align: center;
}

.l-company-info-work-grid article p {
    text-align: center;
    text-align-last: center;
}
