:root {
  /* Цветовая палитра (Градиентная, корпоративная, современная) */
  --primary: #2176ff;
  --primary-dark: #164594;
  --accent: #f3b900;
  --accent2: #46c7f2;
  --text-dark: #222222;
  --text-body: #263238;
  --text-light: #ffffff;
  --gray-light: #f7fbfd;
  --brand-pink: #e55973;
  --brand-green: #26cdc9;
  --divider: #e0ecf8;
  --bg-gradient-main: linear-gradient(135deg,#0d2b40 0%, #2998c1 100%);
  --bg-gradient-card: linear-gradient(120deg, #fff 80%, #e3f4fc 100%);
  --card-shadow: 0 6px 32px rgba(38, 60, 80, 0.10);
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --glass-blur: blur(10px);
  --transition: .32s cubic-bezier(.35,1.25,.39,.89);
  --ease-bounce: cubic-bezier(.42,1.8,.5,1);
}

html,body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-body);
  background: var(--bg-gradient-main);
  min-width: 320px;
  margin: 0; padding: 0;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
body {
  letter-spacing: .01em;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Raleway', 'Open Sans', Arial, sans-serif;
  letter-spacing: .02em;
  text-rendering: optimizeLegibility;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 0.75em;
}
h1 { font-size: 2.8rem; line-height: 1.13; }
h2 { font-size: 2rem; line-height: 1.18; }
h3 { font-size: 1.35rem; line-height: 1.22; }
h4, h5, h6 { font-size: 1rem; }

section {
  width: 100%;
  margin: 0 auto;
  clear: both;
  position: relative;
}
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1360px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: var(--primary);
  outline: none;
  transition: color .18s;
  text-decoration-skip-ink: auto;
}
a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
}
strong, b {
  font-weight: 700;
}

/*============ Header & Navigation ============*/
header {
  box-shadow: 0 8px 34px rgba(12,28,58,0.06);
  background: transparent;
  position: fixed;
  width: 100%;
  z-index: 40;
}
nav {
  background: none;
  backdrop-filter: blur(15px);
}
#mobile-nav {
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 50px rgba(28,27,63,0.17);
  transition: all .42s cubic-bezier(.3,1.3,.35,1.18);
  top: 100px;
 
}
#mobile-nav ul {
  text-align: center;
  background-color: #000 !important;
  padding: 20px;
}
#mobile-nav ul li a {
  font-size: 1.5rem;
}

/*======= Hero Section =======*/
#hero {
  min-height: 640px;
  background-size: cover !important;
  background-repeat: no-repeat;
  background-position: center !important;
  position: relative;
  background-attachment: fixed;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.50),rgba(0,0,0,0.60));
  z-index: 1;
}
#hero > .container {
  position: relative;
  z-index: 3;
}
#hero h1, #hero p, #hero a {
  color: #fff !important;
  text-shadow: 1px 2px 9px rgba(0,0,0,0.55);
}
#hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.2em;
  letter-spacing: .015em;
}

/* ===== Glasmorphism & Card ===== */
.card, .team-member, .testimonial, .item, .product-card {
  background: var(--bg-gradient-card);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0 0 2em 0;
  transition: box-shadow .28s var(--ease-bounce), transform .16s var(--ease-bounce);
  text-align: center;
}
.card:hover, .testimonial:hover, .product-card:hover {
  box-shadow: 0 12px 36px rgba(33,118,255,0.11), 0 1.5px 7px 0 rgba(22,69,148,0.03);
  transform: scale(1.025) translateY(-4px);
}
.card-content {
  padding: 1.5em 2em 1.5em 2em;
}
.card-image, .image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  position: relative;
  text-align: center;
}
.card-image img, .image-container img {
  height: 100%;
  width: auto;
  min-width: 80px;
  max-width: 100%;
  border-radius: .7em;
  object-fit: cover;
  margin: 0 auto;
}

.card-image, .image-container {
  min-height: 160px;
  max-height: 280px;
}
.card-image img, .image-container img {
  width: 100%;
  min-height: 120px;
  object-fit: cover;
}

.carousel {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.hide-scrollbar { scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

.stat-widgets .bg-cyan-50 {
  background: rgba(225,250,255,.97) !important;
}

/* ====== Features (Пункты) */
#features .card {
  min-height: 340px;
  justify-content: flex-start;
}
#features .card h3 { font-size: 1.21rem; margin-bottom: 0.45em; }
#features .card .card-content { padding: 0 1.2em 1.5em 1.2em; }

/*==== Clientele (Клиенты - карточки loghi) ====*/
#clientele .image-container {
  height: 80px; width: 176px;
  border-radius: 0.85em;
}
#clientele .image-container img {
  width: 160px; height: 56px; object-fit: contain;
  min-width: 64px;
  background: #f4f8fa;
}

/* ======= Events/Grid ======= */
#events .card {
  min-height: 190px;
  padding-top: 1.3em;
  padding-bottom: 1.5em;
  justify-content: flex-start;
}

