/* GG Technology Portfolio — styles */

:root {
  --color-bg: #0f172a;
  --color-bg-alt: #1e293b;
  --color-surface: #ffffff;
  --color-surface-alt: #f8fafc;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-light: #dbeafe;
  --color-border: #e2e8f0;
  --color-hero-gradient: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e3a5f 50%,
    #0f172a 100%
  );

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.12);
  --transition: 0.2s ease;
  --header-height: 72px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.9;
}

.logo__image {
  display: block;
  width: auto;
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav__link:hover {
  color: var(--color-accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.lang-toggle__btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  transition:
    color var(--transition),
    background var(--transition);
}

.lang-toggle__btn:hover {
  color: var(--color-accent);
}

.lang-toggle__btn--active {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.lang-toggle__sep {
  color: var(--color-border);
  user-select: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  background: var(--color-hero-gradient);
  color: white;
  padding: 80px 0 96px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__title span {
  display: block;
}

.hero__name {
  color: var(--color-accent-light);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-top: 10px;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.hero-phones {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 380px;
  margin: 0 auto;
}

.hero-phones .phone-frame {
  position: absolute;
  width: 180px;
}

.hero-phones .phone-frame--back {
  top: 24px;
  left: 0;
  transform: rotate(-8deg);
  opacity: 0.85;
  z-index: 1;
}

.hero-phones .phone-frame--mid {
  top: 8px;
  right: 20px;
  transform: rotate(6deg);
  z-index: 2;
}

.hero-phones .phone-frame--front {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  z-index: 3;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.hero__stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.hero__stats-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(147, 197, 253, 0.25);
}

.hero__stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.hero-stat {
  flex: 1;
  text-align: center;
  padding: 0 8px;
}

.hero-stat__value {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.hero-stat__star {
  font-size: 0.875rem;
  color: #fbbf24;
  margin-left: 2px;
}

.hero-stat__label {
  display: block;
  font-size: 0.6875rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

.hero-stat__sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: white;
}

.btn--outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

.section .btn--outline {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.section .btn--outline:hover {
  background: var(--color-accent-light);
  color: var(--color-accent-hover);
  border-color: var(--color-accent);
}

.btn--large {
  padding: 16px 32px;
  font-size: 1rem;
}

/* Sections */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--color-border);
}

.hero + .section {
  border-top-color: rgba(226, 232, 240, 0.35);
}

.section--featured {
  background: var(--color-surface-alt);
  padding: 80px 0;
}

.section--services {
  background: var(--color-surface-alt);
}

.section--about {
  background: white;
}

.section--contact {
  background: var(--color-bg);
  color: white;
  padding: 80px 0;
  border-top-color: rgba(15, 23, 42, 0.1);
}

.section--contact .section__title,
.section--contact .section__subtitle {
  color: white;
}

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

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 32px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    box-shadow var(--transition),
    transform var(--transition),
    border-color var(--transition);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #60a5fa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    var(--color-accent-light) 0%,
    #eff6ff 100%
  );
  margin-bottom: 20px;
  transition:
    background var(--transition),
    transform var(--transition);
}

.service-card:hover .service-card__icon-wrap {
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-hover) 100%
  );
  transform: scale(1.05);
}

.service-card__icon {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
  transition: color var(--transition);
}

.service-card:hover .service-card__icon {
  color: white;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text);
  line-height: 1.3;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

/* Device frames */
.phone-frame {
  background: #1a1a2e;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.phone-frame__notch {
  width: 60px;
  height: 6px;
  background: #2d2d44;
  border-radius: 3px;
  margin: 0 auto 8px;
}

.phone-frame__screen {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
}

.phone-frame__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top;
}

.phone-frame--card {
  max-width: 128px;
  margin: 0 auto;
}

.project-card .phone-frame {
  padding: 7px;
  border-radius: 22px;
}

.project-card .phone-frame__notch {
  width: 44px;
  height: 4px;
  margin-bottom: 6px;
}

.project-card .phone-frame__screen {
  border-radius: 16px;
}

.project-card .browser-frame__bar {
  padding: 7px 10px;
  gap: 5px;
}

.project-card .browser-frame__dot {
  width: 8px;
  height: 8px;
}

.project-card .browser-frame__url {
  font-size: 0.625rem;
  padding: 3px 8px;
}

.browser-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: white;
  box-shadow: var(--shadow);
}

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--color-border);
}

.browser-frame__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.browser-frame__dot:nth-child(1) {
  background: #f87171;
}
.browser-frame__dot:nth-child(2) {
  background: #fbbf24;
}
.browser-frame__dot:nth-child(3) {
  background: #34d399;
}

