:root {
  --page-bg: #fff;
  --text-on-dark: #fff;
  --secondary-bg: rgb(102, 177, 114);
  --card-bg: rgb(238, 248, 241);
  --main-text: rgb(49, 83, 49);
  --secondary-text: rgb(96, 145, 96);
  --muted-green-text: rgba(49, 83, 49, 0.72);
  --line-soft: rgba(49, 83, 49, 0.16);
  --field-border: rgba(49, 83, 49, 0.22);
  --surface-soft: rgba(255, 255, 255, 0.72);
  --header-bg-scrolled: rgba(248, 251, 247, 0.82);
  --shadow-elem: rgba(49, 83, 49, 0.08);
  --shadow-action: rgba(49, 83, 49, 0.16);
  --header-height: 80px;
}

@font-face {
  font-family: 'candara';
  src: url('./fonts/candara.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-anchor: none;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: var(--header-height);
  font-family: 'candara', system-ui, -apple-system, sans-serif;
  font-size: 20px;
  color: var(--main-text);
  background-color: var(--page-bg);
  line-height: 1.6;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(49, 83, 49, 0.14);
}

header.scrolled {
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(10px);
}

main {
  flex: 1;
}

section {
  scroll-margin-top: 80px;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1300px;
  width: min(100% - 64px, 1300px);
  margin: 0 auto;
}

/* Header */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 15px;
  padding-inline: 25px;
  padding-left: 56px;
  padding-right: 72px;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
}

.brand-logo {
  grid-row: span 2;
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}

.brand-sub {
  font-size: 13px;
}

a.brand,
a.brand:visited {
  color: var(--main-text);
}

.nav-menu ul {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  position: relative;
  padding: 0.5rem 0;
  color: var(--main-text);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-bg);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

nav li {
  list-style: none;
}

body.menu-open {
  overflow: hidden;
}

/* Burger Menu */
.burger-nav {
  display: none;
}

.burger-checkbox:checked~.menu-list {
  transform: translateX(0);
}

.burger-social-networks {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 15px;
  padding: 20px 0;
}

.burger-social-networks i {
  color: var(--main-text);
  font-size: 1.6rem;
}

.burger-social-networks a {
  display: block;
  width: 48px;
  height: 48px;
  position: relative;
  transition: transform 0.3s ease;
}

.burger-social-networks a:hover {
  transform: scale(1.1);
}

.menu-list {
  top: 0;
  right: 0;
  position: fixed;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 80px 30px 30px;
  margin: 0;
  background: rgba(161, 228, 189, 0.98);
  backdrop-filter: blur(10px);
  font-size: 18px;
  text-align: center;
  list-style-type: none;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  width: 250px;
  z-index: 999;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.menu-item {
  display: block;
  padding: 12px 0;
  color: var(--main-text);
  font-weight: 500;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-tap-highlight-color: transparent;
}

.menu-item:hover {
  color: var(--secondary-bg);
}

.menu-item:active,
.menu-item:focus {
  background: transparent;
}

.burger-checkbox {
  display: none;
}

.burger {
  display: none;
  cursor: pointer;
  position: relative;
  border: none;
  background: transparent;
  width: 30px;
  height: 26px;
  z-index: 1000;
}

.burger::before,
.burger::after {
  content: '';
  position: absolute;
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 10px;
  background: var(--main-text);
  transition: all 0.3s ease;
  left: 0;
}

.burger::before {
  top: 0;
  transform: translateY(0);
}

.burger::after {
  bottom: 0;
  transform: translateY(0);
}

.burger::before {
  box-shadow: 0 11px 0 var(--main-text);
}

.burger-checkbox:checked+.burger::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: none;
}

.burger-checkbox:checked+.burger::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 998;
}

.burger-checkbox:checked~.overlay {
  opacity: 1;
  visibility: visible;
}

/* Sections */
.section-inner {
  padding: 92px 0;
}

main>.section-inner:first-child {
  padding: 0;
}

main>.section-inner:first-child+.section-inner {
  padding-top: 0;
}

body:not(:has(.hero-inner)) main>.section-inner:first-child {
  padding-top: 36px;
}

body:not(:has(.hero-inner)) main>.section-inner:first-child .section-header {
  margin-bottom: 32px;
}

.section-header {
  max-width: 1300px;
  margin: 0 auto 48px;
  padding-inline: 32px;
  text-align: left;
}

