@charset "UTF-8";

:root {
  --bg-page: #f3e6ea;
  --bg-light: #f3e6ea;
  --bg-blue: #4e63ff;
  --bg-blue-deep: #3346e8;
  --bg-blue-darker: #2d35b8;
  --bg-card: #ffffff;
  --bg-card-soft: #edf2ff;
  --bg-green: #d9ffb8;
  --bg-green-2: #c9f7b2;
  --bg-input: #fff8f8;

  --text-dark: #1e1b3a;
  --text-body: #2e2c49;
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.78);

  --accent-blue: #5871ff;
  --accent-purple: #7a61ff;
  --accent-pink: #ff5ac8;
  --accent-green: #c8ff91;
  --accent-green-strong: #b7f77f;

  --border-soft: rgba(27, 38, 120, 0.08);
  --border-light: rgba(255, 255, 255, 0.18);

  --shadow-soft: 0 12px 30px rgba(37, 43, 120, 0.1);
  --shadow-md: 0 18px 40px rgba(32, 39, 116, 0.14);
  --shadow-lg: 0 24px 60px rgba(23, 31, 108, 0.18);
  --shadow-hover: 0 28px 70px rgba(28, 35, 113, 0.24);

  --radius-xs: 12px;
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 42px;

  --container: 1180px;

  --hero-gradient: linear-gradient(135deg, #2f35c8 0%, #4f5dff 38%, #755dff 62%, #ff5ac8 100%);
  --section-gradient: linear-gradient(135deg, #4157ff 0%, #3951f0 40%, #4b5fff 100%);
  --chip-gradient: linear-gradient(135deg, #d4ffad 0%, #baf58b 100%);

  --font-main: "Poppins", "Inter", "Segoe UI", sans-serif;
  --font-display: "Helvetica Now Display", "Helvetica Now Text", "Helvetica Neue", "Arial", sans-serif;
  --font-mono: "Monoist", "IBM Plex Mono", "SFMono-Regular", "Consolas", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg-page);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.28s ease;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

main {
  overflow: hidden;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
}

.section--light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section--blue {
  background: var(--section-gradient);
  color: var(--text-light);
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: inherit;
}

.section-title .highlight {
  display: inline-block;
  background: var(--chip-gradient);
  color: var(--text-dark);
  padding: 0.02em 0.18em 0.08em;
  border-radius: 999px;
  line-height: 0.95;
}

.section-subtitle {
  max-width: 720px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.92;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow--light {
  background: rgba(76, 92, 255, 0.1);
  color: var(--accent-blue);
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  padding: 0;
  background: linear-gradient(180deg, #3b3ee7 0%, #3f40e7 100%);
  color: var(--text-light);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 30px;
  filter: blur(0.2px);
  opacity: 1;
}

.hero::before {
  inset: 0;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.05), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.04), transparent 20%);
  border-radius: 0;
}

.hero::after {
  display: none;
}

.hero__frame {
  position: relative;
  z-index: 2;
  width: min(100%, 1440px);
  height: 100svh;
  margin: 0 auto;
  padding: 82px 76px 34px;
  display: flex;
  flex-direction: column;
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  padding-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  column-gap: 32px;
  align-items: center;
}

.hero__topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 56px;
  padding-top: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  width: 60px;
  height: 45px;
  object-fit: contain;
}

.brand__name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__utility {
  display: flex;
  align-items: center;
  gap: 22px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.socials__item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  color: var(--text-light);
  min-width: 27px;
}

.socials__icon {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  line-height: 1;
}

