 
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --white: #ffffff;
    --dark: #1a1a2e;
    --navy: #16213e;
    --blue: #0f3460;
    --accent: #6B46FF;
    --light-bg: #f7f8fc;
    --gray: #6b7280;
    --light-gray: #e5e7eb;
    --text: #1f2937;
    --tag-bg: #eef2ff;
    --tag-color: #4f46e5;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.16);
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
  }
  .fs-6{
    font-size: 14px !important;
  }
  .fs-7{
    font-size: 12px;
  }
  .green{
    color: #00DB07;
  }
  .green-point{
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: #00DB07;
    border-radius: 10px;
    margin-bottom: 2px;
  }
  /* ── HEADER ── */
  header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--light-gray);
    padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
  }
  .logo {
    font-family: 'Manrope', sans-serif;
    font-weight: 900; font-size: 22px;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.5px;
  }
  .logo span { color: var(--accent); }
  .logo img{
    width: 47px;
    height: 47px;
    border-radius: 10px;
  }
  nav { display: flex; gap: 32px; }
  nav a {
    text-decoration: none;
    color: #000;
    font-size: 14px; font-weight: 400;
    transition: color .2s;
  }
  nav a:hover { color: var(--accent); }
.btn-primary {
  position: relative;
  width: 225px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  border-radius: 50px;
  white-space: nowrap;
  overflow: hidden;

  background: linear-gradient(95.61deg, #6B46FF 27.74%, #000000 97.3%);
  transition: transform .15s ease, box-shadow .15s ease;
  
  box-shadow: 0 6px 16px rgba(107, 70, 255, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(95.61deg, #000000 27.74%, #6B46FF 97.3%);
  opacity: 0;
  transition: opacity .9s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:hover{
transform: translateY(-3px);
}


.btn-primary:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(107, 70, 255, 0.2);
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

  /* ── HERO ── */
  .hero {
    min-height: 80vh;
    display: flex; align-items: center;
    position: relative;
    overflow: hidden;
  }

    .hero-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 60px;
    }

    .hero-left {
      flex: 1;
    }

    .hero-right {
      flex: 1;
      display: flex;
      justify-content: center;
    }
  .hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px; font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
  }
  .hero h1 {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 300;
    color: #000;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -1px;
  }
   .hero h2 {
    font-size: clamp(24px, 5vw, 38px);
    font-weight: 600;
    color: #000;
    line-height: 1.1;
    margin-bottom: 20px;
   }
  
  .hero p {
    color: #000;
    font-size: 16px; line-height: 1.3;
    margin-bottom: 36px;
  }
  .hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
  .btn-call {
    width: 225px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F4F4F4;
    color: #000; border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px; font-weight: 400;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 6px 10px rgba(127, 127, 127, 0.2);
    white-space: nowrap;
  }
  .btn-call:hover {
    transform: translateY(-3px);
    
  }
  .hero-image {
    position: absolute; right: 60px; bottom: 0;
    width: 380px;
    pointer-events: none;
  }
  .hero-avatar {
    width: 320px; height: 400px;
    background: linear-gradient(160deg, #7b2ff7 0%, #e94560 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 80px; color: white;
    overflow: hidden;
    position: relative;
  }
  .hero-avatar::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(15,12,41,0.6) 0%, transparent 50%);
  }
  .hero-stats {
    display: flex; gap: 40px;
    margin-top: 48px;
  }

    .avatar-container {
    position: relative;
    width: 450px;
    cursor: none;
  }

  .avatar-container img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
  }

  .robot {
  position: absolute;
  inset: 0;
  z-index: 1;
}

 
  .human {
    position: relative;
    z-index: 2;

    -webkit-mask-image: radial-gradient(
      circle 0px at 50% 50%,
      transparent 0,
      transparent 0,
      black 0
    );

    mask-image: radial-gradient(
      circle 0px at 50% 50%,
      transparent 0,
      transparent 0,
      black 0
    );

    transition: -webkit-mask-size 0.1s;
  }

