/*
Theme Name: Dragon Maritime Theme
Theme URI: https://dragon-maritime.com.ua/
Author: Ihor K
Description: Тема сайта для Dragon Maritime
Version: 1.0.0
Text Domain: dragon-maritime-theme
*/



:root {
    --header-opacity: 0; /* Adjusted for subtle transparency */
    --header-bg-color: rgba(15, 23, 42, var(--header-opacity));
    --primary-color: #1e3a8a;
    --secondary-color: #ff3b3b;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --maritime-blue: #0f172a;
    --ocean-blue: #0ea5e9;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #e2e8f0;
}


.container {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1200px;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--header-bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo Styles */
.logo {
    flex-shrink: 0;
    z-index: 1002;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.custom-logo {
    height: 50px;
    width: auto;
}

.text-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 24px;
}

.logo-icon {
    font-size: 30px;
    color: var(--secondary-color);
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1002;
}

/* Language Switcher */
.language-switcher-mobile {
    position: relative;
    z-index: 1003;
}

.language-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-switcher-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--text-dark);
    transition: transform 0.3s ease;
}

.language-switcher-mobile:hover .arrow-down {
    transform: rotate(180deg);
}

.language-switcher-list {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    list-style: none;
    margin: 5px 0 0 0;
    padding: 0;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 120px;
    z-index: 1004;
}

.language-switcher-mobile:hover .language-switcher-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-switcher-list li {
    border-bottom: 1px solid #f0f0f0;
}

.language-switcher-list li:last-child {
    border-bottom: none;
}