.socials__label {
  font-family: var(--font-mono);
  font-size: 5.3px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.socials__item:hover {
  transform: translateY(-2px);
}

.lang-switch {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  padding: 0;
  color: var(--text-light);
  transition: transform 0.25s ease;
}

.lang-switch:hover {
  transform: translateY(-2px);
}

.lang-switch__flag {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 17px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 10px 20px rgba(22, 28, 94, 0.22);
}

.lang-switch__label {
  font-family: var(--font-mono);
  font-size: 5.3px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__content {
  max-width: 598px;
  padding-top: 0;
  margin-top: -72px;
  position: relative;
  z-index: 2;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(58px, 5.2vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.hero__title .line {
  display: block;
}

.hero__wave {
  display: inline-block;
  margin: 0 8px 0 4px;
}

.hero__text {
  max-width: 598px;
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-size: 16.8px;
  line-height: 1.56;
  color: rgba(255, 255, 255, 0.98);
  text-align: justify;
  text-justify: inter-word;
}

.hero__text--strong {
  margin-top: 30px;
  font-weight: 700;
  text-align: left;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 213px;
  min-height: 57px;
  margin-top: 24px;
  padding: 0 28px;
  border-radius: 999px;
  background: #c5ffbc;
  color: #393be7;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 16px 36px rgba(28, 35, 113, 0.24);
}

.hero__cta:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 24px 48px rgba(28, 35, 113, 0.3);
  background: #d7ffc8;
}

.hero__visual {
  position: relative;
  justify-self: end;
  align-self: center;
  width: 100%;
  max-width: 820px;
  height: min(760px, calc(100svh - 150px));
  min-height: 660px;
  overflow: visible;
  z-index: 1;
  margin-top: -18px;
}

.hero__portrait {
  position: absolute;
  z-index: 2;
  right: -68px;
  bottom: 72px;
  width: 1180px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(17, 17, 60, 0.14));
}

.why {
  background: var(--bg-light);
}

.why__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.why__titleWrap {
  position: sticky;
  top: 24px;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-card {
  position: relative;
  background: transparent;
  padding: 0 0 0 52px;
}

.feature-card::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5b70ff, #3851f0);
  box-shadow: 0 6px 14px rgba(67, 86, 240, 0.24);
}

.feature-card::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 35px;
  width: 2px;
  bottom: -12px;
  background: linear-gradient(to bottom, rgba(80, 97, 255, 0.55), rgba(80, 97, 255, 0));
}

.feature-card:last-child::after {
  display: none;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
}

.feature-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--text-body);
}

.workflow {
  background: #393be7;
  color: var(--text-light);
  padding: 42px 0 54px;
}

.workflow .section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.15vw, 71.9px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: #ffffff;
}

.workflow__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px;
  margin-top: 30px;
  align-items: start;
}

.workflow-card {
  width: 100%;
}

.workflow-card__media {
  aspect-ratio: 1.58 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 32px rgba(20, 28, 112, 0.18);
}

.workflow-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.workflow-card__title {
  margin: 22px 0 10px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.workflow-card__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.9);
}

.skills {
  background: var(--bg-light);
}

.skills .section-subtitle {
  max-width: none;
  white-space: nowrap;
}

.skills__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  margin-top: 28px;
}

.skills-panel {
  padding: 0;
}

.skills-panel__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.skills-panel__head::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: rgba(53, 44, 48, 0.12);
}

.skills-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  line-height: 1;
}

.skills-list {
  display: grid;
  gap: 14px;
}

.skills-list--dev {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.skills-list--ai {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.dev-skill-card {
  min-height: 172px;
  padding: 16px 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(27, 38, 120, 0.04);
  box-shadow: none;
  transition: transform 0.26s ease, background 0.26s ease, border-color 0.26s ease;
}

.dev-skill-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(49, 61, 160, 0.1);
}

.dev-skill-card--bordered {
  border-color: rgba(27, 38, 120, 0.16);
}

.dev-skill-card__top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.dev-skill-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dev-skill-card__icon--blue {
  background: #3355ff;
  color: #f6f7ff;
}

.dev-skill-card__icon--mint {
  background: #aef0aa;
  color: #205937;
}

.dev-skill-card__icon--dark {
  background: #352c30;
  color: #fdf7f9;
}

.dev-skill-card__icon--pink {
  background: #ff9ebe;
  color: #7e1d46;
}

.dev-skill-card__icon--green {
  background: #2f7e46;
  color: #f5fff6;
}

.dev-skill-card__title {
  margin: 0 0 8px;
  font-family: var(--font-main);
  font-size: 1.05rem;
  line-height: 1.12;
  font-weight: 700;
  color: var(--text-dark);
}

.dev-skill-card__text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(53, 44, 48, 0.72);
}

