:root {
  /* Gradient Palette */
  --color-primary: #3937c9;
  --color-primary-dark: #232137;
  --color-accent: #c93099;
  --color-accent-dark: #992367;
  --color-highlight: #66fcf1;
  --color-muted: #ededfd;
  --color-light: #f9fafd;
  --color-bg: #f2f6fa;
  --color-bg-dark: #18162d;
  --color-white: #fff;
  --color-black: #111117;
  --color-text: #232137;
  --color-text-inverse: #fff;
  --color-text-accent: #3937c9;
  --color-card-bg: #fff;
  --card-radius: 1.3em;
  --card-shadow: 0 6px 24px 0 rgba(41,32,64,0.18);
  --glass-blur: blur(14px);

  /* Gradients */
  --gradient-main: linear-gradient(120deg, #3937c9 5%, #c93099 95%);
  --gradient-secondary: linear-gradient(100deg, #f2f6fa 55%, #e9e8fb 95%);
  --gradient-footer: linear-gradient(90deg, #232137 30%, #3937c9 100%);
  --gradient-btn: linear-gradient(92deg,#c93099,#3937c9 85%);
  --gradient-btn-hover: linear-gradient(93deg,#3937c9,#c93099 85%);
  --gradient-darken: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.50));

  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;
}

/* Typography */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--gradient-secondary);
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  color: #222;
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.10);
  text-align: center;
}

h1 { font-size: 2.7rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.3rem; }

p, li, label, input, textarea, th, td {
  font-family: var(--font-body);
  color: var(--color-text);
}

.section-gradient {
  background: var(--gradient-main);
}

.section-gradient,
#clientele.section-gradient,
#methodology.section-gradient {
  color: var(--color-white);
}

.section-light {
  background: var(--gradient-secondary);
}

.text-shadow,
.section-gradient h2,
.section-gradient h1,
.section-gradient h3,
.section-gradient p,
.section-gradient {
  color: var(--color-white)!important;
  text-shadow: 1px 1px 6px rgba(56,43,95,0.35);
}

@media (max-width: 850px) {
  h1,
  h2 { font-size: 2rem; }
}

@media (max-width: 600px) {
  h1, h2 { font-size: 1.35rem; }
  h3 { font-size: 1rem;}
}

/* Utility classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.mx-auto {margin-left: auto !important; margin-right: auto !important; }
.text-center {text-align: center;}
.w-full {width:100%;}
.section {
  margin-bottom: 3rem;
}
.mt-auto {margin-top:auto;}

/* HEADER & NAVIGATION */
header {
  background: linear-gradient(115deg, #31316f 65%, #18162d 100%);
  box-shadow: 0 0 18px 0 rgba(30, 22, 54, 0.14);
}
header .nav-link {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-weight: 700;
  margin: 0 0.2em;
  border-radius: 2em;
  padding: 0.6em 1.2em;
  transition: background 0.25s, color 0.18s;
  display: inline-block;
}
header .nav-link:hover,
header .nav-link:focus {
  color: var(--color-highlight);
  background: rgba(57,55,201,0.11);
}
#burger span {transition: all .13s;}
#burger:active span {background:var(--color-accent);}
#mobile-menu a { border-bottom: 1px solid #3d3866; }
#mobile-menu { animation: floatInDown .6s cubic-bezier(.56,.26,.58,1.13);}

/* HERO */
#hero {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow: visible;
}
#hero .isocloud {
  opacity: 0.21;
  pointer-events: none;
  filter: blur(35px);
  animation: cloudflow ease-in-out 8.2s infinite alternate;
}
@keyframes cloudflow {
  0% {transform:translateY(0) scale(1);}
  50%{transform:translateY(-12px) scale(1.06);}
  100%{transform:translateY(7px) scale(1);}
}
#hero h1, #hero p {
  color: var(--color-text-inverse) !important;
  text-shadow: 1px 1px 11px rgba(30,12,54,0.32);
}
#hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.8em;
  letter-spacing: -0.02em;
  line-height: 1.13;
}
#hero .card-image {
  background: var(--gradient-darken);
}
#hero .card-content {
  text-align: center;
  color: var(--color-text-inverse);
}
#hero .gradient-btn {margin-top:1.7em;}
@media (max-width: 900px){
  #hero{padding-bottom: 4.5rem;}
}

