/*
Theme Name: north-logistic
Author: ON-WWW
Description: Тема Северный Путь
Version: 1.0
*/

@font-face {
  font-family: 'Lato';
  src: url('./fonts/Lato-Light.woff2') format('woff2'),
       url('./fonts/Lato-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('./fonts/Lato-Regular.woff2') format('woff2'),
       url('./fonts/Lato-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('./fonts/Lato-Medium.woff2') format('woff2'),
       url('./fonts/Lato-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('./fonts/Lato-Semibold.woff2') format('woff2'),
       url('./fonts/Lato-Semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('./fonts/Lato-Bold.woff2') format('woff2'),
       url('./fonts/Lato-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('./fonts/Unbounded-Light.woff2') format('woff2'),
       url('./fonts/Unbounded-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('./fonts/Unbounded-Regular.woff2') format('woff2'),
       url('./fonts/Unbounded-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('./fonts/Unbounded-Medium.woff2') format('woff2'),
       url('./fonts/Unbounded-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('./fonts/Unbounded-Bold.woff2') format('woff2'),
       url('./fonts/Unbounded-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── Общие настройки и сброс ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif, sans-serif;
  font-size: 16px;
  font-weight: 400;
  background: #fff;
  color: #111;
  line-height: 1.5;
}

/* ─── Заголовки ───────────────────────────────────────────────────────────── */
h1, h2, h3 {
  margin-top: 0;
  font-weight: 500;
  color: #1c2d47;
  font-family: 'Unbounded';
}

h1 {
  margin-bottom: 50px;
  font-size: 1.8rem;
}
h2 {
  font-size: 1.6rem;
}
h3 {
  font-size: 1.4rem;
}

/* ─── Header и лого ───────────────────────────────────────────────────────── */

.site-logo {
  display: block; /* обертка для логотипа */
}

.logo-image {
  max-width: 250px;
  height: auto;
  display: block;
}

.container {
  width: 1240px;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.site-header {
    background: #fff;
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-description {
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.header-contacts {
    text-align: center;
}

.header-contacts .phone {
    font-weight: 700;
    font-size: 1.3rem;
}

.header-contacts .email a {
    font-size: 1.1rem;
    border-bottom: 1px solid currentColor;
    color: #0b3b84;
    text-decoration: none;
}
.header-contacts .email a:hover {
    border-bottom: none;
}

.header-languages {
    display: flex;
    gap: 15px;
}

.header-languages .lang-item {
    text-decoration: none;
    color: #0b3b84;
    border-bottom: 1px solid currentColor;
    line-height: 1.2;
}
.header-languages .lang-item:hover {
    border-bottom: none;
}

.header-languages .lang-item.active {
    border-bottom: none;
    cursor: default;
    color: #111;
}

/* ─── Главное меню ─────────────────────────────────────────────────────────── */
.burger {
  display: none;
}

.main-nav {
  background-color: #1D2E48;
  border-radius: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.main-menu {
  list-style: none;
  margin: 0;
  display: flex;
  justify-content: space-between;
  padding: 10px 100px;
}

.main-menu a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 10px 0;
  display: block;
  transition: color 0.3s ease;
}

.main-menu a:hover,
.main-menu a:focus {
  color: #cfcfcf;
}

.main-menu .current-menu-item > a {
  color: #cfcfcf;
}

/* ─── Кнопки (базовые стили) ─────────────────────────────────────────────── */
button,
input[type="submit"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 20px;
  background-color: #0073e6;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
  background-color: #005bb5;
}

/* ─── Изображения ────────────────────────────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Главная страница */
.hero-block {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 20px 40px;
}

.hero-left {
  flex: 1;
  background-color: #f5f5f5;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 50%;
  box-sizing: border-box;
}

.hero-text {
  font-size: 1.1rem;
}

.hero-left h1 {
  margin-top: 0;
  font-family: 'Unbounded';
  font-weight: 400;
  color: #1d2e48;
  font-size: 1.6rem;
  line-height: 1.5;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-right img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.offer-title {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
  font-size: 1.6rem;
  font-weight: 500;
  font-family: 'Unbounded';
}

.offer-columns {
  display: flex;
  gap: 60px;
  margin-bottom: 40px;
  align-items: center;
}

.offer-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.5;
  position: relative;
  padding-top: 60px;
  padding-bottom: 40px;
  box-sizing: border-box;
}

.offer-text .icon {
  position: absolute;
  width: 37px;
  height: auto;
}

.offer-text .top-left {
  top: 10px;
  left: 0;
  transform: rotate(0deg);
}

.offer-text .bottom-right {
  bottom: 10px;
  right: 0;
  transform: rotate(180deg);
}

.offer-tiles {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 42%;
  box-sizing: border-box;
}

.tile {
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 150px;
}

.tile-sea {
  background: #85B6DE;
  color: #fff;
}

.tile-avia {
  border: 4px dashed #339272;
  color: #339272;
}

.tile-auto {
  border: 4px dashed #85B6DE;
  color: #85B6DE;
}

.tile-railway {
  background: #1C2D47;
  color: #fff;
}

.tile-icon {
  max-width: 55px;
  margin-bottom: 10px;
}
.offer-block {
  padding: 20px;
}
.offer-wrapper {
  background-color: #F9F9F9;
}

.principles-block {
  padding: 25px 20px;
}

.principles-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 500;
  font-family: 'Unbounded';
  margin-top: 40px;
  margin-bottom: 25px;
}

.principles-subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 80px;
  font-weight: 300;
  font-family: 'Unbounded';
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}

.principle-tile {
  background-color: #F3F3F3;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  padding: 40px 30px 20px;
  position: relative;
  margin-top: 40px;
}

.principle-tile:nth-child(1)::after,
.principle-tile:nth-child(2)::after,
.principle-tile:nth-child(4)::after,
.principle-tile:nth-child(5)::after {
  content: "";
  position: absolute;
  top: 80%;
  right: -30px;
  width: 30px;
  border-bottom: 3px dotted #85b6de;
  height: 0;
  pointer-events: none;
  z-index: 10;
}

.principle-icon {
  position: absolute;
  top: -40px;
  right: 5px;
  width: 80px;
  height: auto;
}

.principle-tile h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #111;
}

.principle-tile p {
  font-size: 1rem;
  line-height: 1.5;
}

.site-footer {
  background-color: #1C2D47;
  color: #fff;
  margin-top: 50px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: start;
  padding: 40px 20px;
  column-gap: 80px;
}

.footer-text {
  font-size: 1.2rem;
  line-height: 1.5;
  text-align: left;
}

.footer-address {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 6px;
}

.footer-contacts {
  text-align: right;
}

.footer-phone {
  font-size: 1.3rem;
}

.footer-mail a {
  color: #fff;
  text-decoration: underline;
  transition: text-decoration 0.3s;
}

.footer-mail a:hover {
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px 25px;
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  gap: 50px;
}
.footer-links a {
  color: #fff;
  text-decoration: underline;
}

.footer-links a:hover {
  text-decoration: none;
}

.services-text-center {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}
.services-text-center.bottom {
  font-family: 'Unbounded';
  font-weight: 400;
  margin-top: 60px;
  max-width: 600px;
}
.services-block {
  padding-top: 40px;
}
.page-content, .post-content {
  margin-bottom: 80px;
}
.page-content h1, .post-content h1, .category-page h1 {
  text-align: center;
  margin-top: 65px;
}
.page-content p, .post-content p {
  font-size: 1.07rem;
  margin-bottom: 30px;
}
.page-content li, .post-content li {
  font-size: 1.07rem;  
}
.page-content a, .post-content a {
  color: #0b3b84;
  text-decoration: underline;
}
.page-content a:hover, .post-content a:hover {
  text-decoration: none;
}
.post-content img {
  margin-bottom: 20px;
}
.post-date {
  color: #777;
  font-weight: 300;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.post-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.post-thumb {
    overflow: hidden;
    display: block;
    border-radius: 8px;
}
.post-thumb img {
    width: 100%;
    height: 200px;
    display: block;
	object-fit: cover;
    object-position: center;
	transition: transform 0.35s ease;
}
.post-thumb:hover img {
    transform: scale(1.05);
}
.post-title {
    font-size: 20px;
    margin: 15px 0 5px;
}
.post-title a {
    color: #111;
    text-decoration: none;
	transition: color 0.25s ease;
}
.post-title a:hover {
	color: #777;
}
.post-excerpt {
    font-size: 15px;
}

.home-news-block {
    padding: 60px 0;
}
.news-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}
.news-section-title {
    font-size: 1.6rem;
	font-weight: 500;
    margin: 0;
    text-align: center;
	margin: 0;
}
.news-all-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0b3b84;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    transition: color 0.25s ease;
	padding: 8px 0;
	font-family: 'Unbounded';
}
.news-all-link:hover {
    color: #777;
}
.news-all-link svg {
    width: 38px;
    height: 8px;
    transition: transform 0.3s ease;
}
.news-all-link:hover svg {
    transform: translateX(2px);
}
.news-grid-single {
    display: block;
}
.news-single {
    display: flex;
    gap: 40px;
    align-items: center;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.news-single-image {
    flex: 0 0 50%;
}
.news-single-image .post-thumb img {
	height: auto;
}
.news-single-content {
    flex: 1;
}
.news-grid-double {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.news-double {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.news-double-image {
    flex: 0 0 40%;
}
.news-double-content {
    flex: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 0.3s ease;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  color: #0b3b84;
}

.mobile-menu__nav {
  margin-top: 60px;
  width: 100%;
}

.mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu__list li {
  margin-bottom: 20px;
}

.mobile-menu__list a {
  text-decoration: none;
  font-size: 18px;
  color: #0b3b84;
}

@media (max-width: 1240px) {
  .main-nav {
    width: auto;
    margin: 0 20px;
  }
}

@media (max-width: 992px) {
  .logo-image {
    max-width: 200px;
  }
  .header-contacts .phone,
  .footer-phone {
    font-size: 1.2rem;
  }
  .header-contacts .email a {
    font-size: 1rem;
  }
  .main-menu a {
    font-size: 1.1rem;
  }
  .main-menu {
    padding: 7px 50px;
  }
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .principle-tile:nth-child(2)::after,
  .principle-tile:nth-child(4)::after {
    content: none;
  }
  .principle-tile:nth-child(1)::after,
  .principle-tile:nth-child(3)::after,
  .principle-tile:nth-child(5)::after {
    content: "";
    position: absolute;
    top: 80%;
    right: -30px;
    width: 30px;
    border-bottom: 3px dotted #85b6de;
    height: 0;
    pointer-events: none;
    z-index: 10;
  }
  .header-languages {
    gap: 10px;
  }
  .header-description {
    max-width: 200px;
  }
  .offer-columns {
    flex-direction: column;
    gap: 40px;
  }
  .offer-tiles {
    max-width: 100%;
  }
  .tile {
    min-height: 0;
  }
  h1 {
    margin-bottom: 40px;
  }
  .hero-left h1 {
    font-size: 1.5rem;
  }
  .offer-title {
    margin-bottom: 20px;
  }
  .principles-subtitle {
    margin-bottom: 60px;
  }
  .footer-links {
    gap: 25px;
  }
  .footer-text {
    font-size: 1rem;
  }
  .footer-address {
    font-size: 0.8rem;
  }
  .footer-bottom {
    font-size: 0.8rem;
  }
  .footer-mail {
    font-size: 0.9rem;
  }
  .footer-top {
    column-gap: 40px;
  }
  .services-text-center.bottom {
    margin-top: 20px;
  }
  .services-block {
    padding-top: 30px;
  }
	
	.post-card {
		display: flex;
		gap: 20px;
	}
	.news-three-image, .news-double-image {
		flex: 0 0 40%;
	}
	.posts-grid, .news-grid-double {
		grid-template-columns: 1fr;
	}
	.home-news-block {
		padding: 40px 0 50px;
	}
}

@media (max-width: 767px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  .hero-block {
    flex-direction: column;
    padding: 0;
    gap: 0;
    position: relative;
    padding: 10px 20px 30px;
  }

  .hero-right {
    order: 1;
    width: 100%;
    position: relative;
  }

  .hero-right img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    padding-bottom: 20px;
  }

  .hero-left__title-wrapper {
    position: absolute;
    bottom: 70%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 20px;
    box-sizing: border-box;
    text-align: center;
    z-index: 2;
  }

  .hero-left__title-wrapper h1 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.4;
  }

  .hero-left {
    order: 2;
    max-width: 100%;
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 12px;
    align-items: center;
  }

  .burger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 25px;
    background: transparent;
    padding: 0;
    border: none;
    z-index: 9999;
    position: relative;
    cursor: pointer;
  }

  .burger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #0b3b84 !important;
    border-radius: 2px;
  }

 .mobile-menu__list .current-menu-item > a {
    color: #111;
  }

  .header-logo {
    order: 2;
    justify-self: center;
  }

  .header-languages {
    order: 3;
    justify-self: end;
  }

  .header-description {
    order: 4;
    grid-column: 1 / -1;
    text-align: center;
    max-width: 100%;
  }

  .header-contacts {
    order: 5;
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
	gap: 20px;
  }

  .main-nav {
    display: none;
  }
  .principles-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .principle-tile:nth-child(1)::after,
  .principle-tile:nth-child(3)::after,
  .principle-tile:nth-child(5)::after {
    content: none;
  }
  .principles-subtitle {
    margin-bottom: 40px;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px 20px;
  }

  .footer-col {
    order: initial;
    margin-bottom: 20px;
  }

  .footer-text { 
    order: 1; 
    font-size: 1.2rem;
    text-align: center;
    max-width: 400px;
  }
  .footer-address { 
    order: 2;
    font-size: 0.9rem;
    max-width: 400px;
    text-align: center;
  }
  .footer-contacts { 
    order: 3; 
    text-align: center;
  }
  .footer-phone {
    font-size: 1.3rem;
  }
  .footer-mail {
    font-size: 1rem;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.9rem;
    padding: 0 20px 25px;
  }

  .footer-links {
    order: 4;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
  }
  .footer-links a {
    display: block;
  }

  .footer-copy {
    order: 5;
    margin-top: 10px;
  }
  .page-content {
    margin-bottom: 60px;
  }
  .page-content h1 {
    margin-top: 45px;
  }
	.news-single-image .post-thumb img {
		height: 200px;
	}
}

@media (max-width: 600px) {
  .services-block img {
    margin: 0 auto 20px;
    width: auto;
    max-width: 100%;
  }
  .services-block h2 {
    text-align: center;
  }
	.post-card, .news-double, .news-single {
		flex-direction: column;
	}
	.news-all-link {
		font-size: 0.8rem;
	}
	.news-section-title {
		font-size: 1.4rem;
	}
	.news-all-link svg {
		width: 28px;
	}
	.news-three-image, .news-double-image, .news-single-image {
		flex: 1;
	}
	.news-single {
		gap: 20px;
		align-items: stretch;
	}
}

@media (max-width: 480px) {
  .offer-tiles {
    grid-template-columns: repeat(1, 1fr);
  }
  .tile {
    padding: 20px 40px;
  }
  .logo-image {
    max-width: 150px;
  }
  .header-description {
    font-size: 0.9rem;
  }
  .offer-title,
  .principles-title {
    font-size: 1.4rem;
    margin-top: 30px;
  }
  .hero-left__title-wrapper h1 {
    font-size: 1.2rem;
  }
  .burger {
    width: 30px;
    height: 20px;
  }
  .hero-left__title-wrapper {
    bottom: 73%;
  }
  .header-contacts .phone {
    font-size: 1.1rem;
  }
  .header-contacts .email a {
    font-size: 0.9rem;
  }
	.news-section-header {
		flex-direction: column;
		align-items: stretch;
		margin-bottom: 30px;
	}
	.news-section-title {
		text-align: left;
	}
	.news-all-link {
		align-self: flex-end;
	}
	.home-news-block {
		padding: 30px 0 40px;
	}
}

@media (max-width: 360px) {
  .header-languages {
    gap: 6px;
    font-size: 0.9rem;
  }
}