/* COLOR PALETTE (from your scheme)
   -----------------------------
   background / blocks 1: #2a3c47
   headings:             #f0d3a5
   dark background:      #211e1e
   dark background 2:    #25292c
   action button:        #e60023
*/

:root {
  --bg-main: #211e1e;
  --bg-alt: #25292c;
  --bg-block: #2a3c47;
  --text-main: #f4f4f4;
  --text-muted: #b2b2b2;
  --heading: #f0d3a5;
  --accent: #e60023;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #25292c 0, #211e1e 55%, #000 100%);
  color: var(--text-main);
  line-height: 1.6;
}

.page {
  min-height: 100vh;
}

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

/* HERO */

.hero {
  position: relative;
  min-height: 80vh;
  color: var(--text-main);
  overflow: hidden;
  background: #111;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
 background:
    linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 45%, rgba(0,0,0,0.65) 100%),
    url("img/hero.JPG");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
opacity: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9;
}
/* later you can add:
.hero-bg-image { background-image: url("img/your-portrait.jpg"); }
*/

.hero-overlay {
  position: relative;
  z-index: 1;
  padding: 24px 0 64px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(240, 211, 165, 0.6);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-main);
  text-transform: uppercase;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--heading);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
   align-items: start;
  padding-top: 120px; /* немного уменьшаем */
  padding-bottom: 40px;
}

.hero-name h1 {
  margin: 0;
  font-size: clamp(36px, 5.8vw, 68px); /* было 40/7vw/80px — стало меньше */
  line-height: 0.95;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-name {
  margin-top: 120px;   /* ПОДНИМАЕМ ФИО НИЖЕ */
}

.hero-text-block {
  margin-top: -40px;   /* ПОДНИМАЕМ ПРАВЫЙ БЛОК ВЫШЕ */
}

.hero-tagline {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 14px;
}

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

.hero-link {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--heading);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(240, 211, 165, 0.7);
}

.hero-link--accent {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* SECTIONS */

.section {
  padding: 72px 0;
  background: var(--bg-main);
}

.section:nth-of-type(even) {
  background: var(--bg-alt);
}

.section-title {
  margin: 0 0 32px;
  font-size: 20px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--heading);
}

/* ABOUT */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 40px;
  align-items: flex-start;
}

.about-photo-placeholder {
  background: var(--bg-block);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.about-text-columns {
  display: grid;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.about-highlight {
  margin-top: 8px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ffffff;
}

/* WORKS */

.section--works .section-title {
  margin-bottom: 24px;
}

.works-layout {
  display: grid;
  gap: 24px;
}

/* карусель */

.works-carousel {
  position: relative;
  overflow: hidden;
  display: block;
}

.works-track {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
}

.work-item {
  flex: 0 0 33.3333%;
  padding: 0 8px;
  aspect-ratio: 3 / 4;
  background: var(--bg-block);
  overflow: hidden;
  opacity: 0.35;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-item--active {
  opacity: 1;
  transform: scale(1);
}

/* стрелки — поверх всего, по бокам карусели */

/* БОЛЬШИЕ ПОЛУПРОЗРАЧНЫЕ СТРЕЛКИ ДЛЯ КАРУСЕЛИ */

.works-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: rgba(255, 255, 255, 0.35);   /* полупрозрачная стрелка */
  font-size: 68px;                    /* РАЗМЕР СТРЕЛКИ — регулируется здесь */
  line-height: 1;
  cursor: pointer;
  user-select: none;
  border: none;
  background: none;                   /* УБРАТЬ ФОН */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  height: 50%;                        /* занимает половину фото по высоте */
  width: 90px;                        /* широкая зона клика — можешь менять */
}

.works-arrow--prev {
  left: 0;
}

.works-arrow--next {
  right: 0;
}

.works-arrow:hover {
  color: rgba(255, 255, 255, 0.7);     /* при наведении становится ярче */
  transform: translateY(-50%) scale(1.1);
}
/* адаптация под мобилки: показываем по одному */

@media (max-width: 700px) {
  .work-item {
    flex: 0 0 100%;
    padding: 0 4px;
  }
}

/* SERVICES */

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: flex-start;
}

.services-list {
  display: grid;
  gap: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.service-item h3 {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--heading);
}

.service-item p {
  margin: 0;
}

.services-photo-placeholder {
  background: var(--bg-block);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* CONTACT */

.section--contact {
  background: #111111;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: flex-start;
}

.contact-block {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.contact-intro {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  margin: 0 0 16px;
  color: var(--heading);
}

.contact-form {
  background: rgba(37, 41, 44, 0.8);
  padding: 24px 20px;
  border: 1px solid rgba(240, 211, 165, 0.15);
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #404549;
  background: #151719;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5a6166;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--heading);
}

.btn-primary {
  margin-top: 8px;
  padding: 12px 18px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

/* FOOTER */

.footer {
  background: #050505;
  padding: 20px 0;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-links {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .about-layout,
  .services-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .works-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-nav {
    gap: 16px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    gap: 40px;
  }

  .hero-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

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

  .section {
    padding: 56px 0;
  }

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


.work-item.clone {
  opacity: 0.35;   /* клоны всегда как боковые, не яркие */
  transform: scale(0.9);
}

/* iPad / планшеты — опускаем имя к нижнему краю */
@media (min-width: 700px) and (max-width: 1100px) {
  .hero-content {
    padding-top: 200px !important; /* создаём больше пространства сверху */
  }

  .hero-name {
    margin-top: 120px !important;  /* опускаем имя вниз */
  }

  .hero-text-block {
    margin-top: -20px !important;  /* чуть поднимаем правый блок */
  }
}
