:root {
  --bg-page: #f4f4f4;
  --bg-hero: #ebebee;
  --text-primary: #26262b;
  --text-secondary: #494a4f;
  --text-muted: #686a71;
  --button-bg: #1f2024;
  --button-bg-hover: #111216;
  --color-accent: #820000;
  --color-accent-hover: #a00000;
  --white: #ffffff;

  --container-width: 1400px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 14px;

  --font-sm: 13px;
  --font-base: 15px;
  --font-lg: 18px;
  --font-xl: 50px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
}

.container {
  width: min(100%, var(--container-width));
  margin: 0 auto;
  padding: 0 var(--space-24);
}

/* HEADER */
.site-header {
  background: var(--bg-page);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e4e5e9;
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 150px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-32);
}

.main-nav a {
  color: #4e5058;
  text-decoration: none;
  font-size: var(--font-base);
  transition: all 0.2s ease;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
  opacity: 1;
}

.main-nav a:hover {
  transform: translateY(-1px);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.burger-menu {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 1100;
  padding: 0;
}

.burger-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
}

.burger-menu.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-menu.is-open span:nth-child(2) {
  opacity: 0;
}

.burger-menu.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lang-picker {
  position: relative;
}

.lang-switch {
  border: 0;
  background: transparent;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  cursor: pointer;
  border-radius: 6px;
}

.lang-switch:hover,
.lang-switch:focus-visible {
  background: rgba(0, 0, 0, 0.04);
}

.lang-flag {
  width: 28px;
  height: 20px;
  border-radius: 2px;
  border: 1px solid #d2d2d6;
  object-fit: cover;
  display: block;
}

.lang-caret {
  font-size: 11px;
  color: #4e5058;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 140px;
  background: var(--white);
  border: 1px solid #e2e3e8;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(32, 35, 41, 0.12);
  display: none;
  z-index: 20;
}

.lang-picker.is-open .lang-menu {
  display: block;
}

.lang-option {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: #f1f3f7;
}

/* HERO SECTION */
.hero-section {
  background: var(--bg-hero);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  height: calc(100vh - 80px - 56px);
}

.hero-content {
  width: 100%;
  max-width: 760px;
  margin-left: max(var(--space-24), calc((100vw - var(--container-width)) / 2 + var(--space-24)));
  padding: var(--space-48) var(--space-48) var(--space-48) 0;
  align-self: center;
}

.hero-content h1 {
  margin: 0 0 var(--space-20);
  max-width: 720px;
  font-size: clamp(34px, 3.4vw, var(--font-xl));
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.hero-lead,
.hero-sub {
  margin: 0;
  max-width: 690px;
  font-size: clamp(15px, 1.05vw, var(--font-lg));
  line-height: 1.4;
  color: var(--text-secondary);
}

.hero-sub {
  margin-top: var(--space-24);
  color: var(--text-muted);
}

.cta-button {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  margin-top: var(--space-32);
  border: 0;
  background: var(--color-accent);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--radius-pill);
  padding: 16px 26px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(130, 0, 0, 0.2);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-mini {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--space-48);
  padding-top: var(--space-24);
  padding-bottom: var(--space-20);
}

.mini-item {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
  padding: 0 var(--space-20);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.mini-item:hover {
  transform: translateY(-5px);
}

.mini-item + .mini-item {
  border-left: 1px solid #d6d6da;
}

.mini-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #eaeaec;
}

.mini-item:hover .mini-icon {
  background: var(--bg-hero);
  border-color: var(--color-accent);
  box-shadow: 0 6px 15px rgba(130, 0, 0, 0.1);
}

.mini-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.mini-item:hover .mini-icon svg {
  transform: scale(1.1);
}

.mini-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 230px;
  font-weight: 500;
}

/* ABOUT COMPANY SECTION */
.about-section {
  padding: var(--space-80) 0;
}

.about-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-20);
  margin-bottom: var(--space-48);
}

.about-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #2d2e33;
  font-weight: 600;
}

.about-line {
  width: 80px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 76px;
}

.about-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-64);
  align-items: center;
}

.about-item.reverse .about-media {
  order: 2;
}

.about-item.reverse .about-body {
  order: 1;
  padding-left: 96px;
}