.section-title {
  margin: 0;
  font-family: 'candara', system-ui, -apple-system, sans-serif;
  font-size: clamp(2.1rem, 4.5vw, 4.4rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--main-text);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--secondary-text);
}

.section-divider {
  width: 100%;
  height: 1px;
  margin: 28px 0 0;
  background: var(--line-soft);
  border-radius: 0;
}

.reviews-mobile-arrows {
  display: none;
}

/* Hero section */
.hero-inner {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-height) - 220px);
  padding-inline: 32px;
  flex-wrap: wrap;
  gap: clamp(40px, 7vw, 110px);
}

.hero-content {
  flex: 1;
  padding-right: 0;
  min-width: 300px;
}

.hero-title {
  max-width: 780px;
  font-size: 3.5rem;
  margin-bottom: 28px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--main-text);
  word-wrap: break-word;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 38px;
  line-height: 1.6;
  color: var(--secondary-text);
  max-width: 620px;
}

.hero-button {
  display: inline-block;
  position: relative;
  z-index: 10;
  background-color: var(--secondary-bg);
  color: var(--text-on-dark);
  padding: 15px 28px;
  border-radius: 0;
  transition: all 0.3s ease;
  box-shadow: none;
  letter-spacing: 0;
}

.hero-button:hover {
  transform: none;
  box-shadow: 0 6px 20px var(--shadow-action);
}

.hero-image {
  flex: 1;
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
}

.profile-image {
  height: 480px;
  width: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  position: relative;
  z-index: 10;
  box-shadow: 42px 42px 0 rgba(102, 177, 114, 0.16);
}

/* About section */
.about-intro {
  text-align: center;
  max-width: 1060px;
  margin: 0 auto;
}

.intro-text {
  font-size: 1.4rem;
  line-height: 1.55;
  color: var(--main-text);
  text-align: justify;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.detail-card {
  background: transparent;
  padding: 30px 28px;
  border-radius: 0;
  box-shadow: none;
  border-right: 1px solid var(--line-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.detail-card:last-child {
  border-right: 0;
}

.detail-card i {
  color: var(--secondary-bg);
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--secondary-bg);
  display: none;
}

.card-title {
  font-size: 1.2rem;
  color: var(--main-text);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.card-list {
  list-style: none;
  padding-left: 0;
}

.card-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--secondary-text);
  line-height: 1.6;
}

.card-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-bg);
  font-weight: bold;
}

/* Skills */
#skills {
  padding-top: 48px;
  padding-bottom: 48px;
}

#skills .section-header {
  margin-bottom: 28px;
}

.skills-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1040px;
  border: 0;
  margin: 0 auto;
}

.skills-image {
  background: var(--card-bg);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 22px 24px;
  text-align: center;
  min-width: 130px;
  box-shadow: none;
}

.skills-image img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 3px;
  display: block;
  margin: 0 auto 8px;
}

.skills-image p {
  font-size: 1rem;
  color: var(--main-text);
}

/* Portfolio */
#portfolio {
  padding-bottom: 48px;
}

#services .section-divider {
  display: none;
}

#services {
  padding-bottom: 48px;
}

#reviews {
  padding-bottom: 32px;
}

#add-review {
  padding-bottom: 12px;
}

#contacts {
  padding-top: 12px;
}

.portfolio-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  flex-wrap: wrap;
}

.project-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.projects {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 0.82;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects:hover {
  transform: none;
}

.projects img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.projects::after {
  display: none;
  border-radius: 0;
}

.project-title {
  margin-top: 14px;
  color: var(--main-text);
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  z-index: 1;
}

.page-link {
  display: block;
  position: absolute;
  top: 0;
  bottom: auto;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.28);
  text-align: left;
  transition: background-color 0.25s ease;
}

.page-link:hover,
.page-link:focus-visible {
  background: rgba(0, 0, 0, 0.18);
}

.link-text {
  display: inline-block;
  background: transparent;
  color: var(--text-on-dark);
  font-size: 1.08rem;
  text-align: left;
  padding: 10px 24px;
  border-radius: 0;
  border-bottom: 0;
  text-shadow: none;
  transform: none;
}

/* Services */
.services-inner {
  width: 100%;
  max-width: 1180px;
  display: flex;
  flex-direction: column;
}