.lang-item {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-item:hover,
.lang-item.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

/* Navigation */
.main-navigation {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background-color: var(--white);
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.main-navigation.active {
    left: 0;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.primary-menu a:hover {
    color: var(--secondary-color);
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.primary-menu a:hover::after {
    width: 100%;
}
/* Базовые стили подменю */
.primary-menu .sub-menu {
  position: absolute;
  top: 140%;
  left: 5px;
  background-color: #ffffff;
  min-width: 300px;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

/* Показываем подменю при наведении */
.primary-menu li.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Элементы подменю */
.primary-menu .sub-menu li {
  position: relative;
}

.primary-menu .sub-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.primary-menu .sub-menu a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Убираем стандартные маркеры ul > li */
.primary-menu .sub-menu li::marker {
  display: none;
}

.primary-menu .sub-menu li {
  list-style: none;
}

/* Чтобы родитель имел относительное позиционирование */
.primary-menu li.menu-item-has-children {
  position: relative;
}

/* Стрелка ▼ у родительских пунктов */
.primary-menu li.menu-item-has-children > a::before {
  content: "\25BC";
  font-size: 10px;
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.3s ease;
  vertical-align: middle;
  transform: rotate(0deg);
  position: absolute;
  right: -18px;
  top: 55%;
  transform: translateY(-50%) rotate(0deg);
  color: #fff;
}
.primary-menu li.menu-item-has-children:hover > a::before {
  transform: translateY(-50%) rotate(180deg);
}



/* Header Contact */
.header-contact {
    flex-shrink: 0;
}

.call-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.call-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 132, 199, 0.3);
}

.call-icon {
    display: flex;
    align-items: center;
}

.call-number {
    font-weight: 600;
}

/* Top Bar Styles */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgb(0 0 0 / 40%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 14px;
    padding: 8px 0;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}

/* Social Media */
.social-media {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-media a {
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-media a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Contact Info */
.contact-info {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.working-hours span {
    font-weight: 500;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
   /* outline: 2px solid var(--secondary-color);*/
    outline-offset: 2px;
}

/* Header при скролле */
.site-header.scrolled {
    top: 0;
    background-color: var(--white) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .primary-menu a {
    color: var(--text-dark);
}

.site-header.scrolled .primary-menu a:hover {
    color: var(--secondary-color);
}

.site-header.scrolled .mobile-menu-btn {
    color: var(--text-dark);
}

.site-header.scrolled .language-switcher-toggle {
    background-color: rgba(30, 58, 138, 0.1);
    color: var(--primary-color);
}

.site-header.scrolled .arrow-down {
    border-top-color: var(--primary-color);
}

/* Header при скролле */
.site-header.scrolled {
    top: 0;
    background-color: var(--white) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .primary-menu a {
    color: var(--text-dark);
}

.site-header.scrolled .primary-menu a:hover {
    color: var(--secondary-color);
}

.site-header.scrolled .mobile-menu-btn {
    color: var(--text-dark);
}

.site-header.scrolled .language-switcher-toggle {
    background-color: rgba(30, 58, 138, 0.1);
    color: var(--primary-color);
}

.site-header.scrolled .arrow-down {
    border-top-color: var(--primary-color);
}

/* Общие стили хедера */
.site-header {
    transition: all 0.3s ease;
}

/* Стили для главной страницы */
.home-page .site-header {
    background-color: transparent;
    border-bottom: none;
}

.home-page .site-header.scrolled,
.inner-page .site-header {
    background-color: var(--white) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Доп. стили для элементов меню на главной */
.home-page .site-header .primary-menu a {
    color: white;
}

.home-page .site-header.scrolled .primary-menu a,
.inner-page .site-header .primary-menu a {
    color: var(--text-dark);
}

/* Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-fallback-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    color: var(--white);
    text-align: center;
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}


.btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/*Хлебные крошки*/

.breadcrumbs {
  background-color: #f1f5f9; /* светлый фон */
  padding: 15px 0;
  font-size: 14px;
  color: var(--text-dark);
}

.breadcrumbs .container {
  display: flex;
  align-items: center;
}

.breadcrumbs-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumbs-list li {
  display: flex;
  align-items: center;
}

.breadcrumbs-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs-list a:hover {
  text-decoration: underline;
}

.separator {
  color: var(--text-light);
  margin: 0 6px;
}



/* Intro Section */
.intro {
    padding: 20px 20px;
    position: relative;
    overflow: hidden;
    text-align: center
}

.intro .section-title {
    margin-bottom: 30px;
}

.intro .section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0 0 15px;
    line-height: 1.3;
}

.intro .section-title p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.6;
    max-width: 850px;
    margin: 0 auto;
}

.intro-text p {
    margin: 0 0 15px;
}

/*Stats Section*/
.stats-section {
    padding: 20px 0 60px 0;
    background: linear-gradient(360deg, var(--maritime-blue), var(--primary-color));
    color: #fff;
    background-size: cover;
    background-position: center;
    text-align: center;
}
.stats-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.2);
}
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    align-items: center;
}
.stat-item {
    min-width: 220px;
    background: rgba(255,255,255,0.07);
    border-radius: 15px;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.1);
    padding: 30px 15px 25px;
    transition: transform 0.25s, box-shadow 0.25s;
}
.stat-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 4px 24px 0 rgba(30,58,138,0.20);
}
.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--accent-color);
    transition: color 0.3s;
}
.stat-item:hover .stat-icon {
    color: var(--secondary-color);
}
.stat-item h3 {
    font-size: 2.6rem;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.09);
}
.stat-desc {
    font-size: 1.13rem;
    font-weight: 600;
    letter-spacing: .5px;
    color: #fff;
}

/*Services Section*/
.services-section {
    padding: 20px 20px;
    text-align: center;
    overflow-x: hidden;
}

.section-header {
    margin-bottom: 60px;
}


.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
    color: var(--primary-color);
    line-height: 1.4;
}

