:root {
    --black: #000000;
    --white: #f0f0f0;
    --gray: #d6d6d6;
    --red: #ff3234;
    --dark-red: #990000;
    --dark-blue: #2b4870;
    --dark-gray: #575757;
    --active-btn: #ffdd00;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--black);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: normal;
    text-align: left;
    background-color: var(--white);
}

.stop-scrolling {
    height: 100%;
    overflow: hidden;
}

br, p {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

a {
    color: var(--black);
    text-decoration: none;
}

hr {
    margin: 25px 0;
    height: 5px;
    background-color: var(--gray);
    border: none;
    border-radius: 3px;
}

.container {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
}


/* Header */
.header {
    margin: 40px auto 70px;
    display: flex;
    justify-content:space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: end;
    z-index: 2;
}

.logo-photo img {
    width: 100%;
    max-width: 122px;
}

.logo-name {
    margin-left: 20px;
    font-size: 44px;
    line-height: 125%;
}

.navigation {
    display: flex;
    justify-content: space-between;
}

.nav-link {
    text-align: center;
    margin-right: 47px;
    font-size: 20px;
    color: var(--white);
    background-color: #000000;
    padding: 6px 18px;
    border-radius: 50px;
    transition: all .2s linear;
}
.nav-link:last-child {
    margin-right: 0;
}
.nav-link:hover {
    color: #000000;
    background-color: var(--active-btn);
}

.nav-link-active,
.nav-link-active:hover {
    background-color: #858585;
    color: var(--black);
}


/* Burger */
.burger {
    display: none;
    position: relative;
    justify-content: flex-end;
    align-items: center;
    width: 30px;
    height: 30px;
    margin-right: 20px;
    z-index: 1;
    cursor: pointer;
}

.burger span {
    width: 80%;
    height: 3px;
    /* transform: scale(1); */
    background-color: var(--black);
}

.burger::before,
.burger::after {
    position: absolute;
    left: 0;
    content: "";
    width: 100%;
    height: 3px;
    background-color: var(--black);
    transition: all .2s ease;
}
.burger::before {
    top: 0;
}
.burger::after {
    bottom: 0;
}

.burger.burger-active {
    position: absolute;
    top: 10%;
    right: 0;
}

.burger.burger-active span {
    display: none;
}
.burger.burger-active::before {
    top: 50%;
    transform: rotate(45deg);
}
.burger.burger-active::after {
    top: 50%;
    transform: rotate(-45deg);
}


/* Main */
.main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 100px;
}

/* Left side */
.left-side {
    width: 70%;
    margin-right: 20px;
    overflow: hidden;
}

.section-title {
    font-size: 47px;
    text-align: center;
    margin-bottom: 37px;
}

.news-block {
    display: flex;
}

.news-img img {
    width: 547px;
    height: 307px;
    object-fit: cover;
}

.news-content {
    margin: 0 0 0 20px;
}