/* STATISTICS & ACCOLADES CARDS */
.card, .item, .testimonial, .team-member, .product-card  {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  margin: 0 auto 1.75em auto;
  min-width: 0;
  transition: box-shadow .28s cubic-bezier(.6,.07,.92,.9), transform .21s;
  position: relative;
  z-index: 2;
  text-align: center;
  overflow: visible;
}
.card:hover, .item:hover, .testimonial:hover, .team-member:hover {
  box-shadow: 0 12px 32px 0 rgba(201,48,153,0.13), var(--card-shadow);
  transform: translateY(-4px) scale(1.011);
}
.card-image, .image-container {
  width: 100%;
  height: 180px;
  max-width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-secondary);
  position: relative;
  border-radius: 1em 1em 0 0;
}
.card-image img, .image-container img {
  width: auto;
  min-width: 90px;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.8em 0.8em 0 0;
  margin: 0 auto;
  background: #eaeaec;
}
.card-content {
  text-align: center;
  padding: 1.2em 1.6em;
  color: var(--color-text);
  flex: 1 1 auto;
}

/* Variable heights for portfolio cards */
@media (min-width: 700px){
  #portfolio .card-image, #portfolio .image-container {height: 190px;}
  #portfolio .card {min-width: 400px;}
}
@media (max-width: 600px){
  .card-content {padding: .7em;}
  .card-image, .image-container {height: 120px;}
}

/* GLASSMORPHISM */
.glass {
  backdrop-filter: var(--glass-blur);
  background: rgba(255,255,255,0.62);
  border-radius: var(--card-radius);
  box-shadow: 0 7px 40px 0 rgba(39,12,91,0.13);
  border:1px solid rgba(46,61,93,0.07);
}

/* BUTTONS */
.btn, .gradient-btn,
button, input[type="submit"] {
  background: var(--gradient-btn);
  color: var(--color-white)!important;
  font-family: var(--font-heading);
  font-weight: 700;
  border: none;
  border-radius: 2em;
  padding: .8em 2.2em;
  cursor: pointer;
  font-size: 1.05rem;
  letter-spacing:0.01em;
  transition: background .24s, box-shadow .19s, transform .17s;
  box-shadow: 0 5px 22px 0 rgba(201,48,153,0.09);
  outline: none;
  margin-top: 1rem;
  display: inline-block;
  position:relative;
  overflow: hidden;
}
.btn:active, .gradient-btn:active, 
button:active, input[type="submit"]:active {
  background: var(--gradient-btn-hover);
  transform: scale(.98);
}
.btn:hover, .gradient-btn:hover, 
button:hover, input[type="submit"]:hover {
  background: var(--gradient-btn-hover);
  box-shadow: 0 12px 28px 0 rgba(39,55,201,0.08);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.04);
}
.btn:focus-visible, .gradient-btn:focus-visible {
  border:2px solid var(--color-accent);
  outline: none;
}

/* Form fields */
input:not([type="checkbox"]):not([type="radio"]),
textarea, select {
  border-radius: 1.25em;
  border: 1px solid #eaeaec;
  background: rgba(255,255,255,0.93);
  font-family: var(--font-body);
  padding: .7em 1.2em;
  margin-bottom: 1.18rem;
  color: var(--color-primary-dark);
  font-size: 1.07rem;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow .22s, border .15s;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 2px 18px 0 rgba(201,48,153,0.06);
  background: #fff;
}

label {
  margin-bottom: .2em;
  font-weight: 600;
  font-family: var(--font-heading);
}

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

/* PARALLAX & NONLINEAR ANIMATIONS */
.section-gradient,
#clientele.section-gradient,
#methodology.section-gradient,
#hero {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center;
  position: relative;
}
.section-gradient::after, #hero::after, #clientele::after, #methodology::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg,rgba(57,55,201,0.18),rgba(201,48,153,0.10));
  pointer-events: none;
  mix-blend-mode: multiply;
}
.section-gradient>*, #hero>*, #methodology>*, #clientele>* {position: relative; z-index: 2;}

/* UNIQUE FUTURISTIC GRID - Wavy/Curved Section Dividers */
.curved-divider {
  display: block;
  width: 100%;
  height: 65px;
  background: none;
  margin: -55px 0 0 0;
}
@media (max-width:500px) {
  .curved-divider {height: 37px; margin:-25px 0 0 0;}
}