.service-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(44, 85, 48, 0.16);
}

.service-number {
  color: #DDEFE2;
  font-size: clamp(2.8rem, 5vw, 4.3rem);
  line-height: 0.95;
  font-weight: 700;
}

.service-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  gap: 24px;
  align-items: start;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.service-summary:hover,
.service-summary:focus,
.service-summary:active {
  background: transparent;
  color: inherit;
}

.service-summary:focus-visible {
  outline: none;
}

.service-summary h3 {
  margin-bottom: 6px;
  color: var(--main-text);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.15;
  font-weight: 600;
}

.service-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  justify-self: end;
  padding-top: 1px;
  white-space: nowrap;
  color: var(--main-text);
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 700;
}

.service-price small {
  font-size: 0.68em;
  line-height: 1;
  font-weight: 400;
}

.service-summary p {
  max-width: 940px;
  color: var(--muted-green-text);
  font-size: 1rem;
  line-height: 1.35;
}

.service-toggle {
  position: relative;
  width: 30px;
  height: 30px;
  margin-top: 3px;
  transition: transform 0.25s ease;
}

.service-toggle::before,
.service-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 2px;
  background: var(--main-text);
  transform: translate(-50%, -50%);
}

.service-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.service-toggle-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.service-toggle-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.service-steps {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 28px;
  max-height: 900px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease;
}

.service-steps[hidden] {
  display: flex;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
}

.service-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 2px;
}

.service-step span {
  color: var(--main-text);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

.service-step h4 {
  margin-bottom: 5px;
  color: var(--main-text);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
  text-transform: uppercase;
}

.service-step p {
  max-width: 980px;
  color: var(--muted-green-text);
  font-size: 1rem;
  line-height: 1.45;
}

/* Reviews */
.reviews-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 430px;
  min-height: 430px;
}

.review-card {
  background: var(--page-bg);
  border: 0;
  border-radius: 0;
  padding: 34px;
  box-shadow: none;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.reviews-w-icon i {
  font-size: 2rem;
  color: pink;
  margin-right: 15px;
}

.reviews-m-icon i {
  font-size: 2rem;
  color: cornflowerblue;
  margin-right: 15px;
}

.review-author h3 {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--main-text);
  margin: 0;
}

.review-service {
  margin: 4px 0 0;
  color: var(--secondary-text);
  font-size: 0.92rem;
  line-height: 1.35;
}

.review-content {
  margin-bottom: 15px;
  flex-grow: 1;
  min-height: 0;
  overflow-y: hidden;
  max-height: 205px;
  position: relative;
  padding-right: 0;
}

.review-content.scrollable {
  overflow-y: auto;
}

.review-content.scrollable::after {
  content: '';
  position: sticky;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  height: 42px;
  margin-top: -42px;
  background: linear-gradient(transparent, var(--page-bg));
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.review-content.scrollable.scrolled-to-bottom::after {
  opacity: 0;
}

.review-content::-webkit-scrollbar {
  width: 4px;
}

.review-content::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

.review-content p {
  font-size: 1.28rem;
  font-style: italic;
  color: var(--secondary-text);
  line-height: 1.55;
  margin: 0;
}

.review-date {
  font-size: 1rem;
  color: #999;
  text-align: right;
  margin-top: auto;
  padding-top: 10px;
}

.review-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface-soft);
  padding: 2.5rem;
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

.review-form input,
.review-form select,
.review-form textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 20px;
  border: 1px solid var(--field-border);
  border-radius: 0;
  background: var(--surface-soft);
  font-family: inherit;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-bg);
}

.review-form input[type='text'],
.review-form select,
.review-form textarea,
.contact-form input[type='text'],
.contact-form textarea {
  font-size: 20px !important;
  line-height: 1.4;
}

.review-form select {
  color: var(--secondary-text);
  cursor: pointer;
}

.review-form select:invalid {
  color: var(--muted-green-text);
}

.review-form select option {
  color: var(--main-text);
  background-color: var(--page-bg);
}

.review-form textarea,
.contact-form textarea {
  resize: vertical;
  height: 150px;
}

.text-form {
  color: var(--secondary-text);
  font-size: 1.15rem;
}

.gender-selection {
  display: flex;
  gap: 20px;
  margin: 10px 0 20px 0;
}

.gender-selection input[type='radio'] {
  display: none;
}

