/*------------------------------
  Базовые переменные темы
------------------------------*/
:root {
  /* Шрифты */
  --font-headline: 'Raleway', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;

  /* Основная пастельная палитра (CSS Variables) */
  --color-primary: #7E8DFF;
  --color-primary-dark: #5966c3;
  --color-secondary: #F7CAC9;
  --color-accent: #B5EAD7;
  --color-warning: #FFF7AE;
  --color-muted: #ece3f5;
  --color-info: #cce6f4;
  --color-surface: #fff;
  --color-surface-alt: #f9fafc;
  --color-border: #e6e6f7;
  --color-shadow: rgba(0,0,0,0.07);

  /* Для градиентов */
  --gradient-hero: linear-gradient(120deg, rgba(0,0,0,0.55),rgba(63,94,251,0.18));
  --gradient-pastel-1: linear-gradient(98deg, #f7cac9 20%, #cce6f4 100%);
  --gradient-pastel-2: linear-gradient(110deg, #fff7ae 40%, #b5ead7 100%);
  --gradient-pastel-3: linear-gradient(100deg, #e4f9f5 65%, #ffeecf 100%);
  --gradient-pastel-4: linear-gradient(100deg, #e1f7d5 0%, #fff4e6 100%);
  --gradient-pastel-5: linear-gradient(135deg, #d0e6f6 70%, #fcefef 100%);
  --gradient-pastel-6: linear-gradient(117deg, #ffe7c7 60%, #e4f9f5 100%);
  --gradient-pastel-7: linear-gradient(120deg, #f7cac9 0%, #cce6f4 100%);
  --gradient-overlay-dark: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.18));
  
  /* Гласморфизм */
  --glass-bg: rgba(255,255,255,0.48);
  --glass-blur: blur(12px);

  /* Тени */
  --shadow-base: 0 2px 16px 0 var(--color-shadow);

  /* Радиус */
  --radius-base: 18px;
  --radius-card: 30px;
  --radius-btn: 6px;

  /* Анимация */
  --transition-base: .32s cubic-bezier(.7, .27, .2, .91);
  --transition-fast: .17s cubic-bezier(.77, .2, .18, .89);

  /* Размеры */
  --container-max-width: 1120px;
  --navbar-height: 72px;
}

/*------------------------------
  Сброс стилей и типографика
------------------------------*/
html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--color-surface);
  color: #24292F;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
  min-height: 100vh;
  /* стилизуйте полосы прокрутки для современного вида */
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-muted);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--color-primary-dark);
  margin-top: 0;
  margin-bottom: 0.9em;
  line-height: 1.14;
}
h1 { font-size: 2.8em;}
h2 { font-size: 2.1em;}
h3 { font-size: 1.35em;}
h4, h5, h6 { font-size: 1.12em;}

p, ul, ol, li, input, textarea, select, label, button, span, a {
  font-family: var(--font-body);
  color: #212122;
  font-size: 1.07em;
  line-height: 1.65;
  margin: 0 0 1.14em 0;
}

strong { font-weight: 700; }
em { font-style: italic; }

/*------------------------------
  Глобальная сетка и макеты
------------------------------*/
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2vw;
}

.is-two-thirds {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 60px 0 48px 0;
  z-index: 1;
  background: var(--color-surface-alt);
}

.section-title {
  font-family: var(--font-headline);
  text-align: center;
  font-size: 2.35em;
  margin-bottom: 38px;
  font-weight: 900;
  color: var(--color-primary-dark);
  letter-spacing: -.04em;
  word-spacing: 1.5px;
}

/*------------------------------
  Navbar - Бруталистский стиль
------------------------------*/
.site-header {
  position: fixed;
  z-index: 30;
  top: 0; left: 0; width: 100vw;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 1px 10px 0 rgba(120,125,190,0.06);
  min-height: var(--navbar-height);
  transition: background var(--transition-base);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--navbar-height);
  gap: 2vw;
  padding: 0 3vw;
}
.nav-logo .site-logo-text {
  font-family: var(--font-headline);
  font-size: 1.2em;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -1px;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 11px 0;
}
.menu-toggle .burger {
  width: 32px;
  height: 4px;
  display: block;
  background: var(--color-primary);
  margin: 5px 0 0 0;
  border-radius: 2px;
  transition: background var(--transition-base);
}
ul.nav-links {
  list-style: none;
  display: flex;
  gap: 2.05em;
  align-items: center;
  padding: 0;
  margin: 0;
}
.nav-links li a {
  font-family: var(--font-headline);
  font-size: 1.05em;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition-fast);
  letter-spacing: -0.01em;
}
.nav-links li a:hover,
.nav-links li a:focus {
  color: var(--color-accent);
}

