html, body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    background-color: #f8f9fa;

    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Шапка */
header {
    position: ;
    background: url('header-bg.jpg') no-repeat center/cover;
    color: white;
    height: 100vh;
    width: 100%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 73%;
    margin: 0 auto;
}

.header-top-left {
    display: flex;
    align-items: center;
}

.header-line {
    width: 3px;
    background-color: gray;
    height: 50px;
    margin-right: 10px;
}

.header-top-left .logo {
    width: 80px;
    margin-right: 5px;
}

.header-top-left h3 {
    margin: 0;
    font-size: 0.83vw;
    line-height: 1.4;
    font-family: 'Verdana', sans-serif;
}

.header-top-midl h3 {
    margin: 0;
    font-size: 0.83vw;
    text-align: right;
}

.nav-menu {
    display: flex;
    gap: 1.82vw;
}

.nav-menu a {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.0vw;
    padding: 0.52vw;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu a:hover {
    background-color: white;
    color: #006400;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.21vw;
    background-color: white;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
    background-color: #228B22;
}

.nav-menu a:hover {
    color: #006400;
}


.header-top-midl h3 {
   font-size: 0.94vw;
}

.header-bot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 77%;
    margin: 0 auto;
    height: 100%;
    padding: 0 2.6vw;
}

.header-bot-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.header-bot-left h1 {
    font-size: 2.5vw;
    margin: 0 0 0.52vw;
}

.header-bot-left h2 {
    font-size: 1.77vw;
    margin: 0;
    line-height: 1.5;
}

.header-bot-right {
    width: 30%;
    overflow: hidden;
    position: relative;
}

.image-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.header-bot-right .header-image {
    min-width: 100%;
    height: 23vw;
    border-radius: 5px;
}


/* Блок1 Главная */
.title-main {
    width: 8%;
    margin: 0 auto;
    margin-top: 2.08vw;
    font-family: 'Verdana', sans-serif;
}

.main-blocks {
    width: 90%;
    margin: 0 auto;
    margin-left: 6%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 8vw;
}

