﻿/*
Theme Name: EACH Complete Redesign Fixed
Theme URI: https://eachvn.com/
Author: EACH VIET NAM
Description: Full visual redesign for EACH VIET NAM. Preserves existing page content while replacing the Lightning/Elementor visual shell.
Version: 2026.06.04.4
Requires at least: 6.0
Text Domain: each-complete-redesign-fixed
*/

:root {
  --each-ink: #111827;
  --each-muted: #58677c;
  --each-soft: #eef4fb;
  --each-bg: #f5f7fb;
  --each-white: #ffffff;
  --each-line: rgba(16, 24, 40, 0.14);
  --each-blue: #1669d6;
  --each-blue-dark: #071b3d;
  --each-blue-light: #29a8ec;
  --each-green: var(--each-blue);
  --each-green-dark: var(--each-blue-dark);
  --each-gold: #a77a35;
  --each-shadow: 0 18px 42px rgba(7, 27, 61, 0.1);
  --each-hero-image: url("assets/images/each-home-rail-20260601-v2.jpg");
  --each-page-image: url("assets/images/each-cloud-landmark.jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--each-bg);
  color: var(--each-ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  line-break: strict;
}

:where(h1, h2, h3, h4, h5, h6, p, li, a, button, label, th, td, .each-directory__lead, .each-card, .each-side, .each-alert) {
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: normal;
  text-wrap: pretty;
}

:where(input, textarea, select, .each-map a, .each-content a) {
  word-break: normal;
  overflow-wrap: anywhere;
}

body.admin-bar .each-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.each-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(16, 24, 40, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 26px rgba(7, 27, 61, 0.04);
}

.each-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 42px);
}

.each-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  min-width: 168px;
}

.each-logo__image {
  width: 168px;
  max-height: 60px;
  height: auto;
  object-fit: contain;
}

.each-menu-control,
.each-menu-toggle {
  display: none;
}

.each-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  color: #263449;
  font-size: 14px;
  font-weight: 800;
}

.each-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.each-nav li {
  position: relative;
}

.each-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  white-space: nowrap;
}

.each-nav a:hover {
  color: var(--each-blue);
}

.each-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -14px;
  display: grid;
  min-width: 230px;
  gap: 0;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--each-shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

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

.each-nav .sub-menu a {
  justify-content: flex-start;
  width: 100%;
  min-height: 34px;
  border-radius: 6px;
  padding: 0 9px;
  color: #263449;
}

.each-nav .sub-menu a:hover {
  background: var(--each-soft);
  color: var(--each-blue);
}

.each-header__contact {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(18, 103, 216, 0.32);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--each-blue);
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.each-main {
  min-height: 70vh;
}

.each-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 42px);
}

.each-label {
  margin: 0 0 10px;
  color: var(--each-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.each-hero .each-label,
.each-page-hero .each-label,
.each-side .each-label,
.each-contact-band .each-label,
.each-footer .each-label {
  color: #8fd2ff;
}

.each-hero {
  display: grid;
  align-items: center;
  min-height: 570px;
  padding: clamp(54px, 7vw, 86px) clamp(20px, 5vw, 76px);
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(7, 27, 61, 0.94) 0%, rgba(7, 27, 61, 0.8) 38%, rgba(22, 105, 214, 0.36) 72%, rgba(7, 27, 61, 0.1) 100%),
    var(--each-hero-image);
  background-position: center 60%;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--each-blue-dark);
}

.each-hero__content {
  max-width: 820px;
}

.each-hero h1,
.each-page-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(31px, 3.7vw, 50px);
  line-height: 1.2;
  letter-spacing: 0;
}

.each-hero p,
.each-page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.86;
}

.each-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.each-hero__proof span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.each-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.each-button,
.each-form button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.each-button--light {
  background: #fff;
  color: var(--each-green-dark);
}

.each-button--green,
.each-form button {
  background: var(--each-green);
  color: #fff;
}

.each-button--blue {
  background: var(--each-blue);
  color: #fff;
}

