/*=============== GOOGLE FONTS ===============*/
/* @import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700&display=swap"); */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(14, 98%, 50%);
    --black-color: hsl(0, 0%, 0%);
    --black-color-light: hsl(0, 0%, 40%);
    --white-color: hsl(0, 0%, 95%);
    --title-color: #8b6e60;
    --text-color: hsl(0, 0%, 35%);
    --text-color-light: hsl(0, 0%, 64%);
    --body-color: hsl(0, 0%, 100%);
    --container-color: hsl(0, 0%, 83%);
    --theme-transition: .22s ease;
    --nav-search-input-bg: #ffffff;

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Montserrat", sans-serif;
    --biggest-font-size: 2.5rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /*========== Font weight ==========*/
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
    :root {
        --biggest-font-size: 4.5rem;
        --h1-font-size: 3rem;
        --h2-font-size: 1rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    transition: background-color var(--theme-transition), color var(--theme-transition);
    overflow-y: scroll;
    /* For dark mode */
}

h1,
h2,
h3,
h4 {
    color: var(--title-color);
    font-weight: var(--font-bold);
}

h2 {
    position: relative;
    width: max-content;
    margin: .75rem auto 2rem;
}

h3 a {
    color: var(--text-color);
}

.password-control {
    position: absolute;
    top: 20px;
    right: 15px;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(../../images/view.svg) 0 0 no-repeat;
}

.password-control.view {
    background: url(../../images/no-view.svg) 0 0 no-repeat;
}

.upload_form_picture {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.child1 {
    width: 50%;
}

.child2 {
    width: 50%;
}

.upload-form {
}

.upload-form h1 {
    margin: 0;
    padding: 15px;
    font-size: 18px;
    font-weight: 500;
    color: #434850;
    text-align: center;
}

.upload-form label {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    background-color: #fafbfb;
    border: 1px solid #e6e8ec;
    color: #737476;
    padding: 10px 12px;
    font-weight: 500;
    font-size: 14px;
    margin: 10px 0;
    /* border-radius: 4px; */
    cursor: pointer;
}

.upload-form label i {
    margin-right: 10px;
    padding: 5px 0;
    color: #dbdce0;
}

.upload-form label span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    word-break: break-all;
}

.upload-form label:hover {
    background-color: #f7f8f9;
    border: 1px solid #e3e5ea;
    color: #68686a;
}

.upload-form label:hover i {
    color: #cfd1d4;
}

.upload-form input[type="file"] {
    appearance: none;
    visibility: hidden;
    height: 0;
    width: 0;
    padding: 0;
    margin: 0;
}

.upload-form .progress {
    height: 20px;
    /* border-radius: 4px; */
    margin: 10px 0;
    background-color: #e6e8ec;
}

.upload-form button {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .5rem;
    background-color: var(--black-color);
    padding: 1.1rem 1.5rem;
    color: var(--white-color);
    font-weight: var(--font-medium);
    transition: background-color .4s;
    border: none;
    cursor: pointer;
}

.upload-form button:hover {
    background-color: var(--title-color);
}

.upload-form button:disabled {
    background-color: #aca7a5;
}

.upload-form .result {
    padding-top: 15px;
}

#window {
    position: absolute;
    display: none;
    width: auto;
    float: left;
    clear: both;
    background: var(--black-color);
    top: 100%;
    z-index: 30;
}

#window a {
    clear: both;
    float: left;
    height: auto;
    width: 100%;
    padding: 10px 15px;
    color: white;
    display: none;
    text-decoration: none;
}

.activation_info {
    text-align: center;
    margin-top: 20px;
    margin-inline: 1.5rem;
}

.font_green {
    display: block;
    float: left;
}

.font_gray {
    display: block;
    float: right;
}

.font_gray a {
    text-decoration: underline;
}

.table tr td {
    padding-right: 30px;
    padding-bottom: 15px;
}

.text_list {
    padding-bottom: 0px;
}

.text_list span a {
    text-decoration: underline;
}

.text_list span:first-child {
    display: block;
    float: left;
    padding-right: 20px;
    width: 30px;
}

.text_list span:last-child {
    padding-right: 20px;
    display: block;
}

ul {
    list-style: none;
}

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

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

/*=============== THEME ===============*/
.nav__buttons {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.change-theme {
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
    transition: color .3s;
}

/*========== Variables Dark theme ==========*/
:root.dark-theme,
body.dark-theme {
    --first-color: hsl(14, 80%, 50%);
    --black-color: hsl(0, 0%, 18%);
    --black-color-light: hsl(0, 0%, 30%);
    --title-color: hsl(0, 0%, 95%);
    --text-color: hsl(0, 0%, 70%);
    --body-color: hsl(0, 0%, 8%);
    --container-color: hsl(0, 0%, 12%);
    --nav-search-input-bg: #121212;
}

/*==========
	Color changes in some parts of
	the website, in dark theme
==========*/
.dark-theme .shadow-header {
    box-shadow: 0 1px 12px hsla(0, 0%, 0%, .6);
}

.dark-theme .section__title-1::after,
.dark-theme .section__title-2::after {
    background-color: hsla(14, 70%, 50%, .2);
}

.dark-theme :is(.home__arrow, .home__line, .about__line) {
    filter: none;
}

.dark-theme .home__description b {
    background: linear-gradient(90deg,
    hsla(14, 80%, 50%, .3),
    hsla(14, 80%, 50%, 0));
}

.dark-theme :is(.button__ghost, .services__icon i) {
    color: var(--white-color);
}

.dark-theme .projects__card:hover {
    background-color: var(--body-color);
}

.dark-theme .about__info {
    background-color: #121212;
}

.dark-theme .projects__card {
    background-color: #121212;
}

.dark-theme .breadcrumb,
.dark-theme .ol_style {
    background-color: #121212;
}

.dark-theme .ol_style {
    border-bottom: 2px dotted #ffffff;
}

.dark-theme .breadcrumb li,
.dark-theme .breadcrumb li a,
.dark-theme .ol_style li,
.dark-theme .ol_style li a {
    color: #ffffff;
}

.dark-theme .breadcrumb > li + li::before {
    color: rgba(255, 255, 255, .7);
}

.nav-search {
    background-color: var(--menu-header-bg, var(--body-color));
    border-radius: 999px;
    padding: .2rem .45rem;
    transition: background-color var(--menu-theme-transition, var(--theme-transition)), box-shadow var(--menu-theme-transition, var(--theme-transition));
}

.nav-search__input {
    background-color: var(--nav-search-input-bg);
    transition: background-color var(--theme-transition), border-color var(--theme-transition), color var(--theme-transition);
}

.nav-search__button {
    transition: color var(--theme-transition), transform .15s ease, opacity .15s ease;
}

.dark-theme .nav-search__input {
    background-color: var(--nav-search-input-bg);
    border-color: rgba(255, 255, 255, .35);
    color: #ffffff;
}

.dark-theme .nav-search__input::placeholder {
    color: rgba(255, 255, 255, .75);
}

.dark-theme .nav-search__input:focus {
    border-color: #ffffff;
}

.dark-theme .nav-search__button {
    color: #ffffff;
}

.dark-theme .custom-pagination .page-item:not(.active) .page-link {
    color: rgba(255, 255, 255, .75);
}

.dark-theme .custom-pagination .page-item:not(.active) .page-link:hover {
    color: #ffffff;
}

.user-theme-scope {
    background-color: var(--body-color);
    transition: background-color var(--theme-transition), color var(--theme-transition);
}

.user-theme-scope form {
    background-color: var(--body-color);
    transition: background-color var(--theme-transition), color var(--theme-transition);
}

.dark-theme .user-theme-scope {
    color: var(--text-color);
}

.dark-theme .user-theme-scope a {
    color: #ffffff;
}

.dark-theme .user-theme-scope a:hover {
    color: #d4d4d4;
}

.dark-theme .user-theme-scope .enter__input,
.dark-theme .user-theme-scope .form-control,
.dark-theme .user-theme-scope textarea,
.dark-theme .user-theme-scope select,
.dark-theme .user-theme-scope .select-css {
    background-color: #121212;
    border-color: #3a3a3a;
    color: #ffffff;
    transition: border-color var(--theme-transition), background-color var(--theme-transition), color var(--theme-transition);
}

.dark-theme .user-theme-scope .enter__input::placeholder,
.dark-theme .user-theme-scope .form-control::placeholder,
.dark-theme .user-theme-scope textarea::placeholder {
    color: rgba(255, 255, 255, .7);
}

.dark-theme .user-theme-scope #login-form .enter__input:-webkit-autofill,
.dark-theme .user-theme-scope #login-form .enter__input:-webkit-autofill:hover,
.dark-theme .user-theme-scope #login-form .enter__input:-webkit-autofill:focus,
.dark-theme .user-theme-scope #login-form .enter__input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px #121212 inset;
    box-shadow: 0 0 0 1000px #121212 inset;
    caret-color: #ffffff;
    transition: background-color 9999s ease-in-out 0s;
}

