:root {
    --color-text-black: #2A2A2A;
    --color-light-gary: #d1d1d1;
    --color-green: #2E7D32;
    --color-accent: #FF6D00;
    --color-text: #5A5A5A;
    --colot-gray: #adadad;
    --background-black-opacity: rgba(0, 0, 0, 0.8);
    --background-grey: rgba(255, 255, 255, 0.842);
    --box-shadow-color: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Общие стили */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Inter, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a.link {
   color: var(--color-green);
    text-decoration: none;
    -webkit-transition: opacity .25s ease;
    transition: opacity .25s ease;
}
a.link:hover {
    opacity: .7;
}

.block-center {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.gray {
    color: var(--colot-gray);
}

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

.second-title {
    position: relative;
    font-size: 32px;
    text-align: center;
    margin-bottom: 80px;
    font-weight: bold; /* Восстановлено */
}

.second-title::after {
    --underline-width: 305px;
    content: "";
    display: inline-block;
    width: var(--underline-width);
    height: 2px;
    position: absolute;
    bottom: -7px;
    left: calc(50% - var(--underline-width) / 2);
    background-color: var(--color-green);
}

.section-grey {
    background: var(--background-grey);
}

.cls {
    clear: both;
}

.blur {
    -webkit-filter: blur(5px);
    filter: blur(5px);
}

/* Хэдер стили */
.header {
    position: relative;
    bottom: 80px;
    height: 110vh;
    background-size: cover;
    -webkit-clip-path: polygon(100% 0, 100% 91%, 56% 100%, 0 90%, 0 0);
    clip-path: polygon(100% 0, 100% 91%, 56% 100%, 0 90%, 0 0);
}

.header__background {
    position: absolute;
    height: inherit;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-filter: brightness(0.8);
    filter: brightness(0.8);
}

.header__background-wrapper {
    position: absolute;
    height: inherit;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.menu-hamburger {
    display: none;
}

.header-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: space-evenly;
    -ms-flex-pack: space-evenly;
    justify-content: space-evenly;
    z-index: 3;
    height: 70px;
    color: #fff;
    background: var(--background-black-opacity);
}

.header-top a.link {
    color: #d4d4d4;
}

.logo {
    width: 260px;
    font-size: 41px;
    color: #ffffff;
    white-space: nowrap;
    font-weight: bold; /* Восстановлено */
}

.menu-element {
    margin-right: 30px;
    font-size: 25px;
    font-weight: normal; /* Восстановлено */
}

.menu-element:last-child {
    margin-right: 0;
}

.menu-element a.link.active, 
.menu-element a.link:hover {
    color: var(--color-accent) !important;
    font-weight: bold; /* Восстановлено */
}

.switcher {
    height: 35px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 260px;
    padding: 0 10px;
}

.switcher-abo {
    margin-right: 30px;
    font-size: 25px;
    font-weight: normal; /* Восстановлено */
}
 
 .switcher-abo a.link:hover {
    color: var(--color-accent);
}

.header--center {
    position: relative;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: calc(100vh - 80px);
    z-index: 2;
}

.header--center__wrapper {
    width: 100%;
    padding: 20px 0;
    background: var(--background-black-opacity);
    text-align: center;
}

.name {
    font-size: 50px;
    line-height: 0px;
    font-weight: bold; /* Восстановлено */
}

.description {
    display: inline-block;
    width: 512px;
    font-size: 24px;
    line-height: 1.5em;
    white-space: nowrap;
    border-right: 3px solid transparent;
    padding-right: 5px;
    overflow: hidden;
    -webkit-animation: cursor 0.75s 8, print_text 4s steps(38);
    animation: cursor 0.75s 8, print_text 4s steps(38);
}

@-webkit-keyframes cursor {
    0% { border-color: transparent; }
    50% { border-color: #fff; }
    100% { border-color: transparent; }
}

@keyframes cursor {
    0% { border-color: transparent; }
    50% { border-color: #fff; }
    100% { border-color: transparent; }
}

@-webkit-keyframes print_text {
    from { width: 0; }
}

@keyframes print_text {
    from { width: 0; }
}

/* О нас */
.about-me {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-bottom: 40px;
}

.about-me .left {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 40%;
    flex: 1 1 40%;
    padding-right: 10px;
}

.about-me .right {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 60%;
    flex: 1 1 60%;
    padding-left: 10px;
}

.about-me__image {
    width: 450px;
    margin-left: auto;
    padding-left: 100px;
    border-radius: 10px;
    -webkit-filter: drop-shadow(10px 10px 10px rgba(0, 0, 0, 0.2));
    filter: drop-shadow(10px 10px 10px rgba(0, 0, 0, 0.2));
}

.about-me__title {
    font-size: 36px;
    font-weight: bold; /* Восстановлено */
}

.about-me__descriprion {
    font-size: 20px;
    color: var(--color-text);
    margin-bottom: 15px;
}

ul.about-me__extra {
    color: var(--color-text);
    font-size: 18px;
    margin-top: 20px;
    padding-left: 0; /* Восстановлено */
}

.about-me__extra-element {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 10px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.about-me__extra-element:last-of-type {
    margin-bottom: 0;
}

.about-me__extra-title {
    margin-right: 10px;
    font-weight: bold; /* Восстановлено */
}
.text-mobile {
  display: none;
}
.about-me__extra-mobil{
    display: none;
}

/* Интересы */
.interest {
    padding: 40px 20px;
}

.interests__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: space-evenly;
    -ms-flex-pack: space-evenly;
    justify-content: space-around;
}

.interest-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 30%;
    margin-bottom: 30px;
    padding: 20px 10px;
    border-radius: 5px;
    -webkit-box-shadow: var(--box-shadow-color);
    box-shadow: var(--box-shadow-color);
    text-align: center; /* Восстановлено */
}

.interest__cent {
    text-align: center;
    max-width: 800px;
    margin: 20px auto;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.interest-image {
    width: 250px;
    margin-bottom: 20px;
}

.interest-title {
    margin-bottom: 15px;
    font-size: 21px;
    color: var(--color-text-black);
    font-weight: bold; /* Восстановлено */
}

.interest-text {
    color: var(--color-text);
    margin-bottom: 10px;
    text-align: center;
    font-size: 18px;
}

.interest-text:last-of-type {
    margin-bottom: 0;
}
.interest-cta {
    color: white;
    border-radius: 8px;
    padding: 40px;
    max-width: 1200px;
    margin: -3px auto 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    color: var(--color-text-black);
}

.cta-title {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: bold; /* Восстановлено */
}

.cta-text {
    font-size: 18px;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-button {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--color-text-black);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-size: 21px;
}

.cta-button:hover {
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
    -webkit-box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-button svg {
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.cta-button:hover svg {
    -webkit-transform: translateX(3px);
    transform: translateX(3px);
}


/* Секция работа */
.work {
    padding: 40px 0 0;
    text-align: center; /* Восстановлено */
}

.work-wrapper {
    position: relative;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 800px;
    margin: 0 auto;
}

.work-wrapper:before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    display: inline-block;
    width: 1px;
    height: 80%;
    background: var(--colot-gray);
}

.work-element {
    position: relative;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--color-green);
    -webkit-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
    -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
    transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
    width: 500px;
    text-align: left; /* Восстановлено */
}

.work-element:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.work-element:before {
    position: absolute;
    content: "";
    display: inline-block;
    width: 70px;
    height: 2px;
    background: var(--color-green);
    top: 20px;
}

.work-element.left:before {
    right: -70px;
}

.work-element.right:before {
    left: -75px;
}

.work-element.left {
    margin-right: 694px;
}

.work-element.right {
    margin-left: 694px;
}

.work-element__animation {
    opacity: 0;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    -webkit-transition: opacity 0.6s ease, -webkit-transform 0.6s ease;
    transition: opacity 0.6s ease, -webkit-transform 0.6s ease;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition: opacity 0.6s ease, transform 0.6s ease, -webkit-transform 0.6s ease;
}

.work-element__animation.visible {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.work-element__animation.visible:nth-child(1) { -webkit-transition-delay: 0.1s; transition-delay: 0.1s; }
.work-element__animation.visible:nth-child(2) { -webkit-transition-delay: 0.2s; transition-delay: 0.2s; }
.work-element__animation.visible:nth-child(3) { -webkit-transition-delay: 0.3s; transition-delay: 0.3s; }
.work-element__animation.visible:nth-child(4) { -webkit-transition-delay: 0.4s; transition-delay: 0.4s; }
.work-element__animation.visible:nth-child(5) { -webkit-transition-delay: 0.5s; transition-delay: 0.5s; }

.work-element__title {
    font-size: 24px;
    margin-bottom: 10px;
    margin-top: -7px;
    color: var(--color-text-black);
    font-weight: bold; /* Восстановлено */
}

.work-element__block-title {
    font-size: 18px;
    font-weight: 600;
    color: #444;
    margin-bottom: 15px;
}

.work-element__description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--colot-gray);
    margin-bottom: 20px;
}

.work-element__projects,
.work-element__skills {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.work-element__projects-elementw,
.work-element__skills-element {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 20px;
    background-color: var(--color-light-gary);
    -webkit-transition: background-color 0.25s ease;
    transition: background-color 0.25s ease;
    cursor: default;
}

.work-element__skills-element:hover,
.work-element__projects-elementw:hover {
    background-color: var(--color-green);
    color: #fff;
}

.work-element:nth-of-type(2) { margin-top: -150px; }
.work-element:nth-of-type(3) { margin-top: -160px; }
.work-element:nth-of-type(4) { margin-top: -150px; }
.work-element:nth-of-type(5) { margin-top: -160px; }

.work-wrapper:before {
    height: calc(100% - 100px);
}

.work-project {
    background-color: var(--color-green);
}

.work-project__title:hover + .work-tootip {
    display: inline-block;
}
.work-element.left-mobil, .work-element.right-mobil{
    display: none;
}

/* Обратная связь */
.contact-me {
    position: relative;
    padding: 40px 0 20px;
    background: #f9f9f9;
    text-align: center; /* Восстановлено */
}

.contact-me__form {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.input-wrapper {
    width: 48%;
}

.input-wrapper.left {
    float: left;
}

.input-wrapper.right {
    float: right;
}

.textarea-wrapper {
    margin-top: 20px;
    clear: both;
}

.label {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 5px;
    font-size: 20px;
    padding-top: 20px;
    font-weight: bold; /* Восстановлено */
}

.label:before {
    content: "";
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-right: 5px;
    background-repeat: no-repeat;
    background-position: center;
}

.label[for="name"]:before {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2376bc21' class='size-6'%3e%3cpath fill-rule='evenodd' d='M7.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3.751 20.105a8.25 8.25 0 0 1 16.498 0 .75.75 0 0 1-.437.695A18.683 18.683 0 0 1 12 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 0 1-.437-.695Z' clip-rule='evenodd' /%3e%3c/svg%3e ");
}

.label[for="email"]:before {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2376bc21' class='size-6'%3e%3cpath d='M1.5 8.67v8.58a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3V8.67l-8.928 5.493a3 3 0 0 1-3.144 0L1.5 8.67Z' /%3e%3cpath d='M22.5 6.908V6.75a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3v.158l9.714 5.978a1.5 1.5 0 0 0 1.572 0L22.5 6.908Z' /%3e%3c/svg%3e ");
}

.label[for="message"]:before {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2376bc21' class='size-6'%3e%3cpath fill-rule='evenodd' d='M5.337 21.718a6.707 6.707 0 0 1-.533-.074.75.75 0 0 1-.44-1.223 3.73 3.73 0 0 0 .814-1.686c.023-.115-.022-.317-.254-.543C3.274 16.587 2.25 14.41 2.25 12c0-5.03 4.428-9 9.75-9s9.75 3.97 9.75 9c0 5.03-4.428 9-9.75 9-.833 0-1.643-.097-2.417-.279a6.721 6.721 0 0 1-4.246.997Z' clip-rule='evenodd' /%3e%3c/svg%3e ");
}

.input, .textarea {
    width: 100%;
    border: 1px solid var(--colot-gray, #ccc);
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.input:focus, .textarea:focus {
    border-color: var(--color-green, #76bc21);
    outline: none;
}

.textarea {
    min-height: 100px;
    resize: vertical;
}

.submit {
    display: block;
    height: 45px;
    padding: 10px 20px;
    margin: 20px auto 0;
    border-radius: 4px;
    border: none;
    background: var(--color-accent) !important;
    color: #fff;
    cursor: pointer;
    -webkit-transition: opacity 0.25s ease;
    transition: opacity 0.25s ease;
    font-weight: bold; /* Восстановлено */
}

.submit:hover {
    opacity: 1;
    background: #68a81d;
}

/* Стили для результата формы */
.form-result {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    padding: 2rem;
    border-radius: 8px;
    z-index: 1000;
    color: white;
    text-align: center;
    max-width: 80%;
}

.form-result__content {
    -webkit-animation: fadeIn 0.3s ease;
    animation: fadeIn 0.3s ease;
}

@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Подвал */
.footer-dark {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 40px 0 20px;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: space-around;
    -ms-flex-pack: space-around;
    justify-content: space-around;
    padding: 0 20px;
    gap: 40px;
}

.footer-title {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: bold; /* Восстановлено */
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-green);
}

.socials-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
}

.social-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2d2d2d;
    color: #ffffff;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--color-green);
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
}

.social-link svg {
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.social-link:hover svg {
    color: #fff;
}

.contacts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    margin-bottom: 12px;
}

.contact-link, .contact-address {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    color: #b0b0b0;
    text-decoration: none;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--color-green);
}

.contact-link svg {
    color: var(--color-green);
    opacity: 0.8;
}

.contact-address svg {
    color: #b0b0b0;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
}

.copyright {
    margin: 0;
    font-size: 14px;
    color: #888;
}


html {
    scroll-behavior: smooth;
}

h1, h2, h3, a {
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 0.5px;
}

body, p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* Кросс-браузерные исправления без изменения стиля */
@supports not (clip-path: polygon(0 0)) {
    .header:before {
        content: '';
        position: absolute;
        bottom: -10%;
        left: 0;
        width: 100%;
        height: 20%;
        background: inherit;
        -webkit-transform: skewY(-4deg);
        transform: skewY(-4deg);
        -webkit-transform-origin: top left;
        transform-origin: top left;
        z-index: 1;
    }
}
.footer-seo-text {
  font-size: 10px;
  color: #999;
  max-width: 800px;
  margin: 30px auto 0;
  text-align: center;
  line-height: 1.5;
  opacity: 0.5;
}

.footer-seo-text h2 {
  font-size: 12px;
  color: #888;
  margin-bottom: 5px;
}
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    transform: scale(0.85);
    transform-origin: center;
}