.each-button--outline {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
}

.each-statement {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--each-line);
  background: rgba(16, 24, 40, 0.1);
}

.each-statement article {
  min-height: 126px;
  background: #fff;
  padding: 24px clamp(18px, 2.8vw, 30px);
}

.each-statement span {
  color: var(--each-gold);
  font-size: 12px;
  font-weight: 900;
}

.each-statement strong {
  display: block;
  margin-top: 6px;
  color: var(--each-blue-dark);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.42;
}

.each-statement p {
  margin: 0;
  color: var(--each-muted);
  font-size: 14px;
  line-height: 1.72;
}

.each-photo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px clamp(20px, 5vw, 76px);
  background: #fff;
  border-bottom: 1px solid var(--each-line);
}

.each-photo-strip figure {
  position: relative;
  min-height: 245px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dce8f7;
}

.each-photo-strip img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

.each-photo-strip figcaption {
  display: none;
}

.each-home-about {
  border-bottom: 1px solid var(--each-line);
  background:
    linear-gradient(135deg, rgba(238, 244, 251, 0.96), rgba(255, 255, 255, 0.98));
  padding: 64px 0;
}

.each-home-about--position {
  padding: 48px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.each-home-about__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: stretch;
}

.each-home-about__main,
.each-home-about__panel {
  border: 1px solid rgba(22, 105, 214, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(7, 27, 61, 0.06);
}

.each-home-about__main {
  padding: clamp(28px, 4vw, 44px);
}

.each-home-about--position .each-home-about__main {
  border-left: 4px solid var(--each-blue);
}

.each-home-about__main h2 {
  max-width: 620px;
  margin: 0 0 18px;
  color: var(--each-blue-dark);
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.3;
  letter-spacing: 0;
}

.each-home-about--position .each-home-about__main h2 {
  font-size: clamp(26px, 2.7vw, 36px);
}

.each-home-about__main p:not(.each-label),
.each-home-about__panel p {
  margin: 0 0 16px;
  color: #324258;
  font-size: 16px;
  line-height: 1.86;
}

.each-home-about__main .each-button {
  margin-top: 12px;
}

.each-home-about__panel {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 3vw, 34px);
}

.each-home-about__panel h3 {
  margin: 0 0 10px;
  color: var(--each-ink);
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.38;
}

.each-home-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.each-home-values article:nth-child(3):last-child {
  grid-column: 1 / -1;
}

.each-home-values article {
  border: 1px solid rgba(22, 105, 214, 0.12);
  border-left: 3px solid var(--each-blue);
  border-radius: 8px;
  background: #f8fbff;
  padding: 16px;
}

.each-home-values span {
  display: block;
  color: var(--each-gold);
  font-size: 12px;
  font-weight: 900;
}

.each-home-values strong {
  display: block;
  margin-top: 5px;
  color: var(--each-ink);
  font-size: 16px;
  line-height: 1.45;
}

.each-home-values p {
  margin: 6px 0 0;
  color: var(--each-muted);
  font-size: 14px;
  line-height: 1.7;
}

.each-section {
  padding: 62px 0;
}

.each-section--paper {
  background: linear-gradient(180deg, #eef4fb 0%, #f7f9fc 100%);
}

.each-section__head {
  max-width: 780px;
  margin-bottom: 30px;
}

.each-section__head h2,
.each-contact-band h2 {
  margin: 0;
  color: var(--each-ink);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.34;
  letter-spacing: 0;
}

.each-grid {
  display: grid;
  gap: 16px;
}

.each-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.each-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.each-card,
.each-post-card {
  display: block;
  min-height: 100%;
  border: 1px solid rgba(16, 24, 40, 0.11);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.each-card:hover,
a.each-post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--each-shadow);
}

.each-card span {
  color: var(--each-gold);
  font-weight: 900;
}

.each-card h3,
.each-post-card h2,
.each-post-card h3 {
  margin: 13px 0 10px;
  color: var(--each-ink);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0;
}