.dark-theme .user-theme-scope .enter__input:focus,
.dark-theme .user-theme-scope .form-control:focus,
.dark-theme .user-theme-scope textarea:focus,
.dark-theme .user-theme-scope select:focus {
    border-color: #ffffff;
}

.dark-theme .user-theme-scope .enter__label {
    color: rgba(255, 255, 255, .8);
    background-color: var(--body-color);
    transition: background-color var(--theme-transition), color var(--theme-transition), top .4s, opacity .4s;
}

.dark-theme .user-theme-scope .button {
    background-color: #121212;
    border: 1px solid #3a3a3a;
    color: #ffffff;
}

.dark-theme .user-theme-scope .button:hover {
    background-color: #1c1c1c;
}

.dark-theme .user-theme-scope .button.red {
    background-color: #7f1d1d;
    border-color: #b91c1c;
    color: #ffffff;
}

.dark-theme .user-theme-scope .google-login {
    border-color: #3a3a3a;
    background-color: #121212;
    color: #ffffff;
}

.dark-theme .user-theme-scope .google-login:hover {
    background-color: #1c1c1c;
}

.dark-theme .user-theme-scope .custom-checkbox .box {
    border-color: #525252;
    background-color: #121212;
}

.dark-theme .user-theme-scope .alert {
    background-color: #122012;
    color: #e5ffe5;
    border-color: #294029;
}

.dark-theme .user-theme-scope .loading,
.dark-theme .user-theme-scope .info6 {
    background-color: #121212;
    border-color: #2b2b2b;
    color: #ffffff;
}

.dark-theme :is(.contact__mail, .contact__input, .contact__label) {
    background-color: var(--container-color);
}

.dark-theme .contact__mail {
    background-color: #000000;
}

.dark-theme .contact__input,
.dark-theme .contact__label {
    background-color: #000000;
}

.dark-theme .footer {
    background-color: hsl(0, 0%, 4%);
}

.dark-theme::-webkit-scrollbar {
    background-color: hsl(0, 0%, 20%);
}

.dark-theme::-webkit-scrollbar-thumb {
    background-color: hsl(0, 0%, 30%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
    background-color: hsl(0, 0%, 40%);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.enter {
    text-align: right;

}

.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding-block: 4rem 2rem;
}

.section__title-1,
.section__title-2 {
    position: relative;
    font-size: var(--h1-font-size);
    width: max-content;
    margin: .75rem auto 2rem;
}

.section__title-1 span,
.section__title-2 span {
    z-index: 5;
    position: relative;
}

.section__title-1::after,
.section__title-2::after {
    content: "";
    width: 40px;
    height: 28px;
    background-color: hsla(14, 98%, 50%, .2);
    position: absolute;
    top: -4px;
    right: -8px;
}

.section__title-2::after {
    top: initial;
    bottom: -4px;
}

.geometric-box {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--first-color);
    rotate: -30deg;
}

.geometric-box::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid var(--black-color);
    left: -5px;
    top: -5px;
}

.main {
    min-height: calc(100vh - 162px);
    /* overflow: hidden; */
    /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/
.nav__item-data {
    display: block;
}

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

.carousel {
    height: 100vh;
    margin: 0 auto;
    position: relative;
}

.carousel .carousel-indicators {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    justify-content: center;
    padding: 10px;
    list-style: none;
}

.carousel .carousel-indicators li {
    flex: 0 1 auto;
    width: 20px;
    height: 5px;
    margin-right: 5px;
    margin-left: 5px;
    cursor: pointer;
    background-color: #343a40;
}

.carousel .carousel-indicators .active {
    background-color: #025fff;
}

.carousel .carousel-window {
    width: 100%;
    height: 100%;
    position: relative;
    /* overflow: hidden; */
}

.carousel .carousel-slides {
    height: 100%;
    display: flex;
    transition: transform 0.5s;
}

.carousel .carousel-item {
    height: 100%;
}

.carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-text {
    position: absolute;
    bottom: 50px;
    left: 100px;
}

.carousel .carousel-prev,
.carousel .carousel-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 15%;
    color: #fff;
    opacity: 0.7;
    text-align: center;
    font-size: 40px;
    text-decoration: none;
}

.carousel .carousel-prev:hover,
.carousel .carousel-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.2);
}

.carousel .carousel-prev {
    left: 0;
}

.carousel .carousel-next {
    right: 0;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--body-color);
    z-index: var(--z-fixed);
    transition: box-shadow .4s, background-color .4s;
}

.nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    column-gap: .5rem;
    align-items: center;
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
    width: 250px;
}

/*.nav__logo-circle,*/
/*.nav__toggle {*/
/*  width: 32px;*/
/*  height: 32px;*/
/*  background-color: var(--black-color);*/
/*  color: var(--white-color);*/
/*  display: grid;*/
/*  place-items: center;*/
/*}*/

/*.nav__logo-circle {*/
/*  border-radius: 50%;*/
/*}*/

/*.nav__toggle {*/
/*  font-size: 1.25rem;*/
/*  cursor: pointer;*/
/*}*/

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
    /*.nav__menu {*/
    /*  position: fixed;*/
    /*  top: -250%;*/
    /*  left: 0;*/
    /*  background-color: hsla(0, 0%, 0%, .75);*/
    /*  width: 100%;*/
    /*  padding-block: 1.8rem 5rem;*/
    /*  text-align: center;*/
    /*  backdrop-filter: blur(8px);*/
    /*  transition: top .4s;*/
    /*}*/
}

.nav__title,
.nav__name,
.nav__close {
    color: var(--white-color);
}

.nav__title {
    display: block;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 3.5rem;
}

.nav__name {
    position: relative;
    width: max-content;
    margin: 0 auto 3rem;
    font-size: var(--h2-font-size);
}

.nav__name::after,
.nav__name::before {
    content: '';
    width: 40px;
    height: 1px;
    background-color: var(--text-color-light);
    position: absolute;
    top: 50%;
    left: -4rem;
}

.nav__name::before {
    left: initial;
    right: -4rem;
}

/*.nav__list {*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  row-gap: 2.5rem;*/
/*  align-items: center;*/
/*}*/

/*.nav__link {*/
/*  position: relative;*/
/*  color: var(--text-color-light);*/
/*  font-size: var(--h3-font-size);*/
/*  font-weight: var(--font-semi-bold);*/
/*  transition: color .3s;*/
/*}*/

.nav__link_color {
    color: var(--text-color-light);
}

#link {
    display: none;
}

/*.nav__link::after {*/
/*  content: '';*/
/*  width: 0;*/
/*  height: 2px;*/
/*  background-color: var(--white-color);*/
/*  position: absolute;*/
/*  left: 0;*/
/*  bottom: -.5rem;*/
/*  transition: width .3s;*/
/*}*/

/*.nav__link:hover {*/
/*  color: var(--white-color);*/
/*}*/

.nav__link:hover::after {
    width: 25%;
}

.nav__close {
    position: absolute;
    font-size: 1.5rem;
    top: 1rem;
    right: 1.5rem;
    cursor: pointer;
}

/* Show menu */
.show-menu {
    top: 0;
}

/* Add shadow header */
.shadow-header {
    box-shadow: 0 1px 16px hsla(0, 0%, 0%, .12);
}

/* Active link */
.active-link {
    color: var(--white-color);
}

.active-link::after {
    width: 25%;
}

/*=============== HOME ===============*/
.com {
    padding-left: 0px;
}

.com li {
    padding-left: 0px;
}

.com li ul li {
    padding-left: 30px;
}

#form {
    margin-top: 15px;
    color: #000000;
    float: left;
    clear: both;
    display: inline-block;
    width: 100%;
}

.comment_login {
    color: #000000;
    font-weight: normal;
    display: block;
    float: left;
}

.comment_login a {
    color: var(--black-color);
    font-weight: bold;
}

.comment_gray {
    color: #dfdfdf;
}

.comment_gray a {
    color: #dfdfdf;
}

.comment_putdate {
    font-style: italic;
    color: #333333;
    display: block;
    float: right;
}