.ai-skill-card {
  position: relative;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(27, 38, 120, 0.04);
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  transition: transform 0.26s ease, background 0.26s ease, border-color 0.26s ease;
}

.ai-skill-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(49, 61, 160, 0.1);
}

.ai-skill-card--hero,
.ai-skill-card--feature {
  min-height: 204px;
}

.ai-skill-card--hero {
  grid-column: span 6;
  background: linear-gradient(135deg, #3550e5 0%, #3952dd 100%);
  color: #f8f8ff;
}

.ai-skill-card--hero:hover {
  background: linear-gradient(135deg, #2f48dd 0%, #3450df 100%);
}

.ai-skill-card--feature {
  grid-column: span 6;
  background: linear-gradient(135deg, #bff4b4 0%, #b1efaa 100%);
  color: #205937;
}

.ai-skill-card--feature:hover {
  background: linear-gradient(135deg, #b4efaa 0%, #a8e79f 100%);
}

.ai-skill-card--medium {
  grid-column: span 4;
  min-height: 128px;
}

.ai-skill-card--small {
  grid-column: span 4;
  min-height: 118px;
}

.ai-skill-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: #f4eaf0;
  color: #3750de;
}

.ai-skill-card--hero .ai-skill-card__icon {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.ai-skill-card--feature .ai-skill-card__icon {
  background: rgba(255, 255, 255, 0.42);
  color: #205937;
}

.ai-skill-card__ghost {
  position: absolute;
  right: 18px;
  bottom: -10px;
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.ai-skill-card__title {
  margin: 14px 0 8px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.14;
  color: inherit;
}

.ai-skill-card--hero .ai-skill-card__title,
.ai-skill-card--feature .ai-skill-card__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 0.98;
  margin-top: 18px;
}

.ai-skill-card__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(53, 44, 48, 0.72);
}

.ai-skill-card--hero .ai-skill-card__text {
  max-width: 270px;
  color: rgba(255, 255, 255, 0.82);
}

.ai-skill-card--feature .ai-skill-card__text {
  max-width: 300px;
  color: rgba(32, 89, 55, 0.84);
}

.ai-skill-card--small .ai-skill-card__title {
  margin: 12px 0 6px;
  font-size: 0.96rem;
}

.ai-skill-card--small .ai-skill-card__text {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
}

.projects {
  background: var(--section-gradient);
  color: var(--text-light);
}

.projects .section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(50px, 5vw, 70px);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.projects .section-subtitle {
  max-width: none;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.45;
  white-space: nowrap;
}

.projects__grid {
  width: 100%;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  max-width: none;
  padding: 10px 10px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(23, 31, 108, 0.12);
  transition: transform 0.32s ease, box-shadow 0.32s ease, background 0.32s ease;
  overflow: hidden;
  margin: 0;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: auto -28px -32px auto;
  width: 130px;
  height: 130px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  transform: rotate(-15deg);
}

.project-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-hover);
}

.project-card__media {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: block;
  aspect-ratio: 2.08 / 1;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__media img {
  transform: scale(1.05);
}

.project-card__media--static img {
  transform: none !important;
}

.project-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-card__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-light);
  text-transform: uppercase;
}

.project-card__byline {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.74);
}

.project-card__meta {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-card__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.46;
  color: rgba(255, 255, 255, 0.84);
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.project-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
}

.project-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bg-green);
  color: #393be7;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(28, 35, 113, 0.18);
  transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
}

.project-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(28, 35, 113, 0.26);
}

