:root {
    --global-c5d9e9: #c5d9e9;
    --global-ffdd2d: #ffdd2d;
    --global-ffffff: #ffffff;
    --global-f0f8fe: #f0f8fe;
    --global-fs16: 16px;
    --global-fs14: 14px;
    --global-fs12: 12px;
    --global-fs10: 11px;
}

h1 {
    font-size: var(--global-fs16);
    font-weight: 600;
    text-align: center;
    padding-left: 30px;
}
table {
    border-collapse: collapse;
    margin-bottom: 30px;
    width: fit-content;
}
.btns {
    background-color: var(--global-ffdd2d);
    padding: 10px 20px;
    text-align: center;
    margin-bottom: 25px;
    cursor: pointer;
    font-size: 14px;
}
.button-icon {
    vertical-align: middle;
    margin-left: 5px;
    transition: 0.4s;
}
.btns:hover .button-icon {
    transform: rotate(45deg);
    transition: 0.4s;
}
#header {
    background: var(--global-ffdd2d);
    padding: 20px;
}
.contentBlock {
    display: flex;
    max-width: 1240px;
    margin: 0 auto;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}
.logotype {
    width: 10%;
}
#tileMenu {
    width: 100%;
    text-align: right;
}
#tileMenu ul {
    display: flex;
    justify-content: right;
    gap: 20px;
}
.tileMenuButton {
    padding: 15px 15px;
    background-color: var(--global-ffffff);
    border-radius: 3px;
    font-size: var(--global-fs16);
    position: relative;
}
.tileMenuButton.active-tile {
    background-color: #000000;
    color: var(--global-ffffff);
}
.tileMenuButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
#blockingDesc {
    font-size: 12px;
    color: gray;
    font-style: italic;
    margin-top: 10px;
}
#wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 10px 20px 10px;
    /* overflow: hidden; */
}
.captionTitle {
    font-size: var(--global-fs16);
    line-height: 32px;
    margin-bottom: 10px;
}
.captionText {
    font-size: var(--global-fs14);
    line-height: 25px;
    margin-bottom: 10px;
}
#brief, #formats {
    flex-direction: column;
}
.briefTableHead, .briefTableBody {
    font-size: var(--global-fs14);
    border: 1px solid var(--global-c5d9e9);
}
.briefTableHead {
    padding: 10px 10px;
    min-width: 300px;
}
.briefTableBody {
    background-color: var(--global-c5d9e9);
    text-align: right;
    position: relative;
}
.hint {
    opacity: 0;
    transition: all 0.4s;
    padding-left: 20px;
    font-size: var(--global-fs12);
}
.briefTable:hover .hint {
    opacity: 1;
    transition: all 0.4s;
}
.desc {
    font-size: 12px;
    font-style: italic;
    margin-bottom: 10px;
}
.citiesSelectTable {
    box-shadow: 0px 1px 7px 1px rgba(136, 136, 136, 0.2);
}
.citiesSelectTable thead td, .formatIndorChoiceTable thead td, .formatTransportChoiseTable thead td, .formatIndorRecoTable thead td, .formatTransportRecoTable thead td {
    font-size: 13px;
    border: 1px solid var(--global-c5d9e9);
    padding: 5px 10px;
    font-weight: 600;
    text-align: center;
    background-color: var(--global-f0f8fe);
    width: 50px;
}
.formatIndorRecoTable thead td, .formatTransportRecoTable thead td, .formatIndorChoiceTable thead td, .formatTransportChoiseTable thead td {
    padding: 5px 5px;
    height: 70px;
}
.citiesSelectTable tbody td, .formatIndorChoiceTable tbody td, .formatTransportChoiseTable tbody td, .formatIndorRecoTable tbody td, .formatTransportRecoTable tbody td {
    border: 1px solid var(--global-c5d9e9);
    height: 30px;
    width: 80px;
    background-color: #e6e6e6;
}
.citiesSelectTable tbody td:first-child, .formatIndorChoiceTable tbody td:first-child, .formatTransportChoiseTable tbody td:first-child, .formatIndorRecoTable tbody td:first-child, .formatTransportRecoTable tbody td:first-child {
    font-size: var(--global-fs14);
    padding: 2px 10px;
    background-color: var(--global-f0f8fe);
    width: 180px;
}
.customCheckbox {
    display: block;
    height: 100%;
    background-color: var(--global-ffffff);
}
.customCheckbox>input {
    position: absolute;
    z-index: -1;
    opacity: 0;
  }
