:root {
  --bg: #f7f6ff;
  --card: #ffffff;

  --text: #1f1f2a;
  --muted: #6b6b7a;

  --primary: #7b5cff;      /* фиолетовый */
  --secondary: #b8a8ff;    /* светлый лавандовый */
  --accent: #a78bfa;       /* мягкий акцент */

  --shadow: 0 10px 30px rgba(123, 92, 255, 0.12);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.header {
  background: white;
  position: sticky;
  top: 0;
  border-bottom: 1px solid #ddd;
}

nav a {
  margin-right: 15px;
  text-decoration: none;
  color: #333;
}

.hero {
  padding: 80px 0;
  text-align: center;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #5b47ff;
  color: white;
  border-radius: 20px;
  text-decoration: none;
}

.section {
  padding: 60px 0;
}

.grid {
  display: flex;
  gap: 15px;
}

.card {
  background: white;
  padding: 20px;
  flex: 1;
  border-radius: 10px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
}

button {
  padding: 10px;
  background: #ff7f7f;
  border: none;
  color: white;
  cursor: pointer;
}

.footer {
  text-align: center;
  padding: 20px;
  background: #111;
  color: white;
}

.about {
  padding: 100px 0;
  background: linear-gradient(180deg, #f7f6ff, #ffffff);
}

/* ВОТ САМА РАМКА */
.about-card {
  display: flex;
  align-items: center;
  gap: 40px;

  background: #fff;
  padding: 40px;
  border-radius: 28px;

  border: 1px solid rgba(123, 92, 255, 0.15);
  box-shadow: 0 20px 60px rgba(123, 92, 255, 0.12);

  position: relative;
  overflow: hidden;
}

/* ЛЁГКИЙ ДЕКОР (дорогой эффект) */
.about-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(123,92,255,0.15), transparent 70%);
}

/* ТЕКСТ */
.about-text {
  flex: 1;
  z-index: 1;
}