.project-action--disabled {
  background: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.76);
  box-shadow: none;
  opacity: 1;
  cursor: default;
  pointer-events: none;
}

.projects-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 30px;
  text-align: center;
}

.projects-more p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.cv {
  background: var(--bg-light);
}

.cv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.cv-header {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.cv-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cv-panel {
  border-radius: 22px;
  padding: 32px 28px;
  border: 1px solid rgba(49, 61, 160, 0.05);
  box-shadow: 0 20px 40px rgba(53, 44, 48, 0.06);
}

.cv-panel--experience,
.cv-panel--languages {
  background: rgba(255, 255, 255, 0.24);
}

.cv-panel--education {
  background: linear-gradient(180deg, #b7efb0 0%, #b2eeab 100%);
}

.cv-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.cv-panel__icon {
  font-size: 1.35rem;
  color: #4961f2;
}

.cv-panel--education .cv-panel__icon {
  color: #255c37;
}

.cv-panel__title {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(1.65rem, 2.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--text-dark);
}

.cv-timeline {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.cv-timeline__item {
  position: relative;
  padding-left: 34px;
}

.cv-timeline__item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: -24px;
  width: 2px;
  background: rgba(76, 92, 255, 0.22);
}

.cv-timeline__item:last-child::before {
  display: none;
}

.cv-timeline__marker {
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #4e63ff;
  box-shadow: 0 0 0 5px rgba(78, 99, 255, 0.08);
}

.cv-timeline__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.cv-timeline__role {
  margin: 0;
  font-family: var(--font-main);
  font-size: 1.02rem;
  line-height: 1.18;
  font-weight: 700;
  color: var(--text-dark);
}

.cv-timeline__date {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #4e63ff;
}

.cv-timeline__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-body);
}

.cv-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.cv-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(76, 92, 255, 0.16);
  color: #5064e8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.cv-education__item + .cv-education__item {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(37, 104, 56, 0.14);
}

.cv-education__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(32, 89, 55, 0.82);
}

.cv-education__title {
  margin: 8px 0 8px;
  font-family: var(--font-main);
  font-size: 1.05rem;
  line-height: 1.18;
  font-weight: 700;
  color: #205937;
}

.cv-education__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(32, 89, 55, 0.78);
}

.cv-certifications {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cv-certifications li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: #205937;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  width: fit-content;
}