.comment_comment {
    margin-top: 10px;
    display: block;
    float: left;
    clear: both;
    color: #000000;
}

/*.comment {*/
/*  color: #006666;*/
/*  border-bottom: 1px solid #E8E8E8;*/
/*  margin-bottom: 15px;*/
/*  padding-bottom: 15px;*/
/*  clear: both;*/
/*  float: left;*/
/*  display: inline-block;*/
/*  width: 100%;*/
/*}*/
.comment .comment-replies-title, .comment .comment-title {
    text-transform: uppercase;
    color: var(--color-black) !important;
    letter-spacing: 0.1rem;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.ms-sm-3 {
    margin-left: 1rem !important;
}

.ms-2 {
    margin-left: .5rem !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.rounded {
    border-radius: var(--bs-border-radius) !important;
}

.bg-light {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
}

.p-3 {
    padding: 1rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

/*.form-control {*/
/*  display: block;*/
/*  width: 100%;*/
/*  padding: .375rem .75rem;*/
/*  font-size: 1rem;*/
/*  font-weight: 400;*/
/*  line-height: 1.5;*/
/*  color: var(--bs-body-color);*/
/*  -webkit-appearance: none;*/
/*  -moz-appearance: none;*/
/*  appearance: none;*/
/*  background-color: var(--bs-body-bg);*/
/*  background-clip: padding-box;*/
/*  border: var(--bs-border-width) solid var(--bs-border-color);*/
/*  border-radius: var(--bs-border-radius);*/
/*  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;*/
/*}*/

.textarea__input {
    height: 100%;
    width: 100%;
    /* background-color: var(--black-color); */
    border: 3px solid var(--black-color-light);
    color: color: var(--black-color);
    padding: 1rem 1rem;
    font-weight: var(--font-medium);
    transition: border .4s, background-color .4s;
    resize: none;
}

.comment_putdate a {
    color: #000E4F;
    font-style: normal;
    text-decoration: underline;
}

#info6,
#info5,
#flash-success,
.info6,
.info5,
.no_login,
.no_code,
.error {
    width: auto;
    margin-bottom: 20px;
    float: none;
    clear: both;
    padding: 7px 10px;
    text-align: center;
    -moz-border-radius: 6px 6px 6px 6px;
    -webkit-border-radius: 6px 6px 6px 6px;
    border-radius: 6px 6px 6px 6px;
    border: 1px solid #e6e6e6;
    background: #F7F7F7;
    font-size: 16px;
    font-weight: bold;
    position: fixed;
    left: 50%;
    transform: translate(-50%);
    bottom: 0px;
    z-index: 9999;
}

.image_align {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(auto, 240px);
    align-items: center;
    gap: 30px;
}

/* .block_post {
  margin-bottom: 30px;
} */

.ol_style {
    margin-left: 0px;
    margin-right: 0px;
    height: auto;
    border-bottom: 2px dotted #000000;
    display: inline-block;
    padding-bottom: 12px;
    transition: background-color var(--theme-transition), border-color var(--theme-transition), color var(--theme-transition);
}

.ol_style li {
    float: left;
    display: block;
    font-size: 14px;
}

.ol_style li a {
    text-decoration: underline;
}

.breadcrumb {
    padding: 8px 30px 0px 0px;
    padding-bottom: 10px;
    background-color: #ffffff;
    width: 100%;
    border-radius: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    list-style: none;
    transition: background-color var(--theme-transition), color var(--theme-transition);
}

.breadcrumb > li + li::before {
    padding: 0 5px;
    color: #ccc;
    content: "/\00a0";
}

.content_block {
    display: grid;
    clear: both;
    /* justify-content: space-between; */
    margin-bottom: 60px;
    border-bottom: 2px dotted #999999;
    padding-bottom: 10px;
}

.content_info {
    float: left;
    display: block;
    font-size: 14px;
}

.text_post {
    font-size: 16px;
    color: var(--text-color);
    float: left;
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.dark-theme .text_post {
    color: #ffffff;
}

.dark-theme .text_post,
.dark-theme .text_post * {
    color: #ffffff !important;
}

.dark-theme .text_post p {
    color: #ffffff !important;
}

.dark-theme .text_post p * {
    color: inherit !important;
}

.text_block {
    width: 100%;
    float: left;
    display: block;
    clear: both;
    padding-bottom: 15px;
    margin-bottom: 45px;
}

.border_block {
    border-bottom: 1px dotted #0A4376;
}

.button_post {
    font-size: 14px;
    text-decoration: none;
    background: #607d8b;
    color: #ffffff;
    float: right;
    display: block;
    clear: both;
    padding: 5px 10px;
    margin-top: 15px;
    border: 0;
}

.button_post:hover {
    text-decoration: none;
    color: #ffffff;
}

.home__container {
    padding-top: 2rem;
}

.home__name {
    font-size: var(--biggest-font-size);
    text-align: center;
}

.home__perfil {
    position: relative;
    justify-self: center;
}

.home__image {
    width: 220px;
}

.home__img {
    position: relative;
    z-index: 10;
}

.home__shadow {
    width: 100%;
    height: 100%;
    background-color: var(--container-color);
    position: absolute;
    bottom: -.75rem;
    right: -.75rem;
    border: 4px solid var(--black-color);
    z-index: 5;
    transition: background-color .4s;
}

.home__arrow,
.home__line {
    position: absolute;
    filter: invert(1);
    width: 50px;
    transition: filter .4s;
}

.home__arrow {
    left: 40%;
    bottom: -4rem;
}

.home__line {
    right: -2rem;
    bottom: -.5rem;
}

.home__perfil .geometric-box {
    top: 2.5rem;
    left: -.7rem;
    z-index: 10;
}

.home__social {
    height: max-content;
    position: absolute;
    left: -3rem;
    top: 0;
    bottom: 0;
    margin: auto 0;
    display: grid;
    row-gap: 1rem;
}

.home__social-link {
    background-color: var(--black-color-light);
    color: var(--white-color);
    font-size: 1.25rem;
    padding: 6px;
    display: grid;
    place-items: center;
    transition: blackground-color .3s;
}

.home__social-link:hover {
    background-color: var(--black-color);
}

.home__info {
    margin-top: 4rem;
}

.home__description {
    text-align: center;
    color: var(--title-color);
    margin-bottom: 1.5rem;
}

.home__description b {
    background: linear-gradient(90deg,
    hsla(14, 98%, 50%, .3),
    hsla(14, 98%, 50%, 0));
}

.home__scroll {
    display: block;
    width: max-content;
    margin: 0 auto;
}

.home__scroll-text {
    display: none;
}

.home__scroll-box {
    background-color: var(--black-color);
    color: var(--white-color);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    cursor: pointer;
    /* overflow: hidden; */
    transition: background-color .4s;
}

.home__scroll-box i {
    animation: scroll-down 3s infinite;
}

/* Animate scroll icon */
@keyframes scroll-down {
    0% {
        transform: translateY(-1rem);
        opacity: 0;
    }

    50% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(.6rem);
        opacity: 0;
    }
}

/*=============== BUTTON ===============*/
.button,
.button__ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .5rem;
}

.button {
    background-color: var(--black-color-light);
    padding: 1.1rem 1.5rem;
    color: var(--white-color);
    font-weight: var(--font-medium);
    transition: background-color .22s ease;
    border: none;
}

.button i {
    font-size: 1.25rem;
}

.button:hover {
    background-color: var(--black-color);
}

#about .button,
#photos .button,
#projects .button {
    background-color: #000000;
    color: #ffffff;
}

#about .button:hover,
#photos .button:hover,
#projects .button:hover {
    background-color: #1f2937;
}

.button__ghost {
    border: 3px solid var(--black-color);
    color: var(--black-color);
    padding: .5rem;
    transition: border .4s, color .4s;
}

.button__ghost i {
    font-size: 1.25rem;
}

.button__ghost:hover {
    border: 3px solid var(--first-color);
}

