* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: #fff;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.sidebar {
    width: 160px;
    background: rgba(54, 99, 54, 1);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    height: 92%; /* 100px - высота футера */
}

.header {
    display: flex;
    align-items: center;
    justify-content: baseline;
    padding: 10px;
    background: rgba(217, 217, 217, 0.31);
    border-radius: 22.5px;
    margin: 40px 20% 10px;
    max-width: 80%;
    position: sticky;    
    top: 0;
    z-index: 100;
}

.header-nav {
    display: flex;    
    gap: 5px;
}

.header-link {    
    display: inline-block;
    margin-left: 1.2rem;
    padding: 5px 10px;
    text-decoration: none;
    color: rgba(210, 251, 205, 1);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 1rem;
    background: rgba(30, 30, 30, 1);
    transition: background 0.3s ease;
}

.header-link-green {
    background: rgba(0, 170, 0, 1);
    color: rgba(210, 251, 205, 1);
}

.header-link:hover {
    background: rgba(18, 160, 72, 1);
}

.header-title {
    color: rgba(0, 170, 0, 1);
    float: left;
    margin-left: 3rem;
    margin-right: 2rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.main-content {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

/* Слоган */
.slogan-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.image-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.image-section {
    flex: 1;
    max-height: 330px;
    border-radius: 29px;
    overflow: hidden;
}

.image-bg {
    width: 100%;
    height: 330px;
    object-fit: cover;
    border-radius: 29px;
}

.text-block {
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 29px;
}

.slogan-text {
    color: rgba(210, 251, 205, 1);
    background: rgba(30, 30, 30, 1);
    border-radius: 1rem;
    padding: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    text-align: left;
    width: 20%;
}

.text-block-image {
    width: 80%;
    height: auto;
    object-fit: cover;
    border-radius: 29px;   
    right: 0;    
}

/* Видео */
.video-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.video-block {
    width: 100%;
    height: 500px;
    border-radius: 29px;
    overflow: hidden;
}

.video-block iframe {
    width: 100%;
    height: 100%;
}

.content-button {
    background: rgba(21, 183, 0, 1);
    width: 100%;
    max-width: 385px;
    height: 80px;
    border-radius: 20px;
    align-self: center;
    justify-self: center;
    text-align: center;
    color: white;
    text-decoration: none;
    padding-top: 20px;
    font-size: 2rem;
    font-weight: 700;
}

/* Описание к видео */
.description-section {
    margin-bottom: 20px;
    padding: 0 40px;
}

.description-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.description-card {
    background: rgba(30, 30, 30, 1);
    border-radius: 29px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 75%;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.description-card-right{    
    justify-items: end;         
}

.content-text {
    color: rgba(210, 251, 205, 1);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;    
    display: block;
    width:100%;
}

/* Авторы и лицензии */
.team-section {
    background: rgba(54, 99, 54, 1);
    padding: 60px 0;
    position: relative;
    z-index: 10;
    width: 99.2vw;
}

.team-members {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 0 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.team-member {
    flex: 1;
    height: 450px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 35px;
    overflow: hidden;
}

.team-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 35px;
}

.team-member-info {
    color: rgba(210, 251, 205, 1);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    position: absolute;
    bottom: 10px;
}

.license-heading {
    color: rgba(210, 251, 205, 1);
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.license-blocks {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 0 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.license-block {
    flex: 0 0 28%;
    height: 500px;
    border-radius: 29px;
    overflow: hidden;
}

.license-block-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 29px;
}

/* Контактная секция */
.contact-section {
    position: relative;
    padding: 60px 40px;
    margin: 20px 0;
    z-index: 10;
}

.contact-section > div:not(.contact-offset) {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 30px;
    padding: 20px;
}

.contact-offset{
    background-color: #1E1E1E;
    border-radius: 45px;
    margin: 2rem;
}

.contact-heading {
    color: rgba(18, 160, 72, 1);
    font-weight: 700;
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 20px;
    margin-left: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 4px;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 25px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-label {
    color: rgba(18, 160, 72, 1);
    font-size: 1.5rem;
    display: inline;
}

.contact-label-name,
.contact-label-email {
    width: 150px;
}

.input-group:has(.contact-label-name),
.input-group:has(.contact-label-email) {
    width: 880px;
}

.contact-input {
    background: rgba(210, 251, 205, 1);
    color: black;
    border: none;
    border-radius: 23px;
    padding: 10px;
    font-size: 1rem;
    flex: 1;
}

.contact-input-message {
    min-height: 150px;
    resize: vertical;
}

.contact-button {
    background: rgba(21, 183, 0, 1);
    color: rgba(210, 251, 205, 1);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 8px;
}

input:required:invalid ~ button.contact-button {
  opacity: .65;
  pointer-events: none;
}

/* Новый футер */
.new-footer {
    background: rgba(30, 30, 30, 1); /* #1E1E1E */
    padding: 40px 20px;
    position: relative;
    z-index: 10;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-link {
    color: rgba(211, 251, 205, 1); /* #D3FBCD */
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}

.footer-link:hover {
    text-decoration: none;
    color: rgba(18, 160, 72, 1);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social-link {
    display: inline-block;
}

.footer-social-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column-title {
    color: rgba(211, 251, 205, 1); /* #D3FBCD */
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-column-link {
    color: rgba(211, 251, 205, 1); /* #D3FBCD */
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-column-link:hover {
    text-decoration: none;
    color: rgba(18, 160, 72, 1);
}

/* Удаление ненужных стилей */
.content-block,
.content-block-1,
.content-block-2,
.content-block-3,
.content-block-4,
.content-block-5,
.content-block-6,
.content-block-7,
.content-block-8,
.content-block-9,
.content-block-10 {
    display: none;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .sidebar {
        width: 100px;
        height: 86%;
    }

    .header {
        flex-direction: column;
        gap: 5px;
        margin: 10px auto;
        max-width: 80%;
    }

    .header-nav {
        flex-wrap: wrap;
        justify-content: center;        
    }

    .header-link {
        padding: 4px 8px;
        font-size: 0.9rem;
    }

    .header-title {
        font-size: 0.75rem;
    }

    .image-row {
        flex-direction: column;
    }

    .image-section {
        max-height: 200px;
    }

    .image-bg {
        height: 200px;
    }

    .text-block {
        flex-direction: column;
    }

    .slogan-text {
        width: 100%;
    }

    .text-block-image {
        width: 100%;
        height: 200px;
    }

    .video-block {
        height: 300px;
    }

    .description-section {
        padding: 0 20px;
    }

    .description-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .description-card {
        padding: 15px;
        justify-self: center;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    .description-card-right{
        margin-left: 0%;
    }
    .content-text-1 {
        font-size: 1.5rem;
    }

    .team-members {
        flex-direction: column;
    }

    .team-member {
        height: 200px;
    }

    .license-blocks {
        flex-direction: column;
    }

    .license-block {
        height: 300px;
    }

    .contact-section {
        padding: 40px 20px;
    }

    .contact-section > div {
        padding: 15px;
    }

    .contact-form {
        padding: 30px;
        max-width: 100%;
    }

    .contact-heading {
        font-size: 2rem;
        text-align: left;
    }
    .contact-input {
        width: 100%;        
    }
    .contact-label {
        font-size: 1.2rem;
    }

    .input-group:has(.contact-label-name),
    .input-group:has(.contact-label-email) {
        width: 350px;
    }

    .new-footer {
        padding: 30px 20px;
    }

    .footer-menu {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-nav {
        flex-wrap: wrap;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-columns {
        flex-direction: column;
        gap: 15px;
    }

    .footer-column {
        align-items: center;
    }
}

@media (max-width: 440px) {
    .sidebar {
        width: 80px;
        height: 86%;
    }

    .header {
        margin: 10px auto;
        max-width: 80%;    
    }
    
    .header-link {
        margin-left: 0;
        padding: 4px 8px;
        font-size: 0.6rem;
    }

    .header-title {
        margin-left: 1rem;
        margin-right: 0;
    }
    .image-section {
        max-height: 150px;
    }

    .image-bg {
        height: 150px;
    }

    .slogan-text {
        font-size: 1rem;
    }

    .text-block-image {
        height: 150px;
    }

    .video-block {
        height: 200px;
    }

    .description-section {
        padding: 0 10px;
    }

    .description-card {
        padding: 10px;
    }

    .content-text {
        font-size: 1rem;
    }

    .content-text-1 {
        font-size: 1.3rem;
    }

    .team-member {
        height: 120px;
    }

    .team-member-info {
        font-size: 0.9rem;
    }

    .license-heading {
        font-size: 2rem;
    }

    .contact-section {
        padding: 30px 10px;
    }
    .contact-offset{
        margin: 8px;
    }
    .contact-form {
        padding: 20px;
    }
    .contact-heading{
        margin-left: 1rem;
    }
    .contact-input {
        width: 100%;
        font-size: 0.9rem;
    }

    .contact-button {
        font-size: 1rem;
        padding: 8px 16px;
    }

    .input-group:has(.contact-label-name),
    .input-group:has(.contact-label-email) {
        width: 1rem;
    }

    .footer-link {
        font-size: 0.1rem;
    }

    .footer-social-icon {
        width: 14px;
        height: 14px;
    }

    .footer-column-title {
        font-size: 1rem;
    }

    .footer-column-link {
        font-size: 0.8rem;
    }
}