/* ===== Customer Stories/Testimonial ===== */
#customer-stories .testimonial, #customer-stories .card {
  flex-direction: column;
  align-items: center;
  padding-top: 1.2em !important;
  min-width: 320px;
  text-align: center;
}
#customer-stories .card-image {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-bottom: 8px;
}
#customer-stories img {
  margin-right: 0 !important;
}

#customer-stories .carousel .card {
  background: rgba(255,255,255,0.96);
}

/*======= Services (Card) =======*/
#services .card-image, #services .image-container, #portfolio .card-image, #portfolio .image-container {
  height: 160px;
  min-height: 140px;
  max-height: 200px;
}
#services .card img, #portfolio .card img {
  width: 100%;
  max-width: 320px;
  min-height: 120px;
  object-fit: cover;
  margin: 0 auto;
}

/*====== Portfolio =======*/
#portfolio .carousel .card {
  flex-shrink: 0;
  width: 384px;
  max-width: 96vw;
  min-width: 320px;
  margin-right: 1.5rem;
}
#portfolio .card-image, #portfolio .image-container {
  max-height: 224px !important;
  min-height: 180px;
}

/*==== Resources (Risorse) ====*/
#resources .image-container {
  width: 288px; height: 192px;
}

/* ===== Контейнеры ===== */
.container {
  padding-left: 2vw;
  padding-right: 2vw;
}
@media (min-width: 1024px) {
  .container { padding-left: 3vw; padding-right: 3vw; }
}

/* ======== Footer ======== */
footer {
  background: linear-gradient(90deg, #1932b4 0%, #0d2b56 45%, #081e36 100%);
  color: #ddeefb;
  margin-top: 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 0.5rem;
  padding-top: 1.6em;
  padding-bottom: 1.6em;
  font-size: 1.09em;
  justify-content: space-between;
}
footer ul, footer nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
footer a, footer li a {
  color: #ddeefb;
  font-weight: 700;
  text-decoration: underline;
  transition: color .2s;
}
footer a:hover, footer a:focus { color: #fff; outline:0; }
footer .text-xs {
  opacity: 0.71;
}
footer ul.flex li { margin-left: 0; margin-right: 1.2em; }
footer ul.flex li:last-child { margin-right: 0; }

/* Social (только текстовые!) */
footer .flex li a {
  font-size: 1.09em;
  font-family: 'Raleway', sans-serif;
  letter-spacing: .02em;
  margin-right: .24em;
}

/*======= Contact Section =====*/
#contact form {
  background: none !important;
}
input[type="text"], input[type="email"], textarea {
  background-color: var(--gray-light);
  border: 1.4px solid var(--divider);
  border-radius: 1em;
  padding: 0.88em 1.15em;
  transition: border .23s,box-shadow .19s;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  box-shadow: 0 1.5px 9px rgba(0,90,160,0.02);
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #eafdff;
  box-shadow: 0 0 3px #238cff3d;
}
textarea { resize: vertical; min-height: 90px; }
::-webkit-input-placeholder, ::placeholder {
  color: #a2b9c8;
  opacity: 1;
}

/*====== КНОПКИ ======*/
.btn, button, input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--primary), var(--accent2));
  color: var(--text-light);
  border: none;
  border-radius: 28px;
  padding: 0.9em 2.1em;
  font-size: 1.10rem;
  font-weight: 800;
  font-family: 'Raleway', sans-serif;
  box-shadow: 0 8px 18px -4px #2176ff23,0 .5px 4px 0 #16459415;
  text-transform: none;
  cursor: pointer;
  transition:
    background .23s var(--ease-bounce),
    box-shadow .23s var(--ease-bounce),
    transform .14s var(--ease-bounce),
    color .22s;
  outline: none;
  margin: 0;
}
.btn:active, button:active, input[type='submit']:active {
  transform: scale(0.97);
  background: linear-gradient(90deg, var(--primary-dark), #1890db);
}
.btn:hover, button:hover, input[type='submit']:hover, .btn:focus, button:focus, input[type='submit']:focus {
  background: linear-gradient(95deg, var(--accent2), var(--primary));
  box-shadow: 0 13px 32px -8px #46c7f256;
  color: #fff;
  transform: scale(1.06) translateY(-2px);
}
.btn:disabled {
  background: #cce7f9; color: #9cb7d2; cursor: not-allowed;
}
.btn:focus {
  outline: 2px solid var(--primary-dark);
}

a.readmore, .read-more, .readmore {
  color: var(--accent2);
  font-family: Raleway,sans-serif;
  letter-spacing: .01em;
  font-weight: 700;
  text-decoration: underline;
  position: relative;
  padding-right: 1.1em;
  transition: color .16s;
  display: inline-block;
}
a.readmore:hover, .read-more:hover {
  color: var(--primary);
  text-shadow: 1px 1px 3px #eafdff88;
}
a.readmore::after, .read-more::after {
  content: "→"; font-weight:900; margin-left:0.35em;
  font-size: 14px; position:absolute; top:49%; transform:translateY(-50%);
  right: 0;
}

/* ==== Misc Utility ==== */
.is-two-thirds, .column.is-two-thirds {
  width: 66.6666% !important;
  flex: 0 0 66.6666% !important;
  max-width: 68%;
}
@media (max-width: 1024px) {
  .is-two-thirds, .column.is-two-thirds { width: 100%!important; max-width: 100%!important; flex:1 1 100%!important; }
}
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ===== Parallax for backgrounds ===== */
[data-prompt] {
  /* fallback for parallax bg handling */
  background-attachment: fixed;
}

/*====== Анимации и переходы ======*/
/* Упругое появление блоков */
@keyframes bounceInUp-custom {
  0% { opacity: 0; transform: translate3d(0,60px,0) scale(0.97);}
  60% { opacity:0.75; transform: translate3d(0,-10px,0) scale(1.03);}
  80% { opacity:1; transform:translate3d(0,6px,0) scale(0.99);}
  100% { opacity:1; transform: translateY(0) scale(1);}
}
.animated-bounceInUp {
  animation: bounceInUp-custom .86s var(--ease-bounce) 1 both;
}
@keyframes popIn {
  0% {opacity:0;transform:scale(0.84);}
  40%{opacity:.6;transform:scale(1.08);}
  100%{opacity:1;transform:scale(1);}
}
.animated-popIn {
  animation: popIn .32s var(--ease-bounce) 1 both;
}
@media (max-width:900px) {
  #hero h1 { font-size: 2rem; }
  #hero p { font-size: 1.09rem; }
}

/* Для перехода между страницами (Barba.js) */
.barba-container {
  opacity: 1;
  transition: opacity .39s cubic-bezier(.4,1.4,.35,1.03);
}
.barba-container[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

/*========= Страницы с длинным контентом ==========*/
body.page-privacy, body.page-terms {
  padding-top: 100px !important;
}
@media (max-width: 600px) {
  body.page-privacy, body.page-terms { padding-top: 62px !important; }
}

/*========= Success page (success.html) ==========*/
body.page-success {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e3f5fd 0%, #a1eaf4 100%);
}
.page-success .container {
  min-width: 320px;
  min-height: 280px;
  background: rgba(255,255,255,0.87);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 48px -7px #5fcff2ba,0 2px 8px #095a8a17;
}
.page-success h1 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: .7em;
}
.page-success p {
  color: #355260;
  font-size: 1.15em;
}

/* ==== Responsive and Asymmetrical Balance (columns, blocks) ==== */
@media (min-width: 900px) {
  .asym-left { margin-left: 5vw; }
  .asym-right { margin-right: 5vw;}
}

/* ====== Градиентные фоны и затемнения ===== */
[data-prompt][style*="background-image"] {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  position: relative;
}
[data-prompt][style*="background-image"]:after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.41)) !important;
  pointer-events: none;
}
[data-prompt] > * {
  position: relative;
  z-index: 2;
}