/*=============== ABOUT ===============*/
.about {
    /* background-color: var(--container-color);
    transition: background-color .4s; */
    background-image: url("images/letnjaja_riga2.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 100%;
    background-attachment: fixed;
    width: 100%;
}

.about__container {
    row-gap: 0;
}

.about__perfil {
    position: relative;
    justify-self: center;
    height: auto;
    /* margin-block: 2.5rem 4.5rem; */
}

.about__image {
    width: 220px;
    position: sticky;
    top: 100px;
}

.about__img {
    position: relative;
    /* border: 4px solid var(--white-color); */
    z-index: 1;
}

.about__shadow,
.about__line,
.about__box {
    position: absolute;
}

.about__shadow {
    width: 150px;
    height: 385px;
    background-color: var(--body-color);
    top: -2.5rem;
    right: -3.5rem;
    border-bottom: 4px solid var(--first-color);
    transition: background-color .4s;
}

.about__perfil .geometric-box {
    top: 1.5rem;
    right: -2.8rem;
}

.about__line {
    filter: invert(1);
    right: -1.25rem;
    top: 6rem;
    width: 50px;
    transition: filter .4s;
}

.about__box {
    width: 40px;
    height: 40px;
    background-color: var(--first-color);
    right: -.5rem;
    bottom: 1.5rem;
}

.about__info {
    padding-left: 1.25rem;
}

@media screen and (max-width: 1118px) {
    .about__info {
        background-color: transparent;
    }

    .dark-theme .about__info {
        background-color: #1a1a1a;
    }
}

@media screen and (max-width: 1000px) {
    .dark-theme .about__info {
        background-color: #1a1a1a;
    }
}

@media screen and (max-width: 770px) {
    .dark-theme .about__info {
        background-color: transparent;
    }

    .projects__card,
    .dark-theme .projects__card {
        background-color: transparent;
    }
}

.about__description {
    position: relative;
    color: white;
    margin-bottom: 1.5rem;
}

/* .about__description:after {
  content: '';
  width: 20px;
  height: 1px;
  background-color: var(--title-color);
  position: absolute;
  left: -1.75rem;
  top: .5rem;
} */

.about__list {
    list-style: square;
    color: var(--white-color);
    margin-bottom: 3rem;
}

.about__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1rem;
}

/*=============== SERVICES ===============*/
.services__container {
    /* grid-template-columns: 250px;
    justify-content: center;
    row-gap: 2rem;
    padding-top: 1rem; */
}

.wrapper-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 30px;
}

.box {
    position: relative;
}

.services__card {
    position: relative;
}

.hidden {
    display: none;
}

.services__content {
    height: 100%;
    background-color: var(--body-color);
    border: 4px solid var(--black-color);
    padding: 6rem 1rem 3rem;
    z-index: 5;
    position: relative;
    transition: background-color .4s, border 4s;
}

.services__border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--first-color);
    top: 0;
    left: 0;
    transition: transform .4s;
}

.services__card:hover .services__border {
    transform: translate(.75rem, .75rem);
}

.services__icon {
    position: relative;
    display: inline-block;
}

.services__icon i {
    font-size: 2rem;
    color: var(--black-color);
    position: relative;
    z-index: 5;
}

.services__box {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--first-color);
    right: -2px;
    top: -2px;
}

.services__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1.25rem;
}

/*=============== PROJECTS ===============*/
.projects {
    /* background-color: var(--container-color);
    transition: background-color .4s; */
    background-image: url("images/riga_latvija2.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 100%;
    background-attachment: fixed;
    width: 100%;
}

.projects__container {
    row-gap: 2rem;
}

.projects__title {
    color: var(--white-color);
}

.projects__description {
    color: var(--white-color);
}

.projects__card {
    padding: 1rem 1rem 2rem;
    transition: background-color .4s;
}

.projects__image {
    position: relative;
    margin-bottom: .75rem;
}

.projects__button {
    position: absolute;
    right: 1rem;
    bottom: -1.5rem;
    padding: 1rem;
}

.projects__content {
    margin-bottom: 1.25rem;
}

.projects__subtitle {
    position: relative;
    display: block;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--white-color);
    margin-bottom: .75rem;
    /* padding-left: 1.75rem; */
    text-align: center;
}

/* .projects__subtitle::after {
  content: '';
  width: 20px;
  height: 1px;
  background-color: var(--text-color);
  position: absolute;
  top: 50%;
  left: 0;
} */

.projects__title {
    font-size: var(--h3-font-size);
    margin-bottom: .75rem;
}

.projects__buttons {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.projects__link {
    display: flex;
    align-items: center;
    column-gap: .25rem;
    color: var(--white-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    transition: color .4s;
}

.projects__link i {
    font-size: 1rem;
    color: var(--white-color);
    transition: color .4s;
}

.projects__link:hover,
.projects__link:hover i {
    color: var(--title-color);
}

/* .projects__card:hover {
  background-color: var(--white-color);
} */

/*=============== CONTACT ===============*/
.contact {
    padding-bottom: 0;
    padding-block: 0rem 0rem;
    background-color: black;
}

.contact__container {
    position: relative;
    /* grid-template-rows: 300px max-content max-content;
    row-gap: 0; */
}

.contact__data {
    position: relative;
    width: 300px;
    height: 300px;
    background-color: var(--container-color);
    padding: 3rem 1.5rem 3.5rem;
    margin-left: auto;
    border-bottom: 4px solid var(--first-color);
    z-index: 5;
    transition: background-color .4s;
}

.contact__data .section__title-2 {
    margin: 0 0 1.5rem;
    transform: translateX(-3rem);
}

.contact__description-1 {
    color: var(--title-color);
    font-weight: var(--font-medium);
    margin-bottom: 2rem;
}

.contact__description-2 {
    color: var(--title-color);
    font-size: var(--small-font-size);
}

.contact__data .geometric-box {
    top: 2rem;
    right: 2.5rem;
}

.contact__mail {
    position: relative;
    background-color: var(--black-color);
    padding: 5rem 1.5rem 2.5rem;
    margin-top: 2.5rem;
    transition: background-color .4s;
}

.contact__title {
    color: var(--white-color);
    font-size: var(--h2-font-size);
    margin-bottom: 2rem;
    text-align: center;
}

.contact__form,
.contact__group {
    display: grid;
    row-gap: 1.25rem;
}

.contact__form {
    position: relative;
}

.enter__box {
    position: relative;
    width: 100%;
    height: 60px;
    display: inline-block;
    clear: left;
    margin-bottom: 20px;
}

.select__box {
    display: block;
    float: left;
    padding-right: 20px;
    position: relative;
    height: 60px;
    margin-bottom: 20px;
}

.button__box {
    position: relative;
    width: 100%;
}

.button__box a {
    text-decoration: underline;
}

.contact__box {
    position: relative;
    width: 100%;
    height: 60px;
}

.contact__input,
.contact__button {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    outline: none;
    border: none;
}

.contact__input {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--black-color);
    border: 3px solid var(--black-color-light);
    color: var(--white-color);
    padding: .5rem 1rem;
    font-weight: var(--font-medium);
    transition: border .4s, background-color .4s;
}

.contact__input::placeholder {
    color: var(--text-color-light);
    transition: opacity .4s;
}

input:focus {
    outline: none;
}

textarea:focus {
    outline: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--black-color);
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    transition: background-color 5000s ease-in-out 0s;
}

.contact__input:focus {
    border: 3px solid var(--white-color);
}

.contact__input:-webkit-autofill {
    transition: background-color 6000s, color 6000s;
}

.enter__input {
    position: absolute;
    height: 100%;
    width: 100%;
    /* background-color: var(--black-color); */
    border: 3px solid var(--black-color-light);
    color: color: var(--black-color);
    padding: 1rem 1rem;
    font-weight: var(--font-medium);
    transition: border var(--theme-transition), background-color var(--theme-transition), color var(--theme-transition);
}

.enter__input::placeholder {
    color: var(--black-color);
    transition: opacity .4s;
}

.enter__input:focus {
    border: 3px solid var(--black-color);
}

.enter__input:-webkit-autofill {
    transition: background-color white, color white;
}