.cursor {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 3;

  backdrop-filter: blur(0px);

  transition: opacity .3s;
}

  .avatar-container:hover .cursor {
    opacity: 1;
  }

  /* ── SECTION WRAPPER ── */
  section { padding-bottom: 80px; 
  max-width: 1000px;
    margin: auto;}
  .section-label {
    font-size: 12px; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
  }
  .section-title {
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
  }
  .section-subtitle {
    max-width: 560px;
    color: #000;
    font-size: 16px; line-height: 1.5;
    margin-bottom: 36px;
  }

  /* ── PORTFOLIO ── */
  .portfolio { 
    
  }
.cases-grid {
  display: grid;
  
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
 
 
  .case-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--light-bg);
    cursor: pointer;
    position: relative;
    transition: transform .3s, box-shadow .3s;
    box-shadow: var(--shadow);
  }
  .case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
  }
  .case-img {
    width: 100%; aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    position: relative;
  }
  .case-img-wrapper {
    position: relative;
    overflow: hidden;
  }
  /* Color placeholders mimicking real screenshots */
  .case-mock {
    width: 100%;  
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600;
    color: rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
  }
  .case-mock img{
    width: 100%;
    height: 100%;
    border-radius: 20px;
  }
 
 
  .case-overlay {
    position: absolute; inset: 0;
    background: rgba(15,12,41,0.75);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .25s;
    backdrop-filter: blur(2px);
  }
  .case-img-wrapper:hover .case-overlay { opacity: 1; }
  .case-overlay-label {
    color: white;
    font-size: 16px; font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: background 0.15s
  }
  .case-overlay-label:hover {
    background: rgba(255,255,255,0.3);
  }
  .case-info {
    padding: 20px;
  }
  .case-tag {
    display: inline-block;
    background: var(--tag-bg);
    color: var(--tag-color);
    font-size: 11px; font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }
  .case-title {
    font-size: 24px; font-weight: 600;
    color: var(--dark);
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .case-desc {
    font-size: 13px; color: var(--gray);
    line-height: 1.6;
  }

  /* Featured cases with gradient overlay */
  .case-card-wide {
    grid-column: span 2;
  }
  @media (max-width: 900px) {
    .case-card-wide { grid-column: span 1; }
  }

  /* ── SKILLS ── */
  .skills-section {  }
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(1, 100%));
    gap: 20px;
  }
  .skill-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
  }
  .skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }
  .skill-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
  }
  .skill-icon-purple { background: linear-gradient(135deg, #7b2ff7, #e94560); }
  .skill-icon-blue { background: linear-gradient(135deg, #0f3460, #7b2ff7); }
  .skill-icon-pink { background: linear-gradient(135deg, #e94560, #ff8e53); }
  .skill-card h3 {
    font-size: 22px; font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
  }
  .skill-card p {
    font-size: 16px; color: #000;
    line-height: 1.65;
  }
  .skill-tag{
    font-family: 'Jost';
    background-color: #D9D9D9;
    color: #000;
    font-size: 10px;
    padding: 3px 20px;
    border-radius: 50px;
  }
  .skill-date{
    color: #959595;
    font-size: 14px;
  }

  /* ── STACK TAGS ── */
  .stack-section { background: var(--white); }
  .stack-cloud {
    display: flex; flex-wrap: wrap; gap: 10px;
  }
  .stack-tag {
    background: var(--tag-bg);
    color: var(--tag-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px; font-weight: 600;
    border: 1.5px solid transparent;
    transition: background .2s, border-color .2s, transform .2s;
    cursor: default;
  }
  .stack-tag:hover {
    background: var(--tag-color);
    color: white;
    transform: scale(1.05);
  }

  /* ── TESTIMONIALS ── */
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  .testimonial-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform .2s, box-shadow .2s;
  }
  .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }
  .testimonial-card::before {
    content: '"';
    font-family: 'Montserrat', sans-serif;
    font-size: 80px; font-weight: 900;
    color: var(--light-gray);
    position: absolute; top: 10px; left: 20px;
    line-height: 1;
  }
  .testimonial-text {
    font-size: 14px; color: var(--gray);
    line-height: 1.7;
    position: relative; z-index: 1;
    margin-bottom: 20px;
    padding-top: 28px;
  }
  .testimonial-author {
    display: flex; align-items: center; gap: 12px;
  }
  .author-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: white;
    flex-shrink: 0;
  }
  .author-avatar-1 { background: linear-gradient(135deg, #7b2ff7, #e94560); } /* Пурпурно-розовый */
  .author-avatar-2 { background: linear-gradient(135deg, #0f3460, #7b2ff7); } /* Глубокий сине-фиолетовый */
  .author-avatar-3 { background: linear-gradient(135deg, #e94560, #ff8e53); } /* Ярко-коралловый */
  .author-avatar-4 { background: linear-gradient(135deg, #0f9b0f, #00ffd0); } /* Свежий зелено-бирюзовый */
  .author-avatar-5 { background: linear-gradient(135deg, #ff8c28, #e9c917); } /* Теплый медово-янтарный */
  .author-avatar-6 { background: linear-gradient(135deg, #00f2fe, #4facfe); } /* Насыщенный неоново-голубой */
  .author-info h4 { font-size: 14px; margin-bottom: 3px; font-weight: 700; color: var(--dark); }
  .author-info p { font-size: 12px; margin-bottom: 0; color: var(--gray); }

  /* ── ABOUT ── */
  .about-section{
    padding-bottom: 150px;
  }
  .about-section .section-title { color: black;}
  .about-section .section-subtitle { color: black; }
   
  .about-text {
    color: black;
    font-size: 16px !important; line-height: 1.8 !important;
    margin-bottom: 20px;
  }
  .about-devices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .device-card {
    background: rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    font-size: 32px;
    text-align: center;
  }
  .device-card p { color: rgba(255,255,255,0.5); font-size: 11px; margin-top: 8px; }

  /* ── FOOTER ── */
  footer {
    background: var(--dark);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 32px;
    font-size: 14px;
  }
  footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
  footer a:hover { color: var(--accent); }

  /* ── MODAL ── */
  .modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .25s;
    padding: 20px;
  }
  .modal-overlay.active { opacity: 1; pointer-events: all; }
  .my-modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 440px; width: 100%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    transform: translateY(24px) scale(0.97);
    transition: transform .3s;
    position: relative;
  }
  .modal-overlay.active .my-modal { transform: translateY(0) scale(1); }
  .modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px;
    border: none; background: var(--light-bg);
    border-radius: 50%; cursor: pointer;
    font-size: 18px; color: var(--gray);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
  }
  .modal-close:hover { background: var(--accent); color: white; }
  .my-modal h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px; font-weight: 900;
    color: var(--dark);
    margin-bottom: 8px;
  }
  .my-modal p.modal-sub {
    color: var(--gray); font-size: 14px;
    margin-bottom: 28px; line-height: 1.6;
  }
  .form-group { margin-bottom: 20px; }
  .form-group label {
    display: block;
    font-size: 13px; font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
  }
  .form-group input[type="tel"] {
    width: 100%;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 15px; font-family: inherit;
    color: var(--text);
    outline: none;
    transition: border-color .2s;
  }
  .form-group input[type="tel"]:focus { border-color: var(--accent); }
  .checkbox-group {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer;
    margin-bottom: 24px;
  }
  .checkbox-group input[type="checkbox"] {
    width: 18px; height: 18px;
    flex-shrink: 0; margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
  }
  .checkbox-label {
    font-size: 13px; color: var(--gray);
    line-height: 1.5;
  }
  .checkbox-label a { color: var(--accent); text-decoration: none; }
  .checkbox-label a:hover { text-decoration: underline; }
  .modal-error {
    color: red;
    font-size: 12px; margin-top: -16px; margin-bottom: 16px;
    display: none;
  }
  .modal-error.visible { display: block; }
  .modal-success {
    text-align: center; padding: 20px 0 0;
    display: none;
  }
  .modal-success.visible { display: block; }
  .success-icon {
    font-size: 48px; margin-bottom: 12px;
    display: block;
  }
  .modal-success h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px; font-weight: 900;
    color: var(--dark); margin-bottom: 8px;
  }
  .modal-success p { color: var(--gray); font-size: 14px; }

  /* ── COOKIE BANNER ── */
  #custom-cookie-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transform: translateX(0%) translateY(100px);
    width: 90%;
    max-width: 500px;
    background-color: #ffffff; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
    border-radius: 16px; 
    padding: 20px;
    z-index: 999999;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    box-sizing: border-box;
}

#custom-cookie-notice.cookie-notice-visible {
    transform: translateX(0%) translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 28px;
    line-height: 1;
}

.cookie-text {
    flex: 1;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #000000;
}

.cookie-text a {
    color: #6B46FF;  
    text-decoration: underline;
}

 
#cookie-accept-btn {
    background-color: #6B46FF;  
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

#cookie-accept-btn:hover {
    background-color: #4a2dbd;  
}

/* Адаптив под мобилки */
@media (max-width: 480px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    #cookie-accept-btn {
        width: 100%;
    }
}

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    header { padding: 0 20px; }
    header nav { display: none; }
    section { padding: 30px 20px; }
    .hero { padding: 80px 20px; }
    .hero-image { display: none; }
    .case-card-wide { grid-column: span 1; }
    .cookie-banner { padding: 16px 20px; }
    .hero-stats { gap: 24px; }
  }

  /* ── SCROLL ANIMATIONS ── */
  .fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
 
  .pictures{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    bottom: -110px;
    width: 100%;
  }

  .picture{
    width: 150px;
    height: 180px;
    background-color: #D9D9D9;
    border-radius: 10px;
    padding: 10px 10px 80px 10px;
    transform: translateX(-25%);
  }
  .picture img{
    width: 100%;
    height: 160px;
    border-radius: 7px;
    
  }
  .picture-1{rotate: 20deg;}
  .picture-2{rotate: -15deg;}
  .picture-3{rotate: -5deg; background-color: #000000 !important; padding: 20px 10px 10px 10px; height: 150px;}
  .picture-4{rotate: 10deg;}
  .picture-5{rotate: -10deg;}

  .picture-3 .social{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
  }

  h1.privacy{
    font-size: clamp(24px, 5vw, 38px);
    font-weight: 600;
    color: #000;
    line-height: 1.1;
    margin-bottom: 20px;
  }
  h2.privacy{
    font-size: clamp(16px, 2vw, 26px);
    font-weight: 300;
    color: #000;
    line-height: 1.1;
    margin-bottom: 20px;
  }
  p.privacy{
    font-size: clamp(14px, 2vw, 18px);
  }
  ul.privacy li{
    font-size: clamp(14px, 2vw, 18px);
    color: #000;
    line-height: 1.3;
    margin-bottom: 20px;
  }

.inst {
  font-family: "Dela Gothic One", sans-serif;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.6;
}
.tg {
  font-family: serif; 
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1.6;
}
.yt {
  font-family: "Cherry Bomb One", display;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.4;
}
.tt {
  font-family: "Grape Nuts", cursive;
  font-size: 22px;
  line-height: 1.4;
}

.inst, .tg, .yt, .tt {
  position: relative; 
  display: inline-block;
  cursor: pointer;
  color:#fff;
  text-decoration: none;
}


.inst::after, .tg::after, .yt::after, .tt::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1.5px; 
  background-color: currentColor; 
  
  transform: scaleX(0); 
  transform-origin: center; 
  transition: transform 0.3s ease-in-out;
}


.inst:hover::after,
.tg:hover::after,
.yt:hover::after,
.tt:hover::after {
  transform: scaleX(1);
}


@media (max-width: 768px) {
  .hero{
    display: block;
  }
  .hero-content{
    display: block;
  }
  .hero-btns{
    flex-wrap: nowrap;
  }
  .btn-call,
  .btn-primary {
    width: 50%;
  }
  .btn-primary-mobile{
    width: 45% !important;
  }
  .case-mock-2,
  .case-mock-3{
    height: unset;
  }
  .case-desc {
    font-size: 15px;
  }
  .picture img {
    width: 100%;
  }
  .pictures{
    bottom: -30px;
  }
  .picture{
    position: absolute;
    transform: translateX(-50%);
  }
  .picture-2{
    left: 20%;
  }
  .picture-3{
    left: 40%;
    z-index: 3;
  }
  .picture-4{
    left: 60%;
    z-index: 2;
  }
  .picture-5{
    left: 75%;
    z-index: 1;
  }
  .testimonial-text {
    font-size: 16px;
  }
}


/* Скрытие доп карточек портфолио */
.case-card.is-hidden {
  display: none !important;
}

.portfolio-more {
  text-align: center;
  margin-top: 40px;
}

.case-card.fade-in {
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   АДАПТИВНОСТЬ ПОРТФОЛИО
   ============================== */


.portfolio .section-title,
.portfolio .section-subtitle {
    max-width: 100%;
    overflow-wrap: break-word;
}

.portfolio .section-subtitle {
    line-height: 1.6;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
}

.case-card {
    min-width: 0;
    width: 100%;
}

.case-info {
    min-width: 0;
    overflow-wrap: break-word;
}

.case-title {
    line-height: 1.4;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.case-desc {
    line-height: 1.65;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.case-img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.case-img-wrapper img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.case-overlay {
    max-width: 100%;
}

.case-overlay-label {
    text-align: center;
    overflow-wrap: break-word;
}

.portfolio-more {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 35px;
}

#loadMoreBtn {
    max-width: 100%;
    cursor: pointer;
}

/* ==============================
   ПЛАНШЕТЫ: 768–1023 PX
   ============================== */

@media (min-width: 768px) and (max-width: 1023px) {

    .portfolio {
        padding-left: 30px;
        padding-right: 30px;
    }

    .portfolio .section-title {
        font-size: clamp(30px, 4vw, 42px);
    }

    .portfolio .section-subtitle {
        max-width: 650px;
        font-size: 15px;
    }

    .cases-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .case-info {
        padding: 20px;
    }

    .case-tag {
        font-size: 11px;
        line-height: 1.5;
    }

    .case-title {
        font-size: 19px;
        line-height: 1.4;
        margin-top: 10px;
        padding: 5px 10px;
    }

    .case-desc {
        font-size: 14px;
        line-height: 1.6;
        margin-top: 12px;
        padding: 5px 10px;
    }

    .portfolio-more {
        margin-top: 30px;
    }
}

/* ==============================
   ТЕЛЕФОНЫ: ДО 767 PX
   ============================== */

@media (max-width: 767px) {

    .portfolio {
        padding-left: 20px;
        padding-right: 20px;
    }

    .portfolio .section-title {
        font-size: clamp(28px, 7vw, 36px);
        line-height: 1.2;
        margin-bottom: 14px;
    }

    .portfolio .section-subtitle {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 28px;
    }

    .cases-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .case-card {
        width: 100%;
        min-width: 0;
    }

    .case-img-wrapper {
        border-radius: 10px;
    }

    .case-img-wrapper img {
        width: 100%;
        height: auto;
    }

    .case-info {
        padding: 18px 0 0;
    }

    .case-info .case-tag {
        display: inline-block;
        font-size: 10px;
        line-height: 1.5;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
    }

    .case-title {
        font-size: 20px;
        line-height: 1.4;
        margin-top: 4px;
        margin-bottom: 12px;
        padding: 5px 10px;
    }

    .case-desc {
        font-size: 14px;
        line-height: 1.7;
        padding: 5px 10px;
    }

    .case-desc strong {
        display: inline;
    }

    .portfolio-more {
        margin-top: 30px;
    }

    #loadMoreBtn {
        width: 100%;
        max-width: 360px;
        min-height: 48px;
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ==============================
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ: ДО 380 PX
   ============================== */

@media (max-width: 380px) {

    .portfolio {
        padding-left: 15px;
        padding-right: 15px;
    }

    .portfolio .section-title {
        font-size: 27px;
    }

    .portfolio .section-subtitle {
        font-size: 13px;
    }

    .cases-grid {
        gap: 24px;
    }

    .case-title {
        font-size: 18px;
    }

    .case-desc {
        font-size: 13px;
        line-height: 1.65;
    }

    .case-info {
        padding-top: 14px;
    }

    #loadMoreBtn {
        font-size: 14px;
        padding: 12px 15px;
    }
}

/* ==============================
   УСТРОЙСТВА С СЕНСОРНЫМ ЭКРАНОМ
   ============================== */

@media (hover: none) and (pointer: coarse) {

    .case-overlay {
        -webkit-tap-highlight-color: transparent;
    }

    #loadMoreBtn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* ==============================
   БЛОК ЭТАПЫ РАБОТЫ
   ============================== */
ol{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.step{display:grid;grid-template-columns:76px 1fr;align-items:start;gap:8px 18px;
  background:var(--card);border:1.5px solid var(--line);border-radius:18px;padding:22px 24px}
.num{font-size:44px;font-weight:800;line-height:1;letter-spacing:-.03em;padding-top:2px;}
.gradient-text {
    background: linear-gradient(
        135deg,
        #6B46FF 10.74%,
        #000000 97.3%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.step p{margin:0;color:var(--muted);font-size:16px;max-width:62ch}
.step p b{color:var(--ink);font-weight:600}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.chips li{background:var(--accent);color:var(--accent-ink);border-radius:999px;padding:6px 14px;font-size:14px;font-weight:600}
.cta{margin-top:40px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;
  background:var(--ink);color:var(--bg);border-radius:22px;padding-top: 28px;}
.cta strong{display:block;font-size:24px;line-height:1.2;font-weight:800;margin-bottom:4px}
.cta span{opacity:.75;font-size:16px}
.btn{display:inline-block;background:var(--accent);color:var(--accent-ink);text-decoration:none;font-weight:700;
  font-size:16px;padding:14px 26px;border-radius:999px;transition:transform .15s}
.btn:hover{transform:translateY(-2px)}
.btn:focus-visible{outline:3px solid var(--bg);outline-offset:3px}
.cta-site{
font-size: 22px; 
font-weight: 600;
    color: var(--dark);
    margin-bottom: 0px;
}
@media (max-width:560px){
  .wrap{padding:48px 16px 56px}
  .step{grid-template-columns:1fr;padding:18px}
  .num{font-size:36px}
  .cta{padding-top:22px; justify-content: center;}
  .cta .btn-primary{width: 225px;}
  .cta-site{ text-align: center;}
}


.step.skill-card {
  --hv: #6B46FF; /* замените на ваш фиолетовый */
  transition: background-color .5s ease, box-shadow .5s ease, border-color .5s ease !important;
}

.step.skill-card h3,
.step.skill-card p,
.step.skill-card b,
.step.skill-card .stack-tag,
.step.skill-card .num {
  transition: color .1s ease, border-color .1s ease, -webkit-text-fill-color .1s ease;
}

@media (hover: hover) {
  .step.skill-card:hover {
    background-color: color-mix(in srgb, var(--hv) 8%, transparent);
    box-shadow: inset 0 0 0 1.5px var(--hv), 0 0 0 1.5px var(--hv);
  }

  .step.skill-card:hover h3,
  .step.skill-card:hover p,
  .step.skill-card:hover b,
  .step.skill-card:hover .stack-tag {
    
    border-color: var(--hv);
    border-width: 2px;
  }

 
}