.browser-frame__url {
  flex: 1;
  margin-left: 8px;
  padding: 4px 12px;
  background: white;
  border-radius: 6px;
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-frame__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.browser-frame__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.project-card:hover .browser-frame__screen img,
.project-card:hover .phone-frame__screen img {
  transform: scale(1.03);
}

/* Featured CarDiary */
.featured {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.featured__badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  margin-bottom: 16px;
}

.featured__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.featured__subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.featured__desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.featured__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.featured-stat {
  padding: 20px 16px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.featured-stat__value {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.featured-stat__label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.featured__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.featured__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.store-badges a {
  display: block;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.store-badges a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badges img {
  height: 44px;
  width: auto;
}

.cardiary-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.cardiary-gallery::-webkit-scrollbar {
  height: 6px;
}

.cardiary-gallery::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.cardiary-gallery__item {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

.cardiary-gallery__item .phone-frame {
  transition: transform var(--transition);
}

.cardiary-gallery__item:hover .phone-frame {
  transform: translateY(-4px);
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.project-card__media {
  position: relative;
  padding: 16px 16px 0;
  background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
}

.project-card__media .browser-frame,
.project-card__media .phone-frame--card {
  margin-bottom: 16px;
}

.project-card__media--dark {
  background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
}

.project-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
}

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

.project-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.project-card__type {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 3px 8px;
  border-radius: 4px;
}

.project-card__desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-card__tags .tag {
  font-size: 0.6875rem;
  padding: 4px 8px;
}

.project-card__link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.8125rem;
}

/* About */
.about {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}

.about__intro {
  width: 100%;
}

.about__intro .section__title {
  text-align: left;
  margin-bottom: 16px;
}

.about__text {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about__intro .btn {
  margin-top: 8px;
}

.about__details {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  border-top: 1px solid var(--color-border);
}

.about-block {
  width: 100%;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}

.about-block__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.about-block__content {
  width: 100%;
}

.about-block__content--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.about-meta strong {
  color: var(--color-accent);
  font-weight: 700;
}

.about-meta__sep {
  color: var(--color-border);
  user-select: none;
}

.about-block__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-tag {
  font-size: 0.9375rem;
  color: var(--color-text);
  font-weight: 500;
}

.about-tag--accent {
  color: var(--color-accent);
  font-weight: 600;
}

.about-education {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-edu {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.about-edu:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-edu:first-child {
  padding-top: 0;
}

.about-edu__years {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  padding-top: 2px;
}

.about-edu__school {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 4px;
}

.about-edu__degree {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin-top: 24px;
}

.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list__label {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.contact-list a,
.contact-list span {
  color: white;
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--color-accent-light);
}

.contact-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.contact-form__honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-field {
  margin-bottom: 18px;
}

.form-field__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  margin-bottom: 8px;
}

.form-field__input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-field__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-field__input:focus {
  outline: none;
  border-color: var(--color-accent-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.form-field__textarea {
  resize: vertical;
  min-height: 132px;
}

.contact-form__submit {
  width: 100%;
  margin-top: 4px;
}

.contact-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-form__recaptcha {
  margin-top: 14px;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.contact-form__recaptcha a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form__recaptcha a:hover {
  color: white;
}

.contact-form__status {
  margin-top: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-form__status--success {
  color: #86efac;
}

.contact-form__status--error {
  color: #fca5a5;
}

/* Footer */
.footer {
  padding: 24px 0;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer__link {
  color: var(--color-text-light);
}

.footer__link:hover {
  color: #fff;
}

/* Legal pages */
.legal-page {
  padding: calc(var(--header-height) + 48px) 0 80px;
  min-height: 60vh;
}

.legal-page__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 8px;
}

.legal-page__updated {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

.legal-page__intro {
  margin-bottom: 32px;
  max-width: 72ch;
}

.legal-page__section {
  margin-bottom: 28px;
  max-width: 72ch;
}

.legal-page__section h2 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.legal-page__section p {
  color: var(--color-text-muted);
}

/* Cookie consent banner */
body.has-cookie-banner {
  padding-bottom: 96px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 16px 0;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.15);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 240px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-light);
}

.cookie-banner__text a {
  margin-left: 6px;
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: #bfdbfe;
}

.cookie-banner__accept {
  flex-shrink: 0;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    width: 100%;
  }

  .hero-phones {
    max-width: 280px;
    height: 290px;
    margin-top: 72px;
  }

  .hero-phones .phone-frame {
    width: 155px;
  }

  .hero-phones .phone-frame--front {
    width: 175px;
  }

  .hero__stats {
    max-width: 100%;
  }

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

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

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

  .about-edu {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    border-bottom: 1px solid var(--color-border);
    padding: 16px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform var(--transition),
      opacity var(--transition),
      visibility var(--transition);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    padding: 14px 16px;
    border-radius: var(--radius);
  }

  .nav__link:hover {
    background: var(--color-surface-alt);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .section {
    padding: 64px 0;
  }

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

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

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

  .featured__actions {
    flex-direction: column;
  }

  .cardiary-gallery__item {
    flex: 0 0 140px;
  }

  .about-edu {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .hero-phones {
    max-width: 250px;
    height: 250px;
    margin-top: 56px;
  }

  .hero-phones .phone-frame {
    width: 125px;
  }

  .hero-phones .phone-frame--front {
    width: 145px;
  }

  .hero-phones .phone-frame--back {
    top: 16px;
    left: 0;
  }

  .hero-phones .phone-frame--mid {
    top: 4px;
    right: 8px;
  }

  .hero-stat__value {
    font-size: 1.125rem;
  }

  .hero-stat__label {
    font-size: 0.625rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

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