/* Премиум-страница «Контакты» (макет contacts_premium.html) */

.ctc-svc {
  --ctc-teal: var(--svc-accent, #4cb8d6);
  --ctc-teal-mid: var(--svc-accent, #4cb8d6);
  --ctc-teal-dark: var(--svc-accent-dark, #2e9bb5);
  --ctc-night: #06090f;
  --ctc-night2: #0b1018;
  --ctc-text: #1a1f2e;
  --ctc-muted: #64748b;
  --ctc-border: #e2e8f0;
  --ctc-bg: #f8fafc;
  --ctc-green-soft: var(--svc-accent-soft, rgba(76, 184, 214, 0.14));
  --ctc-accent-rgb: 76, 184, 214;
  --ctc-accent-dark-rgb: 46, 155, 181;
  --ctc-serif: var(--font-display, 'Instrument Serif', Georgia, serif);
  --ctc-body: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-family: var(--ctc-body);
  color: var(--ctc-text);
}

@keyframes ctc-flowAnim {
  0% { transform: translateX(-20%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(130%); opacity: 0; }
}

@keyframes ctc-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

@keyframes ctc-fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ctc-spin-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ctc-spin-rev {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.ctc-svc .ctc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Breadcrumb */
.ctc-svc__breadcrumb {
  padding: 18px 0;
  background: #fff;
  border-bottom: 0.5px solid var(--ctc-border);
}

.ctc-svc__breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ctc-muted);
}

.ctc-svc__breadcrumb-inner a {
  color: var(--ctc-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.ctc-svc__breadcrumb-inner a:hover {
  color: var(--ctc-teal-mid);
}

.ctc-svc__breadcrumb-sep {
  font-size: 12px;
  color: rgba(100, 116, 139, 0.5);
}

.ctc-svc__breadcrumb-inner span:last-child {
  color: var(--ctc-text);
  font-weight: 500;
}

/* Hero */
.ctc-svc__hero {
  background: linear-gradient(135deg, #eef8fc 0%, #e6f6fa 40%, #f5fafd 100%);
  padding: 56px 0 52px;
  position: relative;
  overflow: hidden;
}

.ctc-svc__hero-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ctc-svc__phl {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--ctc-accent-rgb), 0.12), transparent);
  animation: ctc-flowAnim 6s infinite linear;
}

.ctc-svc__phl:nth-child(1) { top: 18%; width: 55%; left: -5%; animation-duration: 6s; }
.ctc-svc__phl:nth-child(2) { top: 42%; width: 40%; left: 25%; animation-duration: 7s; animation-delay: 1.8s; }
.ctc-svc__phl:nth-child(3) { top: 72%; width: 50%; left: -8%; animation-duration: 5.5s; animation-delay: 3.5s; }

.ctc-svc__hero-deco {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  pointer-events: none;
  opacity: 0.12;
}

.ctc-svc__deco-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid var(--ctc-teal-mid);
  transform: translate(-50%, -50%);
}

.ctc-svc__deco-ring--1 { width: 80px; height: 80px; animation: ctc-spin-slow 12s linear infinite; }
.ctc-svc__deco-ring--2 { width: 140px; height: 140px; animation: ctc-spin-rev 18s linear infinite; }
.ctc-svc__deco-ring--3 { width: 200px; height: 200px; animation: ctc-spin-slow 24s linear infinite; }
.ctc-svc__deco-ring--4 { width: 270px; height: 270px; }

.ctc-svc__hero-inner {
  position: relative;
  z-index: 2;
  animation: ctc-fadeUp 0.6s ease both;
}

.ctc-svc__ph-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--ctc-accent-dark-rgb), 0.1);
  border: 0.5px solid rgba(var(--ctc-accent-rgb), 0.3);
  color: var(--ctc-teal-mid);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
  font-weight: 500;
}

.ctc-svc__ph-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ctc-teal-mid);
  animation: ctc-breathe 3s infinite;
}

.ctc-svc__hero h1 {
  font-family: var(--ctc-serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  color: var(--ctc-night);
  line-height: 0.95;
  margin: 0 0 18px;
}

.ctc-svc__hero-sub {
  font-size: 15px;
  color: var(--ctc-muted);
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
  max-width: 520px;
}

/* Main section */
.ctc-svc__section {
  padding: 64px 0 80px;
  background: #fff;
}

.ctc-svc__tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ctc-teal-mid);
  margin-bottom: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctc-svc__tag svg {
  flex-shrink: 0;
}

.ctc-svc__title {
  font-family: var(--ctc-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: var(--ctc-text);
  line-height: 1.05;
  margin: 0 0 36px;
}

.ctc-svc__title em {
  font-style: italic;
  color: var(--ctc-teal-mid);
}

.ctc-svc__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
  align-items: start;
}

/* Info card */
.ctc-svc__info {
  background: #142f37;
  border-radius: 18px;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.ctc-svc__info-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ctc-svc__icl {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--ctc-accent-rgb), 0.1), transparent);
  animation: ctc-flowAnim 7s infinite linear;
}

