/*
Theme Name: Gidroteh
Theme URI: http://example.com/gidroteh/
Author: Ваше имя
Author URI: http://example.com/
Description: Тема для сайта Гидротех
Version: 1.0
Text Domain: gidroteh
*/

/* Reset styles */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Box sizing */
html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Base styles */
body {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: #0C2F2F;
    background-color: rgb(231,231,231);
}

.wrapper {
    max-width: 92.22vw;
    margin: 0 auto;
}

/* Хедер */

header{
     background-color: white;
}

.header_wrapper {
    max-width: 92.22vw;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
     background-color: white;
}

/* Основное меню */
.menu_list {
    display: flex;
    gap: 36px;
    align-items: center;
}

.menu_item {
    position: relative;
    list-style: none;
}

.logo{
    margin: 6px 0px 6px 0px;
}

.menu_link {
    font-weight: 500;
    font-size: 13px;
    line-height: 120%;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 0.3s;
    color: #0C2F2F;
    display: block;
    padding: 10px 0;
    margin: 6px 0px 6px 0px;
}

.menu_link:hover {
    color: #8e8e8e;
}

/* Выпадающее меню */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0;
    margin: 0;
}

.menu_item:hover > .sub-menu,
.menu_item:focus-within > .sub-menu,
.menu_item.active > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu .menu_item {
    white-space: nowrap;
}

.sub-menu .menu_link {
    padding: 10px 15px;
    transition: background 0.2s;
}

.sub-menu .menu_link:hover {
    background: #f5f5f5;
}

/* Индикатор подменю */
.menu_item-has-children > a {
    position: relative;
    padding-right: 20px;
}

.menu_item-has-children > a::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s;
}

.menu_item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Интро */

.intro {
    margin-bottom: 120px;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.intro_video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.intro_overlay {
    background-image: linear-gradient(
      to bottom right,
      transparent 70%,
      rgba(255, 255, 255, 0) 60%,
      rgba(0, 21, 21, 1)
    );
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.intro_title {
    font-size: 80px;
    line-height: 120%;
    letter-spacing: -2%;
    margin: 35% 0px 0px 55%;
    color: white;
    z-index: 3;
    position: relative;
}

/* Преимущества */
.advantages {
    margin-bottom: 120px;
}

.advantages_title {
    font-size: 56px;
    margin-bottom: 48px;
    color: #0C2F2F;
}

.advantages_blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.advantages_block_small {
    display: contents;
}

.advantages_block_small .advantage:first-child {
    grid-column: 1;
}

.advantages_block_small .advantage_img_small {
    grid-column: 2;
}

.advantages_block_small .advantage:last-child {
    grid-column: 3;
}

.advantages_block_small .advantage,
.advantages_block_small .advantage_img_small {
    height: 320px;
}

.advantages_block_long {
    display: contents;
}

.advantages_block_long.img-left .advantage_img_long {
    grid-column: 1 / span 2;
    grid-row: auto;
}

.advantages_block_long.img-left .advantage {
    grid-column: 3;
    grid-row: auto;
}

.advantages_block_long.img-right .advantage_img_long {
    grid-column: 2 / span 2;
    grid-row: auto;
}

.advantages_block_long.img-right .advantage {
    grid-column: 1;
    grid-row: auto;
}

.advantage_img_long,
.advantage_img_small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.advantage {
    padding: 40px;
    background: #FDFDFD;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advantages_block_small .advantage {
    border: rgba(35, 172, 178, 1) solid 1px;
    padding: 30px;
}

.advantage_title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #196A70;
}

.advantage_desc {
    margin-top: auto;
    font-size: 16px;
    line-height: 1.6;
    color: #ABABAB;
}

/* Активность */

.activitys {
    margin-bottom: 120px;
}

.activity_title {
    font-weight: 700;
    font-size: 56px;
    line-height: 120%;
    letter-spacing: -2%;
    color: #0C2F2F;
    margin-bottom: 48px;
}

.activity_item {
    display: flex;
    align-items: flex-start;
    background-color: rgba(253, 253, 253, 1);
    border-radius: 16px;
    border: 1px solid rgba(35, 172, 178, 1);
    margin-bottom: 16px;
    position: relative;
}

.activity_item:hover .activity{
    background-color: rgba(25, 106, 112, 1);
    color: white;
}

.activity_item:last-child {
    margin-bottom: 0;
}

.activitys_block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.activitys_list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 55%;
}

.activity {
    display: block;
    padding: 28px 60px 28px 28px;
    font-size: 26px;
    border-radius: 16px;
    line-height: 110%;
    letter-spacing: -2%;
    text-decoration: none;
    color: rgba(25, 106, 112, 1);
    width: 100%;
}

