/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css?family=Archivo+Black:400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* --- CSS VARIABLES (GLOBAL THEME) --- */
:root {
  /* Primary brand color (rich violet) and variants */
  --color-primary: #5229D3;
  --color-primary-dark: #351b75;
  --color-primary-light: #775ADC;
  /* Accent (complementary to violet: orange/gold) */
  --color-accent: #FDB36A;
  --color-accent-dark: #E59A3A;
  /* Neutral backgrounds */
  --color-bg: #F7F7FB;
  --color-bg-light: #FFFFFF;
  --color-bg-dark: #181133;
  --color-glass: rgba(255,255,255,0.55);
  --color-glass-blur: rgba(255,255,255,0.7);
  --color-glass-border: rgba(40,30,60,0.10);
  /* Subtle gradients for texture / backgrounds */
  --gradient-bg: linear-gradient(135deg, #f0eafa 0%, #e2e5f9 100%);
  --gradient-card: linear-gradient(120deg, #ffffff 85%, #f2ecfb 100%);
  /* Text */
  --color-text: #22223B;
  --color-text-light: #fff;
  --color-text-link: #523dc4;
  --color-text-link-hover: #FB923C;
  --color-muted: #7569a4;
  /* Success, Error, Warning */
  --color-success: #3ddc7b;
  --color-error: #e24646;
  --color-warning: #ffc145;
  /* Shadows / Depth */
  --shadow-lg: 0 6px 38px rgba(30,22,60,0.14);
  --shadow-md: 0 2px 18px rgba(40,32,80,0.09);
  --shadow-sm: 0 1px 4px rgba(38,29,66,0.06);
  /* Border-radius*/
  --radius-lg: 1.3rem;
  --radius-md: 0.8rem;
  --radius-sm: 0.4rem;
  /* Glassmorphism blur */
  --blur-amount: 12px;
  /* Section vertical padding */
  --pad-section: 4.5rem;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  height:100%;
  background: var(--gradient-bg);
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--color-text);
  background: var(--gradient-bg);
  margin: 0;
  padding: 0;
  min-height:100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typography --- */
h1,h2,h3,h4,h5,h6, .section-title {
  font-family: 'Archivo Black', Arial, sans-serif;
  color: var(--color-primary-dark);
  letter-spacing: .03em;
  margin: 0 0 1.2em 0;
  line-height: 1.15;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2.1rem;}
h3 { font-size: 1.35rem;}
.section-title { font-weight: 400; font-size: clamp(1.5rem, 2vw, 2.2rem); text-align: center; }

/* --- Container --- */
.container, .is-two-thirds {
  max-width: 1160px;
  width: 94vw;
  margin: 0 auto;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}
.is-two-thirds {
  width: 90vw;
  max-width: 950px;
}

/* --- Layout Utilities --- */
.flex-row {
  display: flex;
  flex-direction: row;
  gap: 1.7rem;
}
.align-center { align-items: center; }
.align-top { align-items: flex-start;}
.justify-space-between { justify-content: space-between;}
.justify-space-around { justify-content: space-around;}
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }

/* Responsive Columns Utility */
@media (max-width: 1024px) {
  .is-two-thirds,
  .container {
    width: 98vw;
    max-width: 98vw;
    padding: 0 1rem;
  }
}
@media (max-width: 799px) {
  .flex-row,
  .is-two-thirds.flex-row {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Spacing utility */
.mt-0   { margin-top: 0 }
.mt-1   { margin-top: 1rem }
.mb-2   { margin-bottom: 2rem }
.mb-1_2 { margin-bottom: 1.2rem }
.pt-4   { padding-top: 4rem }
.pb-4   { padding-bottom:4rem }

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  padding: clamp(4.5rem, 12vw, 8rem) 0 clamp(2rem,8vw,6rem) 0;
  background: linear-gradient(rgba(0,0,0,0.54),rgba(86,30,135,0.11)), 
              url('image/modern-business-team-consulting-table.jpg') no-repeat center center;
  background-size: cover;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-content {
  z-index: 2;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-content h1, .hero-content p { color: #fff; text-shadow: 0 1px 16px rgba(0,0,0,0.16);}
.hero-content h1 { font-size: clamp(2rem,5vw,3.2rem); margin-bottom:1.1rem;}
.hero-content p { font-size: 1.25rem; max-width: 620px; margin-bottom:2.1rem; line-height:1.6;}
.hero-overlay {
  position: absolute; top:0; left:0; right:0; bottom:0;
  background: linear-gradient(120deg, rgba(0,0,0,0.48) 57%,rgba(80,35,223,0.11) 100%);
  z-index:1; pointer-events:none;
}

/* --- NAVIGATION --- */
.header {
  width: 100%;
  position: fixed;
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-md);
  z-index: 22;
  top: 0;
  left: 0;
  transition: background .18s cubic-bezier(.45,2.2,.35,1.01);
  height: 71px;
  display: flex;
  align-items: center;
}
.logo {
  font-family: 'Archivo Black', Arial, sans-serif;
  font-size: 1.45rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: .08em;
  margin-right: 2.2rem;
  transition: filter .22s;
}
.logo:hover { filter: brightness(1.3) drop-shadow(0 1px 14px #dac7ff); }
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  margin: 0; padding: 0;
}
.main-nav a {
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: .39rem 0;
  position: relative;
  transition: color .19s;
}
.main-nav a::after {
  content:'';position:absolute;bottom:0;left:0;width:0;height:2px;
  background: var(--color-primary); transition: width .23s cubic-bezier(.49,2.3,.31,.98);}
.main-nav a:hover { color: var(--color-primary);}
.main-nav a:hover::after {width:100%;}
.burger {
  display: none;
  flex-direction: column; gap:5px;
  background: transparent; border: none; outline: none; cursor: pointer;
}
.burger span {
  display: block; width: 26px; height: 3px; background: var(--color-primary-dark); border-radius: 8px;
  transition: all .14s;
}
@media (max-width: 962px) {
  .main-nav ul { gap: 1rem;}
}
@media (max-width: 650px) {
  .burger { display: flex; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; background: var(--color-bg-light); box-shadow: var(--shadow-md); width: 98vw;}
  .main-nav.active { display: block;}
  .main-nav ul { flex-direction: column; gap: 1rem; padding: 1rem 0;}
}

/* --- BUTTONS (GLOBAL!) --- */
.btn, button, input[type="submit"], .primary-btn, .secondary-btn, .btn-micro {
  all: unset;
  display:inline-block;
  box-sizing: border-box;
  font-family: 'Archivo Black', Arial, sans-serif;
  font-weight: 400;
  font-size: 1.09rem;
  line-height: 1.2;
  text-align: center;
  padding: 0.63em 2.2em;
  border-radius: var(--radius-md);
  cursor: pointer;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  box-shadow: 0 2px 16px rgba(111,77,234,0.11);
  letter-spacing: 0.02em;
  transition: all 0.17s cubic-bezier(.3,1.6,.36,.99), box-shadow 0.16s cubic-bezier(.2,1.6,.6,.99);
  border: none;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.btn:active, button:active, input[type="submit"]:active, .btn-micro:active {
  transform: scale(.95);
}
.btn:hover, button:hover, input[type="submit"]:hover,
.primary-btn:hover, .btn-micro:hover, .secondary-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: 0 6px 32px rgba(220,170,70,0.21), 0 2px 9px rgba(60,27,110,0.09);
  transform: translateY(-3px) scale(1.07) rotate(-1deg);
}

/* Accent / Secondary */
.secondary-btn {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  border: none;
}
.secondary-btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-accent);
}

.btn-micro {
  font-size: 1.3rem;
  padding: .27em 1.1em;
  min-width: 2.2em;
  background: var(--color-primary-light);
}

@media (max-width: 700px) {
  .btn, .primary-btn, .secondary-btn, .btn-micro {
    min-width: 160px;
    font-size: 1.02rem;
    padding: 0.5em 1.21em;
  }
}

/* --- LINKS --- */
a { color: var(--color-text-link); text-decoration: none;}
a:hover { color: var(--color-text-link-hover); text-decoration: underline; }
.blog-link {
  color: var(--color-accent-dark);
  font-weight: 700;
  padding: 0.18em 0.33em;
  display: inline-block;
  background:linear-gradient(92deg,#fee0c8 50%,#fffbe8 100%);
  border-radius: var(--radius-sm);
  margin-top:1.3em;
  font-family:'Archivo Black',Arial,sans-serif;
  transition: background 0.18s,color 0.13s;
  box-shadow: 0 2px 8px rgba(240,150,65,0.09);
}
.blog-link:hover {
  color: var(--color-primary);
  background: linear-gradient(91deg,#ede5ff 75%,#f4e8cf 100%);
  text-shadow: 0 1px 0 #fff;
}

/* --- ABOUT & VISION --- */
.about-section, .vision-section {
  background: var(--color-bg-light);
  padding: var(--pad-section) 0;
}
.about-flex, .vision-section .flex-row {
  gap: 2.4rem;
}
.about-flex > div, .vision-section .flex-row > div { min-width: 0;}

.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg,rgba(242,230,255,0.20),rgba(237,243,250,0.17));
  border: 1.5px solid var(--color-glass-border);
  margin: 0 auto;
  min-height: 120px;
}
/* СТРОГО: фиксированная высота для карточек с изображениями */
.card .image-container,
.external-card .image-container,
.partner-card .image-container,
.blog-card .image-container {
  height: 150px;
  max-height: 180px;
  min-height: 120px;
}
.card .image-container img,
.external-card .image-container img,
.partner-card .image-container img,
.blog-card .image-container img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  display: block;
  margin: 0 auto;
}

/* --- STATISTICS --- */
.statistics-section {
  background: linear-gradient(99deg,#e3f4fd 80%,#ecdefe 100%);
  padding: var(--pad-section) 0 3.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 2.7rem 2.1rem;
  margin-top: 2.3rem;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align:center;
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2.1rem 0.5rem;
  min-width:160px;
  transition: transform .20s cubic-bezier(.35,2,.32,.99);
  animation: bounceIn .8s cubic-bezier(.28,1.61,.47,.85);
  border: 1.5px solid var(--color-glass-border);
}
.stat-card:hover {
  background: linear-gradient(110deg,#e0e6ff 85%,#fbecf7 100%);
  transform: scale(1.055) rotate(-1deg);
}

/* --- SERVICES --- */
.services-section {
  background: var(--color-bg-light);
  padding: var(--pad-section) 0;
}
.carousel-container { position: relative;}
.carousel-track {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(270px,1fr));
  gap: 2.3rem;
  margin-bottom: 2rem;
}
.service-card, .external-card {
  background: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 238px;
  transition: transform .22s cubic-bezier(.34,1.7,.28,1.16), background .16s;
  border: 2px solid transparent;
  padding: 1.6rem 1.12rem 1.5rem 1.12rem;
  will-change: transform;
}
.service-card:hover {
  background: var(--color-glass);
  transform: scale(1.035) translateY(-3px);
  border-color: #dcc3ff;
}
.service-title {
  font-family: 'Archivo Black', Arial, sans-serif;
  color: var(--color-primary-dark);
  font-size: 1.19rem;
  margin-bottom: .5rem;
}
.carousel-controls {
  display: flex; gap: 1.18rem;
  justify-content: center;
  align-items: center;
  padding: 0.7rem 0 0.1rem 0;
}
/* --- EXTERNAL RESOURCES --- */
.external-links-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1.2rem 1.8rem;
  margin: 0 auto;
}
.external-card {
  min-width: 220px;
  padding: 1.26rem 1.16rem 1.1rem 1.16rem;
}
.external-card:hover {
  background: linear-gradient(120deg,#fee3ca 75%,#f0effe 100%);
  border-color: var(--color-accent-dark);
  transform: scale(1.03);
}

.external-card a {
  color: var(--color-primary-dark) !important;
  font-family: 'Archivo Black',Arial,sans-serif;
  font-size:1.08rem;
  text-decoration: underline;
  transition: color 0.18s, text-shadow .17s;
}
.external-card a:hover {
  color: var(--color-accent-dark) !important;
  text-shadow: 0 1px 7px #fff9e6;
}

/* --- GALLERY --- */
.gallery-section {
  background: var(--color-bg-light);
  padding: var(--pad-section) 0 3rem 0;
}
.gallery-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(195px,1fr));
  gap: 1.6rem;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  padding: 1rem .4rem 0.8em .4rem;
  min-width: 175px;
  transition: box-shadow .15s, transform .15s;
  will-change: transform;
  margin-bottom:0.8rem;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.025) translateY(-3px);
}