.about-media img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.about-item.reverse .about-media img {
  margin-left: auto;
}

.about-body {
  max-width: 640px;
}

.about-number {
  margin: 0 0 var(--space-16);
  font-size: clamp(54px, 7vw, 80px);
  line-height: 0.9;
  letter-spacing: 0.03em;
  font-weight: 300;
  color: var(--color-accent);
  opacity: 0.2;
}

.about-text {
  margin: 0;
  color: #555861;
  font-size: 15px;
  line-height: 1.62;
}

.about-text + .about-text {
  margin-top: var(--space-16);
}

/* ACTIVITY AREAS SECTION */
.areas-section {
  padding: 92px 0 96px;
}

.areas-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-20);
  margin-bottom: var(--space-24);
}

.areas-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #2d2e33;
  font-weight: 600;
}

.areas-line {
  width: 80px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.areas-intro {
  margin: 0 0 var(--space-48);
  max-width: 980px;
  color: #5d6068;
  font-size: 16px;
  line-height: 1.6;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-20);
}

.area-card {
  min-height: 480px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
  transition: all 0.5s ease;
  border: none;
}

.area-card--1 { background-image: url('image/Areas-1.png'); }
.area-card--2 { background-image: url('image/Areas-2.png'); }
.area-card--3 { background-image: url('image/Areas-3.png'); }
.area-card--4 { background-image: url('image/Areas-4.png'); }

.area-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(31, 32, 36, 0.3) 0%,
    rgba(31, 32, 36, 0.95) 90%
  );
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.4s ease;
}

.area-card:hover {
  transform: translateY(-8px);
}

.area-card:hover .area-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(31, 32, 36, 0.1) 0%,
    rgba(31, 32, 36, 0.85) 90%
  );
}

.area-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--white);
}

.area-card p {
  margin: 0 0 var(--space-20);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.area-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.4;
}

.area-list li {
  position: relative;
  padding-left: 14px;
}

.area-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
}

.area-card-accent .area-list li::before {
  color: #d8dae2;
}

/* HOW WE WORK SECTION */
.process-section {
  padding: 92px 0 96px;
}

.process-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-20);
  margin-bottom: var(--space-24);
}

.process-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #2d2e33;
  font-weight: 600;
}

.process-line {
  width: 80px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.process-intro {
  margin: 0 0 34px;
  max-width: 900px;
  color: #5d6068;
  font-size: 16px;
  line-height: 1.6;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.95fr);
  gap: var(--space-24);
  align-items: stretch;
}

.process-list {
  border-top: 1px solid #bfc2ca;
}

.process-item {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px);
  gap: var(--space-20);
  align-items: center;
  padding: 20px 0 18px;
  border-bottom: 1px solid #bfc2ca;
}

.process-item h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 500;
  color: #25262b;
}

.process-item p {
  margin: 0;
  max-width: 260px;
  justify-self: end;
  font-size: 15px;
  line-height: 1.5;
  color: #5d6068;
}

.process-visual {
  height: 100%;
}

.process-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* WHY CHOOSE US SECTION */
.why-section {
  padding: 92px 0 98px;
}

.why-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-20);
  margin-bottom: var(--space-24);
}

.why-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #2d2e33;
  font-weight: 600;
}

.why-line {
  width: 80px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.why-intro {
  margin: 0 0 var(--space-48);
  max-width: 930px;
  color: #5d6068;
  font-size: 16px;
  line-height: 1.6;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-20);
}

.why-card {
  grid-column: span 4;
  background: var(--white);
  border: 1px solid #eaeaec;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--color-accent);
}

.why-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: #f4f4f7;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid #eaeaec;
}

.why-card-accent .why-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white); /* Ensures currentColor in SVG paths is white */
}

.why-card-accent .why-icon svg path[stroke="currentColor"] {
  stroke: var(--white); /* Explicit override just in case */
}

.why-card:hover .why-icon {
  transform: scale(1.1);
  background: var(--bg-hero);
  border-color: var(--color-accent);
}

.why-card-accent:hover .why-icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.why-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card-accent .why-icon svg {
  stroke: var(--white);
}

.why-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  color: #25262b;
}

