* {
    box-sizing: border-box;
    vertical-align: baseline;
}

html,
body,
div,
span,
applet,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}


/* Устанавливаем базовую линию */

html {
    font-size: 100%;
    /* 16 px */
    line-height: 1.2;
    /* 24 px */
    -webkit-font-smoothing: antialiased;
    /* iOS */
    -moz-osx-font-smoothing: grayscale;
    /* macOS */
    text-rendering: optimizeLegibility;
}

html,
body,
.background {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #092656;
    color: #fff;
    font-family: Fact;
    min-width: 320px;
}

.background {
    background-image: url(../img/bg2.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    /* background-attachment: fixed; */
}

.container-conf {
    margin: 0 auto;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-image: url(../img/circle.svg);
    background-position: center 150px;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

.container-conf>header,
.container-conf>section {
    flex-grow: 1;
}

.container-conf .video {
    margin: 0 auto;
    padding: 0;
    max-width: 1200px;
    width: 100%;
    border: none;
    display: block;
    aspect-ratio: 16 / 9;
    /* position: absolute; */
    /* top: 0; */
    /* left: 0; */
    /* width: 100%; */
    /* height: 100%; */
}

.container-conf .chat {
    margin: 0;
    padding: 0;
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.container-conf .facecast {
    /* text-align: center;
	position: relative;
	padding-top: 56.25%; */
}

section.facecast .video-container {
    width: 80%;
    max-width: 1000px;
    position: relative;
    margin: 0 auto;
    height: 100%;
    text-align: center;
    position: relative;
    /* padding-top: 50%; */
}

.container-conf .facecast-chat {
    /* text-align: center;
	position: relative;
	padding-top: 30%; */
}

section.facecast-chat .chat-container {
    width: 80%;
    max-width: 1000px;
    position: relative;
    margin: 0 auto;
    height: 100%;
    text-align: center;
    position: relative;
    /*padding-top: 38.25%;*/
}

header {
    padding-top: 10px;
}

header .header-row {
    display: flex;
}

header .logo {
    background-image: url(../img/logo.svg);
    background-position: 60px 0px;
    height: 38px;
    width: 100%;
    margin-bottom: 5px;
    background-size: contain;
    background-repeat: no-repeat;
}

header .logo-mob {
    display: none;
    text-align: center;
}

header .logo-mob>img {
    max-height: 50px;
}

header .title-date {
    margin: 0 160px;
    text-align: center;
    line-height: 30px;
    font-size: 18pt;
    font-weight: bold;
}

header .row-2 {
    align-items: center;
    justify-content: space-between;
    margin-top: 0px;
    margin-bottom: 10px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: left;
}

.side {
    flex: 1 1 0;
    min-width: 0;
    transition: all .3s;
}

.middle {
    flex: 0 0 auto;
}

header .left-gradient,
header .right-gradient {
    width: auto;
    height: 50px;
    background-color: #00AEEF;
}

header .left-gradient {
    background-image: -webkit-gradient( linear, left top, right top, from(#00AEEF), to(rgba(0, 174, 239, 0)));
    background: -moz-linear-gradient(to right, #00AEEF, transparent);
    background: -o-linear-gradient(to right, #00AEEF, transparent);
    background: -webkit-linear-gradient(to right, #00AEEF, transparent);
    background: linear-gradient(to right, #00AEEF, transparent);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#FF00AEEF, endColorstr=#0000AEEF)";
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr=#FF00AEEF, endColorstr=#0000AEEF);
    zoom: 1;
}

header .right-gradient {
    background-image: -webkit-gradient( linear, right top, left top, from(#00AEEF), to(rgba(0, 174, 239, 0)));
    background: -moz-linear-gradient(to left, #00AEEF, transparent);
    background: -o-linear-gradient(to left, #00AEEF, transparent);
    background: -webkit-linear-gradient(to left, #00AEEF, transparent);
    background: linear-gradient(to left, #00AEEF, transparent);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#0000AEEF, endColorstr=#FF00AEEF,gradientType=1)";
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr=#0000AEEF, endColorstr=#FF00AEEF, gradientType=1);
    zoom: 1;
}

header .direct-line {
    font-family: DINCondensedC;
    font-size: 50pt;
    font-size: calc(44pt + (50 - 44) * ((100vw - 320px) / (1920 - 320)));
    text-transform: uppercase;
}

header .direct-line-title {
    font-size: 16pt;
    text-align: center;
    padding: 0 10px;
    max-width: 415px;
}

section.people {
    padding-bottom: 20px;
}

section.people,
div.people {
    display: flex;
}

div.people {
    margin: 0 85px;
    flex: 0 0 auto;
    gap: 2.5rem;
}

section.people .left-info>div.p>div {
    margin: 10px 0px;
}

section.people .left-info>div.p {
    margin: 10px 30px;
    max-width: 500px;
}

section.people .right-info>p {
    margin: 10px 30px;
    text-align: left;
    max-width: 450px;
}

section.people .left-info {
    display: flex;
    flex-direction: column;
    align-items: last baseline;
    /* justify-content: end; */
    padding-top: 10px;
    min-width: 300px;
    min-height: 243px;
    max-width: 800px;
    /* font-size: 11pt; */
    font-size: calc(11pt + (13.5 - 11) * ((100vw - 1024px) / (1920 - 1024)));
    height: fit-content;
    background-color: rgba(7, 155, 165, .4);
    background: -webkit-gradient( linear, left bottom, right top, from(rgba(7, 155, 165, .4)), to(rgba(0, 32, 158, .9)));
    background: -moz-linear-gradient( to top right, rgba(7, 155, 165, .4) 0%, rgba(0, 32, 158, .9) 100%);
    background: -o-linear-gradient( to top right, rgba(7, 155, 165, .4) 0%, rgba(0, 32, 158, .9) 100%);
    background: -webkit-linear-gradient( to top right, rgba(7, 155, 165, .4) 0%, rgba(0, 32, 158, .9) 100%);
    background: linear-gradient( to top right, rgba(7, 155, 165, .4) 0%, rgba(0, 32, 158, .9) 100%);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#4C07 9BA5,endColorstr=#E600 209E,gradientType=0,rotation=45)";
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr=#4C079BA5, endColorstr=#E600209E, gradientType=0, rotation=45);
}

section.people .left-info .theme {
    font-size: 12pt;
}

section.people .left-info .icon {
    height: 1.5rem;
    margin-right: 10px;
}

section.people .right-info {
    display: flex;
    align-items: center;
    justify-content: start;
    min-width: 215px;
    min-height: 243px;
    /* font-size: 11pt; */
    font-size: calc(11pt + (13.5 - 11) * ((100vw - 1024px) / (1920 - 1024)));
    height: fit-content;
    background-color: rgba(7, 155, 165, .4);
    background: -webkit-gradient( linear, left bottom, right top, from(rgba(0, 32, 158, .9)), to(rgba(7, 155, 165, .4)));
    background: -moz-linear-gradient( to top right, rgba(0, 32, 158, .9) 0%, rgba(7, 155, 165, .4) 100%);
    background: -o-linear-gradient( to top right, rgba(0, 32, 158, .9) 0%, rgba(7, 155, 165, .4) 100%);
    background: -webkit-linear-gradient( to top right, rgba(0, 32, 158, .9) 0%, rgba(7, 155, 165, .4) 100%);
    background: linear-gradient( to top right, rgba(0, 32, 158, .9) 0%, rgba(7, 155, 165, .4) 100%);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#E600 209E,endColorstr=#4C07 9BA5,gradientType=0,rotation=45)";
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr=#E600209E, endColorstr=#4C079BA5, gradientType=0, rotation=45);
}

section.people .right-info img {
    max-width: 150px;
    max-height: 150px;
    border: 2px solid #fff;
}

section.people .item {
    flex: 1 1 calc((100% / 3) - 2rem);
}

section.people .item .pic {
    max-width: 200px;
    max-height: 242px;
    margin: 0 auto;
    min-height: 242px;
}

section.people .item .pic-bg {
    position: relative;
    background-image: linear-gradient( to top right, rgb(3, 197, 219) 0%, rgba(5, 91, 147, 0.3) 100%);
    font-size: 0;
}

section.people .item:last-child .pic-bg {}

section.people .item .pic-bg span.corner {
    position: absolute;
}

section.people .item .pic-bg span.corner.left-top {
    border: 2px solid #fff;
    border-right: none;
    border-bottom: none;
    display: block;
    width: 35px;
    height: 35px;
    top: -4px;
    left: -4px;
}

section.people .item .pic-bg span.corner.right-bottom {
    border: 2px solid #fff;
    border-left: none;
    border-top: none;
    display: block;
    width: 35px;
    height: 35px;
    bottom: -8px;
    right: -8px;
}

section.people .item .pic img {
    max-width: 100%;
    height: auto;
    border: 3px solid transparent;
    min-height: 242px;
}

section.people .item .desc {
    font-family: DINCondensedC;
    font-size: 15pt;
    margin: 20px auto 0;
    width: 200px;
}

section.people .item .desc .name {
    font-family: Fact;
    font-weight: bold;
}

section.people .item .desc>p {
    margin: 0 auto;
    padding: 0;
    max-width: 270px;
}

footer {
    /* display: flex;
	align-items: center; */
    height: auto;
    background: #fff;
    text-align: center;
    font-size: 12pt;
    font-weight: 300;
    padding: 10px;
    margin-top: 20px;
    color: #16287A;
}

footer .row {
    justify-content: center;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    gap: 2rem;
}

footer .row>img {
    max-width: 120px;
}

footer .row>p {
    /* max-width: 930px; */
    /* margin: 0 auto; */
    /* padding: 0 35px; */
    text-align: left;
}

footer .row>p>.first-line {
    font-size: 16pt;
    font-weight: normal;
    font-family: "Fact Medium";
}

footer .row>p>.second-line {
    font-size: 18pt;
    font-weight: bold;
}

@media screen and (max-width:1525px) {
    section.people {
        /*! flex-wrap: wrap; */
        /* gap: 2rem; */
        /* justify-content: center; */
    }
    section.people .side {
        /* flex: 0 0 calc(50% - 1rem);
		height: auto; */
    }
    section.people .left-info {
        /* order: 2; */
    }
    section.people .right-info {
        /* order: 3; */
    }
    section.people .left-info>div.p {
        /* width: auto; */
    }
    section.people .right-info>p {
        text-align: center;
        /* width: auto; */
    }
    section.people .middle {
        /* flex: 0 0 auto;
		margin: 0;
		order: 1; */
    }
}


/* Ноутбуки и десктопы (стандартные мониторы) */

@media (max-width: 1280px) {}

@media screen and (max-width:1279px) {
    header {
        /* padding-top: 25px; */
    }
    header .logo {
        /* background-position: 60px center; */
        /* background: none;*/
        /* height: auto; */
        /* background-size: 15%; */
    }
    /*header .logo-mob
	{
		display: block;
	}*/
    header .title-date {
        /* margin: 0 auto; */
        /* width: 450px; */
    }
    header .row-2 {
        /* margin-top: 20px; */
        /* margin-bottom: 45px; */
    }
}

@media screen and (max-width:1199px) {
    div.people {
        margin: 0 35px;
        gap: 1.5rem;
    }
}

@media screen and (max-width:999px) {
    section.people {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-between;
    }
    section.people .left-info {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: 50%;
        order: 2;
        height: auto;
        min-height: unset;
    }
    section.people .left-info>div.p {
        margin: 10px 25px;
        /* width: 100%; */
        max-width: 100%;
        line-height: 1;
    }
    section.people .right-info {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: 50%;
        order: 3;
        height: auto;
        min-height: unset;
    }
    section.people .right-info>p {
        text-align: center;
        width: 100%;
    }
    section.people .middle {
        flex: 0 0 100%;
        margin: 0;
        order: 1;
        flex-wrap: wrap;
    }
}


/* Планшеты (альбомный режим) и небольшие ноутбуки */

@media (max-width: 1025px) and (orientation: landscape) {
    .container-conf {
        display: flex;
    }
    .container-conf .video {
        /* width: 60%;
		height: 100%; */
    }
    .container-conf .chat {
        /* width: 40%;
		height: 100%; */
    }
}

@media screen and (max-width:945px) {
    section.people .middle {
        /* flex: 0 0 100%; */
        /* flex-wrap: wrap; */
        /* padding: 20px; */
    }
    section.people .item {
        flex: 1 1 auto;
    }
    section.facecast .video-container {
        width: auto;
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media screen and (max-width:850px) {
    header .logo {
        background: none;
        height: auto;
    }
    header .logo-mob {
        display: block;
    }
    header .title-date {
        line-height: 1.3;
        margin: 0 30px;
    }
    section.people .left-info,
    section.people .right-info {
        /* font-size: calc(10pt + (13.5 - 10) * ((100vw - 320px) / (1920 - 320))); */
    }
    section.people .left-info .theme {
        /* font-size: calc(12pt + (14 - 12) * ((100vw - 320px) / (1920 - 320))); */
    }
    section.people .middle {
        padding: 0 20px;
    }
}


/* Планшеты (портретный режим) */

@media (max-width: 844px) and (orientation: portrait) {
    .container-conf .video {
        /* height: 30%; */
    }
    .container-conf .chat {
        /* height: 70%; */
    }
    .container-conf .facecast-chat {
        /* padding-top: 100%; */
        height: 560px;
    }
}

@media screen and (min-width:800px) {
    section.facecast-chat {
        /*display: none;*/
    }
}

@media (orientation: portrait) and (max-width:800px) {}

@media screen and (max-width:799px) {
    header .row-2 {
        flex-wrap: wrap;
        justify-content: center;
        align-items: start;
    }
    header .left-gradient {
        order: 1;
    }
    header .direct-line {
        order: 2;
        max-width: 100%;
        text-align: center;
        height: 50px;
        line-height: 50px;
    }
    header .direct-line-title>br {
        display: none;
    }
    header .right-gradient {
        order: 3;
    }
    header .direct-line-title {
        order: 4;
        flex: 0 0 100%;
    }
    section.facecast-chat .chat-container {
        width: auto;
        margin-left: 15px;
        margin-right: 15px;
        padding-top: 50%;
    }
}

@media screen and (max-width:699px) {
    section.people .side {
        flex-basis: 100%;
        max-width: unset;
        align-items: anchor-center;
    }
    section.people .left-info>div.p {
        margin: 15px;
        /* width: 100%; */
    }
    section.people .right-info>p {
        margin: 15px;
        width: 100%;
        text-align: left;
        max-width: unset;
        display: flex;
        gap: 1rem;
        flex-direction: row-reverse;
        justify-content: center;
    }
}

@media screen and (max-width:589px) {
    header .direct-line-title>br {
        display: inline;
    }
}

@media screen and (max-width:596px) {
    footer {
        /* font-size: 15pt; */
    }
    footer .row {
        flex-direction: column;
        gap: 0.5rem;
    }
    footer .row>p {
        /* padding: 0 20px; */
    }
    header .side {
        /* display: none; */
    }
    header .direct-line {
        /* font-size: 18vw; */
    }
    header .title-date>span {
        display: block;
    }
}

@media screen and (max-width:560px) {}

@media screen and (max-width:520px) {
    section.facecast-chat .chat-container {
        padding-top: 100%;
    }
    section.people.disable-qr .left-info>div.p {
        margin: 20px 30px;
    }
}

@media screen and (max-width:505px) {
    footer {
        font-size: 13pt;
    }
    footer>p {
        padding: 0 15px;
    }
    header .title-date {
        /* font-size: 8vw; */
        width: auto;
    }
    header .title-date>span {
        display: block;
    }
    header .direct-line-title {
        /* font-size: 7vw; */
    }
}


/* Мобильные устройства (портретный режим) */

@media (max-width: 480px) and (orientation: portrait) {
    .container-conf .video {
        /* height: 30%; */
    }
    .container-conf .chat {
        /* height: 70%; */
    }
    .sm-hide {
        display: none !important;
    }
    header .direct-line {
        /* line-height: 64px;
		outline: 1px solid red; */
    }
}


/* Мобильные устройства (альбомный режим) */

@media (max-height: 480px) and (orientation: landscape) {
    .sm-hide {
        display: none !important;
    }
    section.people .side {
        flex-basis: 100%;
        width: 100%;
        max-width: unset;
    }
    section.people .left-info>div.p {
        margin: 15px;
    }
}

@media screen and (max-width:400px) {
    header .direct-line-title {
        /* font-size: 8vw; */
    }
}

@media screen and (max-width:344px) {
    footer {
        font-size: 12pt;
    }
}

@media (orientation: portrait) {
    .background {
        background-image: url(../img/bg-mob.jpg);
    }
}

@media (max-width:999px) and (min-resolution: 2dppx) and (pointer: coarse) and (hover: none) {
    header .direct-line {
        line-height: 64px;
        /*outline: 1px solid red;*/
    }
}


/* Встроенный чат (/chat/frame.html): вплотную под видео и той же ширины.
   Перекрывает правила .facecast-chat / .chat-container под старый чат Facecast (phpConf/*):
   padding-top и фиксированная высота секции давали просвет над чатом и наезд на футер */

.container-conf>section.facecast,
.container-conf>section.facecast-chat.chat-widget {
    flex-grow: 0;
}

.container-conf section.facecast-chat.chat-widget {
    display: block;
    height: auto;
}

.container-conf section.chat-widget .chat-container {
    padding-top: 0;
}

.container-conf section.chat-widget .chat-frame {
    display: block;
    width: 100%;
    /* height: 640px; */
    height: 480px;
    border: 0;
}

@media screen and (max-width:945px) {
    .container-conf section.chat-widget .chat-container {
        width: auto;
        margin-left: 15px;
        margin-right: 15px;
    }
}