/* CONTACT SECTION */
#contact .glass {
  border-radius: 2em;
  box-shadow: 0 9px 32px 0 rgba(39,31,97,0.07);
}
#contact p, #contact label {
  color: var(--color-text);
}
#contact .card-content {
  padding: 1.5em 1em 1.3em 1em;
}

/* CARD LAYOUTS */
.card, .testimonial, .team-member, .product-card, .item {
  min-width: 260px;
  max-width: 550px;
  width: 100%;
  margin-bottom: 2.2rem;
}

#statistics .card,
#portfolio .card, 
#clientele .card,
#resources .card,
#methodology .card,
#about .card {
  min-height: 370px;
  height: auto;
}

@media (max-width: 768px){
  .card, .testimonial, .team-member, .product-card, .item {margin-bottom: 2.8rem;}
}

/* CENTERED CARD LAYOUT */
.card, .testimonial, .team-member, .product-card, .item {
  align-items: center;
  text-align: center;
}

/* CARD IMAGE SPECIFICS */
.card-image, .image-container {
  width: 100%;
  min-width: 140px;
  height: 140px;
  max-width: 400px;
  margin: 0 auto;
  background: var(--gradient-secondary);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img, .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 1em 1em 0 0;
  display: block;
  background: #ededfd;
}

.card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.6em;
}