.why-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.58;
  color: #5d6068;
}

.why-card-accent {
  grid-column: span 8;
  background: linear-gradient(135deg, #1f2024, #111216);
  border: none;
}

.why-card-accent:hover {
  box-shadow: 0 10px 30px rgba(130, 0, 0, 0.15);
}

.why-card-accent h3,
.why-card-accent p {
  color: #f0f1f4;
}


/* FOR WHOM SECTION */
.for-whom-section {
  padding: 92px 0 98px;
}

.for-whom-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-20);
  margin-bottom: var(--space-24);
}

.for-whom-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #2d2e33;
  font-weight: 600;
}

.for-whom-line {
  width: 80px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.for-whom-intro {
  margin: 0 0 var(--space-48);
  max-width: 930px;
  color: #5d6068;
  font-size: 16px;
  line-height: 1.6;
}

.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-20);
}

.for-whom-card {
  grid-column: span 4;
  min-height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #e1e3e8;
  position: relative;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.for-whom-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--color-accent);
}

.for-whom-card--1 {
  grid-column: span 7;
  background-image: url("image/for-whom-1.png");
}

.for-whom-card--2 {
  grid-column: span 5;
  background-image: url("image/for-whom-2.png");
}

.for-whom-card--3 {
  grid-column: span 5;
  background-image: url("image/for-whom-3.png");
}

.for-whom-card--4 {
  grid-column: span 7;
  background-image: url("image/for-whom-4.png");
}

.for-whom-card--5 {
  grid-column: span 12;
  min-height: 250px;
  background-image: url("image/for-whom-5.png");
}

.for-whom-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(15, 17, 23, 0.2) 12%, rgba(15, 17, 23, 0.74) 100%);
  transition: background 0.4s ease;
}

.for-whom-card:hover .for-whom-overlay {
  background: linear-gradient(180deg, rgba(15, 17, 23, 0.1) 12%, rgba(15, 17, 23, 0.85) 100%);
}

.for-whom-card h3 {
  margin: 0 0 10px;
  color: #f4f6fa;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}

.for-whom-card p {
  margin: 0;
  max-width: 620px;
  color: #e4e7ef;
  font-size: 15px;
  line-height: 1.55;
}

/* CONTACTS SECTION */
.contacts-section {
  padding: 92px 0 106px;
}

.contacts-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-20);
  margin-bottom: var(--space-24);
}

.contacts-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #2d2e33;
  font-weight: 600;
}