.enter__label {
    position: absolute;
    top: 8px;
    left: 10px;
    color: var(--black-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    background-color: var(--body-color);
    padding: 8px;
    pointer-events: none;
    transition: top .4s, opacity .4s, background-color var(--theme-transition), color var(--theme-transition);
    opacity: 0;
}

.contact__label {
    position: absolute;
    top: 8px;
    left: 10px;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    background-color: var(--black-color);
    padding: 8px;
    pointer-events: none;
    transition: top .4s, opacity .4s, background-color var(--theme-transition), color var(--theme-transition);
    opacity: 0;
}

.contact__form .contact__area {
    height: 10rem;
}

.contact__area textarea {
    resize: none;
    padding-top: 1rem;
}

.contact__button {
    background-color: var(--black-color-light);
    cursor: pointer;
}

/* Opaque placeholder */
.contact__input:focus::placeholder {
    opacity: 0;
}

/* Move label up & sticky label */
.contact__input:focus + .contact__label,
.contact__input:not(:placeholder-shown).contact__input:not(:focus) + .contact__label {
    opacity: 1;
    top: -16px;
}

/* Opaque placeholder */
.enter__input:focus::placeholder {
    opacity: 0;
}

/* Move label up & sticky label */
.enter__input:focus + .enter__label,
.enter__input:not(:placeholder-shown).enter__input:not(:focus) + .enter__label {
    opacity: 1;
    top: -16px;
}

.select-css {
    display: block;
    line-height: 1.3;
    padding: .6em 1.4em .5em .8em;
    /* width: 100%;
    max-width: 100%; */
    box-sizing: border-box;
    margin: 0;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url('../../images/ind.png');
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: 1em auto, 100%;
    border: 3px solid var(--black-color-light);
    color: color: var(--black-color);
    font-weight: var(--font-medium);
    transition: border .4s, background-color .4s;
}

.select-css::-ms-expand {
    display: none;
}

.select-css:focus {
    color: #222;
    outline: none;
    border: 3px solid var(--white-color);
}

.select-css option {
    font-weight: normal;
}

*[dir="rtl"] .select-css,
:root:lang(ar) .select-css,
:root:lang(iw) .select-css {
    background-position: left .7em top 50%, 0 0;
    padding: .6em .8em .5em 1.4em;
}

.contact__social {
    display: grid;
    row-gap: 1rem;
    background-color: hsl(0, 0%, 10%);
    padding-block: 1rem 2rem;
    text-align: center;
}

.contact__social-arrow {
    width: 32px;
    margin: 0 auto;
}

.contact__social-data {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.contact__social-description-1 {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    margin-bottom: .5rem;
}

.contact__social-description-2 {
    color: var(--white-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
}

.contact__social-links {
    display: flex;
    justify-content: center;
    column-gap: .75rem;
}

.contact__social-link {
    background-color: var(--black-color-light);
    padding: 6px;
    color: var(--white-color);
    font-size: 1.25rem;
    display: grid;
    place-items: center;
    transition: background-color .3s;
}

.contact__social-link:hover {
    background-color: var(--first-color);
}

.contact__message {
    color: var(--white-color);
    font-size: var(--small-font-size);
    position: absolute;
    bottom: -1.6rem;
    left: 0;
}

/*=============== FOOTER ===============*/
.footer {
    background-color: var(--black-color);
}

.footer__container {
    padding-block: 3rem 2rem;
    row-gap: 2.5rem;
}

.footer__links {
    display: flex;
    justify-content: center;
    column-gap: 2rem;
}

.footer__link {
    color: var(--white-color);
    transition: color .4s;
}

.footer__link:hover {
    color: var(--text-color-light);
}

.footer__copy {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    text-align: center;
}

.footer__copy a {
    color: var(--white-color);
    font-weight: var(--font-medium);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
    width: .6rem;
    border-radius: .5rem;
    background-color: hsl(0, 0%, 65%);
}

::-webkit-scrollbar-thumb {
    border-radius: .5rem;
    background-color: hsl(0, 0%, 55%);
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(0, 0%, 45%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: var(--black-color);
    display: inline-flex;
    padding: 8px;
    font-size: 1.25rem;
    color: var(--white-color);
    z-index: var(--z-tooltip);
    transition: bottom .4s, transform .4s, background-color .4s;
}

.scrollup i {
    color: var(--white-color);
}

.scrollup i:hover {
    color: var(--white-color);
}

.scrollup:hover {
    transform: translateY(-.5rem);
    color: var(--white-color);
}

/* Show Scroll Up */
.show-scroll {
    bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
    .font_gray {
        display: block;
        float: left;
    }

    /*.posts__wrapper {*/
    /*    display: grid;*/
    /*    grid-template-columns: 1fr;*/
    /*    grid-template-rows: repeat(4, 250px);*/
    /*    gap: 30px;*/
    /*    !* margin-top: 30px; *!*/
    /*    width: calc(100% - 3px);*/
    /*}*/

    .posts__wrapper_related {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 250px);
        gap: 30px;
        /* margin-top: 30px; */
        width: calc(100% - 3px);
    }

    .posts__item {
        position: relative;
        width: 100%;
        background: center center no-repeat #fff;
        -webkit-background-size: cover;
        background-size: cover;
        -webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, .35);
        box-shadow: 1px 1px 1px rgba(0, 0, 0, .35);
        overflow-y: hidden;
        /* cursor: pointer; */
        -webkit-transition: .5s;
        -o-transition: .5s;
        transition: .5s;
        cursor: pointer;
    }

    .posts__item-info {
        position: absolute;
        bottom: 0;
        background: rgba(0, 0, 0, .4);
        padding: 14px 24px 18px;
        color: #fff;
        -webkit-transition: .5s;
        -o-transition: .5s;
        transition: .5s;
        width: 100%;
        height: 100%;
    }

    .posts__item-title {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        min-height: 45px;
        text-align: center;
        font-size: 18px;
        font-weight: 500;
    }

    .posts__item-descr {
        margin-top: 8px;
        font-weight: 500;
        line-height: 18px;
        font-size: 14px;
    }

    .posts__item-text {
        float: left;
        display: block;
        clear: both;
        color: #ffffff;
    }

    .posts__item-link {
        float: left;
        display: block;
        color: #ffffff;
        font-size: 14px;
    }

    .posts__item-link a {
        text-decoration: underline;
        color: #ffffff;
    }

    .posts__item-link a:hover {
        text-decoration: underline;
        color: #ffffff;
    }

    .posts__item .minibutton {
        margin-top: 20px;
    }

    .minibutton {
        font-size: 14px;
        text-decoration: none;
        background: #607d8b;
        color: #ffffff;
        float: right;
        display: block;
        clear: both;
        padding: 5px 10px;
        margin-top: 15px;
        border: 0;
    }

    .minibutton:hover {
        text-decoration: none;
        color: #ffffff;
    }

    .wrapper-images {
        display: grid;
        grid-template-columns: auto;
        grid-template-rows: auto;
        row-gap: 30px;
    }

    .container {
        margin-inline: 1rem;
    }

    .home__image {
        width: 180px;
    }

    .about__perfil {
        margin-bottom: 25px;
    }

    .about__image {
        width: 180px;
    }

    .about__shadow {
        height: 330px;
        right: -2.5rem;
    }

    .projects__subtitle {
        color: var(--white-color);
    }

    .projects__title {
        color: var(--white-color);
    }

    .projects__description {
        color: var(--white-color);
    }

    .projects__link {
        color: var(--white-color);
    }

    .projects__link i {
        color: var(--white-color);
    }

    .contact__data {
        width: 100%;
    }

    .contact__data .section__title-2 {
        transform: translateX(0);
    }

    .footer__links {
        display: unset;
        text-align: center;
        column-gap: 0rem;
    }

    .footer__link {
        margin-bottom: 15px;
        display: block;
    }

    .contact__mail {
        position: relative;
        background-color: var(--black-color);
        padding: 5rem 1.5rem 2.5rem;
        margin-top: 0rem;
        transition: background-color .4s;
    }
}

@media screen and (max-width: 567px) {
    /*.posts__wrapper {*/
    /*    display: grid;*/
    /*    grid-template-columns: 1fr;*/
    /*    grid-template-rows: repeat(4, 250px);*/
    /*    gap: 30px;*/
    /*    !* margin-top: 30px; *!*/
    /*    width: calc(100% - 3px);*/
    /*}*/

    .posts__wrapper_related {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 250px);
        gap: 30px;
        /* margin-top: 30px; */
        width: calc(100% - 3px);
    }

    .posts__item {
        position: relative;
        width: 100%;
        background: center center no-repeat #fff;
        -webkit-background-size: cover;
        background-size: cover;
        -webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, .35);
        box-shadow: 1px 1px 1px rgba(0, 0, 0, .35);
        overflow-y: hidden;
        /* cursor: pointer; */
        -webkit-transition: .5s;
        -o-transition: .5s;
        transition: .5s;
        cursor: pointer;
    }

    .posts__item-info {
        position: absolute;
        bottom: 0;
        background: rgba(0, 0, 0, .4);
        padding: 14px 24px 18px;
        color: #fff;
        -webkit-transition: .5s;
        -o-transition: .5s;
        transition: .5s;
        width: 100%;
        height: 100%;
    }

    .posts__item-title {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        min-height: 45px;
        text-align: center;
        font-size: 18px;
        font-weight: 500;
    }

    .posts__item-descr {
        margin-top: 8px;
        font-weight: 500;
        line-height: 18px;
        font-size: 14px;
    }

    .posts__item-text {
        float: left;
        display: block;
        clear: both;
        color: #ffffff;
    }

    .posts__item-link {
        float: left;
        display: block;
        color: #ffffff;
        font-size: 14px;
    }

    .posts__item-link a {
        text-decoration: underline;
        color: #ffffff;
    }

    .posts__item-link a:hover {
        text-decoration: underline;
        color: #ffffff;
    }

    .posts__item .minibutton {
        margin-top: 20px;
    }

    .minibutton {
        font-size: 14px;
        text-decoration: none;
        background: #607d8b;
        color: #ffffff;
        float: right;
        display: block;
        clear: both;
        padding: 5px 10px;
        margin-top: 15px;
        border: 0;
    }

    .minibutton:hover {
        text-decoration: none;
        color: #ffffff;
    }

    .wrapper-images {
        display: grid;
        grid-template-columns: auto;
        grid-template-rows: auto;
        row-gap: 30px;
    }

    .about__perfil {
        margin-bottom: 25px;
    }

    .footer__links {
        display: unset;
        text-align: center;
        column-gap: 0rem;
    }

    .footer__link {
        margin-bottom: 15px;
        display: block;
    }
}