.activity:hover{
    background-color: rgba(25, 106, 112, 1);
    color: white;
}

.activity_item::after {
    content: "";
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-100%);
    width: 24px;
    height: 24px;
    background-image: url("assets/images/arrow1.png");
    background-repeat: no-repeat;
    background-size: contain;
    transition: right 0.3s ease;
}

.activity_item:hover::after {
    background-image: url("assets/images/arrow4.png");
}

/* Заказчики */

.customers {
    margin-bottom: 120px;
}

.customers_title {
    font-weight: 700;
    font-size: 56px;
    line-height: 120%;
    letter-spacing: -2%;
    color: #0C2F2F;
    margin-bottom: 40px;
}

.customers_slider {
    position: relative;
    overflow: hidden;
}

.customers_slider_buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    justify-content: flex-end;
}

.customers_button_left,
.customers_button_right {
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

.customers_button_left:hover,
.customers_button_right:hover {
    opacity: 1;
}

.customers_button_left::before,
.customers_button_right::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
}

.customers_button_left::before {
    background-image: url('assets/images/arrow2.png');
}

.customers_button_right::before {
    background-image: url('assets/images/arrow3.png');
}

.customers_slider_items {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.customers_slider_item {
    flex: 0 0 calc(16.666% - 14px);
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid rgba(35, 172, 178, 1);
    border-radius: 16px;
    display: flex;
    box-sizing: border-box;
    padding: 20px;
    min-width: 0;
    min-height: 100px;
}

.customers_slider_img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Футер */

.footer {
    background-color: white;
    padding: 30px 0;
}

.footer_wrapper {
    max-width: 92.22vw;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
}

.footer_logo {
    width: 180px;
    height: auto;
    margin-right: 7.71vw;
    margin-bottom: 40px;
}

.address, .email, .telephones {
    flex: 1;
    min-width: 200px;
}

.address{
    margin-right: 7.71vw;
}

.email{
    margin-right: 7.71vw;
}

.address_title, .email_title, .telephones_title {
    font-size: 22px;
    line-height: 120%;
    font-weight: bold;
    margin-bottom: 10px;
    color: rgba(171, 171, 171, 1);
}

.address_desc, .email_desc {
    font-size: 22px;
    line-height: 120%;
    color: rgba(25, 106, 112, 1);
}

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

.telephone {
    font-size: 22px;
    line-height: 120%;
    margin-bottom: 5px;
    color: rgba(25, 106, 112, 1);
}

.confidentiality {
    display: block;
    font-size: 14px;
    color: rgba(171, 171, 171, 1);
    width: 100%;
    margin-left: 80%;
}

.confidentiality:hover {
    text-decoration: underline;
}

/* Основные стили контента */

.entry-header {
    margin-bottom: 40px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.entry-title {
    font-size: 36px;
    line-height: 1.3;
    color: #196A70;
    margin-bottom: 15px;
    font-weight: 700;
}

.entry-meta {
    font-size: 14px;
    color: #ABABAB;
    margin-bottom: 20px;
}

.entry-content {
    line-height: 1.8;
    font-size: 18px;
    color: #333;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content a {
    color: #196A70;
    text-decoration: underline;
    transition: color 0.3s;
}

.entry-content a:hover {
    color: #23ACB2;
    text-decoration: none;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 40px 0 20px;
    color: #196A70;
    line-height: 1.3;
}

.entry-content h2 {
    font-size: 30px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

.entry-content h3 {
    font-size: 26px;
}

.entry-content h4 {
    font-size: 22px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content blockquote {
    border-left: 4px solid #23ACB2;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.entry-content .wp-block-image img {
    box-shadow: none;
}

.entry-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    font-size: 14px;
    color: #ABABAB;
}

/* Навигация по записям */
.post-navigation {
    margin: 50px 0;
    display: flex;
    justify-content: space-between;
}

.nav-previous,
.nav-next {
    max-width: 45%;
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    color: #196A70;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #23ACB2;
}

.nav-previous .meta-nav,
.nav-next .meta-nav {
    font-size: 14px;
    color: #ABABAB;
    display: block;
    margin-bottom: 5px;
}

/* Комментарии */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eaeaea;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 20px;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.comment-meta {
    margin-bottom: 15px;
    font-size: 14px;
}

.comment-author .avatar {
    border-radius: 50%;
    float: left;
    margin-right: 15px;
}

.comment-content {
    clear: both;
}

.reply {
    margin-top: 15px;
}