/*------------------------------
  Hero Section
------------------------------*/
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
  padding: 0;
  background: var(--gradient-hero), url('../image/consultoria-empresarial-equipo-grande.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  box-shadow: 0 6px 28px 0 rgba(92,109,140,0.10);
}

.hero-section::after {
  content: '';
  z-index: 2;
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay-dark);
  opacity: .75;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 7vw 2vw 5vw 2vw;
}
.hero-title {
  font-family: var(--font-headline);
  color: #fff !important;
  font-size: 2.7em;
  letter-spacing: -1.3px;
  margin-bottom: 24px;
  line-height: 1.08;
  text-shadow: 0 4px 28px rgba(28,38,82,0.28), 0 2px 8px rgba(0,0,0,0.09);
}
.hero-subtitle {
  color: #fff !important;
  font-size: 1.28em;
  font-weight: 600;
  margin-bottom: 2.5em;
  text-shadow: 0 1px 16px rgba(0,16,34,0.18), 0 4px 28px rgba(28,38,82,0.13);
}
.hero-btn {
  margin-top: 8px;
}

/*------------------------------
  Глобальные стили кнопок
------------------------------*/
.btn,
button,
input[type="submit"] {
  font-family: var(--font-headline);
  font-weight: 700;
  background: var(--gradient-pastel-2);
  color: var(--color-primary-dark);
  padding: 0.75em 2.3em;
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: 0 3px 32px 0 rgba(120,127,190,0.11);
  font-size: 1.05em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  outline: none;
  transition: 
      transform var(--transition-fast),
      box-shadow var(--transition-fast),
      background var(--transition-fast),
      color var(--transition-fast);
  cursor: pointer;
  display: inline-block;
  margin-bottom: 0.9em;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
.btn:focus,
button:focus,
input[type="submit"]:focus {
  background: linear-gradient(100deg, var(--color-accent), var(--color-primary) 98%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px 0 rgba(120,127,190,0.15);
}

.btn:active,
button:active,
input[type="submit"]:active {
  background: var(--color-primary-dark);
  color: #fff;
}

.main-btn {
  font-size: 1.14em;
  padding: 0.85em 2.5em;
}

/*------------------------------
  Ссылки "Читать далее"
------------------------------*/
a.read-more, .read-more {
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: underline wavy var(--color-accent);
  font-family: var(--font-headline);
  transition: color var(--transition-base), text-decoration-thickness .18s;
  font-size: 1em;
}
a.read-more:hover, .read-more:hover {
  color: var(--color-accent);
  text-decoration-thickness: 2px;
}

/*------------------------------
  Общие и служебные классы
------------------------------*/
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-2 { padding: 1rem; }
.p-4 { padding: 2rem; }

.parallax-bg {
  will-change: background-position;
  background-attachment: fixed;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/*------------------------------
  Cards & Card Grid
------------------------------*/
.card, .item, .testimonial, .team-member, .product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-base);
  text-align: center;
  padding: 32px 22px 28px 22px;
  margin: 0 1vw 30px 1vw;
  max-width: 380px;
  transition: box-shadow var(--transition-base), transform var(--transition-fast);
}

.card:hover, .item:hover, .testimonial:hover, .team-member:hover, .product-card:hover {
  box-shadow: 0 16px 48px 0 rgba(80,80,200,.21);
  transform: translateY(-7px) scale(1.03);
}
.card-content {
  width: 100%;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.card-content h3 {
  font-family: var(--font-headline);
  font-size: 1.22em;
  color: var(--color-primary-dark);
  font-weight: 800;
}
.card-content p {
  margin-bottom: 0.7em;
  font-size: 1.02em;
}

.card-image, .item-image, .team-member-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: var(--radius-base);
  margin-bottom: 1em;
  background: var(--gradient-pastel-1);
  /* прозрачный слой */
  box-shadow: 0 2px 14px rgba(102,132,230,0.08);
}
.card-image img, .item-image img, .team-member-image img {
  object-fit: cover;
  width: 100%;
  max-width: 360px;
  min-width: 200px;
  min-height: 180px;
  max-height: 210px;
  border-radius: 1.3em;
  margin: 0 auto;
  display: block;
  box-shadow: 0 6px 32px 0 rgba(68,118,180,0.08);
}

.card .read-more {
  margin-top: 0.8em;
}

/*------------------------------
  Карточки (Grids & Rows)
------------------------------*/
.insights-list-row,
.projects-row,
.clientele-logos-row,
.accolades-timeline,
.success-row,
.press-list,
.media-blocks,
.external-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(305px,1fr));
  justify-content: center;
  gap: 36px 24px;
  margin: 32px 0 0 0;
}

