/*
Theme Name: DiamondCut
Theme URI: https://trigger.local/
Author: DiamondCut
Description: Тема для сайта DiamondCut — штробление, алмазное сверление. Перенос с HTML/CSS.
Version: 1.0
Text Domain: diamondcut
*/

/* ===== BEM: DiamondCut — общие стили ===== */

/* Reset & base */
.page {
  margin: 0;
  padding: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 10px;
  color: rgb(51, 52, 63);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page__body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  position: relative;
  width: 100%;
  margin: 4px auto 2px;
  background-color: rgb(255, 255, 255);
  z-index: 49;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 0 6px;
  box-sizing: border-box;
}

.header__logo {
  display: block;
  width: 212px;
  height: 177px;
  object-fit: contain;
}

.header__nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__nav-link {
  color: rgb(51, 52, 63);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.79em;
}

.header__nav-link:hover {
  color: rgb(67, 68, 89);
}

.header__nav-link_current,
.current-menu-item .header__nav-link {
  font-weight: 600;
}

/* Main content */
.main {
  flex: 1;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

/* Hero: обёртка на всю ширину с фоном */
.hero-wrapper {
  width: 100%;
  background-image: url('img/hero-bg.jpg');
  background-size: cover;
  background-position: 50% 50%;
  background-color: rgb(247, 247, 247);
}

.hero {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: 980px;
}

.hero__logo {
  width: 212px;
  height: 177px;
  object-fit: contain;
  margin-bottom: 10px;
}

.hero__title {
  font-size: 72px;
  line-height: 1.25em;
  font-weight: 400;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
  margin: 0 0 28px;
  letter-spacing: 0;
}

.hero__subtitle {
  font-size: 20px;
  line-height: 1.67em;
  color: rgb(255, 255, 255);
  margin: 0 0 62px;
}

/* Section common */
.section {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.section__inner {
  max-width: 980px;
  margin: 0 auto;
}

.section__title {
  font-size: 40px;
  line-height: 1.35em;
  font-weight: 400;
  text-transform: uppercase;
  color: rgb(51, 52, 63);
  margin: 0 0 20px;
}

.section__text {
  font-size: 18px;
  line-height: 1.75em;
  color: rgb(51, 52, 63);
  margin: 0 0 16px;
}

.section__text_small {
  font-size: 15px;
  line-height: 1.875em;
}

/* About: обёртка на всю ширину с фоном */
.about-wrapper {
  width: 100%;
  background-color: rgb(51, 52, 63);
}

/* About block (two columns) */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  min-height: 620px;
  box-sizing: border-box;
}

.about__image {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  opacity: 0.7;
}

.about__content {
  padding: 147px 16px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about__title {
  font-size: 40px;
  line-height: 1.35em;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
  margin: 0 0 40px;
}

.about__subtitle {
  font-size: 18px;
  line-height: 1.75em;
  color: rgb(255, 255, 255);
  margin: 0 0 31px;
}

.about__body {
  font-size: 15px;
  line-height: 1.875em;
  color: rgb(255, 255, 255);
  margin: 0;
}

/* Services grid */
.services {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 80px 51px;
  background-color: #fff;
  box-sizing: border-box;
}

.services__title {
  font-size: 40px;
  line-height: 1.35em;
  text-transform: uppercase;
  color: rgb(51, 52, 63);
  margin: 0 0 32px;
  text-align: center;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

.service-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.service-card__content {
  padding: 16px;
}

.service-card__image--placeholder {
  aspect-ratio: 1;
  background: #eee;
  min-height: 180px;
}

.service-card__title {
  font-size: 18px;
  line-height: 1.35em;
  font-weight: 600;
  color: rgb(51, 52, 63);
  margin: 0 0 8px;
}

.service-card__price {
  font-size: 15px;
  line-height: 1.5em;
  color: rgb(51, 52, 63);
  margin: 0 0 12px;
}

.service-card__button {
  display: inline-block;
  padding: 10px 20px;
  background-color: rgb(51, 52, 63);
  color: #fff;
  border: none;
  font-size: 18px;
  line-height: 1.75em;
  cursor: pointer;
  text-decoration: none;
}

.service-card__button:hover {
  opacity: 0.9;
}

/* Contacts section */
.contacts {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 20px 60px;
  box-sizing: border-box;
}

.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 980px;
  margin: 0 auto;
}

.contacts__title {
  font-size: 40px;
  line-height: 1.35em;
  text-transform: uppercase;
  color: rgb(51, 52, 63);
  margin: 0 0 16px;
  text-align: center;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 940px;
}

.form__label {
  display: block;
  font-size: 15px;
  line-height: 1.875em;
  color: rgb(51, 52, 63);
  margin-bottom: 4px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgb(51, 52, 63);
  background: #fff;
  border: 0 0 1px 0 solid rgb(51, 52, 63);
  border-bottom: 1px solid rgb(51, 52, 63);
  box-sizing: border-box;
  font-family: inherit;
}

.form__textarea {
  min-height: 100px;
  resize: vertical;
}

.form__submit {
  padding: 12px 24px;
  background-color: rgb(51, 52, 63);
  color: #fff;
  border: none;
  font-size: 18px;
  line-height: 1.75em;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
}

.form__submit:hover {
  opacity: 0.9;
}

.form__message {
  font-size: 18px;
  text-align: center;
  color: rgb(51, 52, 63);
  margin-top: 10px;
}

/* Map */
.map {
  width: 100%;
  height: 415px;
  border: 0;
  display: block;
  background: #eee;
}

.map-wrapper {
  width: 100%;
  height: 415px;
  overflow: hidden;
}

/* Footer */
.footer {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background-color: rgb(255, 255, 255);
  padding: 32px 20px 31px;
  margin-top: auto;
  box-sizing: border-box;
}

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

.footer__text {
  font-size: 22px;
  line-height: 1.41em;
  color: rgb(51, 52, 63);
  margin: 0 0 6px;
}

.footer__form {
  max-width: 450px;
  margin: 0 auto 28px;
}

.footer__form-title {
  font-size: 22px;
  color: rgb(51, 52, 63);
  margin: 22px 0 8px;
}

.footer__phone {
  font-size: 15px;
  line-height: 1.875em;
  color: rgb(51, 52, 63);
  margin: 0 0 20px;
}

.footer__social {
  list-style: none;
  margin: 0 0 43px;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.footer__social-link {
  display: block;
}

.footer__social-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: cover;
}

.footer__copyright {
  font-size: 14px;
  line-height: 1.79em;
  color: rgb(51, 52, 63);
  margin: 0;
}

/* Page "О нас" — одна колонка с картинкой и текстом */
.page-about__lead {
  display: grid;
  grid-template-columns: 490px 1fr;
  gap: 0;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  min-height: 900px;
  box-sizing: border-box;
}

.page-about__image {
  width: 100%;
  height: 100%;
  min-height: 900px;
  object-fit: cover;
}

.page-about__content {
  padding: 60px 40px;
}

/* Book-online page: заглушка контента */
.page-book__intro {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-book__title {
  font-size: 40px;
  line-height: 1.35em;
  text-transform: uppercase;
  color: rgb(51, 52, 63);
  margin: 0 0 20px;
}

.page-book__text {
  font-size: 18px;
  line-height: 1.75em;
  color: rgb(51, 52, 63);
  max-width: 600px;
  margin: 0 auto;
}

/* Страница "Наши проекты" — заготовка */
.page-projects__lead {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-projects__title {
  font-size: 40px;
  line-height: 1.35em;
  text-transform: uppercase;
  color: rgb(51, 52, 63);
  margin: 0 0 20px;
}

.page-projects__text {
  font-size: 18px;
  line-height: 1.75em;
  color: rgb(51, 52, 63);
  max-width: 600px;
  margin: 0 auto;
}

/* Utility: скрытый блок */
.u-hidden {
  visibility: hidden;
  position: absolute;
  clip: rect(0, 0, 0, 0);
}
