:root {
  --bg: #0a0a0c;
  --dark: #111114;
  --gold: #d4b373;
  --gold-soft: rgba(212, 179, 115, .35);
  --text: #f2f2f2;
  --muted: #9a9a9a;
}

/* GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

body {
  background: radial-gradient(circle at top, #151518, var(--bg));
  font-family: 'Inter', sans-serif;
  color: var(--text);
  cursor: none;
  overflow-x: hidden;
}

/* CURSOR */
.cursor,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.cursor {
  width: 10px;
  height: 10px;
  background: var(--gold);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold-soft);
  transition: .15s;
}

/* PARTICLES */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  opacity: .35;
  border-radius: 50%;
  animation: float 18s linear infinite;
}

@keyframes float {
  from {
    transform: translateY(100vh)
  }

  to {
    transform: translateY(-10vh)
  }
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: 1s cubic-bezier(.19, 1, .22, 1);
}

.reveal.active {
  opacity: 1;
  transform: none
}

/* SECTIONS */
section {
  padding: 100px 8%;
  position: relative;
  z-index: 1;
}

.title {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  margin-bottom: 40px;
}

.title::after {
  content: "";
  display: block;
  width: 90px;
  height: 2px;
  background: var(--gold);
  margin-top: 20px;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 6vw, 96px);
  line-height: 1.05;
  margin-bottom: 30px;
}

.hero h1 span {
  color: var(--gold)
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.btn {
  padding: 16px 44px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  transition: .4s;
  z-index: -1;
}

.btn:hover {
  color: #000
}

.btn:hover::after {
  transform: translateX(0)
}

/* ABOUT (усиление внутри luxury) */
.about-box {
  border: 1px solid rgba(212, 179, 115, .25);
  padding: 50px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 50px;
  transition: .5s;
  position: relative;
}

.about-box img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  transition: .5s;
  cursor: pointer;
}

.about-box img:hover {
  transform: scale(1.03);
}

.about-text p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
  margin-bottom: 20px;
}

.about-icons {
  display: flex;
  gap: 25px;
  margin-top: 20px;
}

.about-icons div {
  border: 1px solid rgba(212, 179, 115, .2);
  padding: 15px 20px;
  border-radius: 10px;
  color: var(--gold);
  font-weight: 600;
  transition: .3s;
}

.about-icons div:hover {
  background: rgba(212, 179, 115, .1);
  transform: translateY(-3px);
}

/* WHAT I DO (Luxury, больше разделов) */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.service {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  transition: .3s;
  cursor: pointer;
  background: linear-gradient(145deg, #121215, #0b0b0d);
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.service:hover {
  transform: translateY(-6px);
}

.service h4 {
  margin-bottom: 10px;
  color: var(--gold);
}

.service p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* SKILLS */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.skill {
  border: 1px solid rgba(212, 179, 115, .2);
  padding: 20px;
  text-align: center;
  color: var(--muted);
  border-radius: 10px;
  transition: .3s;
  background: linear-gradient(145deg, #0f0f12, #121215);
}

.skill:hover {
  transform: scale(1.05);
}

/* PORTFOLIO */

/* PORTFOLIO */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.card {
  background: linear-gradient(145deg, #121215, #0b0b0d);
  border: 1px solid rgba(212, 179, 115, .2);
  cursor: pointer;
  position: relative;
  border-radius: 12px;
  transition: .4s;
  overflow: hidden;
}

.card:hover {
  transform: scale(1.03);
}

/* Блок изображения со скроллом */
.card-image {
  max-height: 300px;
  /* высота видимой области */
  overflow-y: auto;
  /* включаем вертикальный скролл */
}

/* Картинка в полном размере */
.card-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Красивый тонкий скролл */
.card-image::-webkit-scrollbar {
  width: 6px;
}

.card-image::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

.card button {
  width: 100%;
  padding: 12px 0;
  margin-top: 10px;
  border: none;
  background: var(--gold);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: .3s;
}

.card button:hover {
  background: #f5d47c;
}


/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-content {
  background: #0f0f12;
  border: 1px solid var(--gold);
  padding: 50px;
  max-width: 700px;
  border-radius: 12px;
  text-align: center;
}

/* WHY ME */
.why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.why div {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  transition: .3s;
  cursor: pointer;
  background: linear-gradient(145deg, #121215, #0b0b0d);
  padding: 20px;
  border-radius: 12px;
}

.why div:hover {
  transform: translateY(-5px);
}

/* REVIEWS */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review {
  border: 1px solid rgba(212, 179, 115, .2);
  padding: 30px;
  font-style: italic;
  border-radius: 12px;
  transition: .3s;
  background: linear-gradient(145deg, #0f0f12, #121215);
}

.review:hover {
  transform: scale(1.02);
}

/* CTA */
.cta {
  text-align: center;
}

.cta p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 30px;
}

/* FOOTER */
footer {
  padding: 30px 8%;
  border-top: 1px solid rgba(212, 179, 115, .2);
  text-align: center;
  color: var(--muted);
}



/*АДАПТИВ ТЕЛЕФОН*/

@media(max-width:900px) {
  


  .about-box{
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 20px;
  }

  .about-box img{
    height: 280px;
  }

  .about-text p{
    font-size: 15px;
    line-height: 1.7;
  }

  /* Карточки-иконки: на телефоне делаем сетку */
  .about-icons{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 равные колонки */
    gap: 12px;
  }

  .about-icons div{
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    text-align: center;
    box-sizing: border-box;
    word-break: break-word; /* чтобы длинные слова не ломали ширину */
  }

  .about-box img {
    height: 100%;
  }

  .services {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    /* т.к. у тебя 8 карточек */
    gap: 15px !important;

  }

  .service {
    padding: 15px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: flex-start;
  }

  .modal-content {
    padding: 20px;
    max-width: 320px;
  }

  .modal-content p{
    font-size: 15px;
  }

  .cursor,
  .cursor-ring {
    display: none !important;
  }
 









}
