:root {
  --container-padding: 30px;
  --radius-lg: 60px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --color-bg: #f7f8fc;
  --color-soft: #f3f4fb;
  --color-white: #ffffff;
  --color-primary: #041b4e;
  --color-text: #1c1c1c;
  --color-muted: #33456e;
  --color-input: #edf3fc;
}

.container {
  width: 100%;
  max-width: 1920px;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  margin: 0 auto;
}

.hero {
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hero__card {
  min-height: 600px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

.hero__card--content {
  background: linear-gradient(135deg, #041b4e 0%, #093eb4 100%);
  padding: 80px 60px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 500px;
  opacity: 0.9;
}

.hero__buttons {
  display: flex;
  gap: 20px;
}

main .btn {
  height: 45px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 150ms ease, background 150ms ease, transform 150ms ease;
}

main .btn:active {
  transform: translateY(1px);
}

main .btn--primary {
  background: var(--color-primary);
  color: #fff;
}

main .btn--primary:hover {
  filter: brightness(1.2);
}

main .btn--secondary {
  background: #ebedff;
  color: var(--color-text);
}

main .btn--secondary:hover {
  background: #dce0ff;
}

main .btn--hero {
  height: 52px;
  padding: 0 32px;
  font-size: 16px;
}

main .btn--hero-fill {
  background: #fff;
  color: var(--color-primary);
}

main .btn--hero-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
}

main .btn--hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section__head {
  margin-bottom: 40px;
}

.section__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: block;
}

.section__lead {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  max-width: 800px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--services {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 420px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-card__img {
  transform: scale(1.05);
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 27, 78, 0.95), transparent 60%);
}

.service-card__content {
  position: absolute;
  left: 30px;
  bottom: 30px;
  right: 30px;
  color: #fff;
}

.service-card__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card__text {
  font-size: 15px;
  opacity: 0.95;
  line-height: 1.5;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.portfolio-item {
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.portfolio-item img:hover {
  transform: scale(1.03);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.price-table-wrap {
  overflow-x: auto;
}

.price-table th,
.price-table td {
  padding: 24px 30px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.price-table th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.price-table td {
  color: var(--color-text);
  font-size: 16px;
}

.price-table td:last-child {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.consultation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.consultation__card {
  border-radius: 20px;
  overflow: hidden;
}

.consultation__card--left {
  background: linear-gradient(135deg, #041b4e 0%, #093eb4 100%);
  padding: 60px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.consultation__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.consultation__subtitle {
  font-size: 18px;
  line-height: 1.5;
  opacity: 0.9;
}

.consultation__contact {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.consultation__contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.consultation__contact-label {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.consultation__contact-phone {
  font-size: 20px;
  font-weight: 700;
}

.consultation__form-wrapper {
  background: var(--color-white);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-field {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

.form-input {
  width: 100%;
  height: 50px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 0 16px;
  background: var(--color-input);
  font-size: 16px;
}

.form-phone {
  position: relative;
}

.form-phone__prefix {
  position: absolute;
  inset: 0 auto 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  pointer-events: none;
}

.form-phone__flag {
  width: 20px;
  height: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.form-phone__code {
  color: #6b7280;
  font-weight: 600;
}

.form-input--phone {
  padding-left: 78px;
}

.form-consent {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.form-consent__checkbox {
  appearance: none;
  border: 1px solid rgba(4, 27, 78, 0.35);
  border-radius: 4px;
  background: #fff;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.form-consent__checkbox:checked {
  background-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3.5 8.2 6.4 11 12.7 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  border-color: var(--color-primary);
}

.form-consent__text {
  font-size: 12px;
  color: #4b5563;
}

main .btn--submit {
  width: 100%;
  height: 50px;
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .grid--services,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .consultation {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .grid--services,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 32px;
  }

  .consultation__card,
  .hero__card--content {
    padding: 40px 24px;
  }

  .hero__card {
    min-height: auto;
    height: auto;
  }

  .hero__card--image {
    height: 300px;
  }
}