.customCheckbox>span {
    align-items: center;
    user-select: none;
}
.customCheckbox>span::before {
    display: inline-block;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    border: none;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: var(--global-fs12);
}
/* .customCheckbox>input:not(:disabled):active+span::before {
    background-color: var(--global-ffdd2d);
} */
.customCheckbox>input:checked+span::before {
    content: attr(constr);
    background-color: var(--global-ffdd2d);
    /* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23000' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e"); */
    text-align: center;
    padding-top: 7px;
    font-weight: 600;
    font-size: 12px;
}
.customCheckboxCheck>input:checked+span::before {
    content: attr(constr);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23000' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}
.customCheckbox>input:disabled+span::before {
    background-color: #949494;
}
.formatIndorRecoTable input, .formatTransportRecoTable input, .kpi, .checkboxReco  {
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.tablesBlock {
    display: flex;
    gap: 20px;
}
.formatIndorChoiceTable, .formatIndorRecoTable {
    width: 67%;
    box-shadow: 0px 1px 7px 1px rgba(136, 136, 136, 0.2);
}
.formatTransportChoiseTable, .formatTransportRecoTable {
    width: 33%;
    box-shadow: 0px 1px 7px 1px rgba(136, 136, 136, 0.2);
}
#geography, #formats, #efficiency, #constructions {
    display: none;
}
.selects {
    background: var(--global-f0f8fe) url('https://tinkoffcalc.skyalliance.media/img/arrow.svg') no-repeat right 5px center;
    width: 100%;
    padding: 15px 30px 15px 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    transition: 0.4s;
}
.selects:hover,.selects:focus {
    background: var(--global-f0f8fe) url('https://tinkoffcalc.skyalliance.media/img/arrow.svg') no-repeat right 7px center;
    transition: 0.4s;
}
.selects:focus {
    border: none;
  }

.citiesMap {
    width: 70%;
}
.efficiencyTable {
    width: 100%;
    box-shadow: 0px 1px 7px 1px rgba(136, 136, 136, 0.2);
}
.selectOOHTable {
    width: 100%;
}
.formatsTableHead, .formatsTableBody, .OOHTableHead, .OOHTableBody {
    font-size: var(--global-fs14);
    border: 1px solid var(--global-c5d9e9);
}
.formatsTableHead, .OOHTableHead {
    padding: 10px 10px;
    min-width: 150px;
}
.formatsTableBody, .OOHTableBody {
    background-color: var(--global-f0f8fe);
    text-align: right;
    position: relative;
}
.efficiencyTableHead, .efficiencyTableBody {
    font-size: var(--global-fs14);
    border: 1px solid var(--global-c5d9e9);
    padding: 10px 10px;
}
.efficiencyTableBody {
    background-color: var(--global-f0f8fe);
    position: relative;
}
.kpiEfficiency {
    background-color: #cff3d7;
}
#efficiency .tableBlock {
    width: 35%;
}
#efficiency .chartBlock {
    width: 65%;
    align-self: center;
}
#calc {
    text-align: center;
    padding: 10px 20px;
    border: 2px solid var(--global-ffdd2d);
    background-color: var(--global-ffdd2d);
    border-radius: 7px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}