/* --- PARTNERS --- */
.partners-section {
  background: linear-gradient(98deg,#eaeef8 70%,#e4e0f8 100%);
  padding: var(--pad-section) 0 2.5rem 0;
}
.partners-grid {
  display: flex; flex-wrap: wrap;
  gap: 1.3rem;
  justify-content: center;
}
.partner-card {
  background: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content:center;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-width: 120px; min-height: 80px;
  padding: 0.3rem;
  border:1.6px solid #f9f5ff;
  transition: box-shadow .13s;
}
.partner-card:hover {
  box-shadow: 0 3px 21px #ddbfff42;
}

/* --- CAREERS --- */
.careers-section {
  background: var(--gradient-bg);
  padding: var(--pad-section) 0;
}
.careers-section a { color: var(--color-primary);}
.careers-section .image-container {
  height: 220px;
}

/* --- EVENTS CALENDAR --- */
.events-section {
  background: linear-gradient(143deg,#fff8f6 65%,#f9f2e3 100%);
  padding: var(--pad-section) 0 2.8rem 0;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 2.5rem 2.2rem;
  margin-top:2rem;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  position: relative;
}
.timeline-date {
  font-family: 'Archivo Black',Arial,sans-serif;
  font-size: 1.02rem;
  color: var(--color-accent-dark);
  background: #f8e3e0;
  padding: .40em 1.13em;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 11px #e9ddff80;
  margin-right: .8em;
  min-width: 88px;
}
.timeline-content {
  flex: 1;
  background: var(--color-glass-blur);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.2rem 1.2rem 1.1rem;
  box-shadow: var(--shadow-xs);
  transition: background .17s;
  border: 1px solid var(--color-glass-border);
}
.timeline-content h3 {
  margin: .2em 0 .7em 0;
  color: var(--color-primary-dark);
}

/* --- BLOG SECTION --- */
.blog-section {
  background: var(--color-bg);
  padding: var(--pad-section) 0 3rem 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1.55rem 2rem;
}
.blog-card {
  background: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 230px;
  transition: background .17s, transform .18s cubic-bezier(.43,2.1,.22,.99);
  padding: 1.5rem 1.13rem .4rem 1.13rem;
}
.blog-card:hover {
  background: linear-gradient(96deg,#fcf4db 90%,#e0e2fc 100%);
  transform: scale(1.025) rotate(-1deg) translateY(-3px);
}

/* --- CONTACT SECTION --- */
.contact-section {
  background: linear-gradient(120deg,#eaf4fa 82%,#eae0fe 100%);
  padding: var(--pad-section) 0;
}
#contact-form {
  display: flex;
  flex-direction: column;
  gap: .45em;
  background: linear-gradient(112deg,rgba(255,255,255,0.73),rgba(251,243,253,0.93) 86%);
  padding: 2rem 1.2rem 1.7rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid var(--color-glass-border);
  backdrop-filter: blur(2px);
}
#contact-form label {
  margin-bottom: .25em;
  font-weight: 500;
  color: var(--color-primary-dark);
  font-family: 'Archivo Black',Arial,sans-serif;
  letter-spacing: 0.01em;
}
#contact-form input, #contact-form textarea {
  padding: .62em 1.1em;
  border-radius: var(--radius-sm);
  border: 1.5px solid #ded6ee;
  font-size: 1.07rem;
  margin-bottom: .5rem;
  font-family: 'Roboto', Arial, sans-serif;
  background: rgba(255,255,255,0.86);
  transition: border-color 0.14s, box-shadow 0.16s;
  color: var(--color-primary-dark);
  box-shadow: 0 1px 7px #d8d1fc1b;
}
#contact-form input:focus, #contact-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 3px 23px #d5c8fd35;
}
#contact-form textarea { min-height: 80px; resize: vertical; }