.each-card p,
.each-post-card p {
  margin: 0;
  color: var(--each-muted);
  line-height: 1.82;
}

.each-section--partners {
  background: #fff;
  padding-top: 52px;
  padding-bottom: 52px;
}

.each-partner-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  gap: 26px;
  align-items: center;
  border: 1px solid rgba(22, 105, 214, 0.14);
  border-left: 4px solid rgba(22, 105, 214, 0.74);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 76%);
  box-shadow: 0 14px 32px rgba(7, 27, 61, 0.05);
  padding: clamp(24px, 4vw, 38px);
}

.each-partner-block h2 {
  max-width: 820px;
  margin: 0 0 16px;
  color: var(--each-ink);
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.36;
}

.each-partner-block p:not(.each-label) {
  margin: 0 0 14px;
  color: #35435c;
  line-height: 1.86;
}

.each-partner-block p:last-child {
  margin-bottom: 0;
}

.each-partner-block__action {
  display: grid;
  gap: 12px;
  align-content: center;
  border-radius: 8px;
  background: rgba(238, 244, 251, 0.7);
  padding: 18px;
}

.each-partner-block__action span {
  color: var(--each-gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.each-partner-link,
.each-text-link {
  color: var(--each-blue);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.each-partner-link:hover,
.each-text-link:hover {
  color: var(--each-blue-dark);
}

.each-post-card time {
  color: #8a6a2d;
  font-size: 13px;
  font-weight: 900;
}

.each-page-hero {
  display: grid;
  align-items: end;
  min-height: 300px;
  padding: clamp(48px, 6vw, 72px) clamp(20px, 5vw, 76px);
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(7, 27, 61, 0.96) 0%, rgba(7, 27, 61, 0.82) 46%, rgba(22, 105, 214, 0.34) 100%),
    var(--each-page-image);
  background-position: var(--each-page-position, center 48%);
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--each-blue-dark);
}

.each-page-hero__inner {
  max-width: 900px;
}

.each-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(22px, 3vw, 36px);
  padding: 58px 0 68px;
}

.each-layout--story {
  grid-template-columns: minmax(0, 840px) 260px;
  align-items: start;
}

.each-layout--full,
.each-layout--story.each-layout--full {
  grid-template-columns: 1fr;
}