.shareBlock {
    text-align: center;
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Карта */

.rf-map,
.rf-map *{
    box-sizing: border-box;
}    
.rf-map {
    position: sticky;
    max-width: 980px;
    margin: auto;
    padding: 20px;
    top: 0;
}
.rf-map svg {
    width: 100%;
    height: 100%;  
}
.rf-map path {
    stroke: var(--global-ffffff);
    stroke-width: 1;
    stroke-linejoin: round; 
}
.rf-map [data-code] {
    fill: rgb(204, 204, 204);
    transition: fill 0.2s;
}
.dropfill {
    fill: #337AB7!important;
}
.mainfill {
    fill: #1d4567!important;
}
text {
    font-family: 'Calibri';
    font-size: var(--global-fs10);
    font-weight: 600;
    fill: black;
    display: none;
}

@media(max-width: 768px) {
    #header {
        padding: 10px;
    }
    .contentBlock {
        flex-wrap: wrap;
        flex-direction: row;
        gap: 5%;
    }
    .contentBlock img {
        width: 35%;
    }
    .contentBlock h1 {
        width: 30%;
        font-size: var(--global-fs14);
        min-width: auto;
        text-align: left;
    }
    #tileMenu ul {
        flex-direction: column;
        gap: 10px;
    }
    .tileMenuButton {
        font-size: var(--global-fs14);
    }
    #wrapper {
        width: 100%;
        padding: 10px;
    }
    .briefTable {
        width: 100%;
    }
    .briefTable tr {
        display: flex;
        flex-direction: column;
    }
    .blockTitle, .captionTitle {
        font-size: var(--global-fs14);
    }
    .briefTableHead, .briefTableBody, .captionText {
        font-size: var(--global-fs12);
    }
    #geography {
        flex-direction: column-reverse;
    }
    .citiesSelect {
        overflow-x: scroll;
    }
    .citiesMap {
        width: 100%;
    }
    .rf-map {
        padding: 20px 0;
    }
    .citiesSelectTable thead td, .formatIndorChoiceTable thead td, .formatTransportChoiseTable thead td, .formatIndorRecoTable thead td, .formatTransportRecoTable thead td {
        font-size: 11px;
        padding: 5px 7px;
    }
    .customCheckbox>span::before {
        background-size: 10px;
    }
    .formatsTableHead, .formatsTableBody {
        font-size: var(--global-fs12);
    }
    .formatIndorChoiceTable thead td, .formatTransportChoiseTable thead td, .formatIndorRecoTable thead td, .formatTransportRecoTable thead td {
        height: 50px;
    }
    .formatIndorChoiceTable, .formatIndorRecoTable, .formatTransportChoiseTable, .formatTransportRecoTable {
        width: 100%;
        max-width: 100%;
    }
    .tablesBlock {
        gap: 10px;
        overflow-x: scroll;
        position: relative;
        width: 100%;
        max-width: 100%;
    }
    /* Fix first column */
    .formatIndorChoiceTable, .formatIndorRecoTable {
        position: relative;
        table-layout: auto;
    }
    .formatIndorChoiceTable>tbody>tr>td:first-child, .formatIndorRecoTable tbody>tr>td:first-child {
        position: sticky;
        left: 0;
    }
    #efficiency .chartBlock {
        display: none;
    }
    #efficiency .tableBlock {
        width: 100%;
        justify-content: flex-start;
    }
    .efficiencyTableHead, .efficiencyTableBody {
        font-size: var(--global-fs12);
    }
}

/* Меню */

#menu-btn {
    position: absolute;
    top: -100%;
    left: -100%;
}
.menu-icon {
    visibility: hidden;
}
@media screen and (max-width: 768px) {
    .menu-btn {
        display: none;
    }
    .menu-icon {
        width: 25%;
        cursor: pointer;
        display: flex;
        justify-content: flex-end;
        padding: 30px 20px 30px 0;
        position: relative;
        user-select: none;
        visibility: visible;
    }
    .navicon {
        background: #333;
        display: block;
        height: 4px;
        width: 35px;
        position: relative;
    }
    .navicon:before {
        top: 10px;
    }
    .navicon:after {
        top: -10px;
    }
    .navicon:before, .navicon:after {
        background: #333;
        display: block;
        width: 100%;
        height: 100%;
        content: '';
        position: absolute;
        transition: all .2s ease-out;
    }
    #tileMenu {
        max-height: 0;
        transition: max-height .2s ease-out;
        overflow: hidden;
        margin: 0;
        padding-top: 20px;
    }
    #tileMenu .tileMenuButton {
        padding: 12px 20px;
    }
    .menu-btn:checked ~ #tileMenu {
        max-height: 300px;
    }
    .menu-btn:checked ~ .menu-icon .navicon {
        background: transparent;
    }
    .menu-btn:checked ~ .menu-icon .navicon:before {
        transform: rotate(-45deg);
    }
    .menu-btn:checked ~ .menu-icon .navicon:after {
        transform: rotate(45deg);
    }
    .menu-btn:checked ~ .menu-icon .navicon:before,
    .menu-btn:checked ~ .menu-icon .navicon:after {
        top: 0;
    }
}