.main-block {
    width: 87%;
    height: 28vw;
    background-color: white;
    margin-top: 2.08vw;
    border-radius: 15px;
    text-align: center;
    border: 0.10vw solid green;
    box-shadow: 0 0.57vw 0.31vw rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.main-block:hover {
    transform: translateY(-5px);
}

.full-width-photo {
    width: 100%;
    height: 15.6vw;
    overflow: hidden;
}

.full-width-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.main-block h1 {
    font-size: 1.20vw;
    margin-bottom: 2.6vw;
    margin-top: 0.52vw;
    font-family: 'Verdana', sans-serif;
}

.main-block p {
    font-size: 1.2vw;
    margin-bottom: 1.6vw;
}

.main-green {
    color: green;
    font-weight: bold;
    font-size: 0.83vw;
}

.main-red {
    color: red;
    font-weight: bold;
    font-size: 0.83vw;
}


/* Подвал */
footer {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.04vw 0;
    background-color: #f9f9f9;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px 10px 0 0;
}

.footer-left {
    text-align: center;
    width: 30%;
    padding: 0 1vw;
}

.footer-left h3 {
    margin-top: 0.70vw;
    font-size: 1.2vw;
    color: #444;
    line-height: 1.5;
    font-family: 'Verdana', sans-serif;
}

.footer-midl {
    text-align: left;
    width: 25%;
    padding: 0 1vw;
    margin-left: 16vw;
}

.footer-right {
    text-align: left;
    width: 30%;
    padding: 0 1vw;
}

.footer-nav-menu {
    margin-top: 0.52vw;
    display: flex;
    flex-direction: column;
    gap: 0.52vw;
}

.footer-nav-menu a {
    text-decoration: none;
    color: #555;
    font-size: 1.2vw;
    padding: 0.26vw 0;
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav-menu a:hover {
    color: green;
    transform: scale(1.05);
}

.footer-nav-menu a::after {
    content: "";
    position: absolute;
    bottom: -0.1vw;
    left: 0;
    width: 0;
    height: 2px;
    background-color: green;
    transition: width 0.3s ease;
}

.footer-nav-menu a:hover::after {
    width: 100%;
}

.footer-right p {
    margin-top: 0.52vw;
    font-size: 1.2vw;
    color: #555;
}

.footer-right p span {
    color: green;
    font-weight: bold;
}

.footer-logo {
    width: 4.17vw;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}


/* Блок2 Копмпания */
.header-top1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 73%;
    margin: 0 auto;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.header-top-left1 {
    display: flex;
    align-items: center;
}

.header-line1 {
    width: 3px;
    background-color: #d3d3d3;
    height: 50px;
    margin-right: 10px;
}

.header-top-left1 .logo1 {
    width: 50px;
    margin-right: 5px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header-top-left1 h3 {
    margin: 0;
    font-size: 0.83vw;
    line-height: 1.4;
    color: #555;
}

.nav-menu1 {
    display: flex;
    gap: 1.82vw;
}

.nav-menu1 a {
    position: relative;
    color: #444;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.0vw;
    padding: 0.52vw;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-menu1 a:hover {
    background-color: #eaeaea;
    color: #222;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-menu1 a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.21vw;
    background-color: #bbb;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.nav-menu1 a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
    background-color: #888;
}

.about-us {
    width: 90%;
    margin: 2vw auto;
    padding: 2vw;
    text-align: center;
}

.about-title {
    font-size: 2vw;
    color: #444;
    margin-bottom: 1vw;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
}

.about-title::after {
    content: "";
    display: block;
    width: 50%;
    height: 2px;
    background-color: green;
    margin: 0.5vw auto 0;
}

.about-content {
    text-align: center;
    font-size: 1.2vw;
    color: #555;
    line-height: 1.8;
}

.about-content h3 {
    font-size: 1.5vw;
    color: #333;
    margin-bottom: 1vw;
}

.about-content p {
    margin-bottom: 1.1vw;
}


/* Блок 3 контакты */
.contacts-section {
    padding: 2vw;
    margin-top: 4vw;
}

.contacts-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2vw;
    max-width: 90%;
    margin: 0 auto;
}

.contacts-left {
    max-width: 45%;
}

.contacts-left h2 {
    font-size: 2vw;
    color: #333;
    margin-bottom: 1vw;
}

.contacts-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contacts-left ul li {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    margin-bottom: 1vw;
    font-size: 1.2vw;
    color: #555;
}

.contacts-left ul li img {
    width: 1.5vw;
    height: 1.5vw;
}

.contacts-left button {
    padding: 0.8vw 1.5vw;
    background-color: #90ee90;
    color: #006400;
    font-size: 1.2vw;
    border: none;
    border-radius: 1.5vw;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
}

.contacts-left button:hover {
    background-color: #006400;
    color: white;
}

.contacts-right iframe {
    border: 0;
    border-radius: 0.5vw;
    max-width: 100%;
}


/* Мондальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: 50px;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-top: 10px;
}

form input,
form textarea {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form button {
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

form button:hover {
  background-color: #45a049;
}


/* Доп сайты */
a {
    text-decoration: none;
    color: inherit;
}

.products {
    display: flex;
    width: 80%;
    margin: 100px auto;
    gap: 20px;
}

.product {
    text-align: left;
    flex: 1;
    padding-right: 20px;
    max-width: 60%;
}

.product h1 {
    font-size: 2vw;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Arial', sans-serif;
}

.product p {
    font-size: 1.2vw;
    line-height: 1.6;
    color: #444;
}

.green {
    font-size: 1.2vw;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 10px;
}

.red {
    font-size: 1.2vw;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 10px;
}

.product-bot {
    margin-top: 50px;
    display: flex;
    align-items: center;
}

.product-bot p {
    font-size: 18px;
    margin: 0;
    text-align: center;
    color: #555;
    margin-right: 10vw;
}

.q {
    display: flex;
    gap: 20px;
    align-items: center;
}

.q p {
    font-size: 18px;
    margin: 0;
    text-align: center;
    color: #555;
}

.image-prod {
    width: 30vw;
    height: 23vw;
    object-fit: cover;
    margin-left: 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-bot button {
    padding: 0.8vw 1.5vw;
    background-color: #90ee90;
    color: #006400;
    font-size: 1.1vw;
    border: none;
    border-radius: 1.1vw;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-bot button:hover {
    background-color: #006400;
    color: white;
}