:root {
    --text-primary: #1D1D1B;
    --text-secondary: #6D727C;

    --border-color: #C2C5CB;

    --bg-disabled: #C2C5CB;
    --bg-selected: #F5F7FA;
    --bg-primary: #FFFFFF;

    --link-primary: #004BC1;
    --link-hover: #234161;
    --link-visited: #552C92;

    --accent-color: #FFE358;
    --accent-hover: #FFD301;
    --secondary-color: #C2C5CB;
    --error-color: #FF0000;

    --opacity-1: .7;
    --opacity-2: .5
}
body::-webkit-scrollbar {
    width: 0.3em;
}
body::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px #2F3234;
}
body::-webkit-scrollbar-thumb {
    background-color: #212529;
    outline: 1px solid #212529;
    border-radius: 30px;
}
body {
	font-family: 'Zona Pro', sans-serif;
    font-weight: normal;
    font-size: 16px;
    background-color: #212529;
    color: rgb(248,249,250);
	-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}
h1, h2, .h1, .h2 {
    text-transform: uppercase;
    font-weight: 800;
}

a {
    color: var(--link-primary);
}
.link {
    color: inherit;
    text-decoration: none;
    font-weight: 800;
}
.link:before {
    content: '\F1C5\20';
    font-family: 'bootstrap-icons';
    color: #6a8150;
}
#navbarsExampleDefault .nav-link.active {
    color: #9fbfd1;
    font-weight: bold;
}
a:hover {
    color: var(--link-hover);
}

#top {
    background: #000;
}

header + main, #cover + main, footer{
    padding: 1rem 0;
}

header.lighter {
	box-shadow: 0px 0px 15px 0px rgb(73 80 86);
}


#sitename {
    color: #fff;
    padding-left: 0.5rem;
    font-weight: 700;
}
.lighter #sitename {
    color: #6a8150;
}

footer {
    padding: 1rem 0;
    background: #2f3234;
}

header .custom-logo-link img {
    height: 35px;
}

@media(min-width:768px) {
    header + main, #cover + main, footer {
        margin-top: 3rem;
    }
    footer {
        padding: 3rem 0;
    }
	h1 {
		font-size:4rem;
	}
	h2 {
		font-size:3rem;
	}
	#cover {
	    padding: 4rem;
	}
	header .custom-logo-link img {
        height: 65px;
    }
    header .navbar-collapse {
        background: none !important;
    }
}
@media(min-width:1440px) {
    header + main, #cover + main {
        margin-top: 4rem;
    }
}

.navbar.covered .nav-link {
    color: #fff;
}

.custom-logo-link img {
    height: 65px;
    width: auto;
}

.language a.active {
    font-weight: 600;
}
.language a:not(.active) {
    color: var(--text-secondary);
}
.language .divider:before {
    content: '';
    width: 1px;
    background: #6a8150;
    height: 1.4rem;
    display: block;
}

#cover {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    flex-direction: column;
    position: relative;
    text-align: center;
}
#cover:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #333;
    opacity: .3;
}
#cover > * {
    z-index: 1;
}

.img-responsive {
    width: 100%;
    object-fit: cover;
    object-position: center;
    height: auto;
}

.thumbnail > img {
    width: 100%;
    height: auto;
}

.post-item .image img {
    width: 100%;
    height: auto;
}
.post-item .name {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.4rem;
    display: block;
    color: var(--text-color);
    text-transform: uppercase;
}
.dashed-item {
    border-bottom: 1px dashed var(--border-color);
}
#breadcrumbs {
    margin: 0;
}
#breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.btn-main {
    background: #9FBFD1;
    color: #212529;
    font-weight: 700;
}
.btn-main:hover, .btn-main:active {
    background: #2b2e26;
    color: #fff;
}
.btn-main.blur {
    box-shadow: 0 0 7px 0px #9FBFD1;
}

.wpcf7-form-control {
    padding: 10px;
    width: 100%;
}
.wpcf7-submit {
    width: auto;
    padding: 10px 25px;
    background: #6a8150;
    border: 1px solid #6a8150;
    color: #212529;
    font-weight: 600;
}
#subscribe > p {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
}
#subscribe .wpcf7-form-control-wrap {
    width: 100%;
}
#subscribe .wpcf7-spinner {
    display: none;
}
#subscribe > p input {
    width: 100%;
}
#subscribe > p input[type="submit"] {
    width: 20%;
}
#subscribe-form .h2 {
    text-transform: uppercase;
    font-weight: 700;
    opacity: .5;
    margin-bottom: 1rem;
}

@media(max-width:991px) {
    #subscribe > p {
        flex-wrap: wrap;
    }
    #subscribe > p input[type="submit"] {
        width: auto;
    }
}

.copy-me:before {
    content: '\F290\20';
    font-family: 'bootstrap-icons';
    color: #6a8150;
}
.copy-me.text-success:before {
    content: '\F28B\20';
    font-family: 'bootstrap-icons';
    color: #6a8150;
}

/* Контейнер для фонового відео */
  .video-bg {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    background: #000;
  }

  .video-bg__media {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
  }

  /* Контейнер з аспектним співвідношенням для iframe */
  .video-bg__ratio {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%; /* 16:9 — 100 * (16/9) */
    height:  177.78%;
    transform: translate(-50%, -50%);
  }

  /* Якщо вікно вузьке — міняємо пропорції, щоб уникнути чорних полів */
  @media (max-aspect-ratio: 16/9) {
    .video-bg__ratio {
      width: 100%;
      height: 177.78%; /* зворотне співвідношення */
    }
  }

  .video-bg__ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .video-bg__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25));
    z-index: 2;
    color: #fff;
    text-align: center;
  }

  .video-bg__content {
    max-width: 800px;
  }


  @media (max-width: 600px) {
    .video-bg { height: 35vh; }
	.video-bg__ratio {
      width: 100%;
      height: 135%; /* зворотне співвідношення */
    } 
  }