/* OUTBOUND LINKS ('Читать далее') */
a.cta, .read-more, .readmore-link {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: underline;
  position: relative;
  padding-right: 1.3em;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
a.cta::after, .read-more::after, .readmore-link::after {
  content: '→';
  color: var(--color-primary);
  font-size: 1.18em;
  margin-left: 0.22em;
  position: absolute; right: 0; top:0;
  transition: transform .18s;
}
a.cta:hover, .read-more:hover, .readmore-link:hover{
  color: var(--color-highlight);
}
a.cta:hover::after, .read-more:hover::after, .readmore-link:hover::after {
  transform: translateX(4px) scale(1.2);
}

/* FOOTER */
footer {
  background: var(--gradient-footer);
  color: var(--color-white);
  font-family: var(--font-body);
  box-shadow: 0 -14px 64px 0 rgba(41,32,101,0.13);
  margin-top: 0;
}

footer nav a, footer a {
  color: var(--color-white);
  text-decoration: underline;
  font-weight:600;
  margin-right: 1.1em;
  margin-bottom:0.5em;
  font-family: var(--font-heading);
  transition: color .16s;
}
footer nav a:last-child, footer a:last-child{margin-right:0;}
footer nav a:hover, footer a:hover {
  color: var(--color-highlight);
  text-decoration-thickness: 2px;
}

footer .text-sm,
footer .font-medium {color: #dbeafe;}
footer .font-bold {color: var(--color-white);}
footer .footer-social {
  margin-top: .7em;
  display: flex;
  align-items: center;
  gap: 1.8em;
  font-weight: 700;
}
footer .footer-social a {
  color: var(--color-white);
  text-decoration: underline;
  margin-right:.7em;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1em;
  background: none;
  transition: color 0.2s;
}
footer .footer-social a:hover {
  color: var(--color-highlight);
  text-decoration: underline wavy;
}

/* Social text-icon effect (underline as icon-substitute) */
footer .footer-social a:before {
  content: "";
}

/* SUCCESS.HTML PAGE LAYOUT */
body.success-page {
  min-height: 100vh;
  background: var(--gradient-main);
  display: flex;
  justify-content: center;
  align-items: center;
}
.success-page__container {
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255,255,255,0.96);
  border-radius: 1.8em;
  padding: 3em 2.2em 3em;
  box-shadow: 0 18px 48px 0 rgba(57,55,201,0.09);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.success-page__container h1,
.success-page__container h2,
.success-page__container h3 {
  margin-bottom: 0.3em;
  color: var(--color-accent);
}
.success-page__container p {
  font-size: 1.13em;
  color: var(--color-primary-dark);
}

/* PRIVACY, TERMS PAGE LAYOUT */
.page-content-legal {
  max-width:860px;
  margin: 0 auto;
  padding-top: 100px !important;
  padding-left: 1.2em;
  padding-right: 1.2em;
  padding-bottom: 3em;
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 7px 24px 0 rgba(57,55,201,0.046);
}

/* GRID + FLEX FOR RESPONSIVENESS */
.grid, .flex {
  gap: 1.3em;
}
@media (min-width: 700px){
  .columns, .md\:grid-cols-2, .md\:grid-cols-3, .md\:grid-cols-4 {
    display: grid;
    gap:2.1em;
  }
}
.is-two-thirds, .w-2\/3, .md\:w-2\/3 {
  width: 66.6666% !important;
}
.is-one-third, .w-1\/3, .md\:w-1\/3 {
  width: 33.3334% !important;
}
@media (max-width:700px){
  .is-two-thirds, .w-2\/3, .md\:w-2\/3,
  .is-one-third, .w-1\/3, .md\:w-1\/3 { width: 100% !important;}
}

/* Responsive padding for containers */
@media (max-width: 1000px){
  .container,
  .max-w-6xl, .max-w-5xl, .max-w-4xl, .max-w-3xl {padding-left:1.2rem !important; padding-right:1.2rem !important;}
}

/* ANIMATIONS - NONLINEAR MOVEMENT & TRANSITIONS */
@keyframes floatInUp {
  0% { opacity:0; transform:translateY(55px) scale(0.98);}
  70%{ opacity:1; }
  100%{opacity:1;transform:translateY(0) scale(1);}
}
@keyframes floatInDown {
  0% { opacity:0; transform:translateY(-35px) scaleY(0.98);}
  70%{ opacity:1;}
  100%{opacity:1;transform:translateY(0) scaleY(1);}
}
@keyframes nonlinearParallax {
  0% {transform: translateY(0);}
  45%{transform:translateY(-8px);}
  70%{transform:translateY(5px);}
  100%{transform:translateY(0);}
}
[data-aos] {
  animation-duration: 1.15s;
  animation-fill-mode: both;
 }
.card[data-aos], .item[data-aos], .team-member[data-aos], .testimonial[data-aos] {
  animation-name: floatInUp;
}

/* LINKS */
a {
  color: var(--color-accent);
  font-weight: 500;
  transition: color .18s, text-decoration-thickness .27s;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .15em;
}
a:hover, a:focus { color: var(--color-highlight); text-decoration-thickness:2.5px; }

a:active { color: var(--color-primary-dark);}

/* Fix for images rendered via <img> not overflowing out of card/image-container */
.card-image,
.image-container {
  overflow: hidden;
  background: #ededfd;
  border-radius: 1em 1em 0 0;
  min-height: 60px;
  max-height: 230px;
  box-shadow: 0 2px 6px 0 rgba(39,55,201,0.07);
}

.card-image img, .image-container img {
  border-radius: 1em 1em 0 0;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* CURVED WAVE BACKGROUNDS */
.section-gradient, #hero, #clientele, #methodology {
  position: relative;
}
.section-gradient::before,
.section-gradient::after,
#hero::before,
#hero::after,
#clientele::before,
#clientele::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0; z-index: 0;
  height: 122px;
  pointer-events: none;
}
.section-gradient::before {
  top: -60px;
  background: linear-gradient(140deg, #c93099 25%,#3937c9 100%);
  border-radius: 120% 42% 75% 61%/74% 33% 80% 25%;
  opacity: 0.13;
  filter: blur(23px);
}

.section-gradient::after {
  bottom: -60px;
  background: linear-gradient(110deg, #66fcf1 0%,#3937c9 100%);
  border-radius:61% 75% 100% 81%/74% 62% 88% 55%;
  opacity: 0.13;
  filter: blur(23px);
}

/* Cookie consent popup override */
#cookiePopup {
  max-width:100vw;
  font-size:1.05em;
  z-index: 9999 !important;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 -8px 32px 0 rgba(39,12,91,0.19);
  background: rgba(30,30,40,0.99) !important;
}
#cookiePopup button {
  background: var(--gradient-btn);
  color: #fff;
  border-radius: 2em;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-top:1.3em;
  border:none;
  outline: none;
  padding: .65em 2.4em;
  cursor:pointer;
  transition:background .19s;
  box-shadow: 0 2px 16px 0 rgba(201,48,153,0.11);
}
#cookiePopup button:hover {background: var(--gradient-btn-hover);}

/* Miscellaneous fixes */
@media (max-width: 600px) {
  .card-image, .image-container {height: 90px;}
  .card, .testimonial, .team-member, .product-card, .item {min-width: 100%;}
}

/* Hide scrollbars for curved bg on desktop */
@media (min-width:900px){
  .section-gradient, #clientele, #methodology, #hero{overflow:visible;}
}

#mobile-menu{
  display: none !important;
}