/* Для некоторых секций - больше отступов между кол-ми */
.clientele-logos-row { gap: 32px 18px; }
.media-blocks, .press-list { gap: 24px 18px; }
.projects-row { gap: 40px 24px; }

/*------------------------------
  Accolades Timeline
------------------------------*/
.accolades-timeline {
  position: relative;
  margin-top: 36px;
}
.timeline-block {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
  text-align: left;
}
.timeline-dot {
  min-width: 24px;
  min-height: 24px;
  border-radius: 99em;
  background: var(--color-primary-dark);
  box-shadow: 0 1px 12px 0 var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.animated-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 1.1s infinite cubic-bezier(0.4,0,0.2,1);
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(66,202,150,0.13);}
  40% { box-shadow: 0 0 0 8px rgba(66,202,150,0.12);}
  100% { box-shadow: 0 0 0 0 rgba(66,202,150,0.08);}
}
.timeline-content strong {
  color: var(--color-primary-dark);
  font-family: var(--font-headline);
  font-size: 1.04em;
  letter-spacing: -.5px;
  font-weight: 800;
}
.timeline-content p {
  margin-bottom: 0;
}

/*------------------------------
  Страница Success Stories (success.html)
------------------------------*/
body.success-page {
  background: var(--gradient-pastel-6);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-page .main-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-page .section {
  background: transparent;
  padding-top: 0; padding-bottom: 0;
}
.success-page .success-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/*------------------------------
  Contact Section & Form
------------------------------*/
.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.contact-form {
  width: 100%;
  max-width: 420px;
  min-width: 230px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-base);
  padding: 34px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.contact-form label {
  display: block;
  color: var(--color-primary-dark);
  font-family: var(--font-headline);
  font-size: 1.09em;
  font-weight: 700;
  margin-bottom: .47em;
  letter-spacing: 0;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .92em;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-btn);
  font-size: 1.02em;
  font-family: var(--font-body);
  background: #fff;
  transition: border var(--transition-fast), box-shadow var(--transition-fast);
  margin-bottom: 0.7em;
  color: #181d2c;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(126,141,255,0.09);
}
.contact-form textarea {
  resize: vertical;
  min-height: 115px;
  max-height: 260px;
}
.send-btn {
  margin: 12px auto 0 auto;
}

/*------------------------------
  Clientele/Логотипы партнеров
------------------------------*/
.clientele-logos-row .card-image {
  height: 90px;
  background: var(--color-surface);
  justify-content: center;
  align-items: center;
  border: none;
}
.clientele-logos-row .card-image img {
  max-height: 90px;
  min-height: 60px;
  object-fit: contain;
  margin: 0 auto;
  filter: grayscale(0%);
}

.clientele-logos-row .card-content p {
  margin-top: 0.5em;
  font-family: var(--font-headline);
  color: var(--color-primary-dark);
  font-size: 1em;
  font-weight: 600;
}