.contacts-line {
  width: 80px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.contacts-intro {
  margin: 0 0 var(--space-48);
  max-width: 980px;
  color: #5d6068;
  font-size: 16px;
  line-height: 1.6;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
  gap: var(--space-24);
  align-items: start;
}

.contact-form {
  background: #f7f7f9;
  border: 1px solid #e4e6eb;
  border-radius: var(--radius-md);
  padding: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-16);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.error-msg {
  display: none;
  font-size: 11px;
  color: #e53935;
  margin-top: 4px;
  font-weight: 500;
}

.field.has-error .error-msg,
.consent-wrapper.has-error .error-msg {
  display: block;
}

.field.has-error input {
  border-color: var(--color-accent);
}

.field.has-error,
.consent-wrapper.has-error {
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.field span {
  font-size: 14px;
  color: #3f4148;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d8dbe3;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: #1f2025;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #a9b0bf;
}

.field-full {
  grid-column: span 2;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  margin-top: var(--space-24);
  border: 0;
  background: var(--color-accent);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.consent-wrapper {
  margin-top: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-box {
  position: relative;
  top: 2px;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #d8dbe3;
  border-radius: 4px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.custom-checkbox:hover .checkbox-box {
  border-color: #a9b0bf;
}

.custom-checkbox input:checked ~ .checkbox-box {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.checkbox-box:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkbox-box:after {
  display: block;
}

.checkbox-text {
  font-size: 13px;
  line-height: 1.5;
  color: #666972;
  transition: color 0.2s ease;
}

.consent-wrapper.has-error .checkbox-box {
  border-color: var(--color-accent);
}

.consent-wrapper.has-error .checkbox-text {
  color: var(--color-accent);
}

.consent-wrapper a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* LEGAL PAGES STYLES */
.legal-page {
  padding-top: 80px; /* Reduced from 160px */
  padding-bottom: var(--space-64);
  background: var(--bg-primary);
}

.legal-page .btn-back {
  margin-top: var(--space-8);
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-24);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #666972;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: var(--space-32);
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn-back:hover {
  color: var(--color-accent);
  transform: translateX(-4px);
}

.btn-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.legal-article h1 {
  margin-bottom: var(--space-24);
  color: #1f2025;
}

.legal-article h2 {
  margin-top: var(--space-40);
  margin-bottom: var(--space-16);
  color: #1f2025;
  font-size: 20px;
}

.legal-article h3 {
  margin-top: var(--space-24);
  margin-bottom: var(--space-12);
  color: #1f2025;
  font-size: 17px;
}

.legal-article p {
  margin-bottom: var(--space-16);
  color: #4a4d55;
  line-height: 1.6;
}

.legal-article a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article a:hover {
  text-decoration: none;
}

.legal-article ul {
  margin-bottom: var(--space-20);
  padding-left: 20px;
  list-style: none;
}

.legal-article li {
  position: relative;
  margin-bottom: 8px;
  color: #4a4d55;
  line-height: 1.5;
  padding-left: 15px;
}

.legal-article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.legal-article address {
  font-style: normal;
  padding: 16px;
  background: #f8f9fb;
  border-radius: 8px;
  margin-bottom: var(--space-24);
  line-height: 1.6;
  color: #4a4d55;
}

@media (max-width: 768px) {
  .legal-page {
    padding-top: 12px;
    padding-bottom: var(--space-48);
  }

  .legal-page .btn-back {
    margin-top: 0;
    margin-bottom: var(--space-16);
  }

  .legal-container {
    padding: 0 var(--space-32);
  }
}

.consent.has-error span {
  color: var(--color-accent);
}

/* SUCCESS MESSAGE */
.contact-success {
  background: #f7f7f9;
  border: 1px solid #e4e6eb;
  border-radius: var(--radius-md);
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-20);
  min-height: 480px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #e7f5ed;
  color: #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-8);
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.contact-success h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-success p {
  margin: 0;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-12);
}

.contact-card {
  background: #f7f7f9;
  border: 1px solid #e4e6eb;
  border-radius: var(--radius-md);
  padding: 24px 22px;
}

.contact-card h3 {
  margin: 0 0 var(--space-24);
  font-size: 24px;
  line-height: 1.2;
  color: #25262b;
}

.contact-block + .contact-block {
  margin-top: var(--space-24);
}

.contact-block h4 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #62646c;
}

.contact-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #32343b;
  white-space: pre-line;
}

.contact-block p a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* FOOTER */
.site-footer {
  background: #ececef;
  border-top: 1px solid #d7d9df;
}

.footer-inner {
  padding-top: 48px;
  padding-bottom: 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 24px;
  margin-bottom: 24px;
}

.footer-logo {
  width: 190px;
  height: auto;
  display: block;
}

.footer-tagline {
  margin: 0;
  max-width: 560px;
  justify-self: end;
  text-align: right;
  font-size: 20px;
  line-height: 1.35;
  color: #26282d;
}

.footer-columns {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid #d4d6dc;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
}

.footer-col p {
  margin: 0;
  color: #494c55;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-line;
}

.footer-col p + p {
  margin-top: 4px;
}

.footer-col {
  min-width: 0;
}

.footer-col:nth-child(1) {
  grid-column: 1 / span 4;
}

.footer-col:nth-child(2) {
  grid-column: 5 / span 4;
}

.footer-col:nth-child(3) {
  grid-column: 9 / span 4;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 8px;
}

.footer-col-links a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.footer-col-links a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.footer-copy {
  margin-top: 22px;
  display: block;
  color: #666a74;
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 1180px) {
  .main-nav {
    gap: var(--space-20);
  }

  .main-nav a {
    font-size: 14px;
  }

  .hero-content {
    padding-right: var(--space-24);
  }

  .cta-button {
    font-size: 15px;
    padding: 14px 24px;
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-page);
    padding: var(--space-48) var(--space-24);
    gap: var(--space-32);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    align-items: flex-start;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a {
    font-size: 24px;
    font-weight: 500;
  }

  .burger-menu {
    display: block;
  }

  .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .brand {
    order: 1;
  }

  .header-actions {
    order: 2;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .hero-content {
    margin-left: 0;
    padding: var(--space-64) 0 var(--space-48);
    max-width: none;
    width: min(100%, var(--container-width));
    margin-right: auto;
    margin-left: auto;
    padding-left: var(--space-24);
    padding-right: var(--space-24);
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-20);
    padding-top: var(--space-20);
    padding-bottom: var(--space-24);
  }

  .mini-item:nth-child(3),
  .mini-item:nth-child(4) {
    border-top: 1px solid #d6d6da;
    padding-top: var(--space-12);
  }

  .mini-item:nth-child(3) {
    border-left: 0;
  }

  .about-item {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .about-item.reverse .about-media,
  .about-item.reverse .about-body {
    order: initial;
  }

  .about-media img {
    max-width: 520px;
    margin: 0 auto;
  }

  .about-item.reverse .about-media img {
    margin: 0 auto;
  }

  .about-list {
    gap: var(--space-64);
  }

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

  .area-card {
    min-height: 320px;
  }

  .process-item {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    padding: 20px 0 18px;
  }

  .process-item h3 {
    font-size: clamp(30px, 5.8vw, 44px);
  }

  .process-item p {
    justify-self: start;
    max-width: none;
    font-size: 18px;
  }

  .process-layout {
    grid-template-columns: 1fr;
  }

  .process-visual {
    max-width: none;
    justify-self: stretch;
  }

  .why-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-20);
  }

  .why-card,
  .why-card-accent {
    width: calc(50% - 10px);
  }

  .why-card:last-child {
    width: 100%;
  }

  .why-card {
    min-height: 200px;
  }

  .for-whom-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .for-whom-card--1,
  .for-whom-card--4,
  .for-whom-card--5 {
    grid-column: span 6;
  }

  .for-whom-card--2,
  .for-whom-card--3 {
    grid-column: span 3;
  }

  .for-whom-card {
    min-height: 250px;
  }

  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .contact-card {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .footer-tagline {
    font-size: 18px;
  }

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

  .footer-col:nth-child(1) {
    grid-column: 1 / span 3;
  }

  .footer-col:nth-child(2) {
    grid-column: 4 / span 3;
  }

  .footer-col:nth-child(3) {
    grid-column: 1 / span 6;
  }

  .footer-col-links {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-16);
  }

  .hero-content {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
  }

  .hero-content h1 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .hero-lead,
  .hero-sub {
    font-size: 15px;
  }

  .cta-button {
    width: 100%;
    font-size: 15px;
  }

  .hero-mini {
    grid-template-columns: 1fr;
    padding-bottom: var(--space-20);
  }

  .mini-item,
  .mini-item:nth-child(3),
  .mini-item:nth-child(4) {
    border-left: 0;
    border-top: 1px solid #d6d6da;
    padding-top: var(--space-12);
    min-height: auto;
  }

  .about-section {
    padding: var(--space-64) 0;
  }

  .about-heading {
    margin-bottom: var(--space-32);
  }

  .about-kicker {
    letter-spacing: 0.2em;
  }

  .about-list {
    gap: var(--space-48);
  }

  .about-number {
    font-size: clamp(42px, 12vw, 56px);
    margin-bottom: var(--space-12);
  }

  .about-text {
    font-size: 14px;
    line-height: 1.55;
  }

  .areas-section {
    padding: var(--space-64) 0;
  }

  .areas-intro {
    margin-bottom: var(--space-32);
    font-size: 15px;
  }

  .areas-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .area-card {
    min-height: auto;
  }

  .process-section {
    padding: var(--space-64) 0;
  }

  .process-intro {
    margin-bottom: var(--space-24);
    font-size: 15px;
  }

  .process-item h3 {
    font-size: clamp(24px, 9vw, 34px);
  }

  .process-item p {
    font-size: 15px;
    line-height: 1.45;
  }

  .process-visual {
    max-width: none;
    justify-self: stretch;
  }

  .why-section {
    padding: var(--space-64) 0;
  }

  .why-intro {
    margin-bottom: var(--space-32);
    font-size: 15px;
  }

  .why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .why-card,
  .why-card-accent {
    grid-column: span 1;
    width: 100%;
    min-height: auto;
  }

  .why-card h3 {
    font-size: 22px;
  }

  .for-whom-section {
    padding: var(--space-64) 0;
  }

  .for-whom-intro {
    margin-bottom: var(--space-32);
    font-size: 15px;
  }

  .for-whom-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .for-whom-card,
  .for-whom-card--1,
  .for-whom-card--2,
  .for-whom-card--3,
  .for-whom-card--4,
  .for-whom-card--5 {
    grid-column: span 1;
    min-height: 240px;
  }

  .for-whom-card h3 {
    font-size: 22px;
  }

  .contacts-section {
    padding: var(--space-64) 0;
  }

  .contacts-intro {
    margin-bottom: var(--space-32);
    font-size: 15px;
  }

  .contact-form,
  .contact-card {
    padding: var(--space-16);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: span 1;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-card h3 {
    font-size: 22px;
  }

  .footer-inner {
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .footer-logo {
    width: 132px;
  }

  .footer-tagline {
    justify-self: start;
    text-align: left;
    font-size: 17px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-col:nth-child(1),
  .footer-col:nth-child(2),
  .footer-col:nth-child(3) {
    grid-column: span 1;
  }

  .footer-col-links {
    align-items: flex-start;
    text-align: left;
  }
}

/* COOKIE BANNER & MODAL */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  border-top: 1px solid #e5e6ea;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
  padding: 24px 0;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-32);
}

.cookie-content h2 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 600;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 800px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-shrink: 0;
}

.cookie-btn-primary,
.cookie-btn-secondary,
.cookie-btn-text {
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cookie-btn-primary {
  background: var(--color-accent);
  color: var(--white);
  padding: 12px 24px;
}

.cookie-btn-primary:hover {
  background: var(--color-accent-hover);
}

.cookie-btn-secondary {
  background: #f1f2f4;
  color: var(--text-primary);
  padding: 12px 24px;
}

.cookie-btn-secondary:hover {
  background: #e4e6ea;
}

.cookie-btn-text {
  background: transparent;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 12px;
}

.cookie-btn-text:hover {
  opacity: 0.8;
}

/* MODAL */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 23, 0.4);
  backdrop-filter: blur(4px);
}

.cookie-modal-content {
  position: relative;
  background: var(--white);
  width: min(90vw, 540px);
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.cookie-modal.is-open .cookie-modal-content {
  transform: scale(1);
}

.cookie-modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid #f0f1f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.cookie-modal-close {
  border: 0;
  background: #f1f2f4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.cookie-modal-close:hover {
  background: #e4e6ea;
  color: var(--text-primary);
}

.cookie-settings-list {
  padding: 12px 32px;
  overflow-y: auto;
}

.cookie-setting-item {
  padding: 20px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cookie-setting-item + .cookie-setting-item {
  border-top: 1px solid #f0f1f4;
}

.cookie-setting-info h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.cookie-setting-info p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.cookie-modal-footer {
  padding: 24px 32px;
  border-top: 1px solid #f0f1f4;
  display: flex;
  justify-content: flex-end;
}

/* TOGGLE SWITCH */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #e4e6ea;
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .toggle-slider {
  background-color: var(--color-accent);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .cookie-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cookie-btn-primary {
    order: 1;
  }

  .cookie-btn-secondary {
    order: 2;
  }

  .cookie-btn-text {
    order: 3;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    padding: 20px 0;
  }
  
  .cookie-actions {
    gap: 10px;
  }
  
  .cookie-btn-primary,
  .cookie-btn-secondary {
    padding: 14px;
    font-size: 15px;
    text-align: center;
  }
  
  .cookie-btn-text {
    text-align: center;
  }

  .cookie-modal-content {
    width: 95vw;
  }

  .cookie-modal-header,
  .cookie-modal-footer,
  .cookie-settings-list {
    padding: 20px;
  }
  
  .cookie-modal-footer .cookie-btn-primary {
    width: 100%;
  }
}