.news-title {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 42px;
    font-weight: 500;
}
.news-title h3 {
    /* не знаю как, но это работает. не трогать! */
    width: calc(100vw - 200%);
    max-width: 437px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-important {  
    margin-left: 20px;
    font-size: 14px;
    color: var(--white);
    background-color: var(--red);
    padding: 1px 16px;
    border-radius: 50px;
}

.news-short {
    max-height: calc(1.6em * 6);
    font-size: 24px;
    line-height: 1.6em;
    text-align: justify;
    overflow: hidden;
}

.all-news {
    width: 100%;
    margin: 60px auto 0;
    text-align: center;
}
.all-news .nav-link {
    display: inline-block;
}


/* Right side */
.map {
    margin: 40px 0;
}

.map-text {
    font-size: 34px;
    text-align: center;
}

/* TODO: убрать на релизе */
/* .map img {
    max-width: 547px;
    max-height: 470px;
} */

.write-to-governance legend {
    font-size: 34px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    font-size: 34px;
}

.form-necessary {
    color: var(--red);
}

.form-input {
    width: 100%;
    height: 50px;
    background-color: var(--gray);
    border: 0;
    border-radius: 10px;
    font-size: 27px;
    padding: 0 15px;
}

.form-message {
    height: 321px;
    resize: none;
    padding: 5px 15px;
}

.form-file {
    height: auto !important;
    padding: 5px 0 5px 5px;
}
.form-result {
    font-size: 30px;
}

.g-recaptcha {
    margin-bottom: 35px;
}

.submit-btn {
    font-size: 25px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background-color: var(--gray);
    transition: all .2s linear;
}
.submit-btn:hover {
    background-color: var(--active-btn);
}


/* Footer */
.footer {
    background-color: var(--dark-gray);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
}

.footer-nav {
    width: 20%;
    margin-top: 36px;
}

.footer-nav-item {
    margin-bottom: 36px;
    font-size: 34px;
}
.footer-nav-item:last-child {
    margin-bottom: 0;
}

.footer-nav-link {
    font-weight: 100;
    color: var(--white);
}

.footer-nav-link-active {
    font-weight: 700;
    color: var(--white);
    font-size: 34px;
}

.footer-address {
    width: 33%;
    margin-top: 36px;
}

.footer-address p {
    font-size: 34px;
    color: var(--white);
    font-style: normal;
    margin-bottom: 30px;
}

.footer-map-link {
    color: var(--red);
    font-size: 34px;
    font-style: normal;
}

.footer-contacts {
    margin-top: 36px;
    color: var(--white);
}

.footer-contacts-title {
    font-size: 34px;
    font-weight: 700;
}

.footer-contacts-tel {
    font-size: 34px;
    margin: 30px 0;
}

.footer-contacts a {
    color: var(--white);
}

.footer-contacts-social {
    display: flex;
    justify-content: space-between;
}

.footer-contacts-social svg {
    height: 122px;
}

.footer-contacts-social-name {
    text-align: center;
    font-size: 20px;
    margin: 0;
}

.footer-contacts-subscribe {
    font-size: 34px;
    font-weight: 400;
    text-align: center;
    margin: 20px 0 25px;
}

.creator-link {
    padding: 10px;
}
.creator-link a {
    text-decoration: underline;
    display: flex;
    justify-content: center;
    align-items: center;
}
.creator-link a span {
    padding-right: 10px;
}
.creator-link a svg {
    max-width: 1.5em;
}


/* Media */
@media (max-width: 1695px) {
    .news-title {
        display: inline-flex;
    }
    .news-title h3 {
        width: 50vw;
        max-width: none;
    }
    .news-block {
        display: block;
        text-align: center;
    }
    .news-title {
        margin-bottom: 0;
    }
    .news-short {
        display: none;
    }
    .form-input {
        width: 95%;
    }
}

@media (max-width: 1485px) {
    .nav-link {
        margin-right: 23px;
    }
}

@media (max-width: 1390px) {
    .navigation {
        display: none;
    }
    .navigation {
        display: none;
        position: fixed;
        margin: auto 0;
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        background-color: var(--gray);
        z-index: 1;
    }
    .navigation-open {
        display: block;
        overflow-y: hidden;
    }
    .navigation .nav-link {
        margin: 0 auto;
        display: block;
        color: var(--black);
        background: none;
    }
    .navigation .nav-link:first-child {
        margin-top: 30vh;
    }
    .navigation .nav-link:hover {
        color: var(--active-btn);
        background: none;
    }
    .navigation .nav-link.nav-link-active {
        color: #716363;
    }
    .burger {
        display: flex;
    }

    .news-title h3 {
        width: 40vw;
    }
}

@media (max-width: 1160px) {
    .logo-photo img {
        max-width: 100px;
    }
    .logo-name {
        font-size: 40px;
    }

    .section-title {
        font-size: 35px;
    }
    .news-img img {
        width: 100%;
    }
    .news-title {
        font-size: 20px;
    }
    .news-title h3 {
        width: 25vw;
    }

    .gsInformer,
    .map iframe {
        width: 445px !important;
    }
    .form-label {
        font-size: 21px;
    }
    .form-input {
        height: 30px;
    }
    .form-message {
        height: 300px;
    }
    .form-file {
        height: auto;
        font-size: 21px;
    }
    .form-result {
        font-size: 22px;
    }

    .footer-nav-item,
    .footer-address p, .footer-contacts-tel {
        font-size: 25px;
    }
    .footer-contacts-title,
    .footer-map-link{
        font-size: 30px;
    }
    .footer-contacts-tel {
        margin: 20px 0;
    }
    .footer-contacts-social svg {
        height: 100px;
    }
    .footer-contacts-social-name {
        font-size: 16px;
    }
    .footer-contacts-subscribe {
        font-size: 25px;
    }
}

@media (max-width: 920px) {
    .section-title {
        margin-bottom: 15px;
    }
    .gsInformer,
    .map iframe {
        width: 330px !important;
    }
    .map-text,
    .write-to-governance legend,
    .footer-contacts-title {
        font-size: 28px;
    }
    .footer-map-link {
        font-size: 23px;
    }
}

@media (max-width: 750px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        margin: 0;
        background-color: var(--white);
        box-shadow: 0 0 15px var(--black); 
        z-index: 9; /* погода перекрывает, поэтому именно 9 */
    }
    .burger.burger-active {
        top: 30%;
    }
    .main {
        margin-top: 150px;
        display: block;
    }

    .left-side {
        width: 95%;
        margin: 0 auto;
    }
    .news-block:not(:first-of-type),
    .left-side>.news-container hr:not(:first-of-type) {
        display: none;
    }
    .news-title h3 {
        width: 75vw;
    }
    hr {
        margin: 15px 0;
    }
    .all-news {
        margin-top: 0;
    }

    .right-side {
        margin: 100px auto 0;
        width: 95%;
    }
    .gsInformer, .map iframe {
        width: 95vw !important;
        height: 40vh;
        max-height: 350px;
    }
    .form-input {
        width: 100%;
        font-size: 22px;
    }
    .form-message {
        height: 5em;
        min-height: 1em;
        max-height: 10em;
        resize: vertical;
    }
    .submit-btn {
        font-size: 22px;
        margin-top: 20px;
    }

    .footer-inner {
        display: block;
        width: 95%;
        padding-top: 10px;
    }
    .footer-nav {
        display: none;
    }
    .footer-address {
        width: 100%;
    }
    .footer-address p {
        margin-bottom: 10px;
        text-align: justify;
    }
    .footer-map-link {
        display: inline-block;
        width: 100%;
        text-align: center;
    }
    .footer-contacts {
        margin-top: 50px;
        text-align: center;
    }
    .footer-contacts-social {
        justify-content: center; 
    }
    .footer-contacts-social a:first-child {
        margin-right: 20px;
    }
    .footer-contacts-social a:last-child {
        margin-left: 20px;
    }
}

@media (max-width: 600px) {
    .news-title h3 {
        width: 60vw;
    }
}

@media (max-width: 500px) {
    .logo-photo img {
        max-width: 80px;
    }
    .logo-name {
        font-size: 30px;
    }
    .main {
        margin-top: 100px;
    }
}

@media (max-width: 400px) {
    .logo-photo img {
        max-width: 66px;
    }
    .logo-name {
        font-size: 25px;
    }
    .main {
        margin-top: 90px;
    }
}

@media (max-width: 350px) {
    .news-title h3 {
        width: 50vw;
    }
}

@media (max-width: 300px) {
    .logo-photo {
        display: none;
    }
    .creator-link {
        font-size: 14px;
    }
}