/* ========= Headings text-shadow for contrast ========= */
h1, h2, h3, h4, h5, h6 {
  text-shadow: 1px 1px 3px rgba(0,0,0,.13);
}
#hero h1, #hero h2, #hero h3 { text-shadow: 1.2px 1.2px 8px rgba(0,0,0,0.5); }
#hero p { text-shadow: 1px 1px 4px #000c; }

/* ====== Cookie popup минимальный override для Tailwind ======*/
#cookie-popup {
  font-size: 1.07em;
  line-height: 1.45;
}
#cookie-popup button {
  margin-left: 12px;
}

/*=============== Отступы секций, асимметрия, лаконичность, лейаут =============*/
section, .section {
  margin-bottom: 0px;
  padding-top: 3.6vw;
  padding-bottom: 3.6vw;
}
@media (max-width:768px) {
  section, .section { padding-top: 18vw; padding-bottom: 8vw; }
  .card, .team-member, .testimonial, .product-card { margin-bottom: 1.3em;}
  .container { padding-left: 3vw; padding-right: 3vw;}
}
@media (max-width:572px){
  section, .section { padding-top: 16vw; padding-bottom: 7vw; }
}

/*========= Прочие улучшения визуала для читаемости и структуры ==========*/
::-webkit-scrollbar { background: #e3f4f8; width: 10px;}
::-webkit-scrollbar-thumb { background: #bce5f2; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #a2d8e8; }

.list-disc>li::marker,.list-decimal>li::marker{ color:var(--primary-dark);}
.container *:not(.hide-scrollbar):not(.carousel) {
  word-break: normal;
  word-wrap: break-word;
}

/* ======== Stat Widget ======== */
.stat-widgets {
  margin-top: 8px; margin-bottom: 1em;
}
.stat-widgets .count-up {
  font-size: 2.0rem;
  font-weight: 900;
  font-family: 'Raleway',sans-serif;
  letter-spacing: .06em;
  color: var(--primary) !important;
}

/* ======= Polished Readability ======= */
section p, section ul, section ol, section li, section textarea, section input[type='text'], section input[type='email'] {
  font-size: 1.1em;
  color: var(--text-body);
  line-height: 1.55;
  font-family: 'Open Sans', Arial, sans-serif;
}
@media (max-width: 600px) {
  footer .container, .container { flex-direction: column; gap:1.6em;}
  h1 { font-size: 2.0rem;}
  h2 { font-size: 1.3rem;}
}