/*------------------------------
  Press/Медиа и Внешние ссылки
------------------------------*/
.external-links-grid .card-content a,
.press-list .card-content strong {
  color: var(--color-primary-dark);
  font-family: var(--font-headline);
  text-decoration: underline;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.external-links-grid .card-content a:hover {
  color: var(--color-accent);
  text-decoration: underline wavy;
}

/*------------------------------
  Behind the Scenes/За кадром
------------------------------*/
.behind-scenes-content .card {
  background: var(--gradient-pastel-3);
  backdrop-filter: var(--glass-blur);
}

/*------------------------------
  Projects/Проекты
------------------------------*/
.projects-row .card-image {
  height: 200px;
}

.projects-row .card-image img {
  max-width: 320px;
  height: 200px;
  object-fit: cover;
}

/*------------------------------
  Insights/Аналитика
------------------------------*/
.insights-list-row .card-image,
.success-row .card-image {
  height: 200px;
}
.insights-list-row .card-image img,
.success-row .card-image img {
  height: 200px;
}

/*------------------------------
  Media/Мультимедиа
------------------------------*/
.media-blocks .card-image {
  height: 210px;
}

/*------------------------------
  Footer
------------------------------*/
.site-footer {
  background: var(--gradient-pastel-1);
  border-radius: 0;
  padding: 32px 0 16px 0;
  box-shadow: 0 -2px 18px 0 rgba(97,106,142,0.07);
  font-family: var(--font-body);
  font-size: 1em;
}
.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2vw;
}
.footer-links-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px 22px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 18px;
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 28px;
}
.footer-nav li a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  font-weight: 600;
  font-size: 1em;
  font-family: var(--font-headline);
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}
.footer-nav li a:hover {
  color: var(--color-accent);
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-socials span {
  color: var(--color-primary);
  font-family: var(--font-headline);
  text-transform: uppercase;
  font-size: 0.93em;
  letter-spacing: 0.04em;
  margin-right: 6px;
  font-weight: 700;
  opacity: 0.75;
}
.footer-socials a {
  color: var(--color-primary-dark);
  font-weight: 700;
  font-family: var(--font-headline);
  font-size: 1em;
  text-decoration: underline;
  margin-right: 7px;
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
  position: relative;
  padding-right: 18px;
}
.footer-socials a:hover {
  color: var(--color-accent);
  text-decoration-thickness: 2px;
}
/* Социальные иконки через before (но только текстовые ссылки, иконки - фишка/бренд цвета, визуал акцент) */
.footer-socials a[href*="facebook"]:before {
  content: "ⓕ";
  color: #4064ac;
  font-size:1.2em;
  font-family: Arial, sans-serif;
  margin-right:4px;
  vertical-align: -3px;
}
.footer-socials a[href*="twitter"]:before {
  content: "𝕏";
  color: #222;
  font-size:1.2em;
  font-family: Arial, sans-serif;
  margin-right:4px;
  vertical-align: -1px;
}
.footer-socials a[href*="instagram"]:before {
  content: "ⓘ";
  color: #c13584;
  font-size:1.21em;
  font-family: Arial, sans-serif;
  margin-right:5px;
  vertical-align: -2px;
}
.footer-bottom {
  text-align: center;
  margin-top: 12px;
  color: #333;
  font-size: 0.96em;
}

/*------------------------------
  Privacy & Terms pages
------------------------------*/
body.privacy-page main,
body.terms-page main {
  padding-top: 100px !important;
}

/*------------------------------
  Плавные анимации и переходы
------------------------------*/
*, *:before, *:after {
  transition-property: background, color, border-color, box-shadow, transform, filter;
  transition-duration: var(--transition-base);
}

/*------------------------------
  Parallax background для hero и media блоков
------------------------------*/
.brutal-hero, .parallax-bg {
  background-attachment: fixed;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/*------------------------------
  Гласморфизм элементы, закругления
------------------------------*/
.brutal-bg, .pastelbrutal {
  background: var(--gradient-pastel-1);
  border-radius: 0;
}
.pastelbrutal {
  background: var(--gradient-pastel-3);
}

input[type="text"], input[type="email"], textarea {
  box-shadow: 0 1.5px 8px 0 rgba(180,204,245, 0.06);
}

::-webkit-input-placeholder { color: #999; opacity: .95;}
::-moz-placeholder          { color: #999; opacity: .95;}
:-ms-input-placeholder      { color: #999; opacity: .95;}
::placeholder              { color: #999; opacity: .95;}

/*------------------------------
  Адаптивность: до 900, 700, 500px
------------------------------*/
@media (max-width: 1150px) {
  .container, .footer-container {
    max-width: 96vw;
  }
}
@media (max-width: 960px) {
  .section-title { font-size: 1.4em;}
  ul.nav-links { gap: 1.1em; }
  .insights-list-row, .projects-row, .clientele-logos-row,
  .media-blocks, .external-links-grid {gap: 16px 9px;}
  .card, .testimonial, .team-member { max-width: 99vw; }
}
@media (max-width: 760px) {
  .navbar, .footer-container {
    padding: 0 0.7em;
  }
  .hero-content {
    padding-left: 2vw; padding-right: 2vw;
  }
  .section { padding: 34px 0 32px 0; }
}

@media (max-width: 700px) {
  .navbar { flex-direction: column; gap:5px;}
  ul.nav-links { flex-direction: column; gap:0.7em; }
  .footer-links-row {
    flex-direction: column;
    gap:16px 0;
    align-items: flex-start;
  }
  .container, .footer-container {
    padding: 0 1vw;
  }
  .hero-content { padding-top: 64px;}
}

@media (max-width: 540px) {
  .section { padding: 24px 0 18px 0;}
  .section-title { font-size: 1.08em;}
  .hero-title { font-size: 1.42em;}
  .hero-section { min-height: 44vh; }
  .success-page .main-container { min-height: 80vh; }
  .card, .testimonial, .team-member { padding: 18px 4px 16px 4px;}
}