/* For medium devices */
@media screen and (min-width: 567px) {
    .content_block {
        display: grid;
        clear: both;
        /* justify-content: space-between; */
        margin-bottom: 60px;
        border-bottom: 2px dotted #999999;
        padding-bottom: 10px;
    }

    /*.posts__wrapper {*/
    /*    display: grid;*/
    /*    grid-template-columns: 1fr;*/
    /*    grid-template-rows: repeat(4, 250px);*/
    /*    gap: 30px;*/
    /*    !* margin-top: 30px; *!*/
    /*    width: calc(100% - 3px);*/
    /*}*/

    .posts__wrapper_related {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 250px);
        gap: 30px;
        /* margin-top: 30px; */
        width: calc(100% - 3px);
    }

    .posts__item {
        position: relative;
        width: 100%;
        background: center center no-repeat #fff;
        -webkit-background-size: cover;
        background-size: cover;
        -webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, .35);
        box-shadow: 1px 1px 1px rgba(0, 0, 0, .35);
        overflow-y: hidden;
        /* cursor: pointer; */
        -webkit-transition: .5s;
        -o-transition: .5s;
        transition: .5s;
        cursor: pointer;
    }

    .posts__item-info {
        position: absolute;
        bottom: 0;
        background: rgba(0, 0, 0, .4);
        padding: 14px 24px 18px;
        color: #fff;
        -webkit-transition: .5s;
        -o-transition: .5s;
        transition: .5s;
        width: 100%;
        height: 100%;
    }

    .posts__item-title {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        min-height: 45px;
        text-align: center;
        font-size: 18px;
        font-weight: 500;
    }

    .posts__item-descr {
        margin-top: 8px;
        font-weight: 500;
        line-height: 18px;
        font-size: 14px;
    }

    .posts__item-text {
        float: left;
        display: block;
        clear: both;
        color: #ffffff;
    }

    .posts__item-link {
        float: left;
        display: block;
        color: #ffffff;
        font-size: 14px;
    }

    .posts__item-link a {
        text-decoration: underline;
        color: #ffffff;
    }

    .posts__item-link a:hover {
        text-decoration: underline;
        color: #ffffff;
    }

    .posts__item .minibutton {
        margin-top: 20px;
    }

    .minibutton {
        font-size: 14px;
        text-decoration: none;
        background: #607d8b;
        color: #ffffff;
        float: right;
        display: block;
        clear: both;
        padding: 5px 10px;
        margin-top: 15px;
        border: 0;
    }

    .minibutton:hover {
        text-decoration: none;
        color: #ffffff;
    }

    .wrapper-images {
        display: grid;
        grid-template-columns: auto;
        grid-template-rows: auto;
        row-gap: 30px;
    }

    .about__perfil {
        margin-bottom: 25px;
    }

    .home__container,
    .about__container,
    .projects__container {
        /* grid-template-columns: 350px;
        justify-content: center; */
    }

    .projects__subtitle {
        color: var(--white-color);
    }

    .projects__title {
        color: var(--white-color);
    }

    .projects__description {
        color: var(--white-color);
    }

    .projects__link {
        color: var(--white-color);
    }

    .projects__link i {
        color: var(--white-color);
    }

    .contact__data {
        width: 350px;
        padding: 4rem 1.5rem;
        margin-inline: auto;
    }

    .contact__mail {
        position: relative;
        background-color: var(--black-color);
        padding: 5rem 1.5rem 2.5rem;
        margin-top: 0rem;
        transition: background-color .4s;
    }

    .contact__container {
        /* grid-template-columns: 500px; */
        /* justify-content: center; */
    }

    .contact__group {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1rem;
    }

    .contact__social {
        background-color: transparent;
    }

    .contact__social-arrow {
        filter: invert(1);
    }

    .contact__social-description-1 {
        color: var(--text-color);
    }

    .contact__social-description-2 {
        color: var(--title-color);
    }

    .dark-theme .contact__social-arrow {
        filter: none;
    }

    .footer__links {
        display: unset;
        text-align: center;
        column-gap: 0rem;
    }

    .footer__link {
        margin-bottom: 15px;
        display: block;
    }
}

@media screen and (min-width: 768px) {
    .content_block {
        display: grid;
        clear: both;
        /* justify-content: space-between; */
        margin-bottom: 60px;
        border-bottom: 2px dotted #999999;
        padding-bottom: 10px;
    }

    /*.posts__wrapper {*/
    /*    display: grid;*/
    /*    grid-template-columns: repeat(2, 1fr);*/
    /*    grid-template-rows: repeat(2, 240px);*/
    /*    gap: 30px;*/
    /*    margin-top: 30px;*/
    /*    width: calc(100% - 3px);*/
    /*}*/

    .posts__wrapper_related {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(1, 240px);
        gap: 30px;
        margin-top: 30px;
        width: calc(100% - 3px);
    }

    .posts__item {
        position: relative;
        width: 100%;
        background: center center no-repeat #fff;
        -webkit-background-size: cover;
        background-size: cover;
        -webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, .35);
        box-shadow: 1px 1px 1px rgba(0, 0, 0, .35);
        overflow-y: hidden;
        /* cursor: pointer; */
        -webkit-transition: .5s;
        -o-transition: .5s;
        transition: .5s;
        cursor: pointer;
    }

    .posts__item:hover .posts__item-info {
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }

    .posts__item-info {
        position: absolute;
        -webkit-transform: translateY(-webkit-calc(100% - 70px));
        -ms-transform: translateY(calc(100% - 70px));
        transform: translateY(calc(100% - 70px));
        bottom: 0;
        background: rgba(0, 0, 0, .4);
        padding: 14px 24px 18px;
        color: #fff;
        -webkit-transition: .5s;
        -o-transition: .5s;
        transition: .5s;
        width: 100%;
    }

    .posts__item-title {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        min-height: 45px;
        text-align: center;
        font-size: 18px;
        font-weight: 500;
    }

    .posts__item-descr {
        margin-top: 8px;
        font-weight: 500;
        line-height: 18px;
        font-size: 14px;
    }

    .posts__item-text {
        float: left;
        display: block;
        clear: both;
        color: #ffffff;
    }

    .posts__item-link {
        float: left;
        display: block;
        color: #ffffff;
        font-size: 14px;
    }

    .posts__item-link a {
        text-decoration: underline;
        color: #ffffff;
    }

    .posts__item-link a:hover {
        text-decoration: underline;
        color: #ffffff;
    }

    .posts__item .minibutton {
        margin-top: 20px;
    }

    .minibutton {
        font-size: 14px;
        text-decoration: none;
        background: #607d8b;
        color: #ffffff;
        float: right;
        display: block;
        clear: both;
        padding: 5px 10px;
        margin-top: 15px;
        border: 0;
    }

    .minibutton:hover {
        text-decoration: none;
        color: #ffffff;
    }

    .wrapper-images {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, auto);
        gap: 30px;
    }

    .about__container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 1rem;
        align-items: center;
        padding-block: 1rem;
    }

    .about__perfil {
        order: -1;
        grid-row: 1 / 3;
        position: relative;
        height: calc(100% - 95px);
        top: 60px;
    }

    .about__image {
        width: 320px;
        position: sticky;
        top: 100px;
    }

    .about__info {
        align-self: flex-start;
        padding: 2rem;
        background-color: var(--title-color);
    }

    .services__container {
        /* grid-template-columns: repeat(2, 250px); */
    }

    .projects__container {
        grid-template-columns: repeat(2, 350px);
    }

    .projects__subtitle {
        color: var(--white-color);
    }

    .projects__title {
        color: var(--white-color);
    }

    .projects__description {
        color: var(--white-color);
    }

    .projects__link {
        color: var(--white-color);
    }

    .projects__link i {
        color: var(--white-color);
    }

    .contact__mail {
        position: relative;
        background-color: var(--black-color);
        padding: 5rem 1.5rem 2.5rem;
        margin-top: 0rem;
        transition: background-color .4s;
    }
}

