body,html {
    margin: 0;
    padding: 0;
    background-color: #f9fafc;
}

* {
    box-sizing: border-box;
    font-family: 'Roboto';
    font-size: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 40px;
    color: #000;
    text-decoration: none;
    font-size: 24px;
}

.logo span {
    font-size: 28px;
    margin: 0 auto;
}

.logo img  {
    width: 165px;
    object-fit: contain;
}

.logo:hover {
    text-decoration: none;
}

.container {
    max-width: 1280px;
    padding: 0 15px;
    margin: 0 auto;
    z-index: 999;
    position: relative;
}

header {
    background-color: #fff;
    padding: 15px 0;
    z-index: 999;
    position: relative;
}

.main-img {
    height: 400px;
    width: 100%;
    object-fit: cover;
}

.content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: flex-start;
    margin-top: 40px;
}

.content-item {
    background-color: #fff;
    border: 3px solid #8FD83C;
    border-radius: 10px;
    padding: 20px 15px;
}

.text h2 {
    margin-top: 30px;
    font-size: 24px;
}

.text table {
    border-collapse: collapse;
}

.text td {
    border: 1px solid #000;
    padding: 5px 10px;
}

.text h2:first-child {
    margin-top: 0;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: absolute;
    top: 50%; 
    width: 100%;
    transform: translateY( -50%);
    z-index: 20;
}

.hero:after {
    position: absolute;
    content: '';
    background-color: #000;
    opacity: 0.7;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.hero h1 {
    color: #fff;
    padding: 0 10px;
    text-shadow: 0 0 1px #000;
    font-weight: 700;
    font-size: 70px;
    width: 100%;
    display: block;
    text-align: center;
    margin: 0 0 40px
}

.hero p {
    color: #fff;
    text-shadow: 0 0 1px #000;
    font-weight: 700;
    font-size: 30px;
    width: 100%;
    display: block;
    text-align: center;
    margin: 40px 0;
}


.hero a { 
    color: #000;
    border-radius: 10px;
    text-decoration: none;
    background-color: #8FD83C;
    font-size: 20px;
    width: 100%;
    max-width: 300px;
    display: block;
    padding: 15px;
    text-align: center;
    margin: 40px auto;
}

.input-item {
    position: relative;
}

.input-item label {
    position: absolute;
    cursor: text; 
    left: 10px;
    top: 17px;
    font-size: 16px;
    transition: .3s all;
    background-color: #fff;
    padding: 0 5px;
}

.input-item textarea,
.input-item input {
    padding: 16px 14px;
    border-radius: 8px;
    width: 100%;
    border: 2px solid rgba(101, 116, 139, .2); 
    outline: none;
    font-size: 16px;
}

.input-item textarea {
    resize: vertical;
}


.input-item label.shown,
.input-item label.active,
.input-item input:focus ~ label {
    top: -5px;
    font-size: 12px;
}

.input-item:hover input {
    border-color: #000;
}
.input-item input:focus {
    border-color: #8FD83C ;
}

.input-item--phone {
    display: flex; 
}

.input-item--phone input {
    padding-left: 60px;
}

.flag {
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    left: 14px;
    top: 17px;
}

.flag-text {
    position: absolute;
    left: 54px;
    top: 17px;
    font-size: 16px;
    color: #000;
}

form > div {
    margin-bottom: 16px;
}

.radio-title {
    font-size: 16px;
    color: rgb(101, 116, 139);
    margin-bottom: 10px;
    display: block;
}

.radio-item input {
    width: 18px;
    cursor: pointer;
    height: 18px;
    margin: 0;
}

.radio-item label {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: rgb(18, 24, 40)
}

.radio-item {
    margin-bottom: 16px;
}

form h2 {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #8FD83C;
}
form h3 {
    text-align: center;  
}

.file-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 160px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fafafa;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

.file-input-container:hover {
    border-color: #999;
    background: #f0f0f0;
}

.file-input-container.dragover {
    border-color: #007bff;
    background: #e3f2fd;
}

.file-input-container.has-file {
    border-color: #28a745;
    background: #f8fff8;
}

.file-input-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: #666;
    font-size: 14px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.file-input-text {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
}

.file-input-subtext {
    font-size: 12px;
    color: #999;
}

input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-name {
    position: absolute;
    bottom: 8px;
    left: 12px;
    right: 12px;
    font-size: 12px;
    color: #28a745;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.input-submit input {
    border-radius: 5px;
    background-color: #8FD83C;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.input-submit input:hover {
    background-color: #518919;
}

footer {
    margin-top: 40px;
    padding: 40px 0;
    background-color: #fff;
} 

.footer-content {
    display: flex;
    gap: 40px;
}

.footer-content img {
    width: 165px;
    object-fit: contain;
}

#contact {
    position: relative;
}


.loader {
  position: absolute;
  top: 90%;
  left: 50%;
  margin: -36px;
  width: 72px;
  height: 72px;
  border: 3px dotted #000;
  border-style: solid solid dotted dotted;
  border-radius: 50%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-animation: rotation 2s linear infinite;
  animation: rotation 2s linear infinite;
  z-index: 222;
  display: none;
}

.loader.active {
    display: block;
}

.loader::after {
  content: "";
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px dotted #000;
  border-style: solid solid dotted;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  -webkit-animation: rotationBack 1s linear infinite;
  animation: rotationBack 1s linear infinite;
  -webkit-transform-origin: center center;
  -ms-transform-origin: center center;
  transform-origin: center center;
}

.loader::before {
  content: "";
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -24px;
  border: 2px dotted #000;
  border-style: solid dotted solid dotted;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  -webkit-animation: rotationBack 2.5s linear infinite;
  animation: rotationBack 2.5s linear infinite;
  -webkit-transform-origin: center center;
  -ms-transform-origin: center center;
  transform-origin: center center;
}

.form-messages {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 20;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: flex-end;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 2rem 2rem 5%;
  display: none;
  margin: 0;
}

.form-messages.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

@-webkit-keyframes rotation {
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transform: rotate(360deg);
  transform: rotate(360deg);
}
@keyframes rotation {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-webkit-keyframes rotationBack {
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transform: rotate(-360deg);
  transform: rotate(-360deg);
}
@keyframes rotationBack {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(-360deg);
    transform: rotate(-360deg);
  }
}


@media screen and (max-width: 992px) {
    * {
        font-size: 16px;
    }
    .content {
        margin-top: 20px;
    }

    .logo span {
        font-size: 18px;
    }

    .logo img {
        height: 120px;
    }
}

@media screen and (max-width: 768px) {  
    .hero h1 {
        font-size: 32px;
    }
    .logo span {
        font-size: 16px;
    }

    .hero p {
        font-size: 26px;
    }

    .footer-content img,
    .logo img {
        height: 80px;
        width: 80px;
    }

    .content {
        display: flex;
        flex-direction: column-reverse;

    }

    .content-item {
        width: 100%;
    }

    .footer-content {
        gap: 20px;
    }
}