.section-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    
}
.service-steps {
    max-width: 800px; 
    margin: auto;
}
.service-card {
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.service-card p {
    font-size: 0.95rem;
    padding: 0 15px;
    margin-bottom: 20px;
}

.btn-yellow {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 12px 40px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    margin: auto;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-yellow:hover {
    background: #fbbf24;
    transform: translateY(-2px);
}

/* Advantages Section */
.advantages {
    background-image: url(img/port-background.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
    padding: 40px 0;
    margin: 40px 0 0 0;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.advantages .container {
    position: relative;
    z-index: 2;
}

.advantages .container .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.advantages .section-title h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 2.2rem;
}
.advantages .section-title h2,
.advantages .advantage-card h3,
.advantages .advantage-card p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.advantages .section-title p.pgrand {
    font-size: 16px;
    margin: 0 auto;
}

.advantages .section-title p {
    color: rgba(255, 255, 255, 0.8);
    margin: 40px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.advantage-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.advantage-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* Контейнер Industrials */

/* Внутренний контейнер */
.industries-section.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
}
.industries-section {
  position: relative;
  z-index: 1;
}

.industries-section .section-header {
  text-align: center;
  margin-bottom: 50px;
}



/* Сетка карточек — по 3 в ряд */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
}

/* Карточка */
.flip-box {
  background-color: transparent;
  width: 100%;
  max-width: 340px;
  height: 340px;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

/* Внутренний блок */
.flip-box-inner {
  width: 100%;
  height: 200%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  position: relative;
}

.flip-box:hover .flip-box-inner {
  transform: translateY(-50%);
}

/* Лицевая и обратная стороны */
.flip-box-front,
.flip-box-back {
  width: 100%;
  height: 50%;
  padding: 30px 20px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backface-visibility: hidden;
  box-shadow: inset -1px 0px 8px 1px rgb(0 0 0 / 15%);
  z-index: 1;
}
/* Общий стиль карточек */
.flip-box-front {
  background: #fff;
  transition: background 0.3s ease;
}

/* Градиент для 2-й и 5-й карточки */
.industries-grid .flip-box:nth-child(2) .flip-box-front,
.industries-grid .flip-box:nth-child(5) .flip-box-front {
  background: linear-gradient(135deg, #038b9d, #854c6d);
  color: #fff;
} 
.industries-grid .flip-box:nth-child(2) .flip-box-front p,
.industries-grid .flip-box:nth-child(5) .flip-box-front p {
  color: #fff;
} 


/* Иконка */
.flip-box-front i {
  font-size: 5rem;
  color: var(--accent-color, #ffaa00);
  margin-bottom: 30px;
}

/* Тексты */
.flip-box-front h3{
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.flip-box-back h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.flip-box-front p {
  font-size: 1.2rem;
  color: #444;
  margin: 0 auto;
}

/* Обратная сторона */
.flip-box-back {
  background: linear-gradient(to top, #004b94, #007ac0);
  color: #fff;
  padding: 30px 20px;
}

.flip-box-back p {
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
}

/* Кнопка */
.btn-flip {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 22px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-flip:hover {
  background: #fff;
  color: #004b94;
}


/* Clients Section */
.clients.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.clients .section-header {
    text-align: center;
    margin: 10px 0;
}

.client-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.client-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary);
}

.client-logos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 50px;
    gap: 20px;
}

.client-logo {
    width: 180px;
    height: 100px;
    background-color: white;
    margin: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.client-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.client-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.clients .section-title {
    margin-bottom: 0;
}

/*Map*/
.map {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}
.map .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.map-container {
  position: relative;
  max-width: 100%;
  height: auto;
}

.map-image {
  width: 100%;
  display: block;
}

.port-point {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.port-dot {
  width: 17px;
  height: 17px;
  background-color: #004b94;
  border-radius: 50%;
  border: 2px solid white;
  z-index: 2;
}


.map-label {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.8;
  pointer-events: none; /* чтобы не мешало кликам */
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

/* Название города (исчезает при hover) */
.port-label {
  color: white;
  background: rgba(0, 75, 148, 0.85);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 5px;
  white-space: nowrap;
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-10%);
  z-index: 2;
  transition: opacity 0.2s ease;
}

/* Информационный блок (изначально скрыт) */
.port-info {
  position: absolute;
  top: -250px;
  left: 60%;
  transform: translateX(-50%);
  width: 260px;
  background: #004b94;
  color: white;
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.port-info img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  z-index: 4;
  object-fit: cover;
}

.port-info h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  z-index: 4;
}

.port-info p {
  font-size: 0.9rem;
  line-height: 1.4;
  z-index: 4;
}

/* Ховер: скрываем название, показываем блок */
.port-point:hover .port-label {
  opacity: 0;
}

.port-point:hover .port-info {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-10px);
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 30px;
  box-sizing: border-box;
}

.image-modal.open {
  display: flex;
}

.image-modal-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 25px #000;
  cursor: pointer;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

/* Footer */
.site-footer {
    background: linear-gradient(360deg, var(--maritime-blue), var(--primary-color));
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-links-wrapper {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.footer-links ul {
    list-style: none;
}

footer .pll-parent-menu-item {
    display: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact {
    grid-column: 4 / 5;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Floating Call Button */
.floating-call-button {
    display: none; /* Скрыта по умолчанию */
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #003087;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: pulse 2s infinite;
    cursor: pointer;
}

.floating-call-button:hover {
    background-color: #005bb5;
    transform: scale(1.1);
}

.floating-call-button svg {
    width: 24px;
    height: 24px;
}


/* Animations */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15); }
    50% { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
    100% { transform: scale(1); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar {
        display: none;
        height: 0;
        padding: 0;
        margin: 0;
    }
    
    .site-header {
        top: 0 !important; /* Хедер прижимаем к верху */
    }
    
    .hero-section {
        margin-top: 0 !important; /* Убираем отступ у героя */
    }
    
    .header-container {
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
     .main-navigation {
        top: 80px;
        max-height: none; /* Было 400px — убираем */
        height: auto;
        overflow-y: unset;
    }
    
    .main-navigation.active {
        max-height: 400px;
    }
    
    .primary-menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%;
        background-color: #fff;
    }
    
    .primary-menu li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .primary-menu li:last-child {
        border-bottom: none;
    }
    
    .primary-menu a {
        display: block;
        padding: 18px 24px;
        font-size: 17px;
        font-weight: 600;
        text-align: left;
        color: var(--text-dark);
        background-color: #fff;
        transition: background 0.3s ease;
    }
    
    .primary-menu a:hover {
        background-color: #f5f5f5;
    }
    
    .primary-menu a::after {
        display: none;
    }
    
    

    .primary-menu li.submenu-open > .sub-menu {
        max-height: 300px; /* достаточно для 2–3 пунктов */
    }

    /* Стиль стрелки */
  /* Стили стрелки для мобилки */
  .submenu-toggle {
    font-size: 14px;
    margin-left: 8px;
    cursor: pointer;
    color: var(--text-dark);
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .submenu-toggle.rotate {
    transform: rotate(180deg);
  }


    /* Стрелки только на мобилках */
    .primary-menu li.menu-item-has-children > a::before {
        display: none;
    }
    
    .primary-menu a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
        /* Мобильный аккордеон */
    .primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease;
    }
    

    .primary-menu li.submenu-open > .sub-menu {
        max-height: 450px;
    }

    .primary-menu .sub-menu a {
        padding: 12px 40px;
        font-size: 0.9rem;
    }

    .language-switcher-mobile .language-switcher-toggle {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--text-dark);
        font-weight: 600;
    }
    
    .arrow-down {
        border-top-color: var(--primary-color);
    }
    
    .language-switcher-list {
        right: 0;
        left: auto;
        margin-top: 8px;
        min-width: 80px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 250px;
        justify-content: center;
    }
    
    .call-button {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .call-number {
        display: none;
    }
    
    .top-bar {
        padding: 6px 0;
        font-size: 13px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info {
        gap: 15px;
        justify-content: center;
    }
    
    .social-media {
        gap: 10px;
        justify-content: center;
    }
    
    .social-media a {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .top-bar {
        display: none;
    }

     .map {
    padding: 40px 10px;
    overflow: hidden;
    z-index: 10;
    position: relative;
  }

  .map-label {
    font-size: 1rem;
  }

  .port-label {
    font-size: 0.6rem;
    padding: 3px 6px;
    top: -10px;
    left: 25px;
    border-radius: 4px;
  }

  .port-dot {
    width: 14px;
    height: 14px;
  }

  .port-info {
    top: auto;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    max-width: 300px;
    font-size: 0.85rem;
    z-index: 10000;
    padding: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    
    
  }
   

  .port-info img {
    max-height: 120px;
    object-fit: cover;
  }

  .port-point:hover .port-info {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
  }

  .image-modal-content {
    max-width: 95vw;
    max-height: 80vh;
  }

  .image-modal-close {
    top: 10px;
    right: 15px;
    font-size: 28px;
  }
  .port-info.mykolaiv {
    left: auto !important;
    right: 0 !important;
    top: 100% !important;
    bottom: auto !important;
    transform: translateX(0) translateY(-240px) !important;
  }


  .site-footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-links-wrapper {
        grid-column: auto;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }

    .footer-contact {
        grid-column: auto;
    }

    .footer-about h3,
    .footer-links h3,
    .footer-contact h3 {
        font-size: 18px;
    }

    .footer-about p,
    .footer-links ul li a,
    .footer-contact p {
        font-size: 14px;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
    .floating-call-button {
        display: flex;
    }

    .single nav.breadcrumbs {
      margin-top: 80px;
    }
     .content-post  .text-content ul,
     .content-post .text-content ol {
        margin: 0;
    }
    .service-steps {
        
        margin: 0 20px;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-container {
        gap: 10px;
        padding: 0 10px;
    }
    
    .site-header {
        top: 35px;
    }
    
    .hero-section {
        margin-top: 35px;
        padding-top: 70px;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .text-logo {
        font-size: 18px;
    }
    
    .logo-icon {
        font-size: 20px;
    }
    
    .language-switcher-toggle {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .language-switcher-list {
        min-width: 70px;
    }
    
    .lang-item {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .mobile-menu-btn {
        font-size: 20px;
    }
    
    .top-bar {
        padding: 5px 0;
        font-size: 12px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-info > div {
        gap: 6px;
    }
    
    .contact-info i {
        font-size: 12px;
    }
    .error-404 {
        padding: 60px 0;
    }

    .error-404 .section-title h1 {
        font-size: 48px;
    }

    .error-404 .section-title h2 {
        font-size: 36px;
    }

    .error-404 .section-title p {
        font-size: 16px;
    }


    .pll-parent-menu-item > a {
        padding: 8px 15px;
    }

    .related-posts {
        margin-top: 40px;
        padding-top: 30px;
    }

    .related-posts-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .related-post {
        min-width: 240px;
    }

    .related-post-thumbnail {
        height: 150px;
    }

    .related-post-title {
        font-size: 16px;
        padding: 12px 15px 8px;
    }

    .related-post-excerpt {
        padding: 0 15px 15px;
        font-size: 13px;
    }

    .related-post {
        flex: 0 0 calc(100% - 20px);
        min-width: 220px;
    }

    .related-post-thumbnail {
        height: 140px;
    }

    .category-filter select {
        width: 100%;
        max-width: none;
    }
}


/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}



@media (min-width: 769px) {
    .main-navigation {
        position: absolute;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        background-color: transparent;
        width: auto;
        height: auto;
        box-shadow: none;
        overflow: visible; /* На десктопе скролл не нужен */
    }
     
}

@media (min-width: 1000px) {
  .header-container {
    padding: 0 150px 0 100px;
  }
}


/* 🔁 Адаптивность */

@media (max-width: 640px) {
  .industries-grid {
    grid-template-columns: 1fr;
  }
}

/*Page Services*/

.page-hero-section {
  position: relative;
  background-image: url('img/our-services-background.jpg'); /* Укажи путь к своему изображению */
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(69, 0, 0, 0.4); /* затемнение */
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero-content h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-top: 60px;
}

/* Service Process Section */
section.service-process {
    padding: 20px 0 80px 0;
}
.service-process {
    background-color: var(--light);
    text-align: center;
}

.service-process .section-title h2 {
    font-size: 2.5rem;
}
.service-process .section-title p {
    color: var(--text-dark);
}

.service-process .step {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.service-process .step:last-child {
    margin-bottom: 0;
}

.service-process .step h3 {
    color: var(--primary-color);
    text-align: left;
    margin-bottom: 15px;
}

.service-process .step p {
    text-align: left;
}

.service-process {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}
.step {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.service-card ul {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.service-card ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-dark);
  text-align: left;
}

.service-card ul li::before {
  content: "\2713"; /* галочка */
  position: absolute;
  left: 0;
  top: 1px;
  color: green;
  font-size: 1rem;
  font-weight: bold;
}


/*Contact Section*/
/* Две колонки для формы */
.services-contact-wrapper {
  background-color: #f8fafc;
  padding: 60px 40px;
}

.services-contact-wrapper .section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}
.cf7-two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.cf7-two-column .left,
.cf7-two-column .right {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cf7-two-column .left {
  flex: 0 0 35%;
}

.cf7-two-column .right {
  flex: 1;
}

.cf7-two-column input,
.cf7-two-column textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
}

.cf7-two-column textarea {
  min-height: 180px;
  resize: vertical;
}

.cf7-two-column .wpcf7-submit {
  background-color: var(--secondary-color);
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-end;
}

.cf7-two-column .wpcf7-submit:hover {
  background-color: #2aa2c2;
}

/* Адаптация */
@media (max-width: 768px) {
  .cf7-two-column {
    flex-direction: column;
  }

  .cf7-two-column .left,
  .cf7-two-column .right {
    width: 100%;
  }

  .cf7-two-column .wpcf7-submit {
    align-self: stretch;
  }
}

/*About us Page*/

.about-hero-section {
  position: relative;
  background-image: url('img/about-us-background.jpg'); /* Укажи путь к своему изображению */
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.about-us h2 {
    padding: 20px 20px;
    text-align: center;
}
.about-us .section-header {
    margin-bottom: 0;
}
section.about-us {
    margin-bottom: 40px;
}

/* News Page */
.news-hero-section {
  position: relative;
  background-image: url('img/bg-news-page.jpg'); /* Укажи путь к своему изображению */
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.news-section {
    padding: 40px 0;
    width: 100%;
}

.section-header-news {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    margin-bottom: 40px;
    gap: 20px;
}

.page-title {
    font-size: 32px;
    margin: 0;
    color: var(--primary-color);
    flex: 1;
}

.category-filter {
    flex-shrink: 0;
}

.category-filter select {
    padding: 6px 30px 6px 12px;
    font-size: 14px;
    border: 1px solid var(--text-light);
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    width: auto;
    max-width: 200px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="%23666" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
}

.category-filter select:hover,
.category-filter select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-grid article.post {
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding-bottom: 15px;
}

article .intro p {
    text-align: left;
}
.news-grid article.post:hover {
    transform: translateY(-5px);
}

.entry-header {
    padding: 20px;
}

.entry-title a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--secondary-color);
}

.entry-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.entry-content {
    padding: 0 20px 20px;
}

.entry-content p {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

.entry-footer {
    padding: 0 20px 20px;
    font-size: 14px;
}

.entry-footer .entry-meta {
    color: var(--text-light);
}

.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

.pagination .current {
    background-color: var(--primary-color);
    color: white;
}

/* Contact Page */
.contact-hero-section {
  position: relative;
  background-image: url('img/bg-contact-page.jpg'); /* Укажи путь к своему изображению */
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.contact-info-section {
  background-color: #f9fafb;
  padding: 20px 20px 80px 20px;
}

.contact-info-section .section-title {
  text-align: center;
  margin-bottom: 50px;
}

.contact-info-section .section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.contact-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.contact-icon-circle {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.contact-card p {
  font-size: 16px;
  color: var(--text-light);
  margin: 0;
}

.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* AOS + Responsive */
@media (max-width: 600px) {
  .contact-icon-circle {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .contact-card {
    padding: 25px 20px;
  }
}

/* Single Post Section */
.single-post-section {
    width: 100%;
}

.container-post {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.header-post {
    margin-bottom: 10px;
    text-align: center;
}

.title-post {
    font-size: 2rem;
    margin: 35px 0 15px;
    color: var(--primary-color);
    line-height: 1.2;
}


.meta-post {
    font-size: 1rem;
    color: var(--text-light);
    text-align: right;
}

.meta-post .posted-on,
.meta-post .byline {
    margin-right: 15px;
}

.meta-post a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-post a:hover {
    color: var(--secondary-color);
}

.thumbnail-post {
    margin-bottom: 30px;
}

.thumbnail-post img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-post {
    line-height: 1.6;
    color: var(--text-dark);
}

.content-post p {
    margin: 0 0 20px;
    font-size: 1.1rem;
}

.content-post h2,
.content-post h3,
.content-post h4 {
    margin: 30px 0 15px;
}

.content-post h2 {
    font-size: 1.8rem;
}

.content-post h3 {
    font-size: 1.6rem;
}

.content-post .contact-info i {
    font-size: 1.6rem;
}

.content-post h4 {
    font-size: 1.4rem;
}

.content-post ul,
.content-post ol {
    margin: 0 0 20px 20px;
}

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

.content-post a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.content-post a:hover {
    color: var(--secondary-color);
}

.content-post img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.wp-block-image figure {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
}

.wp-block-image figcaption {
    
    position: relative;
    bottom: 47px;
    left: 0;
    width: 100%;
    padding: 1em;
    font-size: 1.1rem;
    color: #fff;
    text-align: center;
    text-shadow: 0 0 2px black;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent);
    z-index: 2;
    box-sizing: border-box;
    margin: 0 !important;
}

.wp-block-image figure::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1;
    pointer-events: none;
}

.wp-block-image .alignleft {
    float: left;
    margin: 0.5em 1em 0.5em 0;
}

.wp-block-image .alignright {
    float: right;
    margin: 0.5em 0 0.5em 1em;
}

.wp-block-image .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-post {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #919eab;
}

.footer-post .meta-post,
.footer-post .cat-links a {
    font-size: 1rem;
    color: var(--gray);
}

.footer-post .cat-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-post .cat-links a:hover {
    color: var(--secondary-color);
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

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

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

.comment-author {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.comment-author .says {
    display: none;
}

.comment-meta {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.comment-content {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.reply {
    margin-top: 8px;
}

.reply a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.reply a:hover {
    color: var(--secondary-color);
}

.comment-respond {
    margin-top: 30px;
}

.comment-reply-title {
    font-size: 1.4rem;
    color: var(-primary-color);
    margin-bottom: 15px;
}

.comment-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.comment-form p {
    margin: 0;
    flex: 1 1 100%;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
    display: block;
    margin-bottom: 5px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--text-dark);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-dark);
}

.comment-form textarea {
    height: 120px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.comment-form-cookies-consent label {
    margin: 0;
    font-size: 14px;
}

.comment-form .form-submit {
    flex: 0 0 auto;
    margin-top: 5px;
}

.comment-form input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background-color: var(--secondary-color);
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.related-posts-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.related-posts-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.related-posts-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 5px;
    margin: 0 -5px;
}

.related-posts-container::-webkit-scrollbar {
    display: none;
}

.related-post {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.related-post-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.related-post-thumbnail {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.related-post-thumbnail.no-image {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-placeholder svg {
    opacity: 0.5;
    fill: #aaa;
}

.related-post-title {
    padding: 15px 20px 10px;
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.related-post:hover .related-post-title {
    color: var(--primary-color);
}

.related-post-excerpt {
    padding: 0 20px 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-related-posts {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    font-style: italic;
}

.related-posts-navigation {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    gap: 15px;
}

.related-posts-navigation button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.related-posts-navigation button:not(:disabled):hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.related-posts-navigation button:not(:disabled):hover svg {
    fill: white;
}

.related-posts-navigation button svg {
    fill: var(--text-dark);
    transition: fill 0.3s ease;
}

.related-posts-navigation button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Blog and Cargo Types */
.cargo-types,
.posts-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cargo-type {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.cargo-icon {
    font-size: 24px;
    color: #047c3f;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}


.blog-post-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

h3.after-figure {
    margin-top: 0;
}

/* Общие стили для секции блога */
.blog-post-section {
    margin-bottom: 40px;
}
.content-wrap {
    overflow: hidden; /* Предотвращаем переполнение */
}

/* Текст */
.text-content {
    min-width: 0; /* Предотвращаем растягивание текста */
}

/* Стили для изображений */
.blog-post-section .blog-image {
    min-width: 320px;
    max-width: 420px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Первое изображение: обтекание справа */
.blog-post-section .blog-image-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Второе изображение: обтекание слева */
.blog-post-section .blog-image-left {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

/* Очистка обтекания после каждого изображения */
.content-wrap::after {
    content: "";
    display: table;
    clear: both;
}
/* Стили для списка с иконками */
.features-list {
    margin: 20px 0;
    list-style: none;
    min-width: 320px; /* Ширина изображения (420px) + margin-left (20px) */
    overflow: hidden; /* Предотвращаем смещение */
}

/* Элементы списка */
.features-list li {
    position: relative; /* Для позиционирования иконок */
    margin-bottom: 10px;
    line-height: 1.5; /* Улучшаем читаемость */
}

/* Иконки Font Awesome */
.features-list li i {
    display: inline-block; /* Иконки в потоке текста */
    position: static; /* Убираем absolute, чтобы иконки участвовали в обтекании */
    margin-right: 10px; /* Отступ между иконкой и текстом */
    font-size: 16px; /* Размер иконки */
    width: auto; /* Убираем фиксированную ширину */
    vertical-align: middle; /* Выравнивание по вертикали */
    color: var(--primary-color);
}

.standards-grid,
.quality-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.standard-item,
.quality-item,
.process-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.quality-item i,
.process-item i {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.highlight-box {
    background-color: #e8f4ff;
    padding: 20px;
    border-radius: 8px;
    margin: 15px;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
}

.post-meta {
    font-size: 14px;
    color: var(--text-light);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Responsive Table */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
}

.responsive-table th,
.responsive-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    white-space: nowrap;
}

.responsive-table th {
    background-color: #f2f2f2;
}

.single .site-header {
  background-color: var(--white) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.single .primary-menu a {
  color: var(--text-dark);
}

.single .primary-menu a:hover {
  color: var(--secondary-color);
}

.single .mobile-menu-btn,
.single .language-switcher-toggle {
  color: var(--text-dark);
}

.single .arrow-down {
  border-top-color: var(--text-dark);
}
.single .breadcrumbs {
  margin-top: 120px; /* или столько, сколько высота твоего хедера */
  z-index: 10;
  position: relative;
  background-color: transparent;
}

/*Contact post section*/
.content-post  .contact-info {
    padding: 0 40px;
    display: block;
}
.contact-icon {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-right: 15px;
}
.contact-text  h2, 
.contact-text  h3,
.contact-text  h4 {
    margin: 0;
}

/* Error 404 */
.error-404 {
    text-align: center;
}

.error-404 .section-title h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-404 .section-title h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-404 .section-title p {
    font-size: 1.4rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.error-404 .btn {
    background-color: var(--secondary-color);
    padding: 12px 30px;
    font-size: 1.4rem;
}

.error-404 .btn:hover {
    background-color: #e1a826;
}

/* Advantages Section in Articel */
.advantages-single-page {
    background-image: url(img/mayak-bg.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
    padding: 40px 0;
    margin: 40px 0 0 0;
}

.advantages-single-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.advantages-single-page .container {
    position: relative;
    z-index: 2;
}

.advantages-single-page .container .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.advantages-single-page .section-title h2 {
    color: white;
    margin-bottom: 15px;
}
.advantages-single-page .section-title h2,
.advantages-single-page .advantage-card h3,
.advantages-single-page .advantage-card p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.advantages-single-page .section-title p.pgrand {
    font-size: 16px;
    margin: 0 auto;
}

.advantages-single-page .section-title p {
    color: rgba(255, 255, 255, 0.8);
    margin: 40px 0;
    font-weight: normal;
    font-style: italic;
}

.advantages-grid-single {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card-single {
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.advantage-card-single h3, .advantage-card-single p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    color: white;
    margin-bottom: 15px;
}

.advantage-card-single:hover {
    background-color: rgba(255, 255, 255, 0.2);
    
}

.advantage-card-single h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.how-we-work .section-title h2 {
  margin-bottom: 40px;
  font-weight: 700;
  text-align: center;
}

.how-we-work-text ol {
  margin: 0 auto 40px;
  padding: 0;
  list-style: none;
  counter-reset: step-counter;
  text-align: left;
}

.how-we-work-text ol li {
  position: relative;
  padding-left: 50px;
  margin-bottom: 25px;
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.how-we-work-text ol li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background-color: var(--secondary-color);
  color: white;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.content-post .intro h2 {
    color: var(--primary-color);
}