/* For large devices */
@media screen and (min-width: 1150px) {
    #window {
        position: absolute;
        display: none;
        width: auto;
        float: left;
        clear: both;
        background: var(--black-color);
        top: 100%;
        z-index: 30;
    }

    #window a {
        clear: both;
        float: left;
        height: auto;
        width: 100%;
        padding: 10px 15px;
        color: white;
        display: block;
        text-decoration: none;
    }

    .content_block {
        display: flex;
        clear: both;
        justify-content: space-between;
        margin-bottom: 60px;
        border-bottom: 2px dotted #999999;
        padding-bottom: 10px;
    }

    .image_align {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(auto, 240px);
        align-items: center;
        gap: 30px;
    }

    .wrapper-images {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, auto);
        gap: 30px;
    }

    /*.posts__wrapper {*/
    /*    display: grid;*/
    /*    grid-template-columns: repeat(2, 1fr);*/
    /*    grid-template-rows: repeat(2, 240px);*/
    /*    gap: 30px;*/
    /*    margin-top: 30px;*/
    /*    width: calc(100% - 3px);*/
    /*}*/

    .posts__wrapper_related {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(1, 240px);
        gap: 30px;
        margin-top: 30px;
        width: calc(100% - 3px);
    }

    .posts__item {
        position: relative;
        width: 100%;
        background: center center no-repeat #fff;
        -webkit-background-size: cover;
        background-size: cover;
        -webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, .35);
        box-shadow: 1px 1px 1px rgba(0, 0, 0, .35);
        overflow-y: hidden;
        /* cursor: pointer; */
        -webkit-transition: .5s;
        -o-transition: .5s;
        transition: .5s;
        cursor: pointer;
        display: flex;
    }

    .posts__item:hover .posts__item-info {
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }

    .posts__item-info {
        position: absolute;
        -webkit-transform: translateY(-webkit-calc(100% - 70px));
        -ms-transform: translateY(calc(100% - 70px));
        transform: translateY(calc(100% - 70px));
        bottom: 0;
        background: rgba(0, 0, 0, .4);
        padding: 14px 24px 18px;
        color: #fff;
        -webkit-transition: .5s;
        -o-transition: .5s;
        transition: .5s;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-content: center;
        flex-wrap: wrap;
        height: 100%;
        row-gap: 30px;
    }

    .posts__item-title {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        min-height: 45px;
        text-align: center;
        font-size: 18px;
        font-weight: 500;
    }

    .posts__item-descr {
        margin-top: 8px;
        font-weight: 500;
        line-height: 18px;
        font-size: 14px;
        display: flex;
    }

    .posts__item-column {
        display: flex;
        justify-content: left;
        column-gap: 20px;
    }

    .posts__item-text {
        float: left;
        display: block;
        clear: both;
        color: #ffffff;
    }

    .posts__item-link {
        float: left;
        display: block;
        color: #ffffff;
        font-size: 14px;
    }

    .posts__item-link a {
        text-decoration: underline;
        color: #ffffff;
    }

    .posts__item-link a:hover {
        text-decoration: underline;
        color: #ffffff;
    }

    .posts__item .minibutton {
        bottom: 20px;
        position: absolute;
        right: 20px;
    }

    .minibutton {
        font-size: 14px;
        text-decoration: none;
        background: #607d8b;
        color: #ffffff;
        float: right;
        display: block;
        clear: both;
        padding: 5px 10px;
        margin-top: 15px;
        border: 0;
    }

    .minibutton:hover {
        text-decoration: none;
        color: #ffffff;
    }

    .container {
        margin-inline: auto;
        padding-inline: 30px;
    }

    .section {
        padding-block: 7rem 2rem;
    }

    .home {
        padding-block: 10rem 2rem;
    }

    .section__title-1::after,
    .section__title-2::after {
        width: 70px;
        height: 48px;
    }

    .geometric-box {
        transform: scale(1.2);
    }

    .nav {
        height: calc(var(--header-height) + 2rem);
        /* column-gap: 4rem; */
    }

    .nav__close,
        /*.nav__toggle,*/
    .nav__title,
    .nav__name {
        display: none;
    }

    /*.nav__list {*/
    /*  flex-direction: row;*/
    /*  column-gap: 2rem;*/
    /*}*/
    /*.nav__menu {*/
    /*  margin-left: auto;*/
    /*}*/
    /*.nav__link {*/
    /*  color: var(--text-color);*/
    /*  font-size: var(--normal-font-size);*/
    /*}*/
    /*.nav__link:hover {*/
    /*  color: var(--title-color);*/
    /*}*/
    /*.nav__link::after {*/
    /*  background-color: var(--title-color);*/
    /*}*/
    /*.nav__link_color {*/
    /*  color: black;*/
    /*}*/
    .nav__item-data {
        display: none;
    }

    #link {
        display: block;
    }

    .active-link {
        color: var(--title-color);
    }

    .nav__link-button {
        background-color: var(--black-color);
        color: var(--white-color);
        padding: 1.1rem 1.5rem;
    }

    .nav__link-button:hover {
        color: var(--white-color);
    }

    .nav__link-button::after {
        background-color: transparent;
    }

    .change-theme {
        color: var(--text-color);
    }

    .change-theme:hover {
        color: var(--title-color);
    }

    .home__container {
        /* grid-template-columns: repeat(2, 460px);
        gap: 2rem 4rem;
        align-items: center; */
        /* padding-block: 5.5rem; */
    }

    .home__perfil {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
    }

    .home__image {
        width: 350px;
    }

    .home__shadow {
        right: -1.25rem;
        bottom: -1.25rem;
        border: 6px solid var(--black-color);
    }

    .home__name,
    .home__description {
        text-align: initial;
    }

    .home__name {
        align-self: flex-end;
    }

    .home__info {
        margin-top: 0;
        align-self: flex-start;
    }

    .home__description {
        position: relative;
        font-size: var(--h2-font-size);
        margin-bottom: 5.5rem;
        padding-left: 3rem;
    }

    .home__description::after {
        content: '';
        width: 32px;
        height: 2px;
        background-color: var(--title-color);
        position: absolute;
        left: 0;
        top: 14px;
    }

    .home__scroll {
        margin: 0;
        display: flex;
        align-items: center;
        column-gap: .75rem;
    }

    .home__scroll-text {
        display: block;
        color: var(--text-color);
        font-size: var(--smaller-font-size);
        font-weight: var(--font-medium);
    }

    .home__scroll-box {
        width: 44px;
        height: 44px;
    }

    .home__scroll-box i {
        font-size: 1.25rem;
    }

    .home__perfil .geometric-box {
        top: 15rem;
    }

    .home__arrow {
        top: 4.5rem;
        left: -8rem;
        rotate: 80deg;
        width: 80px;
    }

    .home__line {
        left: -15rem;
        bottom: 4rem;
        width: 80px;
        rotate: 30deg;
    }

    .home__social {
        left: initial;
        right: -6rem;
    }

    .home__social-link {
        font-size: 1.5rem;
        padding: .5rem;
    }

    .about__container {
        grid-template-columns: 440px 525px;
        gap: 1rem 9rem;
        align-items: center;
        padding-block: 1rem;
    }

    .about__perfil {
        order: -1;
        grid-row: 1 / 3;
        position: relative;
        height: calc(100% - 100px);
        top: 50px;
    }

    .about__image {
        width: 450px;
        position: sticky;
        top: 100px;
    }

    .about__img {
        /* border: 8px solid var(--white-color); */
    }

    .about__shadow {
        width: 240px;
        height: 615px;
        top: -4rem;
        right: -5.5rem;
        border-bottom: 6px solid var(--first-color);
    }

    .about__perfil .geometric-box {
        right: -4rem;
        top: 4.5rem;
    }

    .about__line {
        width: 80px;
        right: -2rem;
        top: 10rem;
    }

    .about__box {
        width: 64px;
        height: 64px;
        right: -.75rem;
    }

    .about__container .section__title-1 {
        align-self: flex-end;
        margin-inline: 0;
    }

    .about__info {
        align-self: flex-start;
        padding: 2rem;
        background-color: var(--title-color);
    }

    .about__description {
        font-size: var(--h2-font-size);
        margin-bottom: 2rem;
    }

    /* .about__description::after {
      width: 32px;
      height: 2px;
      left: -3rem;
      top: 14px;
    } */
    .about__list {
        margin-bottom: 5rem;
    }

    .about__buttons {
        justify-content: initial;
    }

    .button__ghost {
        padding: .75rem;
    }

    .button__ghost i {
        font-size: 1.5rem;
    }

    .services__container {
        /* grid-template-columns: repeat(3, 282px);
        column-gap: 5rem;
        padding-block: 3rem 5rem; */
    }

    .service__content {
        padding: 6.5rem 1.5rem 3.5rem;
        border: 6px solid var(--black-color);
    }

    .services__icon i {
        font-size: 3rem;
    }

    .services__box {
        width: 32px;
        height: 32px;
    }

    .services__title {
        margin-bottom: 1.5rem;
    }

    .services__card:hover .services__border {
        transform: translate(1.25rem, 1.25rem);
    }

    .projects__container {
        grid-template-columns: repeat(3, 352px);
        padding-block: 3rem 1rem;
    }

    .projects__subtitle {
        color: var(--text-color);
    }

    .projects__title {
        color: var(--text-color);
    }

    .projects__description {
        color: var(--text-color);
    }

    .projects__link {
        color: var(--text-color);
    }

    .projects__link i {
        color: var(--text-color);
    }


    .projects__card {
        background-color: var(--white-color);
        padding: 1.25rem 1.25rem 2.5rem;
    }

    .projects__image {
        margin-bottom: 1rem;
    }

    .projects__content {
        margin-bottom: 2rem;
    }

    .projects__button {
        right: 1.25rem;
    }

    .contact__container {
        grid-template-columns: 1fr;
        grid-template-rows: initial;
        /* padding-block: 2rem; */
        display: grid;
        justify-content: center;
        width: 1166px;
        margin: auto;
    }

    .contact__mail {
        position: relative;
        background-color: var(--black-color);
        padding: 5rem 1.5rem 2.5rem;
        margin-top: 0rem;
        transition: background-color .4s;
    }

    .contact__title {
        font-size: var(--h3-font-size);
        text-align: initial;
    }

    .enter__box {
        height: 60px;
    }

    .button__box {
        position: relative;
        width: 100%;
    }

    .contact__box {
        height: 60px;
    }

    .contact__form .contact__area {
        height: 11rem;
    }

    .contact__button {
        margin-top: 1.25rem;
        width: max-content;
    }

    .contact__data {
        width: 392px;
        height: 375px;
        padding: 4.5rem 3.5rem 3.5rem;
        margin: 7.5rem 0 0 8rem;
        border-bottom: 6px solid var(--first-color);
    }

    .contact__data .section__title-2 {
        margin: 0 0 2rem;
        transform: translateX(-6.5rem);
    }

    .contact__social {
        margin-left: 8rem;
        text-align: initial;
    }

    .contact__social-data {
        flex-direction: row;
        align-items: center;
        column-gap: 1.25rem;
    }

    .contact__social-arrow {
        width: 40px;
    }

    .contact__social-link {
        font-size: 1.5rem;
        padding: .5rem;
    }

    .contact__message {
        bottom: -2.5rem;
    }

    .dark-theme .contact__data {
        box-shadow: 4px 0 8px hsla(0, 0%, 4%, .3);
    }

    .footer__container {
        padding-block: 4rem;
        grid-template-columns: repeat(2, max-content);
        justify-content: space-between;
    }

    .footer__links {
        column-gap: 3rem;
        order: 1;
    }

    .scrollup {
        right: 3rem;
    }

    .footer__links {
        display: flex;
        text-align: center;
        column-gap: 3rem;
    }

    .footer__link {
        margin-bottom: 15px;
        display: block;
    }
}