.cv-languages {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cv-language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cv-language__name {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.cv-language__level {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(76, 92, 255, 0.12);
  color: #6170e3;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.contact {
  background: var(--section-gradient);
  color: var(--text-light);
}

.contact-header {
  margin-bottom: 28px;
}

.contact-header__title {
  margin-bottom: 12px;
}

.contact-header__text {
  max-width: 640px;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  align-items: start;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card {
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: 0 20px 40px rgba(53, 44, 48, 0.06);
  border: 1px solid rgba(49, 61, 160, 0.04);
}

.contact-card--accent {
  min-height: 180px;
  background: linear-gradient(135deg, #baf3b4 0%, #a7eec6 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.contact-card--accent::before {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(78, 99, 255, 0.18);
  filter: blur(18px);
}

.contact-card--info {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.contact-card__label,
.contact-detail__label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
}

.contact-card__label--accent {
  color: #b41340;
}

.contact-card__title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 280px;
  font-family: var(--font-main);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text-dark);
}

.contact-detail + .contact-detail {
  margin-top: 18px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-detail__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  color: #4861ee;
  flex-shrink: 0;
}

.contact-detail__value {
  margin: 0;
  font-family: var(--font-main);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--text-light);
}

.contact-follow {
  margin-top: 26px;
}

.contact-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.contact-socials a {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #3d4df0;
  box-shadow: 0 12px 24px rgba(53, 44, 48, 0.06);
}

.contact-socials a:hover {
  transform: translateY(-4px) scale(1.02);
}

.contact-form {
  background: #fff;
  color: var(--text-dark);
  border-radius: 22px;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 40px rgba(53, 44, 48, 0.06);
}

.contact-form label {
  display: block;
}

.form-label {
  display: block;
  margin: 0 0 9px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(53, 44, 48, 0.58);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 18px;
}

.form-grid label:nth-child(3),
.form-grid label:nth-child(4) {
  grid-column: 1 / -1;
}

.form-control {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: #fcedf2;
  padding: 0 18px;
  color: var(--text-dark);
  outline: none;
  transition: box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

textarea.form-control {
  min-height: 126px;
  border-radius: 14px;
  padding: 16px 18px;
  resize: vertical;
}

.form-control::placeholder {
  color: #b0a1a8;
}

.form-control:focus {
  background: #fff8fa;
  box-shadow: 0 0 0 4px rgba(79, 93, 255, 0.1);
  transform: translateY(-1px);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #66627d;
  margin-top: 14px;
}

.form-check input {
  margin-top: 3px;
  accent-color: #3951f0;
}

.form-check a {
  color: var(--accent-blue);
  font-weight: 700;
  text-decoration: underline;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  background: linear-gradient(135deg, #3550e5 0%, #4361ee 100%);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 28px rgba(53, 80, 229, 0.2);
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
  margin-top: 14px;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(53, 80, 229, 0.24);
  filter: brightness(1.01);
}

.btn-submit__icon {
  font-size: 1rem;
  line-height: 1;
}

.contact-form__note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #66627d;
}

.footer-cta {
  position: relative;
  background: var(--bg-page);
  color: #4659ee;
  overflow: hidden;
  padding-top: 18px;
  padding-bottom: 0;
}

.footer-cta .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 56px 0 0;
}

.footer-cta__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(620px, 0.98fr) minmax(0, 1.02fr);
  gap: 8px;
  align-items: end;
  min-height: 0;
}

.footer-cta__imageWrap {
  position: relative;
  min-height: 620px;
  background: url("assets/img/foto finale.png") left bottom / auto 100% no-repeat;
  overflow: hidden;
}

.footer-cta__content {
  min-height: 620px;
  padding: 38px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-left: -186px;
  width: calc(100% + 186px);
}

.footer-cta__title {
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: clamp(3.6rem, 5.6vw, 6.1rem);
  line-height: 0.84;
  letter-spacing: -0.06em;
  font-weight: 700;
  color: #4659ee;
}

.footer-cta__line {
  display: block;
}

.footer-cta__line--nowrap {
  white-space: nowrap;
}

.footer-cta__text {
  margin: 0;
  max-width: 700px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #4957ea;
}

.footer-cta__text--body {
  text-transform: none;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.footer-inline-cta {
  display: inline-block;
  min-height: 0;
  padding: 6px 16px 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--bg-green);
  color: #4453ea;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: baseline;
  white-space: nowrap;
}

.footer-inline-cta:hover {
  transform: translateY(-2px);
  background: #d2ffb1;
}

.footer-cta__socialBlock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
}

.footer-cta__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  transform: translateY(-20px);
}

.footer-cta__brandLogo {
  width: 38px;
  height: auto;
}

.footer-cta__brandName {
  color: #5360eb;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-cta__socialText {
  margin: 18px 0 0;
  max-width: none;
}

.footer-cta__socials {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-cta__socialLink {
  min-width: 27px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #4c5df2;
  box-shadow: none;
}

.footer-cta__socialLink:hover {
  transform: translateY(-2px);
}

.footer-cta__socialLink .socials__icon {
  color: #4c5df2;
}

.footer-cta__socialLink .socials__label {
  color: #4c5df2;
  font-size: 5.3px;
}

.footer-cta__legal {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  align-self: flex-end;
  justify-content: flex-end;
}

.footer-cta__legalLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #4c5df2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(19, 27, 106, 0.12);
  cursor: pointer;
}

.footer-cta__legalLink:hover {
  transform: translateY(-2px);
}