.each-content {
  min-width: 0;
  border: 1px solid var(--each-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(23, 33, 29, 0.06);
  padding: clamp(22px, 4vw, 42px);
}

.each-page-greetings .each-content {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.each-greeting-story {
  display: grid;
  gap: 20px;
}

.each-greeting-intro,
.each-greeting-section {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(7, 27, 61, 0.06);
}

.each-greeting-intro {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: start;
  border-top: 5px solid var(--each-blue);
  background:
    linear-gradient(135deg, rgba(238, 245, 255, 0.94), rgba(255, 255, 255, 1) 70%),
    #fff;
  padding: clamp(26px, 4vw, 44px);
}

.each-greeting-kicker {
  display: grid;
  gap: 12px;
  border-left: 4px solid var(--each-blue);
  padding-left: 14px;
}

.each-greeting-kicker span {
  color: #17213b;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.each-greeting-intro h2 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--each-ink);
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.22;
}

.each-greeting-intro p:not(.each-label) {
  max-width: 820px;
  margin: 0;
  color: #35435c;
  font-size: clamp(17px, 1.55vw, 20px);
  font-weight: 700;
  line-height: 1.9;
}

.each-greeting-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.each-greeting-summary article {
  border: 1px solid rgba(22, 105, 214, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 16px;
}

.each-greeting-summary strong {
  display: block;
  color: var(--each-blue-dark);
  font-size: 15px;
  line-height: 1.45;
}

.each-greeting-summary span {
  display: block;
  margin-top: 6px;
  color: var(--each-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.each-greeting-section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(24px, 4vw, 40px);
}

.each-greeting-heading {
  border-left: 4px solid var(--each-blue);
  padding-left: 14px;
}

.each-greeting-section h2 {
  margin: 8px 0 0;
  color: var(--each-ink);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.32;
}

.each-greeting-body {
  max-width: 680px;
}

.each-greeting-section p:not(.each-label) {
  margin: 0 0 14px;
  color: #4b5c73;
  font-size: 16px;
  line-height: 1.9;
}

.each-greeting-section p:last-child {
  margin-bottom: 0;
}

.each-greeting-lead {
  color: #17213b !important;
  font-size: clamp(18px, 1.55vw, 20px) !important;
  font-weight: 900;
}

.each-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.each-value-grid article {
  border: 1px solid rgba(22, 105, 214, 0.14);
  border-radius: 8px;
  background: #f8fbff;
  padding: 18px;
}

.each-value-grid span {
  color: var(--each-blue);
  font-size: 13px;
  font-weight: 900;
}

.each-value-grid h3 {
  margin: 8px 0 8px;
  color: var(--each-ink);
  font-size: 19px;
}

.each-value-grid p {
  margin: 0 !important;
  font-size: 15px !important;
}

.each-greeting-section--blue {
  background:
    linear-gradient(135deg, rgba(7, 27, 61, 0.98), rgba(18, 103, 216, 0.86)),
    var(--each-blue-dark);
}

.each-greeting-section--blue .each-label {
  color: #8fd2ff;
}

.each-greeting-section--blue h2,
.each-greeting-section--blue p,
.each-greeting-section--blue .each-greeting-lead {
  color: #fff !important;
}

.each-greeting-section--blue h2 {
  border-left-color: #8fd2ff;
}

.each-greeting-section--blue .each-greeting-heading {
  border-left-color: #8fd2ff;
}

.each-greeting-section--blue p:not(.each-label) {
  color: rgba(255, 255, 255, 0.84) !important;
}

.each-content > *:first-child,
.each-content .elementor-widget-container > *:first-child {
  margin-top: 0;
}

.each-content > *:last-child,
.each-content .elementor-widget-container > *:last-child {
  margin-bottom: 0;
}

.each-content :where(.elementor-section, .elementor-container, .elementor-column, .elementor-widget-wrap, .elementor-widget-container) {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.each-content :where(.elementor-column, .elementor-widget-wrap) {
  display: block !important;
}

.each-content :where(.elementor-heading-title, [style*="font-size"]) {
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: 0 !important;
}

.each-content h1,
.each-content h2,
.each-content h3,
.each-content h4,
.each-content h5,
.each-content h6 {
  color: var(--each-ink);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: 0;
}

.each-content h1 {
  margin: 34px 0 14px;
  border-left: 4px solid var(--each-green);
  padding-left: 14px;
  font-size: clamp(22px, 2.25vw, 29px);
}

.each-content h2 {
  margin: 28px 0 12px;
  font-size: clamp(20px, 2vw, 25px);
}

.each-content h3 {
  margin: 24px 0 10px;
  font-size: clamp(18px, 1.8vw, 22px);
}

.each-content h4,
.each-content h5,
.each-content h6 {
  margin: 16px 0 8px;
  color: #34443d;
  font-size: 16px;
}

.each-content p,
.each-content li,
.each-content td,
.each-content th {
  color: #526059;
  font-size: 16px;
  line-height: 1.88;
}

.each-content p {
  margin: 0 0 15px;
}

.each-content ul,
.each-content ol {
  display: grid;
  gap: 7px;
  margin: 14px 0 18px;
  padding-left: 22px;
}

.each-content a {
  color: var(--each-green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.each-content a.each-button,
.each-content a.each-button:visited {
  color: #fff;
  text-decoration: none;
}
.each-content img {
  width: auto;
  max-width: min(100%, 760px);
  border-radius: 8px;
}

.each-page-member .each-content img,
.each-page-japan-desk .each-content img,
.each-page-accountant .each-content img,
.each-page-lawyer .each-content img,
.each-profile-photo img {
  width: 112px !important;
  height: 112px !important;
  max-width: 112px !important;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
}

.each-page-member .each-content figure,
.each-page-japan-desk .each-content figure,
.each-page-accountant .each-content figure,
.each-page-lawyer .each-content figure,
.each-profile-photo figure {
  width: 112px !important;
  max-width: 112px !important;
  margin: 0 0 18px !important;
}

.each-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--each-line);
  border-radius: 8px;
}

.each-content th,
.each-content td {
  border-bottom: 1px solid var(--each-line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.each-content th {
  width: 30%;
  background: var(--each-soft);
  color: var(--each-ink);
}

.each-company-profile {
  display: grid;
  gap: 18px;
}

.each-company-heading {
  display: grid;
  gap: 4px;
}

.each-company-heading h2 {
  margin: 0;
}

.each-company-heading span {
  color: var(--each-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.each-company-table th {
  width: 210px;
  min-width: 210px;
}

.each-company-table td {
  color: #26364d;
  font-weight: 700;
}

.each-company-profile .each-directory__lead span,
.each-company-line {
  display: block;
}

.each-company-profile .each-directory__lead span + span {
  margin-top: 6px;
  color: #40506b;
  font-size: 0.9em;
  font-weight: 700;
}

.each-company-line + .each-company-line {
  margin-top: 8px;
  color: #40506b;
  font-weight: 650;
}

.each-directory {
  display: grid;
  gap: 22px;
}

.each-directory__lead {
  max-width: 900px;
  margin: 0;
  border-left: 5px solid var(--each-blue);
  border-radius: 8px;
  background: linear-gradient(135deg, #f0f6ff, #ffffff);
  box-shadow: 0 12px 28px rgba(7, 27, 61, 0.06);
  padding: 18px 20px;
  color: #17213b;
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 800;
  line-height: 1.82;
}

.each-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.each-initial-review {
  display: grid;
  gap: 24px;
  margin-top: 14px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-left: 5px solid var(--each-blue);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(7, 27, 61, 0.08);
  padding: clamp(24px, 4vw, 38px);
}

.each-initial-review__head {
  max-width: 920px;
}

.each-initial-review h2,
.each-initial-review h3,
.each-initial-review p {
  margin: 0;
}

.each-initial-review h2 {
  color: var(--each-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

.each-initial-review__head p:not(.each-label) {
  margin-top: 14px;
  color: #33415c;
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.85;
}

.each-initial-review__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.each-initial-review__grid > div {
  border: 1px solid rgba(22, 105, 214, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #f6faff, #ffffff);
  padding: 20px;
}

.each-initial-review h3 {
  color: var(--each-ink);
  font-size: 18px;
  line-height: 1.45;
}

.each-initial-review ul {
  margin: 14px 0 0;
  padding-left: 1.15em;
  color: #40506b;
  line-height: 1.75;
}

.each-initial-review li + li {
  margin-top: 6px;
}

.each-initial-review .each-button {
  justify-self: start;
}

.each-monthly-support {
  display: grid;
  gap: 24px;
  margin-top: 28px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-left: 5px solid var(--each-green);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(7, 27, 61, 0.08);
  padding: clamp(24px, 4vw, 38px);
}

.each-monthly-support__head {
  max-width: 920px;
}

.each-monthly-support h2,
.each-monthly-support h3,
.each-monthly-support p {
  margin: 0;
}

.each-monthly-support h2 {
  color: var(--each-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

.each-monthly-support__head p:not(.each-label) {
  margin-top: 14px;
  color: #33415c;
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.85;
}

.each-monthly-support__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.each-monthly-support__grid > div {
  border: 1px solid rgba(18, 128, 88, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fcfa, #ffffff);
  padding: 20px;
}

.each-monthly-support h3 {
  color: var(--each-ink);
  font-size: 18px;
  line-height: 1.45;
}

.each-monthly-support ul {
  margin: 14px 0 0;
  padding-left: 1.15em;
  color: #40506b;
  line-height: 1.75;
}

.each-monthly-support li + li {
  margin-top: 6px;
}

.each-monthly-support .each-button {
  justify-self: start;
}

.each-side {
  position: sticky;
  top: 94px;
  align-self: start;
  border: 1px solid rgba(143, 210, 255, 0.18);
  border-radius: 8px;
  background: #071b3d;
  color: #fff;
  padding: 16px;
}

.each-side__image {
  width: 100%;
  height: 104px;
  margin: 0 0 16px;
  border-radius: 8px;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04);
}

.each-side h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
}

.each-side p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.78;
}

.each-side .each-button {
  min-height: 42px;
  padding: 0 14px;
  font-size: 14px;
}

.each-map {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  border-top: 1px solid var(--each-line);
  padding-top: 28px;
}

.each-map h2 {
  margin: 0 0 8px;
  color: var(--each-ink);
  font-size: clamp(21px, 2vw, 26px);
}

.each-map p {
  margin: 0 0 10px;
  color: #4b5c73;
  font-weight: 700;
}

.each-map a {
  color: var(--each-blue);
  font-weight: 900;
}

.each-map iframe {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(7, 27, 61, 0.08);
}

.each-contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 58px clamp(20px, 5vw, 76px);
  background: var(--each-blue-dark);
  color: #fff;
}

.each-contact-band div {
  max-width: 780px;
}

.each-contact-band h2 {
  color: #fff;
  margin-bottom: 14px;
}

.each-contact-band p:not(.each-label) {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.85;
}

.each-contact-band .each-button {
  flex: 0 0 auto;
  min-width: 168px;
  padding: 0 24px;
  white-space: nowrap;
  text-decoration: none;
}

.each-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 64px 0;
}

.each-form {
  display: grid;
  gap: 20px;
  border: 1px solid rgba(16, 24, 40, 0.11);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(7, 27, 61, 0.06);
  padding: clamp(20px, 4vw, 34px);
}

.each-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.each-form label {
  display: grid;
  gap: 9px;
  color: var(--each-ink);
  font-weight: 900;
}

.each-form input,
.each-form textarea,
.each-form select {
  width: 100%;
  border: 1px solid var(--each-line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 12px;
  color: var(--each-ink);
  font: inherit;
}

.each-form textarea {
  min-height: 180px;
  resize: vertical;
}

.each-form input:focus,
.each-form textarea:focus,
.each-form select:focus {
  border-color: var(--each-green);
  outline: 3px solid rgba(18, 103, 216, 0.16);
}

.each-form__hidden {
  display: none;
}

.each-chat-contact {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  border: 1px solid rgba(16, 24, 40, 0.11);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 27, 61, 0.05);
  padding: clamp(20px, 3vw, 28px);
}

.each-chat-contact__head {
  max-width: 760px;
}

.each-chat-contact h2 {
  margin: 0 0 10px;
  color: var(--each-ink);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.4;
}

.each-chat-contact p {
  margin: 0 0 8px;
  color: #526059;
  line-height: 1.82;
}

.each-chat-contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 180px));
  gap: 14px;
}

.each-chat-contact__card {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}

.each-chat-contact__card figcaption {
  color: var(--each-ink);
  font-weight: 900;
}

.each-chat-contact__card img {
  width: 116px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  background: #fff;
}

.each-chat-contact__card p {
  margin: 0;
  color: var(--each-muted);
  font-size: 14px;
  font-weight: 800;
}

.each-alert {
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 800;
}

.each-alert--success {
  background: #e7f0ec;
  color: var(--each-green);
}

.each-alert--error {
  background: #f8e8e5;
  color: #933626;
}

.each-footer {
  background: #071b3d;
  color: rgba(255, 255, 255, 0.76);
}

.each-footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.85fr;
  gap: 26px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px clamp(20px, 4vw, 42px);
}

.each-footer strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.each-footer__logo {
  width: 190px;
  max-height: 78px;
  height: auto;
  margin-bottom: 16px;
  object-fit: contain;
}

.each-footer p {
  margin: 0 0 7px;
  line-height: 1.7;
}

.each-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.siteFooter,
.site-footer,
.l-footer,
.copySection,
.footerMenu,
.vk-mobile-nav,
.vk-mobile-nav-menu,
.vk-mobile-nav-menu-outer,
.page_top_btn,
#page_top {
  display: none !important;
}

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

@media (max-width: 1100px) {
  .each-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .each-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .each-header__contact {
    position: absolute;
    top: 14px;
    right: clamp(18px, 4vw, 42px);
  }
}

@media (max-width: 980px) {
  body.admin-bar .each-header {
    top: 0;
  }

  .each-statement,
  .each-contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .each-hero {
    background-position: center 57%;
  }

  .each-statement {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .each-nav {
    width: 100%;
    justify-content: stretch;
    overflow-x: visible;
    font-size: 13px;
  }

  .each-nav > ul {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  .each-nav > ul > li {
    min-width: 0;
    border: 1px solid rgba(18, 103, 216, 0.16);
    border-radius: 8px;
    background: #f7fbff;
    padding: 8px;
  }

  .each-nav > ul > li > a {
    width: 100%;
    min-height: 34px;
    justify-content: flex-start;
    color: var(--each-ink);
    font-weight: 900;
    white-space: normal;
  }

  .each-nav .sub-menu {
    position: static;
    display: grid;
    min-width: 0;
    gap: 4px;
    margin-top: 4px;
    border: 0;
    border-left: 3px solid rgba(18, 103, 216, 0.22);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0 10px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .each-nav .sub-menu a {
    min-height: 30px;
    padding: 0;
    color: #4b5c73;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
  }

  .each-grid--3,
  .each-grid--4,
  .each-photo-strip,
  .each-home-about__inner,
  .each-home-values,
  .each-partner-block,
  .each-greeting-summary,
  .each-mini-grid,
  .each-initial-review__grid,
  .each-monthly-support__grid,
  .each-value-grid,
  .each-greeting-intro,
  .each-greeting-section,
  .each-layout,
  .each-form-wrap,
  .each-footer__inner {
    grid-template-columns: 1fr;
  }

  .each-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .each-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .each-logo {
    min-width: 0;
  }

  .each-logo__image {
    width: 142px;
    max-height: 54px;
  }

  .each-menu-toggle {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(18, 103, 216, 0.24);
    border-radius: 8px;
    padding: 0 14px;
    background: #f7fbff;
    color: var(--each-ink);
    font-size: 13px;
    font-weight: 900;
  }

  .each-header__contact {
    grid-column: 1 / -1;
    position: static;
    width: 100%;
    min-height: 40px;
    justify-content: center;
  }

  .each-nav {
    display: none;
    grid-column: 1 / -1;
    max-height: 62vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid rgba(16, 24, 40, 0.08);
    padding-top: 10px;
  }

  .each-menu-control:checked ~ .each-nav {
    display: flex;
  }

  .each-menu-control:checked + .each-menu-toggle {
    background: var(--each-blue);
    color: #fff;
  }

  .each-nav > ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .each-nav > ul > li {
    padding: 7px 10px;
  }

  .each-nav > ul > li > a {
    min-height: 32px;
  }

  .each-nav .sub-menu {
    grid-template-columns: 1fr;
  }

  .each-hero,
  .each-page-hero {
    min-height: 500px;
  }

  .each-hero {
    background-position: center 55%;
  }

  .each-actions .each-button,
  .each-contact-band .each-button,
  .each-form button {
    width: 100%;
  }

  .each-form__row {
    grid-template-columns: 1fr;
  }

  .each-chat-contact__grid {
    grid-template-columns: 1fr;
  }

  .each-company-table,
  .each-company-table tbody,
  .each-company-table tr,
  .each-company-table th,
  .each-company-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .each-company-table tr {
    border-bottom: 1px solid var(--each-line);
  }

  .each-company-table th,
  .each-company-table td {
    border-bottom: 0;
  }

  .each-company-table th {
    padding-bottom: 4px;
  }
}