.ctc-svc__icl:nth-child(1) { top: 15%; width: 70%; left: -10%; }
.ctc-svc__icl:nth-child(2) { top: 45%; width: 55%; left: 20%; animation-delay: 2s; }
.ctc-svc__icl:nth-child(3) { top: 78%; width: 60%; left: -5%; animation-delay: 4s; }

.ctc-svc__info-inner {
  position: relative;
  z-index: 2;
}

.ctc-svc__info-label {
  font-size: 11px;
  color: var(--ctc-teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctc-svc__info-title {
  font-family: var(--ctc-serif);
  font-size: 32px;
  color: #fff;
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 28px;
}

.ctc-svc__info-title em {
  color: var(--ctc-teal);
  font-style: italic;
}

.ctc-svc__info-items {
  display: flex;
  flex-direction: column;
}

.ctc-svc__info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 0.5px solid rgba(var(--ctc-accent-rgb), 0.08);
}

.ctc-svc__info-item:last-child {
  border-bottom: none;
}

.ctc-svc__info-ico {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(var(--ctc-accent-dark-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--ctc-teal);
}

.ctc-svc__info-item-label {
  font-size: 11px;
  color: rgba(var(--ctc-accent-rgb), 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.ctc-svc__info-item-val {
  font-size: 14px;
  color: #fff;
  font-weight: 400;
  line-height: 1.5;
}

.ctc-svc__info-item-val a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.ctc-svc__info-item-val a:hover {
  color: var(--ctc-teal);
}

.ctc-svc__sched {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.ctc-svc__sched-badge {
  background: rgba(var(--ctc-accent-dark-rgb), 0.1);
  border: 0.5px solid rgba(var(--ctc-accent-rgb), 0.2);
  color: var(--ctc-teal);
  font-size: 12px;
  padding: 5px 13px;
  border-radius: 6px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ctc-svc__map {
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid rgba(var(--ctc-accent-rgb), 0.12);
  position: relative;
  height: 120px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
}

.ctc-svc__map:hover {
  background: rgba(var(--ctc-accent-dark-rgb), 0.06);
}

.ctc-svc__map span {
  font-size: 11px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ctc-svc__map-pin {
  position: absolute;
  top: 60%;
  left: 47%;
  transform: translate(-50%, -60%);
  color: var(--ctc-teal);
  animation: ctc-breathe 3s infinite;
}

/* Form card */
.ctc-svc__form-card {
  background: var(--ctc-bg);
  border: 0.5px solid var(--ctc-border);
  border-radius: 18px;
  padding: 44px 40px;
}

.ctc-svc__form-row {
  margin-bottom: 18px;
}

.ctc-svc__form-row label,
.ctc-svc__form-file-caption {
  display: block;
  font-size: 11px;
  color: var(--ctc-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 7px;
  font-weight: 500;
}

.ctc-svc__form-row input,
.ctc-svc__form-row select,
.ctc-svc__form-row textarea {
  width: 100%;
  background: #fff;
  border: 0.5px solid var(--ctc-border);
  border-radius: 9px;
  padding: 12px 16px;
  color: var(--ctc-text);
  font-size: 14px;
  font-family: var(--ctc-body);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.ctc-svc__form-row input:focus,
.ctc-svc__form-row select:focus,
.ctc-svc__form-row textarea:focus {
  border-color: rgba(var(--ctc-accent-dark-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--ctc-accent-rgb), 0.08);
}

.ctc-svc__form-row select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.ctc-svc__form-row textarea {
  min-height: 100px;
}

.ctc-svc__form-row.is-invalid input,
.ctc-svc__form-row.is-invalid select,
.ctc-svc__form-row.is-invalid textarea {
  border-color: #e11d48;
}

.ctc-svc__form-error {
  display: block;
  font-size: 12px;
  color: #e11d48;
  margin-top: 6px;
  min-height: 0;
}

.ctc-svc__file {
  border: 0.5px dashed rgba(var(--ctc-accent-dark-rgb), 0.3);
  border-radius: 9px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  background: #fff;
}

.ctc-svc__file:hover {
  background: rgba(var(--ctc-accent-rgb), 0.04);
  border-color: rgba(var(--ctc-accent-dark-rgb), 0.5);
}

.ctc-svc__file-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ctc-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ctc-teal-dark);
}

.ctc-svc__file-text {
  font-size: 13px;
  color: var(--ctc-muted);
}

.ctc-svc__file-text strong {
  display: block;
  font-size: 13px;
  color: var(--ctc-text);
  font-weight: 500;
  margin-bottom: 1px;
}

.ctc-svc__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ctc-svc__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  cursor: pointer;
  padding: 14px;
  border: 0.5px solid var(--ctc-border);
  border-radius: 9px;
  transition: border-color 0.2s, background 0.2s;
}

.ctc-svc__check:hover {
  border-color: rgba(var(--ctc-accent-dark-rgb), 0.3);
  background: rgba(var(--ctc-accent-rgb), 0.02);
}

.ctc-svc__check.is-invalid {
  border-color: #e11d48;
}

.ctc-svc__check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ctc-svc__check-box {
  width: 18px;
  height: 18px;
  border: 0.5px solid var(--ctc-border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  background: #fff;
}

.ctc-svc__check input:checked + .ctc-svc__check-box {
  background: var(--ctc-teal-mid);
  border-color: var(--ctc-teal-mid);
}

.ctc-svc__check-box svg {
  display: none;
  color: #fff;
}

.ctc-svc__check input:checked + .ctc-svc__check-box svg {
  display: block;
}

.ctc-svc__check-label {
  font-size: 13px;
  color: var(--ctc-muted);
  line-height: 1.5;
}

.ctc-svc__check-label a {
  color: var(--ctc-teal-mid);
  text-decoration: underline;
  text-decoration-color: rgba(var(--ctc-accent-dark-rgb), 0.3);
}

.ctc-svc__submit {
  width: 100%;
  background: var(--ctc-teal-mid);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--ctc-body);
  transition: opacity 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.ctc-svc__submit:hover {
  opacity: 0.9;
  box-shadow: 0 8px 24px rgba(var(--ctc-accent-dark-rgb), 0.3);
}

.ctc-svc__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ctc-svc__form-note {
  text-align: center;
  font-size: 12px;
  color: var(--ctc-muted);
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.ctc-svc__form-note svg {
  color: var(--ctc-teal);
  flex-shrink: 0;
}

.ctc-svc__form-success {
  text-align: center;
  padding: 40px 20px;
}

.ctc-svc__form-success[hidden] {
  display: none !important;
}

.ctc-svc__form-success-icon {
  color: var(--ctc-teal-mid);
  margin-bottom: 14px;
}

.ctc-svc__form-success h3 {
  font-family: var(--ctc-serif);
  font-size: 28px;
  color: var(--ctc-text);
  font-weight: 400;
  margin: 0 0 8px;
}

.ctc-svc__form-success h3 em {
  color: var(--ctc-teal-mid);
  font-style: italic;
}

.ctc-svc__form-success p {
  font-size: 14px;
  color: var(--ctc-muted);
  line-height: 1.6;
  margin: 0;
}

.ctc-svc__success-badges {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.ctc-svc__success-badges a {
  text-decoration: none;
}

/* Metrics */
.ctc-svc__metrics-wrap {
  padding: 0 0 64px;
}

.ctc-svc__metrics {
  background: #142f37;
  border-radius: 18px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.ctc-svc__metrics-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ctc-svc__mdl {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--ctc-accent-rgb), 0.1), transparent);
  animation: ctc-flowAnim 6s infinite linear;
}

.ctc-svc__mdl:nth-child(1) { top: 30%; width: 60%; left: -10%; }
.ctc-svc__mdl:nth-child(2) { top: 70%; width: 50%; left: 20%; animation-delay: 2s; }

.ctc-svc__metrics-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(var(--ctc-accent-rgb), 0.07);
  border-radius: 10px;
  overflow: hidden;
}

.ctc-svc__metric {
  background: rgba(255, 255, 255, 0.02);
  padding: 32px 24px;
  text-align: center;
  transition: background 0.2s;
}

.ctc-svc__metric:hover {
  background: rgba(var(--ctc-accent-dark-rgb), 0.07);
}

.ctc-svc__metric-n {
  font-size: 44px;
  color: var(--ctc-teal);
  font-weight: 400;
  line-height: 1;
}

.ctc-svc__metric-l {
  font-size: 12px;
  color: rgb(255 255 255 / 60%);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* Trust */
.ctc-svc__trust-wrap {
  padding: 0 0 64px;
}

.ctc-svc__trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.ctc-svc__trust-card {
  border: 0.5px solid var(--ctc-border);
  border-radius: 14px;
  padding: 24px 22px;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ctc-svc__trust-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s;
}

.ctc-svc__trust-card:hover {
  border-color: rgba(var(--ctc-accent-rgb), 0.3);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.ctc-svc__trust-card:hover::after {
  background: var(--ctc-teal-mid);
}

.ctc-svc__trust-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ctc-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--ctc-teal-dark);
}

.ctc-svc__trust-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 5px;
  color: var(--ctc-text);
}

.ctc-svc__trust-card p {
  font-size: 13px;
  color: var(--ctc-muted);
  line-height: 1.6;
  margin: 0;
}

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

  .ctc-svc__metrics-inner {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .ctc-svc__info,
  .ctc-svc__form-card {
    padding: 32px 24px;
  }

  .ctc-svc__metrics {
    padding: 32px 24px;
  }
}

@media (max-width: 560px) {
  .ctc-svc__trust {
    grid-template-columns: 1fr;
  }

  .ctc-svc__metric-n {
    font-size: 36px;
  }
}