.is-invalid {
    border: 3px solid red;
}

.invalid-feedback ul li {
    color: red;
}

.img-thumbnail {
    padding: .25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
    width: 200px;
    height: auto;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.custom-checkbox .box {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    transition: all 0.2s;
}

.custom-checkbox svg {
    width: 14px;
    height: 14px;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.2s;
}

.custom-checkbox input[type="checkbox"]:checked + .box {
    background-color: #10b981; /* зелёный */
    border-color: #10b981;
}

.custom-checkbox input[type="checkbox"]:checked + .box svg {
    opacity: 1;
}

.google-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #444;
    font-weight: 500;
    text-decoration: none;
}

.google-login:hover {
    background: #f7f7f7;
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* ===== Post Card ===== */
.post-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(8px);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
    border-color: rgba(255,255,255,.16);
}

.post-card__cover {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .35s ease;
}

.post-card:hover .post-card__cover img {
    transform: scale(1.08);
}

.post-card__body {
    padding: 16px 16px 14px;
}

.post-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.25;
}

.post-card__title a {
    text-decoration: none;
    color: inherit;
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 13px;
    opacity: .9;
    margin-bottom: 12px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-item a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,.25);
}

.meta-item a:hover {
    border-bottom-color: rgba(255,255,255,.55);
}

.post-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    transition: background .18s ease, border-color .18s ease;
}

.tag-pill:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.18);
}

.tag-pill i {
    font-size: 13px;
    opacity: .7;
    margin-right: 2px;
}

.post-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,.10);
    padding-top: 12px;
}

.post-card__stats {
    display: flex;
    gap: 12px;
    font-size: 13px;
    opacity: .9;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stat a {
    color: inherit;
    text-decoration: none;
}

.post-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
    white-space: nowrap;
}

.post-card__btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.18);
}

/* grid: если нужно сделать сетку красивее */
.posts__wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1100px) {
    .posts__wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .posts__wrapper { grid-template-columns: 1fr; }
}

/* Контейнер */
.post-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 24px;
    margin: 20px 0 30px;
    font-size: 14px;
}

/* Один пункт */
.post-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.post-info-item i {
    font-size: 18px;
    opacity: .75;
    min-width: 20px;
}

/* Лейбл */
.post-info-label {
    font-weight: 600;
    color: #2e7d32; /* твой зелёный */
}

.dark-theme .post-info-label {
    color: #ffffff;
}

.dark-theme #comments .comments__header h3,
.dark-theme #comments .comments__count {
    color: #ffffff;
}

.dark-theme #comments .comment {
    background: #121212;
    border: 1px solid #2b2b2b;
    border-left: 4px solid #ffffff;
}

.dark-theme #comments .comment-avatar {
    border: 1px solid #2b2b2b;
}

.dark-theme #comments .comment-header strong,
.dark-theme #comments .comment-header strong a,
.dark-theme #comments .comment-body,
.dark-theme #comments .comment-empty,
.dark-theme #comments .comments__guest,
.dark-theme #comments .comments__guest p,
.dark-theme #comments .comments__guest a {
    color: #ffffff;
}

.dark-theme #comments .comment-time {
    color: rgba(255, 255, 255, .65);
}

.dark-theme #comments .comments__form .enter__input,
.dark-theme #comments .comments__form .form-control,
.dark-theme #comments .comments__form textarea {
    background-color: #121212;
    border-color: #3a3a3a;
    color: #ffffff;
    transition: border-color var(--theme-transition), background-color var(--theme-transition), color var(--theme-transition);
}

.dark-theme #comments .comments__form .enter__input::placeholder,
.dark-theme #comments .comments__form .form-control::placeholder,
.dark-theme #comments .comments__form textarea::placeholder {
    color: rgba(255, 255, 255, .72);
}

.dark-theme #comments .comments__form .enter__input:focus,
.dark-theme #comments .comments__form .form-control:focus,
.dark-theme #comments .comments__form textarea:focus {
    border-color: #ffffff;
}

/* Ссылки */
.post-info-item a {
    color: inherit;
    text-decoration: none;
}

.post-info-item a:hover {
    text-decoration: underline;
}

/* Теги */
.post-tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-inline {
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(0,0,0,.05);
    transition: .2s ease;
}

.tag-inline:hover {
    background: rgba(0,0,0,.1);
    transform: translateY(-1px);
}

.tag-empty {
    opacity: .5;
}

.dark-theme .post-tags-inline,
.dark-theme .post-tags-inline p,
.dark-theme .tag-inline,
.dark-theme .tag-empty {
    color: #ffffff;
}

#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #eee;
    z-index: 9999;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6c8eff, #4a6cff);
    transition: width 0.1s linear;
}