/* --- ADDRESS --- */
address {
  margin-top:1rem;
  color: var(--color-text);
  line-height:1.5;
  font-size: 1.02rem;
}

/* --- FOOTER --- */
.footer-section {
  background: var(--color-bg-dark);
  color: #fff;
  padding: 2.2rem 0 1.1rem 0;
  border-top: 2.5px solid #ded6ff;
  margin-top: 2.7rem;
  box-shadow: 0 -2px 12px #311b3a15;
}
.footer-section .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
}
.footer-logo span {
  font-size: 1.28rem;
  font-family: 'Archivo Black', Arial, sans-serif;
  letter-spacing: 0.03em;
  color: #fff;
}
.footer-section p,
.footer-section a,
.footer-section li,
.footer-section address {
  color: #e3d7fa; 
  line-height: 1.6;
  font-size:1.02rem;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav ul li {
  margin-bottom: .77em;
}
.footer-nav a { color: #e3d7fa; letter-spacing: 0.02em; transition: color 0.18s;}
.footer-nav a:hover { color: var(--color-accent); text-shadow: 0 2px 15px #eeaf6a11;}
/* Footer Social Links (text-only, but visually engaging) */
.footer-social {
  font-size: 1.02rem;
}
.footer-social ul {
  list-style: none;
  margin: 0.5em 0 0 0;
  padding: 0;
}
.footer-social ul li {
  margin-bottom: .35em;
}
.footer-social a {
  display:inline-block;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  padding-right: 0.6em;
  position: relative;
  transition: color 0.19s, text-shadow 0.13s;
  text-decoration: underline;
}
.footer-social a:hover {
  color: var(--color-primary);
  text-shadow: 0 1px 9px #fad9a8;
}

/* Social text-icon (small accent underline) */
.footer-social a::before {
  content: '';
  display: inline-block;
  width: 1.5em;
  height: 2px;
  background: linear-gradient(90deg,#FDB36A 10%,#5229D3 100%);
  position: absolute;
  left: -1.7em;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 1px;
  opacity: .5;
}
.footer-social ul li:first-child a::before { background: linear-gradient(90deg,#395797 60%,#FDB36A 100%);}
.footer-social ul li:nth-child(2) a::before { background: linear-gradient(90deg,#2386fe 10%,#FDB36A 95%);}
.footer-social ul li:nth-child(3) a::before { background: linear-gradient(90deg,#FDB36A,#FF65B7);}
@media (max-width: 850px) {
  .footer-section .container { flex-direction:column; gap:1.1rem;}
}
@media (max-width:520px) {
  .footer-section { font-size: 0.98rem;}
  .footer-logo span { font-size: 1rem;}
}
.footer-section small { display: block; color: #c7b9e8; margin-top: 1.1rem; font-size: 0.98rem; }

/* --- COOKIE POPUP --- */
#cookie-popup {
  background: rgba(20,20,30,0.95);
  color: #fff;
  padding: 1.12rem 0.8rem 1.12rem 1rem;
  font-family: 'Roboto',Arial,sans-serif;
  font-size: 1.07rem;
  z-index: 9999;
}
#cookie-popup button#cookie-accept-btn {
  background: var(--color-primary);
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: 7px;
  cursor: pointer;
  font-size: 1rem;
  margin-left:1rem;
  transition: background 0.2s;
}
#cookie-popup button#cookie-accept-btn:hover {
  background: var(--color-accent-dark);
  color: var(--color-primary-dark);
}

/* --- GLASSMORPHISM GENERAL --- */
.glass-bg, .timeline-content, .card-glass, .stat-card, .service-card, .external-card, .partner-card, .blog-card {
  background: var(--color-glass-blur) !important;
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--color-glass-border);
}

/* --- SECTION SPACING --- */
section {
  margin-bottom: 1.7rem;
}

/* --- PADDING FOR PAGES, if privacy or terms --- */
.privacy-page, .terms-page {
  padding-top: 100px;
}
@media (max-width: 600px) {
  .privacy-page, .terms-page { padding-top: 80px;}
}

/* --- SPECIAL: SUCCESS PAGE --- */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-bg);
}
.success-page .success-content {
  text-align: center;
  background: var(--color-glass-blur);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 450px;
  margin: 0 auto;
  padding: 3.8rem 2.2rem;
}
.success-page .success-content h1 {
  color: var(--color-primary-dark);
  margin-bottom: 1.2rem;
}

/* --- PLACEHOLDER IMAGE STYLES (for image generation description) --- */
img[data-prompt] {
  /* nothing special visually - 'data-prompt' used for future image generation */
}

/* --- FORM ELEMENTS WRAP --- */
input, textarea, select, button { font-family: inherit; }

/* --- PLACEHOLDER FOR PARALLAX & DEPTH --- */
.hero-section, .about-section, .vision-section, .gallery-section, .partners-section, .services-section {
  /* If using simple parallax, add here as background-attachment: fixed; -- up to JS for compatibility */
}

/* --- ELEVATION / SHADOWS --- */
.elevated { box-shadow: var(--shadow-lg);}
.elevate-md {box-shadow: var(--shadow-md);}
.elevate-sm {box-shadow: var(--shadow-sm);}

/* --- CARD & ITEM STRUCTURE: СТРОГО --- */
.card, .item, .testimonial, .team-member, .product-card,
.external-card,
.partner-card,
.blog-card,
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center !important;
  justify-content: flex-start;
}
/* СТРОГО: img центрируются */
.card .image-container,
.external-card .image-container,
.partner-card .image-container,
.blog-card .image-container,
.service-card .image-container { min-height: 120px; height: 150px; max-height: 180px; }
.card img,
.external-card img,
.partner-card img,
.blog-card img,
.service-card img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  display: block;
  margin: 0 auto;
}

/* --- ANIMATIONS: "Упругая" стилизация доп Animate.css --- */
/* Demo only: больше "упругости" при hover-ku */
.btn, .primary-btn, .carousel-controls button, .blog-link, .stat-card, .card, .service-card, .blog-card {
  transition: transform .22s cubic-bezier(.16,1.6,.43,1.04), box-shadow .17s;
}
.btn:active, .primary-btn:active, .carousel-controls button:active, .stat-card:active,
.card:active, .service-card:active, .blog-card:active, .blog-link:active {
  transform: scale(.97);
}

/* --- MEDIA QUERIES (СОКРАЩЕНИЕ section padding, адаптация карточек) --- */
@media (max-width: 767px) {
  section, .about-section, .vision-section, .statistics-section,
  .services-section, .gallery-section, .partners-section,
  .careers-section, .blog-section, .contact-section, .events-section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.1rem !important;
  }
  .container, .is-two-thirds { padding-left: .6rem; padding-right: .6rem;}
  .card, .blog-card, .stat-card, .service-card, .external-card {
    padding-left:0.6rem; padding-right:0.6rem;
    min-width: 0;
  }
  .timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .stats-grid,
  .carousel-track,
  .gallery-carousel,
  .external-links-cards,
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .stats-grid,
  .carousel-track,
  .gallery-carousel,
  .external-links-cards,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .hero-content h1 { font-size: 2.12rem;}
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 10px; background: #f7f7fb;}
::-webkit-scrollbar-thumb { background: #cfc7e6; border-radius: 12px;}
::-webkit-scrollbar-thumb:hover { background: #b9acd6 }

/* --- SELECTION COLOR --- */
::selection { background: #e5caff; color: var(--color-primary-dark); }

/* --- ACCESSIBILITY: focus --- */
a:focus, button:focus, input:focus, .btn:focus {outline: 2px solid var(--color-accent);}