.gender-label {
  padding: 8px 16px;
  border: 2px solid var(--field-border);
  border-radius: 0;
  background: var(--surface-soft);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  color: var(--secondary-text);
}

.gender-selection input[type='radio']:checked+.gender-label {
  background-color: var(--secondary-bg);
  color: var(--text-on-dark);
  border-color: var(--secondary-bg);
}

.gender-label:hover {
  border-color: var(--secondary-bg);
  color: var(--secondary-bg);
}

.form-status {
  text-align: center;
  margin-top: 1rem;
  font-size: 14px;
  min-height: 20px;
}

.review-form button,
.contact-form button {
  background-color: var(--secondary-bg);
  color: var(--text-on-dark);
  border: none;
  text-align: center;
  padding: 1rem 2.25rem;
  border-radius: 0;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.12rem;
  box-shadow: none;
  transition: all 0.3s ease;
}

.review-form button:hover,
.contact-form button:hover {
  background-color: var(--secondary-text);
  transform: none;
}

/* Slider */
.slideshow-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.slide {
  display: none;
}

.slideshow-inner {
  min-height: 350px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  max-width: 90%;
  max-height: 90%;
  object-fit: cover;
  display: block;
  margin: auto;
}

.numbertext {
  position: absolute;
  top: 0;
  left: 6%;
  color: var(--text-on-dark);
  font-size: 1.1rem;
}

.prev,
.next {
  position: absolute;
  top: 30%;
  width: auto;
  padding: 18px;
  cursor: pointer;
  color: var(--secondary-bg);
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  z-index: 10;
}

.prev {
  left: -50px;
  border-radius: 0 3px 3px 0;
}

.next {
  right: -50px;
  border-radius: 3px 0 0 3px;
}

.dots-container {
  text-align: center;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s;
  cursor: pointer;
}

.dot.active {
  background-color: var(--secondary-bg);
}

.fade {
  animation: fade 1s;
}

/* Contacts */
.contacts-inner {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  align-items: stretch;
  justify-content: center;
  margin: 0 auto;
}

.contacts-info {
  flex: 1;
  color: var(--main-text);
  background: var(--surface-soft);
  height: auto;
  padding: 2rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 1.28rem;
}

.contacts-details {
  margin-top: 2rem;
}

.contacts-details i {
  color: var(--secondary-bg);
  font-size: 1.45rem;
}

.contacts-details a {
  color: var(--secondary-text);
  font-size: 1.28rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: relative;
  background-color: var(--card-bg);
  color: var(--text-on-dark);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

.social-links i {
  font-size: 1.35rem;
}

.meta-mark {
  position: absolute;
  top: -6px;
  right: -3px;
  color: var(--secondary-bg);
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 700;
}

.contact-form {
  flex: 1;
  background: var(--surface-soft);
  padding: 2rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Projects Page */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding-inline: 0;
}

.project-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: none;
  box-shadow: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--text-on-dark);
  padding: 70px 28px 28px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.project-info h3 {
  font-size: clamp(0.95rem, 1.25vw, 1.35rem);
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1;
}

.project-info p {
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  margin-bottom: 5px;
  opacity: 0.9;
}

.paragraphs-container {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
}

.paragraphs-container p:last-child {
  margin-left: auto;
  text-align: right;
}

.project-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Project Page */
.project-page {
  padding-top: 100px;
  display: flex;
  flex-direction: column;
}

.project-hero {
  position: relative;
  max-width: 1200px;
  width: 90%;
  aspect-ratio: auto;
  height: 60vh;
  min-height: 400px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 45%,
      rgba(0, 0, 0, 0.28) 72%,
      rgba(0, 0, 0, 0.58) 100%);
  pointer-events: none;
  z-index: 1;
}

.project-hero-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  color: var(--text-on-dark);
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 28px;
  align-items: end;
  backdrop-filter: none;
  z-index: 2;
}