.about-text h2 {
  font-size: 34px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #7b5cff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-text p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ФОТО */
.about-photo {
  flex: 1;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.about-photo img {
  width: 100%;
  max-width: 320px;
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  transition: 0.3s;
}

.about-photo img:hover {
  transform: scale(1.03);
}

/* АДАПТИВ */
@media (max-width: 768px) {
  .about-card {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .about-photo img {
    max-width: 260px;
  }
}

.about-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;

  background: linear-gradient(135deg, #7b5cff, #a78bfa);
  color: white;

  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;

  box-shadow: 0 12px 30px rgba(123, 92, 255, 0.25);

  transition: 0.3s ease;
}

.about-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(123, 92, 255, 0.35);
}

.what-i-do {
  padding: 100px 0;
  background: linear-gradient(180deg, #f7f6ff, #ffffff);
}

.layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
  margin-top: 50px;
}

/* БОЛЬШАЯ КАРТОЧКА */
.big-card {
  background: linear-gradient(135deg, #7b5cff, #a78bfa);
  color: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(123, 92, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.big-card h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.big-card p {
  opacity: 0.9;
  line-height: 1.6;
}

.tag {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 13px;
}

/* МАЛЕНЬКИЕ КАРТОЧКИ */
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-card {
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(123, 92, 255, 0.08);
  font-size: 14px;
  color: #333;
  transition: 0.3s;
}

.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(123, 92, 255, 0.15);
}

/* АДАПТИВ */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }
}

.gallery {
  padding: 100px 0;
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.photo-card {
  border-radius: 22px;
  overflow: hidden;

  box-shadow: 0 15px 40px rgba(123, 92, 255, 0.12);
  transition: 0.3s ease;
  position: relative;
}

.photo-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(123, 92, 255, 0.18);
}

.photo-card:hover img {
  transform: scale(1.05);
}

/* АДАПТИВ */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .photo-card img {
    height: 220px;
  }
}

.education {
  padding: 100px 0;
  background: linear-gradient(180deg, #f7f6ff, #ffffff);
}

.timeline {
  position: relative;
  margin-top: 50px;
}

/* центральная линия */
.timeline::before {
  content: "";
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(#7b5cff, #a78bfa);
}

/* элемент */
.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
  position: relative;
  padding-left: 80px;
}

/* год */
.year {
  position: absolute;
  left: 0;
  width: 60px;
  text-align: center;

  font-weight: 600;
  color: #fff;

  background: linear-gradient(135deg, #7b5cff, #a78bfa);
  padding: 6px 0;
  border-radius: 999px;

  box-shadow: 0 10px 25px rgba(123, 92, 255, 0.25);
}

/* карточка */
.edu-card {
  background: #fff;
  padding: 18px 20px;
  border-radius: 18px;

  box-shadow: 0 10px 30px rgba(123, 92, 255, 0.10);

  flex: 1;
  transition: 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(123, 92, 255, 0.18);
}

.edu-card h3 {
  margin: 0 0 6px;
  color: #333;
}

.edu-card p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* заголовок секции */
.section-title {
  margin: 40px 0 20px;
  font-weight: 600;
  color: #7b5cff;
  padding-left: 80px;
}

/* компактные элементы */
.edu-item.small .edu-card {
  padding: 14px 18px;
}

/* адаптив */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .edu-item {
    padding-left: 60px;
  }

  .year {
    width: 50px;
    font-size: 12px;
  }

  .section-title {
    padding-left: 60px;
  }
}

.slider {
  position: relative;
  min-height: 400px; /* важно */
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.slide {
  position: absolute;
  inset: 0;

  background: #fff;
  padding: 30px;
  border-radius: 22px;

  box-shadow: 0 15px 40px rgba(123, 92, 255, 0.12);

  opacity: 0;
  transform: translateY(20px);

  transition: 0.5s ease;

  overflow-y: auto;   /* 🔥 ключ */
  max-height: 100%;
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 2;
}
/* СТРЕЛКИ */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  border: none;
  border-radius: 50%;

  background: #7b5cff;
  color: white;
  font-size: 22px;

  cursor: pointer;

  z-index: 9999; /* 🔥 КЛЮЧЕВО */
  pointer-events: auto;
}
.arrow:hover {
  transform: translateY(-50%) scale(1.1);
}

.arrow.left {
  left: -10px;
}

.arrow.right {
  right: -10px;
}

.rating {
  color: #7b5cff; /* фиолетовый */
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.rating span {
  color: #a78bfa; /* светлее фиолетовый */
  font-size: 14px;
  margin-left: 6px;
}


.map-box {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(123, 92, 255, 0.15);
  background: white;
}

.map-info {
  padding: 15px 18px;
  font-size: 14px;
  color: #555;
}

.map-info strong {
  display: block;
  color: #7b5cff;
  margin-bottom: 4px;
}

.socials {
  padding: 100px 0;
  background: linear-gradient(180deg, #f7f6ff, #ffffff);
}

.social-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;

  background: #fff;
  padding: 35px;
  border-radius: 26px;

  box-shadow: 0 20px 60px rgba(123, 92, 255, 0.12);
}

/* ЛЕВАЯ ЧАСТЬ */
.contact-main {
  padding-right: 20px;
}

.phone-title {
  font-size: 18px;
  color: #777;
  margin-bottom: 6px;
}

.phone-number {
  font-size: 28px;
  font-weight: 700;
  color: #7b5cff;
  margin-bottom: 10px;
}

.contact-main p {
  color: #666;
  margin-bottom: 20px;
}

/* КНОПКА */
.btn-primary {
  display: inline-block;
  padding: 12px 20px;
  background: linear-gradient(135deg, #7b5cff, #a78bfa);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;

  box-shadow: 0 12px 30px rgba(123, 92, 255, 0.25);
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
}

/* ПРАВАЯ ЧАСТЬ */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px 16px;
  border-radius: 16px;

  background: #f7f6ff;
  text-decoration: none;
  color: #444;

  transition: 0.3s;
}

.social-links a:hover {
  background: #7b5cff;
  color: white;
  transform: translateY(-2px);
}

/* АДАПТИВ */
@media (max-width: 768px) {
  .social-card {
    grid-template-columns: 1fr;
  }
}

.modal {
  display: none;
  position: fixed;
  inset: 0; /* top:0 right:0 bottom:0 left:0 */
  
  background: rgba(0,0,0,0.5);
  
  justify-content: center;
  align-items: center;

  z-index: 9999; /* 🔥 ключ */
}

.modal-content {
  background: white;
  padding: 25px;
  border-radius: 20px;
  width: 90%;
  max-width: 420px;

  position: relative;
  z-index: 10000;
}

.modal-content h2 {
  margin-bottom: 15px;
  color: #7b5cff;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.modal-content button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 999px;

  background: linear-gradient(135deg, #7b5cff, #a78bfa);
  color: white;
  cursor: pointer;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(123, 92, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 20px;
}

/* ЛОГО */
.logo {
  font-size: 18px;
  font-weight: 600;
  color: #7b5cff;
}

.logo span {
  color: #a78bfa;
}

/* НАВИГАЦИЯ */
.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  font-size: 14px;

  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;

  width: 0%;
  height: 2px;
  background: #7b5cff;
  transition: 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

/* КНОПКА */
.header-btn {
  padding: 10px 16px;
  border-radius: 999px;

  background: linear-gradient(135deg, #7b5cff, #a78bfa);
  color: white;

  text-decoration: none;
  font-weight: 500;
  font-size: 14px;

  box-shadow: 0 10px 25px rgba(123, 92, 255, 0.25);

  transition: 0.3s;
}

.header-btn:hover {
  transform: translateY(-2px);
}

/* МОБИЛКА */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
}

html {
  scroll-behavior: smooth;
}

.logo img {
  height: 60px;   /* 🔥 основной размер */
  width: auto;
  object-fit: contain;
  margin-left: 100px;
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    height: 34px;
  }
}

.footer {
  padding: 14px 0;
  text-align: center;

  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);

  color: #777;
  font-size: 13px;

  border-top: 1px solid rgba(123, 92, 255, 0.12);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;

  color: #6b6b7a;
  font-size: 14px;
}

.brand {
  font-weight: 600;
  color: #7b5cff;
  font-size: 16px;
}

.brand span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: #a78bfa;
}

.muted {
  opacity: 0.8;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.about-card,
.big-card,
.mini-card,
.photo-card,
.edu-card,
.social-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover,
.big-card:hover,
.photo-card:hover,
.social-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(123, 92, 255, 0.18);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(123,92,255,0.08), transparent 40%),
              radial-gradient(circle at 80% 60%, rgba(167,139,250,0.08), transparent 40%);
  z-index: -1;
  animation: floatBg 12s ease-in-out infinite alternate;
}

@keyframes floatBg {
  from { transform: translateY(0px); }
  to { transform: translateY(-20px); }
}

.btn-primary {
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 rgba(123,92,255,0.4); }
  50% { box-shadow: 0 0 20px rgba(123,92,255,0.25); }
  100% { box-shadow: 0 0 0 rgba(123,92,255,0.4); }
}