.footer-copy {
  margin: 8px 0 12px;
  align-self: flex-end;
  text-align: right;
  color: #5a67ec;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-cta__bottomline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.policy-modal[hidden] {
  display: none;
}

.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
}

.policy-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 24, 62, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.policy-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 760px);
  max-height: min(88vh, 820px);
  margin: 6vh auto 0;
  padding: 28px 24px 24px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(21, 27, 88, 0.22);
  overflow: auto;
}

.policy-modal__close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: #f4eff6;
  color: #4659ee;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.policy-modal__title {
  margin: 0 0 18px;
  padding-right: 56px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--text-dark);
}

.policy-content {
  display: grid;
  gap: 14px;
}

.policy-content__sectionTitle {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-dark);
}

.policy-content__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.72;
  color: #5f5967;
}

body.is-policy-open {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.7s ease forwards;
}

.reveal-delay-1 {
  animation-delay: 0.08s;
}

.reveal-delay-2 {
  animation-delay: 0.16s;
}

.reveal-delay-3 {
  animation-delay: 0.24s;
}

.reveal-delay-4 {
  animation-delay: 0.32s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-shape {
  position: absolute;
  border-radius: 28px;
  pointer-events: none;
  z-index: 0;
}

.floating-shape--blue {
  background: linear-gradient(135deg, rgba(121, 171, 255, 0.35), rgba(121, 171, 255, 0.1));
}

.floating-shape--pink {
  background: linear-gradient(135deg, rgba(255, 90, 200, 0.24), rgba(255, 90, 200, 0.08));
}

.floating-shape--green {
  background: linear-gradient(135deg, rgba(201, 247, 178, 0.42), rgba(201, 247, 178, 0.1));
}

.hp-field {
  display: none !important;
}

.u-section {
  padding: 64px 0;
  background: var(--bg-page);
}

.u-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.u-header {
  margin-bottom: 20px;
}

.u-title {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--text-dark);
}

.u-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #66627d;
}

.u-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(49, 61, 160, 0.06);
}

.u-card__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-dark);
}

.u-card__text {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
}