.project-hero-left h1 {
  display: block;
  grid-column: 1 / -1;
  color: var(--text-on-dark);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.project-hero-left {
  display: contents;
}

.project-hero-left .project-area {
  grid-column: 1;
  font-size: 1.65rem;
  opacity: 1;
  color: var(--text-on-dark);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.project-hero-right .project-year {
  grid-column: 2;
  font-size: 1.65rem;
  font-weight: 600;
  background: transparent;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
  color: var(--text-on-dark);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.project-hero-right {
  display: contents;
}

.project-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 25px;
  flex: 1;
}

.project-description {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 0;
  margin-bottom: 60px;
  box-shadow: 0 5px 15px var(--shadow-elem);
}

.project-description h2 {
  color: var(--main-text);
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-family: 'Playfair Display', Georgia, serif;
}

.project-description p,
.project-description div {
  color: var(--secondary-text);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.project-description ul {
  list-style: '-';
  color: var(--secondary-text);
  font-size: 1.1rem;
  padding-left: 20px;
}

.project-description li {
  padding-left: 5px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 40px;
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-gallery img:hover {
  transform: none;
  box-shadow: none;
}

/* Modal for image gallery */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  margin: 30px auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--text-on-dark);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.modal-close:hover {
  color: var(--secondary-bg);
}

/* Slider for modal */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.gallery-modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-modal-content {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 5px;
}

.gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--text-on-dark);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.gallery-modal-close:hover {
  color: var(--secondary-bg);
}

.gallery-modal-prev,
.gallery-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: var(--text-on-dark);
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
  z-index: 1001;
}

.gallery-modal-prev {
  left: 10%;
}

.gallery-modal-next {
  right: 10%;
}

.gallery-modal-prev.large-image {
  left: 2%;
}

.gallery-modal-next.large-image {
  right: 2%;
}

.gallery-modal-dots {
  text-align: center;
  padding: 20px 0;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.gallery-modal-dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.gallery-modal-dot.active,
.gallery-modal-dot:hover {
  background-color: var(--secondary-bg);
}

.prev,
.next,
.gallery-modal-prev,
.gallery-modal-next,
.dot,
.gallery-modal-dot,
.page-link,
.project-link {
  -webkit-tap-highlight-color: transparent;
}

.prev:active,
.next:active,
.gallery-modal-prev:active,
.gallery-modal-next:active {
  background: transparent;
}

/* Footer */
.footer-inner {
  font-size: 1.1rem;
  text-align: center;
  padding: 1.5rem;
  color: var(--main-text);
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}

.footer-inner a {
  color: var(--secondary-bg);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.footer-inner a:hover {
  color: var(--main-text);
}

/* 404 Page */
.error-wrapper {
  flex: 1;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-card {
  max-width: 800px;
  background: var(--card-bg);
  border-radius: 0;
  padding: 40px 24px;
  box-shadow: 0 10px 30px var(--shadow-elem);
  text-align: center;
}

.error-code {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(72px, 14vw, 160px);
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--secondary-bg), var(--main-text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-title {
  font-size: clamp(24px, 4vw, 32px);
  color: var(--main-text);
  margin-bottom: 16px;
}

.error-subtitle {
  color: var(--secondary-text);
  margin: 0 auto 32px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.button-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 0;
  border: 2px solid var(--secondary-bg);
  color: var(--main-text);
  background: var(--page-bg);
  font-weight: 600;
  box-shadow: none;
  text-decoration: none;
  transition: all 0.3s ease;
}

.button-outline:hover {
  background: var(--secondary-bg);
  color: var(--text-on-dark);
  transform: translateY(-2px);
}

/* Reviews-loader */
.slideshow-container .reviews-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 40px;
}

.reviews-inner .reviews-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fade {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }
}

@media (hover: hover) {
  button:hover {
    background-color: var(--secondary-bg);
  }
}

@media (max-width: 1900px) {
  .gallery-modal-prev {
    left: 5%;
  }

  .gallery-modal-next {
    right: 5%;
  }
}

@media (max-width: 1700px) {
  .gallery-modal-prev {
    left: 2%;
  }

  .gallery-modal-next {
    right: 2%;
  }
}

@media (max-width: 1400px) {
  .container {
    max-width: 1200px;
    padding-inline: 24px;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .profile-image {
    width: auto;
    height: 440px;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .profile-image {
    width: auto;
    height: 400px;
  }

  .about-details {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .slideshow-container.container {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 88px;
    align-items: center;
    gap: 10px;
  }

  .slideshow-container.container .slideshow-inner {
    grid-column: 1 / -1;
  }

  .slideshow-container.container .prev,
  .slideshow-container.container .next {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--secondary-bg);
    font-size: 1.8rem;
    line-height: 1;
    transform: none;
  }

  .slideshow-container.container .prev {
    grid-column: 1;
    justify-self: end;
  }

  .slideshow-container.container .next {
    grid-column: 3;
    justify-self: start;
  }

  .slideshow-container.container .dots-container {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }

  .gallery-modal-content {
    max-width: 85%;
  }

  .gallery-modal-prev,
  .gallery-modal-next,
  .gallery-modal-prev.large-image,
  .gallery-modal-next.large-image {
    position: fixed;
    top: auto;
    bottom: 62px;
    transform: none;
    margin-top: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-dark);
    font-size: 1.9rem;
  }

  .gallery-modal-prev,
  .gallery-modal-prev.large-image {
    left: calc(50% - 64px);
  }

  .gallery-modal-next,
  .gallery-modal-next.large-image {
    right: calc(50% - 64px);
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 900px;
  }

  .header-inner {
    padding-block: 12px;
    padding-inline: 16px;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-title {
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-image {
    height: auto;
  }

  .profile-image {
    width: auto;
    height: 360px;
  }

  .service-item {
    grid-template-columns: 64px 1fr;
  }

  .service-number {
    font-size: 2.55rem;
  }
}

@media (max-width: 968px) {
  .nav-menu {
    display: none;
  }

  .burger-nav {
    display: block;
  }

  .burger {
    display: block;
  }

  .hero-content {
    padding-left: 2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-button {
    padding: 0.7rem 1.6rem;
  }

  .profile-image {
    width: auto;
    height: 340px;
  }

  .intro-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 18px;
    padding-top: 70px;
  }

  main {
    padding-top: 0;
  }

  section {
    scroll-margin-top: 70px;
  }

  .hero-inner {
    flex-direction: column;
  }

  .hero-content {
    padding-left: 0;
    order: 2;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-button {
    font-size: 0.95rem;
  }

  .hero-image {
    height: auto;
    order: 1;
  }

  .profile-image {
    width: auto;
  }

  .section-title {
    margin-bottom: 0.8rem;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .detail-card {
    padding: 25px;
  }

  .skills-image {
    padding: 16px 18px;
    min-width: 110px;
  }

  .skills-image p {
    font-size: 0.85rem;
    margin-top: 8px;
  }

  .service-item {
    grid-template-columns: 54px 1fr;
    padding: 24px 0;
  }

  .service-summary {
    grid-template-columns: minmax(0, 1fr) auto 28px;
    gap: 16px;
  }

  .service-summary h3 {
    font-size: 1.15rem;
  }

  .service-price {
    font-size: 1.15rem;
  }

  .service-summary p,
  .service-step p {
    font-size: 0.95rem;
  }

  .service-steps {
    gap: 22px;
    margin-top: 24px;
  }

  .reviews-inner {
    height: 430px;
    padding: 0;
  }

  .review-header {
    margin-bottom: 12px;
  }

  .reviews-w-icon i,
  .reviews-m-icon i {
    font-size: 1.7rem;
    margin-right: 12px;
  }

  .review-content {
    max-height: 260px;
    padding-inline: 18px;
  }

  .review-content.scrollable::after {
    display: block;
  }

  .review-author h3 {
    font-size: 1.25rem;
  }

  .review-content p {
    font-size: 1.08rem;
    line-height: 1.5;
  }

  .review-date {
    font-size: 0.95rem;
  }

  .slideshow-container.container {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
  }

  .slideshow-container.container .slideshow-inner {
    grid-column: 1 / -1;
  }

  .slideshow-container.container .prev,
  .slideshow-container.container .next {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--secondary-bg);
    font-size: 1.8rem;
    line-height: 1;
    transform: none;
  }

  .slideshow-container.container .prev {
    grid-column: 1;
  }

  .slideshow-container.container .next {
    grid-column: 3;
  }

  .slideshow-container.container .dots-container {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }

  #reviews .prev,
  #reviews .next {
    display: none;
  }

  .contacts-inner {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
    text-align: center;
  }

  .contacts-info,
  .contact-form {
    padding: 1.5rem;
  }

  .social-links {
    justify-content: center;
    gap: 15px;
  }

  .footer-inner {
    font-size: 0.95rem;
    padding: 1.2rem;
  }

  .gallery-modal-content {
    max-width: 92%;
    max-height: 72%;
  }

  .gallery-modal-prev,
  .gallery-modal-next {
    position: fixed;
    top: auto;
    bottom: 54px;
    transform: none;
    margin-top: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-dark);
    font-size: 1.9rem;
  }

  .gallery-modal-prev {
    left: calc(50% - 64px);
  }

  .gallery-modal-next {
    right: calc(50% - 64px);
  }

  .gallery-modal-dots {
    padding: 15px 0;
  }

  .gallery-modal-dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
  }

  .project-hero {
    height: 35vh;
    min-height: 280px;
    width: 95%;
  }

  .project-hero-info {
    gap: 12px;
    padding: 14px 20px;
  }

  .project-hero-left h1 {
    font-size: 1.8rem;
  }

  .project-hero-left .project-area {
    font-size: 1.25rem;
  }

  .project-hero-right .project-year {
    font-size: 1.25rem;
    padding: 0;
  }

  .project-content {
    padding: 30px 20px;
  }

  .project-description {
    padding: 25px 20px;
    margin-bottom: 40px;
  }

  .project-description h2 {
    font-size: 1.4rem;
  }

  .project-description p,
  .project-description div {
    font-size: 0.95rem;
  }

  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 40px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .project-info {
    transform: translateY(0);
    padding: 30px 15px 15px;
  }

  .error-card {
    padding: 25px 15px;
  }

  .error-code {
    font-size: 3rem;
  }

  .error-title {
    font-size: 1.3rem;
  }

  .error-subtitle {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .button-outline {
    width: 190px;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .review-form {
    padding: 22px;
    margin: 0 15px;
  }

  .slideshow-container .reviews-loading {
    min-height: 250px;
    padding: 30px 15px;
  }

  .reviews-inner .reviews-loading {
    min-height: 150px;
  }
}

@media (max-width: 480px) {
  .projects-grid,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .profile-image {
    width: auto;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-step {
    grid-template-columns: 28px 1fr;
  }

  .service-summary {
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .service-price {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .service-toggle {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .review-content {
    max-height: 300px;
    padding-inline: 20px;
  }

  .contacts-info,
  .contact-form {
    padding: 1rem;
  }

  .project-hero-left h1 {
    font-size: 1.2rem;
  }

}

@media (max-width: 360px) {
  .container {
    padding-inline: 8px;
  }

  .header-inner {
    padding-inline: 8px;
  }

  .hero-inner {
    padding: 40px 8px 0;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .profile-image {
    width: auto;
    height: 220px;
  }

  .service-summary {
    grid-template-columns: 1fr 24px;
  }

  .service-summary h3 {
    font-size: 1.05rem;
  }

  .service-summary p,
  .service-step p {
    font-size: 0.9rem;
  }

  .service-step h4 {
    font-size: 0.9rem;
  }

  .review-card {
    padding: 12px;
    min-height: 220px;
  }

  .contacts-info,
  .contact-form {
    padding: 0.8rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  .contact-form button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1200px) {
  .container {
    width: min(100% - 48px, 1100px);
    padding-inline: 0;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .about-details {
    gap: 0;
  }
}

@media (max-width: 992px) {
  .section-inner {
    padding: 76px 0;
  }

  .section-header {
    padding-inline: 24px;
  }

  .section-title {
    font-size: clamp(2.2rem, 8vw, 4rem);
  }

  .hero-inner {
    min-height: auto;
    padding-block: 24px 52px;
    text-align: left;
  }

  .hero-title {
    font-size: 2.4rem;
    line-height: 1.2;
  }

  .portfolio-inner {
    grid-template-columns: 1fr 1fr;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .detail-card {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .detail-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 680px);
  }

  .header-inner {
    padding-inline: 16px;
  }

  .section-inner {
    padding: 48px 0;
  }

  main>.section-inner:first-child+.section-inner {
    padding-top: 28px;
  }

  .section-header {
    margin-bottom: 30px;
    padding-inline: 16px;
  }

  .section-divider {
    width: 100%;
    height: 1px;
    margin-top: 20px;
  }

  #reviews .reviews-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 18px;
    text-align: left;
  }

  #reviews .section-title {
    margin-bottom: 0;
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  #reviews .section-divider {
    grid-column: 1 / -1;
  }

  .reviews-mobile-arrows {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .reviews-mobile-arrows button {
    border: 0;
    background: transparent;
    color: var(--secondary-bg);
    padding: 0;
    font: inherit;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
  }

  .hero-inner {
    align-items: center;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-areas:
      "title image"
      "content content";
    column-gap: 12px;
    row-gap: 22px;
    padding-block: 20px 40px;
    padding-inline: 16px;
    text-align: center;
  }

  .hero-content {
    grid-area: content;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    grid-area: image;
    width: 100%;
    justify-content: center;
  }

  .hero-title {
    grid-area: title;
    margin-bottom: 0;
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.25;
    text-align: left;
  }

  .profile-image {
    height: 340px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  }

  .about-intro {
    text-align: left;
  }

  .intro-text {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
  }

  .portfolio-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
  }

  .projects {
    aspect-ratio: 1.15;
  }

  .skills-inner {
    display: flex;
    justify-content: center;
    gap: 16px;
  }

  .skills-image {
    min-width: 110px;
  }

  #skills {
    padding-top: 48px;
    padding-bottom: 44px;
  }

  #portfolio {
    padding-top: 44px;
    padding-bottom: 48px;
  }

  #services {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  #reviews {
    padding-top: 48px;
    padding-bottom: 24px;
  }

  #add-review {
    padding-top: 24px;
    padding-bottom: 20px;
  }

  #contacts {
    padding-top: 24px;
  }

  .contacts-inner {
    text-align: center;
  }

  .contacts-info {
    text-align: center;
  }

  .contact-form {
    text-align: left;
  }

  .burger-social-networks .meta-mark {
    top: -2px;
    right: 8px;
    color: var(--main-text);
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 28px, 460px);
  }

  .section-title {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  #reviews .section-title {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

  .reviews-mobile-arrows {
    gap: 14px;
  }

  .reviews-mobile-arrows button {
    font-size: 1.75rem;
  }

  .profile-image {
    height: 280px;
  }

  .service-item {
    grid-template-columns: 1fr;
    padding: 26px 0;
  }

  .service-number {
    font-size: 2.5rem;
  }

  .review-card {
    padding: 24px 18px;
  }
}

/* Consent checkbox */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  color: var(--secondary-text);
  margin-bottom: 1rem;
  cursor: pointer;
  line-height: 1.4;
  text-align: left;
}

.consent-label input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  padding: 0;
  border: 1px solid rgba(49, 83, 49, 0.38);
  border-radius: 2px;
  background-color: var(--page-bg);
  cursor: pointer;
}

.consent-label input[type='checkbox']:checked {
  border-color: var(--secondary-bg);
  background-color: var(--secondary-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='11' height='11' viewBox='0 0 11 11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.3 5.7L4.4 7.8L8.8 3' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 11px 11px;
}

.consent-label input[type='checkbox']:focus-visible {
  outline: 2px solid rgba(102, 177, 114, 0.35);
  outline-offset: 2px;
}

.consent-label a {
  color: var(--secondary-bg);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.consent-label a:hover {
  color: var(--main-text);
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Footer privacy link */
.footer-privacy {
  margin-top: 4px;
  font-size: 0.85rem;
}

.footer-note {
  max-width: 760px;
  margin: 8px auto 0;
  color: var(--muted-green-text);
  font-size: 0.78rem;
  line-height: 1.35;
}

/* Privacy Policy Page */
.privacy-wrapper {
  padding: 36px 1.5rem 3rem;
}

.privacy-card {
  background: var(--page-bg);
  border-radius: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 3rem;
  max-width: 860px;
  margin: 0 auto;
}

.privacy-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: var(--main-text);
  margin-bottom: 0.4rem;
}

.privacy-updated {
  font-size: 0.9rem;
  color: var(--secondary-text);
  margin-bottom: 2rem;
}

.privacy-section {
  margin-bottom: 2rem;
  color: var(--main-text);
}

.privacy-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--main-text);
}

.privacy-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
}

.privacy-section p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.privacy-section ul {
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
}

.privacy-section li {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

.privacy-section a {
  color: var(--secondary-bg);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.privacy-section a:hover {
  color: var(--main-text);
}

.privacy-back {
  margin-top: 2.5rem;
}

@media (max-width: 600px) {
  .privacy-card {
    padding: 1.5rem 1.2rem;
  }

  .privacy-title {
    font-size: 1.4rem;
  }
}
