/* Все существующие стили остаются без изменений */
/* Start Reset */
* {
	padding: 0px;
	margin: 0px;
	border: none;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Links */
a, a:link, a:visited  {
    text-decoration: none;
}

a:hover  {
    text-decoration: none;
}

/* Common */
aside, nav, footer, header, section, main {
	display: block;
}

h1, h2, h3, h4, h5, h6, p {
    font-size: inherit;
	font-weight: inherit;
}

ul, ul li {
	list-style: none;
}

img {
	vertical-align: top;
	max-width: 100%;
	height: auto;
}

address {
  font-style: normal;
}

/* Form */
input, textarea, button, select {
	font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

input::-ms-clear {
	display: none;
}

textarea {
	resize: vertical;
}

button, input[type="submit"] {
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    background: none;
    cursor: pointer;
}

button::-moz-focus-inner {
	padding: 0;
	border: 0;
}

label {
	cursor: pointer;
}

legend {
	display: block;
}

input[type='file'] {
	max-width: 100%;
}

/* End Reset */

*{
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

body{
	background-color: #fff;
}

.wrapper{
	max-width: 1607px;
	margin: 0 auto;
	padding: 0 15px;
}

.header__menu-a{
	font-style: italic;
	font-weight: 600;
	font-size: 25px;
	color: #000000;
}

.header__menu-logo img{
    max-width: 70%;
}

.header__menu{
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 15px;
}

.header__menu-btn{
	font-style: italic;
	font-weight: 600;
	font-size: 21px;
	color: #FFFFFF;
	background-color: #000;
	padding: 25px 41px;
	border-radius: 20px;
	white-space: nowrap;
}

.promo{
	margin-top: 40px;
}

.promo-wrapper{
	max-width: 1321px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.promo__title{
	max-width: 663px;
	font-style: italic;
	font-weight: 800;
	font-size: 40px;
	color: #000000;
}

.work-wrapper{
	max-width: 1656px;
	margin: 0 auto;
	padding: 0 15px;
}

.work__item{
    background-color: #e3e3e3;
	display: flex;
	align-items: center;
	padding: 18px 40px;
	border: 1px solid #000;
	border-radius: 20px;
	margin-bottom: 36px;
}

.work__item:last-child{
	margin-bottom: 80px;
}

.work__item-text{
	margin-left: 40px;
	font-style: italic;
	font-weight: 400;
	font-size: 35px;
	color: #000000;
}

.promo-title{
	font-style: italic;
	font-weight: 500;
	font-size: 35px;
	text-align: center;
	color: #000000;
	margin-bottom: 55px;
	margin-top: 50px;
}

.form-wrapper{
	max-width: 1230px;
	margin: 0 auto;
	padding: 0 15px;
}

.form{
	background-color: #000;
	background-image: url(img/formbg.png);
	background-repeat: no-repeat;
	padding: 70px 0px;
	background-position-y: 15px;
}

form input{
	font-style: italic;
	font-weight: 400;
	font-size: 24px;
	line-height: 29px;
	letter-spacing: 0.1em;
	color: #827C7C;
	width: 100%;
}

.rowone input{
	width: 362px;
	border-bottom: 1px solid #ffa103;
	margin-bottom: 70px;
	outline: none;
}

.rowtwo input{
	width: 494px;
	border-bottom: 1px solid #ffa103;
	margin-bottom: 70px;
	outline: none;
}

.rowthree{
	display: flex;
	justify-content: space-between;
}

.rowthree input{
	width: 758px;
	border-bottom: 1px solid #ffa103;
	padding-bottom: 70px;
	outline: none;
}

.form-btn{
	display: inline-block;
	font-style: italic;
	font-weight: 500;
	font-size: 27px;
	height: 50px;
	color: #FFA103;
	padding: 8px 95px;
	border: 1px solid #ffa103;
	align-self: flex-end;
	white-space: nowrap;
}

.form-approve{
	display: flex;
	align-items: center;
	font-style: italic;
	font-weight: 400;
	font-size: 13px;
	line-height: 16px;
	letter-spacing: 0.1em;
	color: #FFA103;
	margin-top: 45px;
}

#sign{
  width: 45px;
  height: 35px;
  border: 1px solid #ffa103;
  background-color: transparent;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  cursor: pointer;
  margin-right: 45px;
  flex-shrink: 0;
}

#sign:checked {
  background-color: transparent;
}

#sign:focus {
  outline: none;
}

#sign::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 10px;
  border-left: 2px solid #ffa103;
  border-bottom: 2px solid #ffa103;
  transform: translate(-50%, -50%) rotate(-45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

#sign:checked::after {
  opacity: 1;
}

/* ========== АДАПТИВНОСТЬ ========== */

/* Планшеты (768px - 1919px) */
@media screen and (max-width: 1919px) and (min-width: 768px) {
    .promo__title {
        font-size: 36px;
        max-width: 550px;
    }
    
    .promo__img {
        max-width: 600px;
    }
    
    .promo-title {
        font-size: 32px;
    }
    
    .work__item-text {
        font-size: 28px;
        margin-left: 30px;
    }
    
    .work__item {
        padding: 15px 30px;
    }
    
    .rowone input,
    .rowtwo input,
    .rowthree input {
        width: 100%;
    }
    
    .rowthree {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .rowthree input {
        padding-bottom: 30px;
    }
    
    .form-btn {
        padding: 8px 60px;
        align-self: flex-start;
    }
    
    .form-approve {
        font-size: 12px;
    }
}

/* Мобильные устройства (320px - 767px) */
@media screen and (max-width: 767px) {
    .header__menu {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .header__menu-a {
        font-size: 20px;
        text-align: center;
        order: 2;
    }
    
    .header__menu-btn {
        font-size: 20px;
        padding: 15px 25px;
        order: 3;
    }
    
    .header__menu-logo {
        order: 1;
        width: 100%;
        text-align: center;
    }
    
    .promo-wrapper {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .promo__title {
        font-size: 28px;
        max-width: 100%;
    }
    
    .promo__img {
        max-width: 100%;
    }
    
    .promo-title {
        font-size: 24px;
        margin: 30px 0;
    }
    
    .work__item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .work__item-img {
        margin-bottom: 15px;
    }
    
    .work__item-text {
        margin-left: 0;
        font-size: 20px;
    }
    
    .work__item:last-child {
        margin-bottom: 40px;
    }
    
    .form {
        padding: 40px 0;
        background-image: none;
    }
    
    .rowone input,
    .rowtwo input,
    .rowthree input {
        width: 100%;
    }
    
    .rowone input {
        margin-bottom: 40px;
    }
    
    .rowtwo input {
        margin-bottom: 40px;
    }
    
    .rowthree {
        flex-direction: column;
        gap: 40px;
    }
    
    .rowthree input {
        padding-bottom: 30px;
    }
    
    .form-btn {
        align-self: center;
        padding: 8px 40px;
        font-size: 24px;
        text-align: center;
    }
    
    .form-approve {
        flex-wrap: auto;
        gap: 15px;
        font-size: 12px;
    }
    
    #sign {
        margin-right: 15px;
    }
}

@media screen and (max-width: 600px){
    .header__menu-a{
        width: 100%;
    }
    .header__menu-btn{
        text-align: center;
        width: 100%;
    }
}

/* Для очень маленьких экранов (до 480px) */
@media screen and (max-width: 480px) {
    .header__menu-btn {
        font-size: 18px;
        padding: 12px 20px;
        width: 100%;
        text-align: center;
    }
    
    .header__menu-a {
        font-size: 18px;
    }
    
    .promo__title {
        font-size: 24px;
    }
    
    .work__item-text {
        font-size: 18px;
    }
    
    .form-btn {
        width: 100%;
        padding: 12px 20px;
        height: auto;
    }
    
    .form-approve {
        font-size: 11px;
    }
    
    #sign {
        width: 35px;
        height: 30px;
    }
}


/* ========== КНОПКА "НАВЕРХ" - ОРАНЖЕВАЯ СТРЕЛКА ========== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #FF8C00, #FFA726);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

/* Показываем кнопку при прокрутке */
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Эффект при наведении */
.scroll-top-btn:hover {
    background: linear-gradient(135deg, #FF7700, #FFA040);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.5);
}

/* Эффект при нажатии */
.scroll-top-btn:active {
    transform: scale(0.95);
    transition: 0.05s linear;
}

/* Стили для стрелки */
.scroll-top-arrow {
    width: 26px;
    height: 26px;
    transition: transform 0.2s ease;
}

/* Стрелка слегка поднимается при наведении на кнопку */
.scroll-top-btn:hover .scroll-top-arrow {
    transform: translateY(-3px);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .scroll-top-arrow {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .scroll-top-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-top-arrow {
        width: 20px;
        height: 20px;
    }
}