.u-card__text:last-child {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .hero {
    height: auto;
    min-height: 0;
  }

  .why__grid,
  .contact__grid,
  .footer-cta__grid {
    grid-template-columns: 1fr;
  }

  .projects__grid,
  .skills__grid {
    grid-template-columns: 1fr;
  }

  .cv-layout {
    grid-template-columns: 1fr;
  }

  .why__titleWrap {
    position: static;
    top: auto;
  }

  .cv-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-list--dev {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .skills-list--ai {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .ai-skill-card--hero,
  .ai-skill-card--feature {
    grid-column: span 3;
  }

  .ai-skill-card--medium {
    grid-column: span 2;
  }

  .ai-skill-card--small {
    grid-column: span 2;
  }

  .projects .section-subtitle {
    white-space: normal;
  }

  .projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow__cards {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero__frame {
    height: auto;
    min-height: 100svh;
    padding: 48px 34px 44px;
  }

  .hero__topbar {
    width: 100%;
    justify-content: space-between;
    gap: 24px;
  }

  .hero__inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 42px;
  }

  .hero__visual {
    width: min(100%, 640px);
    height: 620px;
    min-height: 620px;
    margin: 0 auto;
    margin-top: 0;
  }

  .hero__portrait {
    right: -94px;
    bottom: 30px;
    width: 980px;
  }

  .footer-cta .container {
    width: min(100% - 36px, var(--container));
    max-width: none;
    margin: 0 auto;
    padding: 0;
  }

  .footer-cta__content {
    min-height: auto;
    width: 100%;
    margin-left: 0;
    padding: 0;
  }

  .footer-cta__imageWrap {
    min-height: 520px;
    background-position: left bottom;
    background-size: contain;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 56px 0;
  }

  .hero__topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .hero__utility {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
  }

  .hero__inner {
    min-height: auto;
    gap: 24px;
    padding-top: 38px;
  }

  .hero__content {
    padding-top: 0;
    margin-top: -34px;
    max-width: none;
  }

  .hero__title {
    font-size: clamp(46px, 12vw, 64px);
  }

  .hero__text {
    margin-top: 22px;
    font-size: 15.6px;
    line-height: 1.52;
    text-align: left;
  }

  .hero__text--strong {
    margin-top: 22px;
  }

  .hero__cta {
    width: min(100%, 236px);
  }

  .skills-panel__title {
    font-size: clamp(20px, 6vw, 28px);
  }

  .skills .section-subtitle {
    white-space: normal;
  }

  .cv-side {
    grid-template-columns: 1fr;
  }

  .cv-panel {
    padding: 24px 20px;
  }

  .cv-timeline__top {
    flex-direction: column;
    gap: 6px;
  }

  .contact-header__text {
    max-width: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid label:nth-child(3),
  .form-grid label:nth-child(4) {
    grid-column: auto;
  }

  .skills-list--dev {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-list--ai {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-skill-card--hero,
  .ai-skill-card--feature,
  .ai-skill-card--medium,
  .ai-skill-card--small {
    grid-column: auto;
  }

  .ai-skill-card--hero,
  .ai-skill-card--feature {
    min-height: 180px;
  }

  .projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects .section-title {
    font-size: clamp(42px, 10vw, 58px);
  }

  .projects .section-subtitle {
    font-size: 14px;
  }

  .project-actions {
    gap: 8px;
  }

  .workflow .section-title {
    font-size: clamp(44px, 10vw, 58px);
  }

  .workflow__cards {
    gap: 24px;
    margin-top: 24px;
  }

  .hero__utility {
    flex-wrap: wrap;
  }

  .hero__visual {
    width: min(100%, 520px);
    height: 500px;
    min-height: 500px;
  }

  .hero__portrait {
    width: 780px;
    right: -96px;
    bottom: 10px;
  }

  .footer-cta__content {
    gap: 16px;
    min-height: auto;
    padding: 0;
    margin-left: 0;
    width: 100%;
  }

  .footer-cta__line--nowrap {
    white-space: normal;
  }

  .footer-cta__imageWrap {
    min-height: 380px;
    background-position: left bottom;
    background-size: contain;
  }

  .footer-cta .container {
    width: min(100% - 32px, var(--container));
    max-width: none;
    margin: 0 auto;
    padding: 0;
  }

  .footer-copy {
    align-self: flex-start;
    text-align: left;
    margin-top: 6px;
  }

  .footer-cta__bottomline {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 720px) {
  .footer-cta__socialBlock {
    width: 100%;
    align-items: center;
  }

  .footer-cta__socialText {
    width: 100%;
    text-align: center;
  }

  .footer-cta__socials {
    width: 100%;
    justify-content: center;
  }

  .footer-cta__legal {
    width: 100%;
    align-self: center;
    justify-content: center;
  }

  .footer-cta__bottomline {
    align-items: center;
    gap: 14px;
  }

  .footer-cta__brand {
    align-self: center;
    justify-content: center;
    transform: translateY(0);
  }

  .footer-copy {
    align-self: center;
    text-align: center;
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  .hero {
    height: auto;
    min-height: 0;
  }

  .container,
  .u-inner {
    width: min(100% - 22px, var(--container));
  }

  .section-title {
    font-size: clamp(2rem, 12vw, 3.3rem);
  }

  .hero__frame {
    padding: 24px 16px 0;
    height: auto;
    min-height: 0;
  }

  .hero__content {
    margin-top: 0;
  }

  .brand {
    gap: 10px;
  }

  .brand__logo {
    width: 52px;
    height: 39px;
  }

  .brand__name {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .hero__visual {
    width: 100vw;
    height: auto;
    min-height: 0;
    margin: 26px calc(50% - 50vw) 0;
    overflow: visible;
    display: block;
  }

  .hero__visual picture {
    display: block;
    width: 100%;
  }

  .hero__portrait {
    position: static;
    width: 100%;
    height: auto;
    max-width: none;
    transform: none;
    display: block;
  }

  .socials {
    gap: 12px;
    flex-wrap: wrap;
  }

  .socials__item {
    min-width: 48px;
  }

  .socials__label,
  .lang-switch__label {
    font-size: 6.8px;
  }

  .skills-panel,
  .contact-form,
  .project-card,
  .u-card {
    border-radius: 18px;
  }

  .dev-skill-card,
  .ai-skill-card {
    padding: 14px;
    border-radius: 14px;
  }

  .dev-skill-card {
    min-height: 0;
    padding: 12px 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 8px;
  }

  .dev-skill-card__top {
    margin-bottom: 0;
  }

  .dev-skill-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.66rem;
  }

  .dev-skill-card__title {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .dev-skill-card__text {
    display: none;
  }

  .skills-list--dev {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .skills-list--ai {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .ai-skill-card--hero,
  .ai-skill-card--feature {
    min-height: 160px;
  }

  .skills-list--ai > .ai-skill-card:nth-child(-n+3) {
    grid-column: 1 / -1;
  }

  .skills-list--ai > .ai-skill-card:nth-child(n+4) {
    min-height: 0;
    padding: 12px 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 8px;
  }

  .skills-list--ai > .ai-skill-card:nth-child(n+4) .ai-skill-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.66rem;
  }

  .skills-list--ai > .ai-skill-card:nth-child(n+4) .ai-skill-card__title {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .skills-list--ai > .ai-skill-card:nth-child(n+4) .ai-skill-card__text,
  .skills-list--ai > .ai-skill-card:nth-child(n+4) .ai-skill-card__ghost {
    display: none;
  }

  .ai-skill-card__ghost {
    font-size: 3.9rem;
    right: 14px;
  }

  .workflow .section-title {
    font-size: clamp(40px, 13vw, 48px);
  }

  .projects .section-title {
    font-size: clamp(38px, 13vw, 46px);
  }

  .projects .section-subtitle {
    font-size: 13px;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .project-card__title {
    font-size: 1.05rem;
  }

  .project-action {
    width: 100%;
  }

  .workflow {
    padding: 36px 0 42px;
  }

  .workflow__cards {
    gap: 22px;
    margin-top: 18px;
  }

  .workflow-card__title {
    font-size: 15px;
  }

  .workflow-card__text {
    font-size: 14px;
  }

  .contact-form {
    padding: 18px 16px;
  }

  .contact__grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-side {
    display: contents;
  }

  .contact-card--accent {
    order: 1;
  }

  .contact-formWrap {
    order: 2;
  }

  .contact-card--info {
    order: 3;
  }

  .form-control {
    min-height: 48px;
  }

  textarea.form-control {
    min-height: 120px;
  }

  .footer-cta__title {
    font-size: clamp(2rem, 12vw, 3.3rem);
  }

  .hero__cta {
    width: 100%;
  }

  .why {
    position: relative;
    z-index: 3;
    margin-top: clamp(-104px, -18vw, -72px);
    padding-top: 56px;
  }

  .footer-copy {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .footer-cta__imageWrap {
    min-height: clamp(455px, 116vw, 565px);
    margin-inline: calc(50% - 50vw) 0;
    background-image: url("assets/img/foto-finale-mobile.png");
    background-position: left top;
    background-size: auto 108%;
    background-repeat: no-repeat;
  }

  .footer-cta__content {
    margin-left: 0;
    width: 100%;
  }

  .footer-cta__line--nowrap {
    white-space: normal;
  }

  .footer-inline-cta {
    margin-left: 4px;
  }

  .footer-cta__legal {
    width: 100%;
    gap: 10px;
  }

  .footer-cta__legalLink {
    width: 100%;
  }

  .footer-cta__socials {
    gap: 16px;
  }

  .footer-copy {
    align-self: center;
    text-align: center;
  }
}
